/* 組合員向け3ページ共通スタイル（index / entry / order）
   世界観: エーコープ新茶チラシ（桜・金・深緑・富士山）。見出し明朝、UIゴシック。
   高齢の組合員前提: 文字16px以上・タップ領域44px以上。 */

body { font-size: 16px; }

/* ---------------------------------------------------------------- 共通部品 */
/* サイト共通ヘッダ: 全ページ同じテーマカラー帯（JA全農ロゴ赤のフラット塗り） */
.top-bar {
  position: relative; z-index: 2;
  background: var(--site-header);
  color: #fff;
}
.top-bar-inner {
  display: flex; align-items: center; gap: 14px;
  min-height: 58px; padding: 7px 0;
}
.top-bar-nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.top-bar-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 13px;
  border-radius: 10px; text-decoration: none; color: rgba(255, 255, 255, 0.92); font-size: 15px;
}
.top-bar-nav a:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
@media (max-width: 720px) { .top-bar-nav .nav-optional { display: none; } }

.kicker {
  font-size: 13px; font-weight: 700; letter-spacing: 0.22em;
  color: var(--tea); text-transform: uppercase;
}
.section-title { font-size: 28px; margin: 6px 0 10px; color: var(--tea-deep); line-height: 1.35; }
.section-lead { color: var(--ink-soft); font-size: 15.5px; max-width: 46em; margin: 0 0 26px; }
@media (max-width: 720px) { .section-title { font-size: 23px; } }

.ch-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px;
  background: var(--white); border: 1.5px solid var(--c, var(--ink-soft)); color: var(--c, var(--ink-soft));
  white-space: nowrap;
}
.ch-badge::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--ink-soft)); }

.site-footer {
  margin-top: 64px; padding: 26px 0 40px;
  border-top: 1px solid var(--line); background: var(--white);
}
.site-footer .foot-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--ink-soft); font-size: 13.5px; }
.site-footer .foot-mark { display: inline-flex; width: 20px; height: 20px; color: var(--tea); }

.icon-chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 13px; flex: none;
  background: color-mix(in srgb, var(--c, var(--tea)) 12%, #fff);
  color: var(--c, var(--tea));
}
.icon-chip svg, .icon-chip span { width: 24px; height: 24px; display: inline-flex; }
@supports not (background: color-mix(in srgb, red 10%, #fff)) {
  .icon-chip { background: var(--tea-soft); }
}

.inline-error {
  display: flex; gap: 8px; align-items: flex-start;
  background: #fbeaec; border: 1px solid #eec3ca; color: var(--red);
  border-radius: 10px; padding: 10px 14px; font-size: 15px; font-weight: 600;
  margin-bottom: 12px;
}
.inline-error[hidden] { display: none; }

/* ---------------------------------------------------------------- ランディング */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: var(--tea-deep) url("/assets/hero.jpg") center 38% / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(14, 42, 33, 0.94) 0%, rgba(17, 51, 40, 0.82) 44%, rgba(20, 61, 48, 0.42) 78%, rgba(20, 61, 48, 0.30) 100%);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
  background: linear-gradient(90deg, var(--gold), #dcb85e 35%, var(--sakura) 70%, var(--gold));
}
.hero-inner { position: relative; padding: 72px 0 64px; max-width: 720px; }
.hero .kicker { color: #e8cd8a; }
.hero h1 { font-size: clamp(32px, 5.4vw, 52px); line-height: 1.22; margin: 10px 0 22px; text-shadow: 0 2px 14px rgba(0,0,0,0.35); }
.hero-key {
  display: inline-block; font-size: clamp(19px, 2.7vw, 25px); line-height: 1.6;
  border-left: 4px solid var(--gold); padding: 4px 2px 4px 18px;
  text-shadow: 0 1px 10px rgba(0,0,0,0.4);
}
.hero-sub { margin: 18px 0 30px; font-size: 16.5px; color: rgba(255,255,255,0.92); text-shadow: 0 1px 8px rgba(0,0,0,0.45); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-actions .btn-ghost {
  background: rgba(255,255,255,0.08); border: 1.5px solid rgba(255,255,255,0.65); color: #fff;
}
.hero-actions .btn-ghost:hover { background: rgba(255,255,255,0.2); }
@media (max-width: 720px) { .hero-inner { padding: 52px 0 46px; } }

.home-section { padding-top: 58px; }

.entrance-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.entrance-card {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 16px; text-decoration: none; color: var(--ink);
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}
.entrance-card:hover {
  transform: translateY(-2px);
  border-color: var(--c, var(--tea));
  box-shadow: 0 3px 6px rgba(38,34,28,0.07), 0 10px 28px rgba(38,34,28,0.12);
}
.entrance-card .en-title { font-weight: 700; font-size: 17px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.entrance-card .en-title small { color: var(--ink-soft); font-size: 11px; font-weight: 600; letter-spacing: .02em; }
.entrance-card .en-desc { font-size: 14px; color: var(--ink-soft); margin-top: 3px; line-height: 1.55; }
.entrance-card .en-go {
  margin-top: 7px; font-size: 13.5px; font-weight: 700; color: var(--c, var(--tea));
  display: inline-flex; align-items: center; gap: 5px;
}
.entrance-card .en-go svg { width: 15px; height: 15px; }

/* 集約図 */
.hub-figure { margin: 34px auto 0; max-width: 960px; }
.hub-figure svg { width: 100%; height: auto; display: block; }
.hub-figure .flow-path {
  fill: none; stroke-width: 2.4; opacity: 0.85;
  stroke-dasharray: 7 6; animation: hubflow 1.6s linear infinite;
}
.hub-figure .dest-path { fill: none; stroke: var(--gold); stroke-width: 2.6; stroke-dasharray: 7 6; animation: hubflow 1.6s linear infinite; }
@keyframes hubflow { to { stroke-dashoffset: -13; } }
.hub-figure .node-box { fill: #fff; stroke: var(--line); }
.hub-figure text { font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif; }
.hub-mobile { display: none; }
@media (max-width: 720px) {
  .hub-figure { display: none; }
  .hub-mobile { display: block; margin-top: 30px; text-align: center; }
}
.hub-mobile .hub-chip-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.hub-mobile .hub-chip {
  font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px;
  background: #fff; border: 1.5px solid var(--c, var(--line)); color: var(--c, var(--ink));
}
.hub-mobile .hub-arrow { margin: 12px auto; width: 26px; height: 26px; color: var(--gold); }
.hub-mobile .hub-core {
  display: inline-block; background: var(--tea-deep); color: #fff;
  border-radius: 16px; padding: 16px 30px;
}
.hub-mobile .hub-core .display { font-size: 20px; }
.hub-mobile .hub-core small { display: block; color: #cfe0d8; font-size: 12.5px; }
.hub-mobile .dest-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.hub-mobile .dest-chip {
  font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px;
  background: var(--gold-soft); color: #7a5a06; border: 1.5px solid #e4cf9a;
}

/* 受注後ワークフローの流れ図（与信→承認→FAX→全農） */
.flow-strip {
  display: flex; align-items: stretch; gap: 6px; padding: 22px 20px;
  overflow-x: auto;
}
.flow-step {
  flex: 1 1 0; min-width: 128px; display: grid; justify-items: center; gap: 3px;
  text-align: center; padding: 6px 4px; border-radius: 12px;
}
.flow-step b { font-size: 15.5px; color: var(--tea-deep); }
.flow-step > span:last-child { font-size: 12px; color: var(--ink-soft); line-height: 1.5; }
.flow-step .fs-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 13px; margin-bottom: 5px;
  background: color-mix(in srgb, var(--c, var(--tea)) 11%, #fff);
  color: var(--c, var(--tea));
}
.flow-step .fs-icon svg { width: 23px; height: 23px; }
.flow-step.flow-goal { background: var(--tea-soft); }
.flow-arrow { flex: none; align-self: center; width: 18px; height: 18px; color: var(--gold); }
.flow-arrow svg { width: 100%; height: 100%; }
@supports not (background: color-mix(in srgb, red 10%, #fff)) {
  .flow-step .fs-icon { background: var(--tea-soft); }
}

.admin-cta {
  margin-top: 58px; border-radius: 18px; overflow: hidden;
  background: linear-gradient(115deg, var(--tea-deep) 0%, var(--tea) 62%, #2c7a5f 100%);
  color: #fff; box-shadow: var(--shadow);
}
.admin-cta-inner { display: flex; align-items: center; gap: 22px; padding: 30px 32px; flex-wrap: wrap; }
.admin-cta .icon-chip { background: rgba(255,255,255,0.14); color: #f0e2b8; width: 56px; height: 56px; border-radius: 16px; }
.admin-cta .icon-chip svg { width: 30px; height: 30px; }
.admin-cta h2 { margin: 0 0 4px; font-size: 24px; }
.admin-cta p { margin: 0; color: rgba(255,255,255,0.88); font-size: 15px; max-width: 40em; }
.admin-cta .btn { margin-left: auto; }
.live-dot {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em; color: #ffd9e2; margin-bottom: 4px;
}
.live-dot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #ff8fa8; animation: livepulse 1.6s ease-in-out infinite; }
@keyframes livepulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@media (max-width: 720px) { .admin-cta .btn { margin-left: 0; } }

.pillars { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.pillar-card { padding: 24px 22px; position: relative; }
.pillar-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; margin-bottom: 12px;
  background: var(--gold-soft); color: var(--gold); border: 1.5px solid #e4cf9a;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif; font-size: 20px; font-weight: 700;
}
.pillar-card h3 { margin: 0 0 8px; font-size: 19px; color: var(--tea-deep); }
.pillar-card p { margin: 0; font-size: 14.5px; color: var(--ink-soft); line-height: 1.7; }

/* ---------------------------------------------------------------- 入口シミュレータ */
.entry-hero { padding: 40px 0 8px; }
.entry-hero h1 { font-size: 30px; margin: 8px 0 12px; color: var(--tea-deep); }
.entry-hero .lead {
  font-size: 16.5px; max-width: 44em; margin: 0;
  border-left: 4px solid var(--gold); padding-left: 16px;
}
@media (max-width: 720px) { .entry-hero h1 { font-size: 24px; } }

.entry-section { padding-top: 54px; scroll-margin-top: 20px; }
.entry-section-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.entry-section-head h2 { font-size: 24px; margin: 0; color: var(--tea-deep); }
.entry-note { color: var(--ink-soft); font-size: 15px; max-width: 46em; margin: 4px 0 22px; }

.entry-flex { display: flex; gap: 28px; align-items: flex-start; flex-wrap: wrap; }
.entry-side { flex: 1 1 340px; min-width: 300px; max-width: 560px; display: grid; gap: 14px; }

/* スマホ実機風フレーム */
.phone {
  flex: none; width: 340px; max-width: 100%;
  background: #17171b; border-radius: 48px; padding: 11px;
  box-shadow: 0 22px 55px rgba(20, 30, 26, 0.30), inset 0 0 0 2px #33333b;
}
.phone-screen {
  border-radius: 38px; overflow: hidden; background: #eef1ef;
  display: flex; flex-direction: column; min-height: 620px; position: relative;
}
.phone-status {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 22px 4px; font-size: 13px; font-weight: 700; color: #fff;
}
.phone-status .status-icons { display: inline-flex; gap: 6px; align-items: center; }
.phone-status svg { width: 17px; height: 12px; display: block; }
.phone-home-bar { position: absolute; bottom: 7px; left: 50%; transform: translateX(-50%); width: 110px; height: 5px; border-radius: 3px; background: rgba(0,0,0,0.28); }

/* JAコネクト画面 */
.jac-top { background: var(--ch-jaconnect); color: #fff; }
.jac-header { display: flex; align-items: center; gap: 10px; padding: 8px 16px 12px; }
.jac-header .jac-logo { display: inline-flex; width: 26px; height: 26px; padding: 4px; background: rgba(255,255,255,0.16); border-radius: 7px; }
.jac-header .jac-name { font-weight: 800; font-size: 17px; letter-spacing: 0.02em; }
.jac-header .jac-ja { margin-left: auto; font-size: 12px; font-weight: 700; background: rgba(255,255,255,0.18); padding: 3px 10px; border-radius: 999px; }
.jac-tabs { display: flex; gap: 18px; padding: 0 18px; background: var(--ch-jaconnect); }
.jac-tabs span { color: rgba(255,255,255,0.75); font-size: 13.5px; font-weight: 700; padding: 4px 2px 9px; }
.jac-tabs .active { color: #fff; border-bottom: 3px solid #f2d488; }
.msg-list { padding: 14px 12px 60px; display: grid; gap: 10px; overflow-y: auto; }
.msg-card { background: #fff; border-radius: 14px; border: 1px solid #e2e0d8; padding: 13px 14px; box-shadow: 0 1px 3px rgba(30,40,35,0.06); }
.msg-card .msg-meta { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--ink-soft); margin-bottom: 4px; }
.msg-card .msg-new {
  background: var(--red); color: #fff; font-size: 10px; font-weight: 800;
  border-radius: 999px; padding: 1px 7px; letter-spacing: 0.08em;
  white-space: nowrap; flex: none;
}
.msg-card .msg-title { font-weight: 700; font-size: 14.5px; line-height: 1.5; }
.msg-card .msg-body { font-size: 13px; color: var(--ink-soft); margin-top: 4px; line-height: 1.55; }
.msg-card.featured { border: 1.5px solid var(--ch-jaconnect); box-shadow: 0 3px 14px rgba(30,122,90,0.16); }
.jac-btn {
  display: flex; width: 100%; min-height: 46px; margin-top: 10px;
  align-items: center; justify-content: center; gap: 8px;
  background: var(--ch-jaconnect); color: #fff; border: none; border-radius: 12px;
  font-size: 15.5px; font-weight: 700;
}
.jac-btn:active { background: var(--tea-deep); }
.jac-btn[disabled] { opacity: 0.6; }
.jac-btn svg { width: 18px; height: 18px; }
.app-tabbar {
  margin-top: auto; display: flex; border-top: 1px solid #e0ded6; background: #fff;
  padding: 6px 0 18px;
}
.app-tabbar span { flex: 1; display: grid; justify-items: center; gap: 2px; font-size: 10px; color: #9a948a; font-weight: 700; }
.app-tabbar span.active { color: var(--ch-jaconnect); }
.app-tabbar svg { width: 22px; height: 22px; }

.tech-card { padding: 20px 22px; }
.tech-card h3 { margin: 0 0 8px; font-size: 17px; color: var(--tea-deep); display: flex; gap: 8px; align-items: center; }
.tech-card p { font-size: 14.5px; margin: 0 0 10px; color: var(--ink); line-height: 1.75; }
.tech-card ul { margin: 0 0 10px; padding-left: 20px; font-size: 14.5px; line-height: 1.75; }
.tech-card li { margin-bottom: 4px; }
.mono-url {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px;
  background: #f2efe8; border: 1px solid var(--line); border-radius: 8px;
  padding: 9px 11px; word-break: break-all; color: #514c42; line-height: 1.6;
}
.phase-note {
  background: var(--gold-soft); border: 1px solid #e4cf9a; border-radius: 10px;
  padding: 10px 14px; font-size: 13.5px; color: #6d5106; line-height: 1.65;
}

/* QRチラシ切り抜き風 */
.kiritori {
  position: relative; background: #fff; border: 2.5px dashed #b9b2a4; border-radius: 4px;
  padding: 28px 24px 24px; max-width: 760px;
  box-shadow: 0 8px 30px rgba(38,34,28,0.10);
}
.kiritori::before {
  content: "キリトリ"; position: absolute; top: -11px; left: 34px;
  background: var(--paper); color: #8d867a; font-size: 11px; letter-spacing: 0.3em;
  padding: 0 8px;
}
.kiritori .scissors {
  position: absolute; top: -13px; right: 30px; width: 24px; height: 24px;
  color: #8d867a; background: var(--paper); padding: 0 5px;
}
.kiritori h3 { margin: 0 0 4px; font-size: 20px; color: var(--tea-deep); }
.kiritori .kiritori-copy { font-size: 14.5px; color: var(--ink-soft); margin: 0 0 18px; }
.qr-tiles { display: flex; gap: 18px; flex-wrap: wrap; }
.qr-tile {
  flex: 1 1 220px; max-width: 300px; text-align: center;
  border: 1.5px solid var(--tea); border-radius: 12px; padding: 16px 14px 14px;
  background: #fff;
}
.qr-tile .qr-box { width: 168px; height: 168px; margin: 10px auto; }
.qr-tile .qr-box svg { width: 100%; height: 100%; display: block; }
.qr-tile .qr-ja { font-size: 16.5px; font-weight: 700; }
.qr-tile .qr-url { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11px; color: var(--ink-soft); word-break: break-all; margin-top: 6px; }
.qr-tile .entry-actions { display: grid; justify-items: center; gap: 10px; margin-top: 12px; }
.qr-tile .entry-actions .btn { width: min(100%, 208px); }
.qr-hint { display: flex; gap: 8px; align-items: center; margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--tea-deep); }
.qr-hint svg { width: 19px; height: 19px; flex: none; }

/* LINEトーク風 */
.line-screen { background: #96a8c2; }
.line-header { background: var(--ch-line); color: #fff; display: flex; align-items: center; gap: 10px; padding: 8px 14px 11px; }
.line-header svg { width: 20px; height: 20px; }
.line-header .line-name { font-weight: 800; font-size: 15.5px; }
.line-header .line-badge { font-size: 10px; background: rgba(255,255,255,0.22); border-radius: 4px; padding: 1px 6px; font-weight: 700; }
.line-chat { padding: 16px 12px 60px; display: grid; gap: 12px; align-content: start; }
.line-row { display: flex; gap: 8px; align-items: flex-end; }
.line-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: var(--tea); color: #fff; display: inline-flex; align-items: center; justify-content: center; padding: 7px;
}
.line-bubble {
  background: #fff; border-radius: 16px; border-top-left-radius: 5px;
  padding: 10px 14px; font-size: 14px; max-width: 76%; line-height: 1.6;
  box-shadow: 0 1px 2px rgba(0,0,0,0.10);
}
.line-time { font-size: 10.5px; color: rgba(255,255,255,0.85); flex: none; }
.line-card {
  display: block; width: min(78%, 240px); text-decoration: none; color: var(--ink);
  background: #fff; border-radius: 16px; border-top-left-radius: 5px; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.14);
}
.line-card .line-card-img { height: 92px; background: url("/assets/hero.jpg") center 30% / cover; }
.line-card .line-card-body { padding: 11px 14px 6px; }
.line-card .line-card-title { font-weight: 800; font-size: 14.5px; line-height: 1.45; }
.line-card .line-card-sub { font-size: 12px; color: var(--ink-soft); margin-top: 3px; }
.line-card .line-card-btn {
  display: flex; align-items: center; justify-content: center; min-height: 44px;
  border-top: 1px solid #eee; color: var(--ch-line); font-weight: 800; font-size: 14.5px;
}

/* JAホームページ バナー風 */
.web-mock { max-width: 760px; overflow: hidden; padding: 0; }
.web-chrome { display: flex; align-items: center; gap: 10px; background: #ece9e2; padding: 9px 14px; border-bottom: 1px solid var(--line); }
.web-chrome .dots { display: inline-flex; gap: 5px; }
.web-chrome .dots i { width: 10px; height: 10px; border-radius: 50%; background: #cfc9bc; }
.web-chrome .addr {
  flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 8px;
  font-size: 12.5px; color: var(--ink-soft); padding: 5px 12px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.web-sitebar { display: flex; align-items: center; gap: 16px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.web-sitebar .web-logo { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--tea-deep); font-size: 16px; }
.web-sitebar .web-logo svg { width: 20px; height: 20px; color: var(--tea); }
.web-sitebar nav { margin-left: auto; display: flex; gap: 14px; font-size: 13px; color: var(--ink-soft); }
@media (max-width: 560px) { .web-sitebar nav span:nth-child(n+3) { display: none; } }
.web-banner {
  display: flex; align-items: center; gap: 18px; margin: 18px; padding: 22px 24px;
  border-radius: 14px; text-decoration: none; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(112deg, var(--tea-deep) 0%, var(--tea) 55%, #55876f 100%);
}
.web-banner::after {
  content: ""; position: absolute; right: -30px; top: -40px; width: 170px; height: 170px;
  border-radius: 50%; background: radial-gradient(circle, rgba(217,139,163,0.45), transparent 68%);
}
.web-banner .wb-copy { position: relative; }
.web-banner .wb-season { font-size: 12.5px; letter-spacing: 0.24em; color: #efd9a0; font-weight: 700; }
.web-banner .wb-title { font-size: 23px; line-height: 1.4; margin: 2px 0 4px; }
.web-banner .wb-sub { font-size: 13px; color: rgba(255,255,255,0.88); }
.web-banner .wb-btn {
  position: relative; margin-left: auto; flex: none;
  background: #fff; color: var(--tea-deep); font-weight: 800; font-size: 15px;
  border-radius: 999px; padding: 12px 22px; min-height: 44px; display: inline-flex; align-items: center; gap: 7px;
}
.web-banner .wb-btn svg { width: 16px; height: 16px; }
@media (max-width: 560px) {
  .web-banner { flex-direction: column; align-items: flex-start; }
  .web-banner .wb-btn { margin-left: 0; }
}

/* ---------------------------------------------------------------- 注文フロー */
.order-body { padding-bottom: 40px; }
/* 注文フローのヘッダ（.order-top）は申込書画面と共通のため app.css にある */
body.embed .order-top, body.embed .order-alt-contact, body.embed .site-footer { display: none; }

.order-main { max-width: 640px; margin: 0 auto; padding: 18px 16px 30px; }

.step-nav { display: flex; align-items: center; gap: 4px; margin: 4px 0 18px; }
.step-nav .sn { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: #b3ac9f; }
.step-nav .sn i {
  display: inline-flex; align-items: center; justify-content: center; font-style: normal;
  width: 26px; height: 26px; border-radius: 50%; background: #eae6dd; color: #98917f; font-size: 13px;
}
.step-nav .sn.current { color: var(--tea-deep); }
.step-nav .sn.current i { background: var(--tea); color: #fff; }
.step-nav .sn.done { color: var(--tea); }
.step-nav .sn.done i { background: var(--tea-soft); color: var(--tea); }
.step-nav .sn-bar { flex: 1; height: 2px; background: #e5e1d6; min-width: 12px; }
@media (max-width: 460px) { .step-nav .sn span { display: none; } .step-nav .sn.current span { display: inline; } }

.order-ja-head { margin-bottom: 14px; }
.order-ja-head .ja-name { font-size: 26px; margin: 0; color: var(--tea-deep); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.order-ja-head .ja-name .badge { transform: translateY(2px); }
.order-ja-head .order-title-sub { font-size: 14px; color: var(--ink-soft); margin-top: 2px; }

/* チラシが決まっているとき、カートに並ぶのはそのチラシの商品だけ */
.flyer-scope { margin: 0 0 12px; padding: 8px 12px; border-radius: 10px; background: var(--tea-soft); color: var(--tea-deep); font-size: 14px; font-weight: 700; }
.reception-note {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--gold-soft); border: 1.5px solid #e2cc94; border-radius: 12px;
  padding: 12px 15px; margin: 12px 0 10px;
  font-size: 15px; font-weight: 600; color: #5f4a05; line-height: 1.65;
}
.reception-note svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }

.deadline-chips { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0 4px; }
.deadline-chip {
  background: #fff; border: 1.5px solid var(--gold); border-radius: 12px;
  padding: 8px 14px; line-height: 1.4;
}
.deadline-chip .dc-main { display: flex; align-items: center; gap: 7px; font-weight: 800; font-size: 15px; color: #7a5a06; }
.deadline-chip .dc-main svg { width: 17px; height: 17px; }
.deadline-chip .dc-main strong { color: var(--red); font-size: 17px; }
.deadline-chip .dc-sub { font-size: 12px; color: var(--ink-soft); margin-top: 1px; }

.entry-banner {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--tea-soft); border: 1.5px solid #F1C7CC; border-radius: 12px;
  padding: 12px 15px; margin: 12px 0; font-size: 15px; color: var(--tea-deep); line-height: 1.6;
}
.entry-banner svg { width: 21px; height: 21px; flex: none; margin-top: 2px; color: var(--tea); }
.entry-banner strong { font-weight: 800; }
.warn-banner {
  display: flex; gap: 10px; align-items: flex-start;
  background: #fdf3e4; border: 1.5px solid #ecca8e; border-radius: 12px;
  padding: 12px 15px; margin: 12px 0; font-size: 15px; color: #8a5a12; line-height: 1.6;
}
.warn-banner svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }

.product-list { display: grid; gap: 12px; margin-top: 16px; }
.product-card { padding: 14px 15px; }
.product-row { display: flex; gap: 14px; }
.product-img {
  width: 86px; height: 104px; flex: none; border-radius: 10px;
  border: 1px solid var(--line); background: #fff;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.product-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.product-info { flex: 1; min-width: 0; }
.product-name { font-size: 21px; line-height: 1.3; color: var(--ink); margin: 0; }
.product-spec { font-size: 13.5px; color: var(--ink-soft); margin-top: 2px; }
.price-row { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; margin-top: 6px; }
.price-now { font-size: 21px; font-weight: 800; font-variant-numeric: tabular-nums; }
.price-now.reserve { color: var(--red); }
.price-strike { font-size: 13.5px; color: var(--ink-soft); text-decoration: line-through; }
.badge-reserve { background: #fbe9ec; color: var(--red); border: 1px solid #eec3ca; font-size: 11.5px; font-weight: 800; border-radius: 999px; padding: 1px 9px; }
.product-note { margin-top: 8px; font-size: 13px; color: #8a5a12; background: #fdf6e8; border-radius: 8px; padding: 7px 10px; line-height: 1.55; }

.qty-area { margin-top: 12px; display: grid; gap: 8px; }
.qty-line { display: flex; align-items: center; gap: 12px; }
.season-chip {
  flex: none; width: 96px; text-align: center; font-size: 13.5px; font-weight: 800;
  border-radius: 999px; padding: 5px 0;
}
.season-chip.spring { background: var(--sakura-soft); color: #a54a68; border: 1px solid #ecc3d1; }
.season-chip.autumn { background: #f7ede1; color: #96591b; border: 1px solid #e6c9a4; }
.qty-line .qty-label { flex: none; font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.stepper { display: flex; align-items: center; gap: 0; margin-left: auto; }
.stepper button {
  width: 48px; height: 48px; border: 1.5px solid var(--line); background: #fff;
  font-size: 24px; font-weight: 700; color: var(--tea-deep); line-height: 1;
}
.stepper button:active { background: var(--tea-soft); }
.stepper button:disabled { color: #c9c3b6; }
.stepper .minus { border-radius: 12px 0 0 12px; }
.stepper .plus { border-radius: 0 12px 12px 0; }
.stepper .qty-val {
  width: 56px; height: 48px; display: inline-flex; align-items: center; justify-content: center;
  border-top: 1.5px solid var(--line); border-bottom: 1.5px solid var(--line);
  font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; background: #fff;
}
.stepper .qty-val.has { background: var(--tea-soft); color: var(--tea-deep); }

.catalog-notices { margin-top: 18px; display: grid; gap: 5px; }
.catalog-notices .note { line-height: 1.6; }

.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: var(--white); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(38,34,28,0.10);
}
.sticky-bar-inner {
  max-width: 640px; margin: 0 auto; display: flex; align-items: center; gap: 14px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
}
.sticky-bar .sum-label { font-size: 12.5px; color: var(--ink-soft); line-height: 1.3; }
.sticky-bar .sum-value { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.25; }
.sticky-bar .sum-count { font-size: 13px; color: var(--ink-soft); }
.sticky-bar .btn { margin-left: auto; min-height: 50px; }
body.has-sticky .order-main { padding-bottom: 108px; }

.form-card { padding: 20px 18px; margin-top: 8px; }
.form-card h2 { margin: 0 0 14px; font-size: 20px; color: var(--tea-deep); }
.req-mark { color: var(--red); font-size: 12px; font-weight: 800; margin-left: 5px; }
.field-error { color: var(--red); font-size: 13.5px; font-weight: 700; margin-top: 4px; }
.field input.invalid { border-color: var(--red); outline: 2px solid rgba(192,41,66,0.35); outline-offset: -1px; }
.field-help { font-size: 12.5px; color: var(--ink-soft); margin-top: 4px; line-height: 1.55; }

.pay-options { display: grid; gap: 10px; }
.pay-option {
  display: flex; align-items: center; gap: 12px; min-height: 54px;
  border: 1.5px solid var(--line); border-radius: 12px; padding: 8px 14px;
  cursor: pointer; background: #fff; font-size: 16px; font-weight: 600;
}
.pay-option input { width: 22px; height: 22px; accent-color: var(--tea); flex: none; }
.pay-option.selected { border-color: var(--tea); background: var(--tea-soft); }

/* 贈答対応: 自分用／贈答用の切り替えとお届け先入力 */
.order-type-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 2px 0 18px; }
@media (max-width: 460px) { .order-type-switch { grid-template-columns: 1fr; } }
.order-type-option {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px;
  background: #fff; cursor: pointer; text-align: left; font: inherit; min-height: 64px;
}
.order-type-option .ot-title { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; color: var(--ink); }
.order-type-option .ot-title svg { width: 19px; height: 19px; color: var(--ink-soft); }
.order-type-option .ot-sub { font-size: 12.5px; color: var(--ink-soft); line-height: 1.5; }
.order-type-option.selected { border-color: var(--tea); background: var(--tea-soft); }
.order-type-option.selected .ot-title { color: var(--tea-deep); }
.order-type-option.selected .ot-title svg { color: var(--tea); }
.order-type-option:focus-visible { outline: 2px solid var(--tea); outline-offset: 1px; }

.gift-section { border-top: 1.5px dashed var(--line); margin-top: 20px; padding-top: 16px; }
.gift-section > h3 {
  margin: 0 0 4px; font-size: 17.5px; color: var(--tea-deep);
  display: flex; align-items: center; gap: 8px;
}
.gift-section > h3 svg { width: 19px; height: 19px; color: var(--gold); }
.gift-section .gift-lead { font-size: 13px; color: var(--ink-soft); margin: 0 0 14px; }
.gift-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 800; padding: 2px 10px; border-radius: 999px;
  background: var(--sakura-soft); color: #a54a68; border: 1px solid #ecc3d1; white-space: nowrap;
}

.privacy-note {
  display: flex; gap: 9px; align-items: flex-start;
  font-size: 13px; color: var(--ink-soft); line-height: 1.65;
  background: #f1efe9; border-radius: 10px; padding: 11px 13px; margin-top: 16px;
}
.privacy-note svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }

.flow-actions { display: flex; gap: 12px; margin-top: 20px; }
.flow-actions .btn { min-height: 52px; }
.flow-actions .btn-back { flex: none; }
.flow-actions .btn-next { flex: 1; font-size: 17px; }

.confirm-block { margin-top: 14px; }
.confirm-block h3 { font-size: 16px; color: var(--tea-deep); margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.confirm-block h3 svg { width: 18px; height: 18px; }
.confirm-table td.total-cell { font-size: 18px; font-weight: 800; }
.confirm-list { font-size: 15.5px; line-height: 1.8; }
.confirm-list dt { font-size: 12.5px; color: var(--ink-soft); font-weight: 700; margin-top: 8px; }
.confirm-list dd { margin: 0; }

/* Step0 JA選択 */
.ja-search { position: relative; margin: 14px 0 18px; }
.ja-search input {
  width: 100%; min-height: 52px; padding: 12px 14px 12px 46px;
  border: 1.5px solid var(--line); border-radius: 14px; font-size: 16.5px; background: #fff;
}
.ja-search input:focus { outline: 2px solid var(--tea); outline-offset: -1px; }
.ja-search svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--ink-soft); }
.ja-group-label {
  font-size: 13px; font-weight: 800; color: var(--ink-soft); letter-spacing: 0.06em;
  margin: 18px 0 8px; display: flex; align-items: center; gap: 8px;
}
.ja-group-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.ja-list { display: grid; gap: 8px; }
.ja-row {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  min-height: 58px; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 13px;
  background: #fff; font-size: 17px; font-weight: 700; color: var(--ink);
}
.ja-row:hover, .ja-row:focus-visible { border-color: var(--tea); background: var(--tea-soft); }
.ja-row .ja-pref { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.ja-row .ja-arrow { margin-left: auto; width: 18px; height: 18px; color: var(--ink-soft); flex: none; }

/* Step4 完了・茶の新芽（一芯二葉） */
.done-panel { text-align: center; padding: 34px 22px 30px; margin-top: 10px; }
.sprout-stage { width: 150px; height: 150px; margin: 0 auto 6px; }
.sprout-stage svg { width: 100%; height: 100%; display: block; }
/* 茶の新芽イラストは緑のまま（ブランド色と独立） */
.sprout-circle { fill: #eef5ef; }
.sprout-stem { fill: none; stroke: var(--matcha); stroke-width: 3.4; stroke-linecap: round; }
.sprout-leaf { fill: var(--matcha); }
.sprout-bud { fill: #2f6b3f; }
.anim .sprout-stem { stroke-dasharray: 60; animation: stemgrow 0.7s ease-out both; }
.anim .sprout-leaf-l { transform-origin: 74px 88px; animation: leafopenl 0.9s cubic-bezier(0.34, 1.4, 0.5, 1) 0.45s both; }
.anim .sprout-leaf-r { transform-origin: 76px 88px; animation: leafopenr 0.9s cubic-bezier(0.34, 1.4, 0.5, 1) 0.55s both; }
.anim .sprout-bud { transform-origin: 75px 86px; animation: budrise 0.8s cubic-bezier(0.34, 1.3, 0.5, 1) 0.85s both; }
@keyframes stemgrow { from { stroke-dashoffset: 60; } to { stroke-dashoffset: 0; } }
@keyframes leafopenl { from { transform: rotate(38deg) scale(0.2); opacity: 0; } to { transform: rotate(0) scale(1); opacity: 1; } }
@keyframes leafopenr { from { transform: rotate(-38deg) scale(0.2); opacity: 0; } to { transform: rotate(0) scale(1); opacity: 1; } }
@keyframes budrise { from { transform: translateY(9px) scale(0.35); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }
.done-panel h2 { font-size: 24px; margin: 2px 0 14px; color: var(--tea-deep); }
.order-no-label { font-size: 13px; font-weight: 700; color: var(--ink-soft); letter-spacing: 0.1em; }
.order-no {
  font-size: 34px; font-weight: 800; letter-spacing: 0.06em; color: var(--tea-deep);
  font-variant-numeric: tabular-nums; margin: 2px 0 10px;
}
.done-msg { font-size: 15px; color: var(--ink); line-height: 1.8; max-width: 30em; margin: 0 auto 6px; }
.done-photo-hint { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 20px; }
.done-actions { display: grid; gap: 10px; max-width: 340px; margin: 0 auto; }
.done-actions .btn { min-height: 50px; }

/* 受付終了 */
.closed-panel { text-align: center; padding: 38px 24px 34px; margin-top: 14px; }
.closed-panel .closed-icon {
  width: 66px; height: 66px; margin: 0 auto 14px; border-radius: 50%;
  background: #f1efe9; color: var(--ink-soft); display: flex; align-items: center; justify-content: center;
}
.closed-panel .closed-icon svg { width: 32px; height: 32px; }
.closed-panel h2 { font-size: 23px; margin: 0 0 10px; color: var(--ink); }
.closed-panel p { font-size: 15px; color: var(--ink-soft); line-height: 1.8; max-width: 30em; margin: 0 auto 8px; }
.closed-panel .closed-deadline { font-size: 15.5px; font-weight: 700; color: var(--ink); }
.closed-panel .btn { margin-top: 18px; min-height: 50px; }

.order-alt-contact {
  max-width: 640px; margin: 6px auto 0; padding: 0 16px 26px;
  text-align: center; font-size: 14px; color: var(--ink-soft);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.order-alt-contact svg { width: 17px; height: 17px; flex: none; }
body.has-sticky .order-alt-contact { margin-bottom: 116px; }

.loading-note { text-align: center; color: var(--ink-soft); padding: 40px 0; font-size: 15px; }

/* ---------------------------------------------------------------- 購入者の特定（名簿照合・個別QR） */
.id-block { display: grid; gap: 12px; margin-bottom: 16px; }
.id-block .order-type-switch { margin-bottom: 4px; }
.id-lead { margin: 0; font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; }
.id-block .field { margin: 0; }
.id-check { justify-self: start; min-width: 150px; }
.id-found { display: grid; gap: 4px; padding: 14px 16px; margin-bottom: 18px; border: 2px solid var(--tea); background: var(--tea-soft); border-radius: 12px; }
.id-found small { font-size: 12.5px; color: var(--ink-soft); }
.id-found b { font-size: 19px; }
.id-found .id-note { margin: 4px 0 0; font-size: 12px; color: var(--ink-soft); line-height: 1.55; }
.id-link { justify-self: start; margin-top: 4px; padding: 0; border: 0; background: none; color: var(--tea-deep); font-size: 13px; font-weight: 700; text-decoration: underline; cursor: pointer; }
.id-heading { margin: 6px 0 0; font-size: 17.5px; color: var(--tea-deep); border-top: 1.5px dashed var(--line); padding-top: 16px; }
