/* ==========================================================================
   1. Base & Utilities (基本設定)
   ========================================================================== */
:root {
    --color-navy: #1A2B4C;
    --color-gold: #C5A065;
    --color-gold-dark: #b08d55;
    --color-white: #ffffff;
    --color-gray-light: #f8fafc;
    --color-gray-bg: #f1f5f9;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    font-family: 'Noto Sans JP', sans-serif;
    color: #334155;
    line-height: 1.6;
    background-color: #f8fafc;
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

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

img {
    max-width: 100%;
    display: block;
}

/* フォント・レイアウト補助 */
.font-mincho {
    font-family: 'Shippori Mincho', serif;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 80px 0;
}

.section-bg-white {
    background-color: white;
}

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

.section-bg-product {
    background-color: #f1f5f9;
}

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

/* セクションタイトル */
.section-title {
    text-align: center;
    margin-bottom: 48px;
    color: var(--color-navy);
}

.section-title h2 {
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
}

.section-title span {
    display: block;
    font-size: 0.9rem;
    color: var(--color-gold);
    margin-bottom: 8px;
    letter-spacing: 0.1em;
    font-family: 'Noto Sans JP', sans-serif;
}

/* ネイビー背景時のタイトル調整 */
.bg-navy-section .section-title h2 {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@media screen and (max-width: 768px) {
    .section-title h2 {
        font-size: 1.3rem;
    }
}


/* ==========================================================================
   2. Header & Navigation (ヘッダー・メニュー)
   ========================================================================== */
.header {
    background-color: var(--color-navy);
    color: var(--color-white);
    padding: 16px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    opacity: 0.98;
}

.header-inner {
    display: flex;
    justify-content: flex-end;
    /* ロゴ非表示のため右寄せ */
    align-items: center;
    position: relative;
    height: 30px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 0.1em;
    color: var(--color-gold);
}

/* PC Menu */
.nav-menu {
    display: flex;
    gap: 24px;
    font-size: 0.875rem;
    font-weight: 500;
    align-items: center;
}

.nav-menu a:hover {
    color: var(--color-gold);
}

/* Header Contact Button (PC) */
.btn-contact-header {
    padding: 8px 20px;
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    border-radius: 2px;
}

.btn-contact-header:hover {
    background-color: var(--color-gold);
    color: #fff !important;
}

/* Hamburger Button */
.hamburger-btn {
    display: none;
    /* PC非表示 */
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1100;
    margin-left: 16px;
}

.hamburger-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-gold);
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.hamburger-btn span:nth-child(1) {
    top: 0;
}

.hamburger-btn span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-btn span:nth-child(3) {
    bottom: 0;
}

.hamburger-btn.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    .hamburger-btn {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--color-navy);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 40px;
        transition: right 0.4s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        z-index: 1050;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu a {
        font-size: 1.1rem;
        margin-bottom: 24px;
        color: white;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        margin: 0;
        width: 100%;
        text-align: center;
        padding-bottom: 1.5rem;
    }

    .nav-menu .btn-contact-header {
        margin-top: 0;
        width: 100%;
        text-align: center;
        padding: 16px;
        background-color: transparent;
        color: var(--color-gold);
        font-weight: bold;
        font-size: 1.1rem;
        border: 1px solid var(--color-gold);
    }

    .nav-menu .btn-contact-header:active {
        background-color: var(--color-gold);
        color: white !important;
    }
}


/* ==========================================================================
   3. Main Visual (メインビジュアル)
   ========================================================================== */
.main-visual {
    position: relative;
    min-height: 100%;
    display: flex;
    align-items: center;
    padding: 80px 0;
    padding-top: 130px;
    overflow: hidden;
    height: 100vh;
}

/* 背景設定 (動画・画像) */
.mv-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.mv-bg img,
.mv-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    filter: brightness(0.95);
}

/* オーバーレイ */
.mv-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(26, 43, 76, 0.8) 0%, rgba(26, 43, 76, 0.5) 100%);
    z-index: 1;
}

/* コンテンツ配置 */
.mv-content {
    position: relative;
    z-index: 2;
    color: white;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* ヘッダーエリア（タグ・ロゴ・コピー） */
.mv-header-area {
    width: 100%;
    max-width: 1000px;
    margin-bottom: 48px;
}

/* 金色タグ */
.mv-tag-wrapper {
    margin-bottom: 32px;
}

.mv-tag-gold {
    display: inline-block;
    background: linear-gradient(-45deg, #C5A065 0%, #E5C585 50%, #C5A065 100%);
    color: #ffffff;
    font-weight: bold;
    padding: 8px 24px;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(197, 160, 101, 0.4);
    line-height: 1.4;
}

/* コラボロゴ */
.mv-collab-logo {
    margin: 0 auto 32px auto;
    width: 100%;
    max-width: 800px;
}

.mv-collab-logo img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
}

/* キャッチコピー */
.mv-catchphrase {
    font-size: 1.8rem;
    font-weight: 500;
    margin: 0;
    letter-spacing: 0.15em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* 3つの特徴 (横並び) */
.mv-features {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 32px 48px;
    border-radius: 12px;
    margin-bottom: 48px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.mv-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.feature-label {
    font-size: 1rem;
    color: #e2e8f0;
    margin-bottom: 8px;
    font-weight: bold;
}

.feature-value {
    font-family: 'Shippori Mincho', serif;
    font-size: 3rem;
    font-weight: bold;
    color: var(--color-gold);
    line-height: 1;
    white-space: nowrap;
}

.feature-value .unit {
    font-size: 1.2rem;
    font-family: 'Noto Sans JP', sans-serif;
    color: white;
    margin-left: 4px;
}

.feature-value .small {
    font-size: 1.2rem;
    font-family: 'Noto Sans JP', sans-serif;
    color: white;
    margin-right: 4px;
    font-weight: normal;
}

.feature-label-btm {
    font-size: 1rem;
    font-weight: bold;
    color: white;
    margin-top: 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.mv-feature-line {
    width: 1px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 0 24px;
}

/* メインボタンエリア */
.mv-btn-area {
    width: 100%;
    text-align: center;
}

.btn-gold-lg {
    background-color: #C5A065;
    color: white;
    padding: 16px 40px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1.1rem;
    display: inline-block;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid #C5A065;
    transition: all 0.3s ease;
    letter-spacing: 0.1em;
}

.btn-gold-lg:hover {
    background-color: #b08d55;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

/* スマホ対応 */
@media (max-width: 768px) {
    .main-visual {
        padding-top: 80px;
        height: fit-content;
    }

    .mv-tag-wrapper {
        margin-bottom: 10px;
    }

    .mv-tag-gold {
        font-size: 0.9rem;
        padding: 6px 16px;
        width: 100%;
        white-space: normal;
    }

    .mv-collab-logo {
        max-width: 90%;
        margin-bottom: 10px;
    }

    .mv-header-area {
        margin-bottom: 30px;
    }

    .mv-catchphrase {
        font-size: 1.1rem;
        line-height: 1.5;
    }

    .mv-features {
        flex-direction: column;
        gap: 32px;
        padding: 24px;
        margin-bottom: 1rem;
    }

    .mv-feature-line {
        width: 100px;
        height: 1px;
        margin: 0;
    }

    .feature-value {
        font-size: 2.5rem;
    }

    .btn-gold-lg {
        width: 100%;
        padding: 14px;
        font-size: 1rem;
    }
}


/* ==========================================================================
   4. Concept (コンセプト)
   ========================================================================== */
.concept-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.concept-text img {
    width: 65%;
    margin: 0 auto;
}

.concept-head {
    font-size: 2.25rem;
    color: var(--color-navy);
    margin-bottom: 32px;
    line-height: 1.4;
}

.concept-desc {
    color: #475569;
    margin-bottom: 24px;
}

.concept-note {
    font-size: 0.8rem;
    color: #64748b;
}

@media screen and (max-width: 768px) {
    .concept-head {
        font-size: 1.4rem;
    }
}


/* ==========================================================================
   5. Project & Scheme (プロジェクト概要・汎用画像)
   ========================================================================== */
.project-overview-text {
    max-width: 900px;
    margin: 0 auto 56px auto;
    text-align: justify;
}

.project-overview-text p {
    margin-bottom: 24px;
}

/* T-HOP説明ボックス */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.box-highlight {
    background-color: white;
    padding: 32px;
    border-radius: 8px;
    border-left: 4px solid var(--color-gold);
    height: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.scheme-box {
    background-color: white;
    padding: 32px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.scheme-flow {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.scheme-item {
    padding: 16px;
    border: 1px solid var(--color-navy);
    border-radius: 4px;
    background-color: rgba(26, 43, 76, 0.05);
    color: var(--color-navy);
    font-weight: bold;
}

.scheme-arrow {
    color: var(--color-gold);
    font-size: 1.25rem;
    font-weight: bold;
}

/* 汎用画像ラッパー (スキーム図用など) */
.generic-image-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    margin-bottom: 3rem;
}

.generic-image-wrapper p {
    margin: 0;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.generic-image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, .05);
}

@media screen and (max-width: 768px) {
    .generic-image-wrapper:last-of-type {
        margin: 0;
    }
}


/* ==========================================================================
   6. Merits (5つの特徴 & 無人カフェメリット)
   ========================================================================== */
/* Part 1: 5つの特徴 (アイコン付き) */
.merit-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    width: 100%;
}

.merit-card {
    background-color: white;
    padding: 32px 20px;
    border-radius: 8px;
    border-top: 4px solid var(--color-gold);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.merit-card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.merit-icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: #f8fafc;
    border: 1px solid var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.merit-icon {
    width: 32px;
    height: 32px;
    color: var(--color-navy);
}

.merit-num {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--color-gold);
    font-family: 'Shippori Mincho', serif;
    letter-spacing: 0.1em;
}

.merit-body-text {
    flex-grow: 1;
}

.merit-title {
    font-weight: bold;
    color: var(--color-navy);
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.merit-desc {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.7;
}

/* Part 2: 無人カフェメリット (Hover Grid) */
.merit-hover-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
}

.merit-hover-card {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    cursor: default;
}

.merit-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.merit-hover-card:hover .merit-bg-img {
    transform: scale(1.1);
}

.merit-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 43, 76, 0.9) 0%, rgba(26, 43, 76, 0.5) 50%, rgba(26, 43, 76, 0.2) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px;
    transition: background 0.3s ease;
}

.merit-hover-card:hover .merit-overlay {
    background: linear-gradient(to top, rgba(26, 43, 76, 0.95) 20%, rgba(26, 43, 76, 0.7) 100%);
}

.merit-content {
    color: white;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.merit-label {
    display: inline-block;
    background-color: var(--color-gold);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.merit-head {
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1.4;
    margin: 0 0 16px 0;
    font-family: 'Shippori Mincho', serif;
}

.merit-body {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s ease;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #e2e8f0;
}

.merit-hover-card:hover .merit-body {
    max-height: 300px;
    opacity: 1;
    margin-top: 16px;
}

.merit-hover-card:hover .merit-content {
    transform: translateY(0);
}

/* Elegant Hover Hint */
.hover-hint-elegant {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    z-index: 10;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.hint-text-en {
    font-family: 'Shippori Mincho', serif;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    font-weight: 300;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hint-line {
    width: 40px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.8);
}

.merit-hover-card:hover .hover-hint-elegant {
    opacity: 0;
}

/* SP Responsive for Merit */
@media (max-width: 1024px) {
    .merit-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hover-hint-elegant {
        display: none;
    }
}

@media (max-width: 768px) {

    /* 5 Features */
    .merit-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .merit-card {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
        padding: 20px;
        flex-wrap: wrap;
    }

    .merit-card-header {
        margin-bottom: 0;
        margin-right: 16px;
    }

    .merit-icon-circle {
        width: 50px;
        height: 50px;
        margin-bottom: 4px;
    }

    .merit-icon {
        width: 24px;
        height: 24px;
    }

    /* Hover Cards */
    .merit-hover-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .merit-hover-card {
        aspect-ratio: 3 / 4;
        min-height: auto;
    }

    .merit-body {
        max-height: none;
        opacity: 1;
        margin-top: 12px;
        display: block;
    }

    .merit-content {
        transform: translateY(0);
    }

    .merit-overlay {
        background: linear-gradient(to top, rgba(26, 43, 76, 0.95) 0%, rgba(26, 43, 76, 0.4) 100%);
    }

    .merit-head {
        font-size: 1.2rem;
    }
}


/* ==========================================================================
   7. Product / Facility / Expansion (中間セクション)
   ========================================================================== */
/* Product (JCC) */
.product-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    display: flex;
}

.product-img {
    width: 50%;
    background-color: #e2e8f0;
    position: relative;
}

.product-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    width: 50%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.product-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
}

.list-bullet {
    color: var(--color-gold);
    margin-right: 8px;
}

/* Facility (Floor Plan & Gallery) */
.floor-plan-box {
    background-color: var(--color-gray-light);
    padding: 24px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.icons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}

.icon-tag {
    background-color: white;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    font-size: 0.75rem;
    font-weight: bold;
    color: var(--color-navy);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1;
}

.facility-icon {
    width: 30px;
    height: 30px;
    color: var(--color-gold);
    flex-shrink: 0;
}

.plan-placeholder {
    width: 100%;
    padding: 1rem;
    aspect-ratio: 3 / 1;
    background: url(../img/floor_map.png) no-repeat center;
    background-size: contain;
    border: 2px dashed #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Expansion (Operation Variation) */
.expansion-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.expansion-card {
    background-color: white;
    padding: 32px;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border-top: 4px solid transparent;
    transition: all 0.3s ease;
}

.expansion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-top-color: var(--color-gold);
}

.expansion-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--color-navy);
    margin-bottom: 16px;
    padding-left: 16px;
    border-left: 4px solid var(--color-navy);
    line-height: 1.4;
}

.expansion-text {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .product-card {
        flex-direction: column;
    }

    .product-img,
    .product-info {
        width: 100%;
        padding: 1.5rem;
    }

    .product-img {
        height: 250px;
    }

    .floor-plan-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .plan-placeholder {
        width: auto;
        min-width: 700px;
        aspect-ratio: 2 / 1;
        background-position: center;
        background-color: #fff;
    }

    .icons-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .expansion-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .expansion-card {
        padding: 24px;
    }
}


/* ==========================================================================
   8. Comparison Table (比較表)
   ========================================================================== */
.table-scroll-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    background-color: white;
}

.comp-table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
    font-size: 0.95rem;
    text-align: center;
}

.comp-table th,
.comp-table td {
    padding: 16px 12px;
    border: 1px solid #e2e8f0;
    vertical-align: middle;
}

.comp-table thead th {
    background-color: #f8fafc;
    color: var(--color-navy);
    font-weight: bold;
    border-bottom: 2px solid var(--color-navy);
}

.th-label {
    width: 15%;
    background-color: var(--color-navy) !important;
    color: white !important;
}

.th-main {
    background-color: #fffbeb !important;
    color: var(--color-navy) !important;
    border-top: 3px solid var(--color-gold);
    border-left: 2px solid var(--color-gold);
    border-right: 2px solid var(--color-gold);
    width: 25%;
}

.td-main {
    background-color: #fffbeb;
    border-left: 2px solid var(--color-gold);
    border-right: 2px solid var(--color-gold);
    font-weight: bold;
}

.th-badge {
    display: inline-block;
    background-color: var(--color-gold);
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 4px;
}

.tr-group-label td {
    background-color: #f1f5f9;
    font-weight: bold;
    text-align: left;
    padding: 8px 16px;
    font-size: 0.85rem;
    color: #475569;
}

.td-label {
    font-weight: bold;
    background-color: #f8fafc;
    color: var(--color-navy);
    text-align: left;
}

.mark-good {
    color: var(--color-navy);
    font-weight: bold;
    font-size: 1.2rem;
}

.mark-avg {
    color: var(--color-gold);
    font-weight: bold;
    font-size: 1.2rem;
}

.mark-bad {
    color: #94a3b8;
    font-size: 1.2rem;
}

.td-note {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.3;
    margin-top: 4px;
    font-weight: normal;
}

.risk-text {
    font-size: 0.8rem;
    line-height: 1.4;
    text-align: left;
}

.comp-table tbody tr:last-child .td-main {
    border-bottom: 2px solid var(--color-gold);
}


/* ==========================================================================
   9. Case Study, Market, Contact, Footer
   ========================================================================== */
/* --- 設置事例 (Case Study) --- */
.case-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.case-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 16px;
}

.case-img-main {
    grid-column: 1 / 3;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
}

.case-img-sub {
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    overflow: hidden;
}

.case-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-images img:hover {
    transform: scale(1.05);
}

.case-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.map-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.case-details {
    padding: 0 8px;
}

.case-location-name {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--color-navy);
    margin-bottom: 12px;
    border-bottom: 2px solid var(--color-gold);
    display: inline-block;
    padding-bottom: 4px;
}

.case-address {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.case-note {
    font-size: 0.8rem;
    color: #64748b;
    background-color: #f1f5f9;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 24px;
    /* 下に余白追加 */
}

/* --- 追加: リンクエリアのデザイン --- */
.case-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.link-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--color-navy);
    text-decoration: underline;
    text-underline-offset: 4px;
    width: fit-content;
    transition: color 0.3s ease;
    line-height: 1;
    text-decoration: none;
}

.link-item:hover {
    color: var(--color-gold);
}

.link-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Market (Market Potential) */
.market-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.market-item {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    padding: 32px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.market-head {
    color: var(--color-gold);
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 8px;
    display: inline-block;
}

.market-text {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.8;
}

/* --- お問い合わせ (Contact Form) --- */
.contact-area {
    max-width: 800px;
    margin: 0 auto;
}

.contact-lead {
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.8;
}

/* フォーム全体 */
.contact-form {
    width: 100%;
    border-top: 1px solid #e2e8f0;
}

/* 各行のデザイン */
.form-row {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
    padding: 24px 0;
    align-items: center;
    /* 垂直中央揃え */
}

/* ラベルエリア */
.form-label {
    width: 30%;
    padding-right: 24px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-weight: bold;
    color: var(--color-navy);
}

/* 必須・任意バッジ */
.badge-required {
    background-color: #ef4444;
    /* 赤 */
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: normal;
}

.badge-any {
    background-color: #94a3b8;
    /* グレー */
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: normal;
}

/* 入力エリア */
.form-input {
    width: 70%;
}

.form-input input[type="text"],
.form-input input[type="tel"],
.form-input input[type="email"],
.form-input textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 1rem;
    background-color: #fff;
    transition: all 0.3s ease;
    font-family: inherit;
    /* フォント継承 */
}

/* フォーカス時のスタイル */
.form-input input:focus,
.form-input textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(197, 160, 101, 0.2);
}

.form-input textarea {
    resize: vertical;
    /* 縦方向のみリサイズ許可 */
}

/* 送信ボタンエリア */
.form-submit {
    text-align: center;
    margin-top: 48px;
}

.form-submit p a {
    color: var(--color-gold);
    padding-right: .3rem;
}

.form-submit p a:hover {
    cursor: pointer;
    opacity: .7;
}

/* 送信ボタン (メインビジュアルのボタンとトンマナを合わせる) */
.btn-submit {
    background-color: var(--color-gold);
    color: white;
    padding: 1rem;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: inline-block;
    letter-spacing: 0.1em;
    min-width: 350px;
}

.btn-submit:hover {
    background-color: var(--color-gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.mw_wp_form_complete p {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
}

.company-info {
    border-top: 1px solid #e2e8f0;
    padding-top: 40px;
    margin-top: 40px;
    text-align: left;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    font-size: 0.9rem;
    color: #475569;
}

.company-info h4 {
    font-weight: bold;
    color: var(--color-navy);
    margin-bottom: 12px;
    font-size: 1rem;
}

/* Footer */
.footer {
    background-color: var(--color-navy);
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 32px 0;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pc-only {
    display: block;
}

.sp-only {
    display: none;
}

/* SP Responsive (Bottom Sections) */
@media (max-width: 768px) {
    .case-wrapper {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .pc-only {
        display: none;
    }

    .sp-only {
        display: block;
    }

    .market-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .market-item {
        padding: 24px;
    }

    .market-head {
        font-size: 1.05rem;
    }

    .form-row {
        flex-direction: column;
        /* 縦並び */
        align-items: flex-start;
        padding: 20px 0;
    }

    .form-label {
        width: 100%;
        padding-right: 0;
        margin-bottom: 12px;
    }

    .form-input {
        width: 100%;
    }

    .btn-submit {
        width: 100%;
        /* スマホでは幅いっぱい */
        padding: 16px;
    }

    .company-info {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
}


/* --- 仕上がりイメージギャラリー (Image Gallery) --- */

/* グリッドレイアウト (PCは2列) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

/* 画像アイテムのラッパー */
.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    background-color: var(--color-gray-light);
    /* 画像読み込み前の背景色 */
}

/* 画像のアスペクト比を固定して揃えるラッパー */
.gallery-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    /* 一般的なパース画像の比率に設定（変更可） */
    overflow: hidden;
}

/* 画像本体 */
.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* ホバー時に少し拡大 */
.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}

/* 外観・内観ラベル */
.gallery-label {
    position: absolute;
    top: 16px;
    left: 16px;
    color: white;
    font-size: 0.85rem;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 4px;
    letter-spacing: 0.05em;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ラベルの色分け */
.label-exterior {
    background-color: var(--color-navy);
    /* 外観はネイビー */
}

.label-interior {
    background-color: var(--color-gold);
    /* 内観はゴールド */
}

/* 注釈テキスト */
.gallery-note {
    font-size: 0.8rem;
    color: #94a3b8;
    /* 薄いグレー */
    line-height: 1.6;
    background-color: #f1f5f9;
    /* 薄い背景色をつけて区別 */
    padding: 16px;
    border-radius: 8px;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        /* スマホは1列 */
        gap: 1rem;
    }

    .gallery-img-wrapper {
        aspect-ratio: 3 / 2;
        /* スマホでは少し横長で見やすく */
    }
}