/* =========================================
   カラーテーマ
   ========================================= */

:root {
    --main-color: #274f78;
    --sub-color: #3d72a8;
    --accent-color: #c89b3c;

    --bg-color: #edf2f7;
    --section-bg: #f8fbfe;

    --text-color: #333;
    --white: #fff;
}


/* =========================================
   リセット・基本設定
   ========================================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family:
        "Yu Gothic",
        "游ゴシック",
        YuGothic,
        sans-serif;
    line-height: 1.75;
    color: var(--text-color);

    background:
        linear-gradient(
            to bottom,
            #edf2f7,
            #f4f7fa
        );
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    transition: 0.3s;
}


/* =========================================
   ヘッダー
   ========================================= */

.header {
    padding-top: 20px;
}

.header-inner {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.office-name {
    margin: 0 0 10px;
    font-size: 14px;
    color: var(--main-color);
}

.header h1 {
    margin: 0;
    color: var(--main-color);
    font-size: 2.2rem;
}

.tel-link {
    display: inline-block;
    background: var(--main-color);
    color: white;
    padding: 14px 24px;
    border-radius: 10px;
    font-weight: bold;
}

.tel-link:hover {
    background: var(--sub-color);
}

.tel-note {
    margin-top: 8px;
    font-size: 13px;
    text-align: right;
}


/* =========================================
   メインビジュアル
   ========================================= */

.hero {
    overflow: hidden;
    border-radius: 18px;
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.12);
}

.hero-image-wrap {
    display: block;
}

.hero-image {
    width: 100%;
    height: auto;
}


/* =========================================
   ナビゲーション
   ========================================= */

.nav {
    position: sticky;
    top: 0;
    z-index: 999;

    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);

    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav ul {
    display: flex;
    justify-content: center;

    list-style: none;

    margin: auto;
    padding: 0;

    max-width: 1100px;
}

.nav a {
    display: block;
    padding: 18px 22px;

    color: var(--main-color);
    font-weight: bold;
}

.nav a:hover {
    color: var(--sub-color);
}


/* =========================================
   ハンバーガーメニュー
   ========================================= */

.hamburger {
    display: none;
}


/* =========================================
   ボタン
   ========================================= */

.button-primary,
.button-secondary {
    display: inline-block;
    padding: 15px 28px;
    border-radius: 8px;
    font-weight: bold;
}

.button-primary {
    background: var(--accent-color);
    color: white;
}

.button-secondary {
    background: var(--main-color);
    color: white;
}

.button-primary:hover,
.button-secondary:hover {
    opacity: 0.9;
}


/* =========================================
   トップページ共通
   ========================================= */

.main {
    width: 90%;
    max-width: 1100px;
    margin: 50px auto;
}

section {
    margin-bottom: 28px;
}


/* =========================================
   共通セクション
   ========================================= */

.trouble-section,
.strength-section,
.office-section,
.profile-section,
.page-section {
    background: var(--section-bg);
    padding: 42px;

    border-radius: 16px;
    border: 1px solid #dde8f2;

    box-shadow:
        0 4px 14px rgba(60, 90, 120, 0.04);
}


/* =========================================
   共通見出し
   ========================================= */

section h2 {
    position: relative;

    margin-top: 0;
    margin-bottom: 26px;

    padding-left: 18px;

    font-size: 1.9rem;
    color: var(--main-color);
}


/* 見出し左側の茶色いバー */

section h2::before {
    content: "";

    position: absolute;
    left: 0;
    top: 7px;

    width: 6px;
    height: 34px;

    background: var(--accent-color);
    border-radius: 10px;
}


/* =========================================
   お悩み・強み
   ========================================= */

.trouble-grid,
.strength-grid {
    display: grid;
    gap: 20px;
}

.trouble-grid {
    grid-template-columns: repeat(2, 1fr);
}

.strength-grid {
    grid-template-columns: repeat(3, 1fr);
}

.trouble-card,
.strength-card {
    background: white;

    padding: 24px;

    border-radius: 12px;
    border: 1px solid #e2ebf3;
}

.trouble-card {
    border-left: 5px solid var(--accent-color);
    font-weight: bold;
}


/* =========================================
   CTA
   ========================================= */

.cta-section {
    background:
        linear-gradient(
            135deg,
            #3f74aa,
            #2c5d90
        );

    color: white;
    text-align: center;

    padding: 50px;
    border-radius: 16px;
}

.cta-section h2 {
    color: white;
}

.cta-section h2::before {
    display: none;
}


/* =========================================
   サービス一覧
   ========================================= */

.service-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}


/* =========================================
   事務所写真
   ========================================= */

.office-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.office-card {
    background: white;

    border-radius: 14px;
    overflow: hidden;

    border: 1px solid #dce5ee;
}

.office-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.office-card h3 {
    margin: 0;
    padding: 18px;
    color: var(--main-color);
}


/* =========================================
   プロフィール
   ========================================= */

.profile-box {
    display: flex;
    gap: 35px;
    align-items: center;
}

.profile-image img {
    width: 100%;
    max-width: 320px;
    height: auto;

    border-radius: 14px;
    display: block;
}

.profile-content {
    flex: 1;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--main-color);
}


/* =========================================
   プロフィール表
   ========================================= */

.profile-table {
    width: 100%;
    border-collapse: collapse;
}

.profile-table th,
.profile-table td {
    border: 1px solid #dce5ee;
    padding: 14px;
}

.profile-table th {
    background: #f5f8fc;
    width: 180px;
    color: var(--main-color);
}


/* =========================================
   FAQ
   ========================================= */

.faq-item {
    background: white;

    border: 1px solid #dce5ee;
    border-radius: 12px;

    padding: 20px;
    margin-bottom: 15px;
}

.faq-item h3 {
    margin-top: 0;
    color: var(--main-color);
}


/* =========================================
   パンくず
   ========================================= */

.breadcrumb {
    width: 90%;
    max-width: 1100px;
    margin: 25px auto 0;

    font-size: 14px;
}

.breadcrumb a {
    color: var(--sub-color);
}


/* =========================================
   下層ページヘッダー
   ========================================= */

.page-hero {
    background:
        linear-gradient(
            135deg,
            #3d6fa3,
            #274f78
        );

    color: white;
    padding: 70px 20px;
}

.page-hero-inner {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

.page-hero h2 {
    margin: 0 0 15px;
    font-size: 2.4rem;
}

.page-hero p {
    margin: 0;
}


/* =========================================
   下層ページレイアウト
   ========================================= */

.subpage-container {
    width: 90%;
    max-width: 1200px;

    margin: 50px auto;

    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        320px;

    gap: 30px;

    align-items: start;
}

.content-area {
    min-width: 0;
}


/* =========================================
   サイドバー
   ========================================= */

.sidebar {
    position: sticky;
    top: 80px;
    align-self: start;
}

.sidebar-box,
.sidebar-contact {
    background: white;

    border-radius: 14px;
    padding: 24px;
    margin-bottom: 24px;

    border: 1px solid #dce5ee;
}

.sidebar-box h3,
.sidebar-contact h3 {
    margin-top: 0;
    color: var(--main-color);
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 12px;
}

.sidebar-menu a {
    display: block;

    padding: 12px 14px;

    background: #f5f8fc;
    border-radius: 10px;

    color: var(--main-color);
    font-weight: bold;
}

.sidebar-menu a:hover {
    background: var(--main-color);
    color: white;
}

.sidebar-contact {
    text-align: center;
}

.sidebar-tel {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--main-color);
}


/* =========================================
   フロー
   ========================================= */

.flow-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.flow-item {
    display: flex;
    gap: 22px;

    background: white;

    padding: 24px;

    border-radius: 14px;
    border: 1px solid #dfe7ef;
}

.flow-number {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 60px;
    height: 60px;
    min-width: 60px;

    border-radius: 50%;

    background: var(--accent-color);
    color: white;

    font-weight: bold;
}


/* =========================================
   お問い合わせフォーム
   ========================================= */

.contact-form-section {
    padding: 60px 20px;
}

.contact-form-container {
    max-width: 900px;
    margin: 0 auto;
}


/* -----------------------------------------
   お問い合わせフォーム見出し
   ----------------------------------------- */

.contact-form-container h2 {
    position: relative;

    text-align: center;

    color: var(--main-color);

    margin-bottom: 20px;
    padding-bottom: 15px;
}

.contact-form-container h2::after {
    content: "";

    display: block;

    width: 50px;
    height: 3px;

    margin: 12px auto 0;

    background: var(--accent-color);
}


/* -----------------------------------------
   お問い合わせフォーム説明文
   ----------------------------------------- */

.contact-form-lead {
    text-align: center;
    line-height: 1.8;
    margin: 5px 0;
}


/* -----------------------------------------
   Googleフォーム
   ----------------------------------------- */

.google-form {
    max-width: 800px;

    margin: 35px auto 20px;

    background: var(--white);

    border-radius: 8px;
    overflow: hidden;

    box-shadow:
        0 3px 15px rgba(0, 0, 0, 0.08);
}

.google-form iframe {
    display: block;

    width: 100%;
    height: 1246px;

    border: none;
}


/* -----------------------------------------
   お問い合わせ注意書き
   ----------------------------------------- */

.contact-form-note {
    max-width: 800px;

    margin: 15px auto 0;

    font-size: 0.85rem;
    color: #666;
    line-height: 1.7;
}


/* =========================================
   関連ページ
   ========================================= */

.related-pages {
    margin: 60px 0 40px;

    padding: 40px 30px;

    background-color: var(--section-bg);

    border-radius: 8px;
}


/*
   関連ページの見出し

   ※ section h2 の共通設定を使用するため、
   ここでは border-left を指定しない。
   これにより、茶色のバーだけが表示される。
*/

.related-pages h2 {
    margin: 0 0 30px;

    font-size: 1.5rem;
    color: var(--main-color);
}


/* 関連ページカード一覧 */

.related-pages-list {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}


/* 関連ページカード */

.related-card {
    display: block;

    height: 100%;

    padding: 25px 22px;

    background-color: #fff;

    border: 1px solid #d9e2eb;
    border-radius: 8px;

    text-decoration: none;
    color: var(--text-color);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.related-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.08);
}


/* 関連ページカード見出し */

.related-card h3 {
    margin: 0 0 12px;

    padding: 0;

    border: none;
    border-left: none;

    font-size: 1.15rem;

    color: var(--main-color);
}


/* 関連ページカード本文 */

.related-card p {
    margin: 0 0 18px;

    line-height: 1.8;

    font-size: 0.95rem;
}


/* 関連ページカードのリンク表示 */

.related-card-link {
    display: block;

    text-align: right;

    font-size: 0.9rem;
    font-weight: bold;

    color: var(--sub-color);
}


/* =========================================
   フッター
   ========================================= */

.footer {
    background: #1f3c73;
    color: white;
}

.footer-inner {
    max-width: 1100px;

    margin: 0 auto;
    padding: 40px 20px;

    display: flex;
    justify-content: space-between;

    gap: 40px;
}

.footer-info {
    flex: 1;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: bold;
}

.footer-links ul {
    list-style: none;

    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: white;
}

.footer-bottom {
    text-align: center;

    padding: 15px;

    border-top:
        1px solid rgba(255, 255, 255, 0.2);
}


/* =========================================
   固定電話ボタン
   ========================================= */

.fixed-contact {
    position: fixed;

    right: 20px;
    bottom: 20px;

    z-index: 9999;
}

.fixed-contact a {
    display: inline-block;

    background: var(--accent-color);
    color: white;

    padding: 15px 24px;

    border-radius: 999px;

    font-weight: bold;
}


/* =========================================
   タブレット
   ========================================= */

@media (max-width: 992px) {

    .subpage-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

}


/* =========================================
   スマートフォン
   ========================================= */

@media (max-width: 768px) {

    body {
        padding-bottom: 90px;
    }


    /* ヘッダー */

    .top-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .header h1 {
        font-size: 1.7rem;
    }


    /* グリッドを1列にする */

    .trouble-grid,
    .strength-grid,
    .office-grid,
    .service-list {
        grid-template-columns: 1fr;
    }


    /* プロフィール */

    .profile-box {
        flex-direction: column;
    }

    .profile-image img {
        width: 100%;
        max-width: 320px;
        height: auto;

        border-radius: 14px;
        display: block;
    }


    /* フロー */

    .flow-item {
        flex-direction: column;
    }


    /* フッター */

    .footer-inner {
        flex-direction: column;
    }


    /* ナビゲーション */

    .nav ul {
        flex-direction: column;

        max-height: 0;
        overflow: hidden;

        transition: 0.3s;
    }

    .nav ul.active {
        max-height: 700px;
    }


    /* ハンバーガーボタン */

    .hamburger {
        display: block;

        width: 60px;
        height: 60px;

        margin-left: auto;

        background: none;
        border: none;

        position: relative;
    }

    .hamburger span {
        position: absolute;

        left: 15px;

        width: 30px;
        height: 3px;

        background: var(--main-color);

        transition: 0.3s;
    }

    .hamburger span:nth-child(1) {
        top: 18px;
    }

    .hamburger span:nth-child(2) {
        top: 28px;
    }

    .hamburger span:nth-child(3) {
        top: 38px;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg);
        top: 28px;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg);
        top: 28px;
    }


    /* お問い合わせフォーム */

    .contact-form-section {
        padding: 45px 15px;
    }

    .contact-form-lead {
        text-align: left;
    }

    .google-form {
        margin-top: 30px;
        border-radius: 4px;
    }

    .google-form iframe {
        height: 1246px;
    }

}


/* =========================================
   関連ページ・スマートフォン
   ========================================= */

@media (max-width: 767px) {

    .related-pages {
        margin: 40px 0 30px;
        padding: 30px 20px;
    }

    .related-pages h2 {
        font-size: 1.3rem;
    }

    .related-pages-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .related-card {
        padding: 20px;
    }

}