/*
Theme Name: 細川辰夫 税理士事務所テーマ
Author: Your Name
Version: 1.0
*/

/* Sub Hero Section */
.sub-hero {
    height: 300px;
    background-image: url(../img/about-hero.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    position: relative;
}

/* タイトルを包むコンテナ（1020px幅の中に入れる） */
.sub-hero-container {
    width: 100%;
    max-width: 1020px;
    margin: 0 0;
    padding: 0 0;
}

.sub-hero-titles {
    display: flex;
    align-items: baseline; /* 文字の底辺（ベースライン）を合わせる */
    gap: 20px;             /* タイトル間の余白 */
    background: linear-gradient(to right, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 100%), 
            url('img/about-hero.jpg') no-repeat center/cover;
    padding: 20px 50px;
    left:0;
    bottom:0;
}
.sub-hero .main-title {
    /* 既存のスタイルに追加・修正 */
    font-family: 'Futura', 'Trebuchet MS', Arial, sans-serif; /* Futuraを優先し、代替フォントも指定 */
    font-size: 3.5rem;    /* Futuraは少し細身に見えることがあるので、サイズを微調整 */
    font-weight: 800;     /* 太めにするとグラデーションが映えます */
    margin: 0;
    line-height: 1;
    letter-spacing: 0.05em; /* Futuraは少し字間を広げるとより美しくなります */

    /* グラデーション設定（継続） */
    background: linear-gradient(90deg, #56C238 0%, #659C56 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    
    display: inline-block;
}

/* サブタイトル（当事務所について） */
.sub-hero .sub-title {
    font-size: 1.1rem;     /* 小さく */
    font-weight: 500;
    color: #333;           /* 黒（灰色） */
    margin: 0;
    line-height: 1;
}

/* Feature Items (Zigzag Layout) */
.feature-item {
    display: flex;
    align-items: center;
    gap: 50px;
    margin: 50px 0;
    text-align: left;
}

.feature-item.reverse {
    flex-direction: row-reverse;
}

.feature-text { flex: 1; }
.feature-img { flex: 1; }
.feature-img img { width: 100%; border-radius: 4px; }

.feature-heading {
    color: #4CAF50;
    font-size: 1.4rem;
    margin-bottom: 20px;
    border-left: 4px solid #4CAF50;
    padding-left: 15px;
}

/* Wide Image */
.wide-image { margin: 100px 0 50px; text-align: center; }
.wide-image img { width: 100%; max-height: 400px; object-fit: cover; }
.wide-caption { margin-top: 20px; font-weight: bold; }

/* Service Detail (Boxes) */

.service-detail{
    background-color: #f9fff9;
}
.service-section {
    max-width: 1020px;
    margin: 50px auto;
    padding: 0 20px;
}

.service-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

/* ★自動交互設定：2, 4, 6...番目の要素を反転させる */
.service-row:nth-child(even) {
    flex-direction: row-reverse;
}

.service-box, .service-image-side {
    width: 48%;
}

.service-label {
    background: linear-gradient(270deg, #56C238 0%, #659C56 100%);
    padding: 10px 0;
    font-size: 1.5rem;
    color: #fff; /* 緑色 */
    margin: 20px 0;
    font-weight: bold;
}

.service-list {
    list-style: none;
    padding: 0;
    text-align: left;
}

.service-list li {
    position: relative;
    line-height: 1.8;
    margin-bottom: 2px;
    font-size: 1rem;
}

.service-image-side img {
    width: 100%;
    height: auto;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
    .service-row, .service-row:nth-child(even) {
        flex-direction: column;
        gap: 30px;
    }
    .service-box, .service-image-side {
        width: 100%;
    }
}

.message.section {
    padding: 80px 0;
    background-image: url(../img/message_bg.jpg);
    background-repeat: no-repeat;
    background-size: cover;
}

.message-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* 文章が短い場合に備えて上に揃える */
    gap: 60px;
    margin-top: 40px;
}

/* 挨拶の見出し（最初の2行分） */
.message-lead {
    font-size: 1.4rem;      /* 大きく */
    font-weight: bold;      /* 太字 */
    line-height: 1.4;
    margin-bottom: 30px;    /* 本文との間隔 */
}

.message-text {
    width: 60%;
    text-align: left; /* 左寄せを徹底 */
}

/* 挨拶の本文（3行目以降） */
.message-body {
    font-size: 1.05rem;
    line-height: 2;
    color: #333;
    margin-bottom: 40px;
}


/* 代表者名（左寄せ＋アクセント） */
.representative-name {
    display: inline-block; /* ラインの長さを文字に合わせる */
    color: #333;
    margin: 0;
    font-family: YuGothic;
    font-size: 28px;
}

.representative-img {
    width: 35%;
}

.representative-img img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
    .message-flex {
        flex-direction: column-reverse; /* スマホでは画像が上、文章が下の方が顔が見えて安心感が出ます */
        gap: 30px;
    }
    
    .message-text {
        width: 100%;
    }
    
    .message-lead {
        font-size: 1.2rem; /* スマホでは少し小さく */
    }
    .representative-name {
        float: none;
        display: block;
        text-align: right;
    }
    
    .sub-hero .main-title {
    font-size: 2.5rem;
    }    
    
    .sub-hero-titles {
    display: flex;
    align-items: baseline;
    gap: 10px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 100%), url(img/about-hero.jpg) no-repeat center / cover;
    padding: 20px;
    left: 0;
    bottom: 0;
    flex-direction: column;
}
.sub-hero-titles {
    padding:
}


/* --- Responsive (About) --- */
@media screen and (max-width: 768px) {
    .wide-image {
    margin: 50px 0 50px;
}
    .feature-item {
    margin: 30px 0;
}
    
    .sub-hero {
        height: 180px;
    }

    .sub-hero-title {
        font-size: 1.8rem;
    }

    /* ジグザグレイアウトを解除 */
    .feature-item, 
    .feature-item.reverse {
        flex-direction: column;
        gap: 20px;
    }

    .feature-text, .feature-img {
        width: 100%;
    }
    
    .service-section {
    padding: 0;
    }
    
    .service-label {
    font-size: 1.3rem;
}

    /* 業務内容の横並びを解除 */
    .service-row,
    .service-row.reverse {
        flex-direction: column;
    }

    .service-image-side {
        height: 200px; /* スマホでは高さを固定して見やすく */
    }

    /* 代表挨拶 */
    .message.section {
    padding: 50px 0;
    }
    .message-flex {
        flex-direction: column-reverse; /* 画像を上に */
        padding: 20px;
    }

    .representative-img {
        width: 60%;
        margin: 0 auto 20px;
    }
}


