:root {
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --line: #e5e7eb;

    --text: #0f172a;
    --muted: #6b7280;

    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;

    --card: #ffffff;

    --radius: 14px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.12);
}

/* RESET */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--text);
    line-height: 1.7;

    /* 背景画像（維持） */
    background: url('/assets/bg_jp.webp') no-repeat center center fixed;
    background-size: cover;
}

/* 背景の白フィルター（可読性UP） */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(rgba(255, 255, 255, 0.5),
            rgba(255, 255, 255, 0.3));
}

/* CONTAINER */
.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
}

/* SECTION */
.section {
    padding: 100px 0;
    position: relative;
}

.section:nth-child(even) {
    background: rgba(248, 250, 252, 0.85);
    backdrop-filter: blur(2px);
}

.section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 1px;
    background: var(--line);
}

/* TYPO */
h1 {
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.2;
    margin-bottom: 20px;
    word-spacing: 0.05em;
}

h2 {
    font-size: clamp(26px, 3vw, 34px);
    margin-bottom: 30px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

h3 {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--text);
}

p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 12px;
}

/* HERO */
.hero {
    text-align: center;
    padding: 120px 0 90px;
}

.hero .sub {
    font-size: 18px;
    line-height: 1.9;
    color: var(--muted);
    margin-bottom: 30px;
}

/* HERO VISUAL */
.hero-visual {
    margin-top: 50px;

    display: grid;
    grid-template-columns: 1fr 120px 1fr;
    gap: 24px;

    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-box {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);

    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.file-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file {
    height: 10px;
    background: #dbeafe;
    border-radius: 4px;
}

.hero-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    color: var(--primary);
}

.arrow {
    font-size: 26px;
    margin-top: 6px;
}

.result {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.result-item {
    height: 12px;
    background: var(--primary);
    border-radius: 4px;
}

.hero-left::after,
.hero-right::after {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    color: var(--muted);
    text-align: right;
}

.hero-left::after {
    content: "人力・連携がとれていない業務";
}

.hero-right::after {
    content: "システムによって効率化された状態";
}

/* CTA */
.cta {
    margin-top: 40px;
}

/* BUTTON */
.btn-primary {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 12px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: 0.25s ease;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.3);
    cursor: pointer;
    border: none;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
}

/* LIST */
ul {
    padding-left: 20px;
}

li {
    margin-bottom: 16px;
    line-height: 1.8;
    color: var(--muted);
}

li strong {
    color: var(--text);
    font-weight: 600;
}

/* GRID */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

/* CARD - BASE */
.card {
    background: rgba(255, 255, 255, 0.95);
    padding: 28px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

/* SERVICE HUB CARD - 重要：回遊性向上 */
.section:nth-of-type(2) .card {
    border-left: 4px solid var(--primary);
    position: relative;
    overflow: hidden;
}

.section:nth-of-type(2) .card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.02));
    transition: width 0.3s ease;
    z-index: 0;
}

.section:nth-of-type(2) .card:hover::before {
    width: 100%;
}

.section:nth-of-type(2) .card>* {
    position: relative;
    z-index: 1;
}

.section:nth-of-type(2) .card:hover {
    border-left-color: var(--primary-dark);
}

/* SERVICE HUB リンク強調 */
.section:nth-of-type(2) a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.25s ease;
    position: relative;
}

.section:nth-of-type(2) a::after {
    content: "→";
    transition: transform 0.25s ease;
}

.section:nth-of-type(2) a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.section:nth-of-type(2) a:hover::after {
    transform: translateX(4px);
}

/* PAIN POINTS セクション */
.section:nth-of-type(3) ul li {
    font-size: 16px;
    padding-left: 8px;
}

/* STATISTICS セクション（信頼指標）*/
.section:nth-of-type(5) .card {
    border: 2px solid var(--line);
}

.section:nth-of-type(5) .card:hover {
    border-color: var(--primary);
}

.section:nth-of-type(5) h3 {
    margin: 0;
    font-weight: 700;
}

/* BUSINESS DOMAINS セクション */
.section:nth-of-type(6) .card p {
    line-height: 1.8;
    font-size: 15px;
}

.section:nth-of-type(6) .card p strong {
    color: var(--text);
}

/* TECH STACK セクション - キーワード視認性 */
.section:nth-of-type(6) .card p {
    color: var(--text);
    font-weight: 500;
}

/* FAQ */
.faq-item {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    color: var(--text);
    margin-top: 0;
    font-size: 18px;
}

.faq-item p {
    margin-bottom: 8px;
    font-size: 15px;
}

.faq-item p:last-child {
    margin-bottom: 0;
}

/* CTA SECTION */
.section:last-of-type {
    text-align: center;
}

.section:last-of-type p {
    font-size: 17px;
    margin-bottom: 14px;
}

.locale-switch {
    padding: 0 0 96px;
}

.locale-switch-card {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 38px 40px;
    border-radius: 24px;
    border: 1px solid rgba(59, 130, 246, 0.16);
    background: linear-gradient(145deg,
            rgba(255, 255, 255, 0.92),
            rgba(248, 250, 252, 0.88));
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
}

.locale-switch-card::before {
    content: "";
    position: absolute;
    top: -56px;
    right: -32px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.14), transparent 68%);
    pointer-events: none;
}

.locale-switch-card::after {
    content: "";
    position: absolute;
    bottom: -72px;
    left: -24px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1), transparent 68%);
    pointer-events: none;
}

.locale-switch-card>* {
    position: relative;
    z-index: 1;
}

.locale-switch-label {
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.locale-switch h2 {
    margin-bottom: 14px;
}

.locale-switch-copy {
    max-width: 620px;
    margin: 0 auto 24px;
}

.locale-switch-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 240px;
    padding: 15px 28px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.locale-switch-link:hover {
    color: #ffffff;
    transform: translateY(-3px);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.32);
}

/* HIGHLIGHT */
.highlight {
    color: var(--primary);
    font-weight: 700;
}

/* 一般的なリンク */
a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* FOCUS状態（アクセシビリティ） */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* MOBILE対応 */
@media (max-width: 768px) {

    .hero {
        padding: 90px 0 70px;
    }

    .hero-visual {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .hero-center {
        flex-direction: row;
        gap: 10px;
        order: -1;
    }

    h1 {
        font-size: 32px;
        margin-bottom: 16px;
    }

    h2 {
        font-size: 26px;
        margin-bottom: 20px;
    }

    .section {
        padding: 70px 0;
    }

    .grid-3 {
        grid-template-columns: 1fr;
        gap: 16px;
    }

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

    .card {
        padding: 24px;
    }

    /* Service Hub - モバイル対応 */
    .section:nth-of-type(2) .card {
        border-left: 4px solid var(--primary);
    }

    .section:nth-of-type(2) a {
        display: block;
        padding: 12px 0;
        margin-top: 12px;
    }

    /* CTA button のモバイル最適化 */
    .cta {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        padding: 12px;
        border-top: 1px solid var(--line);
        z-index: 1000;
        text-align: center;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
    }

    .btn-primary {
        width: 90%;
        padding: 14px 24px;
        font-size: 15px;
    }

    .hero .sub {
        font-size: 16px;
    }

    /* リスト調整 */
    li {
        margin-bottom: 14px;
        font-size: 14px;
    }

    /* FAQ */
    .faq-item {
        margin-bottom: 24px;
        padding-bottom: 20px;
    }

    .faq-item h3 {
        font-size: 16px;
    }

    .faq-item p {
        font-size: 14px;
    }

    .locale-switch {
        padding: 0 0 88px;
    }

    .locale-switch-card {
        padding: 28px 22px;
        border-radius: 20px;
    }

    .locale-switch-label {
        font-size: 12px;
    }

    .locale-switch-copy {
        font-size: 14px;
    }

    .locale-switch-link {
        width: 100%;
        min-width: 0;
    }

    /* Statistics 数値調整 */
    .section:nth-of-type(5) h3 {
        font-size: 28px;
    }

}

/* TABLET */
@media (min-width: 769px) and (max-width: 1024px) {

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .container {
        padding: 0 28px;
    }

}

/* 大画面での最適化 */
@media (min-width: 1025px) {

    .section {
        padding: 120px 0;
    }

    .grid-3 {
        gap: 28px;
    }

    .card {
        padding: 32px;
    }

}

/* プリント対応 */
@media print {

    body::before {
        display: none;
    }

    .section:nth-child(even) {
        background: transparent;
        backdrop-filter: none;
    }

    .cta {
        display: none;
    }

    .btn-primary {
        page-break-inside: avoid;
    }

}