/* =========================================================
   変数（現行サイトの配色・書体に合わせる）
   ========================================================= */
:root {
    --color-red: #bb3236;
    --color-red-dark: #b2242d;
    --color-red-deep: #5c080b;
    --color-red-light: #e03737;
    --color-blue: #1e8bc6;
    /* 青背景に白文字を載せるとき用（コントラスト4.5:1以上） */
    --color-blue-dark: #1a7db3;
    --color-navy: #03436c;
    --color-yellow: #f8f831;
    --color-text: #202020;
    /* 白背景で読みやすいコントラスト（4.5:1以上）に調整 */
    --color-muted: #707070;
    --color-text-sub: #4a4a4a;
    --color-border: #e6e6e6;
    --color-bg: #fff;
    --color-bg-gray: #f5f5f5;

    --font-family-base: "Noto Sans JP", system-ui, -apple-system, "Hiragino Sans", "Yu Gothic UI", sans-serif;
    --font-family-en: "Teko", "Noto Sans JP", sans-serif;
    --font-weight-normal: 500;
    --font-weight-bold: 700;

    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.25rem;
    --font-size-xl: 1.75rem;
    --font-size-en-md: 2rem;
    --font-size-en-lg: 2.75rem;
    --font-size-en-xl: 3.5rem;
    --line-height-base: 1.9;
    --letter-spacing-base: 0.08em;

    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 40px;
    --radius-full: 999px;

    /* 現行サイトの「ずらした影」 */
    --shadow-offset: 4px 4px 0;
    --shadow-nav: 0 4px 0 var(--color-border);

    /* 押しやすさの最小サイズ（フィッツの法則） */
    --tap-min: 48px;
    --focus-ring: 0 0 0 3px var(--color-bg), 0 0 0 6px var(--color-blue);
    --transition-fast: 0.12s ease-out;

    --container-width: 1160px;
    --container-narrow: 860px;
    --header-height: 72px;
}

@media (min-width: 1024px) {
    :root {
        --font-size-xl: 2rem;
        --font-size-en-lg: 3.5rem;
        --font-size-en-xl: 4.5rem;
        --header-height: 120px;
    }
}

/* =========================================================
   ベース
   ========================================================= */
body {
    color: var(--color-text);
    background: var(--color-bg);
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-base);
    letter-spacing: var(--letter-spacing-base);
}

html,
body {
    /* 装飾の大きな英字がはみ出しても横スクロールさせない（clip はスクロール領域を作らず sticky を妨げない） */
    overflow-x: clip;
}

/* 古いブラウザで html・body の clip が効かない場合に備え、本文の範囲でも切る（画面幅いっぱいなので見た目は同じ） */
.site-main {
    overflow-x: clip;
}

body.is-nav-open {
    overflow: hidden;
}

/* キーボード操作時のフォーカスをすぐに分かるように（ドハティのしきい値） */
:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
    border-radius: var(--radius-sm);
}

a {
    color: inherit;
}

h1, h2, h3, h4 {
    font-weight: var(--font-weight-bold);
    line-height: 1.5;
    /* 狭い画面で最終行が1文字だけになるのを防ぐ（対応ブラウザのみ） */
    text-wrap: balance;
}

.icon {
    display: inline-block;
    flex-shrink: 0;
    width: 1em;
    height: 1em;
    fill: currentColor;
    vertical-align: middle;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: -9999px;
}

.skip-link:focus {
    top: var(--space-md);
    left: var(--space-md);
    z-index: 1000;
    padding: var(--space-sm) var(--space-md);
    background: var(--color-bg);
}

.container {
    width: min(100% - var(--space-md) * 2, var(--container-width));
    margin-inline: auto;
    padding-block: var(--space-lg) var(--space-xl);
}

.container--narrow {
    max-width: var(--container-narrow);
}

.site-main {
    display: block;
}

.note,
.no-posts {
    color: var(--color-muted);
    font-size: var(--font-size-sm);
}

/* =========================================================
   ボタン・リンク
   ========================================================= */
.button,
.wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    min-height: var(--tap-min);
    padding: 0.6em 1.75em;
    border: 2px solid var(--color-red);
    border-radius: var(--radius-sm);
    background: var(--color-bg);
    box-shadow: var(--shadow-offset) var(--color-red-dark);
    color: var(--color-text);
    font-weight: var(--font-weight-bold);
    text-decoration: none;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.button::after {
    content: "";
    width: 1.2em;
    height: 1.2em;
    border-radius: 50%;
    background: var(--color-red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 4l4 4-4 4' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") center / 70% no-repeat;
}

.button:hover,
.wp-block-button__link:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--color-red-dark);
}

/* 押した瞬間に沈む（操作への即時の反応） */
.button:active,
.wp-block-button__link:active {
    transform: translate(4px, 4px);
    box-shadow: 0 0 0 var(--color-red-dark);
}

/* 主要な行動：赤の塗り（フォン・レストルフ効果で他のボタンと区別） */
.button--primary {
    border-color: var(--color-red-deep);
    background: var(--color-red);
    box-shadow: var(--shadow-offset) var(--color-red-deep);
    color: var(--color-bg);
}

.button--primary::after {
    background-color: var(--color-bg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 4l4 4-4 4' fill='none' stroke='%23bb3236' stroke-width='2'/%3E%3C/svg%3E");
}

/* 色付き背景の上の控えめなボタン */
.button--ghost {
    border-color: var(--color-bg);
    background: transparent;
    box-shadow: none;
    color: var(--color-bg);
}

.button--ghost::after {
    background-color: var(--color-bg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 4l4 4-4 4' fill='none' stroke='%23b2242d' stroke-width='2'/%3E%3C/svg%3E");
}

.button--ghost:hover,
.button--ghost:active {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: none;
}

.back-link {
    margin-top: var(--space-xl);
    text-align: center;
}

.back-link a {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap-min);
    padding-inline: var(--space-md);
    color: var(--color-red);
    font-weight: var(--font-weight-bold);
}

/* =========================================================
   ヘッダー
   ========================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-bg);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    min-height: var(--header-height);
    padding: var(--space-sm) var(--space-md);
}

.site-header__brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-text);
    text-decoration: none;
}

.site-header__logo {
    width: 60px;
    height: auto;
}

.site-header__catch {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    line-height: 1.6;
}

.site-header__toggle {
    position: relative;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: var(--color-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

/* 2本線のハンバーガー */
.site-header__toggle-bar,
.site-header__toggle-bar::before {
    position: absolute;
    left: 50%;
    width: 18px;
    height: 2px;
    background: var(--color-text);
    transform: translateX(-50%);
    transition: transform 0.2s;
}

.site-header__toggle-bar {
    top: 20px;
}

.site-header__toggle-bar::before {
    content: "";
    top: 7px;
}

.site-header__toggle[aria-expanded="true"] .site-header__toggle-bar {
    top: 23px;
    transform: translateX(-50%) rotate(45deg);
}

.site-header__toggle[aria-expanded="true"] .site-header__toggle-bar::before {
    top: 0;
    transform: translateX(-50%) rotate(-90deg);
}

/* =========================================================
   グローバルナビ（スマホ：白い全画面パネル / PC：角丸の横並び）
   ========================================================= */
.global-nav {
    display: none;
    position: fixed;
    inset: var(--header-height) 0 0;
    overflow-y: auto;
    padding: var(--space-md) var(--space-lg) var(--space-xl);
    background: var(--color-bg);
    color: var(--color-text);
    overscroll-behavior: contain;
}

.global-nav.is-open {
    display: block;
}

.global-nav__item {
    position: relative;
    border-bottom: 1px solid var(--color-border);
}

.global-nav__link {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    min-height: 56px;
    padding: 0.5em 0;
    color: inherit;
    font-weight: var(--font-weight-bold);
    text-decoration: none;
}

.global-nav__icon {
    color: var(--color-red);
    font-size: 1.25em;
}

/* 下位メニューの開閉ボタン（右端の「∨」。押しやすいよう行の高さいっぱい） */
.global-nav__sub-toggle {
    position: absolute;
    top: 0;
    right: 0;
    width: 56px;
    height: 56px;
    border: 0;
    background: none;
    cursor: pointer;
}

.global-nav__sub-toggle::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--color-muted);
    border-bottom: 2px solid var(--color-muted);
    transform: translate(-50%, -75%) rotate(45deg);
    transition: transform var(--transition-fast);
}

.global-nav__sub-toggle[aria-expanded="true"]::before {
    transform: translate(-50%, -25%) rotate(-135deg);
}

.global-nav__sub {
    display: none;
    padding: 0 0 var(--space-md) calc(1.25em + var(--space-md));
}

.is-sub-open > .global-nav__sub {
    display: block;
}

.global-nav__sub-title {
    margin-top: var(--space-sm);
    color: var(--color-red);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
}

.global-nav__sub-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    color: inherit;
    font-size: var(--font-size-sm);
    text-decoration: none;
}

.global-nav__sns {
    display: flex;
    justify-content: center;
    margin-top: var(--space-xl);
    color: var(--color-muted);
}

/* スマホ：お問い合わせは最後に赤の塗りボタン */
.global-nav__item--cta {
    margin-top: var(--space-lg);
    border-bottom: 0;
}

.global-nav__item--cta .global-nav__link {
    justify-content: center;
    border-radius: var(--radius-full);
    background: var(--color-red);
    box-shadow: 0 4px 0 var(--color-red-deep);
    color: var(--color-bg);
}

.global-nav__item--cta .global-nav__icon {
    color: var(--color-bg);
}

/* メニューを開いている間は、閉じるボタンを赤にして目立たせる（現行サイトと同じ） */
.site-header__toggle[aria-expanded="true"] {
    background: var(--color-red-light);
}

.site-header__toggle[aria-expanded="true"] .site-header__toggle-bar,
.site-header__toggle[aria-expanded="true"] .site-header__toggle-bar::before {
    background: var(--color-bg);
}

@media (min-width: 1024px) {
    .site-header__inner {
        padding: var(--space-md) var(--space-lg);
    }

    .site-header__logo {
        width: 84px;
    }

    .site-header__toggle {
        display: none;
    }

    .global-nav {
        display: block;
        position: static;
        overflow: visible;
        padding: 0 var(--space-md);
        border-radius: var(--radius-full);
        box-shadow: var(--shadow-nav), 0 0 0 1px var(--color-border);
    }

    .global-nav__list {
        display: flex;
        align-items: center;
    }

    .global-nav__item {
        display: flex;
        align-items: center;
        border-bottom: 0;
    }

    .global-nav__link {
        gap: 0.4em;
        /* 見た目は細身のまま、押せる高さは44px確保する */
        min-height: 44px;
        margin-block: 4px;
        padding: 0 0.75em;
        border: 1px solid transparent;
        border-radius: var(--radius-full);
        font-size: 0.75rem;
        line-height: 1.4;
        white-space: nowrap;
        transition: border-color var(--transition-fast), background-color var(--transition-fast);
    }

    .global-nav__icon {
        font-size: 1.4em;
    }

    .global-nav__link:hover,
    .global-nav__link[aria-current="page"] {
        border-color: var(--color-red);
    }

    /* PCの開閉ボタンはリンク横の小さな「∨」（タッチ端末・キーボードでも開けるように） */
    .global-nav__sub-toggle {
        position: static;
        width: 44px;
        height: 44px;
        margin-left: -1em;
    }

    .global-nav__sub-toggle::before {
        position: relative;
        top: auto;
        left: auto;
        display: block;
        width: 7px;
        height: 7px;
        margin: 0 auto;
        transform: translateY(-25%) rotate(45deg);
    }

    .global-nav__sub-toggle[aria-expanded="true"]::before {
        transform: translateY(25%) rotate(-135deg);
    }

    /* 末尾の「お問い合わせ」だけ赤の塗り（系列位置効果・フォン・レストルフ効果） */
    .global-nav__item--cta {
        margin: 0 0 0 var(--space-xs);
    }

    .global-nav__item--cta .global-nav__link {
        padding-inline: 1.1em;
        box-shadow: none;
    }

    .global-nav__item--cta .global-nav__link:hover,
    .global-nav__item--cta .global-nav__link[aria-current="page"] {
        border-color: var(--color-red-deep);
        background: var(--color-red-dark);
    }

    /* 事業の下位メニュー（ホバー・キーボード操作・開閉ボタンで表示） */
    .global-nav__sub {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 10;
        gap: var(--space-lg);
        padding: var(--space-md) var(--space-lg);
        border-radius: var(--radius-md);
        background: var(--color-bg);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    }

    .global-nav__item:focus-within > .global-nav__sub,
    .is-sub-open > .global-nav__sub {
        display: flex;
    }

    @media (hover: hover) {
        .global-nav__item:hover > .global-nav__sub {
            display: flex;
        }
    }

    .global-nav__sub-link {
        min-height: 44px;
        white-space: nowrap;
    }

    .global-nav__sub-link:hover {
        color: var(--color-red);
    }

    .global-nav__sns {
        display: none;
    }
}

@media (min-width: 1280px) {
    .global-nav__link {
        font-size: 0.8125rem;
    }
}

/* 1024〜1439px：ナビ（トップ〜お問い合わせの8項目）が入りきるよう、ロゴ横のキャッチコピーを省く */
@media (min-width: 1024px) and (max-width: 1439px) {
    .site-header__catch {
        display: none;
    }
}

/* 1024〜1279px：さらにアイコンを省いて余白を詰める */
@media (min-width: 1024px) and (max-width: 1279px) {
    .site-header__inner {
        gap: var(--space-sm);
        padding-inline: var(--space-md);
    }

    .global-nav {
        padding-inline: var(--space-xs);
    }

    .global-nav__link {
        padding-inline: 0.5em;
    }

    .global-nav__icon {
        display: none;
    }
}

/* =========================================================
   SNSリンク
   ========================================================= */
.sns-links {
    display: flex;
    gap: var(--space-xs);
}

.sns-links__link {
    display: grid;
    place-items: center;
    min-width: var(--tap-min);
    min-height: var(--tap-min);
    color: inherit;
    font-size: 1.5rem;
    line-height: 1;
}

/* =========================================================
   ページ見出し（英字の大見出し＋日本語）
   ========================================================= */
.page-header {
    position: relative;
    isolation: isolate;
    margin-bottom: var(--space-xl);
    padding-top: var(--space-md);
    text-align: center;
}

/* 背景の大きな英字（装飾。画像を使わずフォントで描く） */
.page-header::before {
    content: "COPA CORPORATION";
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: -1;
    color: rgba(0, 0, 0, 0.035);
    font-family: var(--font-family-en);
    font-size: clamp(6rem, 16vw, 14rem);
    line-height: 1;
    white-space: nowrap;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.is-red .page-header::before,
.is-blue .page-header::before {
    color: rgba(255, 255, 255, 0.07);
}

.page-header__title {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: var(--space-xs);
}

.page-header__title-en {
    color: var(--color-text);
    font-family: var(--font-family-en);
    font-size: var(--font-size-en-xl);
    font-weight: var(--font-weight-normal);
    line-height: 1;
    letter-spacing: 0.04em;
}

.page-header__title-ja {
    color: var(--color-red);
    font-size: var(--font-size-sm);
}

/* 英字見出しが無いページは日本語を大きく */
.page-header__title:not(:has(.page-header__title-en)) .page-header__title-ja {
    color: var(--color-text);
    font-size: var(--font-size-xl);
}

.page-header__lead {
    max-width: 44em;
    margin: var(--space-md) auto 0;
    color: var(--color-text-sub);
    text-align: left;
}

.is-red .page-header__lead,
.is-blue .page-header__lead {
    color: var(--color-bg);
}

@media (min-width: 768px) {
    .page-header__lead {
        text-align: center;
    }
}

/* =========================================================
   セクション見出し
   ========================================================= */
.section {
    padding-block: var(--space-xl);
}

@media (min-width: 1024px) {
    .section {
        padding-block: var(--space-2xl);
    }
}

.section__title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-lg);
    color: var(--color-red);
    font-size: var(--font-size-sm);
    text-align: center;
}

.section__title-en {
    order: -1;
    color: var(--color-text);
    font-family: var(--font-family-en);
    font-size: var(--font-size-en-lg);
    font-weight: var(--font-weight-normal);
    line-height: 1;
}

.section__title-num {
    order: -1;
    color: var(--color-red);
    font-family: var(--font-family-en);
    font-size: var(--font-size-en-md);
    line-height: 1;
}

/* =========================================================
   ページ内ナビ・カテゴリー切り替え・タグ
   ========================================================= */
.page-nav,
.term-nav {
    margin-bottom: var(--space-xl);
}

.page-nav__list,
.term-nav__list,
.chip-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm) var(--space-md);
}

.page-nav__link,
.term-nav__link {
    display: inline-block;
    min-width: 8em;
    padding: 0.5em 1.5em;
    border: 2px solid var(--color-red);
    border-radius: var(--radius-full);
    background: var(--color-bg);
    color: var(--color-text);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    text-align: center;
    text-decoration: none;
}

.page-nav__link,
.term-nav__link {
    min-height: 44px;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.page-nav__link:hover,
.term-nav__link:hover,
.term-nav__link[aria-current="page"] {
    background: var(--color-red);
    color: var(--color-bg);
}

@media (max-width: 767px) {
    .term-nav__list {
        flex-wrap: nowrap;
        justify-content: flex-start;
        margin-inline: calc(var(--space-md) * -1);
        padding: var(--space-xs) var(--space-md);
        overflow-x: auto;
        scrollbar-width: none;
        /* 右端を薄くして、横に続きがあることを示す */
        mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
    }

    .term-nav__link {
        min-width: 0;
        white-space: nowrap;
    }
}

.chip-list__item {
    padding: 0.4em 1.2em;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
}

.tag {
    display: inline-block;
    padding: 0.1em 0.8em;
    border-radius: 3px;
    background: var(--color-muted);
    color: var(--color-bg);
    font-size: var(--font-size-xs);
}

.tag--must {
    background: var(--color-red);
}

/* =========================================================
   色付き背景のページ（一覧ページ）：実演販売士は赤、商品は青（現行と同じ）
   ========================================================= */
.is-red {
    --page-color: var(--color-red);
}

.is-blue {
    --page-color: var(--color-blue-dark);
}

.is-red,
.is-blue {
    background: var(--page-color);
    color: var(--color-bg);
}

:is(.is-red, .is-blue) :is(.page-header__title-en, .page-header__title-ja, .section__title, .section__title-en) {
    color: var(--color-bg);
}

:is(.is-red, .is-blue) .term-nav__link {
    border-color: var(--color-bg);
}

:is(.is-red, .is-blue) .term-nav__link:hover,
:is(.is-red, .is-blue) .term-nav__link[aria-current="page"] {
    background: var(--color-bg);
    color: var(--page-color);
}

:is(.is-red, .is-blue) :is(.no-posts, .back-link a) {
    color: var(--color-bg);
}

/* =========================================================
   カード一覧（ニュース・商品・実演販売士）
   ========================================================= */
.card-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
    gap: var(--space-lg);
}

.card-list--news {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

/* 商品・実演販売士：スマホも現行と同じ2列（1列だとページが長くなりすぎる） */
.card-list--product,
.card-list--character {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-md) var(--space-sm);
}

@media (min-width: 768px) {
    .card-list--product,
    .card-list--character {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: var(--space-lg);
    }
}

.card-news__link,
.card-product__link {
    display: flex;
    position: relative;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--color-bg);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.25);
    color: var(--color-text);
    text-decoration: none;
    transition: transform 0.15s;
}

.card-news__link,
.card-product__link {
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.card-news__link:hover,
.card-product__link:hover,
.card-news__link:focus-visible,
.card-product__link:focus-visible {
    transform: translateY(-4px);
    box-shadow: 6px 10px 0 rgba(0, 0, 0, 0.25);
}

.card-news__link:active,
.card-product__link:active {
    transform: translateY(0);
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.25);
}

.card-news__image,
.card-product__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.card-product__image {
    aspect-ratio: 1;
    padding: var(--space-md) var(--space-md) 0;
    object-fit: contain;
    background: var(--color-bg);
}

.card-news__body {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-md) var(--space-lg);
}

.card-news__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
}

.card-news__category,
.entry__category,
.pickup__category {
    display: inline-block;
    padding: 0 1em;
    border: 1px solid var(--color-red);
    border-radius: var(--radius-full);
    color: var(--color-red);
    font-size: var(--font-size-xs);
    text-decoration: none;
}

/* 詳細ページの分類は押せるリンクなので高さを確保する（カード内の分類はカード全体がリンク） */
.entry__category {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-inline: 1.25em;
}

.card-news__date,
.entry__date,
.pickup__date {
    color: var(--color-muted);
    font-size: var(--font-size-xs);
}

.card-news__title {
    font-size: var(--font-size-base);
    line-height: 1.6;
}

.card-news__excerpt {
    display: -webkit-box;
    overflow: hidden;
    color: var(--color-muted);
    font-size: var(--font-size-xs);
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.card-product__copy {
    padding: var(--space-md) var(--space-md) 0;
    color: var(--color-text);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    line-height: 1.5;
}

.card-product__copy {
    color: var(--color-blue);
}

/* 現行と同じく商品カードの文字は中央寄せ */
.card-product__link {
    text-align: center;
}

@media (max-width: 767px) {
    .card-product__image {
        padding: var(--space-sm) var(--space-sm) 0;
    }

    .card-product__copy {
        padding: var(--space-sm) var(--space-sm) 0;
    }

    .card-product__name {
        padding: 0 var(--space-sm);
        font-size: var(--font-size-sm);
        line-height: 1.5;
    }

    .card-product__price {
        padding: 0 var(--space-sm) var(--space-sm);
    }

}

.card-product__name {
    padding: 0 var(--space-md);
    font-size: var(--font-size-base);
}

.card-product__price {
    margin-top: auto;
    padding: 0 var(--space-md) var(--space-md);
    color: var(--color-blue);
    font-family: var(--font-family-en);
    font-size: var(--font-size-lg);
}

.card-product__badge,
.product-detail__badge {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    z-index: 1;
    padding: 0.1em 0.8em;
    border-radius: var(--radius-full);
    background: var(--color-yellow);
    color: var(--color-text);
    font-family: var(--font-family-en);
    font-size: var(--font-size-base);
}

/* ピックアップニュース */
.pickup {
    margin-bottom: var(--space-xl);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-sm);
    background: var(--color-bg);
    color: var(--color-text);
}

.pickup__title {
    color: var(--color-red);
    font-family: var(--font-family-en);
    font-size: var(--font-size-en-md);
    font-weight: var(--font-weight-normal);
    line-height: 1.2;
}

.pickup__link {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-sm) var(--space-md);
    padding-block: var(--space-sm);
    border-top: 1px solid var(--color-border);
    text-decoration: none;
}

.pickup__text {
    flex-basis: 100%;
    font-weight: var(--font-weight-bold);
}

@media (min-width: 768px) {
    .pickup__text {
        flex-basis: auto;
    }
}

/* ページ送り */
.pagination {
    margin-top: var(--space-xl);
}

.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
}

.pagination .page-numbers {
    display: grid;
    place-items: center;
    min-width: 2.5em;
    height: 2.5em;
    padding: 0 0.75em;
    border-radius: var(--radius-full);
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-family-en);
    font-size: var(--font-size-lg);
    text-decoration: none;
}

.pagination .page-numbers.current {
    background: var(--color-text);
    color: var(--color-bg);
}

/* =========================================================
   実演販売士（一覧の冒頭・カード）
   人物を主役にする：丸い台座の上の大きな写真、吹き出しのキャッチコピー、大きな名前
   ========================================================= */
.staff-hero {
    padding-block: var(--space-lg);
}

.staff-hero__statement {
    font-size: clamp(2.25rem, 9vw, 6rem);
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    letter-spacing: 0.04em;
}

.staff-hero__lead-in {
    display: block;
    margin-bottom: var(--space-sm);
    font-size: var(--font-size-lg);
    letter-spacing: var(--letter-spacing-base);
}

.staff-hero__line {
    display: block;
    width: fit-content;
}

/* 蛍光ペンの下線（画像を使わず背景のグラデーションで描く。動きがあるときは左から引く） */
.staff-hero__marker {
    background: linear-gradient(transparent 68%, rgba(248, 248, 49, 0.85) 68% 92%, transparent 92%) left / 100% 100% no-repeat;
}

.staff-hero__info {
    display: grid;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.staff-hero__title {
    display: flex;
    flex-direction: column;
}

.staff-hero__title-en {
    font-family: var(--font-family-en);
    font-size: var(--font-size-en-lg);
    font-weight: var(--font-weight-normal);
    line-height: 1;
}

.staff-hero__title-ja {
    font-size: var(--font-size-sm);
}

.staff-hero__description {
    font-size: var(--font-size-sm);
}

.staff-hero__count {
    display: flex;
    align-items: baseline;
    gap: var(--space-xs);
    font-weight: var(--font-weight-bold);
}

.staff-hero__count-num {
    color: var(--color-yellow);
    font-family: var(--font-family-en);
    font-size: var(--font-size-en-lg);
    font-weight: var(--font-weight-normal);
    line-height: 1;
}

@media (min-width: 1024px) {
    .staff-hero {
        padding-block: var(--space-xl);
    }

    .staff-hero__info {
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: var(--space-lg);
    }

    .staff-hero__description {
        padding-left: var(--space-lg);
        border-left: 1px solid rgba(255, 255, 255, 0.5);
        font-size: var(--font-size-base);
    }
}

/* ---------- 冒頭の動き（character.js が .has-motion を付けたときだけ） ---------- */
.has-motion .staff-hero__lead-in {
    animation: staff-fade-up 0.6s ease-out both;
}

.has-motion .staff-hero__char {
    display: inline-block;
    animation: staff-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    animation-delay: calc(350ms + var(--i, 0) * 45ms);
}

.has-motion .staff-hero__marker {
    animation: staff-marker 0.5s ease-out 1s both;
}

.has-motion .staff-hero__info {
    animation: staff-fade-up 0.7s ease-out 1.1s both;
}

@keyframes staff-fade-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
}

/* 文字が下から弾んで出る */
@keyframes staff-pop {
    from {
        opacity: 0;
        transform: translateY(0.5em) scale(0.5) rotate(-10deg);
    }
}

@keyframes staff-marker {
    from {
        background-size: 0 100%;
    }
}

/* ---------- 顔ぶれの帯：横に流れ続ける（ホバー中は止まる） ---------- */
.staff-parade {
    margin-bottom: var(--space-xl);
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.staff-parade__viewport {
    display: flex;
    width: max-content;
    animation: staff-parade 45s linear infinite;
}

.staff-parade:hover .staff-parade__viewport,
.staff-parade:focus-within .staff-parade__viewport {
    animation-play-state: paused;
}

@keyframes staff-parade {
    to {
        transform: translateX(-50%);
    }
}

.staff-parade__list {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-md) var(--space-sm) 0;
}

.staff-parade__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    width: 88px;
    color: var(--color-bg);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    /* 名前の途中で改行しないよう、文節で折り返す（対応ブラウザのみ） */
    word-break: auto-phrase;
    text-wrap: balance;
}

.staff-parade__face {
    display: block;
    width: 80px;
    aspect-ratio: 1;
    overflow: hidden;
    border: 3px solid var(--color-bg);
    border-radius: 50%;
    background: var(--color-bg);
    box-shadow: 3px 3px 0 var(--color-red-deep);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), border-color var(--transition-fast);
}

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

.staff-parade__img.dummy-image {
    min-height: 0;
    padding: 0;
    border: 0;
}

.staff-parade__img .dummy-image__text {
    font-size: var(--font-size-sm);
}

.staff-parade__img .dummy-image__label {
    display: none;
}

.staff-parade__link:hover .staff-parade__face,
.staff-parade__link:focus-visible .staff-parade__face {
    border-color: var(--color-yellow);
    transform: scale(1.12) rotate(-6deg);
}

.staff-parade__link:hover .staff-parade__name {
    color: var(--color-yellow);
}

@media (min-width: 768px) {
    .staff-parade__link {
        width: 112px;
        font-size: var(--font-size-sm);
    }

    .staff-parade__face {
        width: 104px;
    }
}

/* ---------- スポットライト：1人ずつ大きく紹介 ---------- */
.staff-spotlight {
    margin-bottom: var(--space-2xl);
}

.staff-spotlight__panel {
    display: grid;
    gap: var(--space-lg);
    align-items: center;
}

/* display の指定で hidden 属性が効かなくならないようにする */
.staff-spotlight[hidden],
.staff-spotlight__panel[hidden] {
    display: none;
}

.staff-spotlight__visual {
    display: grid;
    position: relative;
    isolation: isolate;
    width: min(100%, 480px);
    aspect-ratio: 1;
    margin-inline: auto;
    place-items: end center;
}

.staff-spotlight__ring {
    position: absolute;
    inset: 5%;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 35%, #fff 0 25%, #ffe1e1 72%);
    box-shadow: 0 0 0 14px rgba(255, 255, 255, 0.14), 0 0 0 30px rgba(255, 255, 255, 0.07);
}

.staff-spotlight__img {
    width: 92%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
}

.staff-spotlight__img.dummy-image {
    align-self: center;
    width: 86%;
    height: auto;
    aspect-ratio: 1;
    border-radius: 50%;
}

/* 背景に大きく敷く英字名 */
.staff-spotlight__bg-name {
    position: absolute;
    bottom: 2%;
    left: 50%;
    z-index: -2;
    color: rgba(255, 255, 255, 0.1);
    font-family: var(--font-family-en);
    font-size: clamp(4rem, 16vw, 9rem);
    line-height: 1;
    white-space: nowrap;
    transform: translateX(-50%);
    pointer-events: none;
}

.staff-spotlight__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
}

.staff-spotlight__label {
    color: var(--color-yellow);
    font-family: var(--font-family-en);
    font-size: var(--font-size-lg);
    line-height: 1;
    letter-spacing: 0.15em;
}

.staff-spotlight__num {
    font-size: 1.6em;
}

.staff-spotlight__copy {
    position: relative;
    padding: 0.5em 1.25em;
    border: 2px solid var(--color-text);
    border-radius: var(--radius-md);
    background: var(--color-yellow);
    color: var(--color-text);
    font-weight: var(--font-weight-bold);
    line-height: 1.5;
}

/* 吹き出しのしっぽ（スマホは上向き、PCは写真のある左向き） */
.staff-spotlight__copy::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 2em;
    width: 14px;
    height: 12px;
    background: var(--color-text);
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.staff-spotlight__name {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.staff-spotlight__name-ja {
    font-size: clamp(1.75rem, 5vw, 3rem);
    line-height: 1.25;
}

.staff-spotlight__name-en {
    color: var(--color-yellow);
    font-family: var(--font-family-en);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-normal);
    line-height: 1;
    letter-spacing: 0.15em;
}

.staff-spotlight__position {
    padding: 0 1em;
    border: 1px solid var(--color-bg);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
}

.staff-spotlight__description {
    max-width: 32em;
}

.staff-spotlight__button {
    margin-top: var(--space-sm);
}

@media (min-width: 1024px) {
    .staff-spotlight__panel {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: var(--space-xl);
    }

    .staff-spotlight__copy {
        margin-left: var(--space-sm);
        font-size: var(--font-size-lg);
    }

    .staff-spotlight__copy::before {
        top: 50%;
        right: 100%;
        bottom: auto;
        left: auto;
        width: 12px;
        height: 14px;
        clip-path: polygon(0 50%, 100% 0, 100% 100%);
        transform: translateY(-50%);
    }
}

/* 切り替わったときの動き：台座が広がり、人物が下から現れ、文字が順に出る */
.has-motion .staff-spotlight__panel.is-entering .staff-spotlight__ring {
    animation: staff-ring 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.has-motion .staff-spotlight__panel.is-entering .staff-spotlight__img {
    animation: staff-rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s both;
}

.has-motion .staff-spotlight__panel.is-entering .staff-spotlight__bg-name {
    animation: staff-slide 0.9s ease-out both;
}

.has-motion .staff-spotlight__panel.is-entering .staff-spotlight__body > * {
    animation: staff-fade-up 0.5s ease-out both;
}

.has-motion .staff-spotlight__panel.is-entering .staff-spotlight__body > :nth-child(2) { animation-delay: 0.08s; }
.has-motion .staff-spotlight__panel.is-entering .staff-spotlight__body > :nth-child(3) { animation-delay: 0.16s; }
.has-motion .staff-spotlight__panel.is-entering .staff-spotlight__body > :nth-child(4) { animation-delay: 0.24s; }
.has-motion .staff-spotlight__panel.is-entering .staff-spotlight__body > :nth-child(5) { animation-delay: 0.32s; }
.has-motion .staff-spotlight__panel.is-entering .staff-spotlight__body > :nth-child(6) { animation-delay: 0.4s; }

@keyframes staff-ring {
    from {
        transform: scale(0.6);
        opacity: 0;
    }
}

@keyframes staff-rise {
    from {
        transform: translateY(18%);
        opacity: 0;
    }
}

@keyframes staff-slide {
    from {
        transform: translateX(-40%);
        opacity: 0;
    }
}

/* タブ：顔と名前。選択中は白、下の線が次の人へ切り替わるまでの残り時間 */
.staff-spotlight__controls {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.staff-spotlight__tabs {
    display: flex;
    flex: 1;
    gap: var(--space-sm);
    min-width: 0;
    padding: var(--space-xs) 2px;
    overflow-x: auto;
    scrollbar-width: none;
}

.staff-spotlight__tabs::-webkit-scrollbar {
    display: none;
}

.staff-spotlight__tab {
    display: flex;
    position: relative;
    flex: 0 0 auto;
    align-items: center;
    gap: var(--space-sm);
    min-height: 52px;
    padding: 4px 1.25em 4px 4px;
    overflow: hidden;
    border: 0;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.14);
    color: var(--color-bg);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    white-space: nowrap;
    cursor: pointer;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.staff-spotlight__tab:hover {
    background: rgba(255, 255, 255, 0.28);
}

.staff-spotlight__tab[aria-selected="true"] {
    background: var(--color-bg);
    color: var(--color-red);
}

.staff-spotlight__tab:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 3px var(--color-yellow);
}

.staff-spotlight__tab-face {
    width: 44px;
    height: 44px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--color-bg);
}

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

.staff-spotlight__tab-img.dummy-image {
    min-height: 0;
    padding: 0;
    border: 0;
}

.staff-spotlight__tab-img .dummy-image__text,
.staff-spotlight__tab-img .dummy-image__label {
    display: none;
}

.staff-spotlight__progress {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--color-red);
    transform: scaleX(0);
    transform-origin: left;
}

.staff-spotlight__tab[aria-selected="true"] .staff-spotlight__progress {
    animation: staff-progress 6s linear forwards;
}

.is-paused .staff-spotlight__progress,
.is-holding .staff-spotlight__progress,
.is-offscreen .staff-spotlight__progress {
    animation-play-state: paused !important;
}

/* 一時停止中は残り時間の線を出さない */
.is-paused .staff-spotlight__tab[aria-selected="true"] .staff-spotlight__progress {
    visibility: hidden;
}

@keyframes staff-progress {
    to {
        transform: scaleX(1);
    }
}

/* 一時停止・再開ボタン（停止中は再生の三角） */
.staff-spotlight__pause {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 2px solid var(--color-bg);
    border-radius: 50%;
    background: transparent;
    color: var(--color-bg);
    cursor: pointer;
}

.staff-spotlight__pause::before {
    content: "";
    width: 12px;
    height: 14px;
    border-inline: 4px solid currentColor;
}

.staff-spotlight__pause[aria-pressed="true"]::before {
    width: 14px;
    border: 0;
    background: currentColor;
    clip-path: polygon(15% 0, 100% 50%, 15% 100%);
}

.staff-spotlight__pause:hover {
    background: rgba(255, 255, 255, 0.14);
}

/* ---------- 一覧のカード：画面に入ると下から順に出る・マウスに合わせて傾く・写真が弾む ---------- */
.has-motion .card-list--character .card-character {
    opacity: 0;
    transform: translateY(48px);
    transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    transition-delay: var(--delay, 0ms);
}

.has-motion .card-list--character .card-character.is-visible {
    opacity: 1;
    transform: none;
}

.has-motion .card-character__link {
    transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
}

.has-motion .card-character__link:hover,
.has-motion .card-character__link:focus-visible {
    transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(-6px);
}

.has-motion .card-character__link:hover .card-character__image {
    animation: staff-bounce 0.55s ease-out forwards;
}

.has-motion .card-character__link:hover .card-character__copy {
    animation: staff-wiggle 0.5s ease-in-out;
}

@keyframes staff-bounce {
    0% {
        transform: none;
    }

    40% {
        transform: translateY(-8%) scale(1.08);
    }

    70% {
        transform: translateY(-2%) scale(1.04);
    }

    100% {
        transform: scale(1.06);
    }
}

@keyframes staff-wiggle {
    25% {
        transform: rotate(-4deg);
    }

    50% {
        transform: rotate(3deg);
    }

    75% {
        transform: rotate(-2deg);
    }
}

/* 動きを減らす設定：帯は流さず横スクロールで見せ、複製した2組目は隠す */
@media (prefers-reduced-motion: reduce) {
    .staff-parade {
        overflow-x: auto;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .staff-parade__viewport {
        animation: none;
    }

    .staff-parade__list[aria-hidden="true"] {
        display: none;
    }
}

/* 切り替えの英字（MEN・WOMEN 等） */
.term-nav__en {
    margin-right: 0.4em;
    font-family: var(--font-family-en);
    font-size: 1.25em;
    font-weight: var(--font-weight-normal);
    line-height: 1;
}

.staff-archive .term-nav__link {
    display: inline-flex;
    align-items: center;
}

/* カード */
.card-character__link {
    display: flex;
    position: relative;
    flex-direction: column;
    align-items: center;
    height: 100%;
    padding: var(--space-md) var(--space-sm) var(--space-lg);
    border-radius: 28px;
    background: var(--color-bg);
    box-shadow: 6px 6px 0 var(--color-red-deep);
    color: var(--color-text);
    text-align: center;
    text-decoration: none;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.card-character__link:hover,
.card-character__link:focus-visible {
    transform: translate(-2px, -4px);
    box-shadow: 8px 10px 0 var(--color-red-deep);
}

.card-character__link:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--color-red-deep);
}

/* 写真の台座：丸い背景の上に人物を立たせる */
.card-character__visual {
    display: grid;
    position: relative;
    isolation: isolate;
    width: 100%;
    aspect-ratio: 1;
    place-items: end center;
}

.card-character__visual::before {
    content: "";
    position: absolute;
    inset: 8% 4% 0;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 35%, #fff 0 20%, #fde3e3 70%);
    transition: background-color var(--transition-fast), transform 0.2s ease-out;
}

.card-character__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    transform-origin: center bottom;
    transition: transform 0.2s ease-out;
}

.card-character__link:hover .card-character__image,
.card-character__link:focus-visible .card-character__image {
    transform: scale(1.06);
}

.card-character__link:hover .card-character__visual::before,
.card-character__link:focus-visible .card-character__visual::before {
    background: radial-gradient(circle at 50% 35%, #fff 0 20%, #fbf7a8 70%);
    transform: scale(1.04);
}

.card-character__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    width: 100%;
}

/* キャッチコピーの吹き出し（写真の人物が話しているように上向きのしっぽを付ける） */
.card-character__copy {
    position: relative;
    max-width: 100%;
    margin-top: calc(var(--space-md) * -1);
    margin-bottom: var(--space-xs);
    padding: 0.4em 1em;
    border: 2px solid var(--color-text);
    border-radius: var(--radius-md);
    background: var(--color-yellow);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    line-height: 1.5;
}

.card-character__copy::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    width: 12px;
    height: 10px;
    background: var(--color-text);
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    transform: translateX(-50%);
}

.card-character__name {
    display: flex;
    flex-direction: column;
    gap: 0.1em;
}

.card-character__name-ja {
    font-size: var(--font-size-lg);
    line-height: 1.4;
}

.card-character__name-en {
    color: var(--color-red);
    font-family: var(--font-family-en);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: 1;
    letter-spacing: 0.12em;
}

.card-character__position {
    margin-top: var(--space-xs);
    padding: 0 1em;
    border: 1px solid var(--color-text);
    border-radius: var(--radius-full);
    color: var(--color-text-sub);
    font-size: var(--font-size-xs);
}

/* 右下の矢印：カード全体が押せることを示す */
.card-character__more {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 4l4 4-4 4' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") center / 70% no-repeat;
    transition: transform var(--transition-fast);
}

.card-character__link:hover .card-character__more {
    transform: translateX(3px);
}

@media (max-width: 767px) {
    .card-character__link {
        padding: var(--space-sm) var(--space-xs) var(--space-lg);
        border-radius: var(--radius-md);
        box-shadow: 4px 4px 0 var(--color-red-deep);
    }

    .card-character__copy {
        padding: 0.3em 0.75em;
        font-size: 0.6875rem;
    }

    .card-character__name-ja {
        font-size: var(--font-size-base);
    }

    .card-character__name-en {
        font-size: var(--font-size-sm);
    }

    .card-character__more {
        right: 8px;
        bottom: 8px;
        width: 22px;
        height: 22px;
    }
}

@media (min-width: 768px) {
    .card-list--character {
        grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
        gap: var(--space-xl) var(--space-lg);
    }
}

/* 赤背景以外（詳細ページ下部の関連一覧）でも台座の影が沈まないよう、淡い影にする */
.related .card-character__link {
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.12), 0 0 0 1px var(--color-border);
}

@media (prefers-reduced-motion: reduce) {
    .card-character__link:hover .card-character__image,
    .card-character__link:hover .card-character__visual::before {
        transform: none;
    }
}

/* =========================================================
   記事本文
   ========================================================= */
.entry__header {
    margin-bottom: var(--space-lg);
}

.entry__meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-sm);
}

.entry__title {
    font-size: var(--font-size-xl);
}

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

.entry__image img {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-sm);
    background: var(--color-bg-gray);
    object-fit: contain;
}

.entry__content {
    /* 長いURLなどで右が切れないよう、どこでも折り返せるようにする */
    overflow-wrap: anywhere;
}

.entry__content > * + * {
    margin-top: var(--space-md);
}

.entry__content h2 {
    margin-top: var(--space-xl);
    padding: 0.5em 1em;
    border-radius: var(--radius-full);
    background: var(--color-red);
    color: var(--color-bg);
    font-size: var(--font-size-lg);
    text-align: center;
}

.product-detail .entry__content h2 {
    background: var(--color-blue);
}

.entry__content h3 {
    margin-top: var(--space-lg);
    padding-left: var(--space-sm);
    border-left: 4px solid var(--color-red);
    font-size: var(--font-size-base);
}

/* 事業詳細：本文（既存DB）で中央寄せ指定の小見出し（卸売事業の「通販」「店頭」）も、他の小見出しと同じ左揃えにする */
.single-business .entry__content h3.has-text-align-center {
    text-align: left;
}

.entry__content a {
    color: var(--color-red);
}

.entry__content img {
    border-radius: var(--radius-sm);
}

/* 本文の埋め込み（YouTube・Googleマップ）。width 属性の固定幅を画面幅に合わせる */
.entry__content iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border: 0;
}

.entry__content iframe[src*="google.com/maps"] {
    aspect-ratio: 4 / 3;
}

/* 本文の表（ブロックエディターの表）。スマホは項目名と内容を縦に積む */
.entry__content .wp-block-table table {
    width: 100%;
    border-collapse: collapse;
}

.entry__content .wp-block-table tr {
    display: block;
    border-bottom: 1px solid var(--color-border);
}

.entry__content .wp-block-table td {
    display: block;
    padding: var(--space-sm) 0;
    border: 0;
}

.entry__content .wp-block-table td:first-child:not(:only-child) {
    padding-top: var(--space-md);
    color: var(--color-red);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
}

@media (min-width: 768px) {
    .entry__content .wp-block-table tr {
        display: table-row;
    }

    .entry__content .wp-block-table td {
        display: table-cell;
        padding: var(--space-md);
        border-bottom: 1px solid var(--color-border);
        vertical-align: top;
    }

    .entry__content .wp-block-table td:first-child:not(:only-child) {
        width: 30%;
    }
}

/* 本文のリンクリスト（現行の ACF ブロック acf/link-list。inc/blocks.php） */
.link-list__list {
    display: grid;
    gap: var(--space-sm);
    padding: 0;
    list-style: none;
}

.entry__content .link-list__link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    min-height: var(--tap-min);
    padding: var(--space-sm) var(--space-md);
    border: 2px solid var(--color-red);
    border-radius: var(--radius-sm);
    color: var(--color-red);
    font-weight: var(--font-weight-bold);
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.entry__content .link-list__link:hover,
.entry__content .link-list__link:focus-visible {
    background: var(--color-red);
    color: var(--color-bg);
}

.link-list__icon {
    flex-shrink: 0;
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.sub-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.sub-images__img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.post-nav {
    display: grid;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.post-nav__link {
    display: flex;
    flex-direction: column;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-sm);
    background: var(--color-bg-gray);
    color: var(--color-text);
    text-decoration: none;
}

.post-nav__link--next {
    text-align: right;
}

.post-nav__label {
    color: var(--color-red);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
}

@media (min-width: 768px) {
    .post-nav {
        grid-template-columns: 1fr 1fr;
    }

    .post-nav__link--next {
        grid-column: 2;
    }
}

/* =========================================================
   商品・実演販売士の詳細
   ========================================================= */
.product-detail,
.character-detail {
    display: grid;
    /* 本文の画像・埋め込みの width 属性で列が広がらないよう、最小幅を 0 にする */
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-lg);
}

.product-detail__main-image,
.character-detail__main-image {
    position: relative;
    margin-bottom: var(--space-md);
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--color-bg);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.product-detail__main-img,
.character-detail__main-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
}

.product-detail__header,
.character-detail__header {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.product-detail__copy,
.character-detail__copy {
    align-self: flex-start;
    padding-bottom: 0.2em;
    border-bottom: 2px solid currentColor;
    font-weight: var(--font-weight-bold);
}

.product-detail__title,
.character-detail__title {
    display: flex;
    flex-direction: column;
    font-size: var(--font-size-xl);
}

.character-detail__name-en {
    color: var(--color-red);
    font-family: var(--font-family-en);
    font-size: var(--font-size-en-md);
    font-weight: var(--font-weight-normal);
    line-height: 1;
}

.character-detail__position {
    color: var(--color-muted);
    font-size: var(--font-size-sm);
}

.product-detail__price {
    font-size: var(--font-size-xs);
}

.product-detail__price-value {
    margin-right: var(--space-sm);
    color: var(--color-blue);
    font-family: var(--font-family-en);
    font-size: var(--font-size-en-md);
}

.product-detail__buy {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    min-height: 56px;
    padding: 0.75em 2.5em;
    border-radius: var(--radius-full);
    background: var(--color-blue);
    box-shadow: var(--shadow-offset) var(--color-navy);
    color: var(--color-bg);
    font-weight: var(--font-weight-bold);
    text-decoration: none;
}

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

.skills__title {
    margin-bottom: var(--space-sm);
    font-size: var(--font-size-base);
}

/* レーダーチャート（template-parts/skill-chart.php。現行の canvas 描画と同じ配色） */
.skill-chart {
    display: grid;
    width: min(100%, 360px);
    margin-inline: auto;
}

.skill-chart > * {
    grid-area: 1 / 1;
}

/* 中央の画像（現行は横幅 220px を 340px の図に重ねる） */
.skill-chart__image {
    place-self: center;
    width: 52%;
    height: auto;
}

.skill-chart__svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

.skill-chart__grid {
    fill: none;
    stroke: #e0e0e0;
}

.skill-chart__area {
    fill: rgba(222, 0, 0, 0.3);
    stroke: var(--color-red);
}

.skill-chart__dot {
    fill: var(--color-bg);
    stroke: var(--color-red);
    stroke-width: 3;
}

.skill-chart__dot.is-max {
    fill: var(--color-red);
}

.skill-chart__label {
    fill: var(--color-text);
    font-size: 15px;
    text-anchor: middle;
    dominant-baseline: middle;
}

.skill-chart__label.is-max {
    font-weight: var(--font-weight-bold);
}

.related,
.character-contact {
    margin-top: var(--space-2xl);
}

.related__title,
.character-contact__title {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: var(--space-lg);
    color: var(--color-red);
    font-size: var(--font-size-sm);
    text-align: center;
}

.related--product .related__title {
    color: var(--color-blue-dark);
}

.related__title-en,
.character-contact__title-en {
    color: var(--color-text);
    font-family: var(--font-family-en);
    font-size: var(--font-size-en-lg);
    font-weight: var(--font-weight-normal);
    line-height: 1;
}

.character-contact {
    padding: var(--space-lg) var(--space-md);
    border: 2px solid var(--color-red);
    border-radius: var(--radius-md);
}

.character-contact__text {
    margin-bottom: var(--space-md);
    text-align: center;
}

@media (min-width: 768px) {
    .product-detail,
    .character-detail {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-xl);
    }
}

/* =========================================================
   事業
   ========================================================= */
.business-group {
    margin-bottom: var(--space-xl);
    padding: var(--space-lg) var(--space-md);
    border-radius: var(--radius-lg);
    background: var(--color-blue);
    color: var(--color-bg);
}

.business-group--sales {
    background: var(--color-red);
}

.business-group__image {
    width: min(100%, 320px);
    margin: 0 auto var(--space-sm);
}

/* 横長のフライパンと縦長のエプロンで、見た目の大きさをそろえる（高さ約180px） */
.business-group--create .business-group__image {
    width: min(100%, 480px);
}

.business-group--sales .business-group__image {
    width: min(100%, 136px);
}

.business-group__title {
    margin-bottom: var(--space-lg);
    font-size: var(--font-size-xl);
    text-align: center;
}

.business-group__list,
.business-nav__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

/* 事業一覧：カードの枚数（2枚・3枚）に合わせて行いっぱいに広げ、左に寄らないようにする */
.business-group__list {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.business-card__link,
.business-nav__link {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    height: 100%;
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    background: var(--color-bg);
    box-shadow: var(--shadow-offset) var(--color-navy);
    color: var(--color-text);
    text-decoration: none;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.business-group--sales .business-card__link {
    box-shadow: var(--shadow-offset) var(--color-red-deep);
}

.business-card__tag,
.business-nav__en,
.business-group__button-en {
    color: var(--color-blue);
    font-family: var(--font-family-en);
    font-size: var(--font-size-lg);
    line-height: 1;
}

.business-group--sales .business-card__tag,
.business-group--sales .business-group__button-en {
    color: var(--color-red);
}

.business-card__title {
    font-size: var(--font-size-lg);
}

.business-card__text {
    font-size: var(--font-size-sm);
}

/* カード全体がリンクであることを示す（右下の「詳しく見る ＞」） */
.business-card__more {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    align-self: flex-end;
    margin-top: auto;
    padding-top: var(--space-sm);
    color: var(--color-blue);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
}

.business-card__more::after {
    content: "";
    width: 1.5em;
    height: 1.5em;
    border-radius: 50%;
    background: currentColor url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 4l4 4-4 4' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") center / 70% no-repeat;
    transition: transform var(--transition-fast);
}

.business-group--sales .business-card__more {
    color: var(--color-red);
}

.business-card__link:hover .business-card__more::after,
.business-card__link:focus-visible .business-card__more::after {
    transform: translateX(4px);
}

.business-card__link:hover,
.business-card__link:focus-visible {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--color-navy);
}

.business-group--sales .business-card__link:hover,
.business-group--sales .business-card__link:focus-visible {
    box-shadow: 2px 2px 0 var(--color-red-deep);
}

.business-group__button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    width: fit-content;
    margin-inline: auto;
    padding: 0.75em 2em;
    border-radius: var(--radius-full);
    background: var(--color-bg);
    color: var(--color-text);
    font-weight: var(--font-weight-bold);
    text-decoration: none;
}

.business-channel {
    margin-bottom: var(--space-xl);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    background: var(--color-bg-gray);
    text-align: center;
}

.business-channel__title {
    margin-bottom: var(--space-md);
    font-size: var(--font-size-xl);
}

/* 流れ図：「広告効果 ＋ 販売効果」→ ▼ → 販売チャネル（押せる要素と見分けがつくよう、塗りのボタン形を使わない） */
.business-channel__effects,
.business-channel__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-block: var(--space-md);
}

.business-channel__effects {
    align-items: center;
    gap: var(--space-sm);
}

.business-channel__effect {
    color: var(--color-red);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
}

.business-channel__effect + .business-channel__effect::before {
    content: "＋";
    margin-right: var(--space-sm);
    color: var(--color-text);
}

.business-channel__list {
    position: relative;
    gap: var(--space-sm);
    padding-top: var(--space-xl);
}

.business-channel__list::before {
    content: "";
    position: absolute;
    top: var(--space-sm);
    left: 50%;
    border: 14px solid transparent;
    border-top: 18px solid var(--color-red);
    border-bottom-width: 0;
    transform: translateX(-50%);
}

.business-channel__item {
    display: grid;
    place-items: center;
    width: 7.5em;
    aspect-ratio: 1;
    padding: var(--space-sm);
    border-radius: 50%;
    background: #fbeaea;
    color: var(--color-red-dark);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    line-height: 1.4;
    text-align: center;
    /* 改行位置はマークアップの <wbr> で指定（語の途中で折り返さない） */
    word-break: keep-all;
}

@media (min-width: 768px) {
    .business-channel__list {
        gap: var(--space-md);
    }

    .business-channel__item {
        width: 8.5em;
    }
}

.business-channel__image {
    width: min(100%, 380px);
    margin: var(--space-lg) auto var(--space-md);
    border-radius: var(--radius-md);
}

.business-channel__text strong {
    color: var(--color-red);
}

.business-nav {
    margin-top: var(--space-xl);
}

/* 事業詳細の見出し：作るコパは青、売るコパは赤の枠に、事業名とフライパン・エプロンのアイコン（本文と同じ幅） */
.business-header {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin-block: var(--space-md) var(--space-lg);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    background: var(--color-blue);
    color: var(--color-bg);
}

.business-header--sales {
    background: var(--color-red);
}

/* 背景の大きな英字（装飾。フォントで描く） */
.business-header::before {
    content: attr(data-en);
    position: absolute;
    right: -0.05em;
    bottom: -0.2em;
    z-index: -1;
    color: rgba(255, 255, 255, 0.08);
    font-family: var(--font-family-en);
    font-size: clamp(4rem, 14vw, 9rem);
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
}

.business-header__inner {
    display: grid;
    gap: var(--space-sm);
    align-items: center;
}

.business-header__group {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap-min);
    padding-inline: var(--space-md);
    border: 2px solid currentColor;
    border-radius: var(--radius-full);
    color: inherit;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    text-decoration: none;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.business-header__group:hover,
.business-header__group:focus-visible {
    background: var(--color-bg);
    color: var(--color-blue);
}

.business-header--sales .business-header__group:hover,
.business-header--sales .business-header__group:focus-visible {
    color: var(--color-red);
}

.business-header__title {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    margin-top: var(--space-sm);
}

.business-header__title-en {
    font-family: var(--font-family-en);
    font-size: var(--font-size-en-lg);
    font-weight: var(--font-weight-normal);
    line-height: 1;
    letter-spacing: 0.04em;
}

.business-header__title-ja {
    font-size: var(--font-size-lg);
}

.business-header__lead {
    max-width: 36em;
    margin-top: var(--space-sm);
    font-size: var(--font-size-sm);
    line-height: 1.8;
}

/* アイコンは見た目の大きさをそろえる（横長のフライパン・縦長のエプロン） */
/* スマホは文章を優先し、アイコンは小さく右に添える */
.business-header__icon {
    justify-self: end;
    width: min(100%, 160px);
}

.business-header--sales .business-header__icon {
    width: min(100%, 60px);
}

@media (min-width: 768px) {
    .business-header {
        padding: var(--space-lg) var(--space-xl);
    }

    .business-header__inner {
        grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
    }

    .business-header__icon {
        justify-self: center;
        width: min(100%, 240px);
    }

    .business-header--sales .business-header__icon {
        width: min(100%, 92px);
    }
}

.business-nav__title {
    margin-bottom: var(--space-sm);
    color: var(--color-red);
    font-weight: var(--font-weight-bold);
}

.business-nav__link[aria-current="page"] {
    outline: 2px solid var(--color-red);
}

/* =========================================================
   下部の導線（promo）
   ========================================================= */
.promo {
    padding: var(--space-xl) var(--space-md);
    background: var(--color-blue);
    color: var(--color-bg);
}

.promo--character {
    background: var(--color-red);
}

.promo--ir {
    background: var(--color-navy);
}

/* 色付き背景の一覧の直後では、境目が分かるよう濃い色にする */
.is-red + .promo--character {
    background: var(--color-red-deep);
}

.is-blue + .promo {
    background: var(--color-navy);
}

.promo__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    max-width: var(--container-width);
    margin-inline: auto;
    text-align: center;
}

.promo__image {
    width: min(100%, 360px);
    margin-bottom: calc(var(--space-sm) * -1);
}

.promo__heading {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    line-height: 1.5;
}

.promo--ir .promo__heading {
    font-family: var(--font-family-en);
    font-size: var(--font-size-en-lg);
    font-weight: var(--font-weight-normal);
}

.promo__link {
    padding: 0.75em 2em;
    border-radius: var(--radius-full);
    background: var(--color-bg);
    color: var(--color-text);
    font-weight: var(--font-weight-bold);
    text-decoration: none;
}

/* =========================================================
   フッター
   ========================================================= */
.site-footer {
    padding-top: var(--space-xl);
    background: var(--color-bg);
}

.footer-recruit {
    width: min(100% - var(--space-md) * 2, var(--container-width));
    margin-inline: auto;
}

.footer-recruit__link {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm) var(--space-md);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    background: var(--color-bg-gray);
    color: var(--color-text);
    text-decoration: none;
}

.footer-recruit__title {
    display: flex;
    flex-direction: column;
    font-size: var(--font-size-xs);
    line-height: 1.2;
}

.footer-recruit__title-en {
    font-family: var(--font-family-en);
    font-size: var(--font-size-en-md);
    font-weight: var(--font-weight-normal);
}

.footer-recruit__text {
    margin-left: auto;
    font-weight: var(--font-weight-bold);
}

/* スマホ：見出しの下に線を引き、次の行に「本社スタッフ募集中 →」を並べる（現行と同じ） */
@media (max-width: 767px) {
    .footer-recruit__link {
        display: grid;
        grid-template-columns: 1fr auto;
    }

    .footer-recruit__title {
        grid-column: 1 / -1;
        padding-bottom: var(--space-sm);
        border-bottom: 1px solid var(--color-border);
    }

    .footer-recruit__text {
        margin-left: 0;
    }
}

.footer-recruit__arrow,
.footer-links__arrow {
    color: var(--color-muted);
    font-size: 1.75rem;
}

.site-footer__inner {
    display: grid;
    gap: var(--space-lg);
    width: min(100% - var(--space-md) * 2, var(--container-width));
    margin-inline: auto;
    padding-block: var(--space-xl);
}

.site-footer__heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.site-footer__logo {
    width: 160px;
    height: auto;
}

.site-footer__copyright {
    font-family: var(--font-family-en);
    font-size: var(--font-size-sm);
}

.site-footer__heading .sns-links {
    color: var(--color-muted);
}

.footer-menu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.footer-menu__title {
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--color-border);
    font-family: var(--font-family-en);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-normal);
    letter-spacing: 0.1em;
}

.footer-menu__title-link {
    display: flex;
    align-items: center;
    min-height: var(--tap-min);
    justify-content: space-between;
    text-decoration: none;
}

.footer-menu__title-icon {
    color: var(--color-red);
}

.footer-menu__link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--color-text-sub);
    font-size: var(--font-size-sm);
    text-decoration: none;
}

.footer-menu__link:hover {
    color: var(--color-red);
}

.footer-links {
    display: grid;
    gap: var(--space-md);
}

.footer-links__item {
    position: relative;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    background: var(--color-bg-gray);
}

.footer-links__link {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    color: var(--color-muted);
    text-decoration: none;
}

.footer-links__logo {
    width: 140px;
    height: auto;
}

.footer-links__text {
    flex: 1;
    font-size: var(--font-size-xs);
    line-height: 1.6;
}

.footer-links__sns {
    display: flex;
    gap: var(--space-xs);
    margin-top: var(--space-xs);
    padding-left: calc(140px + var(--space-md));
    color: var(--color-muted);
}

.footer-links__sns a {
    display: grid;
    place-items: center;
    min-width: var(--tap-min);
    min-height: var(--tap-min);
}

@media (min-width: 1024px) {
    .site-footer__inner {
        grid-template-columns: 200px 1fr 1fr;
        align-items: start;
    }

    .footer-links {
        grid-column: 3;
    }

    .footer-menu {
        grid-column: 2;
    }
}

/* お問い合わせ導線（フッター下部の赤いボタン） */
.contact-block {
    display: grid;
    gap: var(--space-sm);
    width: min(100% - var(--space-md) * 2, var(--container-width));
    margin-inline: auto;
}

.contact-block__item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    background: var(--color-red);
    color: var(--color-bg);
}

.contact-block__mail {
    display: flex;
    flex: 1;
    align-items: center;
    min-height: var(--tap-min);
    gap: var(--space-md);
    color: inherit;
    text-decoration: none;
}

.contact-block__mail .contact-block__icon {
    font-size: 2rem;
}

.contact-block__arrow {
    margin-left: auto;
    color: var(--color-red-deep);
    font-size: 1.5rem;
}

.contact-block__label {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    line-height: 1.6;
}

.contact-block__tel {
    text-align: right;
}

.contact-block__number {
    display: flex;
    align-items: center;
    min-height: var(--tap-min);
    gap: var(--space-xs);
    color: inherit;
    font-family: var(--font-family-en);
    font-size: var(--font-size-en-md);
    line-height: 1;
    text-decoration: none;
}

.contact-block__number .contact-block__icon {
    color: var(--color-red-deep);
    font-size: 1.25rem;
}

.contact-block__note {
    font-size: var(--font-size-xs);
}

@media (min-width: 1024px) {
    .contact-block--footer {
        grid-template-columns: repeat(3, 1fr);
        width: min(100% - var(--space-lg) * 2, 1360px);
    }

    /* PCでは画面下端に接するタブ状（現行サイトと同じ） */
    .contact-block--footer .contact-block__item {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }
}

@media (max-width: 1023px) {
    .contact-block--footer {
        padding-bottom: var(--space-lg);
    }
}

/* =========================================================
   会社について
   ========================================================= */
.company-message__body {
    display: grid;
    gap: var(--space-lg);
    padding: var(--space-lg);
    border: 2px solid var(--color-red);
    border-radius: var(--radius-lg);
}

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

.company-message__image img {
    width: min(100%, 320px);
    margin-inline: auto;
}

.company-message__caption {
    display: flex;
    flex-direction: column;
    margin-top: var(--space-sm);
}

.company-message__date {
    color: var(--color-muted);
    font-size: var(--font-size-xs);
}

.company-message__sign {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
}

.company-message__sign-title,
.thanks__sign-title,
.policy__sign-title {
    display: block;
    font-size: var(--font-size-xs);
}

.company-message__heading {
    font-size: var(--font-size-lg);
}

.company-message__text > * + * {
    margin-top: var(--space-md);
}

.company-philosophy {
    background: var(--color-bg-gray);
    box-shadow: 0 0 0 100vmax var(--color-bg-gray);
    clip-path: inset(0 -100vmax);
}

.company-philosophy__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: var(--space-xl) var(--space-lg);
    margin-top: var(--space-xl);
    counter-reset: philosophy;
}

.company-philosophy__item {
    position: relative;
    padding: var(--space-xl) var(--space-lg) var(--space-lg);
    border-radius: var(--radius-lg);
    background: var(--color-bg);
    box-shadow: 8px 8px 0 #ececec;
    font-size: var(--font-size-lg);
    line-height: 2;
    text-align: center;
    counter-increment: philosophy;
}

.company-philosophy__item::before {
    content: counter(philosophy);
    display: grid;
    position: absolute;
    top: 0;
    left: 50%;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--color-red);
    color: var(--color-bg);
    font-family: var(--font-family-en);
    font-size: var(--font-size-en-md);
    transform: translate(-50%, -50%);
}

.company-philosophy__item strong {
    border-bottom: 2px solid var(--color-red);
}

.company-access__text {
    margin-bottom: var(--space-md);
    text-align: center;
}

.company-access__map {
    overflow: hidden;
    border-radius: var(--radius-md);
}

.company-access__iframe {
    display: block;
    width: 100%;
    height: 400px;
    border: 0;
}

@media (min-width: 768px) {
    .company-message__body {
        grid-template-columns: 320px 1fr;
        padding: var(--space-xl);
    }
}

/* 表 */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    display: block;
    padding: var(--space-sm) 0;
    text-align: left;
    vertical-align: top;
}

.data-table th {
    padding-top: var(--space-md);
    color: var(--color-red);
    font-size: var(--font-size-sm);
}

.data-table td {
    border-bottom: 1px solid var(--color-border);
}

.data-table td ul {
    padding-left: 1.25em;
    list-style: disc;
}

.data-table--history th {
    font-family: var(--font-family-en);
    font-size: var(--font-size-lg);
}

@media (min-width: 768px) {
    .data-table th,
    .data-table td {
        display: table-cell;
        padding: var(--space-md);
        border-bottom: 1px solid var(--color-border);
    }

    .data-table th {
        width: 30%;
        white-space: nowrap;
    }

    .data-table--history th {
        width: 7em;
    }
}

/* =========================================================
   方針ページ（個人情報保護方針・カスタマーハラスメント）
   ========================================================= */
.policy > * + * {
    margin-top: var(--space-md);
}

.policy h2 {
    margin-top: var(--space-xl);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--color-red);
    font-size: var(--font-size-lg);
}

.policy h3 {
    margin-top: var(--space-lg);
    padding-left: var(--space-sm);
    border-left: 4px solid var(--color-red);
    font-size: var(--font-size-base);
}

.policy h4 {
    margin-top: var(--space-lg);
    color: var(--color-red);
    font-size: var(--font-size-sm);
}

.policy ul,
.policy ol {
    padding-left: 1.5em;
}

.policy ul {
    list-style: disc;
}

.policy ol {
    list-style: decimal;
}

.policy__lead {
    font-weight: var(--font-weight-normal);
}

.policy__date,
.policy__sign {
    text-align: right;
}

.policy__purposes dt {
    margin-top: var(--space-sm);
    font-weight: var(--font-weight-bold);
}

.policy__purposes dd {
    margin-left: 0;
}

/* =========================================================
   採用
   ========================================================= */
.recruit-flyer img {
    width: 100%;
    border-radius: var(--radius-sm);
}

.recruit-news {
    margin-top: var(--space-xl);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    background: var(--color-bg-gray);
}

.recruit-news__body h3 {
    padding: 0;
    border: 0;
    color: var(--color-text);
}

/* 申込ボタン：このページで最も大事な行動。現行と同じ青の大きなボタン（赤はお問い合わせ専用） */
.recruit-news__body .wp-block-buttons {
    display: flex;
    justify-content: center;
    margin-block: 0 var(--space-lg);
}

.recruit-news__body .wp-block-button {
    width: min(100%, 30em);
}

.recruit-news__body .wp-block-button__link {
    width: 100%;
    min-height: 64px;
    border-color: var(--color-navy);
    border-radius: var(--radius-full);
    background: var(--color-blue);
    box-shadow: var(--shadow-offset) var(--color-navy);
    color: var(--color-bg);
    font-size: var(--font-size-lg);
    text-align: center;
}

.recruit-news__body .wp-block-button__link:hover {
    box-shadow: 2px 2px 0 var(--color-navy);
}

.recruit-news__body .wp-block-button__link:active {
    box-shadow: 0 0 0 var(--color-navy);
}

.recruit-news__contact {
    margin-top: var(--space-lg);
    color: var(--color-muted);
    font-size: var(--font-size-sm);
}

.recruit-hero {
    padding: var(--space-xl) var(--space-lg);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, var(--color-bg) 0%, #fbf4f4 100%);
    text-align: center;
}

.recruit-hero > * + * {
    margin-top: var(--space-md);
}

.recruit-hero + .page-nav {
    margin-top: var(--space-lg);
}

.recruit-hero__eyebrow {
    display: inline-block;
    padding: 0.1em 1.2em;
    border: 1px solid var(--color-red);
    border-radius: var(--radius-full);
    color: var(--color-red);
    letter-spacing: 0.3em;
}

.recruit-hero__title {
    font-size: var(--font-size-xl);
}

.recruit-hero__en {
    display: block;
    color: var(--color-red-dark);
    font-family: var(--font-family-en);
    font-size: var(--font-size-en-lg);
    font-weight: var(--font-weight-normal);
    line-height: 1.2;
}

.recruit-hero__lead {
    max-width: 36em;
    margin-inline: auto;
    color: #5a5a5a;
    font-size: var(--font-size-sm);
    text-align: left;
}

.recruit-overview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-border);
}

.recruit-overview__item {
    padding: var(--space-md);
    background: var(--color-bg);
}

.recruit-overview dt {
    color: var(--color-red);
    font-size: var(--font-size-xs);
}

.recruit-overview dd {
    margin: 0;
    font-weight: var(--font-weight-bold);
}

.recruit-overview small {
    display: block;
    color: var(--color-muted);
    font-weight: var(--font-weight-normal);
}

/* 採用ページ等のセクション直下の小見出し */
.section > h3 {
    margin: var(--space-lg) 0 var(--space-sm);
    padding-left: var(--space-sm);
    border-left: 4px solid var(--color-red);
    font-size: var(--font-size-base);
}

.section > ul:not([class]) {
    padding-left: 1.5em;
    list-style: disc;
}

.flow {
    display: grid;
    gap: var(--space-sm);
    counter-reset: flow;
}

.flow__step {
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    background: var(--color-bg-gray);
    font-weight: var(--font-weight-bold);
    text-align: center;
    counter-increment: flow;
}

.flow__step::before {
    content: counter(flow, decimal-leading-zero);
    display: block;
    color: var(--color-red);
    font-family: var(--font-family-en);
    font-size: var(--font-size-lg);
    line-height: 1.2;
}

@media (min-width: 768px) {
    .flow {
        grid-template-columns: repeat(4, 1fr);
    }
}

.recruit-apply {
    margin-top: var(--space-xl);
    padding: var(--space-xl) var(--space-lg);
    border-radius: var(--radius-md);
    background: var(--color-text);
    color: var(--color-bg);
    text-align: center;
}

.recruit-apply > * + * {
    margin-top: var(--space-md);
}

.recruit-apply__title {
    font-size: var(--font-size-lg);
}

.recruit-contact {
    margin-top: var(--space-lg);
    color: var(--color-muted);
    font-size: var(--font-size-sm);
    text-align: center;
}

/* =========================================================
   お問い合わせ
   ========================================================= */
.contact-info {
    margin-bottom: var(--space-xl);
}

.contact-info__title {
    margin-bottom: var(--space-md);
    font-weight: var(--font-weight-bold);
}

@media (min-width: 768px) {
    .contact-info__title {
        font-size: var(--font-size-lg);
        text-align: center;
    }
}

.contact-info__notes {
    padding: var(--space-md) var(--space-lg) var(--space-md) calc(var(--space-lg) + 1em);
    border-radius: var(--radius-sm);
    background: var(--color-bg-gray);
    color: #5a5a5a;
    font-size: var(--font-size-sm);
    list-style: disc;
}

.contact-info__text {
    color: #5a5a5a;
    font-size: var(--font-size-sm);
}

.thanks {
    margin-bottom: var(--space-lg);
    text-align: center;
}

.thanks > * + * {
    margin-top: var(--space-md);
}

.thanks__heading {
    color: var(--color-red);
    font-size: var(--font-size-lg);
}

.thanks__sign {
    font-weight: var(--font-weight-bold);
}

.thanks__image img {
    width: 180px;
    margin-inline: auto;
}

.form-placeholder {
    padding: var(--space-md);
    border: 1px dashed var(--color-muted);
    color: var(--color-muted);
}

/* MW WP Form の出力（本番のフォーム本文：dl.form-item / .agree-wrapper / div.form-consent / div.form-submit） */
.mw_wp_form form > p:has(> input[type="hidden"]) {
    display: none;
}

.form-item {
    display: grid;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.form-key {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-sm);
    font-weight: var(--font-weight-bold);
}

.form-must::after {
    content: "必須";
    padding: 0.15em 0.75em;
    border-radius: var(--radius-full);
    background: var(--color-red);
    color: var(--color-bg);
    font-size: var(--font-size-xs);
    line-height: 1.6;
}

@media (min-width: 768px) {
    .form-item {
        grid-template-columns: 14em 1fr;
        gap: var(--space-lg);
    }

    /* 入力欄の1行目と高さを揃える */
    .form-key {
        align-self: start;
        justify-content: space-between;
        min-height: var(--tap-min);
    }
}

.mw_wp_form input[type="text"],
.mw_wp_form input[type="email"],
.mw_wp_form input[type="tel"],
.mw_wp_form input[type="url"],
.mw_wp_form select,
.mw_wp_form textarea {
    width: 100%;
    min-height: var(--tap-min);
    padding: 0.75em 1em;
    border: 1px solid #b5b5b5;
    border-radius: var(--radius-sm);
    background: var(--color-bg);
    box-shadow: 3px 3px 0 var(--color-text);
    font-size: 1rem;
    font-weight: var(--font-weight-normal);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.mw_wp_form ::placeholder {
    color: var(--color-muted);
}

.mw_wp_form select {
    padding-right: 3em;
    border-radius: var(--radius-full);
    background: var(--color-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23bb3236' stroke-width='2'/%3E%3C/svg%3E") right 1em center / 1em no-repeat;
    appearance: none;
    cursor: pointer;
}

/* 入力中の欄を明示 */
.mw_wp_form input:focus,
.mw_wp_form select:focus,
.mw_wp_form textarea:focus {
    outline: none;
    border-color: var(--color-red);
    box-shadow: 3px 3px 0 var(--color-red), 0 0 0 3px rgba(187, 50, 54, 0.2);
}

.mw_wp_form textarea {
    min-height: 12em;
}

/* 個人情報の取り扱い：枠の中でスクロール */
.agree-wrapper {
    margin-top: var(--space-xl);
    padding: var(--space-lg) var(--space-sm) var(--space-lg) var(--space-lg);
    border-radius: var(--radius-md);
    background: var(--color-bg-gray);
}

.agree {
    height: 16em;
    padding-right: var(--space-md);
    overflow-y: auto;
    font-size: var(--font-size-sm);
    line-height: 2;
}

.agree > * + * {
    margin-top: var(--space-sm);
}

div.form-consent {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: var(--space-lg);
}

div.form-consent label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    min-height: var(--tap-min);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    cursor: pointer;
}

div.form-consent input[type="checkbox"] {
    flex-shrink: 0;
    width: 1.5em;
    height: 1.5em;
    accent-color: var(--color-red);
}

/* 確認ボタン：主要な行動のため赤の塗り。ボタン全体を押せる */
div.form-submit {
    max-width: 30em;
    margin: var(--space-lg) auto 0;
    border-radius: var(--radius-full);
    background: var(--color-red);
    box-shadow: var(--shadow-offset) var(--color-red-deep);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

div.form-submit:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--color-red-deep);
}

div.form-submit:active {
    transform: translate(4px, 4px);
    box-shadow: 0 0 0 var(--color-red-deep);
}

div.form-submit:focus-within {
    box-shadow: var(--shadow-offset) var(--color-red-deep), var(--focus-ring);
}

div.form-submit label {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 64px;
    padding: var(--space-sm) var(--space-lg);
    color: var(--color-bg);
    cursor: pointer;
}

div.form-submit span {
    font-family: var(--font-family-en);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    letter-spacing: 0.1em;
    line-height: 1.2;
}

div.form-submit input[type="submit"] {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-bold);
    letter-spacing: var(--letter-spacing-base);
    white-space: normal;
    cursor: pointer;
}

div.form-submit input[type="submit"]:focus {
    outline: none;
}

/* 確認画面の「修正する」：控えめなリンク表示 */
.form-back {
    margin-top: var(--space-lg);
    text-align: center;
}

.form-back input[type="submit"],
.mw_wp_form button[name="submitBack"] {
    min-height: var(--tap-min);
    padding: 0 var(--space-md);
    border: 0;
    background: none;
    color: var(--color-red);
    font-weight: var(--font-weight-bold);
    text-decoration: underline;
    text-underline-offset: 0.3em;
    cursor: pointer;
}

/* 確認画面：同意文・同意チェックは出さず、入力値を灰色の枠で見せる */
.mw_wp_form_preview .agree-wrapper,
.mw_wp_form_preview div.form-consent {
    display: none;
}

.mw_wp_form_preview .form-val {
    min-height: var(--tap-min);
    padding: 0.75em 1em;
    border-radius: var(--radius-sm);
    background: var(--color-bg-gray);
    overflow-wrap: anywhere;
}

.mw_wp_form .error {
    display: block;
    margin-top: var(--space-xs);
    color: var(--color-red);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
}

/* =========================================================
   トップページ
   ========================================================= */
.hero {
    display: grid;
    position: relative;
    isolation: isolate;
    place-items: center;
    min-height: min(78vh, 680px);
    padding: var(--space-2xl) var(--space-md);
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.08) 0 18%, transparent 18.5%),
        radial-gradient(circle at 88% 75%, rgba(0, 0, 0, 0.08) 0 22%, transparent 22.5%),
        var(--color-red-dark);
    color: var(--color-bg);
    text-align: center;
}

/* 背景の大きな英字（現行サイトのモチーフ。フォントで描くため画像の読み込みなし） */
.hero::before {
    content: "COPA CORPORATION COPA CORPORATION";
    position: absolute;
    bottom: 12%;
    left: 50%;
    z-index: -1;
    color: rgba(255, 255, 255, 0.06);
    font-family: var(--font-family-en);
    font-size: clamp(7rem, 22vw, 18rem);
    line-height: 1;
    white-space: nowrap;
    transform: translateX(-50%);
    pointer-events: none;
}

/* メインビジュアルの写真（丸く切り抜いた装飾。スマホでは1枚だけ小さく） */
.hero__gallery {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.hero__gallery-item {
    position: absolute;
    overflow: hidden;
    border: 6px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 12px 32px rgba(92, 8, 11, 0.35);
    aspect-ratio: 1;
}

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

.hero__gallery-item:nth-child(1) {
    top: 6%;
    right: -12%;
    width: 46vw;
    opacity: 0.35;
}

.hero__gallery-item:nth-child(n + 2) {
    display: none;
}

@media (min-width: 768px) and (max-width: 1279px) {
    .hero__gallery-item:nth-child(1) {
        top: 4%;
        right: -6%;
        width: 30vw;
        opacity: 0.3;
    }
}

@media (min-width: 1280px) {
    .hero__gallery-item:nth-child(n + 2) {
        display: block;
    }

    /* キャッチコピーに重ならないよう左右の端に寄せる */
    .hero__gallery-item:nth-child(1) {
        top: 12%;
        right: 3%;
        width: min(20vw, 300px);
        opacity: 1;
    }

    .hero__gallery-item:nth-child(2) {
        top: 10%;
        left: 4%;
        width: min(11vw, 160px);
    }

    .hero__gallery-item:nth-child(3) {
        bottom: 30%;
        left: 9%;
        width: min(14vw, 200px);
    }
}

.hero__inner {
    position: relative;
    z-index: 1;
}

.hero__copy {
    font-size: clamp(1.5rem, 6.4vw, 3.75rem);
    line-height: 1.3;
    letter-spacing: 0.06em;
    white-space: nowrap;
    text-shadow: 0 4px 0 rgba(92, 8, 11, 0.35);
}

.hero__corporate {
    margin-top: var(--space-sm);
    font-family: var(--font-family-en);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    letter-spacing: 0.5em;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.hero__actions .button {
    min-width: 15em;
    min-height: 56px;
    font-size: var(--font-size-base);
}

/* 赤背景の上では白の塗りが最も目立つ */
.hero .button--primary {
    border-color: var(--color-bg);
    background: var(--color-bg);
    box-shadow: var(--shadow-offset) var(--color-red-deep);
    color: var(--color-red);
}

.hero .button--primary::after {
    background-color: var(--color-red);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 4l4 4-4 4' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E");
}

.home-products {
    padding-top: var(--space-2xl);
    background: var(--color-blue);
    color: var(--color-bg);
}

.home-products .section__title,
.home-products .section__title-en {
    color: var(--color-bg);
}

.home-products .container {
    position: relative;
}

/* 見出しの横に添える COPA のロゴ（装飾） */
.home-products__mascot {
    position: absolute;
    top: calc(var(--space-xl) * -0.5);
    left: 50%;
    width: 72px;
    /* 狭い画面で左端が切れないよう、画面の端から 8px 内側までに留める */
    transform: translateX(max(-190px, calc(-50vw + 8px))) rotate(-8deg);
}

@media (min-width: 768px) {
    .home-products__mascot {
        width: 96px;
        transform: translateX(-260px) rotate(-8deg);
    }
}

.home-products__list {
    display: grid;
    /* 件数が少なくても中央にそろえる */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 280px));
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.home-products__link {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--color-bg);
    box-shadow: 6px 6px 0 var(--color-navy);
    color: var(--color-text);
    text-decoration: none;
}

.home-products__image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: var(--color-bg-gray);
}

.home-products__name,
.home-products__copy,
.home-products__more {
    padding-inline: var(--space-md);
}

.home-products__name {
    padding-top: var(--space-sm);
    font-size: var(--font-size-base);
}

.home-products__copy {
    color: var(--color-muted);
    font-size: var(--font-size-xs);
}

.home-products__more {
    margin-top: auto;
    padding-bottom: var(--space-md);
    color: var(--color-blue);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
}

.home-products .container > p,
.home-news .container > p,
.home-youtube .container > p,
.home-about .container > p,
.home-recruit .container > p {
    text-align: center;
}

.home-about__text {
    max-width: 40em;
    margin: 0 auto var(--space-lg);
    font-size: var(--font-size-lg);
    text-align: center;
}

.home-recruit {
    background: var(--color-red-light);
    color: var(--color-bg);
}

.home-recruit .section__title,
.home-recruit .section__title-en {
    color: var(--color-bg);
}

.home-recruit__image {
    max-width: 960px;
    margin: var(--space-xl) auto calc(var(--space-2xl) * -1);
}

.home-recruit__image img {
    width: 100%;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: var(--color-bg);
}

.home-recruit__text {
    margin-bottom: var(--space-lg);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    text-align: center;
}

.home-business__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.home-business__link {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    height: 100%;
    overflow: hidden;
    padding: 0 var(--space-lg) var(--space-lg);
    border-radius: var(--radius-lg);
    background: var(--color-blue);
    box-shadow: 6px 6px 0 var(--color-navy);
    color: var(--color-bg);
    text-decoration: none;
}

.home-business__item:nth-child(n + 2) .home-business__link {
    background: var(--color-red);
    box-shadow: 6px 6px 0 var(--color-red-deep);
}

.home-business__image {
    width: calc(100% + var(--space-lg) * 2);
    max-width: none;
    margin: 0 calc(var(--space-lg) * -1);
    aspect-ratio: 4 / 3;
    background: var(--color-bg);
    object-fit: cover;
}

.home-business__item:first-child .home-business__image {
    padding: var(--space-md);
    object-fit: contain;
}

.home-business__num {
    margin-top: calc(var(--space-xl) * -0.5 - var(--space-sm));
    border: 3px solid var(--color-bg);
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-navy);
    font-family: var(--font-family-en);
    font-size: var(--font-size-lg);
}

.home-business__item:nth-child(n + 2) .home-business__num {
    background: var(--color-red-deep);
}

.home-business__title {
    font-size: var(--font-size-sm);
}

.home-business__copy {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-bold);
    line-height: 1.6;
    /* 文節で折り返す（対応ブラウザのみ）。固定の改行はPCだけ効かせる */
    word-break: auto-phrase;
    text-wrap: pretty;
}

.home-business__copy br {
    display: none;
}

@media (min-width: 1024px) {
    .home-business__copy {
        font-size: var(--font-size-lg);
    }

    .home-business__copy br {
        display: inline;
    }
}

.home-business__more {
    align-self: flex-start;
    margin-top: auto;
    padding: 0.4em 1.5em;
    border-radius: var(--radius-sm);
    background: var(--color-bg);
    color: var(--color-text);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
}

.home-business__links {
    display: grid;
    gap: var(--space-md);
}

.home-business__sub-link {
    display: flex;
    flex-direction: column;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    background: var(--color-bg);
    box-shadow: 0 4px 0 var(--color-navy), 0 0 0 1px var(--color-border);
    font-weight: var(--font-weight-bold);
    text-decoration: none;
}

.home-business__sub-link span {
    color: var(--color-blue);
    font-family: var(--font-family-en);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-normal);
    line-height: 1;
}

@media (min-width: 768px) {
    .home-business__links {
        grid-template-columns: repeat(3, 1fr);
    }
}

.home-news {
    background: var(--color-red);
    color: var(--color-bg);
}

.home-news .section__title,
.home-news .section__title-en {
    color: var(--color-bg);
}

.home-news__description {
    margin-bottom: var(--space-lg);
    text-align: center;
}

.home-news .card-list {
    margin-bottom: var(--space-lg);
}

.home-youtube__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.youtube-link__link {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    text-decoration: none;
}

.youtube-link__thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

/* =========================================================
   404
   ========================================================= */
.not-found__action {
    text-align: center;
}

/* =========================================================
   汎用（index.php）
   ========================================================= */
.page-title {
    margin-bottom: var(--space-lg);
    font-size: var(--font-size-xl);
}

.post-list__item {
    border-bottom: 1px solid var(--color-border);
}

.post-list__link {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    padding-block: var(--space-md);
    text-decoration: none;
}

.post-list__date {
    color: var(--color-muted);
    font-size: var(--font-size-sm);
}

@media (min-width: 768px) {
    .post-list__link {
        flex-direction: row;
        gap: var(--space-lg);
    }
}

/* =========================================================
   スマホ用の固定お問い合わせボタン（親指の届く右下。フィッツの法則）
   ========================================================= */
.floating-cta {
    display: flex;
    position: fixed;
    right: var(--space-md);
    bottom: calc(var(--space-md) + env(safe-area-inset-bottom));
    z-index: 90;
    align-items: center;
    gap: var(--space-sm);
    min-height: 56px;
    padding: 0 1.4em;
    border: 2px solid var(--color-bg); /* 赤背景のページでも埋もれないように */
    border-radius: var(--radius-full);
    background: var(--color-red);
    box-shadow: 0 4px 0 var(--color-red-deep), 0 8px 24px rgba(0, 0, 0, 0.25);
    color: var(--color-bg);
    font-weight: var(--font-weight-bold);
    text-decoration: none;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.floating-cta:active {
    transform: translateY(4px);
    box-shadow: 0 0 0 var(--color-red-deep), 0 4px 12px rgba(0, 0, 0, 0.25);
}

.floating-cta__icon {
    font-size: 1.4rem;
}

/* 最初の画面には問い合わせボタンが既にあるため、少しスクロールしてから表示する（対応ブラウザのみ。非対応なら常に表示） */
@supports (animation-timeline: scroll()) {
    .floating-cta {
        animation: copa-floating-cta-in linear both;
        animation-timeline: scroll(root);
        animation-range: 0 480px;
    }

    @keyframes copa-floating-cta-in {
        0%, 70% {
            visibility: hidden;
            opacity: 0;
            translate: 0 16px;
        }

        100% {
            visibility: visible;
            opacity: 1;
            translate: 0 0;
        }
    }
}

@media (prefers-reduced-motion: reduce) {
    .floating-cta {
        animation: none;
    }
}

/* メニューを開いている間は重ならないよう隠す */
.is-nav-open .floating-cta {
    display: none;
}

@media (min-width: 1024px) {
    .floating-cta {
        display: none;
    }
}

/* =========================================================
   描画の最適化：画面外のまとまりは見える位置に来るまで描画を省く
   （ブラウザ標準の content-visibility。非対応のブラウザでは通常どおり描画）
   ========================================================= */
.section,
.promo,
.related,
.site-footer {
    content-visibility: auto;
    contain-intrinsic-size: auto 720px;
}

/* =========================================================
   取り下げた画像の「Dummy」表示（inc/site.php の copa_dummy_image_slots()）
   元の画像と同じクラスで大きさ・形を受け継ぐ
   ========================================================= */
.dummy-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    width: 100%;
    min-height: 80px;
    padding: var(--space-sm);
    border: 2px dashed #9a9a9a;
    background:
        repeating-linear-gradient(45deg, #ececec 0 12px, #f6f6f6 12px 24px);
    color: #555;
    text-align: center;
    overflow: hidden;
}

.dummy-image__text {
    font-family: var(--font-family-en);
    font-size: var(--font-size-en-md);
    line-height: 1;
    letter-spacing: 0.1em;
}

.dummy-image__label {
    font-size: var(--font-size-xs);
    line-height: 1.4;
}

/* 箇所ごとの形 */
.hero__gallery-img.dummy-image {
    height: 100%;
    border-radius: 50%;
}

.home-products__mascot.dummy-image {
    width: 96px;
    height: 120px;
    min-height: 0;
    border-radius: var(--radius-sm);
}

.home-products__mascot.dummy-image .dummy-image__label {
    display: none;
}

.home-recruit__img.dummy-image {
    aspect-ratio: 1200 / 460;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.home-products__image.dummy-image {
    aspect-ratio: 4 / 3;
}

.card-news__image.dummy-image {
    aspect-ratio: 16 / 9;
}

.card-character__image.dummy-image {
    aspect-ratio: 1;
    border-radius: 50%;
}

.card-product__image.dummy-image {
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
}

.promo__image.dummy-image,
.business-group__image.dummy-image {
    width: min(100%, 320px);
    margin-inline: auto;
    aspect-ratio: 421 / 258;
    border-radius: var(--radius-sm);
}

.business-channel__image.dummy-image {
    width: min(100%, 380px);
    margin-inline: auto;
    aspect-ratio: 380 / 278;
}

/* =========================================================
   事業詳細の本文（template-parts/business/）
   ========================================================= */
.business-lead {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    line-height: 1.7;
}

.business-note {
    color: var(--color-text-sub);
    font-size: var(--font-size-sm);
}

.business-em {
    color: var(--color-red);
    font-style: normal;
    font-weight: var(--font-weight-bold);
}

.business-action {
    margin-block: var(--space-lg);
    text-align: center;
}

.entry__content .button {
    color: var(--color-text);
}

.entry__content .button--primary {
    color: var(--color-bg);
}

.business-list {
    padding-left: 1.25em;
}

/* 文章と写真の組（スマホは縦、PCは横に並べる） */
.business-media {
    display: grid;
    gap: var(--space-md);
    align-items: center;
}

.business-media__body > * + * {
    margin-top: var(--space-sm);
}

.business-media__image {
    width: 100%;
    border-radius: var(--radius-md);
}

@media (min-width: 768px) {
    .business-media {
        grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
        gap: var(--space-lg);
    }

    .business-media:nth-of-type(even) .business-media__body {
        order: 1;
    }
}

/* 写真の並び */
.business-photos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: var(--space-md);
    padding: 0;
    list-style: none;
}

.business-photos__img {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.business-photos__caption {
    margin-top: var(--space-xs);
    color: var(--color-text-sub);
    font-size: var(--font-size-sm);
    text-align: center;
}

/* 卸売事業の取引先（通販・店頭） */
.business-channels {
    display: grid;
    gap: var(--space-lg);
    padding: 0;
    list-style: none;
}

.business-channels__item > * + * {
    margin-top: var(--space-sm);
}

.business-channels__image {
    width: min(100%, 320px);
    margin-inline: auto;
}

.business-channels__label {
    color: var(--color-red);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
}

@media (min-width: 768px) {
    .business-channels {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* 流れの図解：スマホは縦に並べて下向きの矢印、PCは横に並べて右向きの矢印 */
.business-flow {
    --flow-arrow: 14px;
    display: grid;
    gap: calc(var(--flow-arrow) + var(--space-sm));
    margin-block: var(--space-lg);
    padding: 0;
    list-style: none;
    counter-reset: none;
}

.business-flow__step {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    padding: var(--space-md);
    border: 2px solid var(--color-red);
    border-radius: var(--radius-md);
    background: var(--color-bg);
    box-shadow: var(--shadow-offset) var(--color-red-dark);
}

.business-flow__step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: calc(100% + var(--space-xs));
    left: 50%;
    border-top: var(--flow-arrow) solid var(--color-red);
    border-inline: var(--flow-arrow) solid transparent;
    transform: translateX(-50%);
}

.business-flow__num {
    color: var(--color-red);
    font-family: var(--font-family-en);
    font-size: var(--font-size-lg);
    line-height: 1;
    letter-spacing: 0.08em;
}

.business-flow__title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    line-height: 1.4;
    word-break: auto-phrase;
}

.business-flow__text {
    font-size: var(--font-size-sm);
    line-height: 1.8;
}

.business-flow__note {
    color: var(--color-text-sub);
    font-size: var(--font-size-xs);
}

/* 最後の手順（実演販売・納品）は塗りつぶして到達点を示す */
.business-flow--goal .business-flow__step:last-child {
    background: var(--color-red);
    color: var(--color-bg);
}

.business-flow--goal .business-flow__step:last-child .business-flow__num {
    color: var(--color-yellow);
}

@media (min-width: 768px) {
    /* 説明文の無い短い手順は横に並べる */
    .business-flow:not(:has(.business-flow__text)) {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        column-gap: calc(var(--flow-arrow) + var(--space-md));
    }

    .business-flow:not(:has(.business-flow__text)) .business-flow__step {
        text-align: center;
        justify-content: center;
    }

    .business-flow:not(:has(.business-flow__text)) .business-flow__title {
        font-size: var(--font-size-base);
    }

    .business-flow:not(:has(.business-flow__text)) .business-flow__step:not(:last-child)::after {
        top: 50%;
        left: calc(100% + var(--space-xs));
        border-top: var(--flow-arrow) solid transparent;
        border-bottom: var(--flow-arrow) solid transparent;
        border-left: var(--flow-arrow) solid var(--color-red);
        border-right: 0;
        transform: translateY(-50%);
    }

    /* 説明文のある手順（商品開発フロー）は2列 */
    .business-flow:has(.business-flow__text) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: var(--space-lg);
    }

    .business-flow:has(.business-flow__text) .business-flow__step::after {
        display: none;
    }
}

@media (min-width: 1024px) {
    .business-flow:has(.business-flow__text) {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        column-gap: calc(var(--flow-arrow) + var(--space-md));
    }

    .business-flow:has(.business-flow__text) .business-flow__step:not(:last-child)::after {
        display: block;
        top: 2.5rem;
        left: calc(100% + var(--space-xs));
        border-top: var(--flow-arrow) solid transparent;
        border-bottom: var(--flow-arrow) solid transparent;
        border-left: var(--flow-arrow) solid var(--color-red);
        border-right: 0;
        transform: none;
    }
}

/* デモカウ店長の案内（現行と同じく店舗一覧の後に掲載） */
.business-banner {
    width: min(100%, 720px);
    margin-inline: auto;
}
