@charset "UTF-8";

/* --- 基本設定 (Reset & Base) --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "游明朝", "Yu Mincho", "游明朝体", "YuMincho", "ヒラギノ明朝 ProN";
    color: #333;
    line-height: 1.6;
    background-color: #f9f9f9;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* --- ヘッダー (Header) --- */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

img.logo {
	height: 40px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #003366; /* 信頼感のあるネイビー */
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.nav-menu a:hover {
    color: #003366;
}

/* --- ヒーローセクション (Hero / Top Image) --- */
.hero {
    /* 黒い半透明の膜（0.4＝40%の濃さ）をかけて、画像を落ち着かせます */
    background-image: url('../img/top.jpg');
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 70px;
}

.hero-content h1 {
    font-size: 2.2rem;
    line-height: 1.4;
    margin-bottom: 15px;
    letter-spacing: 2px;
    color: #ffffff; /* 文字を白に変更 */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* 軽く黒い影を落としてより読みやすく */
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #ffffff; /* 文字を白に変更 */
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #4169E1;
    color: #fff;
    font-weight: bold;
    border-radius: 2px;
}

.btn:hover {
    background-color: #6495ED;
}

/* --- セクション共通 (Common Section) --- */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: #003366;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 55%;
    height: 3px;
    background-color: #9a344d;
    margin: 20px auto 0;
}

/* --- 弁護士紹介 (members) --- */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.members-card {
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: center;
    transition: 0.3s;
}

.members-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.members-card img {
    width: 100%;          /* 基本は親要素に合わせてリサイズ */
    max-width: 200px;     /* ★重要：最大でも200pxまでにする */
    height: auto;         /* 比率を保持 */
    display: block;       /* ブロック要素として扱う */
    margin: 0 auto 15px;  /* 左右中央寄せ（auto） & 下に15pxの隙間 */
}

.members-card h3 {
    margin-bottom: 5px;
    color: #003366;
}

p.text {
	padding: 0px 20px 50px 20px;
}

/* --- 強み・About (Features) --- */
.features {
    background-color: #fff;
}

.features-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
}

.features-text {
    flex: 1;
	padding: 0px 20px;
}

.features-text h3 {
    font-size: 1.5rem;
    margin: 20px 0px;
    color: #003366;
}

.features-image {
    flex: 1;
    min-width: 300px;
}

.features-image img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* FAQバナー画像の調整 */
.faq-banner-img {
    display: block;          /* 余白を正しく効かせるための設定 */
    margin: 80px auto 20px;  /* 上に80px、左右は中央寄せ、下に20pxの余白 */
    max-width: 100%;         /* スマホなどで画面幅をはみ出さないようにする */
    height: auto;            /* 画像の比率を保つ */
    border-radius: 8px;      /* (お好みで) 角を少し丸くする設定 */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* (お好みで) 少し影をつける */
    transition: 0.3s;
}

/* マウスを乗せた時に少しフワッと浮く動き */
.faq-banner-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* --- お問い合わせ (Contact) --- */
.contact-section {
    background-color: #FFFFFF;
    color: #000000;
    text-align: center;
}

.contact-section .section-title {
    color: #003366;
}

.contact-section .section-title::after {
    background-color: #9a344d;
}

/* --- フッター (Footer) --- */
footer {
    background-color: #003366;
    color: #000000;
    padding: 40px 0;
    font-size: 0.9rem;

}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
	color: #aaa;
	justify-content: center;
}

.footer-links {
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
}

.office {
    /* containerクラスのpaddingがあるため、ここではmax-widthは不要 */
    display: flex; /* office-cardを横並びにする */
    justify-content: center; /* 中央に寄せる */
    gap: 50px; /* 事務所セット間の間隔 */
    text-align: center; /* 各事務所の中身を中央寄せにする */
    margin-bottom: 70px; /* 下のリンクとの隙間 */
	padding: 0px 20px;
	width: 60%;
}

.office-card {
    /* 各事務所 */
    width: 45%; /* 均等な幅を確保 */
    padding: 10px;
}

.office-card h2 {
    font-size: 1.1rem;
    font-weight: bold;
    color: #FFFFFF;
    margin-bottom: 5px;
	text-align: left;
}

.office-card p {
    color: #FFFFFF;
    font-size: 0.9rem;
	text-align: left;
}

/* Back to Top ボタン用スタイル */
.back-to-top {
    position: fixed;
    bottom: 20px; /* 画面下から20px */
    right: 20px;  /* 画面右から20px */
    background-color: #c9bc9c;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%; /* 円形にする */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0; /* 最初は非表示 */
    visibility: hidden; /* スクリーンリーダーからも非表示 */
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
}

/* ボタンが表示される時のスタイル */
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: #e7e2d8; /* ホバーで少し明るい色に */
}

/* SVGアイコンのサイズ調整 */
.back-to-top svg {
    width: 24px;
    height: 24px;
    transform: translateY(-2px) rotate(180deg); /* 下向きの矢印を上に回転させる */
    fill: currentColor; /* 親要素の色（白）を継承 */
}


/* スマホ対応 */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
}


/* --- スマホ対応 (Mobile & Hamburger Menu) --- */
/* ハンバーガーメニューボタンの初期設定（PCでは非表示） */
.hamburger {
    display: none;
}

@media (max-width: 768px) {
    /* ヒーローセクションの高さとパディング調整 */
    .hero {
        height: 50vh; /* 高さを抑えて、ボタンはみ出しを防ぐ */
        padding-top: 30px; /* ハンバーガーの下に余裕を持たせるための追加パディング */
    }
    
    /* ヒーローセクションの h1 のスタイルをモバイル向けに最適化 */
    .hero h1 {
        font-size: 24px; /* PC: 48px -> Mobile: 24px */
        line-height: 1.4;
        letter-spacing: normal; /* 文字間隔をリセット */
        margin-bottom: 10px;
    }
    
    .hero-content h1 {
        /* font-size: 2rem; をここで上書き */
        font-size: 24px;
        margin-bottom: 10px;
        letter-spacing: normal;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    /* containerの左右パディングを微調整 */
    .container {
        padding: 0 10px;
    }


    /* --- ハンバーガーメニューのスタイル --- */
    .hamburger {
        display: block;
        position: fixed;
        top: 20px;
        right: 20px;
        width: 30px;
        height: 24px;
        cursor: pointer;
        z-index: 2000; /* メニューより手前に表示 */
    }

    /* 3本線の描画 */
    .hamburger span {
        position: absolute;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: #003366;
        transition: all 0.4s;
    }

    /* 3本線の位置 */
    .hamburger span:nth-child(1) { top: 0; }
    .hamburger span:nth-child(2) { top: 11px; }
    .hamburger span:nth-child(3) { bottom: 0; }

    /* --- クリックされて active クラスがついた時のボタンの変化（×印になる） --- */
    .hamburger.active span:nth-child(1) {
        transform: translateY(11px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0; /* 真ん中の線は消す */
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-11px) rotate(-45deg);
    }

    /* --- ナビゲーションメニュー（スマホ時は隠す設定） --- */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%; /* 最初は画面の右外に隠しておく */
        width: 70%;   /* 画面の70%の幅 */
        height: 100vh;
        background-color: #fff;
        flex-direction: column;
        justify-content: center; /* メニューを縦中央寄せ */
        align-items: center;
        padding-top: 60px;
        transition: all 0.4s;
        z-index: 1500;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    }

    .nav-menu li {
        margin: 15px 0;
    }

    .nav-menu a {
        font-size: 18px;
    }

    /* --- メニューが開いた時（activeクラスがついた時） --- */
    .nav-menu.active {
        right: 0; /* 右から出てくる */
    }

    /* 強みセクションのレイアウト調整 */
    .features-wrapper {
        flex-direction: column;
    }
	
	/* フッターの事務所一覧エリア */
    .office {
        width: 100%;          /* 幅を画面幅に合わせる（PCの60%から変更） */
        flex-direction: column; /* 横並びから縦並びに変更 */
        gap: 40px;            /* 上下の間隔 */
        margin-bottom: 40px;  /* 下の余白調整 */
    }

    /* 各事務所のカード */
    .office-card {
        width: 100%;          /* カードの幅を広げる */
        padding: 0 20px;      /* 横の余白を確保 */
    }

    /* スマホでは文字を中央揃えにする（見栄えを整えるため） */
    .office-card h2,
    .office-card p {
        text-align: center;
    }
}

/* =========================================
   特定の文字をゴシック体にする設定
   ========================================= */

/* トップ画像の文字、各セクションの大・中見出し、ボタン */
.hero-content h1,
.hero-content p,
.section-title,
h3,
.btn {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

/* ただし、チーム紹介の氏名（メンバーカード内のh3）は明朝体に戻す */
.members-card h3 {
    font-family: "游明朝", "Yu Mincho", "游明朝体", "YuMincho", "ヒラギノ明朝 ProN", "Hiragino Mincho ProN", "Noto Serif JP", serif;
}

/* =========================================
   Q&Aページ用スタイル
   ========================================= */

/* ページヘッダー（Q&Aタイトル部分） */
.page-header {
    background-image: linear-gradient(rgba(240, 240, 240, 0.6)), url('../img/faq-header.jpg');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	color: #003366;
	text-align: center;
	text-shadow: 2px 2px 4px rgba(149, 192, 236, 0.6);
    padding: 80px 0 40px; /* ヘッダー分空ける */
    margin-top: 70px;
}

.qa-container {
    max-width: 800px; /* Q&Aは読みやすく幅を少し狭める */
}

/* Q&Aアイテム全体 */
.qa-item {
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: #fff;
    overflow: hidden;
}

/* 質問部分（クリックできるバー） */
.qa-question {
    display: flex;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: #fff;
    transition: background-color 0.3s;
    position: relative;
}

.qa-question:hover {
    background-color: #f4f8fb;
}

/* Qアイコン */
.q-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: #003366;
    color: #fff;
    font-weight: bold;
    border-radius: 50%;
    margin-right: 15px;
    flex-shrink: 0; /* 縮まないようにする */
}

.qa-question p {
    font-weight: bold;
    color: #333;
    flex: 1; /* 横幅いっぱいに広げる */
    margin: 0;
    padding-right: 20px; /* プラスアイコンとの距離 */
}

/* 開閉のプラスアイコン */
.toggle-icon {
    font-size: 24px;
    color: #003366;
    transition: transform 0.3s;
}

/* 回答部分（初期状態は隠す） */
.qa-answer {
    height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s ease-out;
    background-color: #fafafa;
    border-top: 1px solid transparent; /* 閉じてる時は線を見せない */
}

.answer-inner {
    padding: 20px;
    display: flex;
    align-items: flex-start;
}

/* Aアイコン */
.a-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: #cc0000; /* 赤色でアクセント */
    color: #fff;
    font-weight: bold;
    border-radius: 50%;
    margin-right: 15px;
    flex-shrink: 0;
}

/* --- 開いた時のスタイル (JavaScriptで .open クラスがついた時) --- */
.qa-item.open .qa-answer {
    height: auto;
    opacity: 1;
    border-top: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

.qa-item.open .qa-question {
    background-color: #f4f8fb;
}

.qa-item.open .toggle-icon {
    transform: rotate(45deg); /* プラスを回転させてバツにする */
}
/* =========================================
   実際の事業承継の事例セクション
   ========================================= */

.cases-section {
    background-color: #eef3f7; /* 少し背景色をつけてエリアを区切る */
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 横並び・スマホで縦並び */
    gap: 30px;
}

.case-card {
    background: #fff;
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-top: 4px solid #003366; /* 上部にアクセントカラーの線 */
}

.case-card h3 {
    color: #003366;
    margin-bottom: 20px;
    font-size: 1.2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.case-card p {
    font-size: 0.95rem;
    line-height: 1.8;
    text-align: justify; /* 文字の両端揃え */
}

/* スマホでの微調整 */
@media (max-width: 768px) {
    .cases-grid {
        grid-template-columns: 1fr; /* 1列にする */
    }
}

/* =========================================
   費用・プランページ用スタイル
   ========================================= */

/* ページヘッダー（薄い水色バージョン） */
.price-header {
    background-image: linear-gradient(rgba(240, 240, 240, 0.7)), url('../img/price-header.jpg');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	align-items: center;
    padding: 80px 0 40px;
    margin-top: 70px;
}

.price-header h1 {
    font-size: 2rem;
    color: #003366;
	text-shadow: 2px 2px 4px rgba(149, 192, 236, 0.6);
    margin-bottom: 10px;
}

.intro-text {
    margin-bottom: 40px;
}

/* カテゴリタイトル (1) Basic Package 等 */
.price-category-title {
    font-size: 1.2rem;
    color: #333;
    margin: 40px 0 20px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
}

/* --- 料金表のレイアウト --- */
.price-section {
    margin-bottom: 50px;
}

.price-row {
    display: flex;
    margin-bottom: 15px; /* 行ごとの隙間 */
    min-height: 150px;   /* 最低限の高さを確保 */
}

/* 左側：プラン名（濃い紺色） */
.price-name {
    width: 25%;
    background-color: #004d80; /* 画像に近い少し明るめの紺 */
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    font-weight: bold;
    font-size: 1.1rem;
}

/* 中央：詳細内容（薄い水色） */
.price-detail {
    width: 55%;
    background-color: #dce6f1; /* 薄い水色 */
    padding: 30px;
    display: flex;
    align-items: center; /* 上下中央寄せ */
    border-left: 2px solid #fff; /* 白い境界線 */
    border-right: 2px solid #fff;
}

.price-detail ul {
    list-style: disc; /* 黒丸 */
    padding-left: 20px;
}

.price-detail li {
    margin-bottom: 5px;
    font-size: 0.95rem;
}

/* 右側：金額（薄い水色） */
.price-cost {
    width: 20%;
    background-color: #dce6f1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    font-weight: bold;
    font-size: 1.1rem;
}

/* 注釈 */
.price-note {
    font-size: 0.85rem;
    color: #666;
    margin-top: -30px;
}



/* --- スマホ対応 (Mobile) --- */
@media (max-width: 768px) {
    .price-row {
        flex-direction: column; /* 縦並びにする */
        border: 1px solid #ccc;
        margin-bottom: 30px;
    }

    .price-name, .price-detail, .price-cost {
        width: 100%; /* 横幅いっぱいに */
        border: none;
    }

    .price-name {
        padding: 15px;
    }

    .price-detail {
        padding: 20px;
        background-color: #f9f9f9; /* スマホでは少し色を変えて見やすく */
    }

    .price-cost {
        background-color: #eee;
        padding: 15px;
        color: #000000; /* 金額を目立たせる */
    }
}

/* =========================================
   実際の事業承継の事例セクション
   ========================================= */

.cases-section {
    background-color: #eef3f7; /* 少し背景色をつけてエリアを区切る */
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 横並び・スマホで縦並び */
    gap: 30px;
}

.case-card {
    background: #fff;
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-top: 4px solid #003366; /* 上部にアクセントカラーの線 */
}

.case-card h3 {
    color: #003366;
    margin-bottom: 20px;
    font-size: 1.2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.case-card p {
    font-size: 0.95rem;
    line-height: 1.8;
    text-align: justify; /* 文字の両端揃え */
}

/* スマホでの微調整 */
@media (max-width: 768px) {
    .cases-grid {
        grid-template-columns: 1fr; /* 1列にする */
    }
}