/*
Theme Name: トマトリンク
Theme URI: https://tomatolink.jp/
Author: トマトリンク株式会社
Description: Upcycle Project 8246 WordPress theme.
Version: 1.0.0
Text Domain: tomatolink
*/

/* ========================================
   1. Design Tokens (CSS Custom Properties)
   - サイト全体の色・フォント・余白などの定義
   ======================================== */
:root {
    --color-primary: #b81619;
    --color-primary-dark: #950000;
    --color-bg-primary: #f4f2ef;
    --color-bg-soft: #fbf8ef;
    --color-bg-dark: #1f1f1f;
    --color-text-primary: #950000;
    --color-text-secondary: #f4f2ef;
    --color-text-inverse: #ffffff;
    --color-line: rgba(149, 0, 0, 0.52);
    --color-surface: #ffffff;
    /* カード・パネル白背景 */
    --color-image-placeholder: #e8e8e8;
    /* ダッシュボード画像placeholder */
    --color-cream: #f8e8c7;
    /* FAQ回答エリア背景 */
    --color-brand-green: #26643a;
    /* メニュー・LINE系CTAの緑 */

    --font-serif: "Shippori Mincho B1", serif;
    --font-sans: sans-serif;
    --font-display: "Shippori Mincho B1", serif;

    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-md: 1.125rem;
    --text-lg: 1.375rem;
    --text-xl: 1.75rem;
    --text-2xl: 2.5rem;
    --text-3xl: 4.5rem;
    --text-4xl: 5.625rem;
    --text-hero: 4.875rem;

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 9rem;

    /* 角丸は2段階に固定：
       --radius-sm（4px）: ボタン・入力欄・バッジ・小さなサムネ
       --radius-md（8px）: カード・パネル・大きめの画像 */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --shadow-sm: 0 8px 20px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.12);
    --transition-fast: 180ms ease;
    --transition-base: 300ms ease;

    --content-width: 960px;
}

/* ========================================
   2. Reset & Base Styles
   - ブラウザのデフォルトスタイルをリセット
   ======================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--color-bg-primary);
    color: var(--color-text-primary);
    font-family: var(--font-serif);
    font-feature-settings: "palt";
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    /* Chrome, Safari, Edge */
    -moz-osx-font-smoothing: grayscale;
    /* Firefox */

}

@supports (overflow: clip) {

    html,
    body {
        overflow-x: clip;
    }
}

a {
    color: inherit;
    text-decoration: none;
}

.site-red-background {
    position: fixed;
    z-index: 0;
    inset: 0;
    background: var(--color-primary);
    pointer-events: none;
}

.site-red-background::before {
    position: absolute;
    inset: 0;
    background-image: url("images/texture_washi.jpg");
    background-size: 100vw auto;
    background-position: center center;
    background-repeat: repeat;
    mix-blend-mode: multiply;
    opacity: 0.6;
    content: "";
}

body>main,
body>footer {
    position: relative;
    z-index: 2;
}

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

button {
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

/* ========================================
   3. Utility Classes
   - 汎用的に使えるヘルパークラス
   ======================================== */
.text-body-sm {
    text-align: justify;
    font-size: var(--text-sm);
    line-height: 2.05;
    letter-spacing: 0;
}

.pc {
    display: none;
}

@media (min-width: 768px) {
    .pc {
        display: inline;
    }

    .sp {
        display: none;
    }
}

/* スクリーンリーダー専用：視覚的に非表示・読み上げ対象 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    white-space: nowrap;
}

/* ========================================
   4. Typography
   - 見出し・本文・リンクなどの文字スタイル
   ======================================== */
h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: 0;
}

p {
    margin-bottom: 0;
}

/* ========================================
   5. Common Components
   - 複数ページで共通して使うパーツ
   ======================================== */

/* --- パンくずリスト --- */
.breadcrumb {
    /* 左右パディングは .header と揃える（ロゴと縦ラインを合わせる）*/
    padding: var(--space-sm) 1.75rem;
    color: var(--color-text-primary);
    font-size: var(--text-xs);
    font-family: var(--font-sans);
}

.breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-xs);
    max-width: var(--content-width);
    margin: 0;
    padding: 0;
    list-style: none;
}

.breadcrumb__item {
    display: inline-flex;
    align-items: center;
}

/* セパレーターは2件目以降にだけ表示 */
.breadcrumb__item+.breadcrumb__item::before {
    margin-right: var(--space-xs);
    content: "／";
    opacity: 0.5;
}

.breadcrumb__item a {
    color: inherit;
    text-decoration: underline;
}

.breadcrumb__item[aria-current="page"] {
    opacity: 0.75;
}

/* ヒーロー上に重ねて表示するモディファイア（暗背景・赤背景の下層ページで使用）*/
.breadcrumb--overlay {
    position: absolute;
    top: 6rem;
    left: 0;
    z-index: 40;
    width: 100%;
    color: var(--color-text-inverse);
    pointer-events: none;
}

.breadcrumb--overlay .breadcrumb__list {
    pointer-events: auto;
}

@media (max-width: 767px) {
    .breadcrumb--overlay {
        top: 4rem;
    }

    .breadcrumb {
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }
}

/* --- 下層ページヒーロー（赤背景 + 小トマト装飾）---
   トップページFVの世界観（赤背景・floatingTomato）を下層に踏襲する。
   黒オーバーレイは持たない（仕様により省略）。
*/
.page-hero {
    position: relative;
    z-index: 1;
    overflow: hidden;
    min-height: 10rem;
    padding: 10rem clamp(1.5rem, 8vw, 10rem) 2rem;
    background: transparent;
    color: var(--color-text-inverse);
    text-align: center;
}

@media (max-width: 767px) {
    .page-hero {
        padding-top: 8rem;
    }
}

.page-hero__title {
    position: relative;
    z-index: 2;
    margin: 0;
}

/* h1 内に英語タイトルと日本語サブを 2 段で内包する（SEO: 日本語サイトの h1 に日本語を含める）
   見た目は従来の <h1>英語</h1><p>日本語</p> と同等 */
.page-hero__title-en {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, var(--text-3xl));
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
}

.page-hero__title-ja {
    display: block;
    margin-top: var(--space-sm);
    font-family: var(--font-serif);
    font-size: var(--text-lg);
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* 後方互換：既存の .page-hero__sub（独立要素）も同じ見た目になるように残す */
.page-hero__sub {
    position: relative;
    z-index: 2;
    margin: var(--space-sm) 0 0;
    font-family: var(--font-serif);
    font-size: var(--text-lg);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.page-hero__tomato {
    position: absolute;
    z-index: 1;
    max-width: none;
    height: auto;
    opacity: 0.85;
    pointer-events: none;
    /* トップFVと同じ floatingTomato アニメーションを再利用 */
    animation: floatingTomato 8s ease-in-out infinite;
}

.page-hero__tomato--left {
    top: 22%;
    left: -2rem;
    width: clamp(6rem, 9vw, 10rem);
    animation-duration: 8.2s;
}

.page-hero__tomato--top-right {
    top: -1.5rem;
    right: 12vw;
    width: clamp(4.5rem, 6.5vw, 8rem);
    animation-delay: -2.4s;
    animation-duration: 7.6s;
}

.page-hero__tomato--right {
    bottom: -1rem;
    right: -2rem;
    width: clamp(5.5rem, 8vw, 9.5rem);
    animation-delay: -4.2s;
    animation-duration: 8.8s;
}

/* --- 下層ページヘッダー（FV画像なし）--- */
.page-header {
    padding: 11rem clamp(1.5rem, 8vw, 10rem) var(--space-2xl);
    background: var(--color-bg-primary);
    color: var(--color-text-primary);
    text-align: center;
}

.page-header__title {
    margin: 0;
}

/* h1 内に英語タイトルと日本語サブを 2 段で内包する（page-hero と同じ思想）*/
.page-header__title-en {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, var(--text-3xl));
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
}

.page-header__title-ja {
    display: block;
    margin-top: var(--space-sm);
    font-family: var(--font-serif);
    font-size: var(--text-lg);
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* 後方互換：旧マークアップ（独立 <p>）も同じ見た目になるよう残す */
.page-header__sub {
    margin: var(--space-sm) 0 0;
    font-family: var(--font-serif);
    font-size: var(--text-lg);
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* --- 規約系コンテンツ（プライバシーポリシー等の長文ページ）--- */
.legal-content {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: var(--space-2xl) 0 var(--space-3xl);
    font-family: var(--font-serif);
    color: var(--color-text-primary);
}

.legal-content__intro {
    margin-bottom: var(--space-xl);
    font-size: var(--text-base);
    line-height: 1.95;
}

.legal-content__section {
    margin-bottom: var(--space-xl);
}

.legal-content__section h2 {
    margin: 0 0 var(--space-md);
    padding-bottom: var(--space-xs);
    border-bottom: 1px solid var(--color-line);
    font-family: var(--font-serif);
    font-size: var(--text-lg);
    font-weight: 600;
}

.legal-content__section p {
    margin: 0 0 var(--space-sm);
    font-size: var(--text-base);
    line-height: 1.95;
    text-align: justify;
}

.legal-content__section ul {
    margin: 0 0 var(--space-sm);
    padding-left: var(--space-md);
    font-size: var(--text-base);
    line-height: 1.95;
}

.legal-content__section li {
    margin-bottom: var(--space-xs);
}

.legal-content__contact {
    margin-top: var(--space-sm);
    font-size: var(--text-sm);
    line-height: 1.9;
}

.legal-content__meta {
    margin-top: var(--space-xl);
    color: var(--color-text-primary);
    opacity: 0.7;
    font-size: var(--text-sm);
    text-align: right;
}

/* --- 404 ページ本文 --- */
.error-content {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-md) var(--space-3xl);
    font-family: var(--font-serif);
    color: var(--color-text-primary);
    text-align: center;
}

.error-content__lead {
    margin-bottom: var(--space-xl);
    font-size: var(--text-base);
    line-height: 1.95;
}

.error-content__nav {
    display: flex;
    justify-content: center;
}

/* --- お問い合わせフォーム --- */
.contact-form {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: var(--space-2xl) 0 var(--space-3xl);
    font-family: var(--font-serif);
    color: var(--color-text-primary);
}

.contact-form__intro {
    margin-bottom: var(--space-xl);
    font-size: var(--text-base);
    line-height: 1.95;
    text-align: center;
}

.contact-form__field {
    margin-bottom: var(--space-lg);
}

.contact-form__label {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-xs);
    font-size: var(--text-sm);
    font-weight: 600;
}

.contact-form__required,
.contact-form__optional {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    font-weight: 600;
    line-height: 1.2;
}

.contact-form__required {
    background: var(--color-primary);
    color: var(--color-text-inverse);
}

.contact-form__optional {
    background: transparent;
    color: var(--color-text-primary);
    border: 1px solid var(--color-line);
}

.contact-form__input,
.contact-form__select,
.contact-form__textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #cccccc;
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    color: var(--color-text-primary);
    font-family: var(--font-serif);
    font-size: var(--text-base);
    line-height: 1.6;
    transition: border-color var(--transition-fast);
}

.contact-form__input:focus,
.contact-form__select:focus,
.contact-form__textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.contact-form__textarea {
    min-height: 12rem;
    resize: vertical;
}

.contact-form__select {
    /* OS依存の見た目をリセットしつつ、矢印アイコンをCSSで描画 */
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--color-text-primary) 50%), linear-gradient(135deg, var(--color-text-primary) 50%, transparent 50%);
    background-position: calc(100% - 1.25rem) 50%, calc(100% - 0.75rem) 50%;
    background-size: 0.5rem 0.5rem, 0.5rem 0.5rem;
    background-repeat: no-repeat;
    padding-right: 2.5rem;
}

.contact-form__consent {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: var(--space-xs);
    margin: 40px 0;
    /* CODING_GUIDELINES 4.4: input系のfont-sizeは16px下限（iOS自動ズーム対策） */
    font-size: var(--text-base);
    line-height: 1.7;
    /* 折り返した2行目以降も中央に揃える */
    text-align: center;
}

.contact-form__consent input[type="checkbox"] {
    flex-shrink: 0;
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.25rem;
    font-size: var(--text-base);
    accent-color: var(--color-primary);
}

.contact-form__consent a {
    color: var(--color-primary);
    text-decoration: underline;
}

/* 中央配置の指定は .btn より後ろのブロックにある（カスケードで負けるため。1111行目付近） */

.contact-form__notice {
    margin-top: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: var(--color-bg-soft);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    line-height: 1.7;
    text-align: center;
}

/* 同意未チェック時の送信ボタン無効状態 */
.contact-form__submit:disabled,
.contact-form__submit[disabled] {
    background: var(--color-bg-dark);
    opacity: 0.4;
    cursor: not-allowed;
}

/* hover時も無効状態は変化しない */
@media (hover: hover) {

    .contact-form__submit:disabled:hover,
    .contact-form__submit[disabled]:hover {
        background: var(--color-bg-dark);
        transform: none;
    }
}

/* --- 内容確認画面 --- */
.contact-confirm {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: var(--space-2xl) 0 var(--space-3xl);
    font-family: var(--font-serif);
    color: var(--color-text-primary);
}

.contact-confirm__intro {
    margin-bottom: var(--space-xl);
    font-size: var(--text-base);
    line-height: 1.95;
    text-align: center;
}

.contact-confirm__list {
    margin: 0 0 var(--space-xl);
    padding: 0;
    list-style: none;
}

.contact-confirm__row {
    display: grid;
    grid-template-columns: 14rem 1fr;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--color-line);
}

.contact-confirm__label {
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: 600;
}

.contact-confirm__value {
    font-size: var(--text-base);
    line-height: 1.8;
    white-space: pre-wrap;
    word-break: break-word;
}

.contact-confirm__value--empty {
    color: var(--color-text-primary);
    opacity: 0.4;
}

.contact-confirm__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
}

.contact-confirm__notice {
    max-width: 40rem;
    margin: var(--space-lg) auto 0;
    padding: var(--space-md);
    background: var(--color-bg-soft);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    line-height: 1.8;
    text-align: center;
}

/* タブレット未満では確認画面のラベルを上段に積む */
@media (max-width: 767px) {
    .contact-confirm__row {
        grid-template-columns: 1fr;
        gap: var(--space-xs);
    }
}

/* 下層ページコンテナの SP 左右パディング（画面端に張り付かないように）*/
@media (max-width: 767px) {

    .legal-content,
    .contact-form,
    .contact-confirm,
    .contact-thanks,
    .news-archive,
    .news-detail,
    .achievement-archive {
        padding-right: var(--space-md);
        padding-left: var(--space-md);
    }

    .contact-form__intro {
        text-align: justify;
    }

    .contact-confirm__intro {
        text-align: justify;
    }

    .contact-form__field {
        margin-bottom: var(--space-md);
    }

    /* チェックボックス自体は規約4.4により16px維持（別ルールで明示済み）。
       ここでは同意文のテキストのみ縮小する */
    .contact-form__consent {
        font-size: 14px;
    }

    /* 確認画面のボタン群が縦並びにならないよう gap を縮める */
    .contact-confirm__actions {
        flex-direction: column;
    }

    .contact-confirm__actions .btn {
        width: 100%;
    }
}

/* --- お知らせアーカイブ --- */
.news-archive {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: var(--space-2xl) 0 var(--space-3xl);
}

.news-archive__filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-lg);
    font-family: var(--font-sans);
    font-size: var(--text-sm);
}

.news-archive__filter-link {
    padding: 0.4rem 1rem;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-sm);
    color: var(--color-text-primary);
    text-decoration: none;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.news-archive__filter-link[aria-current="true"] {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-text-inverse);
}

@media (hover: hover) {
    .news-archive__filter-link:not([aria-current="true"]):hover {
        background: var(--color-bg-soft);
    }
}

.news-archive__list {
    margin: 0;
}

/* カード本体のスタイルは共通の .news-card を参照。
   アーカイブ固有の差分（フィルター、ページネーション等）のみ news-archive__* に残す */

/* ページネーション（Phase 1 は表示のみ／WP化時に動的化）*/
.news-archive__pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--space-xs);
    margin-top: var(--space-xl);
    font-family: var(--font-sans);
    font-size: var(--text-sm);
}

.news-archive__page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-sm);
    color: var(--color-text-primary);
    text-decoration: none;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.news-archive__page[aria-current="page"] {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-text-inverse);
    cursor: default;
}

@media (hover: hover) {
    .news-archive__page:not([aria-current="page"]):hover {
        background: var(--color-bg-soft);
    }
}

/* --- お知らせ詳細 --- */
.news-detail__hero {
    padding-top: 12rem;
    padding-bottom: var(--space-xl);
    /* .page-hero の text-align:center を上書きして左揃え */
    text-align: left;
}

.news-detail__meta {
    position: relative;
    z-index: 2;
    /* 本文（.news-detail）と同じ 760px に揃えて左寄せ */
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    max-width: 760px;
    /* タイトルの下に表示するため上マージン */
    margin: var(--space-md) auto 0;
    font-family: var(--font-sans);
    font-size: var(--text-sm);
}

.news-detail__category {
    padding: 0.25rem 0.85rem;
    border-radius: var(--radius-sm);
    background: var(--color-text-inverse);
    color: var(--color-primary);
    font-weight: 600;
    letter-spacing: 0.04em;
}

.news-detail__date {
    letter-spacing: 0.06em;
}

.news-detail__title {
    position: relative;
    z-index: 2;
    /* 本文（.news-detail）と同じ 760px に揃えて左寄せ */
    max-width: 760px;
    margin: 0 auto;
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 600;
    line-height: 1.4;
}

.news-detail {
    max-width: 760px;
    margin: 0 auto;
    padding: var(--space-xl) 0 var(--space-3xl);
    font-family: var(--font-serif);
    color: var(--color-text-primary);
}

.achievement-archive {
    position: relative;
    z-index: 2;
    max-width: 1120px;
    margin: 0 auto;
    padding: var(--space-2xl) 0 var(--space-3xl);
    background: var(--color-bg-primary);
    box-shadow: 0 0 0 100vmax var(--color-bg-primary);
    clip-path: inset(0 -100vmax);
}

.achievement-archive__month {
    margin: var(--space-xl) 0 var(--space-md);
    color: var(--color-text-primary);
    font-size: var(--text-xl);
    text-align: center;
}

.achievement-archive__month:first-of-type {
    margin-top: 0;
}

.achievement-archive__grid {
    margin-bottom: var(--space-xl);
}

.achievement-archive__record-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-lg) 1.65rem;
}

.achievement-archive__record-grid .top-dashboard-record-card {
    flex: none;
}

@media (max-width: 900px) {
    .achievement-archive__record-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .achievement-archive__record-grid {
        grid-template-columns: 1fr;
    }
}


.news-detail__nav.achievement-archive__pagination {
    justify-content: center;
    gap: var(--space-xs);
    max-width: none;
}

.achievement-archive__page.current {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-text-inverse);
    cursor: default;
}

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

.news-detail__eyecatch {
    margin: 0 0 var(--space-xl);
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.news-detail__eyecatch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-detail__body {
    font-size: var(--text-base);
    line-height: 2;
}

.news-detail__body h2 {
    margin: var(--space-xl) 0 var(--space-sm);
    padding-bottom: var(--space-xs);
    border-bottom: 1px solid var(--color-line);
    font-size: var(--text-lg);
}

.news-detail__body h3 {
    margin: var(--space-lg) 0 var(--space-sm);
    font-size: var(--text-md);
}

.news-detail__body p {
    margin: 0 0 var(--space-md);
    text-align: justify;
}

.news-detail__body ul,
.news-detail__body ol {
    margin: 0 0 var(--space-md);
    padding-left: var(--space-md);
}

.news-detail__body img {
    max-width: 100%;
    height: auto;
    margin: var(--space-md) 0;
    border-radius: var(--radius-md);
}

.news-detail__nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-sm);
    max-width: 760px;
    margin: var(--space-2xl) auto 0;
    font-family: var(--font-sans);
    font-size: var(--text-sm);
}

/* 一覧ページの .news-archive__page と同じピル形状 */
.news-detail__nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-sm);
    color: var(--color-text-primary);
    text-decoration: none;
    transition: background-color var(--transition-base), color var(--transition-base);
}

@media (hover: hover) {
    .news-detail__nav-link:hover {
        background: var(--color-bg-soft);
    }
}

@media (max-width: 767px) {
    .news-detail__nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-xs);
    }

    .news-detail__title {
        font-size: 24px;
    }

    /* 本文コンテナの左右パディング。base の padding 短縮形（左右 0）より後に置く必要あり */
    .news-archive,
    .news-detail {
        padding-left: 20px;
        padding-right: 20px;
        padding-top: 20px;
    }

    .news-detail__eyecatch {
        margin-bottom: 20px;
    }

    .news-detail__hero {
        padding-top: 9rem;
        padding-bottom: 30px;
    }
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 0.18rem solid currentColor;
    border-radius: 50%;
    font-family: var(--font-sans);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
}

.brand-text {
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    font-weight: 700;
    line-height: 1.15;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22rem;
    min-height: 4rem;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    transition: color var(--transition-base);
}

/* CODING_GUIDELINES 4.4: input系のfont-sizeは16px下限。.btn(var(--text-sm)=14px)は
   サイト共通のボタンサイズのため、フォームの送信ボタンだけ個別に引き上げる
   （.btnのfont-size宣言より後ろに置かないとカスケードで負けるため、ここに配置） */
.contact-form__submit {
    font-size: var(--text-base);
    /* .btn の inline-flex では auto マージンが効かないため、ブロックレベル化して中央寄せする */
    display: flex;
    width: fit-content;
    margin-inline: auto;
}

@media (max-width: 767px) {
    .btn {
        /* SP では画面幅を超えないよう柔軟に縮める */
        min-width: 0;
        width: 100%;
        max-width: 22rem;
    }
}

.btn::after {
    margin-left: auto;
    content: ">";
}

/* btn 内に img があれば、::after の > は不要なので非表示にし、
   img を右端へ押し出して矢印アイコンとして機能させる */
.btn:has(img)::after {
    content: none;
}

.btn img {
    width: 1rem;
    height: 1rem;
    margin-left: auto;
}

.btn--dark {
    background: var(--color-bg-dark);
    color: var(--color-text-inverse);
}

@media (hover: hover) {
    .btn--dark:hover {
        color: var(--color-primary);
    }
}

/* 確認画面の「戻る」など、主要アクションに対する二次的な操作用 */
.btn--outline {
    background: transparent;
    color: var(--color-text-primary);
    border: 1px solid var(--color-line);
}

@media (hover: hover) {
    .btn--outline:hover {
        background: var(--color-bg-soft);
    }
}

/* 確認画面の戻る・送信するボタン：CONTACTページの送信ボタンとテキストサイズを揃え、
   遷移リンク用の矢印(::after)は不要なため外してテキストを中央に見せる */
.contact-confirm__actions .btn {
    font-size: var(--text-base);
}

.contact-confirm__actions .btn::after {
    content: none;
}

/* 送信完了（サンクス）ページ */
.contact-thanks {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: var(--space-2xl) 0 var(--space-3xl);
    font-family: var(--font-serif);
    color: var(--color-text-primary);
    text-align: center;
}

.contact-thanks__lead {
    margin-bottom: var(--space-xl);
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.9;
}

.contact-thanks__body {
    max-width: 34rem;
    margin: 0 auto var(--space-xl);
    font-size: var(--text-base);
    line-height: 2;
}

.contact-thanks__body p + p {
    margin-top: var(--space-md);
}

.contact-thanks__actions .btn {
    min-height: 4.25rem;
    font-size: var(--text-base);
    font-weight: 600;
}

.contact-thanks__actions .btn::after {
    content: none;
}

@media (max-width: 767px) {
    .contact-thanks__lead {
        font-size: 1.15rem;
    }

    .contact-thanks__body {
        text-align: justify;
    }

    .contact-thanks__actions .btn {
        width: 100%;
        min-width: 0;
    }
}

.section-side-title {
    position: absolute;
    top: var(--space-xl);
    display: flex;
    align-items: flex-start;
    color: var(--color-primary-dark);
    writing-mode: vertical-rl;
}

.section-side-title span {
    font-size: var(--text-base);
    letter-spacing: 0.08em;
}

.section-side-title strong {
    font-size: clamp(4rem, 7vw, 7.5rem);
    font-weight: 600;
    line-height: 0.85;
    letter-spacing: -0.04em;
}

.section-side-title--light {
    color: var(--color-text-inverse);
}

/* dashboard / products / news は親を横並び（row-reverse）にしつつ、子の span/strong を縦組にして
   2列の縦書きテキストを並べる */
.top-dashboard>.section-side-title,
.top-products__container>.section-side-title,
.top-news__container>.section-side-title {
    flex-direction: row-reverse;
    writing-mode: horizontal-tb;
}

.top-dashboard>.section-side-title span,
.top-dashboard>.section-side-title strong,
.top-products__container>.section-side-title span,
.top-products__container>.section-side-title strong,
.top-news__container>.section-side-title span,
.top-news__container>.section-side-title strong {
    writing-mode: vertical-rl;
}

/* SP では横組（column-reverse）に切り替える */
@media (max-width: 767px) {

    .section-side-title,
    .top-dashboard>.section-side-title,
    .top-products__container>.section-side-title,
    .top-news__container>.section-side-title {
        flex-direction: column-reverse;
        gap: var(--space-xs);
        writing-mode: horizontal-tb;
    }

    .section-side-title span,
    .section-side-title strong,
    .top-dashboard>.section-side-title span,
    .top-dashboard>.section-side-title strong,
    .top-products__container>.section-side-title span,
    .top-products__container>.section-side-title strong,
    .top-news__container>.section-side-title span,
    .top-news__container>.section-side-title strong {
        writing-mode: horizontal-tb;
    }

    .section-side-title strong {
        font-size: var(--text-2xl);
        line-height: 1;
    }

    .section-side-title span {
        font-size: var(--text-base);
    }
}

/* ========================================
   6. Layout Components
   - ヘッダー、フッター、ナビゲーション
   ======================================== */
.header {
    position: absolute;
    /* menu-drawer (z-index:70) より前面にして、内側の menu-button が drawer の上に表示されるように */
    z-index: 80;
    top: 0;
    left: 0;
    display: flex;
    align-items: flex-start;
    width: 100%;
    padding: 1.6rem 1.75rem;
    color: var(--color-text-inverse);
    pointer-events: none;
    transition: none;
}

.header.is-scrolled {
    background: transparent;
    padding: 1.6rem 1.75rem;
}

.header__logo {
    display: inline-flex;
    align-items: center;
    width: 5.6rem;
    pointer-events: auto;
}

.header__logo img {
    width: 100%;
    max-width: none;
    height: auto;
}

.header__nav {
    /* PC（1024px以上）では横並びテキストメニューを表示。
       モバイルでは @media (max-width: 1023px) で非表示にして .menu-drawer に集約 */
    display: flex;
    align-items: center;
    gap: 2.75rem;
    margin-left: auto;
    margin-right: 4.8rem;
    padding-top: 0.1rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    pointer-events: auto;
}

.header__icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    font-family: var(--font-sans);
    font-weight: 700;
}

.header__icon-link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.menu-button {
    position: fixed;
    /* menu-drawer (z-index:70) より前面に配置 */
    z-index: 80;
    top: 0;
    right: 0;
    display: grid;
    grid-template-rows: 1fr auto auto 1fr;
    justify-items: center;
    width: 80px;
    height: 80px;
    margin-top: 0;
    margin-right: 0;
    margin-left: 2.4rem;
    background: var(--color-brand-green);
    color: var(--color-text-inverse);
    pointer-events: auto;
}

.menu-button__line {
    position: relative;
    grid-row: 2;
    width: 42px;
    height: 1px;
    background: currentColor;
    transition: transform 260ms ease;
}

.menu-button__line::before,
.menu-button__line::after {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    background: currentColor;
    content: "";
    transition: top 260ms ease, transform 260ms ease;
}

.menu-button__line::before {
    display: none;
}

.menu-button__line::after {
    top: 8px;
}

/* 開閉時に = → × にアニメーション */
.menu-button[aria-expanded="true"] .menu-button__line {
    transform: rotate(45deg);
}

.menu-button[aria-expanded="true"] .menu-button__line::after {
    top: 0;
    /* 親が +45deg 回転中。-90deg の local 回転 = -45deg screen で X を形成 */
    transform: rotate(-90deg);
}

.menu-button__text {
    grid-row: 3;
    margin-top: 18px;
    font-family: var(--font-serif);
    font-size: 11px;
    line-height: 1;
    letter-spacing: 0.14em;
    /* 内部テキスト("MENU") を透明にして ::before / ::after で MENU / CLOSE を切替表示 */
    position: relative;
    color: transparent;
}

.menu-button__text::before,
.menu-button__text::after {
    position: absolute;
    inset: 0;
    color: var(--color-text-inverse);
    text-align: center;
    transition: opacity 200ms ease;
}

.menu-button__text::before {
    content: "MENU";
    opacity: 1;
}

.menu-button__text::after {
    content: "CLOSE";
    opacity: 0;
}

.menu-button[aria-expanded="true"] .menu-button__text::before {
    opacity: 0;
}

.menu-button[aria-expanded="true"] .menu-button__text::after {
    opacity: 1;
}

@media (max-width: 1023px) {
    .header {
        padding: var(--space-sm);
    }

    .header__nav {
        display: none;
    }

    .menu-button {
        margin-top: 0;
        margin-right: 0;
        margin-left: auto;
    }
}

/* --- プリローダー ---
   ミッションの数字そのものを見せる：1,000t が 0 まで駆け下りてから幕が上がる */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-content: center;
    justify-items: center;
    row-gap: 1.2rem;
    overflow: hidden;
    background: var(--color-bg-primary);
    color: var(--color-primary);
}

.preloader__logo {
    display: block;
    width: clamp(90px, 12vw, 140px);
    height: auto;
    /* インライン SVG 内の fill="currentColor" を赤色に */
    color: var(--color-primary);
}

.preloader__count {
    display: flex;
    align-items: baseline;
    line-height: 1;
    font-weight: 600;
}

.preloader__number {
    /* カウント中に桁数が減っても中央が保たれるよう等幅数字に */
    font-variant-numeric: tabular-nums;
    font-size: clamp(4rem, 12vw, 9rem);
    letter-spacing: 0.02em;
}

.preloader__unit {
    margin-left: 0.2rem;
    font-size: clamp(1.5rem, 4vw, 3rem);
}

/* ロード完了後、白い背景を上にスライドアウトして FV を表示 */
.preloader.is-leaving {
    transform: translateY(-100%);
    transition: transform 800ms cubic-bezier(0.65, 0, 0.35, 1);
}

.preloader.is-hidden {
    display: none;
}

/* プリローダー表示中は body のスクロールを抑制 */
body:has(.preloader:not(.is-hidden)) {
    overflow: hidden;
}

/* --- ハンバーガーメニュー（ドロワー）---
   PC: 右側からスライドイン（幅32rem）
   SP: 全画面オーバーレイ
*/
.menu-drawer {
    position: fixed;
    inset: 0;
    z-index: 70;
    visibility: hidden;
    opacity: 0;
    transition: opacity 300ms ease, visibility 0s 300ms;
}

.menu-drawer.is-open {
    visibility: visible;
    opacity: 1;
    transition: opacity 300ms ease;
}

.menu-drawer__backdrop {
    position: absolute;
    inset: 0;
    padding: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.menu-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(100%, 32rem);
    padding: 6rem var(--space-xl) var(--space-xl);
    /* MENUボタンと同じ緑 */
    background: var(--color-brand-green);
    color: var(--color-text-inverse);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 360ms ease;
}

.menu-drawer.is-open .menu-drawer__panel {
    transform: translateX(0);
}

/* モバイルでは全画面表示 */
@media (max-width: 767px) {
    .menu-drawer__panel {
        width: 100%;
    }
}

.menu-drawer__close {
    /* MENU ボタン自体が CLOSE に変化して閉じる役割を担うため、ドロワー内の × は不要 */
    display: none;
}

.menu-drawer__close::before,
.menu-drawer__close::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1.5rem;
    height: 2px;
    background: currentColor;
    content: "";
}

.menu-drawer__close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.menu-drawer__close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.menu-drawer__list {
    margin: 0 0 var(--space-xl);
    padding: 0;
    list-style: none;
    font-family: var(--font-display);
    font-size: var(--text-lg);
    letter-spacing: 0.04em;
}

.menu-drawer__list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.menu-drawer__list a {
    display: block;
    padding: var(--space-sm) 0;
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-base);
    font-size: var(--text-md);
}

@media (max-width: 767px) {
    .menu-drawer__list a {
        font-size: var(--text-sm);
    }
}

@media (hover: hover) {
    .menu-drawer__list a:hover {
        color: var(--color-primary);
    }
}

.menu-drawer__instagram {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: inherit;
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    text-decoration: none;
}

.menu-drawer__instagram img {
    width: 2.5rem;
    height: 2.5rem;
}

/* ドロワー展開中は body のスクロールを固定 */
body.is-menu-open {
    overflow: hidden;
}

.footer {
    position: relative;
    z-index: 1;
    background: transparent;
}

/* フッター右下のオンラインストア CTA ボタン */
.footer__cta {
    position: absolute;
    /* 背景の footer__image（z-index:1）より前面に出す */
    z-index: 3;
    right: clamp(1.5rem, 5vw, 5.625rem);
    /* footer__bottom（≒3rem分の高さ）の上に配置 */
    bottom: 5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 210px;
    height: 50px;
    background: var(--color-surface);
    color: var(--color-text-primary);
    border-radius: var(--radius-sm);
    font-family: var(--font-serif);
    font-size: var(--text-sm);
    font-weight: 600;
    text-decoration: none;
    transition: background-color var(--transition-base), color var(--transition-base);
}

.footer__cta img {
    width: 30px;
    height: 30px;
}

@media (hover: hover) {
    .footer__cta:hover {
        background: var(--color-cream);
    }
}

.footer__image {
    position: relative;
    z-index: 2;
    height: 520px;
    min-height: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 1.5rem 20px;
    background: url("images/eyecatch-tomatootoko.jpg") bottom center / cover no-repeat;
    color: var(--color-text-inverse);
}

.footer__image img {
    width: min(52rem, 78vw);
    max-width: none;
    height: auto;
}

.footer__brand {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 24rem;
    padding: var(--space-2xl) var(--space-md);
    color: var(--color-text-inverse);
    text-align: center;
}

.footer__brand p {
    margin-bottom: var(--space-md);
}

/* フッターのタグライン「1,000トンを、ゼロへ。」
   ＼／ は :before / :after の回転ボックスで表現（.top-founder__hello と同パターン）*/
.footer__tagline {
    position: relative;
    display: inline-block;
    margin-bottom: var(--space-sm);
    padding: 0 0.5rem 0 1.2rem;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.6;
}

.footer__tagline::before,
.footer__tagline::after {
    position: absolute;
    top: 100%;
    width: 2rem;
    height: 0.08rem;
    background: var(--color-text-inverse);
    content: "";
}

.footer__tagline::before {
    right: 100%;
    transform: rotate(58deg);
    transform-origin: right center;
}

.footer__tagline::after {
    left: 100%;
    transform: rotate(-58deg);
    transform-origin: left center;
}

.footer__logo {
    display: inline-flex;
    align-items: center;
    width: min(22rem, 72vw);
}

.footer__logo img {
    width: 100%;
    max-width: none;
    height: auto;
}

.footer__bottom {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: 0 clamp(1.5rem, 5vw, 5.625rem) 1.75rem;
    color: var(--color-text-inverse);
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    font-weight: 700;
    line-height: 1.5;
}

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

.footer__bottom a {
    color: inherit;
}

@media (max-width: 767px) {
    .footer__image {
        /* SP では 520px は過剰なので縮める */
        height: 340px;
        /* SP 専用背景画像に差し替え */
        background-image: url("images/eyecatch-tomatootoko-sp.jpg");
    }

    .footer__brand {
        min-height: 0;
        padding: var(--space-2xl) var(--space-md);
    }

    .footer {
        /* SP では flex column 化して CTA をロゴ下・運営会社上に挿入する */
        display: flex;
        flex-direction: column;
    }

    .footer__cta {
        /* SP では absolute をやめ、ブランド領域の下に通常配置 */
        position: static;
        margin: var(--space-md) auto 0;
    }

    .footer__bottom {
        flex-direction: column;
        align-items: center;
        gap: var(--space-sm);
        padding: var(--space-md) var(--space-md) var(--space-lg);
        text-align: center;
        /* CTA（DOM では最後）よりも後ろに表示する */
        order: 1;
    }

    .footer__links {
        flex-direction: column;
        gap: var(--space-xs);
    }

    .footer__copyright {
        margin-left: 0;
    }
}

.footer__copyright {
    margin-left: auto;
    font-size: 10px;
}

@media (max-width: 767px) {
    .footer__copyright {
        /* SP では flex column のクロス軸に margin-left: auto が効くと右寄せになるため打ち消す */
        margin-left: 0;
    }
}

/* ========================================
   7. Page Sections（共通ベース）
   - セクションの共通スタイル
   ======================================== */
.section {
    position: relative;
    padding: var(--space-3xl) clamp(1.5rem, 8vw, 10rem);
}

@media (max-width: 767px) {
    .section {
        /* SP では上下余白を 9rem(144px) → 6rem(96px) に抑える */
        padding-top: var(--space-2xl);
        padding-bottom: var(--space-2xl);
    }
}

/* ========================================
   8. Page-specific Styles（ページ固有）
   - トップページ固有の上書き・拡張スタイル
   ======================================== */
.top-red-story {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100vw;
    overflow: visible;
    background: transparent;
    color: var(--color-text-secondary);
}

/* 赤背景・和紙テクスチャは .site-red-background の fixed レイヤーに集約する */
.top-red-story::before,
.top-products::after,
.top-support::after,
.footer::before {
    content: none;
}

/* 背景色 #f4f2ef（cream）のセクションに texture_wasi_mini.jpg を 100%（原寸）で敷き詰め、乗算 opacity 0.25 で重ねる */
.page-header::before,
.top-news::before,
.top-faq::before,
.opus-story::before,
.top-dashboard::after {
    position: absolute;
    z-index: 0;
    inset: 0;
    background-image: url("images/texture_wasi_mini.jpg");
    background-repeat: repeat;
    /* 原寸 320×320 の 60% = 192×192 */
    background-size: 192px 192px;
    background-attachment: fixed;
    mix-blend-mode: multiply;
    opacity: 0.2;
    pointer-events: none;
    content: "";
}


/* --- 旅するトマト（スクロールエンジンが transform を毎フレーム更新）--- */
.top-red-story__journey-tomato {
    position: fixed;
    z-index: 4;
    top: 0;
    left: 0;
    /* FV のメイントマトと同サイズを基準に、scale で旅の遠近を出す */
    width: min(20vw, 25.6rem);
    opacity: 0;
    pointer-events: none;
    transform-origin: center;
    will-change: transform, opacity;
}

.top-red-story__journey-tomato.is-active {
    opacity: 1;
    transition: opacity 220ms ease;
}

/* キャッチの瞬間：JSトマトは素早く消え、トマト焼き込みの手フレーム（frame-2）に引き継ぐ */
.top-red-story.is-caught .top-red-story__journey-tomato,
.top-red-story.is-caught .top-red-story__journey-tomato.is-active {
    opacity: 0;
    transition: opacity 220ms ease;
}

.top-red-story__journey-tomato img {
    width: 100%;
    max-width: none;
    height: auto;
    /* PNG の透過部分にだけかかるよう drop-shadow を使用 */
    filter: drop-shadow(0 1rem 2rem rgba(0, 0, 0, 0.18));
}

@media (max-width: 767px) {
    .top-red-story__journey-tomato {
        width: min(48vw, 20rem);
    }
}

.fixed-tomato-decoration {
    position: fixed;
    z-index: 1;
    inset: 0;
    pointer-events: none;
}

.page-header,
.legal-content,
.contact-form,
.contact-confirm,
.contact-thanks,
.news-archive,
.news-detail,
.opus-story,
.opus-dark,
.opus-faq-eyecatch,
.top-dashboard,
.top-news,
.top-faq {
    position: relative;
    z-index: 2;
}

.legal-content,
.contact-form,
.contact-confirm,
.contact-thanks,
.news-archive,
.news-detail {
    background: var(--color-bg-primary);
    box-shadow: 0 0 0 100vmax var(--color-bg-primary);
    clip-path: inset(0 -100vmax);
}

.opus-story,
.opus-dark,
.opus-faq-eyecatch,
.top-dashboard,
.top-news,
.top-faq {
    isolation: isolate;
}

.top-hero {
    position: relative;
    /* FV を「ちょうど画面の1枚分」に固定し、次の .top-intro が画面内に侵入しないようにする */
    min-height: 100svh;
    background: transparent;
}

.top-hero__inner {
    position: relative;
    padding-top: 40svh;
    padding-left: clamp(3rem, 16.6vw, 20rem);
}

/* イントロセクション（FVの次にスクロールで現れる）*/
.top-intro {
    position: relative;
    padding: var(--space-2xl) clamp(3rem, 16.6vw, 20rem) var(--space-3xl);
    color: var(--color-text-inverse);
}

.top-intro__inner {
    position: relative;
    z-index: 3;
    max-width: 60rem;
}

/* 背景の巨大な "1,000t"。スクロールで奥にゆっくり沈む（JS が --hero-parallax を更新） */
.top-hero__number {
    position: absolute;
    z-index: 1;
    /* FV（最初のビューポート）の天地センターに配置。
       URLバー開閉で高さが変動しない svh を使用 */
    top: 47svh;
    left: clamp(3rem, 16.6vw, 20rem);
    transform: translateY(calc(-50% + var(--hero-parallax, 0px)));
    color: rgba(244, 242, 239, 0.08);
    font-size: clamp(9rem, 24vw, 28rem);
    font-weight: 600;
    line-height: 0.8;
    will-change: transform;
}

/* 旅するトマトの初期位置アンカー：FV のメイントマトが「いた場所」。
   本体は .top-red-story__journey-tomato（fixed）で、JS がこの箱の座標を読んで初期位置に置く */
.top-hero__tomato-anchor {
    position: absolute;
    z-index: 2;
    top: 50svh;
    right: clamp(-1rem, 20vw, 25vw);
    width: min(20vw, 25.6rem);
    aspect-ratio: 754 / 756;
    transform: translateY(-50%);
    pointer-events: none;
}

@media (max-width: 767px) {
    .top-hero__tomato-anchor {
        width: min(48vw, 20rem);
        right: -10vw;
        top: 45svh;
    }
}

.top-hero__eyebrow {
    position: relative;
    /* 旅するトマト（z-index:4）より前面に出す */
    z-index: 5;
    margin: 0 0 var(--space-sm);
    color: var(--color-text-inverse);
    font-family: var(--font-serif);
    font-size: var(--text-base);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-align: left;
    /* プリローダー解除時に下から浮き上がるフェードイン（ためあり）*/
    opacity: 0;
    transform: translateY(70px);
    transition: opacity 1100ms ease-out 350ms, transform 1100ms ease-out 350ms;
}

.top-hero__title {
    position: relative;
    /* 旅するトマト（z-index:4）より前面に出す */
    z-index: 5;
    margin-bottom: 20rem;
    color: var(--color-text-inverse);
    font-size: clamp(2.75rem, 5vw, var(--text-hero));
    white-space: nowrap;
    /* 筆で書かれるように左から右へワイプで現れる */
    opacity: 0;
    clip-path: inset(-5% 100% -5% 0);
    transition: opacity 400ms ease-out 650ms, clip-path 1400ms cubic-bezier(0.65, 0, 0.35, 1) 650ms;
}

body.is-fv-revealed .top-hero__eyebrow {
    opacity: 1;
    transform: translateY(0);
}

body.is-fv-revealed .top-hero__title {
    opacity: 1;
    clip-path: inset(-5% 0% -5% 0);
}

/* --- スクロール誘導（FV下部）--- */
.top-hero__scroll-cue {
    position: absolute;
    z-index: 3;
    bottom: 24px;
    left: clamp(3rem, 16.6vw, 20rem);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    opacity: 0;
    transition: opacity 800ms ease 1600ms;
}

body.is-fv-revealed .top-hero__scroll-cue {
    opacity: 1;
}

/* スクロールを始めたら遅延なしですっと消す */
body.is-story-scrolled .top-hero__scroll-cue {
    opacity: 0;
    transition: opacity 300ms ease;
}

/* 伸び縮みする縦ライン */
.top-hero__scroll-cue::before {
    display: block;
    width: 1px;
    height: 3.4rem;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.1));
    content: "";
    animation: scrollCue 2.2s ease-in-out infinite;
    transform-origin: top;
}

@media (max-width: 767px) {
    .top-hero__scroll-cue {
        left: var(--space-md);
    }
}

.top-hero__title img {
    display: block;
    width: clamp(20rem, 55vw, 60rem);
    height: auto;
}

.top-intro__lead,
.top-intro__statement,
.top-intro__future,
.top-intro__note {
    font-size: var(--text-md);
    line-height: 2;
}

.top-intro__statement {
    margin-top: 4rem;
}

.top-intro__project {
    margin-top: 6rem;
    font-size: clamp(1.5rem, 2vw, 1.875rem);
    font-weight: 600;
    line-height: 2.05;
}

.top-intro__future {
    margin-top: 3rem;
}

.top-intro__note {
    margin-top: 3rem;
    font-size: var(--text-xs);
}

.top-hero__tomato {
    position: fixed;
    z-index: 1;
    max-width: none;
    height: auto;
    opacity: 0.8;
    pointer-events: none;
    transform: translate3d(0, 0, 0);
    animation: floatingTomato 7.5s ease-in-out infinite;
    transition: opacity var(--transition-fast);
    will-change: transform;
}

.top-red-story.is-red-story-visible .top-hero__tomato {
    opacity: 0.8;
}

.top-hero__tomato--left {
    top: 12vh;
    left: -3vw;
    width: clamp(14rem, 14vw, 18rem);
    animation-duration: 8.2s;
}

.top-hero__tomato--top {
    top: -0.5rem;
    right: 15vw;
    width: clamp(11rem, 11vw, 14.5rem);
    animation-delay: -2.4s;
    animation-duration: 7.6s;
}

.top-hero__tomato--small {
    top: 46vh;
    right: -4rem;
    width: clamp(8.5rem, 8.5vw, 11rem);
    animation-delay: -4.2s;
    animation-duration: 8.8s;
}

.top-hero__tomato--bottom {
    top: 62vh;
    left: 4.5vw;
    width: clamp(10rem, 9.5vw, 12rem);
    animation-delay: -1.6s;
    animation-duration: 9.2s;
}

.top-hero__tomato--tiny {
    top: 70vh;
    right: 8vw;
    width: clamp(6.5rem, 6.8vw, 8.75rem);
    animation-delay: -3.1s;
    animation-duration: 7.9s;
}

/* 画面下中央やや左：画像の一部が画面下から見える */
.top-hero__tomato--front {
    top: auto;
    bottom: calc(-6rem);
    left: -2vw;
    width: clamp(20rem, 28vw, 32rem);
    animation-delay: -5.5s;
    animation-duration: 8.5s;
}

/* スクロールで画面に入ったときに下から浮き上がるフェードイン（共通）*/
.js-fade-in-up {
    opacity: 0;
    transform: translateY(70px);
    transition: opacity 1100ms ease-out, transform 1100ms ease-out;
}

.js-fade-in-up.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* mottainai タイトルは既存の rotate(-10deg) を保ちつつ fade-in */
.top-mottainai__title.js-fade-in-up {
    transform: translateY(70px) rotate(-10deg);
}

.top-mottainai__title.js-fade-in-up.is-revealed {
    transform: translateY(0) rotate(-10deg);
}

.top-hero__news {
    /* NEWSラベル分(3.5rem)を廃止した分、下の黒帯(progress)と同じ幅になるようカード幅を拡張 */
    --hero-news-card-width: 23.0625rem;
    --hero-news-card-height: 7.2rem;
    --hero-news-progress-height: 3.375rem;
    position: absolute;
    z-index: 5;
    right: 20px;
    top: calc(100svh - 20px - var(--hero-news-card-height) - 1.625rem - var(--hero-news-progress-height));
    display: grid;
    grid-template-columns: var(--hero-news-card-width);
    align-items: end;
}

.top-hero__news-card {
    position: relative;
    display: block;
    height: var(--hero-news-card-height);
    padding: 0.8rem 7.25rem 1rem 2.05rem;
    overflow: visible;
    background: var(--color-text-inverse);
    color: var(--color-primary-dark);
    line-height: 1.45;
    border-radius: var(--radius-md);
    box-shadow: 0 0.45rem 1rem rgba(94, 0, 0, 0.12);
}

.top-hero__news-card::after {
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2.625rem;
    background: var(--color-primary-dark);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    content: "";
}

.top-hero__news-copy {
    position: static;
    display: grid;
    align-content: start;
    line-height: 1.18;
}

.top-hero__news-copy>span,
.top-hero__news-card strong {
    position: relative;
    z-index: 2;
}

.top-hero__news-copy>span {
    font-size: 0.9375rem;
    line-height: 1.2;
}

.top-hero__news-card strong {
    margin-top: 0.15rem;
    /* 「2027年分 先行受付中」に変更後、1.5rem(24px)だと折り返して下の小文字と衝突するため縮小
       （実測: 320px幅で20.5px、デスクトップ固定幅(369px)で22.5pxが1行に収まる上限） */
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    /* 万一折り返す場合も「2027年分」「先行受付中」の間（スペース）でのみ改行させ、
       語の途中（例:「先」と「行受付中」の間）で割れないようにする */
    word-break: keep-all;
}

.top-hero__news-card small {
    position: absolute;
    z-index: 2;
    bottom: 0.95rem;
    left: 2.05rem;
    color: var(--color-text-inverse);
    font-size: var(--text-sm);
    font-weight: 600;
    line-height: 1;
}

.top-hero__news-card small::after {
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    margin-left: 1.15rem;
    border-top: 1px solid currentColor;
    border-right: 1px solid currentColor;
    content: "";
    transform: rotate(45deg) translateY(-0.08rem);
}

.top-hero__news-card img {
    position: absolute;
    z-index: 3;
    right: 1rem;
    bottom: -2rem;
    width: 6rem;
    max-width: none;
    height: auto;
    filter: drop-shadow(0.35rem 0.55rem 0.45rem rgba(0, 0, 0, 0.28));
}

.top-hero__news--progress-only {
    top: calc(100svh - 20px - var(--hero-news-progress-height));
}

.top-hero__news--progress-only .top-hero__progress {
    grid-column: 1 / -1;
    margin-top: 0;
}

.top-hero__progress {
    grid-column: 1 / -1;
    display: block;
    width: 100%;
    min-height: var(--hero-news-progress-height);
    margin-top: 1.625rem;
    margin-left: 0;
    padding: 0.9rem 1.45rem;
    background: var(--color-bg-dark);
    color: var(--color-text-inverse);
    font-size: var(--text-sm);
    line-height: 1.2;
    border-radius: var(--radius-sm);
    text-align: right;
    text-decoration: none;
    white-space: nowrap;
    transition: filter var(--transition-base);
}

@media (hover: hover) {
    .top-hero__progress:hover {
        filter: brightness(1.15);
    }
}

.top-hero__progress strong {
    margin: 0 0.2rem;
    font-size: var(--text-xl);
    line-height: 1;
}

/* タブレット（768-1023px）: PC レイアウトを維持して左右パディングだけ詰める */
@media (min-width: 768px) and (max-width: 1023px) {
    .top-intro {
        padding-left: clamp(2rem, 6vw, 5rem);
        padding-right: clamp(2rem, 6vw, 5rem);
    }
}

/* モバイル（≤767px）のみ：FV/Intro/News を縦並びのフォールバックに */
@media (max-width: 767px) {
    /* SP: FV はタブレットと同じ絶対配置レイアウトを維持。左右パディングと要素サイズは PC の vw ベース clamp が継続適用 */

    .top-intro {
        padding: var(--space-2xl) var(--space-md) var(--space-3xl);
    }

    /* 背景の大型数字を SP 用に縮小 */
    .top-hero__number {
        font-size: clamp(5rem, 44vw, 9rem);
        left: var(--space-sm);
    }

    .top-hero__title,
    .top-hero__eyebrow {
        left: -5vw;
    }

    .top-hero__eyebrow {
        font-size: var(--text-xs);
    }

    /* SVGスローガンは画面幅に収まる範囲で */
    .top-hero__title img {
        width: clamp(14rem, 70vw, 24rem);
    }

    /* 浮遊する小トマト：SP では約1.4倍（基準の2倍×70%）に拡大し、外周にはみ出す配置に */
    .top-hero__tomato--left {
        width: clamp(8.5rem, 25vw, 13rem);
        left: -10vw;
    }

    .top-hero__tomato--top {
        width: clamp(6rem, 17vw, 10rem);
        top: 4vh;
        right: -5vw;
    }

    .top-hero__tomato--small {
        width: clamp(6rem, 17vw, 10rem);
        right: -6rem;
    }

    .top-hero__tomato--bottom {
        width: clamp(6rem, 30vw, 16.5rem);
        left: -8vw;
    }

    .top-hero__tomato--tiny {
        width: clamp(5.5rem, 14vw, 8.5rem);
        right: -5vw;
    }

    .top-hero__tomato--front {
        width: clamp(11rem, 60vw, 20rem);
        left: -15vw;
    }

    /* ニュースカードは絶対配置のまま 80% に縮小（右下基準）。
       .js-fade-in-up の transform と競合するため両クラスを明示してフェードイン後の値も上書き */
    .top-hero__news,
    .top-hero__news.js-fade-in-up.is-revealed {
        transform: scale(0.8);
        transform-origin: right bottom;
    }

    /* カード幅（--hero-news-card-width）は固定remのため、scale(0.8)後の見た目幅が
       viewport幅で変わらずprogressと揃わない。progressと同じ逆算式で幅を可変にする */
    .top-hero__news {
        --hero-news-card-width: calc((100vw - 40px) / 0.8);
    }

    .top-hero__news.js-fade-in-up {
        transform: translateY(70px) scale(0.8);
        transform-origin: right bottom;
    }

    /* 黒バナー（progress）: SP では画面左右 20px 内側に収める
       親 .top-hero__news は scale(0.8) right-bottom かつ right:20px のため、
       右端は親の右端と一致（margin-right:0）、
       幅は視覚 (100vw - 40px) を実現するため逆算で (100vw - 40px) / 0.8 */
    .top-hero__progress {
        justify-self: end;
        width: calc((100vw - 40px) / 0.8);
        margin-right: 0;
        margin-left: 0;
        padding-left: 20px;
        padding-right: 20px;
        text-align: center;
    }

    /* タイポ */
    .top-intro__lead,
    .top-intro__statement,
    .top-intro__future,
    .top-intro__note {
        font-size: var(--text-base);
    }

    .top-intro__project {
        margin-top: var(--space-xl);
        font-size: 1.25rem;
        line-height: 1.85;
    }

    .top-intro__statement {
        margin-top: var(--space-lg);
    }
}

.top-mottainai {
    position: relative;
    z-index: 2;
    margin-top: -5rem;
    padding-top: 0;
    /* 落下中のトマトに滞空時間を与えるための余白 */
    padding-bottom: 70vh;
    background: transparent;
    color: var(--color-text-inverse);
}

.top-mottainai__gallery {
    --slide-gap: 17px;
    width: calc(100vw + 22rem);
    overflow: visible;
    margin-left: max(-14rem, -12vw);
    transform: rotate(-10deg);
    transform-origin: center;
}

.top-mottainai__gallery-track {
    display: flex;
    width: max-content;
    gap: var(--slide-gap);
    animation: mottainaiSlide 56s linear infinite;
    will-change: transform;
}

.top-mottainai__gallery-track img {
    flex: 0 0 auto;
    width: 16rem;
    height: auto;
    aspect-ratio: 22 / 15;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

/* タブレット（768-1023px）: スライダーを 70% に縮小（rotate は維持） */
@media (min-width: 768px) and (max-width: 1023px) {
    .top-mottainai__gallery {
        transform: rotate(-10deg) scale(0.7);
    }
}

@media (max-width: 767px) {
    .top-mottainai {
        /* PC の 70vh は SP では過剰 */
        padding-bottom: 40vh;
    }

    /* SP: タブレットと同じ rotate(-10deg) を維持しつつ、さらに 80% 縮小（合計 0.7 × 0.8 = 0.56） */
    .top-mottainai__gallery {
        transform: rotate(-10deg) scale(0.56);
    }
}

.top-mottainai__title {
    width: min(78rem, 88vw);
    margin-top: var(--space-lg);
    margin-bottom: 0;
    transform: rotate(-10deg);
    transform-origin: center;
}

@media (max-width: 767px) {
    .top-mottainai__title {
        margin-top: 0;
    }
}

.top-mottainai__title img {
    width: 100%;
    max-width: none;
    height: auto;
}

.top-founder {
    margin-top: -1px;
    /* ステージの滞在時間（キャッチ → 4枚のテキストパネル）ぶんのスクロール距離 */
    min-height: 700vh;
    /* .section の左右パディングを打ち消す（intro/content は sticky 基準の絶対配置のため、
       パディングが残ると左位置が 115px 内側にずれる） */
    padding: 0;
    overflow: visible;
    background: transparent;
    color: var(--color-text-secondary);
}

.top-founder__sticky {
    position: sticky;
    top: 0;
    /* sticky の stacking context が auto(0) のままだと
       z-index:1 の .top-hero__tomato に負けるため、明示的に持ち上げる */
    z-index: 2;
    height: 100vh;
    min-height: 42rem;
    padding-top: 0;
    overflow: visible;
    pointer-events: none;
}

.top-founder__intro {
    /* sticky ステージ基準の絶対配置（fixed だとステージ外でも残留するため） */
    position: absolute;
    z-index: 2;
    top: 50%;
    left: clamp(11rem, 31vw, 38rem);
    display: grid;
    place-items: center;
    width: min(22rem, 28vw);
    opacity: var(--founder-intro-opacity, 0);
    transform: translate(-50%, calc(-50% + var(--founder-intro-shift, 1.5rem)));
    will-change: opacity, transform;
}

.top-founder__hello {
    position: relative;
    width: 9.4rem;
    padding-left: 1rem;
    margin-bottom: 1.15rem;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: 0.05em;
}

.top-founder__hello::before,
.top-founder__hello::after {
    position: absolute;
    top: 100%;
    width: 3.2rem;
    height: 0.08rem;
    background: var(--color-text-inverse);
    content: "";
}

.top-founder__hello::before {
    right: 100%;
    transform: rotate(58deg);
    transform-origin: right center;
}

.top-founder__hello::after {
    left: 100%;
    transform: rotate(-58deg);
    transform-origin: left center;
}

.top-founder__portrait {
    width: clamp(12.5rem, 15.6vw, 16.6rem);
    height: clamp(12.5rem, 15.6vw, 16.6rem);
    overflow: hidden;
    border-radius: 50%;
    background: var(--color-bg-primary);
}

.top-founder__portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.top-founder__content {
    /* sticky ステージ基準の絶対配置（fixed だとステージ外でも残留するため） */
    position: absolute;
    z-index: 2;
    top: 50%;
    left: clamp(3rem, 16.6vw, 20rem);
    display: block;
    width: min(58rem, calc(100vw - clamp(3rem, 16.6vw, 20rem) - 3rem));
    transform: translateY(-50%);
}

.top-founder__panel {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(calc(-50% + 1.75rem));
    will-change: opacity, transform;
}

.top-founder__panel--intro {
    opacity: var(--founder-panel-1-opacity, 0);
    transform: translateY(calc(-50% + var(--founder-panel-1-shift, 1.75rem)));
}

.top-founder__panel--body-1 {
    opacity: var(--founder-panel-2-opacity, 0);
    transform: translateY(calc(-50% + var(--founder-panel-2-shift, 1.75rem)));
}

.top-founder__panel--body-2 {
    opacity: var(--founder-panel-3-opacity, 0);
    transform: translateY(calc(-50% + var(--founder-panel-3-shift, 1.75rem)));
}

.top-founder__panel--body-3 {
    opacity: var(--founder-panel-4-opacity, 0);
    transform: translateY(calc(-50% + var(--founder-panel-4-shift, 1.75rem)));
}

.top-founder__label {
    margin-bottom: 2.25rem;
    color: var(--color-text-inverse);
    font-size: 0.8rem;
    line-height: 1;
    text-transform: uppercase;
}

@media (max-width: 767px) {
    .top-founder__label {
        margin-bottom: 1rem;
    }
}

.top-founder__title {
    margin-bottom: 0;
    color: var(--color-text-inverse);
    font-size: 30px;
    line-height: 1.55;
    letter-spacing: 0;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .top-founder__title {
        font-size: var(--text-lg);
    }
}

.top-founder__text {
    color: var(--color-text-inverse);
    text-align: left;
    font-size: var(--text-md);
    line-height: 2.35;
    letter-spacing: 0;
}

@media (max-width: 767px) {
    .top-founder__text {
        font-size: var(--text-base);
    }
}

.top-founder__text p+p {
    margin-top: 0;
}

/* 受け止める手（fixed の位置決めは JS。3フレームを重ねてクロスフェード） */
.top-founder__hands {
    position: fixed;
    z-index: 3;
    right: clamp(-1rem, 10vw, 14rem);
    bottom: 0;
    width: min(40vw, 31rem);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform-origin: center bottom;
    will-change: transform, opacity;
    transition: opacity 300ms ease, visibility 300ms ease;
}

.top-red-story.is-founder-active .top-founder__hands {
    visibility: visible;
    opacity: 1;
}

.top-founder__hands img {
    width: 100%;
    max-width: none;
    height: auto;
}

/* フレーム2・3 は重ねて透明にしておき、キャッチ進行で順にフェードイン。
   各フレームは手の開き・焼き込みトマトの位置が異なるため、
   常に1フレームだけを表示する（重ねると手やトマトが二重に見える） */
.top-founder__hands .js-hand-frame-1 {
    transition: opacity 350ms ease;
}

.top-founder__hands .js-hand-frame-2,
.top-founder__hands .js-hand-frame-3 {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 350ms ease;
}

.top-founder__hands.is-frame-2 .js-hand-frame-1 {
    opacity: 0;
}

.top-founder__hands.is-frame-2 .js-hand-frame-2 {
    opacity: 1;
}

.top-founder__hands.is-frame-3 .js-hand-frame-2 {
    opacity: 0;
}

.top-founder__hands.is-frame-3 .js-hand-frame-3 {
    opacity: 1;
}

.top-eyecatch {
    position: relative;
    z-index: 6;
    width: 100%;
    height: 520px;
    overflow: hidden;
    background: var(--color-bg-primary);
}

.top-eyecatch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* タブレット（768-1023px）: founder の右側テキストパネルと手だけ narrower に。
   intro（portrait + hello）は PC 位置を維持 */
@media (min-width: 768px) and (max-width: 1023px) {
    .top-founder__content {
        left: clamp(2rem, 6vw, 5rem);
        width: min(40rem, calc(100vw - clamp(2rem, 6vw, 5rem) - 3rem));
    }

    /* 手の右パディング（viewport 右端からのオフセット）を半分に */
    .top-founder__hands {
        right: clamp(-0.5rem, 5vw, 7rem);
    }
}

/* SP（≤767px）: アニメーションは表示。要素を画面中央に寄せて、テキストを手の上に重ねる */
@media (max-width: 767px) {

    /* 落下トマト(z:4)・手(z:3) より上にテキスト・ポートレートを出すため sticky の z-index を持ち上げる */
    .top-founder__sticky {
        z-index: 5;
    }

    /* 手は画面中央配置（PC は右側 right: clamp(...)）。
       bottom と transform（translateX(50%) + scale）は JS が制御する */
    .top-founder__hands {
        right: 50%;
        width: min(67vw, 25rem);
    }

    /* intro（portrait + hello）も画面中央へ */
    .top-founder__intro {
        left: 50%;
        width: min(20rem, 80vw);
    }

    /* テキストパネルは画面中央寄せ。天地センターではなく、上から 20svh の位置に揃える */
    .top-founder__content {
        top: 20svh;
        left: 50%;
        transform: translateX(-50%);
        width: min(22rem, 86vw);
    }

    /* SP では body-1/2/3 を content 上端基準（top: 0）にして、シフト値だけアニメで使う */
    .top-founder__panel {
        top: 0;
        text-align: center;
    }

    /* --intro だけは天地センター維持。
       content が top: 20svh のため、viewport 中央 50svh まで届くよう +30svh オフセット */
    .top-founder__panel--intro {
        top: 30svh;
        transform: translateY(calc(-50% + var(--founder-panel-1-shift, 1.75rem)));
    }

    .top-founder__panel--body-1 {
        transform: translateY(var(--founder-panel-2-shift, 1.75rem));
    }

    .top-founder__panel--body-2 {
        transform: translateY(var(--founder-panel-3-shift, 1.75rem));
    }

    .top-founder__panel--body-3 {
        transform: translateY(var(--founder-panel-4-shift, 1.75rem));
    }

    /* body-1/2/3 は .top-founder__panel と同要素のため、ここで text-align を上書き */
    .top-founder__text {
        text-align: justify;
    }
}

.top-dashboard {
    position: relative;
    /* fixed配置の .top-founder__hands（z-index:3）の上にダッシュボード背景を被せる */
    z-index: 6;
    display: grid;
    grid-template-columns: 9.5rem minmax(0, 1fr);
    column-gap: 4.5rem;
    align-items: start;
    width: min(100% - 3rem, 1200px);
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
    padding-inline: 40px;
    background: transparent;
}

.top-dashboard::before {
    position: absolute;
    z-index: 0;
    inset: 0 calc(50% - 50vw);
    background: var(--color-bg-primary);
    content: "";
    pointer-events: none;
}

/* テクスチャも背景同様に左右いっぱいまで広げる（dashboard は max-width: 1200px で中央寄せのため、デフォルトの inset:0 では左右マージンが空く）*/
.top-dashboard::after {
    inset: 0 calc(50% - 50vw);
}

.top-dashboard>* {
    position: relative;
    z-index: 1;
}

.top-dashboard>.section-side-title {
    position: relative;
    top: auto;
    left: auto;
    justify-self: start;
    align-self: start;
    margin-top: 0.35rem;
}

.top-dashboard__inner {
    justify-self: end;
    width: 100%;
    max-width: 800px;
    margin-right: 0;
    margin-left: auto;
}

.top-dashboard__title {
    margin-bottom: 20px;
    font-size: clamp(1.4rem, 2.2vw, 2.6rem);
    line-height: 1.78;
}

.top-dashboard__intro {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 13.2rem;
    align-items: center;
    gap: 2.6rem;
    min-height: 10.8rem;
    padding-bottom: 1.55rem;
    border-bottom: 1px solid var(--color-primary);
}

.top-dashboard__lead {
    max-width: 33rem;
    text-align: left;
    color: var(--color-text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 2.05;
}

@media (max-width: 767px) {
    .top-dashboard__lead {
        font-size: var(--text-base);
        text-align: justify;
    }
}

.top-dashboard__person {
    align-self: end;
    justify-self: center;
    width: 13rem;
    max-width: none;
    height: auto;
    margin-bottom: -1.55rem;
}

.top-dashboard__date {
    margin-top: 2.55rem;
    margin-bottom: 2.05rem;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
}

.top-dashboard__target {
    display: grid;
    place-items: center;
    min-height: 12.6rem;
    margin-bottom: 1.15rem;
    padding: var(--space-md);
    overflow: hidden;
    background: linear-gradient(rgba(149, 0, 0, 0.2), rgba(149, 0, 0, 0.2)), url("images/img_100t.jpg") center / cover;
    color: var(--color-text-inverse);
    border-radius: var(--radius-md);
}

.top-dashboard__target p,
.top-dashboard__target span {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
}

.top-dashboard__target strong {
    margin: 0.3rem 0;
    font-size: clamp(4.5rem, 7vw, 6.35rem);
    line-height: 1;
}

.top-dashboard__meter {
    position: relative;
    margin-bottom: 3.55rem;
    padding: 3.1rem 4rem 2.95rem;
    background: var(--color-surface);
    border-radius: var(--radius-md);
    text-align: center;
}

.top-dashboard__meter p {
    margin-bottom: var(--space-sm);
    font-size: 1.2rem;
    font-weight: 600;
}

.top-dashboard__meter strong {
    display: block;
    margin-bottom: var(--space-md);
    font-size: clamp(4rem, 6vw, 5.25rem);
    line-height: 1;
}

.top-dashboard__percent {
    position: absolute;
    top: -0.4rem;
    right: -1rem;
    display: grid;
    /* 行（達成率 + 数字）全体を丸の天地センターに */
    place-content: center;
    justify-items: center;
    row-gap: 0.05rem;
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-text-inverse);
    font-size: 1.6rem;
    /* js-countup が textContent を上書きするため「達成率」は ::before で表示 */
    text-align: center;
    line-height: 1.1;
}

.top-dashboard__percent::before {
    content: "達成率";
    display: block;
    font-size: var(--text-base);
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1;
    margin-bottom: 3px;
}

.meter {
    position: relative;
    width: min(100%, 40rem);
    height: 1rem;
    margin-right: auto;
    margin-left: auto;
    background: #dedede;
}

/* スタート位置の縦線（バー左端から上下に少しはみ出す） */
.meter::before {
    position: absolute;
    top: -0.5rem;
    bottom: -0.5rem;
    left: 0;
    width: 2px;
    background: var(--color-primary);
    content: "";
}

/* 終端上部の GOAL ラベル */
.meter::after {
    position: absolute;
    right: 0;
    bottom: calc(100% + 0.35rem);
    font-family: var(--font-serif);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--color-primary);
    content: "GOAL";
}

.meter__bar {
    display: block;
    width: 0;
    height: 100%;
    background: var(--color-primary);
}

.top-dashboard__breakdown-title {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2.2rem;
    margin-bottom: 1.6rem;
    color: var(--color-text-primary);
    text-align: center;
    font-size: var(--text-base);
    font-weight: 600;
    line-height: 1;
}

.top-dashboard__breakdown-title::before,
.top-dashboard__breakdown-title::after {
    height: 1px;
    background: var(--color-primary);
    content: "";
}

.top-dashboard__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.4rem;
}

.top-dashboard-card {
    display: grid;
    place-items: center;
    min-height: 24rem;
    padding: 3rem var(--space-lg);
    background: var(--color-surface);
    border-radius: var(--radius-md);
    text-align: center;
}

.top-dashboard-card img {
    width: 9.8rem;
    height: 9.8rem;
    border-radius: 50%;
    object-fit: cover;
}

.top-dashboard-card h3 {
    margin-top: var(--space-md);
    margin-bottom: var(--space-xs);
    font-size: 1.2rem;
    font-weight: 600;
}

.top-dashboard-card p {
    font-size: clamp(4rem, 6vw, 5rem);
    line-height: 1;
}

.top-dashboard-info {
    margin-top: 4.25rem;
    padding: 4.35rem 4rem 4.25rem;
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-md);
}

.top-dashboard-info__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 12rem;
    align-items: center;
    gap: 2rem;
}

.top-dashboard-info__title {
    margin-bottom: 1.85rem;
    color: var(--color-text-primary);
    font-size: 1.22rem;
    line-height: 1.7;
    letter-spacing: 0.03em;
}

.top-dashboard-info p {
    color: var(--color-text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 2.45;
    letter-spacing: 0.04em;
    text-align: justify;
}

.top-dashboard-info img {
    width: 12rem;
    height: auto;
    border-radius: 50%;
    object-fit: cover;
}

.top-dashboard-history {
    margin-top: 4.25rem;
}

.top-dashboard-history__title {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2.2rem;
    margin-bottom: 1.1rem;
    color: var(--color-text-primary);
    text-align: center;
    font-size: var(--text-base);
    font-weight: 600;
    line-height: 1;
}

.top-dashboard-history__title::before,
.top-dashboard-history__title::after {
    height: 1px;
    background: var(--color-primary);
    content: "";
}

.top-dashboard-history__lead {
    margin-bottom: 1.8rem;
    color: var(--color-text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.9;
    text-align: center;
}

.top-dashboard-history__body {
    display: grid;
    grid-template-columns: 12.5rem minmax(0, 1fr);
    align-items: center;
    gap: 2.4rem;
    padding: 2.6rem 2.8rem;
    background: var(--color-surface);
    border-radius: var(--radius-md);
}

.top-dashboard-history__total {
    text-align: center;
}

.top-dashboard-history__total p {
    margin-bottom: var(--space-sm);
    font-size: 1.05rem;
    font-weight: 600;
}

.top-dashboard-history__total strong {
    display: block;
    font-size: clamp(2.6rem, 4.4vw, 3.4rem);
    line-height: 1;
    color: var(--color-primary);
}

.top-dashboard-history__chart {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: center;
    gap: 1.6rem;
}

.top-dashboard-history__bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 4.4rem;
}

.top-dashboard-history__bar-value {
    margin-bottom: 0.6rem;
    color: var(--color-text-primary);
    font-size: 0.95rem;
    font-weight: 600;
}

.top-dashboard-history__bar-track {
    /* flexコンテナの子要素に高さ%指定すると一部ブラウザ（Safari/SP実機）で解決されないため、
       flexは使わずposition:relative + 子要素position:absoluteで高さ%を確実に解決させる */
    position: relative;
    width: 1.6rem;
    height: 11rem;
    background: var(--color-bg-soft);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.top-dashboard-history__bar-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 0;
    background: var(--color-primary);
}

.top-dashboard-history__bar-label {
    margin-top: 0.7rem;
    color: var(--color-text-primary);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
}

.top-dashboard-history__bar-label small {
    display: block;
    font-size: 0.66rem;
    font-weight: 500;
    opacity: 0.7;
}

.top-dashboard-record {
    grid-column: 1 / -1;
    margin-top: 9.75rem;
}

.top-dashboard-record__title {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-bottom: 5.05rem;
    color: var(--color-text-primary);
    text-align: center;
    font-size: clamp(1.6rem, 3.4vw, 3.35rem);
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: 0.04em;
}


.top-dashboard-record__archive-link {
    width: 100vw;
    margin: 2rem 0 0 calc(50% - 50vw);
    text-align: center;
    font-size: 14px;
    line-height: 1.6;
}

.top-dashboard-record__archive-link a {
    color: var(--color-text-primary);
    text-decoration: underline;
    text-underline-offset: 0.25em;
}

.top-dashboard-record__slider {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    overflow: visible;
}

.top-dashboard-record__track {
    display: flex;
    width: max-content;
    gap: 1.65rem;
    animation: dashboardRecordSlide 24s ease-in-out infinite;
    will-change: transform;
}

.top-dashboard-record-card {
    position: relative;
    flex: 0 0 18.9rem;
    color: var(--color-text-primary);
}

.top-dashboard-record-card time {
    position: absolute;
    z-index: 2;
    top: -8px;
    left: -8px;
    min-width: 6.45rem;
    padding: 0.32rem 0.8rem;
    background: var(--color-primary);
    color: var(--color-text-inverse);
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 0.94rem;
    line-height: 1;
}

.top-dashboard-record-card img {
    width: 100%;
    aspect-ratio: 3 / 2;
    height: auto;
    border-radius: var(--radius-sm);
    background: var(--color-image-placeholder);
    object-fit: cover;
}

.top-dashboard-record-card p {
    margin-top: 1.28rem;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.65;
    letter-spacing: 0.04em;
}

.top-dashboard-record-card__title,
.top-dashboard-record-card__amount {
    display: block;
    font-weight: 600;
}

.top-dashboard-record-card__amount {
    margin-top: 0;
}

@media (max-width: 767px) {
    .top-dashboard-record-card {
        flex: 0 0 240px;
    }

    /* SP では中央表示のカードを画面中央に配置するため SP 専用キーフレームに差し替え */
    .top-dashboard-record__track {
        animation-name: dashboardRecordSlideSp;
    }
}

/* タブレットは PC と同じ grid 表示を維持。block 化と 5vw パディングは SP のみで適用 */
@media (max-width: 767px) {
    .top-dashboard {
        display: block;
        width: 100%;
        padding-right: 5vw;
        padding-left: 5vw;
    }

    .top-dashboard>.section-side-title {
        position: relative;
        top: auto;
        margin-bottom: var(--space-lg);
    }

    .top-dashboard__inner {
        margin-right: auto;
        margin-left: auto;
    }
}

/* タブレットでは grid のままで column-gap を 0、padding-inline を 20px に詰める */
@media (min-width: 768px) and (max-width: 1023px) {
    .top-dashboard {
        grid-template-columns: 8.5rem minmax(0, 1fr);
        column-gap: 0;
        padding-inline: 20px;
    }
}

@media (max-width: 767px) {

    .top-dashboard__intro,
    .top-dashboard-info__body {
        grid-template-columns: 1fr;
    }

    .top-dashboard__person,
    .top-dashboard-info img {
        justify-self: center;
    }

    .top-dashboard__grid {
        grid-template-columns: 1fr;
    }

    .top-dashboard__percent {
        right: -1rem;
        width: 6rem;
        height: 6rem;
        font-size: 1.2rem;
    }

    .top-dashboard__meter {
        padding: var(--space-xl) var(--space-md);
    }

    .top-dashboard-info {
        margin-top: var(--space-2xl);
        padding: var(--space-xl) var(--space-md);
    }

    .top-dashboard-history {
        margin-top: var(--space-2xl);
    }

    .top-dashboard-history__lead {
        text-align: justify;
    }

    .top-dashboard-history__body {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        padding: var(--space-xl) var(--space-md);
    }

    .top-dashboard-history__chart {
        gap: 1.1rem;
    }

    .top-dashboard-history__bar {
        width: 3.6rem;
    }

    .top-dashboard__breakdown-title {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
        text-align: center;
    }

    .top-dashboard__breakdown-title::before,
    .top-dashboard__breakdown-title::after {
        display: none;
    }
}

.top-products {
    position: relative;
    background: transparent;
    color: var(--color-text-inverse);
    padding-inline: 40px;
}

.top-products::before {
    content: none;
}

.top-products__container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 9.5rem minmax(0, 1fr);
    column-gap: 4.5rem;
    align-items: start;
    width: min(100% - 3rem, 1200px);
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
}

.top-products__container>.section-side-title {
    position: relative;
    top: auto;
    left: auto;
    justify-self: start;
    align-self: start;
    margin-top: 0.35rem;
}

.top-products__inner {
    justify-self: end;
    width: 100%;
    max-width: 800px;
    margin-right: 0;
    margin-left: auto;
}

.top-products__title {
    margin-bottom: 3.2rem;
    color: var(--color-text-inverse);
    font-size: clamp(1.4rem, 3.25vw, 3rem);
    line-height: 1.75;
}

.top-products__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 3.5rem;
    column-gap: 2.5rem;
}

@media (max-width: 767px) {
    .top-products__grid {
        grid-template-columns: 1fr;
    }
}

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

.product-card__image-link {
    display: block;
}

.product-card__image {
    display: block;
    aspect-ratio: 630 / 450;
    margin-bottom: 1.65rem;
    border-radius: var(--radius-md);
    background-position: center;
    background-size: cover;
}

.product-card__image--juice {
    background-image: url("images/img_products-opusnos.jpg");
}

.product-card__image--box {
    background-image: url("images/img_products-teikibin.jpg");
}

.product-card h3 {
    margin-bottom: 0.75rem;
    color: var(--color-text-inverse);
    font-size: 1.45rem;
    line-height: 1.45;
}

.product-card p {
    margin-bottom: 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.8;
}

@media (max-width: 767px) {
    .product-card p {
        margin-bottom: 1rem;
    }
}

.product-card .btn {
    width: 100%;
    min-height: 4.25rem;
    font-weight: 600;
}

/* タブレットでは .btn の min-width:22rem が親より広くなるため打ち消す */
@media (min-width: 768px) and (max-width: 1023px) {
    .product-card .btn {
        min-width: 0;
    }
}

.product-card .btn::after {
    content: none;
}

.product-card .btn img {
    width: 1rem;
    height: 1rem;
    margin-left: auto;
}

@media (max-width: 767px) {
    .top-products__grid {
        grid-template-columns: 1fr;
        gap: 5rem;
    }
}

.top-news {
    position: relative;
    z-index: 2;
    background: var(--color-bg-primary);
    padding-inline: 40px;
}

.top-news__container {
    display: grid;
    grid-template-columns: 9.5rem minmax(0, 1fr);
    column-gap: 4.5rem;
    align-items: start;
    width: min(100% - 3rem, 1200px);
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
}

.top-news__container>.section-side-title {
    position: relative;
    top: auto;
    left: auto;
    justify-self: start;
    align-self: start;
    margin-top: 0.35rem;
}

.top-news__inner {
    justify-self: end;
    width: 100%;
    max-width: 800px;
    margin-right: 0;
    margin-left: auto;
}

.top-news__title {
    margin-bottom: 2.7rem;
    font-size: clamp(1.4rem, 3.25vw, 3rem);
    line-height: 1.75;
}

.news-list {
    margin: 0;
}

/* --- ニュースカード（共通）---
   トップページの news-list と news/index.html の news-archive__list で同一構造を共用する */
.news-card {
    display: grid;
    grid-template-columns: 8.5rem 7.5rem 1fr;
    gap: 1.4rem;
    align-items: baseline;
    padding: 20px 0 6px;
    border-bottom: 1px solid var(--color-line);
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--color-text-primary);
}

.news-card:first-child {
    border-top: 1px solid var(--color-line);
}

.news-card__category {
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.04em;
}

.news-card__date {
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    letter-spacing: 0.04em;
    opacity: 0.75;
}

.news-card__title {
    font-weight: 600;
}

.news-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

@media (hover: hover) {
    .news-card__title a:hover {
        color: var(--color-primary);
    }
}

.top-news__button {
    margin-top: 2.4rem;
}

.top-news__button::after {
    content: none;
}

.top-news__button img {
    width: 1rem;
    height: 1rem;
    margin-left: auto;
}

@media (max-width: 767px) {
    .news-card {
        grid-template-columns: 1fr;
        gap: var(--space-xs);
    }
}

/* ----------------------------------------
   Products / News のレスポンシブ調整
   ※ container の base 定義よりも後にこの @media を置くこと。
     さもないと source order により grid が SP/tablet でも有効になる
   ---------------------------------------- */
/* タブレットは PC と同じ grid 表示を維持。block 化と 5vw パディングは SP のみで適用 */
@media (max-width: 767px) {

    .top-products__container,
    .top-news__container {
        display: block;
        width: 100%;
        padding-right: 5vw;
        padding-left: 5vw;
    }

    .top-products__container>.section-side-title,
    .top-news__container>.section-side-title {
        position: relative;
        top: auto;
        margin-bottom: var(--space-lg);
    }

    .top-products__inner,
    .top-news__inner {
        margin-right: auto;
        margin-left: auto;
    }
}

/* タブレットでは grid のままで column-gap を 0、padding-inline を 20px に詰める */
@media (min-width: 768px) and (max-width: 1023px) {

    .top-products__container,
    .top-news__container {
        column-gap: 0;
    }

    .top-products,
    .top-news {
        padding-inline: 20px;
    }
}

@media (max-width: 767px) {

    /* Products 以降のセクションも dashboard と同じ L/R 5vw に揃える */
    .top-products,
    .top-news,
    .top-support,
    .top-faq {
        padding-right: 5vw;
        padding-left: 5vw;
    }

    .top-products__container,
    .top-news__container {
        padding-right: 0;
        padding-left: 0;
    }

    .top-products__inner,
    .top-news__inner {
        max-width: none;
        width: 100%;
        margin-right: 0;
        margin-left: 0;
    }
}

.top-support {
    position: relative;
    background: transparent;
    color: var(--color-text-inverse);
    text-align: center;
}

.top-support::before {
    content: none;
}

.top-support__inner {
    position: relative;
    z-index: 2;
    max-width: 58rem;
    margin-right: auto;
    margin-left: auto;
}

.top-support__label {
    margin-bottom: var(--space-sm);
    font-size: var(--text-sm);
    text-transform: uppercase;
}

.top-support__title {
    margin-left: 50px;
    margin-bottom: var(--space-md);
    color: var(--color-text-inverse);
    font-size: clamp(1.8rem, 4vw, 4.5rem);
}

@media (max-width: 767px) {
    .top-support__title {
        /* SP では微オフセットを解除して中央寄せに */
        margin-left: 0;
    }
}

.top-support__text {
    max-width: 38rem;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

@media (max-width: 767px) {
    .top-support__text {
        text-align: justify;
    }
}

.support-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

@media (max-width: 767px) {
    .support-card-grid {
        grid-template-columns: 1fr;
    }
}

.support-card {
    display: grid;
    place-items: center;
    min-height: 16rem;
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    color: var(--color-primary-dark);
    transition: background-color var(--transition-base), box-shadow var(--transition-base);
}

@media (hover: hover) {
    .support-card:hover {
        background: var(--color-cream);
        box-shadow: 0 0.75rem 1.75rem rgba(0, 0, 0, 0.12);
    }
}

.support-card__icon {
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: var(--space-sm);
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-text-inverse);
}

.support-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.support-card small {
    font-family: var(--font-sans);
    font-weight: 700;
}

.support-card strong {
    margin-top: var(--space-sm);
    font-size: var(--text-lg);
}

.top-support__instagram {
    margin-top: var(--space-xl);
    font-size: var(--text-sm);
}

.top-support__instagram-link {
    display: inline-grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-top: var(--space-sm);
    font-family: var(--font-sans);
    font-weight: 700;
}

.top-support__instagram-link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 767px) {
    .support-card-grid {
        grid-template-columns: 1fr;
    }
}

.top-faq {
    position: relative;
    z-index: 2;
    background: var(--color-bg-primary);
    text-align: center;
}

/* 直下の要素を positioned にして、テクスチャ ::before の上に重なるようにする */
.top-faq>* {
    position: relative;
}

.faq-title {
    margin-bottom: 0;
    font-size: var(--text-4xl);
    line-height: 1;
}

.faq-sub {
    margin-bottom: var(--space-lg);
    font-size: var(--text-sm);
}


.faq-list {
    max-width: 60rem;
    margin-right: auto;
    margin-left: auto;
    text-align: left;
}

.faq-item {
    margin-bottom: var(--space-sm);
    background: var(--color-surface);
}

.faq-item__question {
    display: grid;
    grid-template-columns: 3.8rem 1fr 2rem;
    align-items: center;
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    text-align: left;
}

.faq-item__question span,
.faq-item__answer span {
    font-size: var(--text-2xl);
    font-style: normal;
    font-weight: 600;
    line-height: 1;
}

@media (max-width: 767px) {
    .faq-title {
        font-size: var(--text-3xl);
    }

    .faq-item__question {
        grid-template-columns: 2rem 3fr 1.5rem;
        padding: var(--space-sm) var(--space-md);
    }

    .faq-item__question span,
    .faq-item__answer span {
        font-size: 1.2rem;
    }

    .faq-item.is-open .faq-item__answer-inner {
        padding: var(--space-sm) var(--space-md);
        align-items: center;
    }

    .faq-item__answer-inner {
        grid-template-columns: 2.5rem 1fr;
    }
}



.faq-item__question strong {
    font-size: var(--text-md);
    line-height: 1.45;
}

@media (max-width: 767px) {
    .faq-item__question strong {
        font-size: var(--text-base);
    }
}

.faq-item__question em {
    position: relative;
    display: block;
    width: 20px;
    height: 20px;
    font-style: normal;
    text-align: right;
}

.faq-item__question em::before,
.faq-item__question em::after {
    position: absolute;
    top: 50%;
    left: 100%;
    width: 16px;
    height: 2px;
    background: currentColor;
    content: "";
    transform: translate(-50%, -50%);
    transition: transform var(--transition-base), opacity var(--transition-base);
}

.faq-item__question em::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item.is-open .faq-item__question em::after {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(0deg);
}

.faq-item__answer {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    overflow: hidden;
    visibility: hidden;
    transition: grid-template-rows var(--transition-base), opacity var(--transition-base), visibility var(--transition-base);
}

.faq-item.is-open .faq-item__answer {
    grid-template-rows: 1fr;
    opacity: 1;
    visibility: visible;
}

.faq-item__answer-inner {
    display: grid;
    grid-template-columns: 3.8rem 1fr;
    min-height: 0;
    padding: 0 var(--space-lg);
    overflow: hidden;
    background: var(--color-cream);
    transition: padding var(--transition-base);
}

@media (max-width: 767px) {
    .faq-item__answer-inner {
        grid-template-columns: 1.8rem 3.5fr;
    }
}

.faq-item.is-open .faq-item__answer-inner {
    padding: var(--space-sm) var(--space-md);
}

.faq-item__answer p {
    font-size: 15px;
    line-height: 1.8;
    margin-top: 6px;
}

/* ========================================
   9. Animations & Keyframes
   - スクロール連動演出は main.js でコマ割り制御
   ======================================== */
/* FVのスクロール誘導ライン */
@keyframes scrollCue {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

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

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

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

@keyframes floatingTomato {

    0%,
    100% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }

    33% {
        transform: translate3d(0.45rem, -0.6rem, 0) rotate(1.2deg);
    }

    66% {
        transform: translate3d(-0.35rem, 0.45rem, 0) rotate(-0.9deg);
    }
}

@keyframes mottainaiSlide {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

@keyframes dashboardRecordSlide {

    0%,
    10% {
        transform: translate3d(0, 0, 0);
    }

    16%,
    26% {
        transform: translate3d(calc(-1 * (18.9rem + 1.65rem)), 0, 0);
    }

    32%,
    42% {
        transform: translate3d(calc(-2 * (18.9rem + 1.65rem)), 0, 0);
    }

    48%,
    58% {
        transform: translate3d(calc(-3 * (18.9rem + 1.65rem)), 0, 0);
    }

    64%,
    74% {
        transform: translate3d(calc(-4 * (18.9rem + 1.65rem)), 0, 0);
    }

    80%,
    90% {
        transform: translate3d(calc(-5 * (18.9rem + 1.65rem)), 0, 0);
    }

    96%,
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* SP 専用：カード幅 15rem(240px) + gap 1.65rem = step 16.65rem
   中央寄せオフセット = 50vw - 7.5rem（カード半分） */
@keyframes dashboardRecordSlideSp {

    0%,
    10% {
        transform: translate3d(calc(50vw - 7.5rem), 0, 0);
    }

    16%,
    26% {
        transform: translate3d(calc(50vw - 7.5rem - 16.65rem), 0, 0);
    }

    32%,
    42% {
        transform: translate3d(calc(50vw - 7.5rem - 33.3rem), 0, 0);
    }

    48%,
    58% {
        transform: translate3d(calc(50vw - 7.5rem - 49.95rem), 0, 0);
    }

    64%,
    74% {
        transform: translate3d(calc(50vw - 7.5rem - 66.6rem), 0, 0);
    }

    80%,
    90% {
        transform: translate3d(calc(50vw - 7.5rem - 83.25rem), 0, 0);
    }

    96%,
    100% {
        transform: translate3d(calc(50vw - 7.5rem - 99.9rem), 0, 0);
    }
}

/* ========================================
   9.5 Reduced Motion（演出を使わない静的表示）
   - OS設定 prefers-reduced-motion 時に JS が body.no-motion を付与して発動
   ======================================== */
body.no-motion .top-red-story__journey-tomato,
body.no-motion .top-hero__scroll-cue {
    display: none;
}

body.no-motion .preloader {
    display: none;
}

body.no-motion .top-hero__eyebrow,
body.no-motion .top-hero__title {
    opacity: 1;
    transform: none;
    clip-path: none;
    transition: none;
}

/* FVにトマトを静止表示（アンカー自体に画像はないため背景で代替） */
body.no-motion .top-hero__tomato-anchor {
    background: url("images/fv-main-tomato.png") center / contain no-repeat;
}

body.no-motion .js-fade-in-up {
    opacity: 1;
    transform: none;
    transition: none;
}

body.no-motion .top-mottainai__gallery-track,
body.no-motion .top-dashboard-record__track,
body.no-motion .top-hero__tomato {
    animation: none;
}

/* 代表紹介は固定ステージをやめて通常フローで全文表示 */
body.no-motion .top-founder {
    min-height: 0;
    padding: var(--space-3xl) clamp(3rem, 16.6vw, 20rem);
}

body.no-motion .top-founder__sticky {
    position: static;
    height: auto;
    min-height: 0;
    pointer-events: auto;
}

body.no-motion .top-founder__intro {
    position: static;
    opacity: 1;
    transform: none;
    margin-bottom: var(--space-xl);
}

body.no-motion .top-founder__content {
    position: static;
    transform: none;
    width: auto;
    max-width: 58rem;
}

body.no-motion .top-founder__panel {
    position: static;
    opacity: 1;
    transform: none;
    margin-bottom: var(--space-lg);
}

body.no-motion .top-founder__hands {
    position: static;
    visibility: visible;
    opacity: 1;
    margin: var(--space-xl) auto 0;
}

body.no-motion .top-founder__hands .js-hand-frame-3 {
    position: static;
    opacity: 1;
}

body.no-motion .top-founder__hands .js-hand-frame-1,
body.no-motion .top-founder__hands .js-hand-frame-2 {
    display: none;
}

/* ========================================
   10. OpusNos8246 Page
   - OpusNos8246 下層ページ専用スタイル
   ======================================== */
.page-opusnos {
    background: var(--color-bg-primary);
}

.page-opusnos .header {
    padding: 1.7rem 1.85rem;
}

.page-opusnos .header.is-scrolled {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.page-opusnos .header__logo {
    width: 5rem;
}

.page-opusnos .header__nav {
    gap: 2.75rem;
    padding-top: 0.15rem;
    font-size: var(--text-base);
}

.page-opusnos .header__icon-link {
    width: 1.7rem;
    height: 1.7rem;
}

.page-opusnos .menu-button {
    width: 80px;
    height: 80px;
    margin-top: 0;
    margin-right: 0;
}

.opus-hero {
    position: relative;
    z-index: 2;
    isolation: isolate;
    min-height: 100vh;
    padding: 0;
    overflow: hidden;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.04)), url("images/img_opusnos-main.jpg") center center / cover;
    color: var(--color-text-inverse);
}

.opus-hero__content {
    position: absolute;
    z-index: 1;
    top: clamp(14rem, 18.9vw, 18rem);
    left: clamp(8rem, 10vw, 10rem);
    width: 25rem;
    max-width: calc(100vw - 3rem);
    padding-top: 0;
}

.opus-hero__label {
    margin-bottom: 3.25rem;
    font-size: 1.25rem;
    line-height: 1.5;
}

.opus-hero__title {
    margin-bottom: 1.25rem;
    font-size: 2rem;
    line-height: 1.55;
    letter-spacing: 0;
    white-space: nowrap;
}

.opus-hero__logo {
    position: absolute;
    top: clamp(13.5rem, 16vw, 15.2rem);
    right: clamp(12rem, 16.7vw, 15.7rem);
    bottom: auto;
    width: min(15rem, 18vw);
    max-width: none;
}

.opus-button {
    display: inline-grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0;
    width: 22.5rem;
    max-width: 100%;
    min-height: 5rem;
    padding: 1rem 2.15rem;
    border-radius: var(--radius-sm);
    color: var(--color-text-inverse);
    font-size: 1.1rem;
    line-height: 1.4;
    transition: filter var(--transition-base);
}

.opus-button small {
    grid-column: 1 / -1;
    font-size: var(--text-xs);
    letter-spacing: 0.08em;
}

.opus-button span {
    font-size: inherit;
}

.opus-button img {
    width: 1.15rem;
    height: 1.15rem;
    object-fit: contain;
}

.opus-button--red {
    background: var(--color-primary-dark);
}

.opus-button--green {
    background: var(--color-brand-green);
}

.opus-button--wide {
    width: 100%;
    min-height: 7.4rem;
    padding-right: 3rem;
    padding-left: 3rem;
    text-align: center;
}

.opus-button__line {
    width: 3rem;
    height: 3rem;
    margin-right: var(--space-sm);
}

@media (hover: hover) {
    .opus-button:hover {
        filter: brightness(1.18);
    }
}

.opus-story {
    position: relative;
    padding: 8rem clamp(1.5rem, 8vw, 10rem) 10rem;
    background: var(--color-bg-primary);
    color: var(--color-primary-dark);
}

.opus-story__inner {
    position: relative;
    max-width: 75rem;
    margin-right: auto;
    margin-left: auto;
}

.opus-section-heading {
    display: grid;
    place-items: center;
    margin-bottom: 5.1rem;
    text-align: center;
}

.opus-section-heading img {
    width: 3.95rem;
    margin-bottom: 1rem;
}

@media (max-width: 767px) {
    .opus-section-heading img {
        width: 2.2rem;
        margin-bottom: 0.2rem;
    }
}

.opus-section-heading p {
    position: relative;
    display: inline-block;
    padding-right: 4.8rem;
    padding-left: 4.8rem;
    font-size: var(--text-md);
    letter-spacing: 0.12em;
    line-height: 1.35;
}

.opus-section-heading p::before,
.opus-section-heading p::after {
    position: absolute;
    top: -80%;
    width: 1px;
    height: 7.5rem;
    background: currentColor;
    content: "";
    transform: translateY(-50%);
}

.opus-section-heading p::before {
    left: 0;
}

.opus-section-heading p::after {
    right: 0;
}

.opus-story__floating {
    position: absolute;
    z-index: 0;
    top: 4.4rem;
    left: -27rem;
    width: 64rem;
    opacity: 0.17;
    mix-blend-mode: multiply;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(90deg, var(--color-bg-dark) 0%, rgba(0, 0, 0, 0.82) 52%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(90deg, var(--color-bg-dark) 0%, rgba(0, 0, 0, 0.82) 52%, rgba(0, 0, 0, 0) 100%);
}

.opus-story__copy {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    margin-bottom: 3.7rem;
}

.opus-story__copy img {
    width: min(39.5rem, 82vw);
}

.opus-story__lead {
    position: relative;
    z-index: 1;
    max-width: 48rem;
    margin-right: auto;
    margin-bottom: 3.8rem;
    margin-left: auto;
    text-align: center;
    font-size: var(--text-md);
    font-weight: 600;
    line-height: 2.25;
    letter-spacing: 0.04em;
}

.opus-story__lead p+p {
    margin-top: 3.2rem;
}

.opus-story__note {
    position: relative;
    z-index: 1;
    margin-bottom: 5.9rem;
    text-align: center;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.opus-story__card {
    margin: 0 auto clamp(6rem, 10vw, 10rem);
    text-align: center;
}

.opus-story__card>img {
    width: min(30rem, 72vw);
    margin-right: auto;
    margin-left: auto;
    border-radius: var(--radius-md);
}

.opus-story__card figcaption img {
    width: min(32rem, 72vw);
    margin: -2.5rem auto 0;
    filter: invert(17%) sepia(81%) saturate(3277%) hue-rotate(354deg) brightness(74%) contrast(111%);
}

.opus-story__text {
    max-width: 62.5rem;
    margin: 0 auto 4rem;
    text-align: center;
}

.opus-story__text h3 {
    margin-bottom: 3.3rem;
    font-size: var(--text-xl);
    line-height: 1.8;
    letter-spacing: 0.06em;
}

.opus-story__text .text-body-sm {
    text-align: center;
    font-size: var(--text-md);
}

.opus-story__text .text-body-sm p+p {
    margin-top: clamp(2.7rem, 4.1vw, 4rem);
}

.opus-story__image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    width: min(62.5rem, 82vw);
    margin: 0 auto 12rem;
}

.opus-story__image-grid img,
.opus-story__wide {
    width: 100%;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.opus-story__image-grid img {
    aspect-ratio: 8 / 5;
}

.opus-section-heading--reason {
    margin-bottom: 6.8rem;
}

.opus-story__release {
    display: grid;
    place-items: center;
    gap: 4rem;
    margin-bottom: 5rem;
    text-align: center;
}

.opus-story__release>img {
    width: min(41rem, 82vw);
}

.opus-story__release .text-body-sm {
    max-width: 50rem;
    text-align: center;
    font-size: var(--text-md);
}

.opus-story__release .text-body-sm p+p {
    margin-top: 2.4rem;
}

.opus-story__wide {
    aspect-ratio: 5 / 2;
}

.opus-story__wide--intro {
    position: relative;
    z-index: 1;
    width: min(62.5rem, 82vw);
    margin: 0 auto 4rem;
}

.opus-story__wide--release {
    width: min(62.5rem, 82vw);
    margin: 0 auto;
}

.opus-dark {
    background: var(--color-bg-dark);
    color: var(--color-text-secondary);
}

.opus-dark__inner {
    max-width: 75rem;
    margin-right: auto;
    margin-left: auto;
}

.opus-order {
    padding: 7.45rem clamp(1.5rem, 8vw, 10rem) 12rem;
}

.opus-order__notice {
    max-width: 62.5rem;
    margin-right: auto;
    margin-bottom: 4.05rem;
    margin-left: auto;
    padding: 0;
    border: 0;
    text-align: center;
}

.opus-order__notice h2 {
    display: grid;
    place-items: center;
    min-height: 9.75rem;
    margin-bottom: 2.25rem;
    padding: 1.5rem;
    border: 1px solid rgba(244, 242, 239, 0.72);
    border-radius: var(--radius-md);
    font-size: var(--text-2xl);
    line-height: 1.25;
    letter-spacing: 0.05em;
}

.opus-order__notice p {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 2.05;
    letter-spacing: 0.04em;
}

.opus-order__product {
    position: relative;
    max-width: 62.5rem;
    margin-right: auto;
    margin-bottom: clamp(2.2rem, 3vw, 2.7rem);
    margin-left: auto;
}

.opus-order__product>img {
    width: 100%;
    border-radius: var(--radius-md);
}

.opus-order__spec {
    position: absolute;
    top: 50%;
    right: 1.8vw;
    bottom: auto;
    transform: translateY(-50%);
    display: grid;
    gap: 0.45rem;
    min-width: min(17rem, 32vw);
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-bg-dark);
    text-align: center;
}

.opus-order__spec-logo {
    justify-self: center;
    width: 110px;
    height: auto;
    margin-bottom: 1.2rem;
}

.opus-order__spec span {
    color: var(--color-primary-dark);
    font-size: clamp(1.4rem, 2vw, 1.75rem);
    font-weight: 700;
    line-height: 1.5;
}

.opus-order__spec strong {
    margin-top: 1.1rem;
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    font-weight: 600;
    line-height: 1.7;
}

.opus-order__spec p {
    font-size: clamp(1rem, 1.35vw, 1.1rem);
    line-height: 1.55;
}

.opus-order__spec small {
    font-size: clamp(0.92rem, 1.2vw, 1rem);
    line-height: 1.55;
}

.opus-order__buttons {
    display: grid;
    gap: 1.55rem;
    max-width: 62.5rem;
    margin: clamp(4.5rem, 6vw, 5.5rem) auto 0;
}

.opus-order__buttons .opus-button--wide {
    border-radius: var(--radius-sm);
}

.opus-order__buttons .opus-button--red {
    min-height: 11.05rem;
}

.opus-order__buttons .opus-button--green {
    /* LINEアイコン+テキストを横並びでまとめてボタン中央配置 */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    min-height: 5rem;
}

.opus-order__buttons .opus-button small {
    align-self: end;
    font-size: var(--text-sm);
    letter-spacing: 0.06em;
}

.opus-order__buttons .opus-button span {
    align-self: start;
    font-size: var(--text-xl);
    line-height: 1.45;
}

.opus-order__buttons .opus-button--red span {
    justify-self: center;
    margin-left: 0;
}

.opus-order__buttons .opus-button--green span {
    align-self: center;
    justify-self: center;
    font-size: var(--text-base);
}

/* 右端アイコンはボタンの天地中央に絶対配置 */
.opus-order__buttons .opus-button--wide {
    position: relative;
}

.opus-order__buttons .opus-button img:not(.opus-button__line) {
    position: absolute;
    top: 50%;
    right: 1.5rem;
    width: 17px;
    height: 17px;
    margin-right: 0;
    transform: translateY(-50%);
}

.opus-order__buttons .opus-button__line {
    justify-self: end;
    width: 2.5rem;
    height: 2.5rem;
    margin-right: 0;
}

.opus-order__logo {
    width: min(22rem, 28vw);
    margin: 7.6rem auto 0;
}

.opus-order__buttons--bottom {
    margin-top: var(--space-2xl);
}

.opus-feature {
    padding: 0 clamp(1.5rem, 7vw, 8rem) 11rem;
}

.opus-feature__grid {
    display: grid;
    grid-template-columns: minmax(0, 35rem) minmax(0, 34.375rem);
    column-gap: 5.625rem;
    align-items: start;
    max-width: 75rem;
}

.opus-feature__logo {
    display: none;
}

.opus-feature__copy h2,
.opus-taste__text h2,
.opus-gift__text h2 {
    margin-bottom: 4.05rem;
    font-size: 2.2rem;
    line-height: 1.45;
    letter-spacing: 0.04em;
}

.opus-feature__copy p,
.opus-taste__text p,
.opus-gift__text p,
.opus-card p {
    max-width: 35rem;
    font-size: var(--text-base);
    font-weight: 600;
    line-height: 2;
    letter-spacing: 0.04em;
}

.opus-feature__copy p+p,
.opus-taste__text p+p,
.opus-gift__text p+p {
    margin-top: 2rem;
}

.opus-feature__main,
.opus-taste__grid>img,
.opus-gift__grid>img {
    width: 100%;
    height: 40.625rem;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.opus-feature__list {
    display: grid;
    width: 35rem;
    margin-top: 3rem;
    border-top: 1px solid var(--color-primary-dark);
}

.opus-feature__list article {
    display: flex;
    align-items: center;
    gap: 2.25rem;
    min-height: 11.6875rem;
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--color-primary-dark);
}

.opus-feature__list img {
    flex-shrink: 0;
    width: 11.25rem;
    aspect-ratio: 270 / 195;
    height: auto;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.opus-feature__list-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.opus-feature__list span {
    display: block;
    font-size: var(--text-xl);
    font-weight: 600;
    line-height: 1.2;
}

.opus-feature__list p {
    font-size: var(--text-base);
    font-weight: 600;
    line-height: 1.8;
}

.opus-taste,
.opus-gift {
    padding: 0 clamp(1.5rem, 7vw, 8rem) 9.6rem;
}

.opus-taste__grid,
.opus-gift__grid {
    display: grid;
    column-gap: 5.625rem;
    max-width: 75rem;
}

.opus-taste__grid {
    grid-template-columns: minmax(0, 34.375rem) minmax(0, 35rem);
}

.opus-gift__grid {
    grid-template-columns: minmax(0, 35rem) minmax(0, 34.375rem);
}

.opus-taste__text small {
    display: block;
    margin-top: 4rem;
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.04em;
}

.opus-card {
    display: grid;
    justify-items: center;
    max-width: 52rem;
    margin: 11.9rem auto 0;
    text-align: center;
}

.opus-card p {
    max-width: 48rem;
}

.opus-card>img:first-child {
    width: min(20rem, 58vw);
    border-radius: var(--radius-md);
}

.opus-card__text {
    width: min(28.5rem, 88vw);
    margin-top: -2.2rem;
    margin-bottom: clamp(3rem, 5vw, 4.4rem);
}

.opus-card p {
    margin-top: 0;
    font-size: clamp(1rem, 1.25vw, 1.12rem);
    font-weight: 600;
    line-height: 2;
    letter-spacing: 0.04em;
}

.opus-card p+p {
    margin-top: clamp(3rem, 5vw, 4.4rem);
}

.opus-message {
    display: grid;
    justify-items: center;
    margin: 7rem auto 0;
    text-align: center;
}

.opus-message>img {
    width: min(16.25rem, 42vw);
    margin-bottom: 4rem;
}

.opus-message__text {
    display: grid;
    gap: 2.4rem;
    color: var(--color-text-secondary);
    font-size: clamp(1rem, 1.25vw, 1.14rem);
    font-weight: 600;
    line-height: 2;
    letter-spacing: 0.05em;
}

.opus-faq-eyecatch {
    width: 100%;
    height: min(34.7vw, 32.5rem);
    min-height: 24rem;
    background: url("images/img_opusnos-eyecatch.jpg") center center / cover no-repeat;
}

.opus-faq {
    padding-top: clamp(8.5rem, 13vw, 12.5rem);
    padding-bottom: clamp(8rem, 12vw, 12rem);
}

.opus-faq .faq-list {
    max-width: 62.5rem;
}

.opus-faq .faq-title {
    margin-bottom: 0.85rem;
    font-size: clamp(5rem, 8vw, 7rem);
}

.opus-faq .faq-sub {
    margin-bottom: clamp(4rem, 6vw, 5.6rem);
}

@media (max-width: 1023px) {

    .opus-story__text,
    .opus-feature__grid,
    .opus-taste__grid,
    .opus-gift__grid {
        grid-template-columns: 1fr;
    }

    .opus-feature__main,
    .opus-taste__grid>img,
    .opus-gift__grid>img {
        height: auto;
        max-width: 36rem;
        margin-right: auto;
        margin-left: auto;
    }

    .opus-feature__list {
        grid-template-columns: 1fr;
        width: 100%;
    }
}

@media (max-width: 767px) {

    /* ----- Hero ----- */
    .opus-hero {
        /* min-height:100svhだとスマホブラウザの下部操作バーの表示/非表示でheightが変動するため、
           viewport高さに依存しないSP画像自体の比率(1113:2152)で高さを決める */
        min-height: auto;
        aspect-ratio: 1113 / 2152;
        padding: 0 1.6rem 2.5rem;
        /* SP 専用画像。下部にテキストを乗せるため下側を暗めにグラデーション */
        background:
            linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.55) 100%),
            url("images/img_opusnos-main-sp.jpg") center center / cover;
        /* テキスト・ボタンを写真下部に配置 */
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }

    .opus-hero__content {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        max-width: none;
        padding-top: 0;
    }

    .opus-hero__label {
        margin-bottom: 1rem;
        font-size: 0.9rem;
    }

    .opus-hero__title {
        margin-bottom: 0.5rem;
        font-size: 1.5rem;
        line-height: 1.5;
        white-space: normal;
    }

    .opus-hero__logo {
        position: absolute;
        top: 7rem;
        right: 1.25rem;
        bottom: auto;
        /* SVG viewBox が 239×279 と縦長のため、width を抑えて画面内に収める */
        width: min(7rem, 26vw);
        height: auto;
        max-width: calc(100vw - 2.5rem);
    }

    /* 先行受付バナー：絶対配置だとopus-hero__contentと重なるため、
       通常フローに戻してcontentの下に並べる（.opus-heroは既にflex-directon:columnのため
       contentは自動的に上へ押し上げられ、バナーがその下に来る）。
       トップページはtransform:scale(0.8)で見た目を縮小しているが、それをstatic配置のまま行うと
       レイアウト上の占有サイズは縮小前のままになり余白がずれるため、
       ここでは各数値をあらかじめ0.8倍した実寸で指定し、トップページと同じ見た目に揃える */
    .opus-hero .top-hero__news {
        position: static;
        top: auto;
        right: auto;
        /* 共通ルールのtransform:scale(0.8)を打ち消す（各数値を実寸で個別指定済みのため） */
        transform: none;
        margin-top: 1.5rem;
        --hero-news-card-width: calc(100vw - 40px);
        --hero-news-card-height: 5.76rem;
    }

    .opus-hero .top-hero__news-card {
        padding: 0.64rem 5.8rem 0.8rem 1.64rem;
    }

    .opus-hero .top-hero__news-card::after {
        height: 2.1rem;
    }

    .opus-hero .top-hero__news-copy>span {
        font-size: 0.75rem;
    }

    .opus-hero .top-hero__news-card strong {
        margin-top: 0.12rem;
        font-size: 1rem;
    }

    .opus-hero .top-hero__news-card small {
        bottom: 0.76rem;
        left: 1.64rem;
        font-size: 0.7rem;
    }

    .opus-hero .top-hero__news-card small::after {
        width: 0.4rem;
        height: 0.4rem;
        margin-left: 0.92rem;
    }

    .opus-hero .top-hero__news-card img {
        right: 0.8rem;
        bottom: -1.6rem;
        width: 4.8rem;
    }

    /* ----- Buttons ----- */
    .opus-button {
        width: 100%;
        min-height: 4.5rem;
        padding: 0.8rem 1.25rem;
        font-size: var(--text-base);
    }

    .opus-button--wide {
        min-height: 5rem;
        padding-right: 1.25rem;
        padding-left: 1.25rem;
    }

    /* ----- Story（イントロ・由来） ----- */
    .opus-story {
        padding: 4.5rem 5vw 5rem;
    }

    .opus-section-heading {
        margin-bottom: 3rem;
    }

    .opus-section-heading--reason {
        margin-bottom: 3.4rem;
    }

    .opus-section-heading p {
        padding-right: 2rem;
        padding-left: 2rem;
        font-size: 0.8rem;
    }

    .opus-section-heading p::before,
    .opus-section-heading p::after {
        top: -30%;
        height: 3rem;
    }

    .opus-story__floating {
        display: none;
    }

    .opus-story__copy {
        margin-bottom: 2.4rem;
    }

    .opus-story__copy img {
        width: min(22rem, 88vw);
    }

    /* SP では本文を両端揃え（justify）に */
    .opus-story__inner p,
    .opus-story__inner h3 {
        text-align: justify;
    }

    .opus-story__lead {
        margin-bottom: 2.6rem;
        font-size: 15px;
        line-height: 2;
    }

    .opus-story__lead p+p {
        margin-top: 2rem;
    }

    .opus-story__note {
        margin-bottom: 3.5rem;
        font-size: 0.85rem;
    }

    .opus-story__wide {
        aspect-ratio: 4 / 3;
    }

    .opus-story__wide--intro {
        width: 100%;
        margin-bottom: 2.6rem;
    }

    .opus-story__text {
        margin-bottom: 2.6rem;
    }

    .opus-story__text h3 {
        margin-bottom: 2rem;
        font-size: 1.1rem;
        line-height: 1.65;
    }

    .opus-story__text .text-body-sm {
        font-size: 15px;
    }

    .opus-story__image-grid {
        grid-template-columns: 1fr;
        width: 100%;
        gap: 1.5rem;
        margin-bottom: 4rem;
    }

    .opus-story__release {
        gap: 2rem;
        margin-bottom: 2.6rem;
    }

    .opus-story__release .text-body-sm {
        font-size: 15px;
    }

    .opus-story__wide--release {
        width: 100%;
    }

    /* ----- Order（注文セクション） ----- */
    .opus-order {
        padding: 4.5rem 5vw 4.5rem;
    }

    .opus-order__notice {
        margin-bottom: 2.4rem;
    }

    .opus-order__notice h2 {
        min-height: 0;
        margin-bottom: 1.5rem;
        padding: 1.4rem 1rem;
        font-size: 1.4rem;
        line-height: 1.4;
    }

    .opus-order__notice p {
        font-size: var(--text-base);
        line-height: 1.85;
        text-align: justify;
    }

    .opus-order__product {
        margin-bottom: 1.5rem;
    }

    /* SP では商品画像に重ねるスペックを画像下に通常配置 */
    .opus-order__spec {
        position: static;
        transform: none;
        margin-top: var(--space-md);
        min-width: 0;
        padding: var(--space-lg) var(--space-md);
        border-radius: var(--radius-md);
        background: var(--color-bg-primary);
    }

    .opus-order__spec span {
        font-size: 1.25rem;
    }

    .opus-order__buttons {
        gap: 1rem;
        margin-top: 2.5rem;
    }

    .opus-order__buttons .opus-button--red {
        min-height: 7.5rem;
    }

    .opus-order__buttons .opus-button--green {
        min-height: 4.5rem;
    }

    .opus-order__buttons .opus-button span {
        font-size: 1.1rem;
    }

    /* テキストの配置（grid/align-content）は変更しない。赤ボタンのみ、アイコンのtopだけを
       「ONLINE STORE」行ではなく本文（2行目）の中心に実測で合わせる（767-320px幅で本文の
       位置は変わらないため固定値でよい） */
    .opus-order__buttons .opus-button--red img:not(.opus-button__line) {
        top: 4.3625rem;
    }

    .opus-order__buttons .opus-button--green span {
        font-size: 0.95rem;
        text-align: left;
    }

    .opus-order__buttons .opus-button__line {
        width: 1.8rem;
        height: 1.8rem;
    }

    .opus-order__logo {
        width: min(14rem, 50vw);
        margin-top: 3rem;
    }

    /* ----- Feature（商品特徴）：画像を上、テキストを下に統一 ----- */
    .opus-feature {
        padding: 0 5vw 4.5rem;
    }

    .opus-feature__grid {
        display: flex;
        flex-direction: column-reverse;
        gap: 2rem;
    }

    .opus-feature__main {
        /* PC と同じ縦長比率（825:975）のまま表示する */
        width: 100%;
        height: auto;
        aspect-ratio: 825 / 975;
        max-height: none;
        max-width: none;
        margin: 0;
        object-fit: cover;
    }

    .opus-feature__copy {
        text-align: left;
    }

    .opus-feature__copy h2,
    .opus-taste__text h2,
    .opus-gift__text h2 {
        margin-bottom: 1.4rem;
        font-size: 1.5rem;
        line-height: 1.55;
    }

    .opus-feature__copy p,
    .opus-taste__text p,
    .opus-gift__text p,
    .opus-card p {
        font-size: 0.95rem;
        line-height: 1.95;
    }

    .opus-feature__copy p+p,
    .opus-taste__text p+p,
    .opus-gift__text p+p {
        margin-top: 1.5rem;
    }

    /* feature 内のリスト（01：完熟 等）も画像上・テキスト下に統一 */
    .opus-feature__list {
        width: 100%;
        margin-top: 2.4rem;
    }

    .opus-feature__list article {
        flex-direction: column;
        align-items: stretch;
        gap: 1.2rem;
        min-height: 0;
        padding: 1.6rem 0;
    }

    .opus-feature__list img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 10;
        max-height: 50vh;
        object-fit: cover;
    }

    .opus-feature__list-text {
        gap: 0.6rem;
    }

    .opus-feature__list span {
        font-size: 1.35rem;
    }

    .opus-feature__list p {
        font-size: 0.95rem;
    }

    /* ----- Taste / Gift（既存の grid:1fr に積み増し調整） ----- */
    .opus-taste,
    .opus-gift {
        padding: 0 5vw 4.5rem;
    }

    .opus-taste__grid,
    .opus-gift__grid {
        gap: 2rem;
    }

    /* gift は DOM 順がテキスト→画像。SP では画像を上、テキストを下に逆転 */
    .opus-gift__grid {
        display: flex;
        flex-direction: column-reverse;
    }

    .opus-taste__grid>img,
    .opus-gift__grid>img {
        /* PC と同じ縦長比率（825:975）のまま表示する */
        width: 100%;
        height: auto;
        aspect-ratio: 825 / 975;
        max-height: none;
        max-width: none;
        margin: 0;
        object-fit: cover;
    }

    .opus-taste__text small {
        margin-top: 2rem;
    }

    /* ----- Card / Message ----- */
    .opus-card {
        margin-top: 4rem;
    }

    .opus-card>img:first-child {
        width: min(16rem, 64vw);
    }

    .opus-card__text {
        width: min(20rem, 78vw);
        margin-top: -1.6rem;
        margin-bottom: 2rem;
    }

    .opus-card p+p {
        margin-top: 2rem;
    }

    .opus-message {
        margin-top: 4rem;
        gap: 1.2rem;
    }

    .opus-message>img {
        width: min(12rem, 42vw);
        margin-bottom: 2rem;
    }

    .opus-message__text {
        gap: 1.6rem;
        font-size: 0.95rem;
    }

    /* SP では本文を両端揃え（justify）に */
    .opus-card p,
    .opus-message__text p {
        text-align: justify;
    }

    /* ----- FAQ アイキャッチ & FAQ ----- */
    .opus-faq-eyecatch {
        min-height: 14rem;
        height: 50vw;
    }

    .opus-faq {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .opus-faq .faq-title {
        margin-bottom: 0.6rem;
        font-size: 3.5rem;
    }

    .opus-faq .faq-sub {
        margin-bottom: 2.6rem;
    }
}

/* ========================================
   11. Company Page
   - 会社情報（page-company.php）専用スタイル
   ======================================== */

/* --- 会社紹介（リード文・ギャラリー・実績数値・代表メッセージ）--- */
.company-intro {
    background: var(--color-bg-primary);
    /* デザイン実測: 赤ヒーロー終端からリード文開始までの余白（約115px logical） */
    padding-top: 8.3rem;
}

/* タブレット幅（768-1023px）：.section の既定 clamp(1.5rem,8vw,10rem) だと左右余白がまだ広く、
   実績数値カードの中身が先に詰まって改行が崩れる。.top-intro と同じ clamp に差し替えて余白側から縮める */
@media (min-width: 768px) and (max-width: 1023px) {
    .company-intro {
        padding-right: clamp(2rem, 6vw, 5rem);
        padding-left: clamp(2rem, 6vw, 5rem);
    }
}

.company-lead {
    max-width: var(--content-width);
    margin: 0 auto var(--space-xl);
    /* デザイン指定値：22px・中央揃え */
    font-size: 22px;
    font-weight: 600;
    line-height: 1.9;
    letter-spacing: 0.02em;
    text-align: center;
}

/* 6行の改行位置は<br class="sp">で明示的に制御。heightはheight:autoだと最長行(15字)の
   高さギリギリになり不安定なため、余裕を持たせて固定（実測: 350pxで全行1列に収まる）。
   text-align:startで頭（縦組の上端）揃え。
   line-heightは通常時(1.9)より広く取りたいが、2倍(3.8)だと6列合計456pxとなり
   320px幅の画面でも収まらず文字が見切れるため、実測で320px幅でも収まる上限(line-height:2)を採用 */
@media (max-width: 767px) {
    .company-lead {
        writing-mode: vertical-rl;
        height: 350px;
        margin: 0 auto var(--space-xl);
        font-size: 20px;
        line-height: 2;
        text-align: start;
    }
}

/* ギャラリーはセクションの余白を無視して画面幅いっぱいに広げ、トップページの .top-mottainai__gallery-track と同じ手法で自動スクロールさせる */
.company-gallery {
    position: relative;
    width: 100vw;
    margin-right: calc(50% - 50vw);
    margin-bottom: var(--space-2xl);
    margin-left: calc(50% - 50vw);
    overflow: hidden;
}

.company-gallery__track {
    display: flex;
    width: max-content;
    gap: 20px;
    animation: companyGallerySlide 44s linear infinite;
    will-change: transform;
}

.company-gallery__track img {
    /* デザイン指定値：222×154px・角丸4px */
    width: 222px;
    height: 154px;
    /* SPでheightだけ縮めてもwidth:autoで同じ比率を保てるように明示 */
    aspect-ratio: 222 / 154;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

@keyframes companyGallerySlide {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

body.no-motion .company-gallery__track {
    animation: none;
}

@media (max-width: 767px) {
    .company-gallery__track img {
        /* widthを固定していたのが原因でPCと比率が変わっていたため、autoにしてaspect-ratioに委ねる */
        width: auto;
        height: 6.5rem;
    }
}

.company-stats {
    display: flex;
    justify-content: center;
    margin-bottom: 240px;
    text-align: center;
}

.company-stats__item {
    flex: 1;
    max-width: 20rem;
    padding: 0 var(--space-lg);
}

.company-stats__item+.company-stats__item {
    border-left: 1px solid var(--color-line);
}

.company-stats__item img {
    width: 3.75rem;
    height: 3.75rem;
    margin: 0 auto var(--space-sm);
}

.company-stats__item strong {
    display: block;
    margin-bottom: var(--space-xs);
    font-size: var(--text-2xl);
    font-weight: 600;
}

.company-stats__item p {
    font-size: var(--text-sm);
    line-height: 1.6;
}

.company-stats__item p span {
    display: block;
    margin-top: 0.3em;
    color: var(--color-text-primary);
    opacity: 0.7;
    font-size: var(--text-xs);
}

/* セクション余白を縮めてもなお768px付近でカード内padding(--space-lg=40px×2)が
   数値テキストの折り返しを起こすため、カード間の余白も併せて縮める。
   --space-sm(16px)では「累計134.5t」等が1px未満の差でギリギリ折り返すため、さらに詰める */
@media (min-width: 768px) and (max-width: 1023px) {
    .company-stats__item {
        padding: 0 var(--space-xs);
    }
}

@media (max-width: 767px) {
    .company-stats {
        flex-direction: column;
        gap: var(--space-lg);
    }

    .company-stats__item {
        max-width: none;
        padding: 0;
    }

    .company-stats__item+.company-stats__item {
        padding-top: var(--space-lg);
        border-top: 1px solid var(--color-line);
        border-left: 0;
    }
}

/* --- 大見出し（MESSAGE / BUSINESS 共通）--- */
.company-heading {
    max-width: var(--content-width);
    margin: 0 auto var(--space-xl);
}

.company-heading h2 {
    margin: 0;
    /* 375px幅でも "BUSINESS" が折り返し・はみ出しせず収まる下限を確保しつつ、PCでは --text-4xl 相当まで拡大 */
    font-size: clamp(2.75rem, 11vw, var(--text-4xl));
    line-height: 1;
}

.company-heading p {
    margin-top: var(--space-xs);
    font-size: var(--text-sm);
    letter-spacing: 0.05em;
}

/* BUSINESS 見出し直下はデザイン実測で MESSAGE より広い余白（隣接マージンの相殺を避けるため個別指定） */
.company-heading:has(+ .company-business) {
    margin-bottom: var(--space-2xl);
}

/* --- 代表メッセージ --- */
.company-message {
    max-width: var(--content-width);
    margin: 0 auto;
}

.company-message__quote {
    margin: 0 0 var(--space-2xl);
    max-width: 48rem;
    font-size: var(--text-2xl);
    font-weight: 600;
    line-height: 1.8;
}

/* コンテナが狭まりmax-width:48remいっぱいに収まらなくなると、<br>で指定した行の途中で
   さらに折り返してしまう。889px以下で折り返しが起きる直前からフォントサイズを連続的に縮め、
   768pxまで<br>通りの3行を維持する（768px時点で実測上34px程度が下限） */
@media (min-width: 768px) and (max-width: 1023px) {
    .company-message__quote {
        font-size: clamp(34px, 4.5vw, 40px);
    }
}

/* SP幅（〜767px）：「トマトは救えても、」の前に<br class="sp">で改行位置を固定した上で、
   他の行がさらに折り返さないよう画面幅に応じてフォントサイズを連続的に縮小する
   （実測: 幅600pxまでは40pxのまま収まり、それ以下は概ね6.8vw相当で各行が収まる） */
@media (max-width: 767px) {
    .company-message__quote {
        font-size: clamp(20px, 6.8vw, 40px);
    }
}

/* 本文と写真はここから2カラム（引用は全幅で上に独立させる）
   本文カラムはデザイン実測で約31remの固定幅（1fr で伸ばすと改行が減り縦の分量が詰まってしまうため） */
.company-message__grid {
    display: grid;
    grid-template-columns: 31rem 23rem;
    gap: var(--space-2xl);
    align-items: start;
}

/* 本文と写真の間のgapは、コンテナ左右の余白（.sectionのclamp、最小でも32px前後）より
   常に小さくする（余白の方が広く見えるよう） */
@media (min-width: 768px) {
    .company-message__grid {
        gap: var(--space-lg);
    }
}

.company-message__text {
    font-size: var(--text-base);
}

.company-message__text p+p {
    margin-top: var(--space-xl);
}

.company-message__figure {
    margin: 0;
}

.company-message__figure img {
    width: 100%;
    border-radius: var(--radius-md);
}

.company-message__figure figcaption {
    margin-top: var(--space-sm);
    font-size: var(--text-sm);
    text-align: right;
}

/* タブレット幅（〜1023px）：31rem+23rem+gap(--space-2xl=96px)の合計960pxが
   コンテナの実効幅を超え、右カラム（写真）が右へはみ出て見切れる。
   左右が均等に縮むよう、同じ比率のfr単位（可変）に切り替える */
@media (max-width: 1023px) {
    .company-message__grid {
        grid-template-columns: 31fr 23fr;
    }
}

@media (max-width: 767px) {
    .company-message__grid {
        grid-template-columns: 1fr;
    }

    .company-message__figure {
        max-width: 20rem;
        margin: 0 auto;
    }

    .company-message__figure figcaption {
        text-align: center;
    }
}

/* --- SLOGAN / MISSION / VISION（背景を敷かず site-red-background を見せる）--- */
.company-slogan {
    color: var(--color-text-inverse);
    text-align: center;
}

.company-slogan__promise {
    margin: 0 auto 53px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    /* デザイン指定値：上下の線は同じ800px幅 */
    max-width: 800px;
    font-size: var(--text-sm);
    letter-spacing: 0.1em;
}

.company-slogan__label {
    margin: 0 0 33px;
    font-family: var(--font-serif);
    font-size: var(--text-xs);
    letter-spacing: 0.15em;
}

.company-slogan__title {
    margin: 0 auto;
    padding-bottom: 45px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    /* デザイン指定値：上下の線は同じ800px幅、文字は40px */
    max-width: 800px;
    font-size: 40px;
}

/* SP幅（〜767px）：company-message__quoteと同じ可変フォントサイズに揃える。
   「モッタイナイ、」の後（<br class="sp">）で改行し、以降が再度折り返さないようにする */
@media (max-width: 767px) {
    .company-slogan__title {
        font-size: clamp(20px, 6.8vw, 40px);
    }
}

.company-slogan__list {
    /* デザイン実測：約700px幅 */
    max-width: 700px;
    margin: 65px auto 0;
    text-align: center;
}

.company-slogan__row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xs);
    font-size: var(--text-md);
    line-height: 1.9;
}

.company-slogan__row+.company-slogan__row {
    margin-top: 80px;
}

.company-slogan__row dt {
    font-family: var(--font-serif);
    font-size: var(--text-sm);
    letter-spacing: 0.08em;
}

.company-slogan__row dd {
    margin: 0;
}

.company-slogan__row dd p+p {
    margin-top: var(--space-sm);
}

@media (max-width: 767px) {
    .company-slogan__row {
        grid-template-columns: 1fr;
        gap: var(--space-xs);
    }
}

/* --- 事業内容 --- */
.company-business-area,
.company-profile-area {
    background: var(--color-bg-primary);
}

.company-business {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl) var(--space-xl);
    max-width: var(--content-width);
    margin: 0 auto var(--space-3xl);
}

/* company-messageと同じタブレット余白(clamp(2rem,6vw,5rem))に揃え、
   その余白が確保できているうちはコンテナ(960px)が縮小しないようにする */
@media (min-width: 768px) and (max-width: 1023px) {
    .company-business-area {
        padding-right: clamp(2rem, 6vw, 5rem);
        padding-left: clamp(2rem, 6vw, 5rem);
    }
}

.company-business__item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.company-business__item:nth-child(odd) {
    position: relative;
}

/* gridのgap(--space-xl)の中央に区切り線を配置（要素自体のpaddingは持たせない） */
.company-business__item:nth-child(odd)::after {
    position: absolute;
    top: 0;
    right: calc(-1 * var(--space-xl) / 2);
    bottom: 0;
    width: 1px;
    background: var(--color-line);
    content: "";
}

.company-business__item img {
    flex-shrink: 0;
    width: 9.4rem;
    height: 9.4rem;
    border-radius: 50%;
    object-fit: cover;
}

.company-business__text h3 {
    margin: 0 0 var(--space-sm);
    font-size: var(--text-lg);
}

.company-business__text p {
    font-size: var(--text-sm);
    line-height: 1.8;
}

@media (max-width: 767px) {
    .company-business {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .company-business__item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .company-business__text p {
        text-align: left;
    }

    .company-business__item:nth-child(odd)::after {
        content: none;
    }
}

/* --- 沿革（HISTORY）--- */
.company-history {
    position: relative;
    /* z-index を明示してスタッキングコンテキストを作る（::before 背景が他要素の下に隠れないように） */
    z-index: 0;
    max-width: var(--content-width);
    margin: var(--space-2xl) auto 0;
    padding-top: 180px;
}

/* 背景は左右・下端まで画面幅いっぱいに広げる（コンテンツ幅の箱には縛らない） */
.company-history::before {
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: calc(-1 * var(--space-3xl));
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background: #F7F6F4;
    content: "";
}

/* .section-side-title は height:auto だと祖先の高さに縛られ、文字数の多い語（COMPANY PROFILE 等）が
   2列に折り返って幅が倍増してしまう（縦書きの height は段組みの折返し方向）。max-content で1列固定にする */
.company-history .section-side-title,
.company-profile .section-side-title,
.company-collaboration .section-side-title {
    height: max-content;
    /* デザイン指定：小ラベルと英単語を縦2列で横並びにし、本文コンテナより少し上に上げる（トップページ DASHBOARD と同じ構成） */
    top: -8px;
    flex-direction: row-reverse;
    writing-mode: horizontal-tb;
}


.company-history .section-side-title {
    padding-top: 80px;
}

.company-profile .section-side-title,
.company-collaboration .section-side-title {
    margin-top: -60px;
}

.company-history .section-side-title span,
.company-history .section-side-title strong,
.company-profile .section-side-title span,
.company-profile .section-side-title strong,
.company-collaboration .section-side-title span,
.company-collaboration .section-side-title strong {
    writing-mode: vertical-rl;
}

/* デザイン原本（XD）指定値：47px。トップページの DASHBOARD 等（clamp基準）とは別のサイズ。
   行送り・字間はXD原本値未確認のため目視で近い値に設定（haru承認済み） */
.company-history .section-side-title strong,
.company-profile .section-side-title strong,
.company-collaboration .section-side-title strong {
    font-size: 47px;
    line-height: 1.2;
    letter-spacing: 0;
}

/* SP幅：右寄せの縦書きタイトルではなく、コンテンツ上部に積む横組に戻す。
   position:absoluteのままだと後続コンテンツと重なるため、static化して通常フローに戻す */
@media (max-width: 767px) {

    /* デスクトップの180pxは絶対配置タイトルの分の予備領域。タイトルが通常フローに戻るため不要 */
    .company-history {
        padding-top: 0;
    }

    .company-history .section-side-title,
    .company-profile .section-side-title,
    .company-collaboration .section-side-title {
        position: static;
        top: auto;
        flex-direction: column-reverse;
        writing-mode: horizontal-tb;
        margin-bottom: var(--space-lg);
    }

    .company-history .section-side-title {
        padding-top: 80px;
    }

    .company-profile .section-side-title,
    .company-collaboration .section-side-title {
        margin-top: 0;
    }

    .company-history .section-side-title span,
    .company-history .section-side-title strong,
    .company-profile .section-side-title span,
    .company-profile .section-side-title strong,
    .company-collaboration .section-side-title span,
    .company-collaboration .section-side-title strong {
        writing-mode: horizontal-tb;
    }

    .company-history .section-side-title strong,
    .company-profile .section-side-title strong,
    .company-collaboration .section-side-title strong {
        font-size: var(--text-2xl);
        line-height: 1;
        letter-spacing: normal;
    }

    /* "COLLABORATION"はスペースがなく折り返せないため、40px固定だと画面幅を超えて見切れる。
       画面幅に応じて縮小し、320px幅でも収まるようにする */
    .company-collaboration .section-side-title strong {
        font-size: clamp(16px, 8.7vw, 40px);
    }
}

.company-history__list {
    margin: 0;
    /* 縦書きタイトルの右に十分な間隔を空けて要素を右寄せする（デザイン実測: 1500px基準で約300px） */
    padding: 0 0 0 clamp(15rem, 20vw, 19rem);
    list-style: none;
}

/* 20vwは1200px以下で15rem(240px)に張り付いたまま変化しないため、SPの0pxへ切り替わる767px手前まで
   段差なく連続的に縮める（1023px時点で240px・768px時点で概ね0pxになるよう1vwあたりの変化量を実測で調整） */
@media (min-width: 768px) and (max-width: 1023px) {
    .company-history__list {
        padding-left: clamp(130px, calc(43vw - 200px), 240px);
    }
}

.company-history__list li {
    position: relative;
    padding: 0 0 var(--space-lg) var(--space-lg);
    border-left: 1px solid var(--color-line);
}

.company-history__list li:last-child {
    padding-bottom: 0;
}

/* 最初の項目だけ、線を丸印の位置から始める（丸印の上に線がはみ出さないように） */
.company-history__list li:first-child {
    border-left: none;
}

.company-history__list li:first-child::after {
    position: absolute;
    top: 0.35em;
    bottom: 0;
    left: -1px;
    width: 1px;
    background: var(--color-line);
    content: "";
}

.company-history__list li::before {
    position: absolute;
    top: 0.35em;
    left: -5px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--color-primary);
    content: "";
}

.company-history__list time {
    display: block;
    margin-bottom: 0.3em;
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: 700;
}

.company-history__list p {
    font-size: var(--text-sm);
    line-height: 1.8;
}

@media (max-width: 767px) {
    .company-history__list {
        padding-left: 10px;
    }

    .company-history__list li {
        padding-left: var(--space-sm);
    }
}

/* --- アイキャッチ（帯写真）--- */
.company-eyecatch {
    position: relative;
    width: 100%;
    height: 420px;
    overflow: hidden;
    background: var(--color-bg-primary);
}

.company-eyecatch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 767px) {
    .company-eyecatch {
        height: 220px;
    }
}

/* --- 会社概要（COMPANY PROFILE）--- */
.company-profile {
    position: relative;
    max-width: var(--content-width);
    margin: 0 auto;
}

.company-profile__table {
    margin: 0;
    /* 縦書きタイトルの右に十分な間隔を空けて要素を右寄せする（company-history__list と同値） */
    padding-left: clamp(15rem, 20vw, 19rem);
}

/* company-history__list と同じ理由・同じ式でタブレット幅の段差を解消 */
@media (min-width: 768px) and (max-width: 1023px) {
    .company-profile__table {
        padding-left: clamp(130px, calc(43vw - 200px), 240px);
    }
}

.company-profile__row {
    display: grid;
    grid-template-columns: 10rem minmax(0, 1fr);
    gap: var(--space-md);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--color-line);
}

.company-profile__row:first-child {
    border-top: 1px solid var(--color-line);
}

.company-profile__row dt {
    font-weight: 600;
}

.company-profile__row dd {
    margin: 0;
    font-size: var(--text-sm);
    line-height: 1.9;
}

.company-profile__row dd:has(.company-profile__map) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.company-profile__map {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    margin: 0;
    padding: 0.6em 1.2em;
    border-radius: var(--radius-sm);
    background: var(--color-bg-dark);
    color: var(--color-text-inverse);
    font-family: var(--font-sans);
    font-size: var(--text-xs);
}

.company-profile__map img {
    width: 0.9rem;
    height: 0.9rem;
}

.company-profile__business-list {
    margin: 0;
    padding-left: 1.4em;
}

.company-profile__business-list li+li {
    margin-top: 0.4em;
}

@media (max-width: 767px) {
    .company-profile__table {
        padding-left: 0;
    }

    .company-profile__row {
        grid-template-columns: 1fr;
        gap: var(--space-xs);
    }
}

/* --- 協働の取り組み（COLLABORATION）：構造・左paddingは会社概要と同じ、背景はHISTORYと同じ --- */
.company-collaboration-area {
    /* .company-history::before と同じ背景色（HISTORYはフルブリードの::beforeだが、
       こちらはsection自体が画面幅いっぱいなので直接背景色を指定すればよい） */
    background: #F7F6F4;
}

.company-collaboration {
    position: relative;
    max-width: var(--content-width);
    margin: var(--space-2xl) auto 0;
}

/* SP では前後のセクションとの間隔を詰める（haru指定） */
@media (max-width: 767px) {
    .company-collaboration {
        margin-top: 0;
        margin-bottom: 0;
    }
}

.company-collaboration__content {
    margin: 0;
    /* company-profile__table と同値：縦書きタイトルの右に間隔を空けて要素を右寄せ */
    padding-left: clamp(15rem, 20vw, 19rem);
}

@media (min-width: 768px) and (max-width: 1023px) {
    .company-collaboration__content {
        padding-left: clamp(130px, calc(43vw - 200px), 240px);
    }
}

@media (max-width: 767px) {
    .company-collaboration__content {
        padding-left: 0;
    }
}

/* --- 本文冒頭の写真2点（h3 の上に配置）--- */
.company-collaboration__photos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.company-collaboration__photos img {
    display: block;
    width: 100%;
    height: auto;
    /* 2枚の高さを揃えるため比率を固定。元画像（1477×985 / 1422×948）がどちらも3:2のため、
       トリミングがほぼ発生しない値として 3/2 を採用 */
    aspect-ratio: 3 / 2;
    border-radius: var(--radius-md);
    object-fit: cover;
}

/* PC では写真と見出しの間隔を倍に広げる（haru指定・SPは詰めたまま） */
@media (min-width: 768px) {
    .company-collaboration__photos {
        margin-bottom: calc(var(--space-lg) * 2);
    }
}

@media (max-width: 767px) {
    /* 横並びのままだと1枚あたりが狭く被写体が判別しづらいため縦積みにする */
    .company-collaboration__photos {
        grid-template-columns: 1fr;
    }
}

.company-collaboration__content h3 {
    /* haru指定：通常のh3 margin-bottom(--space-sm)の4倍 */
    margin: 0 0 calc(var(--space-sm) * 4);
    font-size: var(--text-lg);
}

.company-collaboration__content p {
    text-align: justify;
    font-size: var(--text-sm);
    line-height: 1.9;
}

.company-collaboration__content p+p {
    margin-top: var(--space-md);
}

.company-collaboration__partners {
    margin-top: var(--space-xl);
}

.company-collaboration__partners-label {
    margin: 0 0 var(--space-sm);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.08em;
    opacity: 0.7;
}

.company-collaboration__partners-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-xl);
    margin: 0;
    padding: 0;
    list-style: none;
}

/* SP ではロゴ同士の間隔を詰める（haru指定） */
@media (max-width: 767px) {
    .company-collaboration__partners-list {
        gap: var(--space-md);
    }
}

.company-collaboration__partners-list img {
    display: block;
    width: auto;
    height: 2.5rem;
    object-fit: contain;
    /* ロゴ（JPG）の白背景をセクション背景(#F7F6F4)に馴染ませる */
    mix-blend-mode: multiply;
}

@media (hover: hover) {
    .company-collaboration__partners-list a {
        transition: opacity var(--transition-base);
    }

    .company-collaboration__partners-list a:hover {
        opacity: 0.7;
    }
}

/* --- 取材・お問い合わせ導線（クリック可能なCTAカード）--- */
.company-cta {
    position: relative;
    display: block;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: var(--space-xl) var(--space-lg);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    text-align: center;
    transition: box-shadow var(--transition-base);
}

@media (hover: hover) {
    .company-cta:hover {
        box-shadow: var(--shadow-md);
    }
}

/* 白いカードの上端に半分だけ乗り上げるアイコン（支援カード .support-card__icon と同じ配色・比率） */
.company-cta__icon {
    position: absolute;
    top: 0;
    left: 50%;
    display: grid;
    place-items: center;
    /* トップページ .support-card__icon と同じサイズ・比率 */
    width: 3.5rem;
    height: 3.5rem;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.company-cta__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.company-cta__label {
    margin: 0 0 var(--space-sm);
    color: var(--color-primary);
    font-family: var(--font-serif);
    font-size: var(--text-xs);
    letter-spacing: 0.1em;
}

.company-cta__title {
    margin: 0 0 var(--space-md);
    font-size: var(--text-2xl);
}

/* SP幅：600pxを下回ると40pxでは折り返すため、画面幅に応じて連続的に縮小し1行を維持する
   （実測: 幅320pxまで6.3vw相当で安全マージンを持って収まる） */
@media (max-width: 767px) {
    .company-cta__title {
        font-size: clamp(16px, 6.3vw, 40px);
    }
}

.company-cta__text {
    font-size: var(--text-sm);
    line-height: 1.9;
}

@media (max-width: 767px) {
    .company-cta__text {
        text-align: justify;
    }
}