/* Reset & Base Styles */
:root {
    --primary-green: #1B4332;
    /* より深く、高級感のあるグリーン */
    --secondary-green: #74C69D;
    --accent-gold: #D4AF37;
    /* 本物のゴールドに近い色 */
    --text-color: #2D3436;
    --bg-white: #FFFFFF;
    --bg-light: #F0F4F2;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --max-width: 1200px;
    --font-heading: 'Shippori Mincho', serif;
    --font-body: 'Noto Sans JP', sans-serif;
    --font-en: 'Lato', sans-serif;
    --transition-standard: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.8;
    background-color: var(--bg-white);
    letter-spacing: 0.05em;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
}

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

ul {
    list-style: none;
}

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

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

.mb-4 {
    margin-bottom: 2rem;
}

.text-highlight {
    color: var(--primary-green);
    font-weight: 700;
}

.mb-5 {
    margin-bottom: 3rem;
}

.mt-4 {
    margin-top: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-green);
    color: #fff;
    border: 1px solid var(--primary-green);
    box-shadow: 0 4px 15px rgba(27, 67, 50, 0.3);
}

.btn-primary:hover {
    background-color: #fff;
    color: var(--primary-green);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(27, 67, 50, 0.4);
}

.btn-sm {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
}

.btn-lg {
    font-size: 1.1rem;
    padding: 1.2rem 4rem;
    letter-spacing: 0.1em;
}

/* Hero Section (Slideshow) */
.hero {
    position: relative;
    height: 100vh;
    height: 100svh;
    width: 100%;
    overflow: hidden;
    display: block;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/img/fc/hero_bg_28801600.webp');
    /* パスを修正 */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;

    /* Chromeでのスクロール時リサイズ対策: 背景を固定に近い形にする */
    background-attachment: scroll;

    /* Safari対策: GPUアクセラレーションを保持 */
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    image-rendering: -webkit-optimize-contrast;
}


/* Overlay for text readability */
.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

}


.hero-content {
    position: relative;
    z-index: 10;
    text-align: left;
    color: #fff;
    padding: 0 1rem;
    max-width: 1500px;
    margin: 0 auto;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* PCでは中央に寄せる */
}

.hero-content-top {
    margin-bottom: 2rem;
}

.hero-badges {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.5s;
}

.hero-badge {
    width: clamp(60px, 10vw, 120px);
    height: auto;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.hero-suby {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.2em;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.5s;
}

.hero-title {
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.5s;
}

.hero-desc {
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);
    margin-bottom: 4rem !important;
    line-height: 1.8 !important;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.5s;
}

.hero-content .btn {
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.5s;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-green) !important;
    border: none;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    padding: clamp(0.8rem, 1.5vw, 1rem) clamp(2rem, 4vw, 3rem);
}

.hero-content .btn:hover {
    background-color: #fff;
    color: var(--primary-green);
    transform: scale(1.05);
}

/* Scroll Animation Initial States */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.scroll-down {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: var(--primary-green);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: var(--font-en);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
}

.scroll-down .line {
    width: 1px;
    height: 50px;
    background-color: var(--primary-green);
    margin-top: 10px;
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    51% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sections Base */
.section {
    padding: 4rem 0;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.container-fluid {
    width: 100%;
    padding: 0;
}

.section-header {
    margin-bottom: 4rem;
}

.en-title {
    display: block;
    font-family: var(--font-en);
    color: var(--accent-gold);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    margin-bottom: 1rem;
    text-transform: uppercase;
    position: relative;
}

.en-title::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: var(--accent-gold);
    margin: 10px auto 0;
}

.jp-title {
    font-size: 2.5rem;
    color: var(--primary-green);
    text-align: center;
}

/* About Section */
.about {
    background-color: #fff;
}

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

.about-lead {
    font-size: 1rem;
    text-align: left;
    max-width: 800px;
    margin: 0 auto 3rem !important;
    line-height: 1.8 !important;
    color: var(--text-color);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 2rem;
}

.about-item {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    background: var(--bg-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(47, 93, 72, 0.1);
}

.about-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.about-item h4 {
    font-size: 1.3rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.about-item p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-color);
}

/* Major Products */
.major-products {
    margin-top: 6rem;
}

.sub-jp-title {
    text-align: center;
    font-size: 1.5rem !important;
    color: var(--primary-green);
    margin-bottom: 3rem !important;
}

.product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: start;
    /* カードが縦に伸びて余白ができるのを防ぐ */
}

.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border: 1px solid #eee;
    flex: 0 1 calc(33.333% - 1.34rem);
    /* 3カラム（gap考慮） */
    max-width: 350px;
    display: flex;
    flex-direction: column;
}

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

.product-image {
    width: 100%;
    position: relative;
    padding-top: 62.5%;
    /* 16:10 = 10 / 16 = 0.625 */
    overflow: hidden;
}

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

.product-info {
    padding: 2rem;
}

.product-name {
    font-size: 1.4rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.product-name-sub {
    font-size: 0.8rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.product-feature,
.product-achievement {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.product-achievement {
    color: var(--primary-green);
    font-weight: 500;
}

/* Brand Story */
.brand-story {
    background-color: var(--bg-light);
    padding: 8rem 0;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: none;
    margin: 0;
    text-align: left;
}

.story-image {
    display: block;
}

.story-image img {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.story-item {
    margin-bottom: 2.5rem;
}

.story-item h4 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--accent-gold);
    display: inline-block;
    padding-bottom: 0.5rem;
}

/* Appeal */
.appeal {
    background-color: var(--primary-green);
    color: #fff;
    /* セクション全体の基本文字を白に */
}

.appeal .jp-title {
    color: #fff;
}

/* Appeal (Strengths) Section Refined */
.appeal-rows {
    display: flex;
    flex-direction: column;
    gap: 6rem;
    margin-top: 4rem;
}

.appeal-row {
    display: flex;
    align-items: center;
    gap: 4rem;
    background-color: var(--bg-light);
    padding: 4rem;
    position: relative;
    overflow: hidden;
    color: var(--text-color);
    /* カード内の文字色を標準に戻す */
}

.appeal-row::before {
    content: "STRENGTHS " attr(data-strength);
    position: absolute;
    top: 2rem;
    right: 4rem;
    /* 常に右側に配置 */
    font-family: var(--font-en);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: 0.2em;
}

/* 左右を入れ替えるクラスでの個別指定を削除 */

.appeal-image {
    flex: 1.2;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: auto;
    aspect-ratio: 497 / 350;
}

.appeal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.appeal-text {
    flex: 1;
    padding-top: 2rem;
    /* ラベル用の余白（上下中央揃えの場合は不要かもしれないが、安全のため保持） */
}

/* リバース時もテキストに右余白（ラベル用）を確保 */
.appeal-row.reverse .appeal-text {
    padding-right: 2rem;
}

/* 非リバース時もテキストに右余白（ラベル用）を確保 */
.appeal-row:not(.reverse) .appeal-text {
    padding-right: 2rem;
}



.appeal-text h4 {
    font-size: 1.8rem !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.4;
    color: var(--primary-green);
}

.appeal-text p {
    font-size: 1rem;
    line-height: 1.8;
}

.data-box {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 8px;
}

.data-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-weight: bold;
    color: var(--text-color);
}

.data-row.sub {
    margin-top: 1rem;
    font-size: 0.9rem;
}

.number {
    font-family: var(--font-en);
    font-size: 2.5rem;
    color: var(--accent-gold);
    line-height: 1;
}

.number small {
    font-size: 1rem;
}

.data-note {
    font-size: 0.7rem;
    text-align: right;
    color: #888;
}

/* Store Gallery */
.store-gallery {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-desc {
    margin-top: 1rem !important;
}

.carousel-container {
    position: relative;
    max-width: var(--max-width);
    margin: 0 auto;
    padding-bottom: 2rem;
}

.gallery-carousel {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 30px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.gallery-carousel::-webkit-scrollbar {
    display: none;
}

.gallery-item {
    flex: 0 0 auto;
    width: clamp(260px, 40vw, 360px);
    scroll-snap-align: center;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #d1d5db;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.indicator.active {
    background-color: var(--primary-green);
}

/* Benefits */
.benefits {
    background-color: var(--bg-light);
}

.benefits-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.benefit-item {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.check-icon {
    width: 30px;
    height: 30px;
    background: var(--primary-green);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-content h5 {
    font-size: 1.2rem;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

/* Independent Support */
.independent-support {
    background: #fff;
    padding: 3rem;
    border-radius: 8px;
    margin-top: 3rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.support-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-green);
}

.support-title-wrap {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
    flex: 1;
}

.support-title-wrap h5 {
    font-size: 1.5rem;
    color: var(--primary-green);
    margin: 0;
}

.support-sub {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 500;
}

.support-content {
    padding-left: calc(30px + 1.5rem);
}

.support-lead {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary-green);
    margin-bottom: 1.5rem;
}

.support-list {
    list-style: none;
    padding: 0;
}

.support-list li {
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.8;
}

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

@media (max-width: 768px) {
    .independent-support {
        padding: 1.5rem;
        margin-top: 2rem;
    }

    .support-header {
        gap: 1rem;
    }

    .support-title-wrap {
        flex-direction: column;
        gap: 0.25rem;
    }

    .support-title-wrap h5 {
        font-size: 1.3rem;
    }

    .support-content {
        padding-left: calc(30px + 1rem);
    }
}

/* Requirements */
.requirements {
    background-image: url('/img/fc/looking_for_bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding: 10rem 0;
}

.requirements::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    z-index: 0;
}

.req-box {
    position: relative;
    z-index: 1;
}

.requirements .en-title {
    color: var(--accent-gold);
}

.requirements .jp-title {
    color: var(--primary-green);
}

.req-content-block {
    max-width: 800px;
    margin: 4rem auto 0;
    background: #fff;
    padding: 4rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 0.9;
}

.req-list {
    list-style: none;
    padding: 0;
}

.req-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 2rem;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary-green);
    line-height: 1.6;
}

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

.req-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 8px;
    height: 8px;
    background: var(--accent-gold);
    border-radius: 50%;
}

@media (max-width: 768px) {
    .req-content-block {
        padding: 2.5rem 1.5rem;
        margin-top: 2rem;
    }

    .req-list li {
        font-size: 1rem;
        padding-left: 1.5rem;
        margin-bottom: 1.5rem;
    }

    /* 1. ページ全体の横揺れを強制停止 */
    html,
    body {
        overflow-x: hidden !important;
        width: 100% !important;
        position: relative;
    }

    /* 2. 全ての要素が親要素を超えないように制限 */
    *,
    *::before,
    *::after {
        max-width: 100vw !important;
        /* 画面幅を絶対に超えない */
        box-sizing: border-box;
        /* パディングによるはみ出しを防止 */
    }

    /* 3. ショップサーブのラッパーをリセット */
    #wrapper,
    #head,
    #contents,
    #mainContents_wrap {
        width: 100% !important;
        min-width: 100% !important;
    }

    /* 1. カルーセル外枠：ここからはみ出したものは「存在しないもの」として扱う */
    .carousel-container {
        width: 100% !important;
        overflow: hidden !important;
        /* これが横揺れ防止の決定打です */
        position: relative;
        padding: 0 !important;
        margin: 0 auto !important;
    }

    /* 2. カルーセル中身：横スクロールはさせるが、全体の幅には影響させない */
    #gallery-carousel {
        display: flex;
        gap: 15px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100% !important;
        /* スクロールバーを隠す（任意） */
        scrollbar-width: none;
    }

    #gallery-carousel::-webkit-scrollbar {
        display: none;
    }

    /* 3. 犯人として挙がっていた図解画像 */
    .revenue-flow-image {
        width: 100% !important;
        overflow: hidden !important;
        /* 子要素の突き出しをカット */
    }

    .model-diagram {
        max-width: 100% !important;
        height: auto !important;
    }

    /* 4. スクリプトで背景を固定しているbodyへの念押し */
    html,
    body {
        overflow-x: hidden !important;
        /* 横方向のスクロールをページ単位で禁止 */
        width: 100% !important;
        position: relative;
    }
}

/* Process */
.process {
    background: #fff;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

.step {
    text-align: center;
    position: relative;
    z-index: 1;
    width: 20%;
}

.step-num {
    font-family: var(--font-en);
    font-size: 3rem;
    color: rgba(220, 220, 220, 0.5);
    font-weight: 700;
    line-height: 1;
    margin-bottom: -15px;
    position: relative;
    z-index: -1;
}

.step h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.arrow {
    flex-grow: 1;
    height: 1px;
    background: #ddd;
    margin-top: 3rem;
    position: relative;
}

.arrow::after {
    content: '';
    position: absolute;
    right: 0;
    top: -4px;
    width: 8px;
    height: 8px;
    border-top: 1px solid #ddd;
    border-right: 1px solid #ddd;
    transform: rotate(45deg);
}

/* Closing */
.closing {
    background-color: var(--bg-light);
    padding: 8rem 0;
}

.closing-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    /* 左テキスト、右写真 */
    gap: 4rem;
    align-items: center;
}

.closing-image {
    position: relative;
}

.closing-image img {
    display: block;
    width: 100%;
    height: auto;
    /* PCでは左側（テキストとの境界）をフェード */
    mask-image: linear-gradient(to right, transparent, black 15%);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%);
    opacity: 0.9;
}

.closing-content {
    text-align: left;
}

.closing-title {
    font-size: 2.2rem;
    color: var(--primary-green);
    margin-bottom: 2rem;
    line-height: 1.4;
}

.closing-msg {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 2;
    margin-bottom: 3rem;
}

.closing-sign {
    text-align: right;
    margin-top: 2rem;
}

.closing-sign .role {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.2rem;
}

.closing-sign .name {
    font-size: 1.4rem;
    font-family: var(--font-heading);
    color: var(--text-color);
}

/* Contact 
.contact {
    background: #fff;
}*/

.contact-box {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 3rem;
    border: 1px solid #eee;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    font-size: 0.9rem;
}

.required {
    background: #e74c3c;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
    vertical-align: middle;
}

.radio-group label {
    display: inline-block;
    margin-right: 1.5rem;
    cursor: pointer;
    font-weight: normal;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-green);
}

/* Footer */
.footer {
    background: var(--primary-green);
    color: #fff;
    padding: 2rem 0;
    font-size: 0.8rem;
    font-family: var(--font-en);
}

/* Responsive - Tablet */
/* Responsive - Tablet & Mobile */
@media (max-width: 1023px) {
    .hero {
        height: 80vh;
        height: 80svh !important;
        min-height: 600px;
        /* あまりに短くなりすぎるのを防ぐ */
        /* スクロール時のアドレスバー変動対策 */
    }

    .hero-bg {
        background-image: url('/img/fc/hero_bg_7501286.webp');
        background-attachment: scroll;
    }

    .hero-content {
        text-align: center;
        padding: 6rem 2rem 4rem 2rem;
        /* 余白を微調整して配置を安定化 */
        justify-content: center;
        /* 間にスペースを空けるのではなく中央付近に集約 */
        gap: 2rem;
    }

    .hero-content-top {
        margin-top: 0;
        margin-bottom: 0;
    }

    .hero-content-bottom {
        position: absolute;
        bottom: 50px;
        /* 位置を固定（数値はお好みで調整可能） */
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        max-width: 90%;
        margin: 0;
        z-index: 20;
    }

    .hero-badges {
        justify-content: center;
        margin-bottom: 26rem;
    }

    .hero-badge {
        width: 120px;
    }

    .hero-title {
        font-size: clamp(1.6rem, 8vw, 2.5rem);
    }

    .hero-desc {
        font-size: clamp(1.5rem, 1.5vw, 1.5rem);
        margin-bottom: 1rem !important;
    }

    .product-grid {
        gap: 1.5rem;
    }

    .product-card {
        flex: 0 1 calc(50% - 0.75rem);
        /* 2カラム */
        max-width: none;
    }

    .header-container {
        padding: 1rem;
    }

    .nav {
        display: none;
    }

    /* Simplified for MVP: Hide nav on mobile or implement burger */

    .hero-title {
        font-size: 3rem;
        text-align: center;
        margin-top: 3rem;
    }

    .jp-title,
    .closing-title {
        font-size: 1.6rem;
    }

    .closing {
        padding: 4rem 0;
    }

    .closing-grid {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .closing-content {
        order: 2;
        /* テキストを下に */
        max-width: 100%;
        padding: 0 2rem;
        background: none;
        box-shadow: none;
    }

    .closing-image {
        order: 1;
        /* 写真を上に */
        max-width: 60%;
        margin: 0 auto;
    }

    .closing-image img {
        /* モバイルでは下側（テキストとの境界）をフェード */
        mask-image: linear-gradient(to bottom, black 85%, transparent);
        -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent);
    }

    .story-grid,
    .benefits-list,
    .req-grid,
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .appeal-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .gallery-item {
        width: clamp(220px, 60vw, 300px);
    }

    .process-steps {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .step {
        width: 100%;
    }

    .arrow {
        width: 1px;
        height: 40px;
        /* 少し長くして見やすく */
        margin: 0;
        background: #ddd;
        transform: none;
        /* 回転を解除 */
    }

    .arrow::after {
        top: auto;
        bottom: 0;
        right: auto;
        left: -3.5px;
        /* 線の中央に合わせる */
        border-top: none;
        border-left: none;
        border-bottom: 1px solid #ddd;
        border-right: 1px solid #ddd;
        transform: rotate(45deg);
        /* 下向き矢印 */
    }

    .contact-box {
        padding: 1.5rem;
    }

    .appeal-row,
    .appeal-row.reverse {
        max-width: 600px;
        margin: 0 auto;
    }
}

/* Gallery Modal Styles */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 80vh;
    cursor: default;
}

.modal-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10001;
}

.modal-close:hover {
    color: var(--secondary-green);
}

.modal-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    transition: 0.3s;
    pointer-events: auto;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 20px;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.gallery-item {
    cursor: pointer;
}

/* Contact Form */
.contact-form-wrapper {
    max-width: 900px;
    margin: 4rem auto;
    background: #fff;
    padding: 4rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary-green);
}

.form-group label .required {
    background: #e74c3c;
    color: #fff;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-standard);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(27, 67, 50, 0.1);
}

.privacy-note {
    font-size: 0.85rem;
    color: #777;
    margin: 2rem 0;
}

.privacy-note a {
    text-decoration: underline;
    color: var(--primary-green);
}

.form-submit .btn {
    min-width: 300px;
}

/* Footer */
.footer {
    background: var(--primary-green);
    color: #fff;
    padding: 6rem 0 3rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Responsive adjustments */
@media (max-width: 992px) {

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

@media (max-width: 768px) {
    .section {
        padding: 4rem 0;
    }

    .jp-title {
        font-size: 1.4375rem;
    }

    .appeal-cards,
    .req-grid,
    .benefits-list,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .product-grid {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .product-card {
        flex: 0 1 100%;
        width: 100%;
        max-width: 400px;
        /* モバイルでの最大幅を少し広げる */
    }

    .form-group.full-width {
        grid-column: span 1;
    }

    .contact-form-wrapper {
        padding: 2rem;
        margin: 2rem 1rem;
    }

    .process-steps {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .step {
        width: 100%;
    }

    .step h4 {
        margin-bottom: 0.5rem;
    }

    .arrow {
        display: none;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .hero-desc {
        font-size: 0.95rem;
        margin-bottom: 0.2rem !important;

        br {
            display: none;
            /* モバイルでは強制改行を外す */
        }
    }

    .hero-content {
        padding: 0 1.5rem;
        justify-content: center;
        gap: 2rem;
        padding-bottom: 4rem;
    }

    .hero-badges {
        gap: 0.5rem;
        margin-bottom: 17rem;
    }

    .hero-badge {
        width: 110px;
    }

    /* .hero-content-bottom {
        margin-bottom: 3rem; 
    }*/
    .appeal-row {
        padding: 4rem 2rem;
    }

    @media (max-width: 390px) {
        .hero-badge {
            width: 80px;
        }

        .hero-desc {
            margin-bottom: 0rem !important;
        }

        .hero-content-top {
            margin-top: 2rem;
        }

        .hero-content-bottom {
            margin-bottom: 0rem;
        }
    }
}

/* --- Additional Styles for New Sections --- */

/* Product Categories */
.product-categories-wrapper {
    margin: 4rem auto;
    max-width: 900px;
}

.product-categories {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 200px;
    text-align: center;
}

.category-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 2px solid var(--secondary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.category-item:hover .category-icon {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(27, 67, 50, 0.1);
}

.category-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-text {
    font-size: 0.95rem;
    color: var(--primary-green);
    font-weight: 500;
}


/* Business Model Card */
.business-model-card {
    background: var(--bg-light);
    border: 2px solid var(--secondary-green);
    border-radius: 24px;
    padding: 4rem 3rem;
    max-width: 1000px;
    margin: 0 auto;
    box-shadow: 0 25px 60px rgba(27, 67, 50, 0.1);
    position: relative;
}

.model-header {
    text-align: center;
    margin-bottom: 3rem;
}

.model-header .badge {
    background: var(--primary-green);
    color: #fff;
    padding: 0.5rem 2rem;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 4px;
    margin-bottom: 1rem;
    display: inline-block;
    letter-spacing: 0.1em;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.model-header h4 {
    font-size: 2.2rem !important;
    color: var(--primary-green);
    line-height: 1.3;
    text-align: center;
}

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

.model-content>p span {
    color: var(--accent-gold);
    font-weight: 700;
}

.revenue-reasoning {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2.5rem 0;
    flex-wrap: wrap;
}

.reason-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    border: 1px solid var(--secondary-green);
    box-shadow: 0 2px 8px rgba(27, 67, 50, 0.05);
    font-weight: 700;
    color: var(--primary-green);
    font-size: 0.95rem;
}

.reason-item .check {
    color: var(--secondary-green);
    font-weight: bold;
}

.model-summary {
    font-size: 1.1rem;
    color: var(--primary-green);
    font-weight: 700;
    margin: 2.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.summary-icon {
    color: var(--accent-gold);
    stroke-width: 3;
}

.revenue-flow-image {
    margin: 3rem 0;
    width: 100%;
    text-align: center;
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
}

.model-diagram {
    max-width: 100%;
    height: auto;
}

/* Model Stats & Point Blocks */
.model-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 5rem;
    padding-top: 5rem;
    border-top: 1px dashed var(--secondary-green);
    text-align: left;
    position: relative;
}

.stats-badge-container {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-light);
    padding: 0 1.5rem;
}

.stats-main-badge {
    background: var(--accent-gold) !important;
    color: #fff !important;
    padding: 0.4rem 1.5rem !important;
    font-size: 0.85rem !important;
    white-space: nowrap;
    font-weight: 700;
}

.stat-block {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.stat-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.point-badge {
    background: var(--accent-gold);
    color: #fff;
    font-family: var(--font-en);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.2rem 0.8rem;
    border-radius: 2px;
    letter-spacing: 0.05em;
}

.stat-label {
    font-weight: 700;
    color: var(--primary-green);
    font-size: 1.2rem;
}

.stat-body {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.chart-container {
    flex-shrink: 0;
    width: 140px;
    height: 140px;
}

.pie-chart {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(var(--accent-gold) 0% var(--percentage),
            #eee var(--percentage) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.05);
}

.chart-inner {
    width: 75%;
    height: 75%;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-en);
    font-weight: 700;
    color: var(--primary-green);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.chart-inner span {
    font-size: 1.8rem;
    margin-right: 2px;
}

.stat-info {
    flex: 1;
}

.stat-desc {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.6;
    font-weight: 700;
}

.stat-desc small {
    display: block;
    font-size: 0.95rem;
    color: #666;
    margin-top: 0.5rem;
    font-weight: normal;
}

@media (max-width: 768px) {
    .business-model-card {
        padding: 3rem 1rem;
    }

    .model-header h4 {
        font-size: 1.4rem !important;
    }

    .stat-body {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .chart-container {
        width: 120px;
        height: 120px;
        margin: 0 auto;
    }

    .reason-item {
        width: 100%;
        justify-content: center;
    }

    .model-summary {
        font-size: 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Market Section */
.market {
    background-color: var(--bg-light);
    padding: 8rem 0;
}

.section-lead {
    max-width: 800px;
    margin: 1.5rem auto 0 !important;
    font-size: 1rem;
    line-height: 1.8 !important;
    color: #555;
}

.market-diagram-container {
    max-width: 800px;
    margin: 3rem auto 0;
    text-align: center;
}

.market-diagram-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    padding: 24px;
    background-color: #fff;
}

.market-comparison {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 6rem auto 0;
    justify-content: center;
    max-width: 1000px;
}

.market-box {
    flex: 1;
    padding: 4rem 3rem;
    position: relative;
    transition: var(--transition-standard);
}

.market-box h5 {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--primary-green);
}

.market-box ul {
    list-style: none;
    padding: 0;
}

.market-box ul li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    text-align: left;
}

.market-box.pain {
    background: #fff;
    border-radius: 20px 0 0 20px;
    border: none;
    z-index: 20;
    margin: 2.5rem;
    padding: 4rem calc(3rem + 40px) 4rem 3rem;
    clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 50%, calc(100% - 40px) 100%, 0 100%);
}

.market-box.pain h5 {
    opacity: 0.8;
}

.market-box.pain ul li::before {
    content: '×';
    position: absolute;
    left: 0;
    color: #e74c3c;
    font-weight: bold;
}

.market-box.solution {
    background: #fff;
    border-radius: 20px;
    border: 3px solid var(--primary-green);
    z-index: 10;
    transform: scale(1.08);
    box-shadow: 0 30px 60px rgba(27, 67, 50, 0.15);
}

.market-box.solution h5 {
    color: var(--primary-green);
    font-weight: 700;
}

.market-box.solution ul li {
    padding-left: 0;
}

.market-box.solution .check {
    color: var(--secondary-green);
    margin-right: 0.5rem;
}

.superiority-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--accent-gold);
    color: #fff;
    padding: 0.5rem 1.2rem;
    font-family: var(--font-en);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}

/* Why FC Section */
.why-fc {
    background: #fff;
}

.why-fc-box {
    max-width: 1000px;
    margin: 0 auto;
}

.why-fc-lead {
    font-size: 1rem;
    text-align: center;
    margin-bottom: 3rem !important;
    line-height: 1.8 !important;
}

.why-fc-lead strong {
    color: var(--primary-green);
    font-weight: 500;
}

.why-fc-message {
    background: var(--bg-light);
    padding: 3rem 2.5rem;
    border-radius: 10px;
    text-align: center;
    font-size: 1rem;
    margin-bottom: 4rem;
    position: relative;
}

.why-fc-message p {
    line-height: 1.8 !important;
}

.header-label {
    display: block;
    color: var(--secondary-green);
    font-family: var(--font-en);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.why-fc-points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.why-fc-points .point {
    text-align: center;
}

.why-fc-points .num {
    display: block;
    font-family: var(--font-en);
    font-size: 2.5rem;
    color: var(--accent-gold);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1;
}

/* Responsive */
@media (max-width: 768px) {

    /* Revenue flow image margin adjustment */
    .revenue-flow-image {
        margin: 2rem 0;
        padding: 5px 0;
    }

    .market-comparison {
        flex-direction: column;
        gap: 0;
        margin-top: 4rem;
        padding: 0 1rem;
    }

    .market-box.pain {
        border-radius: 12px 12px 0 0;
        padding: 2.5rem 1.5rem calc(2.5rem + 30px) 1.5rem;
        margin: 0 0 2.5rem 0;
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), 50% 100%, 0 calc(100% - 30px));
    }

    .market-box.solution {
        border-radius: 12px;
        transform: scale(1.03);
        padding: 3rem 1.5rem;
        margin-top: 0;
    }

    .superiority-badge {
        right: 15px;
        top: -12px;
        font-size: 0.7rem;
        padding: 0.4rem 1rem;
    }

    .why-fc-points {
        grid-template-columns: 1fr;
    }

    .sp-only {
        display: block;
    }
}

.sp-only {
    display: none;
}

/* Model Calculation Section */
.model {
    background-color: var(--bg-light);
}

.model-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 4rem;
}

.model-table-card {
    background: #fff;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.model-table-card h4 {
    font-size: 1.5rem;
    color: var(--primary-green);
    margin-bottom: 2rem;
    text-align: center;
    border-bottom: 2px solid var(--secondary-green);
    display: inline-block;
    padding-bottom: 10px;
    width: 100%;
}

.model-table-card h4 small {
    display: block;
    font-size: 0.9rem;
    font-weight: normal;
    color: #666;
    margin-top: 5px;
}

.model-table {
    width: 100% !important;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    /* 幅を固定比率で守らせるために必須 */
    table-layout: fixed;
}

.model-table th,
.model-table td {
    padding: 1.2rem 0.5rem;
    /* 左右の余白を少し詰めると入りやすくなります */
    border-bottom: 1px solid #eee;
    font-size: 1.1rem;
    vertical-align: middle;
}

.model-table th {
    text-align: left;
    color: #444;
    font-weight: 600;
    /* ご希望の 45% に設定 */
    width: 45%;
    line-height: 1.4;
    word-break: break-all;
    /* 項目名が長すぎる場合に備えて */
}

.model-table td {
    /* ご希望の「左寄せ」に変更 */
    text-align: left;
    font-family: var(--font-en);
    font-weight: 600;
    color: var(--primary-green);
    /* 残りの 55% を割り当て */
    width: 55%;
    /* 金額が絶対に改行されないようにする */
    white-space: nowrap;
}

/* 合計行の調整（ここも左寄せに合わせる） */
.model-table tr.total th,
.model-table tr.total td {
    border-bottom: none;
    font-size: 1.3rem;
    color: var(--primary-green);
    padding: 1.5rem 0.5rem;
}

.model-table tr.total td {
    color: var(--accent-gold);
    text-align: left;
    /* 合計金額も左寄せ */
}

.model-table tr.total {
    background-color: rgba(27, 67, 50, 0.05);
}

.model-table tr.total th,
.model-table tr.total td {
    border-bottom: none;
    font-size: 1.3rem;
    color: var(--primary-green);
    padding: 1.5rem 1rem;
}

.model-table tr.total td {
    color: var(--accent-gold);
}

.model-note {
    font-size: 0.9rem;
    color: #888;
}

@media (max-width: 992px) {
    .appeal-rows {
        gap: 4rem;
    }

    .appeal-row,
    .appeal-row.reverse {
        flex-direction: column !important;
        gap: 2rem;
        align-items: center;
        max-width: 600px;
        margin: 0 auto;
    }

    .appeal-image {
        width: 100%;
        height: auto;
        aspect-ratio: 497 / 350;
        flex: none;
    }

    .appeal-text {
        flex: none;
        max-width: 100%;
        padding: 0 1rem;
    }

    .appeal-num {
        font-size: 2.5rem;
    }

    .appeal-text h4 {
        font-size: 1.2rem !important;
        margin-bottom: 1rem !important;
        margin-top: 1rem !important;
    }

    .model-grid {
        grid-template-columns: 1fr;
    }

    .model-table-card {
        padding: 2rem 1.5rem;
    }
}

/* 収支モデルテーブルの最終調整 */
.model-table {
    width: 100% !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
    background-color: #ffffff !important;
    border: none !important;
}

/* 全セルの共通設定 */
.model-table th,
.model-table td {
    background-color: #ffffff !important;
    padding: 1.2rem 0.5rem !important;
    border: none !important;
    /* 基本は下線を引く */
    border-bottom: 1px solid #eeeeee !important;
    font-size: 1.05rem !important;
    vertical-align: middle !important;
}

/* 項目（左側）45% */
.model-table th {
    width: 45% !important;
    color: var(--text-color) !important;
    font-weight: 600 !important;
}

/* 金額（右側）55%・改行禁止 */
.model-table td {
    width: 55% !important;
    color: var(--primary-green) !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    /* ここでも念押しで右寄せ */
    text-align: right !important;
}

/* 一番最後の行（合計行）の特別スタイル */
.model-table tr:last-child th,
.model-table tr:last-child td,
.model-table tr.total th,
.model-table tr.total td {
    /* アンダーライン（下線）をなしにする */
    border-bottom: none !important;
    /* 背景色をグレーにする（--bg-lightに合わせる） */
    background-color: #F0F4F2 !important;
    color: var(--primary-green) !important;
    padding: 1.5rem 0.5rem !important;
    font-size: 1.2rem !important;
}

/* 合計金額の文字色だけゴールドに */
.model-table tr:last-child td,
.model-table tr.total td {
    color: var(--accent-gold) !important;
}

/* 収支モデルテーブル内の括弧（smallタグ）の調整 */
.model-table th small {
    display: block !important;
    /* 改行して表示させる（不要ならここを削除） */
    font-size: 0.8rem !important;
    /* 文字を小さく */
    font-weight: normal !important;
    /* 太字を解除して細く */
    color: #777 !important;
    /* グレーにして視認性を下げる */
    margin-top: 4px !important;
    line-height: 1.3 !important;
}

/* 金額セルの横にある補足も小さくしたい場合に備えて */
.model-table td small {
    font-size: 0.8rem !important;
    font-weight: normal !important;
    color: #777 !important;
    margin-left: 4px !important;
}

/* Safari対策: フランチャイズの強みセクションの画像見切れ修正 */
@media (max-width: 1023px) {
    .appeal-row {
        display: block !important;
        /* flexからblockに変更してSafariの計算バグを回避 */
        width: 100% !important;
        padding: 3rem 1.5rem !important;
    }

    .appeal-image {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        /* 高さを固定せず中身に合わせる */
        aspect-ratio: auto !important;
        /* Safariでの計算狂いを防ぐため一旦解除 */
        margin-bottom: 2rem;
        overflow: hidden;
    }

    .appeal-image img {
        position: static !important;
        /* absolute指定があれば解除 */
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        /* 全体が見えるように収める */
        display: block;
    }

    .appeal-text {
        width: 100% !important;
        padding: 0 !important;
    }
}

/* 収支モデルの金額が右寄せになっていた箇所の最終修正 */
.model-table td {
    text-align: left !important;
    /* 強制的に左寄せに上書き */
}