/*
Theme Name: 小林事務所 新オリジナルテーマ
Theme URI: https://kobayashi-sr.com/
Author: Web Design Studio
Description: 温かみと信頼感を兼ね備えた社労士事務所用テーマ
Version: 2.0.0
*/

/* ベース設定 */
:root {
    --primary-color: #1b365d;    /* 信頼感のあるディープブルー */
    --accent-color: #d97724;     /* 温かみのあるオレンジ・ゴールド */
    --bg-light: #f9f8f6;         /* ほんのり温かみのあるオフホワイト */
    --text-color: #333333;       /* 読みやすいダークグレー */
}

body {
    font-family: "Helvetica Neue", Arial, "平城角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, sans-serif;
    color: var(--text-color);
    background-color: #ffffff;
    line-height: 1.8;
    margin: 0;
}

/* コンテナ */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヒーロー動画エリア */
.hero-video-section {
    position: relative;
    height: 70vh;
    min-height: 450px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    z-index: 1;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(27, 54, 93, 0.55); /* 青みを帯びた半透明オーバーレイ */
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 15px;
    letter-spacing: 0.05em;
}

.hero-sub {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* ページヘッダー（固定ページ用） */
.page-header-section {
    position: relative;
    padding: 80px 0;
    background-size: cover;
    background-position: center;
    color: #ffffff;
    text-align: center;
}

.page-header-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(27, 54, 93, 0.7);
    z-index: 1;
}

.page-header-section .container {
    position: relative;
    z-index: 2;
}

/* ボタンデザイン（やわらかい丸み） */
.btn-primary {
    display: inline-block;
    background-color: var(--accent-color);
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-primary:hover {
    background-color: #b8601a;
}

/* ==========================================
   温かみと信頼感のあるスタイル設定
   ========================================== */

/* カラー定義 */
:root {
    --color-primary: #1c3d5a;      /* 落ち着いたネイビー（信頼） */
    --color-accent: #e07a5f;       /* 温かみのあるテラコッタ・オレンジ（親しみ） */
    --color-accent-hover: #c86348;
    --color-bg-warm: #fcfbf9;      /* ほんのり温かいオフホワイト */
    --color-text: #333333;
    --color-text-light: #666666;
    --radius-card: 12px;           /* やわらかい角丸 */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.06); /* やさしい影 */
}

body {
    background-color: var(--color-bg-warm);
    color: var(--color-text);
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
    line-height: 1.8;
}

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

/* 共通セクション */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-sub-title {
    display: block;
    color: var(--color-accent);
    font-size: 0.85rem;
    font-weight: bold;
    letter-spacing: 0.15em;
}

.section-title {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-top: 5px;
    position: relative;
}

/* ------------------------------------------
   1. ヒーローセクション（動画全画面対応）
   ------------------------------------------ */
.hero {
    position: relative;
    width: 100%;
    height: 75vh;             /* 画面高さの75%に指定（画面全体なら 100vh に変更） */
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    overflow: hidden;        /* はみ出た動画をカット */
}

/* 動画本体を親要素いっぱいに広げて切り抜く設定 */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%); /* 中央寄せ */
    object-fit: cover;               /* 縦横比を保ったまま領域全体を覆う */
    z-index: 1;
}

.hero-bg-image, .hero-bg-default {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-bg-default {
    background: linear-gradient(135deg, var(--color-primary, #1c3d5a), #2c5282);
}

/* 動画の上のオーバーレイ（半透明の青黒いグラデーション） */
.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(28, 61, 90, 0.5); /* 文字を見やすくするための薄いオーバーレイ */
    z-index: 2;
}

/* キャッチコピー・ボタンなどの文字コンテンツ */
.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    width: 100%;
}

.hero-title {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* ボタン（角を丸めて柔らかく） */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--color-accent);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(224, 122, 95, 0.4);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid #ffffff;
    color: #ffffff;
}

.btn-outline:hover {
    background-color: rgba(255,255,255,0.2);
}

/* ------------------------------------------
   2. 強み（やわらかなカード風デザイン）
   ------------------------------------------ */
.strengths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.strength-card {
    background: #ffffff;
    padding: 35px 25px;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    text-align: center;
    border-top: 4px solid var(--color-accent);
}

.strength-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-accent);
}

.strength-card h3 {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin: 15px 0 10px;
}

.strength-card p {
    font-size: 0.95rem;
    color: var(--color-text-light);
}

/* ------------------------------------------
   3. 業務案内 & アクセス
   ------------------------------------------ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.service-card {
    background: #ffffff;
    padding: 30px;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
}

.service-card h3 {
    color: var(--color-primary);
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.service-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--color-accent);
    font-weight: bold;
    text-decoration: none;
}

.access-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: #ffffff;
    padding: 40px;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
}

@media (max-width: 768px) {
    .access-contact-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 1.75rem;
    }
    .hero-buttons {
        flex-direction: column;
    }
}
/* ==========================================
   ヘッダー（header.php）用スタイル
   ========================================== */

.site-header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}

/* ロゴエリア */
.site-branding .site-title {
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.site-title-main {
    font-size: 0.75rem;
    color: var(--color-text-light, #666);
    letter-spacing: 0.1em;
}

.site-title-sub {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--color-primary, #1c3d5a);
    line-height: 1.2;
}

/* デスクトップナビゲーション */
.desktop-nav .nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

.desktop-nav .nav-menu a {
    text-decoration: none;
    color: var(--color-primary, #1c3d5a);
    font-weight: bold;
    font-size: 0.95rem;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.desktop-nav .nav-menu a:hover {
    color: var(--color-accent, #e07a5f);
    background-color: rgba(224, 122, 95, 0.08); /* ほんのりオレンジの背景 */
}

/* 電話番号エリア */
.header-tel {
    text-align: right;
}

.tel-label {
    display: block;
    font-size: 0.7rem;
    color: var(--color-text-light, #666);
}

.tel-number {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--color-primary, #1c3d5a);
    text-decoration: none;
}

/* モバイル用ハンバーガーボタン（スマホ時のみ表示） */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--color-primary, #1c3d5a);
    transition: 0.3s;
}

.mobile-navigation {
    display: none; /* スマホ用メニュー（初期状態は非表示） */
}

/* スマホ表示（768px以下）の切り替え */
@media (max-width: 768px) {
    .desktop-nav, .header-tel {
        display: none; /* スマホではPCナビと固定TELを隠す */
    }
    
    .menu-toggle {
        display: flex;
    }
}
/* ==========================================
   フッター（footer.php）用スタイル
   ========================================== */

.site-footer {
    background-color: var(--color-primary, #1c3d5a);
    color: #e2e8f0;
    padding: 60px 0 20px;
    margin-top: 60px;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-title {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: bold;
}

.footer-info address {
    font-style: normal;
    line-height: 1.8;
    color: #cbd5e1;
}

.footer-nav h4,
.footer-hours h4 {
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 8px;
}

.footer-nav h4::after,
.footer-hours h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--color-accent, #e07a5f);
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 8px;
}

.footer-menu a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-menu a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-hours p {
    margin: 0;
    line-height: 1.8;
    color: #cbd5e1;
}

.footer-bottom {
    padding-top: 25px;
    text-align: center;
}

.copyright {
    margin: 0;
    font-size: 0.8rem;
    color: #94a3b8;
}

/* スマホ対応 (768px以下) */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
/* ==========================================
   固定ページ共通 & 業務案内ページ用スタイル
   ========================================== */

/* ページヘッダー */
.page-header-section {
    position: relative;
    padding: 70px 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    text-align: center;
}

.page-header-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(28, 61, 90, 0.7); /* テーマカラーに合わせた濃紺透過 */
    z-index: 1;
}

.page-header-section .container {
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: 2rem;
    font-weight: bold;
    margin: 0 0 10px;
    letter-spacing: 0.05em;
}

.page-subtitle {
    font-size: 0.95rem;
    margin: 0;
    opacity: 0.9;
}

/* 業務案内コンテンツ領域 */
.services-page-content {
    padding: 60px 0 80px;
    background-color: var(--color-bg-warm, #fcfbf9);
}

.services-intro {
    background: #ffffff;
    border-left: 5px solid var(--color-accent, #e07a5f);
    padding: 25px 30px;
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.services-intro p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
}

/* サービスボックス（カード） */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.service-box {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid #eee;
}

.service-box-header {
    background: var(--color-primary, #1c3d5a);
    color: #ffffff;
    padding: 18px 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.service-num {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--color-accent, #e07a5f);
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 10px;
    border-radius: 4px;
}

.service-box-header h2 {
    font-size: 1.3rem;
    margin: 0;
    color: #ffffff;
}

.service-box-body {
    padding: 30px;
}

.service-lead {
    font-size: 1rem;
    font-weight: bold;
    color: var(--color-primary, #1c3d5a);
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #ddd;
}

/* チェックリスト形式 */
.service-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-check-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    line-height: 1.6;
    color: #444;
}

.service-check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-accent, #e07a5f);
    font-weight: bold;
    font-size: 1.1rem;
}

.service-check-list li:last-child {
    margin-bottom: 0;
}

/* CTAカード（最下部誘導） */
.service-cta-card {
    margin-top: 50px;
    background: linear-gradient(135deg, #1c3d5a, #2c5282);
    color: #ffffff;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.service-cta-card h3 {
    margin-top: 0;
    font-size: 1.4rem;
    color: #ffffff;
}

.service-cta-card p {
    color: #e2e8f0;
    margin-bottom: 25px;
}

.cta-btn-wrap .btn {
    padding: 14px 40px;
    font-size: 1.05rem;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .service-box-header {
        padding: 15px 20px;
    }
    .service-box-body {
        padding: 20px;
    }
    .page-title {
        font-size: 1.6rem;
    }
}
/* ==========================================
   事務所案内ページ（office）用スタイル
   ========================================== */

/* 代表挨拶・概要カード */
.office-intro-card,
.office-overview-card,
.office-access-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.office-intro-card h2,
.office-overview-card h2,
.office-access-card h2 {
    color: var(--color-primary, #1c3d5a);
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-accent, #e07a5f);
}

.greeting-lead {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--color-primary, #1c3d5a);
    margin-bottom: 20px;
}

/* 事務所概要テーブル */
.office-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.office-table th,
.office-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    text-align: left;
    vertical-align: top;
    line-height: 1.7;
}

.office-table th {
    width: 25%;
    background-color: #f9f8f6;
    color: var(--color-primary, #1c3d5a);
    font-weight: bold;
    white-space: nowrap;
}

.office-table td {
    color: #444;
}

.office-table tr:last-child th,
.office-table tr:last-child td {
    border-bottom: none;
}

.office-services-list {
    margin: 0;
    padding-left: 20px;
}

.office-services-list li {
    margin-bottom: 5px;
}

/* アクセスエリア */
.access-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.access-station {
    font-size: 1.05rem;
    color: var(--color-primary, #1c3d5a);
    margin-bottom: 10px;
}

.access-desc {
    color: #666;
    margin: 0;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .office-intro-card,
    .office-overview-card,
    .office-access-card {
        padding: 20px;
    }
    
    .office-table th,
    .office-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    
    .office-table th {
        background-color: transparent;
        padding-bottom: 5px;
        color: var(--color-accent, #e07a5f);
    }
    
    .office-table td {
        padding-top: 0;
        padding-bottom: 20px;
    }
}
/* ==========================================
   プロフィールページ（profile）用スタイル
   ========================================== */

.profile-main-card,
.profile-section-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.profile-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.profile-sub {
    font-size: 0.85rem;
    color: var(--color-accent, #e07a5f);
    font-weight: bold;
    display: block;
    letter-spacing: 0.05em;
}

.profile-name {
    font-size: 1.8rem;
    color: var(--color-primary, #1c3d5a);
    margin: 5px 0 10px;
}

.profile-kana {
    font-size: 1.1rem;
    font-weight: normal;
    color: #666;
}

.profile-qualification {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--color-accent, #e07a5f);
}

.profile-bio-text h3 {
    color: var(--color-primary, #1c3d5a);
    font-size: 1.25rem;
    margin-top: 25px;
    margin-bottom: 15px;
}

.profile-bio-text p {
    line-height: 1.8;
    color: #444;
}

/* タイムライン */
.profile-timeline {
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile-timeline li {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px dashed #eee;
}

.profile-timeline li:last-child {
    border-bottom: none;
}

.timeline-date {
    width: 140px;
    font-weight: bold;
    color: var(--color-primary, #1c3d5a);
    flex-shrink: 0;
}

.timeline-content {
    color: #444;
}

/* チェックリスト */
.profile-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile-check-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    color: #444;
}

.profile-check-list li::before {
    content: "●";
    position: absolute;
    left: 0;
    color: var(--color-accent, #e07a5f);
    font-size: 0.8rem;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .profile-grid-2col {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .profile-timeline li {
        flex-direction: column;
        gap: 5px;
    }
    .timeline-date {
        width: 100%;
        color: var(--color-accent, #e07a5f);
    }
}
/* ==========================================
   プロフィール・事務所案内（profile）完全対応CSS
   ========================================== */

.profile-main-card,
.profile-section-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

/* レイアウト */
.profile-flex-layout {
    display: flex;
    gap: 35px;
    align-items: flex-start;
}

/* ==========================================
   所長写真エリアのシンプル化（角丸加工）
   ========================================== */

.profile-photo-wrap {
    width: 250px;
    flex-shrink: 0;
}

/* 枠や背景を消し、写真自体をきれいに角丸にする */
.photo-placeholder {
    width: 100%;
    background: transparent;  /* 余計な背景色を無効化 */
    border: none;             /* 破線枠を消去 */
    border-radius: 0;
    padding: 0;
}

/* 実際の写真画像に対するスタイル */
.photo-placeholder img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;      /* 画像本体を角丸に加工 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* ほんのり上品な影をプラス */
}

/* ダミーテキスト用（写真未登録時のみ適用） */
.photo-dummy-text {
    text-align: center;
    color: #64748b;
    padding: 20px;
    background-color: #f2f4f7;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
}

.profile-intro-text {
    flex-grow: 1;
}

.profile-sub {
    font-size: 0.85rem;
    color: var(--color-accent, #e07a5f);
    font-weight: bold;
    display: block;
    letter-spacing: 0.05em;
}

.profile-name {
    font-size: 1.8rem;
    color: var(--color-primary, #1c3d5a);
    margin: 5px 0 8px;
}

.profile-qualification {
    font-size: 0.95rem;
    color: #666;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-accent, #e07a5f);
}

.profile-message-body p {
    line-height: 1.85;
    color: #444;
    margin-bottom: 12px;
}

/* 経営理念カード */
.concept-card {
    background: linear-gradient(135deg, #ffffff, #fcfbf9);
    border-left: 5px solid var(--color-accent, #e07a5f);
}

.concept-lead {
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--color-primary, #1c3d5a);
    margin-bottom: 15px;
    line-height: 1.7;
}

/* 2列カード */
.profile-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.sub-card-title {
    font-size: 1.05rem;
    color: var(--color-primary, #1c3d5a);
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
    margin-bottom: 12px;
}

/* 経歴タイムライン */
.profile-timeline {
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile-timeline li {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px dashed #eee;
}

.profile-timeline li:last-child {
    border-bottom: none;
}

.timeline-label {
    width: 120px;
    font-weight: bold;
    color: var(--color-primary, #1c3d5a);
    flex-shrink: 0;
}

.timeline-content {
    color: #444;
}

/* 参加団体・著書リスト */
.profile-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile-check-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    line-height: 1.6;
    color: #444;
}

.profile-check-list li::before {
    content: "■";
    position: absolute;
    left: 0;
    color: var(--color-accent, #e07a5f);
    font-size: 0.8rem;
}

/* 所在地 & 写真ギャラリー */
.office-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.office-name-head {
    font-size: 1.2rem;
    color: var(--color-primary, #1c3d5a);
    margin-top: 0;
    margin-bottom: 10px;
}

.station-badge {
    display: inline-block;
    background-color: var(--color-bg-warm, #fcfbf9);
    color: var(--color-accent, #e07a5f);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
    border: 1px solid var(--color-accent, #e07a5f);
    margin-top: 5px;
}

.tel-fax-box {
    margin: 15px 0;
    background: #f9f8f6;
    padding: 12px 18px;
    border-radius: 6px;
}

.tel-fax-box p {
    margin: 3px 0;
    font-size: 1.05rem;
    color: var(--color-primary, #1c3d5a);
}

.staff-note {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.profile-office-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.photo-placeholder-sm {
    width: 100%;
    height: 140px;
    background-color: #f2f4f7;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 0.85rem;
}

.photo-placeholder-sm img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* スマホ対応 (768px以下) */
@media (max-width: 768px) {
    .profile-flex-layout {
        flex-direction: column;
        align-items: center;
    }

    .profile-photo-wrap {
        width: 200px;
        margin-bottom: 20px;
    }

    .profile-grid-2col,
    .office-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .profile-timeline li {
        flex-direction: column;
        gap: 4px;
    }

    .timeline-label {
        width: 100%;
        color: var(--color-accent, #e07a5f);
    }
}
/* ==========================================
   報酬表ページ（fees）用デザインCSS
   ========================================== */

/* カード＆セクション枠 */
.fees-intro-card,
.fees-section-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.fees-intro-card {
    border-left: 5px solid var(--color-accent, #e07a5f);
}

.fees-intro-card p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
}

/* 見出しスタイル */
.fees-section-card h2 {
    color: var(--color-primary, #1c3d5a);
    font-size: 1.35rem;
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-accent, #e07a5f);
}

.fees-section-card h3 {
    color: var(--color-primary, #1c3d5a);
    font-size: 1.1rem;
    margin-top: 30px;
    margin-bottom: 12px;
    position: relative;
    padding-left: 12px;
}

.fees-section-card h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    background-color: var(--color-accent, #e07a5f);
    border-radius: 2px;
}

.fees-sub-note {
    color: #666;
    font-size: 0.9rem;
    margin-top: -10px;
    margin-bottom: 20px;
}

/* 顧問特典バナー */
.spot-banner {
    background-color: #fcfbf9;
    border: 1px dashed var(--color-accent, #e07a5f);
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.spot-banner p {
    margin: 0;
    color: var(--color-accent, #e07a5f);
    font-size: 0.95rem;
}

/* テーブル横スクロール対応ラップ */
.table-scroll-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 15px;
}

/* テーブルデザイン */
.fees-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px; /* 横幅が小さくなりすぎないように保持 */
    font-size: 0.95rem;
}

.fees-table th,
.fees-table td {
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    text-align: center;
    line-height: 1.5;
}

.fees-table thead th,
.fees-table tbody th {
    background-color: #f8fafc;
    color: var(--color-primary, #1c3d5a);
    font-weight: bold;
    white-space: nowrap;
}

.fees-table tbody td {
    color: #333;
    background-color: #ffffff;
}

.fees-table tr:nth-child(even) td {
    background-color: #fafafa; /* ゼブラ柄で視認性を向上 */
}

.fees-table td.align-center {
    text-align: center;
}

.fees-table td.v-middle {
    vertical-align: middle;
}

.table-caption {
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
    margin-bottom: 20px;
}

.fees-notice {
    margin-top: 25px;
    font-size: 0.9rem;
    color: #e07a5f;
    font-weight: bold;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .fees-intro-card,
    .fees-section-card {
        padding: 20px;
    }

    .fees-section-card h2 {
        font-size: 1.2rem;
    }

    .fees-table th,
    .fees-table td {
        padding: 10px 8px;
        font-size: 0.85rem;
    }
}
/* ==========================================
   スマホ表示（768px以下）のレイアウト・余白最適化
   ========================================== */

@media (max-width: 768px) {
    /* 1. 全体コンテナの左右余白を縮小（幅をしっかり確保） */
    .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    /* 2. メインコンテンツ領域の上下パディングを詰める */
    .services-page-content,
    .main-content {
        padding: 30px 0 !important;
    }

    /* 3. 各種カード（カード枠）の内側余白をスリム化 */
    .profile-main-card,
    .profile-section-card,
    .fees-section-card,
    .office-intro-card,
    .office-overview-card {
        padding: 20px 15px !important; /* 上下20px、左右15pxに縮小 */
        margin-bottom: 20px !important;
        border-radius: 8px !important;
    }

    /* 4. スマホ時のレイアウト（縦並び配置） */
    .profile-flex-layout {
        flex-direction: column !important;
        align-items: center !important;
        gap: 15px !important; /* 写真とテキストの間の余白を短縮 */
    }

    /* 5. プロフィール写真枠のサイズ＆無駄な上下余白を完全カット */
    .profile-photo-wrap {
        width: 100% !important;
        max-width: 180px !important; /* 写真が大きくなりすぎない適正サイズ */
        margin: 0 auto 10px auto !important; /* 上下の無駄な隙間を排除 */
    }

    .photo-placeholder {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        aspect-ratio: auto !important; /* 縦長アスペクト比を解除 */
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
        border: none !important;
    }

    .photo-placeholder img {
        width: 100% !important;
        height: auto !important;
        max-height: 220px !important; /* 縦長写真の上限高さを制限 */
        object-fit: cover !important;
        border-radius: 10px !important;
        display: block !important;
        margin: 0 auto !important;
    }

    /* 6. テキスト見出し・文章の最適化 */
    .profile-intro-text {
        width: 100% !important;
    }

    .profile-name {
        font-size: 1.5rem !important;
        margin: 5px 0 !important;
    }

    .profile-qualification {
        margin-bottom: 15px !important;
        padding-bottom: 8px !important;
    }

    .profile-message-body p {
        font-size: 0.95rem !important;
        line-height: 1.75 !important;
        margin-bottom: 10px !important;
    }
}
/* ==========================================
   リンクページ（links）用デザインCSS
   ========================================== */

.links-intro-card,
.links-section-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.links-intro-card {
    border-left: 5px solid var(--color-accent, #e07a5f);
}

.links-intro-card p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
}

.links-section-card h2 {
    color: var(--color-primary, #1c3d5a);
    font-size: 1.35rem;
    margin-top: 0;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-accent, #e07a5f);
}

/* リンクカードのグリッドレイアウト */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* 個別リンクカードスタイル */
.link-card {
    display: block;
    background-color: #fcfbf9;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.link-card:hover {
    background-color: #ffffff;
    border-color: var(--color-accent, #e07a5f);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(224, 122, 95, 0.12);
}

.link-category {
    font-size: 0.75rem;
    font-weight: bold;
    color: var(--color-accent, #e07a5f);
    background: rgba(224, 122, 95, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 8px;
}

.link-title {
    font-size: 1.1rem;
    color: var(--color-primary, #1c3d5a);
    margin: 0 0 6px 0;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.external-icon {
    font-size: 0.9rem;
    color: #94a3b8;
    transition: color 0.3s ease;
}

.link-card:hover .external-icon {
    color: var(--color-accent, #e07a5f);
}

.link-url {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0;
    word-break: break-all;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .links-intro-card,
    .links-section-card {
        padding: 20px 15px !important;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
    }
}
/* リンクページ内の自動挿入pタグの余計な隙間をカット */
.links-section-card p:empty,
.links-grid > p {
    display: none !important;
}

.links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.links-list li {
    margin-bottom: 12px;
}

.links-list p {
    margin: 0 !important;
    padding: 0 !important;
}
/* ==========================================
   労務Q&Aページ（qa）用デザインCSS
   ========================================== */

.qa-intro-card,
.qa-section-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.qa-intro-card {
    border-left: 5px solid var(--color-accent, #e07a5f);
}

.qa-intro-card p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
}

.qa-section-card h2 {
    color: var(--color-primary, #1c3d5a);
    font-size: 1.35rem;
    margin-top: 0;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-accent, #e07a5f);
}

/* 自動挿入される空pタグの非表示化 */
.qa-list > p,
.qa-item > p {
    display: none !important;
}

.qa-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Q&A 個別ボックス */
.qa-item {
    background-color: #fcfbf9;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.qa-item:hover {
    border-color: var(--color-accent, #e07a5f);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* 質問ヘッダー部分 */
.qa-header {
    background-color: #ffffff;
    padding: 18px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 12px;
}

.qa-badge {
    font-size: 0.75rem;
    font-weight: bold;
    color: var(--color-accent, #e07a5f);
    background: rgba(224, 122, 95, 0.1);
    padding: 3px 10px;
    border-radius: 4px;
    flex-shrink: 0;
}

.qa-question {
    font-size: 1.05rem;
    color: var(--color-primary, #1c3d5a);
    margin: 0;
    line-height: 1.5;
    position: relative;
    padding-left: 28px;
    font-weight: bold;
}

/* 「Q」アイコンマーク */
.qa-question::before {
    content: "Q";
    position: absolute;
    left: 0;
    top: -1px;
    color: var(--color-accent, #e07a5f);
    font-size: 1.2rem;
    font-weight: 900;
}

/* 回答部分 */
.qa-answer {
    padding: 20px 20px 20px 48px;
    position: relative;
    background-color: #fcfbf9;
}

/* 「A」アイコンマーク */
.qa-answer::before {
    content: "A";
    position: absolute;
    left: 20px;
    top: 18px;
    color: var(--color-primary, #1c3d5a);
    font-size: 1.2rem;
    font-weight: 900;
}

.qa-answer p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #444;
}

/* スマホ表示（768px以下）の微調整 */
@media (max-width: 768px) {
    .qa-intro-card,
    .qa-section-card {
        padding: 20px 15px !important;
    }

    .qa-header {
        padding: 14px 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .qa-question {
        font-size: 0.95rem;
        padding-left: 24px;
    }

    .qa-question::before {
        font-size: 1.1rem;
    }

    .qa-answer {
        padding: 15px 15px 15px 38px;
    }

    .qa-answer::before {
        left: 15px;
        top: 14px;
        font-size: 1.1rem;
    }

    .qa-answer p {
        font-size: 0.9rem;
    }
}

/* ==========================================
   投稿個別ページ（single.php）用スタイル
   ========================================== */

.single-main-content {
    padding: 60px 0 80px;
    background-color: var(--color-bg-warm, #fcfbf9);
}

.page-header-cat {
    display: inline-block;
    background: var(--color-accent, #e07a5f);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 3px 12px;
    border-radius: 4px;
    margin-bottom: 10px;
}

/* 記事カード本体 */
.single-post-article {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

/* アイキャッチ画像 */
.single-post-thumbnail {
    margin-bottom: 30px;
    text-align: center;
}

.single-post-thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* 記事本文内の見た目 */
.entry-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #333;
}

.entry-content h2 {
    color: var(--color-primary, #1c3d5a);
    font-size: 1.4rem;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-accent, #e07a5f);
}

.entry-content h3 {
    color: var(--color-primary, #1c3d5a);
    font-size: 1.2rem;
    margin-top: 30px;
    margin-bottom: 15px;
    padding-left: 12px;
    border-left: 4px solid var(--color-accent, #e07a5f);
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}

/* 前後の記事ナビゲーション */
.post-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.post-navigation a {
    color: var(--color-primary, #1c3d5a);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.post-navigation a:hover {
    color: var(--color-accent, #e07a5f);
}

.btn-outline-dark {
    border: 1px solid var(--color-primary, #1c3d5a);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.85rem !important;
}

/* スマホ表示対応 */
@media (max-width: 768px) {
    .single-main-content {
        padding: 30px 0 !important;
    }

    .single-post-article {
        padding: 20px 15px !important;
    }

    .entry-content {
        font-size: 0.95rem;
    }

    .post-navigation {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
/* ==========================================
   フォールバックテンプレート（index.php）用スタイル
   ========================================== */

/* index.php の投稿一覧コンテナ */
main .container,
.main-content .container {
    padding-top: 40px;
    padding-bottom: 60px;
}

/* 記事カード */
.archive-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.archive-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* タイトル */
.archive-item h2 {
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.4;
}

.archive-item h2 a {
    color: var(--color-primary, #1c3d5a);
    text-decoration: none;
    transition: color 0.3s ease;
}

.archive-item h2 a:hover {
    color: var(--color-accent, #e07a5f);
}

/* 投稿日時 */
.entry-meta {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 15px;
}

/* アイキャッチ画像 */
.entry-thumb {
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 8px;
}

.entry-thumb img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* 抜粋テキスト */
.entry-excerpt {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.7;
}

.entry-excerpt p {
    margin: 0;
}

/* ページネーション */
.pagination,
.navigation.pagination {
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination a,
.pagination .current {
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid #ddd;
    color: var(--color-primary, #1c3d5a);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background-color: var(--color-bg-warm, #fcfbf9);
    border-color: var(--color-accent, #e07a5f);
    color: var(--color-accent, #e07a5f);
}

.pagination .current {
    background: var(--color-primary, #1c3d5a);
    color: #ffffff;
    border-color: var(--color-primary, #1c3d5a);
}

/* スマホ表示対応 (768px以下) */
@media (max-width: 768px) {
    .archive-item {
        padding: 20px 15px !important;
        margin-bottom: 15px;
    }

    .archive-item h2 {
        font-size: 1.1rem;
    }

    .entry-excerpt {
        font-size: 0.9rem;
    }
}

/* ==========================================
   ヘッダーの中画面（992px〜1200px）レイアウト最適化
   ========================================== */

/* 1. メニューテキストの勝手な改行を防止 */
.nav-menu li a,
.main-navigation a {
    white-space: nowrap !important; /* 絶対に途中で改行させない */
}

/* 2. 1200px以下でヘッダー要素の余白や文字サイズをスリム化 */
@media (max-width: 1200px) and (min-width: 769px) {
    
    /* インナーコンテナのパディング調整 */
    .header-inner {
        padding-left: 15px !important;
        padding-right: 15px !important;
        gap: 15px !important; /* 要素間の隙間を詰める */
    }

    /* ロゴのコンパクト化 */
    .site-branding .site-title-main {
        font-size: 0.75rem !important;
    }
    .site-branding .site-title-sub {
        font-size: 1.1rem !important;
    }

    /* メニューリストの余白調整 */
    .nav-menu {
        gap: 12px !important; /* メニュー項目同士の間隔を縮小 */
    }

    .nav-menu li a {
        font-size: 0.88rem !important; /* 文字サイズをほんの少しだけスリム化 */
        padding: 4px 0 !important;
    }

    /* TELエリアのコンパクト化 */
    .header-tel {
        flex-shrink: 0; /* つぶれ防止 */
    }
    
    .header-tel .tel-label {
        font-size: 0.7rem !important;
        margin-bottom: 2px !important;
    }

    .header-tel .tel-number {
        font-size: 0.95rem !important;
        font-weight: bold;
    }
}
/* ========================================
   モバイルナビ（スムーズアニメーション＆半透明背景）
   ======================================== */
.mobile-navigation {
    display: block !important; /* 常時ブロックにしてopacityとvisibilityで制御 */
    position: fixed;
    top: 80px; /* ヘッダーの高さ */
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(100vh - 80px);
    
    /* ほんのり透過させた白背景（すりガラス効果付き） */
    background-color: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(8px); /* 対応ブラウザで背景を綺麗にぼかす */
    -webkit-backdrop-filter: blur(8px);
    
    padding: 40px 30px;
    z-index: 9999 !important;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    
    /* 初期状態（非表示・少し上に配置） */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    
    /* スムーズなアニメーション設定（0.3秒で滑らかに出現） */
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

/* メニュー開時（JSで.activeが付与された時） */
.mobile-navigation.active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-menu li {
    margin-bottom: 20px;
    border-bottom: 1px dashed #e2e8f0;
    padding-bottom: 12px;
}

.mobile-nav-menu a {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-primary, #1c3d5a);
    text-decoration: none;
    display: block;
    transition: color 0.2s ease;
}

.mobile-nav-menu a:hover {
    color: var(--color-accent, #e07a5f);
}

.mobile-tel {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid var(--color-primary, #1c3d5a);
}

.mobile-tel a {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-primary, #1c3d5a);
    text-decoration: none;
}
/* アニメーション */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   ハンバーガーボタン（三本線 → ×アニメーション）
   ======================================== */

/* ボタン本体のベーススタイル */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10000 !important; /* メニュー背景の上に確実に配置 */
    position: relative;
}

/* 三本線の基本スタイル */
.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary, #1c3d5a);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
    transform-origin: center;
}

/* メニュー開時（.activeクラス付与時）の「×」変形アニメーション */

/* 1本目（上の線）：45度回転して右下がりの斜め線に */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

/* 2本目（中央の線）：消去 */
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

/* 3本目（下の線）：-45度回転して右上がりの斜め線に */
.menu-toggle.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}
/* 2. スマホ・タブレット表示（768px以下）のみボタンを表示 */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex !important; /* スマホ画面で出現 */
    }
}
/* 事務所情報テーブル */
.office-info-table-wrap {
    margin-top: 20px;
}

.office-info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.office-info-table th,
.office-info-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
    line-height: 1.6;
}

.office-info-table th {
    width: 25%;
    min-width: 100px;
    background-color: #f8fafc;
    color: var(--color-primary, #1c3d5a);
    font-weight: bold;
    text-align: left;
    vertical-align: top;
    white-space: nowrap;
}

.office-info-table td {
    color: #333;
    background-color: #ffffff;
}

/* スマホ表示対応 (768px以下) */
@media (max-width: 768px) {
    .office-info-table th,
    .office-info-table td {
        display: block;
        width: 100%;
        padding: 10px 12px;
    }

    .office-info-table th {
        background-color: transparent;
        color: var(--color-primary, #1c3d5a);
        padding-bottom: 2px;
        border-bottom: none;
    }

    .office-info-table td {
        padding-top: 0;
        margin-bottom: 10px;
    }
}