@charset "utf-8";
/* =========================================================================
 * けやきナビ 掲載・取材のご依頼フォーム — 見た目
 * -------------------------------------------------------------------------
 * BRAND.md の落とし込み。守っていること:
 *   ・見出しは明朝、本文はゴシック（混在で大人っぽさを出す）
 *   ・太字（700以上）を1箇所も使わない。強さは字間と余白で出す
 *   ・ピル形状（border-radius: 99px）を全廃。角丸は 3px まで
 *   ・橙 #F4A261 は1画面に1〜2箇所だけ。効かせる色は薄く長く使わない
 *   ・余白は多め。1画面1テーマ
 * NG（BRAND.md）: 紫青グラデ / Tailwindデフォルト顔 / 絵文字濫用 / 煽り見出し
 * ========================================================================= */

:root {
  --ivory:      #FAF7F0;
  --paper:      #FFFFFF;
  --green:      #7BAE5A;
  --green-deep: #4F7D3A;
  --green-pale: #EFF4E9;
  --orange:     #F4A261;
  --ink:        #2F3A2A;
  --ink-2:      #6B7566;
  --ink-3:      #9AA294;
  --rule:       #E5DFD2;
  --rule-soft:  #F0EBE0;

  --mincho: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --gothic: system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", sans-serif;

  --wrap: 34rem;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

/* class 側で display を指定すると、ブラウザ既定の [hidden]{display:none} が負ける。
   hidden を付けたのに出てしまう事故を防ぐため、ここで一度だけ強く止めておく。 */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--gothic);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: .01em;
}

.skip {
  position: absolute; left: -9999px;
}
.skip:focus {
  left: 1rem; top: 1rem; z-index: 20;
  background: var(--paper); padding: .5rem 1rem; border: 1px solid var(--ink);
}

/* ---- 下書きの復帰バー -------------------------------------------------- */

.resume {
  position: sticky; top: 0; z-index: 10;
  display: flex; flex-wrap: wrap; gap: .75rem 1rem;
  align-items: center; justify-content: space-between;
  padding: .85rem 1.25rem;
  background: var(--green-pale);
  border-bottom: 1px solid var(--rule);
}
.resume__text { margin: 0; font-size: 13px; color: var(--green-deep); }
.resume__actions { display: flex; gap: .5rem; }

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

.head {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 3rem 1.25rem 0;
}
.head__brand {
  margin: 0;
  font-family: var(--mincho);
  font-size: 13px;
  letter-spacing: .34em;
  color: var(--green-deep);
}
.head__title {
  margin: .5rem 0 0;
  font-family: var(--mincho);
  font-size: clamp(26px, 7vw, 34px);
  font-weight: 500;
  letter-spacing: .05em;
  line-height: 1.5;
}

/* ---- 進捗：ケヤキ並木 --------------------------------------------------
 * 汎用の進捗バーは使わない。細い枝が並び、進むごとに葉が1枚ずつ付く。
 * ----------------------------------------------------------------------- */

.grove {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule);
}
.grove__trees { display: flex; align-items: flex-end; gap: .85rem; }

.tree { position: relative; display: block; width: 12px; height: 30px; }
.tree__trunk {
  position: absolute; left: 50%; bottom: 0;
  width: 1px; height: 18px;
  margin-left: -.5px;
  background: var(--rule);
  transition: background .4s var(--ease);
}
.tree__leaf {
  position: absolute; left: 50%; bottom: 15px;
  width: 9px; height: 9px;
  margin-left: -4.5px;
  border-radius: 0 100% 0 100%;
  background: var(--rule);
  transform: rotate(-45deg) scale(.55);
  opacity: .5;
  transition: transform .45s var(--ease), background .45s var(--ease), opacity .45s var(--ease);
}
.tree.is-done .tree__trunk { background: var(--green); }
.tree.is-done .tree__leaf  { background: var(--green); transform: rotate(-45deg) scale(1); opacity: 1; }
.tree.is-here .tree__trunk { background: var(--green-deep); }
.tree.is-here .tree__leaf  { background: var(--orange); transform: rotate(-45deg) scale(1.15); opacity: 1; }

.grove__count {
  margin: 0;
  font-family: var(--mincho);
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--ink-3);
  white-space: nowrap;
}

/* ---- 本体 -------------------------------------------------------------- */

.main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.sheet { animation: enter .24s var(--ease) both; }

@keyframes enter {
  from { opacity: 0; transform: translateX(10px); }
  to   { opacity: 1; transform: none; }
}

.sheet__title {
  margin: 3rem 0 0;
  font-family: var(--mincho);
  font-size: clamp(21px, 5.5vw, 25px);
  font-weight: 500;
  letter-spacing: .05em;
  line-height: 1.6;
}
.sheet__lead {
  margin: .9rem 0 0;
  font-size: 13.5px;
  color: var(--ink-2);
}
.sheet__err {
  margin: 1.5rem 0 0;
  padding: .75rem 1rem;
  border-left: 2px solid var(--orange);
  background: var(--paper);
  font-size: 13px;
  color: var(--ink);
}

/* ---- 分岐 -------------------------------------------------------------- */

.branches {
  display: grid; gap: 1rem;
  margin-top: 2.5rem;
}
.branch {
  display: grid;
  grid-template-columns: 56px 1fr;
  grid-template-rows: auto auto auto;
  gap: .15rem 1.1rem;
  padding: 1.5rem 1.35rem;
  text-align: left;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 3px;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.branch:hover, .branch:focus-visible { border-color: var(--green); transform: translateY(-1px); }
.branch__pose { grid-row: 1 / 4; width: 56px; height: auto; align-self: center; }
.branch__label {
  font-family: var(--mincho);
  font-size: 18px;
  letter-spacing: .05em;
}
.branch__lead { font-size: 12.5px; color: var(--ink-2); line-height: 1.7; }
.branch__min  { font-size: 11.5px; color: var(--ink-3); letter-spacing: .06em; }



/* ---- 設問 -------------------------------------------------------------- */

.field {
  margin-top: 2.75rem;
  padding-left: 0;
  border-left: 2px solid transparent;
  transition: border-color .2s var(--ease), padding-left .2s var(--ease);
}
.field.is-bad {
  border-left-color: var(--orange);
  padding-left: 1rem;
}
.field__head {
  display: flex; align-items: baseline; gap: .7rem;
  margin-bottom: .7rem;
}
.field__label {
  font-family: var(--mincho);
  font-size: 16px;
  letter-spacing: .04em;
  line-height: 1.6;
}
/* 必須は赤い丸バッジにしない。小さな墨文字で十分伝わる。 */
.req { font-size: 10.5px; letter-spacing: .12em; color: var(--green-deep); }
.opt { font-size: 10.5px; letter-spacing: .12em; color: var(--ink-3); }

.help { margin: .6rem 0 0; font-size: 12px; color: var(--ink-2); line-height: 1.8; }
.field__err { margin: .55rem 0 0; font-size: 12.5px; color: #B4632B; }

.why {
  margin: 0 0 .8rem;
  font-size: 12px; color: var(--ink-3); line-height: 1.8;
}
.reason {
  margin: 0 0 1rem;
  padding: .9rem 1.05rem;
  background: var(--green-pale);
  border-radius: 3px;
}
.reason p { margin: 0; font-size: 12px; line-height: 1.9; color: var(--green-deep); }
.reason p + p { margin-top: .15rem; }

.sample {
  margin: 0 0 1rem;
  padding: 1rem 1.15rem;
  background: var(--paper);
  border: 1px dashed var(--rule);
  border-radius: 3px;
}
.sample figcaption {
  font-size: 11px; letter-spacing: .1em; color: var(--ink-3);
  margin-bottom: .55rem;
}
.sample blockquote {
  margin: 0;
  font-family: var(--mincho);
  font-size: 13.5px; line-height: 2; color: var(--ink);
}

/* ---- 入力欄 ------------------------------------------------------------ */

.ctl { display: block; }

.inp {
  width: 100%;
  padding: .8rem .9rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  border-radius: 3px;
  font-family: inherit;
  font-size: 16px;             /* iOS で拡大されないように 16px 以上 */
  line-height: 1.8;
  color: var(--ink);
  transition: border-color .18s var(--ease);
}
.inp::placeholder { color: var(--ink-3); }
.inp:focus {
  outline: none;
  border-color: var(--green);
  border-bottom-color: var(--orange);
}
.inp--area { resize: vertical; min-height: 6.5rem; }
.inp--num  { width: 7rem; text-align: right; }
.inp--free { flex: 1 1 auto; font-size: 14px; padding: .6rem .75rem; }

.count {
  margin: .4rem 0 0;
  font-size: 11px; letter-spacing: .06em; color: var(--ink-3);
  text-align: right;
}
.count.is-near { color: var(--orange); }
.count.is-over { color: #C4561F; }
.count--free   { color: var(--ink-3); }

/* percent */
.pct { display: flex; align-items: center; gap: .6rem; }
.pct__lab  { font-size: 13px; color: var(--ink-2); }
.pct__unit { font-size: 13px; color: var(--ink-2); }
.pct__out {
  margin: .6rem 0 0;
  font-family: var(--mincho);
  font-size: 14px; letter-spacing: .05em; color: var(--green-deep);
  min-height: 1.4em;
}

/* chips（四角。ピル形状は使わない） */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  padding: .5rem .85rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 3px;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .16s var(--ease), background .16s var(--ease), color .16s var(--ease);
}
.chip:hover { border-color: var(--green); }
.chip.is-on {
  background: var(--green);
  border-color: var(--green-deep);
  color: #fff;
}

/* 自由入力の追加欄 */
.free { display: flex; gap: .5rem; margin-top: .7rem; }

/* tags の選択済み枠 */
.picked { display: flex; gap: .5rem; margin-bottom: .8rem; }
.picked__i {
  display: inline-flex; align-items: center; gap: .45rem;
  min-width: 6.5rem;
  padding: .55rem .8rem;
  background: var(--green-pale);
  border: 1px solid var(--green);
  border-radius: 3px;
  font-family: var(--mincho);
  font-size: 14px;
  color: var(--green-deep);
  cursor: pointer;
}
.picked__i--empty {
  background: transparent;
  border: 1px dashed var(--rule);
  color: var(--ink-3);
  font-family: var(--gothic);
  font-size: 12px;
  cursor: default;
}
.picked__x { font-style: normal; font-size: 13px; opacity: .6; }

/* scale */
.scale { display: flex; gap: .4rem; }
.scale__i {
  flex: 1 1 0;
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  padding: .7rem .2rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 3px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .16s var(--ease), background .16s var(--ease);
}
.scale__i:hover { border-color: var(--green); }
.scale__dot {
  width: 1.5rem; height: 1.5rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--rule-soft);
  font-size: 11px; color: var(--ink-2);
}
.scale__lab { font-size: 10.5px; color: var(--ink-2); line-height: 1.4; text-align: center; }
.scale__i.is-on { background: var(--green-pale); border-color: var(--green); }
.scale__i.is-on .scale__dot { background: var(--green); color: #fff; }
.scale__i.is-on .scale__lab { color: var(--green-deep); }

/* チェック1つ */
.check {
  display: flex; align-items: flex-start; gap: .7rem;
  width: 100%;
  padding: .85rem 1rem;
  text-align: left;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 3px;
  font-family: inherit;
  font-size: 13.5px; line-height: 1.7;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .16s var(--ease), background .16s var(--ease);
}
.check:hover { border-color: var(--green); }
.check__box {
  flex: 0 0 auto;
  width: 1.05rem; height: 1.05rem;
  margin-top: .3rem;
  border: 1px solid var(--ink-3);
  border-radius: 2px;
  background: transparent;
  transition: background .16s var(--ease), border-color .16s var(--ease);
}
.check.is-on { background: var(--green-pale); border-color: var(--green); }
.check.is-on .check__box {
  background: var(--green); border-color: var(--green-deep);
  box-shadow: inset 0 0 0 2px var(--green-pale);
}

/* honeypot（人には見えない。display:none にはしない） */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

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

.nav {
  display: flex; gap: .75rem; align-items: center;
  margin-top: 3.5rem;
}
.btn {
  padding: .85rem 1.6rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 3px;
  font-family: var(--mincho);
  font-size: 15px;
  letter-spacing: .1em;
  color: var(--ink);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: border-color .18s var(--ease), background .18s var(--ease), opacity .18s var(--ease);
}
.btn:hover { border-color: var(--green); }
.btn:disabled { opacity: .5; cursor: default; }
.btn--go {
  flex: 1 1 auto;
  background: var(--green);
  border-color: var(--green-deep);
  border-bottom: 2px solid var(--orange);   /* 橙はここ1箇所だけ */
  color: #fff;
}
.btn--go:hover { background: var(--green-deep); border-color: var(--green-deep); }
.btn--quiet { color: var(--ink-2); }
.btn--sm { padding: .5rem 1rem; font-size: 13px; letter-spacing: .06em; }

/* ---- 送信エラー -------------------------------------------------------- */

.errbox {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: var(--paper);
  border: 1px solid var(--orange);
  border-radius: 3px;
}
.errbox__t {
  margin: 0 0 .6rem;
  font-family: var(--mincho); font-size: 16px; letter-spacing: .05em;
}
.errbox__m { margin: 0 0 .5rem; font-size: 12.5px; color: var(--ink-2); line-height: 1.8; }
.errbox__acts { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }

/* ---- 完了画面 ---------------------------------------------------------- */

.sheet--done { position: relative; text-align: center; padding-top: 1rem; }
.done__pose { width: 116px; height: auto; margin: 2.5rem auto 0; display: block; }
.sheet--done .sheet__title { margin-top: 1.25rem; }
.sheet--done .sheet__lead  { margin-left: auto; margin-right: auto; }

.next__cap {
  margin: 3rem 0 .8rem;
  font-size: 11px; letter-spacing: .16em; color: var(--ink-3);
}
.next {
  display: grid; gap: .55rem;
  margin: 0 auto; padding: 1.25rem 1.35rem 1.25rem 2.6rem;
  max-width: 24rem;
  text-align: left;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 3px;
  font-size: 13px; color: var(--ink-2);
}
.receipt { margin: 1.75rem 0 0; font-size: 11.5px; letter-spacing: .1em; color: var(--ink-3); }
.receipt code { font-family: ui-monospace, "SFMono-Regular", monospace; font-size: 12px; }

.sheet--done .btn--go {
  display: inline-block; flex: none;
  margin-top: 2rem; min-width: 14rem;
}

/* 葉が1枚ふわっと落ちる */
.leaves { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.leaf {
  position: absolute; top: -18px;
  width: 11px; height: 11px;
  border-radius: 0 100% 0 100%;
  background: var(--green);
  opacity: 0;
  animation: fall 5.5s var(--ease) forwards;
}
.leaf--1 { left: 18%; animation-delay: .35s; }
.leaf--2 { left: 52%; background: var(--orange); animation-delay: 1.4s; }
.leaf--3 { left: 79%; animation-delay: 2.5s; }

@keyframes fall {
  0%   { opacity: 0;  transform: translateY(0)     rotate(-45deg); }
  12%  { opacity: .9; }
  100% { opacity: 0;  transform: translateY(320px) rotate(300deg); }
}

/* ---- 保存しました、の通知 ---------------------------------------------- */

.toast {
  position: fixed; left: 50%; bottom: 1.25rem; z-index: 30;
  transform: translate(-50%, .75rem);
  padding: .55rem 1.1rem;
  background: var(--ink);
  border-radius: 3px;
  color: var(--ivory);
  font-size: 12px; letter-spacing: .06em;
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.toast.is-on { opacity: .94; transform: translate(-50%, 0); }

/* ---- 脚 ---------------------------------------------------------------- */

.foot {
  max-width: var(--wrap);
  margin: 5rem auto 0;
  padding: 2rem 1.25rem 4rem;
  border-top: 1px solid var(--rule);
  font-size: 11.5px; line-height: 1.9; color: var(--ink-3);
}
.foot p { margin: 0 0 .3rem; }

.note { margin: 2rem 0 0; font-size: 11.5px; color: var(--ink-3); line-height: 1.9; }

/* ---- 動きを減らす設定を尊重する ---------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .leaf { display: none; }
}

/* ---- 画面が広いとき ----------------------------------------------------- */

@media (min-width: 40rem) {
  .head { padding-top: 4.5rem; }
  .branch { grid-template-columns: 72px 1fr; padding: 1.85rem 1.75rem; }
  .branch__pose { width: 72px; }
}

/* ---- 公開前の案内（config.js の SUBMIT_URL_NOT_REPLACED_YET が残っている間だけ） ---- */
.setupwarn {
  margin-top: 2rem;
  padding: 1.15rem 1.25rem;
  background: var(--paper);
  border: 1px solid var(--orange);
  border-radius: 3px;
}
.setupwarn__t {
  margin: 0 0 .4rem;
  font-family: var(--mincho); font-size: 15px; letter-spacing: .05em;
}
.setupwarn__m { margin: 0 0 .9rem; font-size: 12.5px; color: var(--ink-2); line-height: 1.8; }
