/* =========================================================
   みんなの旅 by 関鉄観光バス｜共通スタイル
   デザイン：「旅のしおり」（白×墨×藍・明朝見出し・細罫）
   mockups/redesign/ のB案を移植。2026-07-04 全面刷新。
   - 旧クラス名（.appbar .btn .card .tag 等）は互換のため残し、
     配色・書体のみ本デザインに揃えている。
   - 旧CSS変数（--navy --orange 等）は本パレットへの別名。
   ========================================================= */

:root {
  /* 本パレット */
  --white: #FDFDFB;       /* 地 */
  --washi: #F4F2EC;       /* 和紙のごく薄い地 */
  --sumi: #26241F;        /* 墨（見出し・本文強調） */
  --ai: #1E4470;          /* 藍（プライマリ） */
  --shu: #C0392B;         /* 朱（印・目的地・いいね） */
  --sub: #77726A;         /* 補助テキスト */
  --line: #E3DFD6;        /* 罫線 */
  --murasaki: #6A4C93;    /* 宿・宿泊 */

  /* 旧変数の別名（未改修ビュー互換） */
  --bg: #FDFDFB;
  --navy: #26241F;
  --navy-soft: #4E4A42;
  --orange: #1E4470;
  --orange-dark: #173659;
  --marigold: #C0392B;
  --gray: #F4F2EC;
  --border: #E3DFD6;
  --text: #26241F;
  --text-sub: #77726A;
  --green: #2E6B3E;
  --red: #C0392B;

  --radius-card: 0px;
  --radius-btn: 0px;
  --shadow: 0 1px 0 rgba(38,36,31,.04);
  --shadow-lg: 0 18px 44px rgba(38, 36, 31, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: "Noto Sans JP", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.9;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* キーボード操作時のフォーカス可視化（マウス操作では出ない） */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--ai);
  outline-offset: 2px;
}

h1, h2, h3, .heading, .serif {
  font-family: "Zen Old Mincho", "Noto Sans JP", serif;
  line-height: 1.6;
  color: var(--sumi);
  font-weight: 700;
}

.num { font-family: "Zen Old Mincho", serif; font-variant-numeric: tabular-nums; }

img { display: block; max-width: 100%; }

/* ===== レイアウト容器（旧 .phone は枠なしの全幅コンテナに） ===== */
.phone {
  width: 100%;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--white);
  position: relative;
}
.wrap2 { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.plan-list  { display: grid; gap: 24px; padding: 4px 16px 90px; }
.admin-grid { display: grid; gap: 12px; padding: 4px 16px 40px; }

@media (min-width: 768px) {
  .phone { max-width: 720px; }          /* 読みもの/フォームは中央寄せ */
  .phone.wide, .phone.admin, .phone.wizard { max-width: none; }
  .phone.wide .plan-list,
  .phone.admin .admin-grid {
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    padding: 20px 28px 56px;
    max-width: 1160px; margin: 0 auto;
  }
}

/* ===== サイトヘッダー（新） ===== */
.site-header { border-bottom: 1px solid var(--line); background: var(--white); position: sticky; top: 0; z-index: 30; }
.site-header .in { max-width: none; margin: 0 auto; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: baseline; gap: 12px; text-decoration: none; }
.brand .name { font-family: "Zen Old Mincho", serif; font-weight: 900; font-size: 20px; letter-spacing: .14em; color: var(--sumi); }
.brand .by { font-size: 11px; color: var(--sub); letter-spacing: .1em; }
.site-header nav { display: flex; gap: 26px; font-size: 13px; letter-spacing: .08em; color: #4E4A42; }
.site-header nav a { color: inherit; text-decoration: none; }
.site-header nav a:hover { color: var(--ai); }
.site-footer { padding: 28px 0; font-size: 12px; color: var(--sub); border-top: 1px solid var(--line); background: var(--white); }
.site-footer .in { max-width: 1120px; margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--ai); }

/* ===== 旧ヘッダー（互換・管理/フォームで使用） ===== */
.appbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; padding: 0 16px;
  background: rgba(253, 253, 251, 0.94);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.appbar .logo {
  font-family: "Zen Old Mincho", serif;
  font-weight: 700; font-size: 17px; color: var(--sumi);
  display: flex; align-items: center; gap: 8px; letter-spacing: .1em;
}
.appbar .logo .mark {
  width: 26px; height: 26px;
  background: var(--sumi);
  display: grid; place-items: center; color: var(--white); font-size: 14px;
}
.appbar .cta {
  height: 38px; padding: 0 18px; border: none;
  background: var(--ai); color: #fff; font-weight: 700; font-size: 13px;
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  font-family: inherit; letter-spacing: .08em; white-space: nowrap;
}

/* ===== ボタン ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 28px; border: none;
  font-family: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer;
  width: 100%; letter-spacing: .08em; white-space: nowrap;
  transition: opacity .15s;
}
.btn:hover { opacity: .85; }
.btn:focus-visible { outline: 3px solid var(--ai); outline-offset: 2px; }
.btn:disabled { opacity: .55; cursor: default; }
.btn-primary { background: var(--ai); color: #fff; }
.btn-primary:active { background: var(--orange-dark); }
.btn-navy { background: var(--sumi); color: #fff; }
.btn-shu { background: var(--shu); color: #fff; }
.btn-ghost { background: var(--white); color: var(--sumi); box-shadow: inset 0 0 0 1px var(--sumi); }
.btn-sm { height: 38px; font-size: 13px; padding: 0 16px; width: auto; }

/* ===== タグ pill ===== */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 14px;
  background: var(--white); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 12px; font-weight: 500; color: var(--sub); white-space: nowrap;
  letter-spacing: .08em;
}
.tag .dot { width: 7px; height: 7px; border-radius: 50%; }
.tag.active { color: var(--ai); box-shadow: inset 0 0 0 1.5px var(--ai); font-weight: 700; background: var(--white); }

/* テーマ色（ドット） */
.c-gourmet { background: #B0562A; }
.c-nature  { background: #3E6B52; }
.c-shrine  { background: #6A4C93; }
.c-onsen   { background: #B08430; }
.c-history { background: #7A6248; }
.c-leisure { background: #2F5F8C; }
.c-shop    { background: #9C4A72; }
.c-event   { background: #B03A44; }

/* ===== カード（旧汎用） ===== */
.card {
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
}

/* 写真プレースホルダ */
.photo {
  position: relative; width: 100%; aspect-ratio: 16/10;
  background: linear-gradient(160deg, #6C7A70, #A8B5A3);
  display: grid; place-items: center; color: rgba(255,255,255,.75);
}
.photo.ph-gourmet { background: linear-gradient(160deg,#7A4A2E,#C99A5B); color:#FFF3E4; }
.photo.ph-nature  { background: linear-gradient(160deg,#42663C,#9BBD82); color:#EFF7E8; }
.photo.ph-shrine  { background: linear-gradient(160deg,#4A3F80,#9A8FCB); color:#EFEBFA; }
.photo.ph-onsen   { background: linear-gradient(160deg,#8A6A2A,#D6BC6C); color:#FBF4DC; }
.photo .ico { font-size: 34px; opacity: .65; }
.photo .ph-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo .ph-label {
  position: absolute; bottom: 8px; left: 10px; font-size: 10.5px;
  color: rgba(255,255,255,.9); font-weight: 500; letter-spacing: .1em;
  text-shadow: 0 1px 6px rgba(0,0,0,.35);
}

/* ===== いいね ===== */
.like {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; color: var(--sub);
  font-family: "Zen Old Mincho", serif;
}
.like .heart { font-size: 15px; color: #C9C3B6; }
.like.on .heart { color: var(--shu); }
.like.on { color: var(--sumi); }

/* バッジ */
.badge-day {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 12px; font-size: 11px; font-weight: 500;
  color: var(--ai); border: 1px solid var(--ai); letter-spacing: .12em;
  background: transparent;
}
.badge-fire {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 12px; font-size: 11.5px; font-weight: 700;
  color: var(--shu); border: 1.5px solid var(--shu); letter-spacing: .1em;
  background: var(--white);
}

/* 汎用 */
.wrap { padding: 16px; }
.muted { color: var(--sub); }
.small { font-size: 12.5px; }
.divider { height: 1px; background: var(--line); border: none; margin: 16px 0; }
.row { display: flex; gap: 8px; align-items: center; }
.spread { display: flex; align-items: center; justify-content: space-between; }
.scroll-x { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.scroll-x::-webkit-scrollbar { display: none; }

/* タブ */
.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); padding: 0 16px; }
.tabs .tab {
  padding: 12px 0; font-weight: 500; color: var(--sub);
  position: relative; cursor: pointer; font-size: 13.5px; letter-spacing: .1em;
}
.tabs .tab.on { color: var(--sumi); font-weight: 700; }
.tabs .tab.on::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px; background: var(--ai);
}

/* 下部ボトムバー */
.bottombar {
  position: sticky; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(253,253,251,.95); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
}

/* フォーム */
.field { margin-bottom: 22px; }
.label { display: block; font-weight: 700; color: var(--sumi); margin-bottom: 8px; font-size: 13.5px; letter-spacing: .06em; }
.label .req { display: inline-block; color: #fff; background: var(--shu); font-size: 10px; margin-left: 8px; padding: 1px 8px; letter-spacing: .1em; vertical-align: 2px; }
.label .opt { display: inline-block; color: var(--sub); border: 1px solid var(--line); font-size: 10px; margin-left: 8px; padding: 1px 8px; font-weight: 500; letter-spacing: .1em; vertical-align: 2px; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: 0;
  font-family: inherit; font-size: 15px; background: #fff; color: var(--text);
}
.input:focus, .select:focus, .textarea:focus { outline: 2px solid var(--ai); }
.textarea { min-height: 96px; resize: vertical; line-height: 1.8; }
.hint { font-size: 11.5px; color: var(--sub); margin-top: 6px; }
.hint.warn { color: var(--shu); }

.checkbox { display: flex; gap: 10px; align-items: flex-start; }
.checkbox input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ai); }

/* =========================================================
   ここから「旅のしおり」新コンポーネント
   ========================================================= */

/* ---- トップ：ヒーロー（写真＋縦書き・スライド切替） ---- */
.hero-shiori { position: relative; }
.hero-shiori .hs-photo { height: 560px; position: relative; overflow: hidden; }
.hero-shiori .hs-photo > img,
.hero-shiori .hs-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; z-index: 0; }
.hero-shiori .hs-slide { opacity: 0; transition: opacity 1.8s ease, transform 0s 1.8s; transform: scale(1.04); } /* transformの戻しはフェード完了後（切替時のズレ防止） */
.hero-shiori .hs-slide.on { opacity: 1; transform: scale(1); transition: opacity 1.8s ease, transform 7s linear; }
.hero-shiori .hs-photo::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(20,24,32,.42) 0%, rgba(20,24,32,.05) 55%); }
.hero-shiori .hs-inner { position: absolute; inset: 0; z-index: 2; }
.hero-shiori .hs-inner .wrap2 { height: 100%; position: relative; }
.tate { writing-mode: vertical-rl; position: absolute; top: 56px; left: 24px; color: #fff; display: flex; gap: 24px; }
.tate h1 { font-weight: 900; font-size: 44px; letter-spacing: .24em; line-height: 1; color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.45); }
.tate .side { font-size: 13px; letter-spacing: .4em; color: #E9E4D8; border-right: 1px solid rgba(255,255,255,.6); padding-right: 14px; font-weight: 500; }
.hero-shiori .hs-panel { position: absolute; right: 24px; bottom: -68px; background: var(--white); border: 1px solid var(--line); padding: 32px 36px; max-width: 430px; box-shadow: var(--shadow-lg); }
.hero-shiori .hs-panel .kicker { font-size: 14px; letter-spacing: .24em; color: var(--ai); font-weight: 700; font-family: "Zen Kaku Gothic New", sans-serif; }
.hero-shiori .hs-panel p { margin-top: 12px; font-size: 13.5px; color: #4E4A42; }
.hero-shiori .hs-panel .cta { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.hero-shiori .hs-panel .btn { width: auto; height: 46px; }

/* ---- しくみ3ステップ ---- */
.how { padding: 140px 0 60px; }
.how .in { display: grid; grid-template-columns: 220px 1fr; gap: 48px; }
.steps3 { display: grid; grid-template-columns: repeat(3,1fr); border-left: 1px solid var(--line); }
.steps3 .st { padding: 6px 26px; border-right: 1px solid var(--line); }
.steps3 .st .no { font-family: "Zen Old Mincho", serif; font-size: 20px; color: var(--ai); }
.steps3 .st h3 { font-size: 17px; margin: 8px 0 6px; letter-spacing: .08em; }
.steps3 .st p { font-size: 12.5px; color: var(--sub); }

/* ---- 見出し ---- */
.sec-title { font-family: "Zen Old Mincho", serif; font-weight: 700; font-size: 23px; letter-spacing: .18em; color: var(--sumi); }
.sec-title small { display: block; font-size: 10.5px; letter-spacing: .34em; color: var(--sub); margin-bottom: 8px; font-family: "Zen Kaku Gothic New", sans-serif; font-weight: 700; }
.cat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 2px solid var(--sumi); padding-bottom: 10px; margin-bottom: 24px; }
.cat-head h2 { font-size: 19px; letter-spacing: .14em; }
.cat-head h2 small { font-size: 10.5px; letter-spacing: .28em; color: var(--sub); margin-left: 14px; font-family: "Zen Kaku Gothic New", sans-serif; font-weight: 700; }
.cat-head .more { font-size: 12px; color: var(--sub); letter-spacing: .08em; white-space: nowrap; text-decoration: none; }
.cat-head .more:hover { color: var(--ai); }

/* ---- 3カラムカード ---- */
.cardgrid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px 24px; }
.pcard { background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; transition: box-shadow .18s, transform .18s; }
.pcard:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(38,36,31,.12); }
.pcard .photo { aspect-ratio: auto; height: 150px; }
.pcard .rankmark { position: absolute; top: 0; left: 14px; background: var(--sumi); color: #fff; font-family: "Zen Old Mincho", serif; font-weight: 700; font-size: 12.5px; padding: 7px 9px 9px; letter-spacing: .05em; line-height: 1.2; z-index: 2; }
.pcard .rankmark.gold { background: var(--shu); }
.pcard .pbody { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.pcard h3 { font-size: 16px; letter-spacing: .04em; line-height: 1.65; margin: 10px 0 6px; }
.pcard h3 a { color: inherit; text-decoration: none; }
.pcard h3 a:hover { color: var(--ai); }
.pcard .itin { font-size: 11.5px; color: var(--sub); letter-spacing: .02em; }
.pcard .itin b { color: var(--sumi); }
.pcard .itin .arr { color: #B9B3A6; margin: 0 4px; }
.pcard .pfoot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 14px; }
.pcard .likechip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); padding: 5px 13px; background: #fff; font-size: 11.5px; color: var(--sub); letter-spacing: .06em; }
.pcard .likechip .heart { color: #C9C3B6; font-size: 12px; }
.pcard .likechip.on { border-color: #E4C6C1; background: #FBF4F2; }
.pcard .likechip.on .heart { color: var(--shu); }
.pcard .likechip b { font-family: "Zen Old Mincho", serif; font-size: 13.5px; color: var(--sumi); }
.pcard .detail-link { font-size: 11px; color: var(--sub); letter-spacing: .1em; text-decoration: none; padding: 14px 0 14px 14px; margin: -14px 0 -14px -14px; } /* 見た目を変えずタップ領域を約44pxに */
.pcard:hover .detail-link { color: var(--ai); }
.pcard .tagsline { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }

/* 写真プレースホルダ（追加バリエーション） */
.phv1 { background: linear-gradient(160deg,#3A6284,#8FB9D6); }
.phv2 { background: linear-gradient(160deg,#7A4A2E,#C99A5B); }
.phv3 { background: linear-gradient(160deg,#84374C,#C98BA0); }
.phv4 { background: linear-gradient(160deg,#42663C,#9BBD82); }
.phv5 { background: linear-gradient(160deg,#4A3F80,#9A8FCB); }
.phv6 { background: linear-gradient(160deg,#20706F,#7FCABD); }
.phv7 { background: linear-gradient(160deg,#8A6A2A,#D6BC6C); }
.phv8 { background: linear-gradient(160deg,#31567E,#7FA8CE); }

/* ---- 実現第1号／催行決定（朱印） ---- */
.kekko-band { background: var(--washi); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 36px 0; }
.kekko-band .in { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.inkan { width: 88px; height: 88px; border: 3px solid var(--shu); border-radius: 50%; color: var(--shu); display: flex; align-items: center; justify-content: center; font-family: "Zen Old Mincho", serif; font-weight: 700; font-size: 14px; letter-spacing: .1em; line-height: 1.4; text-align: center; transform: rotate(-6deg); flex: 0 0 auto; }
.inkan.sm { width: 66px; height: 66px; font-size: 11.5px; border-width: 2.5px; }
.kekko-band h2 { font-size: 19px; letter-spacing: .06em; }
.kekko-band p { color: var(--sub); font-size: 13px; margin-top: 2px; }
.kekko-band .more { margin-left: auto; font-size: 13px; letter-spacing: .12em; border-bottom: 1px solid var(--sumi); padding-bottom: 3px; white-space: nowrap; color: inherit; text-decoration: none; }
/* 見出しブロックは印の横に留める（中間幅で印の下に落ちるのを防ぐ） */
.kekko-band .in > div:not(.inkan) { flex: 1 1 300px; min-width: 0; }
.kekko-inline > div:not(.inkan) { flex: 1 1 260px; min-width: 0; }
.kekko-inline { background: var(--washi); border: 1px solid var(--line); padding: 16px 22px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.kekko-inline h2 { font-size: 15.5px; }
.kekko-inline p { font-size: 12px; color: var(--sub); }
.kekko-inline .more { margin-left: auto; font-size: 12.5px; letter-spacing: .1em; border-bottom: 1px solid var(--sumi); padding-bottom: 2px; white-space: nowrap; color: inherit; text-decoration: none; }

/* ---- しおりタイムライン（詳細） ---- */
.tl { position: relative; padding-left: 2px; }
.tl .trow { display: grid; grid-template-columns: 60px 22px 1fr; gap: 0 14px; position: relative; }
.tl .time { font-family: "Zen Old Mincho", serif; font-weight: 700; font-size: 14.5px; color: var(--sumi); padding-top: 2px; letter-spacing: .04em; }
.tl .col { position: relative; display: flex; justify-content: center; }
.tl .col::before { content: ""; position: absolute; top: 6px; bottom: -6px; width: 1.5px; background: var(--line); }
.tl .trow:last-child .col::before { display: none; }
.tl .node { width: 13px; height: 13px; border-radius: 50%; background: var(--white); border: 3px solid var(--ai); position: relative; z-index: 1; margin-top: 6px; }
.tl .trow.dst .node { border-color: var(--shu); background: var(--shu); width: 15px; height: 15px; }
.tl .trow.yado .node { border-radius: 2px; border-color: var(--murasaki); background: var(--murasaki); }
.tl .tbody { padding-bottom: 26px; }
.tl .role { font-size: 10px; letter-spacing: .24em; color: var(--ai); font-family: "Zen Kaku Gothic New", sans-serif; font-weight: 700; }
.tl .trow.dst .role { color: var(--shu); }
.tl .trow.yado .role { color: var(--murasaki); }
.tl .tbody h3 { font-size: 16.5px; letter-spacing: .04em; margin: 2px 0; }
.tl .tbody .desc { font-size: 12.5px; color: var(--sub); }
.tl .stay { display: inline-block; font-size: 11px; color: var(--sub); border: 1px solid var(--line); padding: 1px 10px; margin-top: 6px; letter-spacing: .1em; }
.tl-day { font-family: "Zen Old Mincho", serif; font-weight: 700; font-size: 14px; letter-spacing: .2em; border-bottom: 1px solid var(--line); padding-bottom: 6px; margin: 8px 0 18px; }
.tl-sum { border-top: 1px dashed var(--line); padding-top: 16px; display: flex; gap: 24px; flex-wrap: wrap; font-size: 12.5px; color: var(--sub); }
.tl-sum b { color: var(--ai); font-family: "Zen Old Mincho", serif; font-size: 14px; }

/* ---- 詳細：本文＋サイドバー ---- */
.detail-layout { display: grid; grid-template-columns: 1fr 340px; gap: 44px; padding: 24px 0 80px; align-items: start; }
.side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 20px; }
.scard { border: 1px solid var(--line); background: #fff; padding: 22px 24px; }
.scard h3 { font-size: 14px; letter-spacing: .16em; margin-bottom: 12px; }
.likebox { text-align: center; }
.likebox .cnt { font-family: "Zen Old Mincho", serif; font-weight: 700; font-size: 36px; letter-spacing: .04em; color: var(--sumi); }
.likebox .cnt .heart { color: #C9C3B6; font-size: 24px; margin-right: 8px; }
.likebox.on .cnt .heart, .likebox .cnt.on .heart, .likebox .cnt .heart.on { color: var(--shu); }
.likebox .lbl { font-size: 10.5px; color: var(--sub); letter-spacing: .3em; margin-top: 2px; }
.likebox .btn { margin-top: 14px; }
.likebox .lhint { font-size: 10.5px; color: var(--sub); margin-top: 10px; }
.kv { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.kv:last-of-type { border-bottom: none; }
.kv .k { color: var(--sub); letter-spacing: .06em; white-space: nowrap; }
.kv .v { font-weight: 700; text-align: right; }

/* 想い */
.omoi { background: var(--washi); padding: 24px 28px; position: relative; }
.omoi::before { content: "“"; position: absolute; top: 0; left: 12px; font-family: "Zen Old Mincho", serif; font-size: 42px; color: #C9C3B6; line-height: 1; }
.omoi p { font-size: 14px; line-height: 2.1; }
.omoi .who { margin-top: 10px; font-size: 11.5px; color: var(--sub); letter-spacing: .1em; text-align: right; }

/* 詳細ページ見出し */
.sec-head { display: flex; align-items: baseline; gap: 14px; border-bottom: 2px solid var(--sumi); padding-bottom: 8px; margin: 40px 0 22px; }
.sec-head h2 { font-size: 18px; letter-spacing: .16em; }
.sec-head small { font-size: 10px; letter-spacing: .3em; color: var(--sub); font-family: "Zen Kaku Gothic New", sans-serif; font-weight: 700; }

/* pbadge（細枠バッジ） */
.pbadge { font-size: 10.5px; letter-spacing: .14em; color: var(--ai); border: 1px solid var(--ai); padding: 2px 10px; display: inline-block; }
.pbadge.stay { color: var(--murasaki); border-color: var(--murasaki); }
.pbadge.status { color: var(--shu); border-color: var(--shu); }

/* ---- 静的ドキュメントページ（/terms /privacy /company 共通・.doc） ----
   3ビューで重複していた<style>をここに統合。company の表組み差分
   （th幅・セル余白）と .about-site のみ各ページ側に残している。 */
.doc { max-width: 800px; margin: 0 auto; padding: 40px 24px 90px; }
.doc .crumb { font-size: 12px; color: var(--sub); letter-spacing: .08em; margin-bottom: 28px; }
.doc .crumb a { color: inherit; text-decoration: none; }
.doc .crumb a:hover { color: var(--ai); }
.doc h1 { font-size: 26px; letter-spacing: .18em; border-bottom: 2px solid var(--sumi); padding-bottom: 14px; }
.doc .lead { font-size: 13px; color: var(--sub); margin: 16px 0 36px; }
.doc h2 { font-size: 16.5px; letter-spacing: .1em; margin: 36px 0 12px; padding-left: 14px; border-left: 3px solid var(--ai); }
.doc p, .doc li { font-size: 14px; line-height: 2.05; color: var(--text); }
.doc ol { padding-left: 1.6em; }
.doc ol.paren { list-style: none; padding-left: 0; counter-reset: pn; }
.doc ol.paren > li { counter-increment: pn; padding-left: 2.4em; position: relative; }
.doc ol.paren > li::before { content: "（" counter(pn) "）"; position: absolute; left: 0; }
.doc ul { padding-left: 1.4em; }
.doc table { width: 100%; border-collapse: collapse; margin: 8px 0 4px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 10px 14px; font-size: 13.5px; text-align: left; vertical-align: top; }
.doc th { background: var(--washi); white-space: nowrap; font-weight: 700; }
.doc .todo { background: #FBF4F2; border: 1px solid var(--shu); color: var(--shu); font-size: 12px; padding: 2px 10px; letter-spacing: .06em; display: inline-block; font-weight: 700; }
.doc .enact { margin-top: 44px; font-size: 13px; color: var(--sub); text-align: right; }

/* =========================================================
   管理画面コンポーネント（src/View/admin/* 共通）
   ========================================================= */
.phone.admin { background: var(--washi); }
.adm-top { background: var(--sumi); color: #fff; }
.adm-top .in { max-width: 1240px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 56px; }
.adm-top .name { font-family: "Zen Old Mincho", serif; font-weight: 900; font-size: 17px; letter-spacing: .14em; color: #fff; }
.adm-top .name small { font-size: 10px; letter-spacing: .24em; color: #B9B3A6; margin-left: 12px; font-family: "Zen Kaku Gothic New", sans-serif; font-weight: 700; }
.adm-top .who { font-size: 12px; color: #D8D4C8; }
.adm-top .who a { margin-left: 16px; color: inherit; border-bottom: 1px solid #77726A; padding-bottom: 1px; text-decoration: none; }

.adm-frame { max-width: 1240px; margin: 0 auto; padding: 26px 24px 80px; display: grid; grid-template-columns: 190px minmax(0,1fr); gap: 28px; align-items: start; }
.adm-nav { position: sticky; top: 24px; background: var(--white); border: 1px solid var(--line); }
.adm-nav a { display: block; padding: 12px 18px; font-size: 13px; letter-spacing: .06em; color: var(--sub); border-bottom: 1px solid var(--line); text-decoration: none; }
.adm-nav a:last-child { border-bottom: none; }
.adm-nav a:hover { color: var(--sumi); background: #FBFAF6; }
.adm-nav a.on { color: var(--ai); font-weight: 700; border-left: 3px solid var(--ai); background: #FBFAF6; }

.adm-h1 { font-family: "Zen Old Mincho", serif; font-weight: 700; font-size: 20px; letter-spacing: .14em; margin-bottom: 16px; }
.adm-h1 small { font-size: 11.5px; color: var(--sub); font-family: "Noto Sans JP", sans-serif; font-weight: 400; letter-spacing: .04em; margin-left: 14px; }
.adm-flash { background: #EFF5EE; border: 1px solid var(--green); color: var(--green); padding: 10px 16px; font-size: 13px; font-weight: 700; margin-bottom: 16px; }
.adm-error { background: #FBF4F2; border: 1px solid var(--shu); color: var(--shu); padding: 10px 16px; font-size: 13px; font-weight: 700; margin-bottom: 16px; }

.adm-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 24px; }
.adm-stat { background: var(--white); border: 1px solid var(--line); padding: 14px 18px; }
.adm-stat .k { font-size: 11px; color: var(--sub); letter-spacing: .14em; }
.adm-stat .v { font-family: "Zen Old Mincho", serif; font-weight: 700; font-size: 24px; margin-top: 2px; }
.adm-stat .v small { font-size: 12px; color: var(--sub); font-weight: 400; margin-left: 4px; }
.adm-stat.attn { border-color: var(--shu); }
.adm-stat.attn .v { color: var(--shu); }

.panel { background: var(--white); border: 1px solid var(--line); margin-bottom: 24px; }
.panel .phead { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.panel .phead h2 { font-family: "Zen Old Mincho", serif; font-weight: 700; font-size: 15px; letter-spacing: .16em; }
.panel .pbody { padding: 18px 20px; }
.fbtns { display: flex; gap: 6px; flex-wrap: wrap; }
.fbtn { font-size: 12px; letter-spacing: .06em; border: 1px solid var(--line); background: #fff; padding: 5px 14px; color: var(--sub); text-decoration: none; white-space: nowrap; }
.fbtn:hover { border-color: var(--sub); }
.fbtn.on { border-color: var(--ai); color: var(--ai); font-weight: 700; box-shadow: inset 0 0 0 1px var(--ai); }
.fbtn .n { font-family: "Zen Old Mincho", serif; margin-left: 4px; }

.adm-table { width: 100%; border-collapse: collapse; }
.adm-table th { font-size: 10.5px; color: var(--sub); letter-spacing: .14em; font-weight: 700; text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); background: #FBFAF6; white-space: nowrap; }
.adm-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 13px; }
.adm-table tr.sub td { padding-top: 0; border-bottom: 1px solid var(--line); background: #FBFAF6; }
.pt .t { font-weight: 700; letter-spacing: .02em; font-size: 13.5px; line-height: 1.6; }
.pt .t a { color: inherit; text-decoration: none; }
.pt .t a:hover { color: var(--ai); text-decoration: underline; }
.pt .m { font-size: 11px; color: var(--sub); margin-top: 3px; line-height: 1.7; }
.pt .contact { font-size: 11px; color: var(--ai); margin-top: 2px; }
.likecell { font-family: "Zen Old Mincho", serif; font-weight: 700; font-size: 15px; white-space: nowrap; }
.likecell .heart { color: var(--shu); font-size: 12px; margin-right: 3px; }
.ipwarn { display: block; font-size: 10px; color: var(--shu); font-weight: 700; letter-spacing: .06em; }
.warn { color: var(--shu); }
.pill { display: inline-block; font-size: 10px; letter-spacing: .1em; padding: 1px 9px; border: 1px solid; white-space: nowrap; font-weight: 700; }
.pill.seed { color: var(--murasaki); border-color: var(--murasaki); }
.pill.ok { color: var(--green); border-color: var(--green); }
.pill.ng { color: var(--shu); border-color: var(--shu); }
.pill.na { color: var(--sub); border-color: var(--line); }
.metric-line { font-size: 11.5px; color: var(--sub); white-space: nowrap; line-height: 1.9; }
.metric-line b { color: var(--sumi); font-family: "Zen Old Mincho", serif; }
.recalc { border: 1px solid var(--line); background: #fff; font-family: inherit; font-size: 10.5px; color: var(--sub); padding: 2px 10px; cursor: pointer; letter-spacing: .06em; margin-top: 4px; }
.recalc:hover { border-color: var(--ai); color: var(--ai); }
.a-select { width: 100%; min-width: 110px; height: 36px; border: 1px solid var(--line); font-family: inherit; font-size: 12px; font-weight: 700; padding: 0 8px; background: #fff; color: var(--sumi); }
.a-select:focus { outline: 2px solid var(--ai); }
.a-input { width: 100%; min-height: 36px; padding: 7px 10px; border: 1px solid var(--line); font-family: inherit; font-size: 12.5px; background: #fff; }
.a-input:focus { outline: 2px solid var(--ai); }
.kekko-mark { font-family: "Zen Old Mincho", serif; color: var(--shu); border: 1.5px solid var(--shu); border-radius: 50%; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; transform: rotate(-6deg); line-height: 1.25; text-align: center; }
.acts { display: flex; flex-direction: column; gap: 6px; min-width: 104px; }
.adm-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.abtn { border: none; font-family: inherit; font-weight: 700; font-size: 11.5px; letter-spacing: .08em; padding: 8px 12px; cursor: pointer; white-space: nowrap; text-decoration: none; display: inline-block; text-align: center; color: var(--sumi); }
.abtn.pub { background: var(--green); color: #fff; }
.abtn.save { background: #fff; color: var(--sumi); box-shadow: inset 0 0 0 1px var(--sumi); }
.abtn.rej { background: #fff; color: var(--shu); box-shadow: inset 0 0 0 1px var(--shu); }
.abtn.ghost { background: #fff; color: var(--sumi); box-shadow: inset 0 0 0 1px var(--line); }
.abtn.ghost:hover { box-shadow: inset 0 0 0 1px var(--sub); }
.abtn:hover { opacity: .85; }
details.rowadv summary { cursor: pointer; font-size: 11px; font-weight: 700; color: var(--ai); list-style: none; padding: 8px 0; letter-spacing: .08em; }
details.rowadv summary::before { content: "▸ "; }
details.rowadv[open] summary::before { content: "▾ "; }
.advgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 2px 0 12px; }
.advgrid .full { grid-column: 1 / -1; }
.advgrid label.ck { display: flex; gap: 8px; align-items: center; font-size: 12px; font-weight: 700; }
.advgrid label.ck input { width: 18px; height: 18px; accent-color: var(--shu); }
.adm-note { padding: 10px 20px; font-size: 11px; color: var(--sub); background: #FBFAF6; border-top: 1px solid var(--line); }
.adm-empty { padding: 24px 20px; font-size: 13px; color: var(--sub); }

/* シード投稿・管理フォーム */
.seedgrid { padding: 16px 20px; display: grid; gap: 10px; }
.seedgrid .tagpick, .tagpick { display: flex; gap: 8px; flex-wrap: wrap; }
.tagpick label { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; padding: 6px 14px; font-size: 12px; cursor: pointer; }
.tagpick label.on { border-color: var(--ai); box-shadow: inset 0 0 0 1px var(--ai); color: var(--ai); font-weight: 700; }
.tagpick input { accent-color: var(--ai); }
.seedgrid .btn { width: auto; justify-self: start; height: 42px; font-size: 13px; }
.pform { padding: 20px 22px; max-width: 680px; }
.pform .foot { display: flex; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.pform .foot .btn { width: auto; height: 46px; }

/* 管理ログイン */
.adm-login { max-width: 420px; margin: 60px auto 0; }

@media (max-width: 960px) {
  .adm-frame { grid-template-columns: 1fr; }
  .adm-nav { position: static; display: flex; overflow-x: auto; }
  .adm-nav a { border-bottom: none; border-right: 1px solid var(--line); white-space: nowrap; }
  .adm-nav a.on { border-left: none; border-bottom: 2px solid var(--ai); }
  .panel.scroll { overflow-x: auto; }
  .panel.scroll .adm-table { min-width: 920px; }
  .panel.scroll .adm-table.mid { min-width: 720px; }
}

/* ---- 投稿の誘いバンド ---- */
.invite { padding: 80px 0 90px; text-align: center; background: var(--washi); border-top: 1px solid var(--line); }
.invite h2 { font-size: 26px; letter-spacing: .2em; }
.invite p { color: var(--sub); margin: 14px 0 28px; font-size: 13.5px; }
.invite .btn { width: auto; }

/* ---- 動き（軽量・home.jsと対） ---- */
.hero-shiori .tate { animation: heroIn .9s .15s ease both; }
.hero-shiori .hs-panel { animation: heroIn .9s .4s ease both; }
@keyframes heroIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .hero-shiori .tate, .hero-shiori .hs-panel { animation: none; }
  .hero-shiori .hs-slide, .hero-shiori .hs-slide.on { transition: none; transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- レスポンシブ ---- */
@media (max-width: 960px) {
  .cardgrid { grid-template-columns: 1fr 1fr; }
  .how .in { grid-template-columns: 1fr; gap: 24px; }
  .detail-layout { grid-template-columns: 1fr; }
  .side { position: static; }
}
@media (max-width: 640px) {
  .site-header nav { display: none; }
  .brand .name { font-size: 17px; white-space: nowrap; }
  .brand .by { display: none; }
  .site-header .in .btn, .site-header .cta { padding: 0 14px; font-size: 12px; height: 36px; }
  .cardgrid { grid-template-columns: 1fr; }
  .hero-shiori .hs-photo { height: 440px; }
  /* パネルは写真の下へ流し、縦書きタイトルはセクション基準で写真の上に残す */
  .hero-shiori .hs-inner { position: static; }
  .hero-shiori .hs-inner .wrap2 { height: auto; position: static; padding: 0; }
  .tate { position: absolute; top: 40px; left: 20px; }
  .tate h1 { font-size: 32px; }
  .hero-shiori .hs-panel { position: relative; z-index: 2; max-width: none; margin: -52px 20px 0; padding: 26px 24px; bottom: auto; right: auto; }
  .how { padding-top: 32px; }
  .steps3 { grid-template-columns: 1fr; border-left: none; border-top: 1px solid var(--line); }
  .steps3 .st { border-right: none; border-bottom: 1px solid var(--line); padding: 16px 4px; }
  .cat-head h2 { font-size: 16px; letter-spacing: .1em; white-space: nowrap; }
  .cat-head h2 small { display: none; }
  .kekko-band .more, .kekko-inline .more { margin-left: 0; }
}
