/* 
名古屋浮気調査探偵社チカタン ウェブサイト
メインスタイルシート（ロゴサイズ最適化・余白削除版）
*/

/* ===== 基本設定 ===== */
:root {
    /* カラーパレット */
    --primary: #0a3055;      /* ネイビー（メインカラー） */
    --primary-dark: #051f38; /* ダークネイビー */
    --primary-light: #1a4d7c; /* ライトネイビー */
    --secondary: #0a4d3c;    /* ダークグリーン（アクセントカラー） */
    --secondary-dark: #053025; /* ダークグリーン（濃い） */
    --secondary-light: #1a6e59; /* ダークグリーン（薄い） */
    --accent: #c89b3c;       /* ゴールド（アクセントカラー） */
    --text-dark: #333333;    /* 濃いテキスト色 */
    --text-medium: #666666;  /* 中間テキスト色 */
    --text-light: #999999;   /* 薄いテキスト色 */
    --bg-light: #f5f5f5;     /* 薄い背景色 */
    --bg-white: #ffffff;     /* 白背景 */
    --border-color: #dddddd; /* ボーダー色 */
    --error: #d32f2f;        /* エラー色 */
    --success: #388e3c;      /* 成功色 */

    /* フォントファミリー */
    --font-sans: 'Noto Sans JP', sans-serif;
    --font-serif: 'Noto Serif JP', serif;

    /* フォントサイズ */
    --font-xs: 0.75rem;   /* 12px */
    --font-sm: 0.875rem;  /* 14px */
    --font-base: 1rem;    /* 16px */
    --font-md: 1.125rem;  /* 18px */
    --font-lg: 1.25rem;   /* 20px */
    --font-xl: 1.5rem;    /* 24px */
    --font-2xl: 1.875rem; /* 30px */
    --font-3xl: 2.25rem;  /* 36px */
    --font-4xl: 3rem;     /* 48px */

    /* スペーシング */
    --space-xs: 0.25rem;  /* 4px */
    --space-sm: 0.5rem;   /* 8px */
    --space-md: 1rem;     /* 16px */
    --space-lg: 1.5rem;   /* 24px */
    --space-xl: 2rem;     /* 32px */
    --space-2xl: 3rem;    /* 48px */
    --space-3xl: 4rem;    /* 64px */

    /* ブレークポイント */
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;

    /* その他 */
    --border-radius: 4px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* ===== リセットとベース ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: var(--font-base);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: var(--space-md);
}

p {
    margin-top: 0;
    margin-bottom: var(--space-md);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-light);
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

ul, ol {
    padding-left: var(--space-lg);
    margin-top: 0;
    margin-bottom: var(--space-md);
}

/* ===== ユーティリティクラス ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-md);
    padding-right: var(--space-md);
}

.section-padding {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-primary {
    background-color: var(--primary);
    color: var(--bg-white);
}

.bg-secondary {
    background-color: var(--secondary);
    color: var(--bg-white);
}

.text-center {
    text-align: center;
}

.text-accent {
    color: var(--accent);
}

.highlight {
    color: var(--accent);
    font-weight: 700;
}

.section-title {
    font-size: var(--font-2xl);
    margin-bottom: var(--space-lg);
    text-align: center;
    position: relative;
    padding-bottom: var(--space-md);
    padding-left: 0;
    padding-right: 0;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent);
}

.section-subtitle {
    font-size: var(--font-md);
    text-align: center;
    margin-top: calc(-1 * var(--space-md));
    margin-bottom: var(--space-xl);
    color: var(--text-medium);
}

.section-header {
    margin-bottom: var(--space-xl);
}

.section-footer {
    margin-top: var(--space-xl);
}

/* ===== ボタン ===== */
.btn {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--font-base);
    line-height: 1.5;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--bg-white);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--bg-white);
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    color: var(--bg-white);
}

.btn-accent {
    background-color: var(--accent);
    color: var(--text-dark);
}

.btn-accent:hover {
    background-color: #b58a2e;
    color: var(--text-dark);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--bg-white);
}

.btn-large {
    padding: var(--space-md) var(--space-xl);
    font-size: var(--font-lg);
}

.btn-sm {
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--font-sm);
}

/* ===== ヘッダー ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--bg-white);
    box-shadow: var(--box-shadow);
}

/* ヘッダー内部の余白を削減 */
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0;
    padding-bottom: 0;
}

/* ロゴのスタイル変更 - 基本サイズと余白削除 */
.header-logo {
    width: 100%;
    max-width: 300px;
    text-align: center;
    padding: 0;
    margin: 0;
}

.header-logo img {
    height: auto;
    width: 100%;
    max-width: 300px;
    display: block;
}

.header-contact {
    text-align: right;
}

.header-tel {
    font-size: var(--font-xl);
    font-weight: 700;
    margin: 0;
}

.header-tel a {
    color: var(--primary);
}

.header-tel a:hover {
    color: var(--primary-light);
}

.header-hours {
    font-size: var(--font-sm);
    color: var(--text-medium);
    margin: var(--space-xs) 0;
}

.header-buttons {
    margin-top: var(--space-sm);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    margin: 5px 0;
    transition: var(--transition);
}

.global-nav {
    background-color: var(--primary);
    display: none; /* PC版では非表示 */
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: space-between;
}

.nav-list li {
    position: relative;
}

.nav-list a {
    display: block;
    padding: var(--space-md);
    color: var(--bg-white);
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
}

.nav-list a:hover {
    background-color: var(--primary-light);
    color: var(--bg-white);
}

/* ===== メインビジュアル ===== */
.main-visual {
    background-image: linear-gradient(rgba(10, 48, 85, 0.7), rgba(10, 48, 85, 0.7)), url('../images/main-visual.jpg');
    background-size: cover;
    background-position: center;
    color: var(--bg-white);
    padding: var(--space-3xl) 0;
    text-align: center;
}

.main-visual-content {
    max-width: 800px;
    margin: 0 auto;
}

.main-visual-title {
    font-size: var(--font-3xl);
    margin-bottom: var(--space-lg);
    line-height: 1.4;
}

.main-visual-subtitle {
    display: block;
    font-size: var(--font-lg);
    margin-bottom: var(--space-sm);
    color: var(--accent);
}

.main-visual-text {
    font-size: var(--font-lg);
    margin-bottom: var(--space-xl);
}

.main-visual-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* ===== 特徴 ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.feature-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    padding: var(--space-lg);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

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

.feature-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: var(--space-md);
}

.feature-title {
    font-size: var(--font-lg);
    margin-bottom: var(--space-sm);
}

.feature-text {
    color: var(--text-medium);
    margin-bottom: 0;
}

/* ===== 完全成功報酬制プラン ===== */
.success-fee-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.success-fee-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.success-fee-heading {
    font-size: var(--font-xl);
    margin-bottom: var(--space-md);
    color: var(--primary);
}

.comparison-table {
    margin-bottom: var(--space-lg);
}

.comparison-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    margin-bottom: var(--space-sm);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.comparison-header {
    background-color: var(--primary);
    color: var(--bg-white);
    padding: var(--space-sm);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comparison-data {
    padding: var(--space-sm);
    background-color: var(--bg-white);
}

.comparison-data p {
    margin: var(--space-xs) 0;
}

.highlight-row .comparison-header {
    background-color: var(--accent);
    color: var(--text-dark);
}

.highlight-row .comparison-data {
    background-color: rgba(200, 155, 60, 0.1);
}

.success-fee-buttons {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

/* ===== 代表者プロフィール ===== */
.profile-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-xl);
    align-items: center;
}

.profile-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.profile-description {
    margin-bottom: var(--space-lg);
}

.profile-achievements {
    list-style: none;
    padding: 0;
    margin-bottom: var(--space-lg);
}

.profile-achievements li {
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
}

.profile-achievements i {
    color: var(--accent);
    margin-right: var(--space-sm);
}

/* ===== 対応エリア ===== */
.area-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.area-map img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.area-heading {
    font-size: var(--font-lg);
    margin-bottom: var(--space-md);
    color: var(--primary);
}

.area-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

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

.area-list li {
    margin-bottom: var(--space-xs);
}

.area-list a {
    display: block;
    padding: var(--space-xs) 0;
    transition: var(--transition);
}

.area-list a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

/* ===== 事例紹介 ===== */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.case-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.case-header {
    padding: var(--space-md);
    background-color: var(--primary);
    color: var(--bg-white);
    position: relative;
}

.case-tag {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--accent);
    color: var(--text-dark);
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--font-sm);
    font-weight: 600;
    border-bottom-left-radius: var(--border-radius);
}

.case-title {
    margin: 0;
    font-size: var(--font-md);
}

.case-content {
    padding: var(--space-md);
}

.case-text {
    margin-bottom: 0;
}

.case-footer {
    padding: var(--space-md);
    border-top: 1px solid var(--border-color);
    text-align: right;
}

/* ===== お客様の声 ===== */
.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.testimonial-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    padding: var(--space-lg);
    box-shadow: var(--box-shadow);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 5rem;
    color: rgba(200, 155, 60, 0.2);
    font-family: var(--font-serif);
    line-height: 1;
}

.testimonial-content {
    position: relative;
    z-index: 1;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: var(--space-md);
}

.testimonial-author {
    text-align: right;
}

.testimonial-name {
    font-weight: 600;
    color: var(--primary);
    margin: 0;
}

/* ===== よくある質問 ===== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: var(--space-md);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.faq-question {
    background-color: var(--bg-white);
    padding: var(--space-md);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    margin: 0;
    font-size: var(--font-md);
    color: #ffffff;
}

.faq-toggle {
    color: var(--primary);
    transition: var(--transition);
}

.faq-answer {
    padding: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    transition: var(--transition);
    background-color: transparent !important;
    margin: 0 !important;
    border: none !important;
}

.faq-item.active .faq-answer {
    padding: var(--space-md) !important;
    max-height: 500px !important;
    background-color: rgba(245, 245, 245, 0.9) !important;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

/* ===== お問い合わせ ===== */
.contact {
    background-image: linear-gradient(rgba(10, 48, 85, 0.9), rgba(10, 48, 85, 0.9)), url('../images/contact-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--bg-white);
}

.contact .section-title {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
    display: block !important;
}

.contact .section-title::after {
    background-color: var(--bg-white);
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.contact-icon {
    font-size: 2rem;
    color: var(--accent);
}

.contact-details h3 {
    margin-top: 0;
    margin-bottom: var(--space-xs);
    font-size: var(--font-md);
}

.contact-details p {
    margin: var(--space-xs) 0;
}

.contact-large {
    font-size: var(--font-xl);
    font-weight: 700;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* ===== フッター ===== */
.footer {
    background-color: var(--primary-dark);
    color: var(--bg-white);
}

.footer-main {
    padding: var(--space-2xl) 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: var(--space-xl);
}

.footer-logo {
    margin-bottom: var(--space-md);
}

.footer-address {
    margin-bottom: var(--space-md);
    line-height: 1.8;
}

.footer-tel {
    font-size: var(--font-lg);
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.footer-tel a {
    color: var(--bg-white);
}

.footer-social {
    display: flex;
    gap: var(--space-md);
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--bg-white);
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--accent);
    color: var(--text-dark);
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.footer-heading {
    font-size: var(--font-md);
    margin-bottom: var(--space-md);
    color: var(--accent);
    position: relative;
    padding-bottom: var(--space-xs);
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent);
}

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

.footer-links li {
    margin-bottom: var(--space-xs);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--bg-white);
    padding-left: var(--space-xs);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: var(--space-md) 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-copyright {
    margin: 0;
    font-size: var(--font-sm);
}

.footer-bottom-links {
    display: flex;
    gap: var(--space-md);
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-sm);
}

.footer-bottom-links a:hover {
    color: var(--bg-white);
}

/* ===== レスポンシブ対応 ===== */
@media (max-width: 991px) {
    .header-inner {
        flex-wrap: wrap;
    }
    
    /* タブレット表示でのロゴ設定 - 余白削除 */
    .header-logo {
        order: 1;
        width: 100%;
        max-width: 100%;
        text-align: center;
        margin: 0;
        padding: 0;
    }
    
    .header-logo img {
        width: 90%;
        max-width: 100%;
        height: auto;
        margin: 0 auto;
    }
    
    .nav-toggle {
        display: block;
        order: 3;
    }
    
    .header-contact {
        width: 100%;
        order: 2;
        text-align: center;
        margin-top: var(--space-sm);
    }
    
    /* サブページのみ3列×2行ナビゲーション */
    body:not(.top-page) .global-nav {
        display: block !important;
        background-color: transparent !important;
        padding: var(--space-md) !important;
        margin-bottom: var(--space-md) !important;
    }
    
    /* トップページはハンバーガーメニュー制御 */
    body.top-page .global-nav {
        display: none;
        background-color: var(--primary);
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        z-index: 1000;
        padding-top: 80px;
    }
    
    body.top-page .global-nav.active {
        display: block;
    }
    
    /* サブページのみ3列×2行レイアウト */
    body:not(.top-page) .global-nav .nav-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: var(--space-sm);
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    /* トップページは縦並びレイアウト */
    body.top-page .global-nav .nav-list {
        display: flex;
        flex-direction: column;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .global-nav .nav-list li {
        position: relative;
    }
    
    /* サブページのナビゲーションリンク（白背景ボタン） */
    body:not(.top-page) .global-nav .nav-list a {
        display: block;
        background-color: var(--bg-white);
        color: var(--text-dark);
        padding: var(--space-md);
        text-align: center;
        border-radius: var(--border-radius);
        box-shadow: var(--box-shadow);
        font-weight: 500;
        font-size: var(--font-sm);
        transition: var(--transition);
        text-decoration: none;
    }
    
    body:not(.top-page) .global-nav .nav-list a:hover {
        background-color: var(--bg-light);
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    }
    
    /* トップページのナビゲーションリンク（元のスタイル） */
    body.top-page .global-nav .nav-list a {
        display: block;
        color: var(--bg-white);
        padding: var(--space-lg) var(--space-xl);
        text-decoration: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: var(--font-md);
        transition: var(--transition);
    }
    
    body.top-page .global-nav .nav-list a:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    .success-fee-content,
    .profile-content,
    .area-content {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-nav {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    :root {
        --font-2xl: 1.5rem;
        --font-3xl: 1.875rem;
        --space-2xl: 2rem;
        --space-3xl: 3rem;
    }
    
    /* スマートフォンでのセクション余白を大幅削減 */
    .section-padding {
        padding-top: var(--space-md) !important;    /* 16px（48pxから削減） */
        padding-bottom: var(--space-lg) !important; /* 24px（48pxから削減） */
    }
    
    /* サブページの最初のセクションの上部余白をさらに削減 */
    .section-padding:first-of-type {
        padding-top: var(--space-sm) !important; /* 8px */
    }
    
    .main-visual {
        padding: var(--space-2xl) 0;
    }
    
    .main-visual-title {
        font-size: var(--font-2xl);
    }
    
    .main-visual-buttons {
        flex-direction: column;
    }
    
    .area-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-nav {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    /* スマートフォン表示でのロゴ設定 - 余白完全削除 */
    .header-logo {
        width: 100%;
        max-width: 100%;
        text-align: center;
        margin: 0;
        padding: 0;
    }
    
    .header-logo img {
        width: 100%;
        max-width: 100%;
        height: auto;
        margin: 0;
        padding: 0;
        display: block;
    }
    
    .header-inner {
        padding: 0;
    }
}

/* スマートフォンでさらに小さい画面サイズの場合 */
@media (max-width: 480px) {
    /* 小型スマートフォン表示でのロゴ設定 - 余白完全削除 */
    .header-logo {
        width: 100%;
        max-width: 100%;
        text-align: center;
        margin: 0;
        padding: 0;
    }
    
    .header-logo img {
        width: 100%;
        max-width: 100%;
        height: auto;
        margin: 0;
        padding: 0;
        display: block;
    }
    
    .header-inner {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        padding: 0;
    }
    
    /* 電話番号とお問い合わせボタンの余白調整 */
    .header-contact {
        margin-top: 0;
        padding-top: var(--space-sm);
    }
}

/* ===== JavaScript関連スタイル ===== */
.faq-item.active .faq-toggle i {
    transform: rotate(45deg);
}

/* ===== アニメーション ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}



/* ===== 私たちについてセクション ===== */
.about-us {
    padding: 60px 0;
    background: #f8f9fa;
}

.about-us-content {
    text-align: center;
}

.about-us-image {
    width: 100%;
    max-width: 700px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    margin: 30px auto;
    display: block;
}

.about-us-description {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    max-width: 800px;
    margin: 30px auto;
    padding: 0 20px;
}

.about-us-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.about-feature {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.about-feature-icon {
    font-size: 40px;
    color: #2c5282;
    margin-bottom: 15px;
}

.about-feature-title {
    font-size: 18px;
    font-weight: bold;
    color: #2c5282;
    margin-bottom: 10px;
}

.about-feature-text {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .about-us-image {
        width: 95%;
        margin: 20px auto;
    }
    
    .about-us-description {
        font-size: 16px;
        padding: 0 15px;
    }
    
    .about-us-features {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    
    .about-feature {
        padding: 20px;
    }
}


/* ===== 新しい対応エリアセクション ===== */
.areas-grid {
    margin-top: var(--space-xl);
}

.area-category {
    margin-bottom: var(--space-2xl);
}

.area-category-title {
    font-size: var(--font-xl);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--space-lg);
    text-align: center;
    position: relative;
}

.area-category-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: var(--space-sm) auto 0;
}

.area-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.area-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: var(--space-lg);
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.area-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.area-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.area-name {
    font-size: var(--font-lg);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

.area-description {
    font-size: var(--font-sm);
    color: var(--text-medium);
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

.area-link {
    display: inline-block;
    background: var(--primary);
    color: var(--bg-white);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.area-link:hover {
    background: var(--primary-dark);
    color: var(--bg-white);
    text-decoration: none;
}

/* タブレット表示 */
@media (max-width: 992px) {
    .area-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
}

/* スマートフォン表示 */
@media (max-width: 768px) {
    .area-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }
    
    .area-card {
        padding: var(--space-md);
    }
    
    .area-icon {
        font-size: 2rem;
        margin-bottom: var(--space-sm);
    }
    
    .area-name {
        font-size: var(--font-base);
        margin-bottom: var(--space-xs);
    }
    
    .area-description {
        font-size: var(--font-xs);
        margin-bottom: var(--space-md);
    }
    
    .area-link {
        padding: var(--space-xs) var(--space-md);
        font-size: var(--font-xs);
    }
}

/* 小さなスマートフォン表示 */
@media (max-width: 480px) {
    .area-cards {
        gap: var(--space-xs);
    }
    
    .area-card {
        padding: var(--space-sm);
    }
    
    .area-icon {
        font-size: 1.5rem;
    }
    
    .area-name {
        font-size: var(--font-sm);
    }
    
    .area-description {
        font-size: 0.7rem;
        margin-bottom: var(--space-sm);
    }
}


/* 地図表示エリア */
.areas-maps {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 2rem !important;
    margin-bottom: 2rem !important;
}

.area-map-section {
    text-align: center;
}

.area-map-title {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    color: #2c5aa0 !important;
    margin-bottom: 1rem !important;
}

.area-map-container {
    background: white !important;
    border-radius: 8px !important;
    padding: 1rem !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.area-map-container:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
}

.area-map-image {
    width: 100% !important;
    height: auto !important;
    max-width: 400px !important;
    border-radius: 4px !important;
}

/* タブレット表示 */
@media (max-width: 768px) {
    .areas-maps {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .area-map-title {
        font-size: var(--font-base);
    }
    
    .area-map-container {
        padding: var(--space-sm);
    }
    
    .area-map-image {
        max-width: 350px;
    }
}

/* スマートフォン表示 */
@media (max-width: 480px) {
    .areas-maps {
        gap: var(--space-md);
    }
    
    .area-map-title {
        font-size: var(--font-sm);
        margin-bottom: var(--space-sm);
    }
    
    .area-map-container {
        padding: var(--space-xs);
    }
    
    .area-map-image {
        max-width: 300px;
    }
}



/* ===== サブページ専用デザインコンポーネント ===== */

/* ページタイトル（H1）の装飾 */
.page-title {
    font-size: var(--font-3xl);
    color: var(--primary);
    text-align: center;
    margin-bottom: var(--space-xl);
    position: relative;
    font-weight: 700;
    font-family: var(--font-serif);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: var(--space-xl) 0;
    border-bottom: 1px solid #dee2e6;
}

.page-title-heading {
    background-color: #1a365d;
    color: #ffffff;
    border: 2px solid #d4af37;
    padding: 20px 30px;
    border-radius: 5px;
    font-weight: 600;
    margin: 20px auto;
    position: relative;
    display: inline-block;
    font-size: 2rem;
}

.page-title-heading::before {
    display: none !important;
}

.page-title::after {
    display: none;
}

/* セクションタイトル（H2）の装飾 */
.section-title {
    font-size: var(--font-2xl);
    color: var(--primary);
    margin-bottom: var(--space-lg);
    position: relative;
    padding-left: 0;
    padding-right: 0;
    font-weight: 600;
    font-family: var(--font-serif);
    text-align: center;
}

.section-title::before {
    display: none;
}

/* サブセクションタイトル（H3）の装飾 */
.subsection-title {
    font-size: var(--font-xl);
    color: var(--primary);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 600;
}

.subsection-title::before {
    content: '🔹';
    color: var(--accent);
    font-size: var(--font-lg);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* 特徴カードの装飾 */
.feature-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: var(--space-xl);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--accent);
    margin-bottom: var(--space-lg);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15), 0 3px 6px rgba(0, 0, 0, 0.1);
    border-left-color: var(--primary);
}

/* 統計数値表示の装飾 */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-md);
    margin: var(--space-xl) 0;
}

.stat-item {
    text-align: center;
    padding: var(--space-lg);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.3s ease;
}

.stat-item:hover::before {
    transform: scale(1);
}

.stat-item:hover {
    transform: translateY(-2px);
}

.stat-number {
    font-size: var(--font-3xl);
    font-weight: 700;
    color: var(--accent);
    display: block;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.stat-label {
    font-size: var(--font-sm);
    margin-top: var(--space-sm);
    opacity: 0.9;
}

/* 成功事例カードの装飾 */
.case-study {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 12px;
    padding: var(--space-xl);
    margin: var(--space-xl) 0;
    border-left: 4px solid var(--success);
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.case-study::before {
    content: '✅';
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    font-size: var(--font-xl);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.case-study:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* CTA（Call to Action）セクションの装飾 */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--bg-white);
    padding: var(--space-3xl) var(--space-xl);
    border-radius: 12px;
    text-align: center;
    margin: var(--space-3xl) 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(200, 155, 60, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.cta-title {
    font-size: var(--font-2xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--accent);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.cta-description {
    font-size: var(--font-md);
    margin-bottom: var(--space-xl);
    opacity: 0.9;
}

/* エリア情報カードの装飾 */
.area-info-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(200, 155, 60, 0.2);
    transition: all 0.3s ease;
}

.area-info-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
    border-color: var(--accent);
}

.area-info-title {
    font-size: var(--font-lg);
    font-weight: 600;
    color: var(--primary);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.area-info-title::before {
    content: '📍';
    font-size: var(--font-md);
}

/* 料金表示の装飾 */
.price-highlight {
    background: linear-gradient(135deg, var(--accent), #d4af37);
    color: var(--bg-white);
    padding: var(--space-sm) var(--space-md);
    border-radius: 6px;
    font-weight: 700;
    font-size: var(--font-lg);
    display: inline-block;
    box-shadow: 0 2px 4px rgba(200, 155, 60, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* アイコン付きリストの装飾 */
.icon-list {
    list-style: none;
    padding: 0;
}

.icon-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    padding: var(--space-sm);
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.icon-list li:hover {
    background-color: rgba(200, 155, 60, 0.05);
}

.icon-list li::before {
    content: '✓';
    color: var(--success);
    font-weight: 700;
    font-size: var(--font-md);
    margin-top: 2px;
    flex-shrink: 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .page-title {
        font-size: var(--font-2xl);
    }
    
    .section-title {
        font-size: var(--font-xl);
    }
    
    .subsection-title {
        font-size: var(--font-lg);
    }
    
    .stats-container {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: var(--space-sm);
    }
    
    .feature-card,
    .case-study {
        padding: var(--space-lg);
    }
    
    .cta-section {
        padding: var(--space-xl) var(--space-md);
    }
}

/* 既存のセクション余白調整（スマートフォン対応） */
.section-padding {
    padding-top: var(--space-sm) !important;
    padding-bottom: var(--space-lg) !important;
}

.section-padding:first-of-type {
    padding-top: var(--space-sm) !important;
}


/* ===== 電話ボタンのアイコン調整 ===== */

/* 電話ボタン内のアイコンサイズを1.5倍に */
.btn .fas.fa-phone-alt {
    font-size: 1.5em;
    margin-right: 8px;
}

/* メインビジュアルの電話ボタン特別調整 */
.main-visual-buttons .btn-secondary .fas.fa-phone-alt {
    font-size: 1.5em;
    margin-right: 10px;
}



/* ===== スマートフォン画面下部固定電話ボタン ===== */

/* 固定電話ボタン（スマートフォンのみ表示） */
.fixed-phone-button {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: none; /* デフォルトは非表示 */
}

.fixed-phone-button a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 20px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.fixed-phone-button a:hover {
    background: linear-gradient(135deg, #218838, #1e7e34);
    transform: translateY(-2px);
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.3);
}

.fixed-phone-button .phone-text {
    text-align: center;
}

.fixed-phone-button .phone-main {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.fixed-phone-button .phone-main .fas.fa-phone-alt {
    font-size: 1.8em;
    animation: pulse 2s infinite;
}

.fixed-phone-button .phone-number {
    font-size: 16px;
    font-weight: 500;
    opacity: 0.95;
    line-height: 1.3;
}

/* アニメーション効果 */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* スマートフォンでのみ表示 */
@media (max-width: 768px) {
    .fixed-phone-button {
        display: block !important;
    }
    
    /* メインコンテンツの下部余白を追加（固定ボタンと重ならないように） */
    body {
        padding-bottom: 80px;
    }
}

/* PC版では非表示 */
@media (min-width: 769px) {
    .global-nav {
        display: none !important;
    }
    .fixed-phone-button {
        display: none !important;
    }
}


/* スマートフォン版ページタイトル装飾 */
@media (max-width: 768px) {
    .page-title-heading {
        background-color: #1a365d !important;
        color: #ffffff !important;
        border: 2px solid #d4af37 !important;
        padding: 18px 25px !important;
        border-radius: 5px !important;
        font-weight: 600 !important;
        margin: 20px auto !important;
        position: relative !important;
        display: inline-block !important;
        font-size: 24px !important;
        line-height: 1.4 !important;
        text-align: center !important;
        box-shadow: none !important;
        background: #1a365d !important;
    }
    
    .page-title-heading::before {
        display: none !important;
    }
    
    .page-title-heading::after {
        display: none !important;
    }
    
    /* ページタイトルセクション全体の調整 */
    .page-title {
        padding: 20px 0 !important;
        background: transparent !important;
    }
    
    .page-subtitle {
        font-size: 16px !important;
        line-height: 1.6 !important;
        text-align: center !important;
        margin-top: 20px !important;
        padding: 0 20px !important;
        color: #666 !important;
    }
}


/* 比較表のスタイル強化 */
.comparison-table-styled {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 30px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
    background: white;
}

.comparison-table-styled thead th {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    color: white;
    padding: 20px 15px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    border: none;
}

.comparison-table-styled thead th.chikatan-plan {
    color: #1a365d !important;
}

.comparison-table-styled thead th.general-plan {
    color: #c53030 !important;
}

.comparison-table-styled .chikatan-plan {
    background: linear-gradient(135deg, #e6f3ff 0%, #cce7ff 100%);
    border-left: 4px solid #d4af37;
}

.comparison-table-styled .general-plan {
    background: #f8f9fa;
}

.comparison-table-styled tbody td {
    padding: 20px 15px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: top;
    line-height: 1.6;
}

.comparison-table-styled .comparison-item {
    background: #f1f3f4;
    font-weight: 600;
    color: #1a365d;
    width: 25%;
    text-align: center;
}

.comparison-table-styled .chikatan-plan {
    width: 37.5%;
    text-align: center;
}

.comparison-table-styled .general-plan {
    width: 37.5%;
    text-align: center;
}

.comparison-table-styled .plan-subtitle {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.8;
}

.comparison-table-styled .price-highlight {
    color: #dd6b20;
    font-size: 20px;
    font-weight: 700;
    background: #fff5f0;
    padding: 5px 10px;
    border-radius: 5px;
}

.comparison-table-styled .free-highlight {
    color: #28a745;
    font-size: 18px;
    font-weight: 700;
    background: #d4edda;
    padding: 5px 10px;
    border-radius: 5px;
}

.comparison-table-styled .advantage {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-left: 4px solid #28a745;
}

.comparison-table-styled .disadvantage {
    background: linear-gradient(135deg, #f8d7da 0%, #f1b0b7 100%);
    border-left: 4px solid #dc3545;
}

.comparison-table-styled .benefit-text {
    color: #155724;
    font-weight: 600;
    background: #d1ecf1;
    padding: 3px 8px;
    border-radius: 3px;
}

.comparison-table-styled .burden-text {
    color: #721c24;
    font-weight: 600;
    background: #f5c6cb;
    padding: 3px 8px;
    border-radius: 3px;
}

.comparison-table-styled small {
    font-size: 12px;
    opacity: 0.7;
    display: block;
    margin-top: 5px;
}

/* スマートフォン版比較表 - 縦型レイアウト */
@media (max-width: 768px) {
    .comparison-table-styled {
        display: none;
    }
    
    .mobile-comparison {
        display: block;
        margin: 30px 0;
    }
    
    .mobile-comparison-item {
        background: white;
        border-radius: 10px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        margin-bottom: 20px;
        overflow: hidden;
    }
    
    .mobile-comparison-header {
        background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
        color: white;
        padding: 15px 20px;
        font-size: 16px;
        font-weight: 700;
        text-align: center;
    }
    
    .mobile-comparison-content {
        padding: 0;
    }
    
    .mobile-plan-item {
        padding: 20px;
        border-bottom: 1px solid #e9ecef;
    }
    
    .mobile-plan-item:last-child {
        border-bottom: none;
    }
    
    .mobile-plan-label {
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 8px;
        padding: 5px 10px;
        border-radius: 5px;
        text-align: center;
    }
    
    .mobile-plan-label.chikatan {
        background: linear-gradient(135deg, #e6f3ff 0%, #cce7ff 100%);
        color: #1a365d;
        border-left: 4px solid #d4af37;
    }
    
    .mobile-plan-label.general {
        background: linear-gradient(135deg, #fefefe 0%, #f8f8f8 100%);
        color: #dc3545;
        border-left: 4px solid #dc3545;
        font-weight: 600;
    }
    
    .mobile-plan-content {
        font-size: 15px;
        line-height: 1.6;
        text-align: center;
        margin-top: 10px;
    }
    
    .mobile-price-highlight {
        color: #dd6b20;
        font-size: 20px;
        font-weight: 700;
        background: #fff5f0;
        padding: 8px 15px;
        border-radius: 8px;
        display: inline-block;
        margin: 5px 0;
    }
    
    .mobile-free-highlight {
        color: #28a745;
        font-size: 18px;
        font-weight: 700;
        background: #d4edda;
        padding: 8px 15px;
        border-radius: 8px;
        display: inline-block;
        margin: 5px 0;
    }
    
    .mobile-advantage {
        background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
        border-left: 4px solid #28a745;
    }
    
    .mobile-disadvantage {
        background: linear-gradient(135deg, #fefefe 0%, #f8f8f8 100%);
        border-left: 4px solid #dc3545;
    }
}

/* PC版では縦型レイアウトを非表示 */
@media (min-width: 769px) {
    .mobile-comparison {
        display: none;
    }
}


/* FAQ開閉アニメーション */
.faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.faq-question {
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #1a365d;
    color: #ffffff;
    border-radius: 8px;
    margin-bottom: 2px;
}

.faq-question:hover {
    background-color: #2d4a6b;
}

.faq-question h3 {
    color: #ffffff;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.faq-toggle i {
    transition: transform 0.3s ease;
    color: #ffffff;
    font-size: 18px;
}

.faq-item.active .faq-toggle i {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 20px;
    background: #f8fafc;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    transition: max-height 0.3s ease-in;
    padding: 20px;
}



/* ===== 会社案内ページ専用スタイル ===== */

/* 会社概要テーブル */
.company-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-lg) 0;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.company-table th,
.company-table td {
    padding: var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: var(--font-base);
    line-height: 1.6;
    font-family: var(--font-sans); /* ゴシック体に統一 */
}

.company-table th {
    background-color: var(--primary);
    color: var(--bg-white);
    font-weight: 600;
    width: 30%;
    min-width: 120px;
}

.company-table td {
    background-color: var(--bg-white);
    color: var(--text-dark);
}

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

/* 代表者プロフィール */
.representative-content {
    display: flex;
    gap: var(--space-xl);
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
}

.representative-image {
    flex-shrink: 0;
    width: 300px;
}

.representative-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 100%;
    height: auto;
}

.representative-info {
    flex: 1;
    min-width: 0;
    max-width: 800px;
}

.representative-info h3 {
    font-size: var(--font-xl);
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.representative-details {
    background-color: var(--bg-light);
    padding: var(--space-md);
    border-radius: var(--border-radius);
    margin-bottom: var(--space-lg);
}

.representative-details p {
    margin-bottom: var(--space-sm);
    font-size: var(--font-base);
    font-family: var(--font-sans); /* ゴシック体に統一 */
}

.representative-details p:last-child {
    margin-bottom: 0;
}

.representative-message h4 {
    font-size: var(--font-lg);
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.representative-message p {
    font-size: var(--font-base);
    line-height: 1.7;
    margin-bottom: var(--space-md);
    font-family: var(--font-sans); /* ゴシック体に統一 */
}

/* 会社の特徴・強み */
.strengths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.strength-item {
    background-color: var(--bg-white);
    padding: var(--space-xl);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border-left: 4px solid var(--primary);
}

.strength-item h3 {
    font-size: var(--font-lg);
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.strength-item p {
    font-size: var(--font-base);
    line-height: 1.6;
    color: var(--text-dark);
    font-family: var(--font-sans); /* ゴシック体に統一 */
}

/* 沿革 */
.history-timeline {
    position: relative;
    margin-top: var(--space-xl);
}

.history-timeline::before {
    content: '';
    position: absolute;
    left: 80px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--primary);
}

.history-item {
    display: flex;
    margin-bottom: var(--space-xl);
    position: relative;
}

.history-year {
    flex-shrink: 0;
    width: 80px;
    font-size: var(--font-lg);
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    position: relative;
}

.history-year::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background-color: var(--primary);
    border-radius: 50%;
    border: 3px solid var(--bg-white);
    box-shadow: 0 0 0 2px var(--primary);
}

.history-content {
    flex: 1;
    margin-left: var(--space-xl);
    background-color: var(--bg-white);
    padding: var(--space-lg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.history-content h3 {
    font-size: var(--font-lg);
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

.history-content p {
    font-size: var(--font-base);
    line-height: 1.6;
    margin-bottom: 0;
    font-family: var(--font-sans); /* ゴシック体に統一 */
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .company-table th,
    .company-table td {
        padding: var(--space-sm);
        font-size: var(--font-sm);
    }
    
    .company-table th {
        width: 35%;
        min-width: 100px;
    }
    
    .representative-content {
        flex-direction: column;
        gap: var(--space-lg);
    }
    
    .representative-image {
        text-align: center;
    }
    
    .representative-image img {
        max-width: 250px;
    }
    
    .representative-info h3 {
        font-size: var(--font-lg);
        text-align: center;
    }
    
    .representative-details {
        padding: var(--space-sm);
    }
    
    .representative-message h4 {
        font-size: var(--font-base);
    }
    
    .representative-message p {
        font-size: var(--font-sm);
    }
    
    .strengths-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .strength-item {
        padding: var(--space-lg);
    }
    
    .strength-item h3 {
        font-size: var(--font-base);
    }
    
    .strength-item p {
        font-size: var(--font-sm);
    }
    
    .history-timeline::before {
        left: 60px;
    }
    
    .history-year {
        width: 60px;
        font-size: var(--font-base);
    }
    
    .history-content {
        margin-left: var(--space-lg);
        padding: var(--space-md);
    }
    
    .history-content h3 {
        font-size: var(--font-base);
    }
    
    .history-content p {
        font-size: var(--font-sm);
    }
}

@media (max-width: 480px) {
    .company-table {
        font-size: var(--font-xs);
    }
    
    .company-table th,
    .company-table td {
        padding: var(--space-xs);
        font-size: var(--font-xs);
    }
    
    .representative-info h3 {
        font-size: var(--font-base);
    }
    
    .representative-message p {
        font-size: var(--font-xs);
    }
    
    .history-timeline::before {
        left: 50px;
    }
    
    .history-year {
        width: 50px;
        font-size: var(--font-sm);
    }
    
    .history-content {
        margin-left: var(--space-md);
        padding: var(--space-sm);
    }
    
    .history-content h3 {
        font-size: var(--font-sm);
    }
    
    .history-content p {
        font-size: var(--font-xs);
    }
}


/* ===== 会社案内ページ フォントサイズ統一とスタイル改善 ===== */

/* ナビゲーションボタンと同じフォントサイズ・スタイルに統一 */
.company-table td,
.representative-details p,
.representative-message p,
.strength-item p,
.history-content p,
.media-item ul li {
    font-size: var(--font-base) !important; /* 16px - ナビゲーションと同じ */
    font-weight: 600 !important; /* ナビゲーションと同じ太さ */
    font-family: var(--font-sans) !important; /* ゴシック体 */
    line-height: 1.6 !important;
}

/* テレビ出演セクションのフォント統一 */
.media-item h3 {
    font-size: var(--font-base) !important; /* 16px */
    font-weight: 600 !important;
    font-family: var(--font-sans) !important; /* ゴシック体に変更 */
}

.media-item ul li {
    font-size: var(--font-base) !important; /* 16px */
    font-weight: 600 !important;
    font-family: var(--font-sans) !important; /* ゴシック体 */
}

/* 代表者名画像の中央揃え */
.representative-name-image {
    text-align: center !important;
    margin: 20px 0 !important;
    width: 100% !important;
}

.representative-name-image img {
    display: block !important;
    margin: 0 auto !important;
    text-align: center !important;
}

/* 代表者写真の中央揃えも強化 */
.representative-image {
    text-align: center !important;
    width: 100% !important;
}

.representative-image img {
    display: block !important;
    margin: 0 auto !important;
}

/* CTAセクションの装飾簡素化 */
.cta h2 {
    font-size: var(--font-lg) !important; /* 20px - 控えめなサイズ */
    font-weight: 600 !important; /* 過度な太字を避ける */
    color: var(--text-dark) !important; /* 通常の文字色 */
    margin-bottom: var(--space-md) !important;
    text-shadow: none !important; /* 影効果を削除 */
    background: none !important; /* 背景装飾を削除 */
}

.cta p {
    font-size: var(--font-base) !important; /* 16px */
    font-weight: 400 !important; /* 通常の太さ */
    color: var(--text-medium) !important; /* 控えめな色 */
    margin-bottom: var(--space-lg) !important;
}

.cta-note {
    font-size: var(--font-sm) !important; /* 14px */
    font-weight: 400 !important; /* 通常の太さ */
    color: var(--text-medium) !important; /* 控えめな色 */
    margin-top: var(--space-md) !important;
}

/* 電話番号の装飾も簡素化 */
.phone-large {
    font-size: var(--font-lg) !important; /* 20px - 控えめなサイズ */
    font-weight: 600 !important;
    text-shadow: none !important; /* 影効果を削除 */
}

/* レスポンシブ対応 - スマートフォンでも統一されたフォントサイズ */
@media (max-width: 768px) {
    .company-table td,
    .representative-details p,
    .representative-message p,
    .strength-item p,
    .history-content p,
    .media-item ul li {
        font-size: var(--font-sm) !important; /* 14px */
        font-weight: 600 !important;
    }
    
    .media-item h3 {
        font-size: var(--font-sm) !important; /* 14px */
        font-weight: 600 !important;
    }
    
    .cta h2 {
        font-size: var(--font-base) !important; /* 16px */
    }
    
    .cta p {
        font-size: var(--font-sm) !important; /* 14px */
    }
    
    .phone-large {
        font-size: var(--font-base) !important; /* 16px */
    }
}

@media (max-width: 480px) {
    .company-table td,
    .representative-details p,
    .representative-message p,
    .strength-item p,
    .history-content p,
    .media-item ul li {
        font-size: var(--font-xs) !important; /* 12px */
        font-weight: 600 !important;
    }
    
    .media-item h3 {
        font-size: var(--font-xs) !important; /* 12px */
        font-weight: 600 !important;
    }
    
    .cta h2 {
        font-size: var(--font-sm) !important; /* 14px */
    }
    
    .cta p {
        font-size: var(--font-xs) !important; /* 12px */
    }
    
    .phone-large {
        font-size: var(--font-sm) !important; /* 14px */
    }
}

/* ===== 新しいヒーローセクションのためのスタイル (真の完全版：PC/スマホ 全調整対応) ===== */

/* --- 共通スタイル --- */
.new-hero {
  position: relative;
  background-color: #0d2440;
  overflow: hidden;
  color: white;
}
.new-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('../images/bg-lens.jpg');
  background-size: cover;
  background-position: center 30%;
  opacity: 0.1;
  z-index: 1;
}

/* --- PC版のスタイル (769px以上) --- */
@media (min-width: 769px) {
  .new-hero {
    display: flex;
    align-items: center;
    height: 650px;
    padding: 0 2%;
  }
  .new-hero-people {
    position: relative; z-index: 2;
    flex-basis: 55%; height: 100%;
    display: flex; align-items: flex-end;
  }
  .new-hero-content {
    position: relative; z-index: 4;
    flex-basis: 45%; text-align: right;
    padding-right: 2%;
  }
  .leader-img, .staff-img {
    position: absolute; bottom: 0; height: auto;
    object-fit: contain;
  }
  .leader-img {
    height: 95%;
    left: 0;
    z-index: 3;
  }
  .staff-img {
    height: 120%; /* ★PC版スタッフの大きさ（ここを調整） */
    bottom: -15%;    /* ★PC版スタッフの縦位置（ここを調整。-5%などで下にずらせます） */
    right: 0;
    z-index: 2;
  }

  .new-hero-content .sub-catch,
  .new-hero-content .main-catch,
  .new-hero-content .merit-text {
    text-shadow: 1px 1px 5px rgba(0,0,0,0.7);
  }
  .new-hero-content .sub-catch { font-size: 2.2rem; }
  .new-hero-content .main-catch { font-size: 5.5rem; color: #ffd700; }
  .new-hero-content .merit-text { font-size: 1.8rem; margin: 15px 0 30px 0; }
  .new-hero-content .cta-button { display: inline-block; font-size: 1.8rem; padding: 18px 40px; border-radius: 50px; background-color: #28a745; color: #ffffff; text-decoration: none; transition: all 0.3s ease; }
  .new-hero-content .cta-button:hover { background-color: #218838; }
  
  .zero-yen {
    font-size: 2.8rem;
    color: #ffd700;
    font-weight: bold;
  }
}

/* ===== スマートフォン向けの調整（768px以下） - 最終完成版 ===== */
@media (max-width: 768px) {
  .header-contact { display: none !important; }

  .new-hero {
    display: block;
    height: 560px;
  }

  .new-hero-people {
    position: absolute;
    z-index: 2;
    bottom: 0; left: 0;
    width: 100%; height: 80%;
    overflow: visible;
  }
  .leader-img, .staff-img {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    height: auto;
    object-fit: contain;
  }
  .leader-img {
    width: 75%;
    z-index: 3;
  }
  .staff-img {
    width: 150%; /* ★スマホ版スタッフの大きさ（ここを調整） */
    bottom: -15%; /* ★スマホ版スタッフの縦位置（ここを調整） */
    z-index: 2;
  }

  .new-hero-content {
    position: absolute;
    z-index: 4;
    width: 100%;
    padding: 0 15px;
    text-align: center;
    top: 50%;
    transform: translateY(-155%);
  }

  .new-hero-content .sub-catch,
  .new-hero-content .main-catch,
  .new-hero-content .merit-text {
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
  }
  .new-hero-content .sub-catch { font-size: 1.4rem; }
  .new-hero-content .main-catch { font-size: 2.8rem; color: #ffd700; line-height: 1.1; }
  .new-hero-content .merit-text { font-size: 1.2rem; margin: 8px 0 15px 0; }
  .new-hero-content .cta-button { display: none; }

  .zero-yen {
    font-size: 2rem;
    color: #ffd700;
    font-weight: bold;
  }
}

/* ===== 特徴セクションのタイトル改行制御 ===== */
.feature-title .title-line {
  display: block; /* 各行をブロック要素として扱い、強制的に改行させる */
  line-height: 1.4; /* 行間を少し調整 */
}

/* 「×」記号のスタイル調整 */
.feature-title .title-line:nth-child(2) {
  font-size: 1.2em; /* 少し大きくしてアクセントに */
  color: #c89b3c;  /* ゴールド（アクセントカラー）に */
  margin: 5px 0;  /* 上下の余白を少し調整 */
}

/* ===== 特徴セクションの説明文の行間調整 ===== */
.feature-text-wrapper .feature-text {
  margin-bottom: 1em; /* 各段落の下に、文字1文字分の余白を追加 */
}

.feature-text-wrapper .feature-text:last-child {
  margin-bottom: 0; /* 最後の段落の下の余白だけは削除して、見た目を整える */
}

/* ===== テキストのキーワード強調（4パターン使い分け対応版） ===== */

/* --- 赤文字 --- */
/* 赤文字（通常） */
.text-red {
  color: #d9534f; /* 少し落ち着いた、読みやすい赤色 */
}

/* 赤文字（太字） */
.text-red-bold {
  color: #d9534f;
  font-weight: bold;
}


/* --- 青文字 --- */
/* 青文字（通常） */
.text-blue {
  color: #0275d8; /* サイトのテーマに合う、信頼感のある青色 */
}

/* 青文字（太字） */
.text-blue-bold {
  color: #0275d8;
  font-weight: bold;
}

/* ===== スマホ専用・両脇の丸ボタンのスタイル ===== */
.hero-side-buttons {
  display: none; /* ★PCでは、まず非表示にする */
}

/* ★スマホの時だけ、以下のデザインを適用する魔法 */
@media (max-width: 768px) {
  .hero-side-buttons {
    display: flex; /* 横並びにする */
    position: absolute;
    bottom: 20px; /* 下からの位置 */
    left: 0;
    right: 0;
    z-index: 5; /* 人物画像より手前に表示 */
    justify-content: space-around; /* 左右に均等配置 */
    padding: 0 15px;
  }

  .side-button {
    width: 110px;  /* ボタンの幅 */
    height: 110px; /* ボタンの高さ */
    border-radius: 50%; /* これで完全な円になる */
    color: white;
    text-decoration: none;
    display: flex;
    flex-direction: column; /* 文字を縦に並べる */
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    border: 3px solid white;
    transition: all 0.3s ease;
  }

  .side-button:hover {
    transform: scale(1.05); /* 少しだけ大きくする */
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
  }

  .side-button .button-line {
    display: block;
    font-weight: bold;
    line-height: 1.3;
  }

  .side-button .button-line:nth-child(2) {
    font-size: 1.2em; /* 2行目を少し大きく */
  }

  /* ボタンの色 */
  .green-button {
    background: linear-gradient(135deg, #28a745, #218838);
  }
  .red-button {
    background: linear-gradient(135deg, #dc3545, #c82333);
  }
}

/* ===== スマホ用サブメニューのレイアウト崩れ最終修正 (2025/09/06) ===== */

/* 
  サブページのナビゲーション全体に適用
  画面幅が991px以下の時に有効
*/
@media (max-width: 991px) {

  /* ボタンを囲むリスト(ul)のスタイル */
  body:not(.top-page) .global-nav .nav-list {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important; /* 3列グリッドを強制 */
    gap: 10px !important; /* ボタン間の隙間を10pxに統一 */
  }

  /* 各ボタン(li)のスタイル */
  body:not(.top-page) .global-nav .nav-list li {
    width: auto !important; /* 幅の自動調整を有効化 */
    margin: 0 !important; /* 不要なマージンをリセット */
  }

  /* ボタン内のリンク(a)のスタイル【最重要】 */
  body:not(.top-page) .global-nav .nav-list a {
    display: flex !important; /* flexboxを有効化 */
    align-items: center !important; /* テキストを垂直方向に中央揃え */
    justify-content: center !important; /* テキストを水平方向に中央揃え */
    height: 100% !important; /* ボタンの高さを均一に */
    padding: 12px 5px !important; /* 内側の余白を調整 */
    font-size: 13px !important; /* フォントサイズを少し小さくして収まりやすく */
    line-height: 1.2 !important; /* 行間を詰める */
    
    /* 文字がはみ出た場合の処理 */
    white-space: normal !important; /* 自動改行を許可（nowrapを解除） */
    word-break: break-all; /* どうしても収まらない単語は強制的に改行 */
  }
}
/* ===== 修正ここまで ===== */

/* ===== PC版 グローバルナビゲーション (2025/09/06) ===== */

/* --- ナビゲーションバー全体のスタイル --- */
.pc-global-nav {
  display: none; /* ★まずスマホでは非表示にする */
  background-color: #0a3055; /* ネイビー背景 */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  border-top: 1px solid #1a4d7c; /* 上部に少し明るい境界線 */
}

/* --- メニューリストのスタイル --- */
.pc-global-nav ul {
  display: flex; /* 横並びにする */
  justify-content: space-around; /* 項目を均等に配置 */
  margin: 0;
  padding: 0;
  list-style: none;
}

/* --- 各メニュー項目のスタイル --- */
.pc-global-nav ul li a {
  display: block;
  padding: 15px 10px; /* 上下の余白を15px、左右を10pxに */
  color: #ffffff; /* 白文字 */
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap; /* 文字が改行しないようにする */
}

/* --- マウスを乗せた時のスタイル --- */
.pc-global-nav ul li a:hover {
  background-color: #1a4d7c; /* 少し明るいネイビーに */
  color: #ffd700; /* ゴールド系の文字色に */
}

/* --- マウスを乗せた時の下線アニメーション --- */
.pc-global-nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 5px; /* 下からの位置 */
  left: 50%;
  width: 0;
  height: 2px;
  background-color: #ffd700; /* ゴールド系の線 */
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.pc-global-nav ul li a:hover::after {
  width: 80%; /* マウスを乗せたら線の幅を80%に広げる */
}


/* ★★★ 最重要：PC画面の時だけ表示させる魔法 ★★★ */
@media (min-width: 992px) {
  .pc-global-nav {
    display: block; /* 画面幅が992px以上の時だけ表示する */
  }
}

/* ===== PC版ナビゲーションここまで ===== */


/* ===== 会社案内ページ：プロフィール最終調整 (2025/09/08) ===== */

/* --- 1. 代表・顧問共通：文字サイズと「ご挨拶」タイトルの装飾 --- */
.representative-details p,
.representative-message p {
    font-size: 1rem !important;
    line-height: 1.8 !important;
}
.representative-message h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0a3055;
    text-align: center;
    padding-bottom: 0.75rem;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
}
.representative-message h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #c89b3c;
    border-radius: 2px;
}

/* ===== トップページ：ボタン中央揃え (2025/09/08) ===== */

/* --- 「他社との違い」セクションのボタンエリア --- */
.success-fee-buttons {
    justify-content: center !important; /* ボタンを中央に揃える魔法の言葉 */
}

/* --- 「代表・顧問プロフィール」セクションのボタンエリア --- */
.double-profile-button-area {
    text-align: center !important; /* こちらも、ボタンを中央に揃える魔法の言葉 */
}

/* ===== 会社案内ページ：プロフィール最終美調整 (2025/09/08) ===== */

/* --- 1. 代表・顧問、両方の画像に、統一感のある「装飾枠」を追加 --- */
.representative-image {
    padding: 8px; /* 画像の内側に、少し余白を作る */
    background-color: #ffffff; /* 背景を白に */
    border: 1px solid #dddddd; /* 薄いグレーの境界線 */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* 影を少し強調 */
    border-radius: 8px; /* 角を少し丸める */
}

/* --- 2. 代表・顧問、両方の「画像と名前の間」に、均等な「行間」を追加 --- */
.representative-info h3 {
    margin-top: 1.5rem; /* 上の画像との間に、十分な余白を確保 */
}

/* ===== ダブル・プロフィールセクションのデザイン ===== */
.bg-light {
    background-color: #f8f9fa; /* 明るい背景色 */
}

.section-title-center {
    text-align: center;
    margin-bottom: 3rem;
}

.double-profile-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    overflow: hidden;
}

.double-profile-image img {
    width: 100%;
    height: auto;
    display: block;
}

.double-profile-content {
    padding: 2rem;
}

.double-profile-message {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 2rem;
}

.double-profile-button-area {
    text-align: center;
}

/* PC表示用の調整 */
@media (min-width: 992px) {
    .double-profile-card {
        display: flex;
        align-items: center;
    }
    .double-profile-image {
        flex: 0 0 50%; /* 左半分を画像エリアに */
    }
    .double-profile-content {
        flex: 1;
        padding: 3rem;
    }
    .double-profile-button-area {
        text-align: right; /* ボタンを右寄せに */
    }
}

/* ===== 会社案内ページ：最終調和コード (2025/09/08) ===== */

/* --- 1. プロフィールセクションの基本構造を定義 --- */
.representative-content {
    display: flex;
    flex-direction: column; /* スマホではまず縦に並べる */
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* --- 2. 画像を囲む箱のスタイルを定義 --- */
.representative-image {
    width: 100%;
    max-width: 300px; /* ★代表・顧問、両方の画像の最大幅を、300pxに、統一！ */
    text-align: center;
}
.representative-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 10px;
    background-color: white;
    border: 1px solid #ddd;
}

/* --- 3. テキスト情報を囲む箱のスタイルを定義 --- */
.representative-info {
    width: 100%;
    text-align: center;
}
.representative-info h3 {
    margin-top: 1rem;
}

/* --- 4. PC表示の時だけ、レイアウトを横並びに変更 --- */
@media (min-width: 768px) {
    .representative-content {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
    }
    .representative-content.reverse {
        flex-direction: row-reverse;
    }
    .representative-image {
        flex: 0 0 300px; /* ★代表・顧問、両方の画像の幅を、300pxに、固定！ */
    }
    .representative-info {
        flex: 1;
        text-align: left;
        padding-left: 2rem;
    }
    .representative-content.reverse .representative-info {
        padding-left: 0;
        padding-right: 2rem;
    }
    .representative-info h3 {
        margin-top: 0;
    }
}

/* === 顧問プロフィール（adviser.webp）専用チューニング === */

/* PC：画像を450px→見やすい横並び固定に */
.representative .representative-content{
  display: grid;                 /* 横並びに固定 */
  grid-template-columns: 480px 1fr;  /* 左画像 480px（好みで 450–520px） */
  gap: var(--space-xl);
  align-items: center;
}

.representative .representative-image img{
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;                /* 画像自体も中央寄せ */
}

/* スマホ：縦並びに切替＆画像を真正面ど真ん中で全幅 */
@media (max-width: 768px){
  .representative .representative-content{
    display: block !important;   /* 横並び解除 */
  }
  .representative .representative-image{
    padding: 0 !important;       /* 余計な左右ズレ防止 */
    margin: 0 auto !important;
    text-align: center !important;
    width: 100% !important;
  }
  .representative .representative-image img{
    width: 100% !important;      /* 画面幅いっぱい */
    max-width: 100% !important;
    height: auto !important;
    margin: 0 auto !important;   /* “ビミョーに左寄り” を矯正 */
    display: block !important;
  }
}

/* --- 顧問プロフィール画像：強制上書き（PCは大きく / SPは全幅） --- */

/* PC：左カラムの幅を広げて画像も拡大 */
.representative.section-padding.bg-light .representative-content{
  display: grid !important;
  grid-template-columns: 520px 1fr !important; /* 480～540で好み調整可 */
  gap: var(--space-xl);
  align-items: center;
}
.representative.section-padding.bg-light .representative-image img{
  width: 100% !important;
  max-width: 520px !important;   /* ここが効けばPCで大きく見える */
  height: auto !important;
  display: block !important;
  margin: 0 auto !important;
}

/* SP：縦並び＆全幅（センター固定） */
@media (max-width: 768px){
  .representative.section-padding.bg-light .representative-content{
    display: block !important;
  }
  .representative.section-padding.bg-light .representative-image{
    text-align: center !important;
    margin: 0 auto !important;
    padding: 0 !important;
    width: 100% !important;
  }
  .representative.section-padding.bg-light .representative-image img{
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 auto !important;
  }
}

/* ===== 顧問プロフィール（adviser.webp）を確実に拡大する上書き ===== */

/* 1) PC：左カラムの幅を固定（flexでもgridでも効く） */
.representative.section-padding.bg-light .representative-content{
  display: flex !important;              /* flexで強制 */
  align-items: center !important;
  gap: var(--space-xl);
}
.representative.section-padding.bg-light .representative-image{
  flex: 0 0 520px !important;            /* 左カラム固定幅 */
  width: 520px !important;
  max-width: 100% !important;
}

/* 2) 画像そのものを“指名買い”で上書き（後勝ち対策） */
.representative.section-padding.bg-light .representative-image img,
img[src$="images/adviser.webp"]{
  width: 100% !important;
  max-width: 520px !important;           /* 好みで 480–560 調整 */
  height: auto !important;
  display: block !important;
  margin: 0 auto !important;
}

/* 3) SP：縦並び＆全幅・中央 */
@media (max-width: 768px){
  .representative.section-padding.bg-light .representative-content{
    display: block !important;           /* 横並び解除 */
  }
  .representative.section-padding.bg-light .representative-image{
    flex: none !important;
    width: 100% !important;
    margin: 0 auto !important;
    text-align: center !important;
  }
  .representative.section-padding.bg-light .representative-image img,
  img[src$="images/adviser.webp"]{
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto !important;
  }
}

/* ===== プロフィール署名画像のスタイル ===== */
.representative-name-image {
    text-align: right; /* 画像を右寄せにする */
    margin-top: 1.5rem; /* 上の挨拶文との間に余白を確保 */
}

.representative-name-image img {
    max-width: 200px; /* 画像の最大幅を200pxに設定 */
    height: auto;
}

/* スマホ表示の時は中央寄せにする */
@media (max-width: 767px) {
    .representative-name-image {
        text-align: center;
    }
}

/* ===== ブログ一覧のデザイン（トップページ・ブログページ共通） ===== */
.blog-list-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.blog-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.blog-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.blog-card-content {
    padding: 1.5rem;
}
.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.5rem;
}
.blog-card-category {
    background-color: var(--primary);
    color: #fff;
    padding: 0.25em 0.75em;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}
.blog-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
}

