@import url('reset.css');

/* Updated: 2026-01-13 - Table padding adjusted */

/* ========================================
   カラー定義
   ======================================== */
:root {
    --color-primary: #1a365d;      /* ネイビーブルー */
    --color-secondary: #dd6b20;    /* オレンジ */
    --color-accent: #4299e1;       /* ライトブルー */
    --color-gray: #718096;         /* ニュートラル */
    --color-bg: #f7fafc;           /* 背景 */
    --color-text: #2d3748;         /* テキスト */
    --color-white: #ffffff;
    --color-border: #e2e8f0;
    
    /* スペーシング */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    --spacing-xxl: 5rem;
    
    /* フォントサイズ */
    --font-xs: 0.875rem;
    --font-sm: 1rem;
    --font-md: 1.125rem;
    --font-lg: 1.5rem;
    --font-xl: 2rem;
    --font-xxl: 2.5rem;
    
    /* コンテナ幅 */
    --container-max: 1200px;
    --container-padding: 1.5rem;
}

/* ========================================
   共通スタイル
   ======================================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
    color: #333;
    position: relative;
}
.section-title img {
    width: auto;
    max-width: 100%;
    object-fit: contain;
    vertical-align: middle;
}

@media (max-width: 767px) {
    .section-title {
        font-size: var(--font-lg);
    }
    section {
        padding: 3rem 0;
    }
    .container {
        padding: 0 1rem;
    }
}

/* ========================================
   ボタン
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    letter-spacing: 0.02em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-secondary), #e57a2e);
    color: var(--color-white);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #c05621, #d06a1e);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(221, 107, 32, 0.35);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: var(--font-md);
}

.btn-header {
    padding: 0.65rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 8px;
    background: linear-gradient(135deg, #ea580c, #c2410c);
    color: #fff !important;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.35);
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.btn-header:hover {
    background: linear-gradient(135deg, #c2410c, #9a3412);
    box-shadow: 0 6px 16px rgba(234, 88, 12, 0.45);
    transform: translateY(-2px);
    color: #fff !important;
}

.btn-header-material {
    background: linear-gradient(135deg, #14532d 0%, #166534 50%, #15803d 100%);
    color: #fff !important;
    border: none;
    box-shadow: 0 2px 8px rgba(21, 128, 61, 0.35);
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.btn-header-material:hover {
    background: linear-gradient(135deg, #0f3d1f 0%, #14532d 50%, #166534 100%);
    color: #fff !important;
    border: none;
    box-shadow: 0 6px 16px rgba(21, 128, 61, 0.5);
    transform: translateY(-2px);
}

.btn-header-seminar {
    background: linear-gradient(135deg, #ea580c, #c2410c);
    color: #fff !important;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.btn-header-seminar:hover {
    background: linear-gradient(135deg, #c2410c, #9a3412);
    box-shadow: 0 6px 16px rgba(234, 88, 12, 0.45);
    transform: translateY(-2px);
    color: #fff !important;
}

/* ヘッダーボタン: ナビのホバーを上書きせず、ボタン用の背景・文字色を優先 */
.nav-list a.btn-header-material,
.nav-list a.btn-header-material:hover {
    color: #fff !important;
}

.nav-list a.btn-header-material:hover {
    background: linear-gradient(135deg, #0f3d1f 0%, #14532d 50%, #166534 100%) !important;
    box-shadow: 0 6px 16px rgba(21, 128, 61, 0.5);
    transform: translateY(-2px);
}

.nav-list a.btn-header-seminar,
.nav-list a.btn-header-seminar:hover {
    color: #fff !important;
}

.nav-list a.btn-header-seminar:hover {
    background: linear-gradient(135deg, #c2410c, #9a3412) !important;
    box-shadow: 0 6px 16px rgba(234, 88, 12, 0.45);
    transform: translateY(-2px);
}

/* ========================================
   ヘッダー
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    transform: translateY(-100%);
}

.header.scrolled {
    transform: translateY(0);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.header-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0.75rem var(--container-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
}

.header-logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
    display: block;
}

.header-logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: #239248;
    letter-spacing: 0.02em;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: nowrap;
}

.nav-list li {
    flex-shrink: 0;
}

.nav-list a {
    color: #374151;
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

.nav-list a:hover {
    color: #239248;
    background: rgba(35, 146, 72, 0.06);
}

.header-phone {
    margin-left: 0.5rem;
    padding-left: 1rem;
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.phone-label {
    font-size: 1.125rem;
    color: #374151;
    margin-bottom: 0.2rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.phone-number {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #239248;
    font-size: 1.3rem;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.phone-number:hover {
    color: #15803d;
}

/* 電話番号: .nav-list a に上書きされないように優先度を上げる */
.nav-list a.phone-number {
    font-size: 1.3rem !important;
    font-weight: bold !important;
    padding: 0.25rem 0 !important;
}

.nav-list a.phone-number:hover {
    background: transparent !important;
}

.phone-icon {
    flex-shrink: 0;
    color: inherit;
}

.footer-contact .footer-phone-icon {
    vertical-align: -0.2em;
    margin-right: 0.25rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background-color: #239248;
    border-radius: 1px;
    transition: all 0.3s ease;
}

/* モバイルメニュー：左右中央揃え、ボタンは1行に2つ */
@media (max-width: 767px) {
    .nav-list {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background-color: var(--color-white);
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        padding: var(--spacing-md);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        text-align: center;
        justify-items: center;
    }
    .nav-list li {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .nav-list li:nth-child(1),
    .nav-list li:nth-child(2),
    .nav-list li:nth-child(3),
    .nav-list li:nth-child(6) {
        grid-column: 1 / -1;
    }
    .nav-list li:nth-child(4),
    .nav-list li:nth-child(5) {
        grid-column: span 1;
    }
    .nav-list a:not(.btn-header) {
        display: block;
        width: 100%;
        text-align: center;
    }
    .nav-list .header-phone {
        flex-direction: column;
        text-align: center;
    }
    .nav-list.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
}

/* ========================================
   ヒーローセクション
   ======================================== */
.hero {
    padding: 40px 0 0;
    background: url('../images/Hero背景.png') center top / 100% auto no-repeat, #ffffff;
    min-height: 600px;
    display: flex;
    align-items: flex-start;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    overflow: hidden;
}

.hero-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    text-align: center;
    width: 100%;
}

.hero-lead {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0.1em;
    font-weight: 600;
    text-shadow: 0 0 30px rgba(255, 255, 255, 1), 0 0 60px rgba(255, 255, 255, 1), 0 0 90px rgba(255, 255, 255, 0.9), 0 0 120px rgba(255, 255, 255, 0.7);
}

.hero-title {
    font-size: 6rem;
    font-weight: 900;
    color: #239248;
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
    text-shadow: 0 0 20px rgba(255, 255, 255, 1), 0 0 40px rgba(255, 255, 255, 0.9), 0 0 60px rgba(255, 255, 255, 0.7);
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
    text-shadow: 0 0 30px rgba(255, 255, 255, 1), 0 0 60px rgba(255, 255, 255, 1), 0 0 90px rgba(255, 255, 255, 0.9), 0 0 120px rgba(255, 255, 255, 0.7);
}

.hero-sub-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
    text-shadow: 0 0 30px rgba(255, 255, 255, 1), 0 0 60px rgba(255, 255, 255, 1), 0 0 90px rgba(255, 255, 255, 0.9), 0 0 120px rgba(255, 255, 255, 0.7);
}

.hero-presented {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.hero-presented-label {
    font-size: var(--font-md);
    color: #333;
    font-style: italic;
    font-weight: 600;
}

.hero-logos {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.hero-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.hero-logo--sap {
    height: 70px;
}

.hero-brand-logo {
    margin-bottom: var(--spacing-md);
    display: flex;
    justify-content: center;
}

.hero-noreason-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    display: block;
}

.hero-buildings {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-md);
}

.hero-building-img {
    width: 700px;
    max-width: 48%;
    height: auto;
    object-fit: contain;
}

@media (max-width: 767px) {
    .hero {
        padding: 90px 0 0;
        min-height: auto;
        background: url('../images/Hero背景.png') center top / 320% auto no-repeat, #ffffff;
    }

    .hero-lead {
        font-size: 1rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-sub-text {
        font-size: 0.95rem;
    }

    .hero-logo {
        height: 28px;
    }

    .hero-logo--sap {
        height: 34px;
    }

    .hero-presented {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }

    .hero-presented-label {
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .hero-buildings {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-md);
    }

    .hero-building-img {
        width: 96%;
        max-width: 100%;
        height: auto;
    }

    .hero-noreason-logo {
        height: 60px;
    }
}

/* ========================================
   セクション共通
   ======================================== */
section {
    padding: 5rem 0;
}

/* ========================================
   資料請求バナー（成功法則レポート2026スタイル）
   ======================================== */
.document-request {
    padding: var(--spacing-xl) 0;
}

.document-request-banner {
    position: relative;
    max-width: 1000px;
    min-height: 400px;
    margin: 0 auto;
    padding: 2.5rem var(--spacing-xl) 0;
    padding-bottom: 2.5rem;
    background: url("../images/スクリーンショット%202026-01-19%20171904.png") center/cover no-repeat;
    border-radius: 16px;
    border: 2px solid #d1d5db;
    overflow: hidden;
}

.document-request-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.7) 50%, rgba(255,255,255,0.6) 100%);
    pointer-events: none;
}

.document-request-lead {
    position: relative;
    z-index: 1;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: #166534;
    margin: 0 0 0.5rem 0;
    letter-spacing: 0.02em;
}

.document-request-title {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
    font-size: 1.75rem;
    font-weight: 800;
    color: #ea580c;
    line-height: 1.35;
    margin: 0 0 0.5rem 0;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.document-request-title-logo {
    height: 2.5rem;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
}

.document-request-title-text {
    display: inline;
}

.document-request-subtitle {
    position: relative;
    z-index: 1;
    text-align: center;
    font-size: 0.9375rem;
    font-weight: 400;
    color: #422006;
    margin: 0 0 1.5rem 0;
    letter-spacing: 0.02em;
}

.document-request-circle-cta {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 140px;
    background: #16a34a;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: background 0.2s ease, transform 0.2s ease;
}

.document-request-circle-cta:hover {
    background: #15803d;
    transform: translateY(-50%) scale(1.05);
}

.document-request-thumbnails {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 0;
    padding: 0 1rem 1rem;
    min-height: 180px;
}

.document-request-thumbnails img {
    width: 125px;
    height: auto;
    max-height: 150px;
    object-fit: cover;
    border: 3px solid #fff;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-left: -14px;
}

.document-request-thumbnails img:first-child {
    margin-left: 0;
}

.document-request-thumbnails img:nth-child(odd) {
    transform: rotate(-2deg);
}

.document-request-thumbnails img:nth-child(even) {
    transform: rotate(1deg);
}

.document-request-bottom-cta {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    padding: 1rem 1.5rem;
    background: #422006;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border-radius: 16px;
    box-sizing: border-box;
    transition: background 0.2s ease;
}

.document-request-bottom-cta:hover {
    background: #2d1a04;
}

@media (max-width: 767px) {
    .document-request {
        padding: var(--spacing-lg) 0;
    }
    .document-request-banner {
        margin: 0 1rem;
        padding: 1.5rem 1rem 0;
        min-height: 360px;
        box-sizing: border-box;
    }
    .document-request-lead {
        font-size: 0.875rem;
    }
    .document-request-title {
        font-size: 1.35rem;
    }
    .document-request-title-logo {
        height: 2rem;
    }
    .document-request-subtitle {
        font-size: 0.8125rem;
    }
    .document-request-circle-cta {
        display: none;
    }
    .document-request-thumbnails {
        min-height: 140px;
        padding: 0 0.5rem 1rem;
    }
    .document-request-thumbnails img {
        width: 95px;
        max-height: 115px;
    }
}

/* ========================================
   問題提起セクション
   ======================================== */
.problem {
    background: url('../images/marita-kavelashvili-ugnrXk1129g-unsplash.jpg') center center / cover no-repeat;
    position: relative;
}

.problem::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.problem > .container {
    position: relative;
    z-index: 1;
}

.problem .section-title {
    color: #333;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.problem .section-title::after {
    background: linear-gradient(90deg, rgba(255,255,255,0.8), rgba(255,255,255,0.4));
}

.worry-list {
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
    padding: 0;
    background: transparent;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
    border-radius: 0;
    box-shadow: none;
}

.worry-list li {
    padding: 1.2rem 1.5rem;
    font-size: var(--font-md);
    border-bottom: none;
    background: rgb(255 255 255 / 77%);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 10px;
    box-shadow: none;
    transition: transform 0.2s ease, background 0.2s ease;
    line-height: 1.6;
    color: #333;
    font-weight: bold;
}

.worry-list li:hover {
    transform: none;
}

.worry-list li:last-child {
    border-bottom: none;
}

.problem-character {
    flex-shrink: 0;
    display: flex;
    align-items: flex-end;
}

.character-image {
    max-width: 200px;
    height: auto;
    display: block;
}

@media (max-width: 767px) {
    .problem-visual {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-md);
    }
    
    .speech-bubble {
        margin-bottom: 0;
        max-width: 100%;
    }
    
    .speech-bubble::after {
        bottom: auto;
        top: -20px;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        border-top: none;
        border-bottom: 30px solid var(--color-white);
    }
    
    .character-image {
        max-width: 150px;
    }
}

.problem-text {
    width: 100%;
    margin: var(--spacing-xl) 0 0;
    text-align: center;
    background-color: #ebebeb;
    padding: var(--spacing-lg) 0;
}

.problem-text .container {
    max-width: var(--container-max);
    margin: 0 auto;
    text-align: center;
    background: #ebebeb;
    padding: var(--spacing-lg);
}

.problem-text p {
    margin-bottom: var(--spacing-md);
    line-height: 1.9;
    color: #444;
    font-weight: 600;
    font-size: 1.3rem;
}

.problem-text p:last-child {
    margin-bottom: 0;
}

.problem-detail {
    background: #ebebeb;
    padding: 4rem 0;
}

@media (max-width: 767px) {
    .worry-list {
        grid-template-columns: 1fr;
    }
    .worry-list li {
        padding: 0.9rem 1rem;
        font-size: 0.9375rem;
    }
    .problem-text p {
        font-size: 1rem;
    }
    .problem-detail {
        padding: 3rem 0;
    }
}

/* ========================================
   ソリューションセクション
   ======================================== */
.solution {
    background: white;
}

.solution-logo {
    text-align: center;
    margin-bottom: var(--spacing-md);
}
.solution-logo img {
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.solution-lead {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xl);
    line-height: 2;
    color: #444;
}

.strength-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: var(--spacing-xl);
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
}

.strength-item {
    padding: 3rem 2.5rem;
    background-color: transparent;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0;
    text-align: center;
    box-shadow: none;
    transition: none;
    border-top: none;
    position: relative;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.strength-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 0;
    border: solid 1px white;
}

.strength-item > * {
    position: relative;
    z-index: 1;
}

.strength-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.15em;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
}

.strength-item h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: auto;
    font-weight: 800;
    line-height: 1.6;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.strength-keyword {
    font-size: 2.8rem;
    font-weight: 900;
    display: block;
    margin-top: 0.5rem;
    line-height: 1.3;
}

.strength-item p {
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    margin-top: auto;
    padding-top: var(--spacing-lg);
    font-weight: bold;

}

@media (max-width: 767px) {
    .strength-grid {
        grid-template-columns: 1fr;
    }
    .strength-item {
        min-height: 380px;
        padding: 2rem 1.5rem;
    }
    .strength-item h3 {
        font-size: 1.25rem;
    }
    .strength-keyword {
        font-size: 2rem;
    }
    .solution-lead {
        font-size: 1rem;
    }
}

/* ========================================
   サービスセクション
   ======================================== */
.service-lead {
    text-align: center;
    font-size: 1.15rem;
    margin-bottom: var(--spacing-xl);
    line-height: 2;
    color: #444;
}

.flow-section {
    margin: var(--spacing-xl) 0;
}

.flow-title {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: var(--spacing-xl);
    color: var(--color-primary);
    font-weight: 700;
    position: relative;
    padding-bottom: var(--spacing-sm);
}

.flow-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--color-secondary);
    border-radius: 2px;
}

.flow-steps {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.flow-steps::before {
    display: none;
}

.flow-step {
    margin-bottom: 0;
    padding: 0;
    background-color: #f5f5f5;
    border-left: none;
    border-radius: 0;
    border-bottom: none;
    box-shadow: none;
    position: relative;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: stretch;
    gap: 0;
}

.flow-step-image {
    flex-shrink: 0;
    width: 280px;
    min-height: 200px;
    overflow: hidden;
    border-radius: 12px;
    margin: 1rem 1rem 1rem 1rem;
}

.flow-step-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

.flow-step-content {
    flex: 1;
    padding: 2.5rem 2.5rem 2.5rem 3.5rem;
}

.flow-step-arrow {
    text-align: center;
    font-size: 1.5rem;
    color: #239248;
    padding: 0.8rem 0;
    line-height: 1;
    letter-spacing: 0;
}

.flow-step:hover {
    transform: none;
    background-color: #f5f5f5;
    box-shadow: none;
}

.flow-step-success {
    background: linear-gradient(135deg, #f0fff4, #ecfdf5);
}

.flow-step-success::after {
    color: #48bb78;
}

.flow-number {
    display: inline-block;
    background: transparent;
    color: #239248;
    padding: 0;
    border-radius: 0;
    font-weight: 900;
    margin-bottom: var(--spacing-xs);
    font-size: 1.5rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.flow-step h4 {
    font-size: 1.3rem;
    color: #1a1a1a;
    margin-bottom: var(--spacing-sm);
    font-weight: 800;
    letter-spacing: 0.02em;
}

.flow-step p {
    line-height: 1.9;
    margin-bottom: var(--spacing-sm);
    color: #666;
}

.flow-step ul {
    margin-left: var(--spacing-md);
    margin-top: var(--spacing-sm);
}

.flow-step li {
    list-style: disc;
    margin-bottom: var(--spacing-xs);
    color: #555;
}

.feature-box {
    margin-top: var(--spacing-xl);
    padding: 2.5rem;
    background: linear-gradient(135deg, #f8fafc, #f0f4f8);
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.feature-box h3 {
    font-size: 1.4rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-lg);
    text-align: center;
    font-weight: 700;
}

.feature-item {
    margin-bottom: var(--spacing-md);
    padding: 1.5rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.feature-item:last-child {
    margin-bottom: 0;
}

.feature-item h4 {
    font-size: var(--font-md);
    color: #239248;
    margin-bottom: var(--spacing-xs);
    font-weight: 700;
}

.feature-item p {
    line-height: 1.9;
    color: #555;
}

@media (max-width: 767px) {
    .flow-title {
        font-size: 1.25rem;
    }
    .flow-steps::before {
        left: 16px;
    }
    .flow-step {
        flex-direction: column;
    }
    .flow-step-image {
        width: 100%;
        min-height: 180px;
        margin: 1rem 1rem 0.75rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .flow-step-image img {
        object-fit: cover;
        object-position: center center;
        width: 100%;
        height: 100%;
        display: block;
    }
    .flow-step-content {
        padding: 1.5rem 1rem 1.5rem 1rem;
    }
    .flow-step h4 {
        font-size: 1.1rem;
    }
}

/* ========================================
   サポートフローセクション
   ======================================== */
.flow-diagram {
    max-width: 900px;
    margin: 0 auto;
}

.flow-item {
    padding: var(--spacing-lg);
    background-color: var(--color-white);
    border-radius: 8px;
    text-align: center;
    margin-bottom: var(--spacing-md);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.flow-item-success {
    background-color: #f0fff4;
    border: 2px solid #48bb78;
}

.flow-step-number {
    display: inline-block;
    background-color: var(--color-secondary);
    color: var(--color-white);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: bold;
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-sm);
}

.flow-item h4 {
    font-size: var(--font-md);
    color: var(--color-primary);
    margin-bottom: var(--spacing-xs);
}

.flow-item p {
    font-size: var(--font-sm);
    line-height: 1.6;
}

.flow-arrow {
    text-align: center;
    font-size: var(--font-lg);
    color: var(--color-secondary);
    margin: var(--spacing-xs) 0;
    font-weight: bold;
}

@media (max-width: 767px) {
    .flow-item h4 {
        font-size: var(--font-sm);
    }
}

/* ========================================
   ベネフィットセクション
   ======================================== */
.benefit {
    background: linear-gradient(135deg, #f0fdf4 0%, #f8fafc 100%);
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
    counter-reset: benefit;
}

.benefit-item {
    padding: 2.5rem 2rem 2rem;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.benefit-item::before {
    counter-increment: benefit;
    content: counter(benefit, decimal-leading-zero);
    position: absolute;
    top: -8px;
    right: 16px;
    font-size: 4rem;
    font-weight: 900;
    color: rgba(35, 146, 72, 0.07);
    line-height: 1;
}

.benefit-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 32px rgba(35, 146, 72, 0.12);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    text-align: center;
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.benefit-item h3 {
    font-size: 1.1rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    text-align: center;
    font-weight: 700;
}

.benefit-item p {
    line-height: 1.9;
    color: #555;
    font-size: 0.95rem;
}

@media (max-width: 767px) {
    .benefit-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    .benefit-item {
        padding: 1.5rem 1.25rem;
    }
    .benefit-item h3 {
        font-size: 1rem;
    }
    .benefit-item p {
        font-size: 0.875rem;
    }
}

/* ========================================
   実績セクション
   ======================================== */
.achievement {
    background: #fff;
    color: #2d3748;
}

.achievement-header {
    background: #fff;
    padding: var(--spacing-xl) 0;
}

.achievement-title {
    color: #239248;
    margin: 0;
}

.achievement-logo {
    height: 60px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto var(--spacing-xs);
}

.achievement-title::after {
    display: none;
}

.achievement-bg-block {
    position: relative;
    min-height: 460px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.achievement-bg-image {
    position: absolute;
    inset: 0;
    background: url("../images/スクリーンショット%202026-01-19%20171640.png") center/cover no-repeat;
}

.achievement-bg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.achievement-stats-wrap {
    position: relative;
    z-index: 1;
    padding: var(--spacing-xl) var(--spacing-md);
}

.achievement-stats {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: baseline;
    gap: 4rem;
    margin: 0 auto;
    max-width: 100%;
}

.stat-item {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.5rem 0;
    background: transparent;
    border-radius: 0;
    min-width: auto;
    box-shadow: none;
}

.stat-item:hover {
    transform: none;
    background: transparent;
}

.stat-number {
    font-size: 6.5rem;
    font-weight: 800;
    margin: 0;
    line-height: 1;
    letter-spacing: 0.02em;
    color: #239248;
    text-shadow: 0 0 20px rgba(255, 255, 255, 1),
                 0 0 40px rgba(255, 255, 255, 0.9),
                 0 0 60px rgba(255, 255, 255, 0.7);
}

.stat-label {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: #239248;
    text-shadow: 0 0 20px rgba(255, 255, 255, 1),
                 0 0 40px rgba(255, 255, 255, 0.9),
                 0 0 60px rgba(255, 255, 255, 0.7);
}

.achievement-note {
    text-align: center;
    color: #718096;
    font-size: var(--font-sm);
}

@media (max-width: 767px) {
    .achievement-header {
        padding: var(--spacing-lg) 0;
    }
    .achievement-logo {
        height: 50px;
    }
    .achievement-stats {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    .achievement-bg-block {
        min-height: 520px;
    }
    .stat-number {
        font-size: 4rem;
    }
    .stat-label {
        font-size: 1.1rem;
    }
    .achievement-stats-wrap {
        padding: var(--spacing-lg) var(--spacing-sm);
    }
}

/* ========================================
   商品一覧セクション
   ======================================== */

.products-lead {
    text-align: center;
    font-size: var(--font-md);
    margin-bottom: var(--spacing-xl);
    line-height: 1.8;
    color: var(--color-gray);
}

.products-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0;
}

.product-tab {
    padding: 1rem 1.75rem;
    background-color: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    font-size: var(--font-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    letter-spacing: 0.02em;
    margin-bottom: -2px;
}

.product-tab-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.product-tab:hover {
    color: var(--color-secondary);
}

.product-tab.active {
    background-color: transparent;
    color: var(--color-secondary);
    border-bottom-color: var(--color-secondary);
}

.product-content {
    margin-top: var(--spacing-xl);
}

/* 下部タブ（アパート・介護・倉庫の切り替えを下部にも表示） */
.products-tabs-bottom {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 2px solid #e2e8f0;
    border-bottom: none;
    margin-bottom: 0;
}

.product-panel {
    display: none;
}
.product-panel.active {
    display: block;
}

.product-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: start;
}

.product-card {
    display: flex;
    flex-direction: column;
    gap: 0;

    overflow: hidden;
}

.product-card-head {
    padding: var(--spacing-lg) var(--spacing-lg) var(--spacing-sm);
    border: none;
}

.product-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.35rem 0;
    letter-spacing: 0.02em;
}

.product-card-subtitle {
    font-size: 1rem;
    color: #374151;
    margin: 0 0 0.5rem 0;
}

.product-card-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    color: #239248;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.product-card-image {
    width: 100%;
    line-height: 0;
}

.product-card-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 16 / 10;
}

.product-card-info {
    padding: var(--spacing-lg);
    padding-top: var(--spacing-md);
}

.product-card-info .product-info-heading {
    font-size: 0.875rem;
    font-weight: 700;
    color: #239248;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0 0 0.75rem 0;
    padding-bottom: 0.35rem;
    border-bottom: 2px solid #239248;
}

.product-card-info .product-info-text {
    font-size: 0.9375rem;
    line-height: 1.85;
    color: #333;
    margin: 0;
}

.product-detail {
    display: none;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
    padding: var(--spacing-lg);
    background-color: var(--color-white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-detail.active {
    display: grid;
}

.product-detail-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-detail-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 16px;
    object-fit: contain;
}

.product-images-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    width: 100%;
}

.product-images-grid img:first-child {
    justify-self: start;
    width: 85%;
    height: auto;
    border-radius: 0;
    object-fit: cover;
    aspect-ratio: 16 / 9;
    max-width: none !important;
}

.product-images-grid img:last-child {
    justify-self: end;
    width: 85%;
    height: auto;
    border-radius: 0;
    object-fit: cover;
    aspect-ratio: 16 / 9;
    max-width: none !important;
}

.product-detail-text {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.product-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-xs);
    margin-top: 0;
}

.product-detail-text h3 {
    font-size: var(--font-xl);
    color: var(--color-primary);
    margin: 0;
}

.product-title-logo {
    width: 160px;
    height: 160px;
    object-fit: contain;
}

.product-detail-text p {
    line-height: 1.8;
    color: var(--color-gray);
    font-size: var(--font-md);
}

@media (max-width: 767px) {
    .products-tabs,
    .products-tabs-bottom {
        flex-wrap: nowrap;
        justify-content: center;
        gap: 0.25rem;
        margin-bottom: var(--spacing-lg);
        padding-bottom: 0;
    }
    .product-tab {
        flex: 1 1 0;
        min-width: 0;
        padding: 0.5rem 0.25rem;
        font-size: 0.65rem;
        flex-direction: column;
        gap: 0.2rem;
    }
    .product-tab span {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        max-width: 100%;
        display: block;
        text-align: center;
        line-height: 1.25;
    }
    .product-tab-icon {
        width: 60px;
        height: 60px;
    }
    .product-cards-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    .product-card-title {
        font-size: 1.25rem;
    }
    .product-card-info {
        padding: var(--spacing-md);
    }
    .product-detail {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .product-images-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
}

/* ========================================
   FAQセクション
   ======================================== */
.faq {
    background: #fff;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: var(--spacing-sm);
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
    border: 1px solid #eef2f7;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.faq-question {
    width: 100%;
    padding: 1.5rem var(--spacing-md);
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    color: var(--color-primary);
    transition: background-color 0.3s ease;
    font-size: 1.05rem;
}

.faq-question:hover {
    background-color: #f8fafb;
}

.faq-icon {
    font-size: var(--font-lg);
    font-weight: bold;
    transition: transform 0.3s ease;
    color: #239248;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 var(--spacing-md);
}

.faq-question[aria-expanded="true"] + .faq-answer {
    max-height: 500px;
    padding: 0 var(--spacing-md) 1.5rem;
}

.faq-answer p {
    line-height: 1.9;
    color: #555;
    padding-left: 0.5rem;
}

/* ========================================
   CTAセクション
   ======================================== */
.cta {
    background: linear-gradient(135deg, #239248 0%, #1a6b35 50%, #145228 100%);
    color: var(--color-white);
    text-align: center;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.cta .section-title {
    color: var(--color-white);
    font-size: 2rem;
}

.cta .section-title::after {
    background: linear-gradient(90deg, #fff, rgba(255,255,255,0.5));
}

.cta-text {
    font-size: 1.15rem;
    margin-bottom: var(--spacing-xl);
    line-height: 2;
    opacity: 0.92;
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn-primary {
    background-color: var(--color-secondary);
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(221, 107, 32, 0.4);
}

.cta-buttons .btn-primary:hover {
    box-shadow: 0 6px 28px rgba(221, 107, 32, 0.5);
    transform: translateY(-3px);
}

.cta-buttons .btn-secondary {
    border-color: var(--color-white);
    color: var(--color-white);
    border-radius: 50px;
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
}

.cta-buttons .btn-secondary:hover {
    background-color: var(--color-white);
    color: #239248;
}

@media (max-width: 767px) {
    .cta {
        padding: 3rem 0;
    }
    .cta .section-title {
        font-size: 1.35rem;
    }
    .cta-lead {
        font-size: 1rem;
    }
    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }
}

/* ========================================
   フォームセクション
   ======================================== */
.form-section {
    position: relative;
    padding: 5rem 0;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.form-anchor {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

.form-tabs {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

.form-tab {
    padding: 0.9rem 2.5rem;
    background-color: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-weight: 700;
    color: var(--color-gray);
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-tab:hover {
    border-color: var(--color-secondary);
    color: var(--color-secondary);
}

.form-tab.active {
    background: linear-gradient(135deg, var(--color-secondary), #e57a2e);
    border-color: transparent;
    color: var(--color-white);
    box-shadow: 0 4px 16px rgba(221, 107, 32, 0.3);
}

.form-content {
    display: none;
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.08);
}

.form-content.active {
    display: block;
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: bold;
    color: var(--color-primary);
}

.required {
    color: #e53e3e;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: var(--font-sm);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #fafbfc;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #239248;
    box-shadow: 0 0 0 3px rgba(35, 146, 72, 0.1);
    background: #fff;
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #e53e3e;
}

.error-message {
    color: #e53e3e;
    font-size: var(--font-xs);
    margin-top: var(--spacing-xs);
}

.checkbox-group,
.radio-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.checkbox-group label,
.radio-group label {
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    cursor: pointer;
}

.btn-submit {
    width: 100%;
    margin-top: var(--spacing-md);
    border-radius: 50px;
    padding: 1.1rem;
    font-size: 1.1rem;
    box-shadow: 0 4px 16px rgba(221, 107, 32, 0.3);
}

.btn-submit:hover {
    box-shadow: 0 6px 24px rgba(221, 107, 32, 0.4);
}

@media (max-width: 767px) {
    .form-section {
        padding: 3rem 0;
    }
    .form-content {
        padding: var(--spacing-md);
    }
    .form-tab {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
    }
}

/* ========================================
   フッター
   ======================================== */
.footer {
    background: linear-gradient(180deg, #B3B8BE 0%, #1e293b 35%, #0f172a 100%);
    color: #e2e8f0;
    padding: 3rem 0 1.5rem;
}

.footer-inner {
    margin-bottom: 2rem;
}

.footer-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
}

.footer-logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
    display: block;
}

.footer-logo-text {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.02em;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
}

.footer-nav a {
    color: #1e293b;
    font-size: 0.9375rem;
    font-weight: 700;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease;
}

.footer-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.footer-info {
    text-align: left;
}

.footer-desc {
    font-size: 0.9375rem;
    color: #94a3b8;
    margin: 0 0 0.5rem 0;
    line-height: 1.5;
}

.footer-contact {
    font-size: 0.9375rem;
    margin: 0;
}

.footer-contact a {
    color: #67e8a3;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.footer-contact a:hover {
    color: #a7f3d0;
}

.footer-contact-sep {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 0.5rem;
}

.footer-copyright {
    text-align: center;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8125rem;
    color: #64748b;
}

.footer-copyright p {
    margin: 0;
}

@media (max-width: 767px) {
    .footer {
        padding: 2rem 0 1rem;
    }
    .footer-main {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: var(--spacing-md);
        margin-bottom: var(--spacing-lg);
        padding-bottom: var(--spacing-lg);
    }
    .footer-nav {
        width: 100%;
    }
    .footer-logo-img {
        height: 36px;
    }
    .footer-logo-text {
        font-size: 1.1rem;
    }
}

/* ========================================
   フェードインアニメーション
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   マーケット訴求セクション
   ======================================== */
.market {
    background: url('../images/マーケット.png') center center / cover no-repeat;
    position: relative;
    padding: 6rem 0;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.market::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 15%, rgba(255,255,255,0) 85%, rgba(255,255,255,1) 100%);
    z-index: 0;
}

.market > .container {
    position: relative;
    z-index: 1;
}

.market-content {
    text-align: center;
    color: #fff;
}

.market-text {
    font-size: 2.4rem;
    font-weight: 600;
    line-height: 2;
    color: #fff;
    text-shadow: 0 0 10px rgb(255 255 255 / 6%), 0 0 20px rgba(255, 255, 255, 0.6), 0 0 40px rgba(255, 255, 255, 0.4);
}

.market-number {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.6;
    color: #fff;
    margin: 0.5rem 0;
    text-shadow: 0 0 12px rgb(255 255 255 / 34%), 0 0 24px rgba(255, 255, 255, 0.6), 0 0 48px rgba(255, 255, 255, 0.4);
}

.market-highlight {
    font-size: 4.5rem;
    font-weight: 900;
    color: #fbff50;
    text-shadow: 0 0 16px rgb(255 255 255 / 0%), 0 0 32px rgb(255 255 255 / 18%), 0 0 64px rgba(255, 255, 255, 0.5);
}

.market-emphasis {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 2;
    color: #fff;
    margin: 0.5rem 0;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.6), 0 0 40px rgba(255, 255, 255, 0.4);
}

.market-source {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 1.5rem;
}

.market-highlight-sub {
    font-size: 2.4rem;
    font-weight: 900;
    color: #fbff50;
    text-shadow: 0 0 14px rgb(255 255 255 / 0%), 0 0 28px rgba(255, 255, 255, 0.7), 0 0 56px rgba(255, 255, 255, 0.4);
}

@media (max-width: 767px) {
    .market {
        min-height: 400px;
        padding: 4rem 0;
    }
    .market-text {
        font-size: 0.95rem;
    }
    .market-number {
        font-size: 1.25rem;
    }
    .market-highlight {
        font-size: 2.5rem;
    }
    .market-emphasis {
        font-size: 1.1rem;
    }
    .market-highlight-sub {
        font-size: 1.5rem;
    }
}

/* ========================================
   サポート体制セクション
   ======================================== */
.support-team {
    background:white;
}

.support-lead {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xl);
    line-height: 2;
    color: #444;
}

.support-table-wrapper {
    overflow-x: auto;
    margin: var(--spacing-xl) 0;
    -webkit-overflow-scrolling: touch;
}

/* スマホ時のみ：右スクロール可能のSVG矢印ヒント（JSで追加） */
.support-table-scroll-hint {
    display: none;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 44px;
    pointer-events: none;
    align-items: center;
    justify-content: flex-end;
    padding-right: 6px;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.85) 40%, rgba(255,255,255,0.95) 100%);
    z-index: 2;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.support-table-scroll-hint.visible {
    opacity: 1;
}
.support-table-scroll-hint-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}
.support-table-scroll-hint-icon svg {
    display: block;
}
@media (min-width: 768px) {
    .support-table-scroll-hint {
        display: none !important;
    }
}
@media (max-width: 767px) {
    .support-table-scroll-hint {
        display: flex;
    }
}

.support-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--color-white);
    box-shadow: 0 8px 32px rgba(35, 146, 72, 0.08);
    font-size: 1.05rem;
    border-radius: 0;
    overflow: hidden;
}

.support-table th,
.support-table td {
    padding: 1.4rem 1rem;
    border: 1px solid rgba(35, 146, 72, 0.12);
    text-align: center;
    vertical-align: middle;
}

.support-table thead th {
    background: linear-gradient(180deg, #1a6b35 0%, #239248 100%);
    color: var(--color-white);
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.4;
    padding: 1.5rem 0.75rem;
    letter-spacing: 0.03em;
    border-color: rgba(255, 255, 255, 0.15);
}

.support-table .team-header {
    background: linear-gradient(180deg, #5c3a1e 0%, #7a4f2e 100%);
    color: var(--color-white);
    font-weight: 700;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    min-width: 80px;
    letter-spacing: 0.1em;
    border-color: rgba(255, 255, 255, 0.15);
}

.support-table tbody td {
    background-color: #fafffe;
}

.support-table tbody tr:nth-child(even) td {
    background-color: #f0fdf4;
}

.team-badge {
    display: inline-block;
    padding: 0.75rem 1.8rem;
    border-radius: 0;
    font-weight: 700;
    font-size: 1rem;
    margin: 0.15rem 0;
    line-height: 1.4;
    letter-spacing: 0.05em;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 0 1px rgba(0, 0, 0, 0.8);
}

.team-badge-sales {
    background: linear-gradient(135deg, #8B6914 0%, #6B4E0F 100%);
}

.team-badge-design {
    background: linear-gradient(135deg, #1e3a5f 0%, #152a47 100%);
}

.team-badge-build {
    background: linear-gradient(135deg, #234e52 0%, #1a3c3f 100%);
}

.team-badge-support {
    background: linear-gradient(135deg, #5c4033 0%, #4a3429 100%);
}

.partner-info {
    text-align: center;
}

.partner-cert {
    font-size: var(--font-xs);
    color: var(--color-gray);
    margin-bottom: 0.25rem;
}

.partner-name-en {
    font-size: var(--font-xs);
    color: var(--color-gray);
    font-style: italic;
    margin-bottom: 0.25rem;
}

.partner-name {
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
    line-height: 1.3;
    font-size: var(--font-sm);
}

.partner-number {
    font-size: var(--font-lg);
    font-weight: bold;
    color: var(--color-secondary);
    margin-bottom: 0.25rem;
}

.partner-anniversary {
    font-size: var(--font-xs);
    color: var(--color-gray);
    margin-bottom: 0.25rem;
}

.partner-subtitle {
    font-size: var(--font-xs);
    color: var(--color-gray);
    margin-top: 0.25rem;
}

.partner-date {
    font-size: var(--font-sm);
    color: var(--color-gray);
    margin-top: 0.25rem;
}

.partner-tagline {
    font-size: var(--font-xs);
    color: var(--color-secondary);
    margin-top: 0.25rem;
    font-style: italic;
}

.support-description {
    margin-top: var(--spacing-xl);
}

.support-description h3 {
    font-size: var(--font-lg);
    color: var(--color-primary);
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
}

.team-card {
    padding: 2.5rem 2rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0;
    text-align: center;
    position: relative;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 0;
}

.team-card > * {
    position: relative;
    z-index: 1;
}

.team-card:hover {
    transform: none;
    box-shadow: none;
}

.team-card h4 {
    font-size: 1.3rem;
    color: #fff;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    display: inline-block;
    letter-spacing: 0.05em;
}

.team-card p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.9;
    margin-top: auto;
    padding-top: var(--spacing-lg);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    font-weight: bold;
}

@media (max-width: 1023px) {
    .support-table {
        font-size: var(--font-xs);
    }
    
    .support-table th,
    .support-table td {
        padding: 0.9rem 0.5rem;
    }
    
    .support-table thead th {
        padding: 1.125rem 0.4rem;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .support-lead {
        font-size: 1rem;
    }
    .support-table-wrapper {
        margin: var(--spacing-md) 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .support-table {
        min-width: 720px;
        width: max-content;
    }
    
    .support-table thead th {
        font-size: 0.7rem;
        padding: 0.9rem 0.3rem;
    }
    
    .support-table th,
    .support-table td {
        padding: 0.75rem 0.4rem;
    }
    
    .support-table .team-header {
        writing-mode: horizontal-tb;
        text-orientation: unset;
        min-width: auto;
        font-size: var(--font-xs);
        padding: 0.9rem 0.3rem;
    }
    
    .team-badge {
        display: block;
        margin: 0.3rem 0;
        padding: 0.4rem 0.5rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .team-card {
        min-height: 300px;
    }
}

/* ========================================
   タブレット用レスポンシブ (max-width: 1024px)
   PC表示は変更しない
   ======================================== */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.25rem;
    }
    section {
        padding: 4rem 0;
    }
    .section-title {
        font-size: 1.9rem;
    }
    /* ヘッダー: 余白・フォントをやや縮小 */
    .header-container {
        padding: 0.65rem 1.25rem;
    }
    .nav-list a {
        font-size: 0.875rem;
        padding: 0.4rem 0.6rem;
    }
    .phone-label {
        font-size: 1rem;
    }
    .phone-number,
    .nav-list a.phone-number {
        font-size: 1.15rem !important;
    }
    .header-logo-img {
        height: 28px;
    }
    .btn-header {
        padding: 0.55rem 1.2rem;
        font-size: 0.8125rem;
    }
    /* ヒーロー */
    .hero {
        min-height: 520px;
        padding: 36px 0 0;
    }
    .hero-lead {
        font-size: 1.2rem;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.5rem;
    }
    .hero-sub-text {
        font-size: 1.1rem;
    }
    .hero-noreason-logo {
        height: 68px;
    }
    .hero-logo {
        height: 26px;
    }
    .hero-logo--sap {
        height: 45px;
    }
    .hero-building-img {
        max-width: 100%;
    }
    /* 資料請求バナー */
    .document-request-banner {
        padding: 2rem 1.5rem 0;
        min-height: 380px;
    }
    .document-request-lead {
        font-size: 0.9375rem;
    }
    .document-request-title {
        font-size: 1.5rem;
    }
    .document-request-title-logo {
        height: 2.2rem;
    }
    .document-request-subtitle {
        font-size: 0.875rem;
    }
    .document-request-circle-cta {
        width: 125px;
        height: 125px;
        font-size: 0.8125rem;
        left: 1rem;
    }
    .document-request-thumbnails img {
        width: 110px;
        max-height: 135px;
    }
    /* 問題提起 */
    .worry-list li {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }
    .problem-text p {
        font-size: 1.15rem;
    }
    /* ソリューション・強み */
    .solution-lead {
        font-size: 1.2rem;
    }
    .strength-grid {
        margin-top: var(--spacing-lg);
    }
    .strength-item {
        padding: 2rem 1.75rem;
        min-height: 440px;
    }
    .strength-item h3 {
        font-size: 1.35rem;
    }
    .strength-keyword {
        font-size: 2.4rem;
    }
    /* フロー */
    .flow-step-image {
        width: 240px;
        min-height: 180px;
        margin: 1rem 1rem 1rem 1rem;
    }
    .flow-step-content {
        padding: 2rem 2rem 2rem 2.5rem;
    }
    .flow-step h4 {
        font-size: 1.15rem;
    }
    /* ベネフィット */
    .benefit-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    .benefit-item {
        padding: 2rem 1.5rem;
    }
    .benefit-item h3 {
        font-size: 1.05rem;
    }
    /* 実績 */
    .achievement-header {
        padding: var(--spacing-lg) 0;
    }
    .achievement-bg-block {
        min-height: 420px;
    }
    .achievement-stats {
        gap: 2.5rem;
    }
    .stat-number {
        font-size: 5rem;
    }
    .stat-label {
        font-size: 1.25rem;
    }
    .achievement-stats-wrap {
        padding: var(--spacing-lg) var(--spacing-sm);
    }
    /* 商品一覧: タブレットは1列・上下レイアウト・画像大きめ */
    .product-tab {
        padding: 0.85rem 1.35rem;
        font-size: 0.9375rem;
    }
    .product-tab-icon {
        width: 60px;
        height: 60px;
    }
    .product-cards-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    .product-card-title {
        font-size: 1.35rem;
    }
    .product-card-info {
        padding: var(--spacing-md);
    }
    .product-card-image img {
        aspect-ratio: 16 / 9;
        object-fit: cover;
    }
    /* CTA */
    .cta {
        padding: 4rem 0;
    }
    .cta .section-title {
        font-size: 1.75rem;
    }
    /* フォーム */
    .form-content {
        padding: var(--spacing-lg);
    }
    .form-section-title {
        font-size: 1.5rem;
    }
    /* フッター */
    .footer {
        padding: 2.5rem 0 1.25rem;
    }
    .footer-main {
        gap: var(--spacing-md);
        margin-bottom: var(--spacing-lg);
        padding-bottom: var(--spacing-lg);
    }
    .footer-logo-img {
        height: 38px;
    }
    .footer-logo-text {
        font-size: 1.2rem;
    }
    /* マーケット */
    .market {
        min-height: 450px;
        padding: 5rem 0;
    }
    .market-text {
        font-size: 1.9rem;
    }
    .market-number {
        font-size: 1.75rem;
    }
    .market-highlight {
        font-size: 3.5rem;
    }
    .market-emphasis {
        font-size: 1.4rem;
    }
    .market-highlight-sub {
        font-size: 2rem;
    }
    /* サポート体制 */
    .support-lead {
        font-size: 1.2rem;
    }
}

/* ========================================
   スムーススクロール
   ======================================== */
html {
    scroll-padding-top: 80px;
}

/* ========================================
   「詳しくはこちら」ボタン（カード内）
   ======================================== */
.product-card-action {
    margin-top: 1.25rem;
}

.btn-detail {
    display: inline-block;
    padding: 0.7rem 2rem;
    background-color: #239248;
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s ease, transform 0.2s ease;
    letter-spacing: 0.03em;
}

.btn-detail:hover {
    background-color: #1b7438;
    transform: translateY(-1px);
}

/* ========================================
   詳細ページ
   ======================================== */
/* 詳細ページではヘッダーを最初から表示 */
body:has(.detail-page) .header {
    transform: translateY(0);
}

.detail-page {
    background: #fff;
    padding: calc(80px + var(--spacing-xl)) 0 var(--spacing-xxl);
    min-height: 70vh;
}

/* タイトルエリア */
.detail-title-area {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid #e2e8f0;
}

.detail-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0;
}

.detail-subtitle {
    font-size: 1rem;
    font-weight: 400;
    color: #555;
    margin-left: 0.75rem;
}

.detail-tag {
    font-size: 0.7rem;
    font-weight: 600;
    color: #239248;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* コンテンツ 1カラム（画像上・テキスト下） */
.detail-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

/* ギャラリー */
.detail-gallery {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.detail-main-image {
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    line-height: 0;
}

.detail-main-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 16 / 9;
}

.detail-thumbnails {
    display: flex;
    gap: 0.5rem;
}

.detail-thumb {
    flex: 0 0 100px;
    height: 70px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    background: none;
    transition: border-color 0.2s ease, opacity 0.2s ease;
    opacity: 0.6;
}

.detail-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.detail-thumb.active,
.detail-thumb:hover {
    border-color: #239248;
    opacity: 1;
}

/* 詳細情報 */
.detail-info {
    padding-top: 0;
}

.detail-info-heading {
    font-size: 0.875rem;
    font-weight: 700;
    color: #239248;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #239248;
    display: inline-block;
}

.detail-info-text {
    font-size: 0.9375rem;
    line-height: 2;
    color: #333;
    margin: 0;
}

/* 戻るボタン */
.detail-back {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid #e2e8f0;
}

.btn-back {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    color: #239248;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid #239248;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-back:hover {
    background-color: #239248;
    color: #fff;
}

/* 詳細ページ レスポンシブ（タブレット） */
@media (max-width: 1024px) {
    .detail-title {
        font-size: 1.5rem;
    }

    .detail-thumb {
        flex: 0 0 80px;
        height: 56px;
    }
}

/* 詳細ページ レスポンシブ（スマホ） */
@media (max-width: 767px) {
    .detail-title-area {
        flex-direction: column;
        gap: 0.5rem;
    }

    .detail-title {
        font-size: 1.35rem;
    }

    .detail-subtitle {
        display: block;
        margin-left: 0;
        margin-top: 0.25rem;
    }

    .detail-thumb {
        flex: 0 0 60px;
        height: 42px;
    }

    .detail-page {
        padding: calc(80px + var(--spacing-lg)) 0 var(--spacing-xl);
    }
}
