@charset "utf-8";

/*
 * 利用者画面の CSS（ビルドなし。git でそのまま配る）
 * 旧 css/common.css・module.css・contents.css の配色とレイアウト（緑 #006400 の固定ヘッダー、幅 1000px）を踏襲し、
 * 余白・角丸・SVG アイコンなどで近代化している。
 */

/* ---------------------------------------------------------------- 変数 */

:root {
    --green: #006400;
    --green-dark: #004d00;
    --green-soft: rgba(0, 100, 0, 0.08);
    --green-line: rgba(0, 100, 0, 0.35);
    --text: #222;
    --text-sub: #555;
    --line: #dcdcdc;
    --bg-tint: #f6f8f5;
    --danger: #c62828;
    --radius: 8px;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    --header-h: 72px;
    --font: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", YuGothic, Meiryo, sans-serif;
}

/* ---------------------------------------------------------------- 基本 */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font: 15px/1.8 var(--font);
    color: var(--text);
    background: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

img { max-width: 100%; height: auto; vertical-align: bottom; }

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

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }

.inner { width: 100%; max-width: 1000px; margin: 0 auto; padding: 0 20px; }

/* ---------------------------------------------------------------- ヘッダー */

.header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    height: var(--header-h);
    background: var(--green);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.header__logo { display: block; flex-shrink: 0; }
.header__logo img { width: 320px; }

.header__menu { display: none; }

.gnav__list { display: flex; gap: 4px; }

.gnav__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 76px;
    padding: 8px 6px;
    border-radius: var(--radius);
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 0.2s;
}
.gnav__link .icon { width: 26px; height: 26px; }
.gnav__link:hover,
.gnav__link.is-active { color: #fff; background: rgba(255, 255, 255, 0.15); }
.gnav__link.is-disabled { opacity: 0.45; cursor: default; }
.gnav__link.is-disabled:hover { background: none; }
button.gnav__link { width: 100%; border: 0; background: none; font-family: inherit; cursor: pointer; }

.nav-mask { display: none; }

/* ---------------------------------------------------------------- 本文・フッター */

.main { flex: 1; padding-top: var(--header-h); }

.footer { background: var(--green); color: #fff; }
.footer__copy { padding: 6px 20px; font-size: 12px; text-align: center; }

.section { padding: 32px 0; }
.section--tinted { background: var(--bg-tint); }

.c-title {
    margin: 0 0 20px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--green);
    color: var(--green);
    font-size: 24px;
    font-weight: normal;
    line-height: 1.4;
}
.c-title:not(:first-child) { margin-top: 36px; }

.lead { margin-bottom: 24px; }

/* ---------------------------------------------------------------- ボタン */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 48px;
    padding: 0 24px;
    border: 2px solid transparent;
    border-radius: var(--radius);
    font: inherit;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s, background-color 0.2s;
}
.button:hover { opacity: 0.8; }
.button--primary { background: var(--green); color: #fff; box-shadow: var(--shadow); }
.button--primary:hover { color: #fff; }
.button--outline { border-color: var(--green); background: #fff; color: var(--green); border-radius: 999px; }
.button--block { display: flex; width: 100%; }
.button.is-disabled { opacity: 0.45; cursor: default; box-shadow: none; }

.button-stack { display: grid; gap: 12px; }

.button-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

/* ---------------------------------------------------------------- トップのメニュー */

.menu-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

.menu-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    height: 100%;
    padding: 20px 10px;
    border: 2px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--green);
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.menu-card:hover { border-color: var(--green); box-shadow: var(--shadow); }
.menu-card--accent { border-color: var(--green-line); background: var(--green-soft); }
.menu-card__icon { width: 72px; }
.menu-card__title { font-size: 16px; font-weight: bold; line-height: 1.4; text-align: center; }
.menu-card.is-disabled { opacity: 0.5; cursor: default; }
.menu-card.is-disabled:hover { border-color: var(--line); box-shadow: none; }
.menu-card--accent.is-disabled:hover { border-color: var(--green-line); }

/* ---------------------------------------------------------------- 論文 */

.cert-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px; }
.cert-list img { width: 100%; border-radius: 4px; box-shadow: var(--shadow); }

/* ---------------------------------------------------------------- お知らせ */

.alert {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 20px;
    padding: 12px 16px;
    border-radius: var(--radius);
    background: var(--green-soft);
    color: var(--green);
}
.alert--error { background: #fdecea; color: var(--danger); }
.alert ul { margin: 0; padding-left: 1.2em; list-style: disc; }
.input.is-invalid { border-color: var(--danger); }

/* ---------------------------------------------------------------- 幅・文字の補助 */

.inner--narrow { max-width: 640px; }
.inner--form { max-width: 840px; }

.text-center { text-align: center; }
.text-muted { color: var(--text-sub); font-size: 13px; }
.mt-16 { margin-top: 16px; }

.section p + p,
.section p + .form,
.section .form + p,
.section .form + .sns-buttons { margin-top: 16px; }

/* ---------------------------------------------------------------- サンプル表示のお知らせ */

.sample-notice {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin-bottom: 20px;
    padding: 10px 14px;
    border: 1px dashed #c9a227;
    border-radius: var(--radius);
    background: #fff8e1;
    color: #6d5200;
    font-size: 13px;
}

/* ---------------------------------------------------------------- フォーム */

.form { display: grid; gap: 16px; margin: 20px 0; }

.field { display: grid; gap: 6px; }
.field__label { color: var(--text-sub); font-size: 13px; font-weight: bold; }

.required {
    display: inline-block;
    margin-left: 8px;
    padding: 0 6px;
    border-radius: 3px;
    background: var(--danger);
    color: #fff;
    font-size: 11px;
    line-height: 1.6;
    vertical-align: 1px;
}

.input {
    width: 100%;
    min-height: 46px;
    padding: 8px 12px;
    border: 1px solid #bbb;
    border-radius: var(--radius);
    background: #fff;
    font: inherit;
    color: inherit;
}
.input:focus { outline: 2px solid var(--green-line); outline-offset: 1px; border-color: var(--green); }
.input--md { max-width: 320px; }
textarea.input { line-height: 1.6; resize: vertical; }
select.input { appearance: none; padding-right: 36px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 18px; }

.check { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--green); }

.button--gray { background: #9e9e9e; color: #fff; }
.button--gray:hover { color: #fff; }

.button-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }

/* ---------------------------------------------------------------- SNS ログイン（旧 .snsLogin） */

.sns-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0; }

.sns-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--text);
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
}
.sns-button--line { border-color: #06c755; background: #06c755; color: #fff; }
.sns-button--apple { border-color: #000; background: #000; color: #fff; }
.sns-button--yahoo { border-color: #ff0033; color: #ff0033; }
.sns-button.is-disabled { opacity: 0.5; cursor: default; }

/* ---------------------------------------------------------------- 段階表示（旧 .signupFlow） */

.steps { display: flex; margin: 0 0 24px; counter-reset: none; }

.steps__item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 4px;
    border-bottom: 3px solid var(--line);
    color: #999;
    font-size: 14px;
    font-weight: bold;
}
.steps__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--line);
    color: #fff;
    font-size: 12px;
}
.steps__item.is-done { border-color: var(--green-line); color: var(--green); }
.steps__item.is-done .steps__num { background: var(--green-line); }
.steps__item.is-current { border-color: var(--green); color: var(--green); }
.steps__item.is-current .steps__num { background: var(--green); }

/* ---------------------------------------------------------------- 確認画面 */

.confirm-list {
    display: grid;
    grid-template-columns: 200px 1fr;
    margin: 0;
    border-top: 1px solid var(--line);
}
.confirm-list dt,
.confirm-list dd { margin: 0; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.confirm-list dt { background: var(--bg-tint); color: var(--text-sub); font-size: 13px; font-weight: bold; }
.confirm-list dd { white-space: pre-wrap; }

/* ---------------------------------------------------------------- 注意書き（旧 .attentionBox） */

.attention { margin-top: 24px; color: var(--text-sub); font-size: 12px; }
.attention p + p { margin-top: 8px; }

.input--sm { max-width: 200px; }
.input--xs { width: 90px; text-align: center; }
.field__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.field__row label { display: inline-flex; align-items: center; gap: 6px; }
a.steps__label { color: inherit; }
.text-right { text-align: right; }

/* ---------------------------------------------------------------- マイページのメニュー（旧 .mypageView .menuList） */

.link-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 20px; }

.link-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
    padding: 18px 16px;
    border: 2px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.link-card:hover { border-color: var(--green); box-shadow: var(--shadow); color: inherit; }
.link-card__title { color: var(--green); font-size: 16px; font-weight: bold; text-align: center; }
.link-card__text { color: var(--text-sub); font-size: 13px; line-height: 1.6; }

/* ---------------------------------------------------------------- 登録カード（旧 .cardList） */

.card-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0 8px; }

.pay-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 150px;
    padding: 18px 20px;
    border: 2px solid var(--line);
    border-radius: 12px;
    background: linear-gradient(135deg, #fafafa, #eceff1);
    cursor: default;
}
.pay-card.is-default { border-color: var(--green); background: linear-gradient(135deg, #f1f8f1, #dcebdc); }
.pay-card__brand { font-weight: bold; letter-spacing: 0.05em; }
.pay-card__number { margin-top: auto; font-size: 20px; letter-spacing: 0.08em; }
.pay-card__limit { color: var(--text-sub); font-size: 13px; }
.pay-card__badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--green);
    color: #fff;
    font-size: 12px;
    line-height: 1.8;
}
.pay-card__remove { margin-top: 6px; text-align: right; font-size: 13px; }
.pay-card__remove .is-disabled { color: #999; }
button.pay-card { width: 100%; height: 100%; font: inherit; color: inherit; text-align: left; cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s; }
button.pay-card:hover { border-color: var(--green-line); box-shadow: var(--shadow); }
.card-list form { margin: 0; }
.link-button { padding: 0; border: 0; background: none; color: var(--danger); font: inherit; text-decoration: underline; cursor: pointer; }

/* PAY.JP の Checkout。自前のボタンから開くため、Checkout が作るボタンは隠す */
.payjp-checkout input[type=button],
.payjp-checkout button { display: none !important; }
.field__error { color: var(--danger); font-size: 13px; }

/* ---------------------------------------------------------------- カテゴリのタイル（旧 .albumListView） */

.album-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0; }

.album-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 2px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: inherit;
    text-decoration: none;
}
.album-tile--select { cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s; }
.album-tile--select:hover { border-color: var(--green-line); }
.album-tile--select input { position: absolute; opacity: 0; pointer-events: none; }
.album-tile--select:has(input:checked) { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.album-tile--select:focus-within { outline: 2px solid var(--green-line); outline-offset: 2px; }
.album-tile.is-ended { opacity: 0.7; }

.album-tile__price { padding: 10px 12px; color: var(--text-sub); font-size: 12px; text-align: center; }
.album-tile__price em { display: block; color: var(--text); font-size: 18px; font-style: normal; font-weight: bold; }

.album-tile__selected {
    display: none;
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--green);
    color: #fff;
    font-size: 12px;
    line-height: 1.8;
}
.album-tile--select:has(input:checked) .album-tile__selected { display: block; }

.album-tile__limit { padding: 0 12px 12px; color: var(--danger); font-size: 12px; text-align: center; }

.category-art {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    padding: 12px;
    background: linear-gradient(135deg, #3f8f5a, #1f5e36);
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 0.08em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.category-art--intrSleep { background: linear-gradient(135deg, #3c4f8f, #1d2757); }
.category-art--stressReduction { background: linear-gradient(135deg, #4c9a8a, #1f5e57); }
.category-art--relieveTension { background: linear-gradient(135deg, #8a7ab8, #4d3f80); }
.category-art--relaxation { background: linear-gradient(135deg, #7fb069, #3d6b2c); }
.category-art--autonomicNerves { background: linear-gradient(135deg, #c48a52, #7c4f22); }
.category-art--concentration { background: linear-gradient(135deg, #4a8cc2, #1f4f7c); }
.category-art--premium { background: linear-gradient(135deg, #e0b23a, #a87a12); }

/* アルバムの画像（縦長 560×600。正方形に切らずにそのままの比率で出す） */
.album-art { display: block; width: 100%; height: auto; }
.album-tile--button .album-art { margin-bottom: 12px; }
.dialog__art .album-art,
.player__art .album-art { border-radius: var(--radius); }

/* ---------------------------------------------------------------- 契約内容（旧 .orderBox） */

.order-box { margin: 24px 0; }
.order-box__title {
    padding: 6px 12px;
    border-radius: var(--radius) var(--radius) 0 0;
    background: #ffbe00;
    font-size: 16px;
}
.order-box__title small { margin-left: 8px; font-size: 12px; font-weight: normal; }
.order-box__note { margin-top: 8px; font-weight: bold; text-align: right; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th,
.table td { padding: 10px 12px; border: 1px solid var(--line); }
.table thead th { background: #777; color: #fff; font-weight: normal; white-space: nowrap; }
.table tbody th { background: var(--bg-tint); font-weight: normal; text-align: left; }
.table tfoot th { background: #888; color: #fff; font-weight: bold; }
.table__action { width: 1%; text-align: center; white-space: nowrap; }
.table__thumb { width: 96px; padding: 0 !important; }
.table__thumb .category-art { font-size: 11px; letter-spacing: 0; }

/* ---------------------------------------------------------------- パンくず・小見出し（旧 .breadcrumb・.pTitle） */

.breadcrumb { padding: 10px 0 0; font-size: 13px; color: var(--text-sub); }
.breadcrumb .inner { display: flex; flex-wrap: wrap; gap: 4px 0; }
.breadcrumb a,
.breadcrumb span { display: inline-flex; align-items: center; }
.breadcrumb a::after,
.breadcrumb span:not(:last-child)::after { content: "›"; margin: 0 8px; color: #aaa; }

.p-title {
    margin: 32px 0 12px;
    padding: 4px 12px;
    border-radius: 4px;
    background: var(--green);
    color: #fff;
    font-size: 17px;
    line-height: 1.8;
}

/* ---------------------------------------------------------------- ボタン（追加） */

.button--sm { min-height: 34px; padding: 0 14px; font-size: 13px; }
.button--accent { background: #ffbe00; color: #222; box-shadow: var(--shadow); }
.button--accent:hover { color: #222; }
.button--outline.is-on { background: var(--green); color: #fff; }

/* ---------------------------------------------------------------- カテゴリのタイル（押せるもの） */

.album-tile--button,
.album-tile--link { width: 100%; padding: 0; font: inherit; text-align: center; cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s; }
.album-tile--button:hover,
.album-tile--link:hover { border-color: var(--green); box-shadow: var(--shadow); color: inherit; }
.album-tile.is-current { border-color: var(--green); }

.album-tile__more {
    display: block;
    margin: 0 12px 12px;
    padding: 6px 0;
    border: 1px solid var(--green);
    border-radius: 999px;
    color: var(--green);
    font-size: 13px;
    font-weight: bold;
}
.album-tile__more--primary { margin-top: 12px; background: var(--green); color: #fff; }

.album-tile__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 0 10px;
    border-radius: 999px;
    background: #ffbe00;
    color: #222;
    font-size: 12px;
    font-weight: bold;
    line-height: 1.8;
}
.album-tile--button .category-art { margin-bottom: 12px; }

/* ---------------------------------------------------------------- 画面下の固定バー（旧 .saleCartView） */

.section--has-bar { padding-bottom: 40px; }
body:has(.cart-bar) .footer { padding-bottom: 72px; }

.cart-bar {
    position: fixed;
    inset: auto 0 0;
    z-index: 900;
    background: rgba(0, 60, 0, 0.95);
    color: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}
.cart-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 12px 20px;
}
.cart-bar__summary strong { font-size: 20px; }

/* ---------------------------------------------------------------- 商品詳細の小窓 */

.dialog {
    width: min(92vw, 720px);
    padding: 0;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}
.dialog::backdrop { background: rgba(0, 0, 0, 0.55); }
.dialog__body { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 28px; }
.dialog__art .category-art { border-radius: var(--radius); }
.dialog__label { color: var(--text-sub); font-size: 12px; }
.dialog__title { margin: 2px 0 8px; color: var(--green); font-size: 22px; line-height: 1.4; }
.dialog__price strong { font-size: 24px; }
.dialog__text { margin: 12px 0 20px; font-size: 14px; }
.dialog__close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 36px;
    height: 36px;
    border: 0;
    background: none;
    color: #666;
    font-size: 24px;
    cursor: pointer;
}

/* ---------------------------------------------------------------- 再生画面（旧 .albumDetailBox・.playBox・.singleBoxList） */

.player__album { display: grid; grid-template-columns: 240px 1fr; gap: 20px; }
.player__art .category-art { aspect-ratio: 1; border-radius: var(--radius); }
.player__title { color: var(--green); font-size: 24px; line-height: 1.4; }
.player__meta { color: var(--text-sub); font-size: 13px; }
.player__desc { margin: 10px 0 14px; font-size: 14px; }
.player__album-buttons { display: flex; gap: 8px; }

.player__box {
    margin: 24px 0 16px;
    padding: 16px;
    border-radius: var(--radius);
    background: #1e2a1e;
    color: #fff;
}
.player__now { margin-bottom: 10px; font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__progress { height: 10px; border-radius: 5px; background: rgba(255, 255, 255, 0.2); overflow: hidden; cursor: pointer; }
.player__progress span { display: block; width: 0; height: 100%; background: #7fd27f; }
.player__time { margin-top: 6px; font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; opacity: 0.85; }
.player__error { margin-top: 10px; color: #ffb3b3; font-size: 13px; }
.player__controls { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.player__control {
    width: 100%;
    min-height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--radius);
    background: none;
    color: #fff;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}
.player__control:hover,
.player__control.is-on { background: rgba(255, 255, 255, 0.15); }
.player.is-playing:not(.is-paused) [data-player-resume],
.player.is-paused [data-player-pause] { background: #7fd27f; border-color: #7fd27f; color: #1e2a1e; }

.song-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.song-list__item { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-bottom: 1px solid var(--line); }
.song-list__item.is-playing { background: var(--green-soft); }
.song-list__num { width: 24px; color: #999; text-align: center; }
.song-list__title { flex: 1; }
.song-list__title small { display: block; color: var(--text-sub); font-size: 12px; }
.song-list__item.is-playing .song-list__title { color: var(--green); font-weight: bold; }
.song-list__item .button.is-on,
.player__album-buttons .button.is-on { background: var(--green); border-color: var(--green); color: #fff; }

/* ---------------------------------------------------------------- スマホ（旧と同じく 800px 以下） */

@media (max-width: 800px) {
    :root { --header-h: 58px; }

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

    .header__inner { padding: 0 8px 0 12px; }
    .header__logo img { width: 260px; }

    .header__menu {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: relative;
        z-index: 1200;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 0;
        background: none;
        color: #fff;
        cursor: pointer;
    }
    .header__menu .icon { width: 30px; height: 30px; }
    .header__menu .icon--close { display: none; }
    .is-nav-open .header__menu .icon--open { display: none; }
    .is-nav-open .header__menu .icon--close { display: block; }

    .gnav {
        position: fixed;
        top: 0;
        right: 0;
        z-index: 1100;
        width: min(75vw, 320px);
        height: 100vh;
        padding: calc(var(--header-h) + 8px) 12px 20px;
        background: rgba(0, 40, 0, 0.96);
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.3s;
    }
    .is-nav-open .gnav { transform: none; }

    .gnav__list { flex-direction: column; gap: 2px; }
    .gnav__link { flex-direction: row; gap: 12px; padding: 12px; font-size: 15px; }
    .gnav__link .icon { width: 24px; height: 24px; }

    .nav-mask {
        position: fixed;
        inset: 0;
        z-index: 1050;
        background: rgba(0, 0, 0, 0.5);
    }
    .is-nav-open .nav-mask { display: block; }

    .section { padding: 20px 0; }
    .inner { padding: 0 12px; }
    .c-title { font-size: 20px; }

    .menu-cards { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .menu-card { padding: 14px 6px; }
    .menu-card__icon { width: 56px; }
    .menu-card__title { font-size: 13px; }

    .lead { font-size: 14px; }

    .cert-list { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .cert-list__qr { display: none; }

    .button-row { grid-template-columns: 1fr; }

    .confirm-list { grid-template-columns: 1fr; }
    .confirm-list dt { padding: 8px 12px 4px; border-bottom: 0; }
    .confirm-list dd { padding: 4px 12px 12px; }

    .steps__item { flex-direction: column; gap: 2px; font-size: 12px; }

    .link-cards { grid-template-columns: 1fr 1fr; gap: 8px; }
    .link-card { padding: 12px 10px; }
    .link-card__title { font-size: 14px; }
    .link-card__text { font-size: 12px; }

    .card-list { grid-template-columns: 1fr; }
    .pay-card { min-height: 120px; }
    .pay-card__number { font-size: 18px; }

    .album-tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
    .category-art { font-size: 15px; }
    .album-tile__price em { font-size: 15px; }

    .order-box__title small { display: block; margin-left: 0; }
    .table { font-size: 12px; }
    .table th,
    .table td { padding: 6px 8px; }

    .p-title { font-size: 15px; }

    .cart-bar__inner { padding: 10px 12px; }
    .cart-bar__summary { font-size: 12px; }
    .cart-bar__summary strong { font-size: 16px; }

    .dialog__body { grid-template-columns: 1fr; gap: 12px; padding: 20px 16px; }
    .dialog__title { font-size: 18px; }

    .player__album { grid-template-columns: 120px 1fr; gap: 12px; }
    .player__title { font-size: 18px; }
    .player__desc { font-size: 12px; }
    .player__controls { grid-template-columns: repeat(2, 1fr); }

    .footer__copy { font-size: 10px; }
}

@media (max-width: 380px) {
    .header__logo img { width: 220px; }
}

/* ---------------------------------------------------------------- Business の部屋（マイページ・端末の再生専用画面） */

.room-list { display: grid; gap: 16px; margin-top: 16px; }

.room-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.room-card__title { font-size: 17px; color: var(--green); }
.room-card__info { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 8px 0; font-size: 14px; }
.room-card__info dt { color: var(--text-sub); }
.room-card__info dd { margin: 0; }
.room-card__url { font-size: 13px; word-break: break-all; }
.room-card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.room-card__qr { width: 160px; }
.room-card__qr svg { width: 100%; height: auto; display: block; }

.room-player__category { font-weight: bold; color: var(--green); margin-bottom: 12px; }
.room-player__start { margin-bottom: 16px; font-size: 17px; }
.room-page .header__logo { pointer-events: none; }
/* room.js が hidden で出し入れする要素（.alert・.field など display を持つもの）を確実に隠す */
.room-page [hidden] { display: none !important; }

/* 部屋の設定：カテゴリをサムネイルで選ぶ（setting/room_edit.twig。中身はラジオボタン）。
   サムネイルが緑なので、選択中・フォーカスの色はグレーにする（緑に緑だと分かりにくいため。2026-11-16 高柳さんの依頼） */
.room-albums { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.room-albums .album-tiles { margin-top: 8px; }
.room-album { position: relative; display: block; cursor: pointer; border: 3px solid transparent; border-radius: var(--radius); transition: border-color .15s; }
.room-album:hover { border-color: #c8c8c8; }
.room-album.is-selected { border-color: #555; }
.room-album__input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.room-album:focus-within { outline: 3px dashed #888; outline-offset: 3px; }
.room-album__mark { display: none; position: absolute; top: 6px; left: 6px; z-index: 1; padding: 2px 10px; border-radius: 999px; background: #555; color: #fff; font-size: 12px; font-weight: bold; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.room-album.is-selected .room-album__mark { display: block; }
/* 端末の画面（room.js）はサムネイルを button で作るので、ボタンの見た目を消す */
button.room-album { width: 100%; padding: 0; background: none; font: inherit; color: inherit; text-align: inherit; appearance: none; }
button.room-album:focus { outline: none; }
button.room-album:focus-visible { outline: 3px dashed #888; outline-offset: 3px; }

/* ---------------------------------------------------------------- ご利用マニュアル（manual/_body.twig・macros/manual.twig） */

.manual__lead { margin-bottom: 20px; }
.manual-toc { margin: 0 0 32px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #f7f9f7; }
.manual-toc__title { font-weight: bold; margin-bottom: 8px; }
.manual-toc ol { margin: 0; padding-left: 1.6em; columns: 2; column-gap: 32px; }
.manual-toc li { margin: 2px 0; break-inside: avoid; }
.manual-section { margin-bottom: 48px; scroll-margin-top: 90px; }
.manual-section__title { font-size: 20px; color: var(--green); border-bottom: 2px solid var(--green); padding-bottom: 6px; margin-bottom: 16px; }
.manual-section__sub { font-size: 17px; margin: 28px 0 10px; padding-left: 10px; border-left: 4px solid var(--green); }
.manual-list { margin: 12px 0; padding-left: 1.4em; list-style: disc; }
.manual-list li { margin: 6px 0; }
.manual-terms { display: grid; grid-template-columns: minmax(9em, auto) 1fr; gap: 8px 16px; margin: 16px 0; }
.manual-terms dt { font-weight: bold; }
.manual-terms dd { margin: 0; }
.manual-note { margin: 16px 0; padding: 12px 16px; border-radius: var(--radius); background: #fff8e1; border-left: 4px solid #f5b400; }
.manual-table td:first-child { white-space: nowrap; font-weight: bold; }
.manual-shot { margin: 16px auto 24px; max-width: 760px; }
.manual-shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.manual-shot--narrow { max-width: 420px; margin-left: auto; margin-right: auto; }
.manual-shot figcaption { margin-top: 6px; font-size: 13px; color: var(--text-sub); text-align: center; }
.manual-shot__placeholder { display: flex; align-items: center; justify-content: center; min-height: 160px; border: 2px dashed var(--line); border-radius: var(--radius); color: var(--text-sub); background: #fafafa; }

@media (max-width: 600px) {
    .manual-toc ol { columns: 1; }
    .manual-terms { grid-template-columns: 1fr; gap: 2px; }
    .manual-terms dd { margin-bottom: 8px; }
}

@media (max-width: 600px) {
    .room-card { grid-template-columns: 1fr; }
    .room-card__qr { width: 140px; margin: 0 auto; }
}
