@charset "utf-8";
/* =========================================================
   ご注文ページ（shopping_cart/index.shtml）専用。ヘッダー・フッターは ../site-common.css。
   このファイル1本で表示が完結するよう、共通の土台（misodukuri.css の必要分）・
   このページ固有の指定・見出し帯（.hero）の配色 をまとめてある。
   他のフォルダのCSSには依存しない。
   ========================================================= */

/* ===== 共通の土台（misodukuri.css から、このページで使う分だけ） ===== */
:root {
  --c-bg: #faf6ef;
  --c-surface: #ffffff;
  --c-text: #2b2118;
  --c-muted: #6b5a4a;
  --c-miso: #7a4a22;
  --c-miso-dark: #5a3416;
  --c-koji: #f2c230;
  --c-koji-soft: #fdf3d2;
  --c-accent: #b0301f;
  --c-line: #e8ddcc;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(90, 52, 22, .08);
  --font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --font-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --container: 1080px;
}
/* ===== ベース ===== */
*,
*::before,
*::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  overflow-x: hidden;               /* 横スクロール防止の保険 */
}
@supports (overflow-x: clip) {
html { overflow-x: clip; }
}
body {
  margin: 0;
  color: var(--c-text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.9;
  letter-spacing: .02em;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-miso); }
a:hover { color: var(--c-miso-dark); }
:focus-visible { outline: 3px solid var(--c-koji); outline-offset: 2px; }
em { font-style: normal; font-weight: 700; color: var(--c-accent); }
rt { font-size: .6em; }
.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--c-miso); color: #fff; padding: .5em 1em; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }
/* ヘッダー・フッター内のリンク色はサイト共通CSSを優先 */
.site-footer a:hover,
.site-footer a:focus { color: #fff; }
/* ===== ページヒーロー ===== */
.hero {
  padding-block: clamp(32px, 6vw, 64px);
}
.breadcrumb ol {
  list-style: none; margin: 0 0 1em; padding: 0;
  display: flex; flex-wrap: wrap; gap: .3em; font-size: .82rem; opacity: .85;
}
.breadcrumb li + li::before { content: "›"; margin-right: .3em; }
.breadcrumb a { color: #fff; }
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 6.4vw, 2.8rem);
  line-height: 1.4; margin: 0 0 .6em; letter-spacing: .08em;
  text-wrap: balance;
}
.hero__lead { margin: 0 0 1.4em; max-width: 42em; opacity: .94; }
.hero__lead:last-child { margin-bottom: 0; }
/* ===== 本文セクション ===== */
.section {
  display: flow-root;                 /* 回り込み画像を内側に収める */
  background: var(--c-surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 44px); margin-bottom: 32px;
  scroll-margin-top: 16px;
  overflow-wrap: anywhere;
}
.section h2 {
  font-family: var(--font-serif); font-size: clamp(1.3rem, 3vw, 1.65rem); line-height: 1.5;
  margin: 0 0 1em; padding-bottom: .5em; position: relative; color: var(--c-miso-dark);
}
.section h2::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 56px; height: 4px; border-radius: 2px; background: var(--c-koji);
}
.section h3 { font-family: var(--font-serif); font-size: 1.15rem; margin: 1.6em 0 .6em; color: var(--c-miso-dark); }
.section p { margin: 0 0 1.2em; }
.section > :last-child { margin-bottom: 0; }
.section ol,
.section ul { margin: 0 0 1.2em; padding-left: 1.6em; }
.section li { margin-bottom: .4em; }
.section li::marker { color: var(--c-miso); font-weight: 700; }
[id] { scroll-margin-top: 16px; }
/* ===== 工程（造り方） ===== */
.step { padding: 0; overflow: hidden; }
.step h2 { display: flex; align-items: center; gap: .6em; }
/* ===== 商品カード ===== */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  background: var(--c-koji); color: var(--c-text); text-decoration: none;
  font-weight: 700; padding: .8em 1.8em; border-radius: 999px;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { color: var(--c-text); transform: translateY(-2px); box-shadow: 0 6px 14px rgba(242,194,48,.45); }
/* ===== 前後ページ ===== */
@media (max-width: 480px) {
.section { padding: 22px 18px; margin-bottom: 20px; }
.step { padding: 0; }
.btn { width: 100%; justify-content: center; }
.hero h1 { letter-spacing: .04em; }
}
/* ===== サイドメニュー ===== */
.pagetop {
  position: fixed; right: 16px; bottom: 16px; width: 48px; height: 48px;
  border-radius: 50%; background: var(--c-miso); color: #fff; text-decoration: none;
  display: grid; place-items: center; box-shadow: var(--shadow); font-size: 1.2rem; z-index: 40;
}
.pagetop:hover { background: var(--c-miso-dark); color: #fff; }
@media (prefers-reduced-motion: reduce) {
html { scroll-behavior: auto; }
.btn { transition: none; }
}
/* ===== 印刷 ===== */
@media print {
.pagetop,
.skip-link { display: none !important; }
body { background: #fff; }
.hero { background: none; color: #000; padding-block: 0 1em; }
.hero a,
.breadcrumb a { color: #000; }
.section { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
details > :not(summary) { display: block !important; }
}
.hero__lead a { color: #fff; text-decoration-color: var(--c-koji); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.hero__lead a:hover { color: var(--c-koji); }
/* 最終更新日 */
.page-updated { margin: 0 0 8px; text-align: right; font-size: .8rem; color: var(--c-muted); }

/* ===== このページ固有 ===== */
.order { padding-block: clamp(32px, 5vw, 56px); }
.order main { max-width: 900px; margin-inline: auto; }

.red, .akamoji { color: #c00; font-weight: 700; } /* .akamoji は cart.cgi の文中で使用 */
/* ご注文の流れ（進捗表示）。画像を使わず HTML/CSS で作る部品。
   ・色は --accent（無ければ茶色）を使う。confirmation01.css を読み込んでいれば、その色変数に自動で合う。
   ・商品選択ページ（shopping_cart/index.shtml）にもそのまま使える。使い方は下のコメント参照。

   <ol class="steps" aria-label="ご注文の流れ">
     <li class="steps__item is-done"><span class="steps__num">1</span><span class="steps__label">商品選択</span></li>
     <li class="steps__item is-current" aria-current="step"><span class="steps__num">2</span><span class="steps__label">情報入力</span></li>
     <li class="steps__item"><span class="steps__num">3</span><span class="steps__label">内容確認</span></li>
     <li class="steps__item"><span class="steps__num">4</span><span class="steps__label">注文完了</span></li>
   </ol>
   ※現在の段階に is-current、済んだ段階に is-done を付ける。
   ※スクロールすると、画面の上に固定される（position: sticky）。固定は、この <ol> を含む親要素の範囲内で働くので、
     親要素に overflow: hidden などが付いていると効かない。*/

.steps {
	display: flex;
	list-style: none;
	margin: .4rem auto 1.2rem;
	padding: .5rem .75rem .4rem;
	max-width: 560px;
	box-sizing: border-box;
	font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Meiryo UI", "Yu Gothic UI", Meiryo, sans-serif;
	/* スクロールしても画面の上に固定する（今どの段階かを、いつでも見えるように）*/
	position: sticky;
	top: 8px;
	top: max(8px, env(safe-area-inset-top, 0px));
	z-index: 50;
	background: rgba(255, 255, 255, .95);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
}
/* 固定された進捗表示の下に、ページ内リンクの移動先が隠れないようにする */
html { scroll-padding-top: 6.5rem; }
.steps__item {
	position: relative;
	flex: 1;
	min-width: 0;
	margin: 0;
	text-align: center;
	font-size: .8rem;
	line-height: 1.3;
	color: #8a8478;
}
.steps__item::before { /* 前の段階とつなぐ線 */
	content: "";
	position: absolute;
	top: 1.05rem;
	left: -50%;
	width: 100%;
	height: 2px;
	background: #d9d1c2;
}
.steps__item:first-child::before { display: none; }
.steps__num {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.1rem;
	height: 2.1rem;
	box-sizing: border-box;
	border: 2px solid #d9d1c2;
	border-radius: 50%;
	background: #fff;
	font-weight: bold;
	font-size: .95rem;
}
.steps__label { display: block; margin-top: .3rem; }

.steps__item.is-done::before, .steps__item.is-current::before { background: var(--accent, #8a4b1f); }
.steps__item.is-done { color: var(--accent, #8a4b1f); }
.steps__item.is-done .steps__num { border-color: var(--accent, #8a4b1f); background: var(--accent-soft, #f3e7da); color: var(--accent, #8a4b1f); font-size: 0; }
.steps__item.is-done .steps__num::after { content: "✓"; font-size: 1rem; }
.steps__item.is-current { color: var(--ink, #2b2a28); font-weight: bold; }
.steps__item.is-current .steps__num { border-color: var(--accent, #8a4b1f); background: var(--accent, #8a4b1f); color: #fff; box-shadow: 0 0 0 4px var(--accent-soft, #f3e7da); }

@media (max-width: 520px) {
	.steps { padding: .35rem .5rem .3rem; margin-bottom: .9rem; }
	.steps__item { font-size: .74rem; }
	.steps__num { width: 1.8rem; height: 1.8rem; font-size: .85rem; }
	.steps__item::before { top: .9rem; }
	.steps__label { margin-top: .15rem; }
	html { scroll-padding-top: 5rem; }
}
@media (max-width: 380px) { .steps__item { font-size: .68rem; } }
@media print { .steps { display: none; } }

/* お知らせカード */
.news { border-left: 6px solid #c85546; }
.news h2 { display: flex; align-items: center; flex-wrap: wrap; gap: .6em; }
.news h2::before {
  content: "お知らせ"; background: #c85546; color: #fff; font-family: var(--font-sans);
  font-size: .75rem; padding: 2px 8px; border-radius: 4px; letter-spacing: .05em;
}
.news .hiduke { font-size: .8rem; color: var(--c-muted); margin: -.4em 0 1em; }
.news img { margin-inline: auto; border-radius: 8px; }

/* 基本情報 */
#jyouken ol > li { margin-bottom: 1em; }
#jyouken ul { margin: .4em 0 0; }

.form-hint { font-size: .85rem; color: var(--c-muted); margin: 0 0 12px; }

/* 商品グループ（開閉） */
.order-group { background: var(--c-surface); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 16px; }
.order-group summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1em;
  padding: 1em 1.3em; font-family: var(--font-serif); font-size: 1.15rem; font-weight: 700; color: var(--c-miso-dark);
}
.order-group summary::-webkit-details-marker { display: none; }
.order-group summary::after { content: "＋"; transition: transform .2s; }
.order-group[open] summary::after { transform: rotate(45deg); }
.order-group summary:hover { background: var(--c-koji-soft); border-radius: var(--radius); }
.order-list { display: grid; gap: 16px; padding: 4px 16px 18px; }

/* 商品1点 */
.order-item {
  display: grid; grid-template-columns: 174px minmax(0, 1fr); gap: 20px;
  border: 1px solid var(--c-line); border-top: 6px solid var(--tone, #ccc); border-radius: 12px; padding: 16px;
}
.order-item__img img { width: 100%; max-width: 174px; border-radius: 10px; }
.order-item h3 { font-family: var(--font-serif); font-size: 1.1rem; line-height: 1.5; margin: 0 0 .2em; }
.order-item p { margin: 0 0 .5em; }
.order-item .code { font-size: .8rem; color: var(--c-muted); }
.order-item .contents { font-size: .9rem; line-height: 1.7; }
.order-item .comment { font-size: .88rem; line-height: 1.7; color: var(--c-muted); }
.tag {
  display: inline-block; margin: 0 .3em .2em 0; padding: .05em .7em; border-radius: 999px;
  background: var(--c-koji-soft); color: var(--c-miso); font-size: .75rem; font-weight: 700;
}
.order-item__buy {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  margin-top: .6em; padding-top: .6em; border-top: 1px dashed var(--c-line);
}
.price { font-size: 1.5rem; font-weight: 700; color: var(--c-accent); }
.price small { font-size: .75rem; font-weight: 400; color: var(--c-muted); }
.qty { font-size: .9rem; }
.qty input {
  width: 6.5em; font: inherit; font-size: 1.2rem; text-align: right; padding: .3em .5em;
  border: 1px solid var(--c-line); border-radius: 8px;
}

/* 送信ボタン（画面下に固定） */
.order-actions {
  position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  padding: 10px; background: rgba(250, 246, 239, .96); border-top: 1px solid var(--c-line);
}
.order-actions .btn { border: 0; font: inherit; font-weight: 700; cursor: pointer; justify-content: center; }
.order-actions .btn--sub { background: #fff; border: 1px solid var(--c-line); color: var(--c-muted); }
.order .pagetop { bottom: 80px; }

/* 写真拡大 */
#zoom { border: 0; padding: 0; border-radius: 12px; max-width: 92vw; background: transparent; }
#zoom::backdrop { background: rgba(0, 0, 0, .8); }
#zoom img { max-width: 92vw; max-height: 90vh; border-radius: 12px; margin-inline: auto; }

@media (max-width: 520px) {
  .order-item { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .order-item__img img { margin-inline: auto; }
  .order-actions .btn { flex: 1 1 100%; }
}

/* =========================================================
   会社・ご案内ページの見出し帯（.hero）
   商品ではなくサイト全体に関わるページなので、
   和紙のような生成り〜淡いグレージュ。文字は濃い焦げ茶。
   ========================================================= */
.hero {
  color: #2f2822;
  background:
    radial-gradient(ellipse 55% 85% at 10% 10%, rgba(255,255,255,.85), transparent 60%),
    linear-gradient(180deg, #f7f4ee 0%, #e9e3d8 100%);
  background-color: #efeae1;
  border-bottom: 1px solid #ddd4c4;
}
.hero h1 { color: #2f2822; }
.hero__lead { color: #54483c; opacity: 1; }
.breadcrumb ol { opacity: 1; color: #54483c; }
.breadcrumb a { color: #54483c; }
.breadcrumb a:hover { color: var(--c-miso-dark); }
.page-toc a { color: #3a3027; background: rgba(255,255,255,.75); border: 1px solid #d6cbb8; }
.page-toc a:hover { color: var(--c-miso-dark); background: #fff; border-color: var(--c-miso); }
