/* ====================================================================
   index.css — トップページ固有スタイル
   base.css（共通デザインシステム）を前提に、index.html だけで使う
   セクション（HERO / CONCEPT / NEWS / CASE DATA / FACTORY NETWORK /
   PROCESS CONTROL / CTA）を定義する。
   ==================================================================== */

/* ---------- HERO ---------- */
.page-hero {
    position: relative;
    width: 100%;
    height: 840px;
    overflow: hidden;
}
.page-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.page-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        0deg,
        rgba(255, 255, 255, 0.94) 0%,
        rgba(255, 255, 255, 0.55) 34%,
        rgba(255, 255, 255, 0.08) 62%,
        rgba(255, 255, 255, 0) 100%
    );
}
.page-hero__content {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 0 48px 64px;
}
.page-hero__eyebrow {
    font-family: var(--font-heading);
    font-size: 12px;
    letter-spacing: 0.16em;
    color: var(--sky);
    font-weight: 700;
    margin-bottom: 24px;
}
.page-hero__title {
    font-weight: 900;
    font-size: 4.6rem;
    line-height: 1.32;
    margin: 0 0 28px;
    letter-spacing: 0.01em;
    max-width: 960px;
    color: var(--ink);
}
.page-hero__lead {
    font-size: 1.08rem;
    line-height: 1.9;
    color: var(--ink-mute);
    max-width: 560px;
    margin: 0;
    font-weight: 400;
}
.page-hero__scroll {
    position: absolute;
    left: 48px;
    top: 52%;
    writing-mode: vertical-rl;
    font-family: var(--font-heading);
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--ink-faint);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.9), 0 0 3px rgba(255, 255, 255, 0.9);
}

/* ---------- CONCEPT ---------- */
.concept-section {
    position: relative;
    padding: 100px 48px;
    max-width: var(--container-max);
    margin: 0 auto;
    overflow: hidden;
}
.concept-section .grid-2 {
    align-items: start;
}
.concept-heading {
    font-weight: 900;
    font-size: clamp(1.6rem, 1.33rem + 1.22vw, 2.3rem);
    line-height: 1.55;
    margin: 0 0 28px;
    color: var(--ink);
}
.concept-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line-strong);
    padding: 14px 24px;
    font-family: var(--font-heading);
    font-size: 12.5px;
    letter-spacing: 0.05em;
    color: var(--ink);
}
.concept-link:hover {
    border-color: var(--ink);
    color: var(--navy);
}
.concept-lead {
    font-size: 1.05rem;
    line-height: 1.95;
    color: var(--ink-mute);
    margin: 0;
}

/* ---------- 共通: セクション見出し行 ---------- */
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 16px;
}
.section-head h2 {
    font-weight: 900;
    color: var(--ink);
    margin: 0;
}
.section-head-note {
    font-size: 12.5px;
    color: var(--ink-mute);
    max-width: 320px;
    line-height: 1.9;
    margin: 0;
}
.section-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line-strong);
    padding: 12px 22px;
    font-family: var(--font-heading);
    font-size: 12px;
    letter-spacing: 0.05em;
    color: var(--ink);
    flex-shrink: 0;
}
.section-link:hover {
    border-color: var(--ink);
    color: var(--navy);
}

/* ---------- NEWS ---------- */
.news-section {
    padding: 80px 48px;
    max-width: var(--container-max);
    margin: 0 auto;
    border-top: 1px solid var(--line);
}
.news-section .section-head h2 {
    font-size: clamp(1.4rem, 1.2rem + 0.87vw, 1.9rem);
}
.news-row {
    display: flex;
    gap: 28px;
    align-items: baseline;
    padding: 20px 0;
    border-top: 1px solid var(--line);
}
.news-row:last-child {
    border-bottom: 1px solid var(--line);
}
.news-meta {
    display: flex;
    align-items: baseline;
    gap: 28px;
    flex-shrink: 0;
}
.news-date {
    font-size: 12px;
    color: var(--ink-faint);
    width: 90px;
    flex-shrink: 0;
}
.news-tag {
    font-family: var(--font-heading);
    font-size: 11px;
    color: var(--sky);
    width: 64px;
    flex-shrink: 0;
    letter-spacing: 0.05em;
}
.news-title {
    font-size: 1rem;
    color: var(--ink);
    flex: 1;
}

/* ---------- CASE DATA ---------- */
.case-section {
    position: relative;
    padding: 100px 0 0;
    overflow: hidden;
    border-top: 1px solid var(--line);
}
.case-section .section-head-wrap {
    padding: 0 48px;
    max-width: var(--container-max);
    margin: 0 auto;
}
.case-section .section-head {
    margin-bottom: 56px;
}
.case-section .section-head h2 {
    font-size: clamp(1.6rem, 1.33rem + 1.22vw, 2.3rem);
}
.case-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
}
.case-card {
    display: flex;
    flex-direction: column;
}
.case-image {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--cream);
}
.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.case-body {
    padding: 28px 40px 40px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    border-top: 1px solid var(--line);
}
.case-card:not(:first-child) .case-body {
    border-left: 1px solid var(--line);
}
.case-meta {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-size: 10.5px;
    color: var(--ink-faint);
    letter-spacing: 0.06em;
}
.case-meta .is-highlight {
    color: var(--sky);
}
.case-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: var(--ink);
}
.case-desc {
    font-size: 0.92rem;
    line-height: 1.85;
    color: var(--ink-mute);
    margin: 0;
}

/* ---------- FACTORY NETWORK — バナー ---------- */
.factory-banner {
    position: relative;
    width: 100%;
    padding: 90px 48px;
    background: var(--navy-deep);
    overflow: hidden;
}
.factory-banner__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}
.factory-banner__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        100deg,
        rgba(13, 33, 48, 0.97) 0%,
        rgba(13, 33, 48, 0.86) 42%,
        rgba(13, 33, 48, 0.55) 78%,
        rgba(13, 33, 48, 0.35) 100%
    );
}
.factory-banner__body {
    max-width: var(--container-max);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.factory-banner__eyebrow {
    font-family: var(--font-heading);
    font-size: 11.5px;
    letter-spacing: 0.18em;
    color: var(--sky-light);
    font-weight: 700;
    margin-bottom: 22px;
}
.factory-banner__title {
    font-weight: 900;
    font-size: clamp(1.6rem, 1.21rem + 1.74vw, 2.6rem);
    line-height: 1.5;
    margin: 0;
    color: #fff;
    max-width: 640px;
}

/* ---------- FACTORY NETWORK — 本文 ---------- */
.factory-content {
    padding: 90px 48px;
    max-width: var(--container-max);
    margin: 0 auto;
}
.factory-lead {
    font-size: 1.08rem;
    line-height: 1.95;
    color: var(--ink-mute);
    max-width: 680px;
    margin: 0 0 56px;
}
.supply-diagram {
    padding: 64px 56px;
    border: 1px solid var(--line);
    background: var(--cream);
    margin-bottom: 64px;
}
.supply-diagram__label {
    font-size: 13.5px;
    letter-spacing: 0.1em;
    color: var(--ink-faint);
    margin-bottom: 28px;
}
.supply-diagram svg {
    width: 100%;
    height: auto;
    display: block;
    max-width: 900px;
    margin: 0 auto;
}
/* 横並び(920x320)のまま縮小すると900px以下では文字が判読できないほど
   小さくなるため、900px以下は縦並び専用のSVGに丸ごと差し替える。 */
.supply-diagram svg.supply-diagram__svg--mobile {
    display: none;
}
.supply-diagram__caption {
    font-size: 1.08rem;
    line-height: 1.95;
    color: var(--ink-mute);
    margin: 24px 0 0;
    max-width: 640px;
}

/* MONOIDが起点となる中心ノードであることを伝える、外側へ広がる
   パルス（リップル）アニメーション。2本のリングを時間差で回すことで
   常時どちらかが波打っている状態を作る。 */
.supply-diagram__pulse {
    transform-box: fill-box;
    transform-origin: center;
    opacity: 0;
    animation: supply-pulse 3s cubic-bezier(0.2, 0.7, 0.3, 1) infinite;
}
.supply-diagram__pulse--delay {
    animation-delay: 1.5s;
}
@keyframes supply-pulse {
    0% {
        transform: scale(1);
        opacity: 0.55;
    }
    100% {
        transform: scale(1.55);
        opacity: 0;
    }
}
@media (prefers-reduced-motion: reduce) {
    .supply-diagram__pulse {
        animation: none;
        opacity: 0;
    }
}
.factory-steps .step-number {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--sky);
    margin-bottom: 14px;
}
.factory-steps h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--ink);
}
.factory-steps p {
    font-size: 0.92rem;
    line-height: 1.85;
    color: var(--ink-mute);
    margin: 0;
}
.factory-footnote {
    font-size: 12.5px;
    line-height: 2;
    color: var(--ink-faint);
    max-width: 680px;
    margin: 56px 0 0;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

/* ---------- PROCESS CONTROL ---------- */
.process-section {
    position: relative;
    width: 100%;
    padding: 100px 48px;
    background: var(--navy-deep);
    color: #EFEDE7;
}
.process-section__inner {
    max-width: var(--container-max);
    margin: 0 auto;
}
.process-section__eyebrow {
    font-family: var(--font-heading);
    font-size: 12px;
    letter-spacing: 0.16em;
    color: var(--sky-light);
    font-weight: 700;
    margin-bottom: 22px;
}
.process-section__title {
    font-weight: 900;
    font-size: clamp(1.6rem, 1.33rem + 1.22vw, 2.3rem);
    margin: 0 0 56px;
    color: #fff;
}
.checkpoint {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    padding-top: 26px;
}
.checkpoint__label {
    font-family: var(--font-heading);
    font-size: 10.5px;
    color: var(--sky-light);
    margin-bottom: 14px;
    letter-spacing: 0.06em;
}
.checkpoint h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 12px;
    color: #fff;
}
.checkpoint p {
    font-size: 1rem;
    line-height: 1.9;
    color: #C7CAD0;
    margin: 0;
}

/* ---------- CTA ---------- */
.cta-section {
    padding: 100px 48px;
    max-width: var(--container-max);
    margin: 0 auto;
    text-align: center;
}
.cta-section .section-tag {
    justify-content: center;
}
.cta-title {
    font-weight: 900;
    font-size: clamp(1.5rem, 1.23rem + 1.22vw, 2.2rem);
    line-height: 1.5;
    margin: 0 0 24px;
    color: var(--ink);
}
.cta-lead {
    font-size: 1.05rem;
    color: var(--ink-mute);
    max-width: 520px;
    margin: 0 auto 40px;
    line-height: 1.85;
}
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 900px) {
    .page-hero {
        height: 620px;
    }
    .page-hero__content {
        padding: 0 24px 40px;
    }
    .page-hero__title {
        font-size: 2.3rem;
    }
    .page-hero__lead {
        font-size: 1rem;
        max-width: 100%;
    }
    .page-hero__scroll {
        display: none;
    }

    .concept-section {
        padding: 64px 24px;
    }
    .news-section {
        padding: 56px 24px;
    }
    .news-row {
        gap: 16px;
        align-items: flex-start;
    }
    .news-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        width: 66px;
    }
    .news-date {
        width: auto;
    }
    .news-tag {
        width: auto;
    }
    .news-title {
        font-size: 0.92rem;
    }

    .case-section .section-head-wrap {
        padding: 0 24px;
    }
    .case-grid {
        grid-template-columns: 1fr;
    }
    .case-card:not(:first-child) .case-body {
        border-left: none;
    }

    .factory-banner {
        padding: 64px 24px;
    }
    .factory-content {
        padding: 64px 24px;
    }
    .supply-diagram {
        padding: 32px 20px;
    }
    .supply-diagram svg.supply-diagram__svg--desktop {
        display: none;
    }
    .supply-diagram svg.supply-diagram__svg--mobile {
        display: block;
        max-width: 360px;
    }
    .factory-steps {
        gap: 32px 20px;
    }

    .process-section {
        padding: 64px 24px;
    }

    .cta-section {
        padding: 64px 24px;
    }
}

@media (max-width: 520px) {
    .page-hero {
        height: 560px;
    }
    .page-hero__title {
        font-size: 1.9rem;
    }
    .case-body {
        padding: 24px 24px 32px;
    }
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
}
