/* フリボンビレッジ公式サイト（試作）
   メインカラーはロゴの「里山の深緑」#2D5E3E（2026-10-10 代表の決定）。山吹とクリーム色を添えて温かくする。書体は会社の型を受け継ぐ。 */
:root {
  --main: #2D5E3E;     /* ロゴの深緑 */
  --main-d: #1F4530;   /* フッター・山吹の上の文字 */
  --main-l: #3E7A54;   /* 見出し上の小さな英字 */
  --link: #2B6A44;
  --amber: #F5A623;
  --amber-t: #FFF0D1;
  --amber-text: #8A5200;   /* 白地の小さな文字に使える濃さ（コントラスト 4.5 以上） */
  --cream: #FFF8EF;
  --tint: #EEF5EF;
  --text: #1E2A23;
  --muted: #55605A;
  --line: #D5E2D7;
  --white: #FFFFFF;
  --radius: 16px;
  --max: 1120px;
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
  --font-round: "Arial Rounded MT Bold", "Hiragino Maru Gothic ProN", var(--font);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  font-size: 17px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 100; background: var(--white); padding: 8px 12px; }

/* 試作の帯（公開前に外す） */
.proto {
  background: repeating-linear-gradient(-45deg, #FFE6B3, #FFE6B3 12px, #FFF0D1 12px, #FFF0D1 24px);
  color: var(--amber-text);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  padding: 6px 16px;
}

/* ヘッダー */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--main); }
.brand img { width: 44px; height: 44px; }
.brand .name { font-weight: 800; font-size: 20px; line-height: 1.2; }
.brand .by { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }
.gnav { display: flex; align-items: center; gap: 24px; }
.gnav a { color: var(--main); text-decoration: none; font-weight: 700; font-size: 15px; }
.gnav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.gnav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.mnav { display: none; }

/* ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 28px; border-radius: 999px;
  font-weight: 800; font-size: 17px; text-decoration: none; line-height: 1.3;
  border: 2px solid transparent; transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(45, 94, 62, .18); }
.btn-line { background: #06C755; color: #fff; }           /* LINE の緑（公式の案内に合わせる。要確認） */
.btn-line .sub { font-weight: 600; font-size: 13px; opacity: .95; }
.btn-primary { background: var(--amber); color: var(--main-d); }
.btn-ghost { background: var(--white); color: var(--main); border-color: var(--main); }
.btn-sm { min-height: 40px; padding: 6px 18px; font-size: 14px; }
.note-soon { font-size: 13px; color: var(--muted); margin-top: 8px; }
.rules-note { font-size: 15px; color: var(--muted); margin-top: 20px; }
.more-link { margin-top: 20px; font-weight: 700; }
.flow-note { text-align: center; font-size: 14px; color: var(--muted); margin-top: 6px; }
.flow-note.left { text-align: left; margin: 0 0 16px; }
.more-note { margin-top: 20px; color: var(--text); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } .btn:hover { transform: none; } }
.btn-soon { background: var(--tint); color: var(--main-d); border-color: var(--line); cursor: default; }   /* 公式LINEの開設まで（押せない） */
.btn-soon:hover { transform: none; box-shadow: none; }
.mnav-soon { display: block; padding: 12px 14px; color: var(--muted); font-weight: 700; }
.line-add { display: inline-flex; align-items: center; vertical-align: middle; }
.line-add img { display: block; width: auto; height: 44px; }   /* LINE 公式のボタン画像（縦横の比は変えない） */
.site-header .line-add img { height: 36px; }
.line-add:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.mnav li a[aria-current="page"] { background: var(--tint); border-radius: 8px; }

/* 見出し */
.eyebrow { font-family: var(--font-round); color: var(--main-l); letter-spacing: .14em; font-size: 13px; font-weight: 700; margin: 0 0 8px; }
.eyebrow::before { content: "●"; color: var(--amber); margin-right: 8px; font-size: 11px; }
h1, h2, h3 { color: var(--main); line-height: 1.4; letter-spacing: .03em; }
h2 { font-size: 30px; margin: 0 0 12px; }
h3 { font-size: 20px; margin: 0 0 8px; }
.lead { color: var(--muted); margin: 0 0 32px; }
section { padding: 88px 0; }
.bg-cream { background: var(--cream); }
.bg-tint { background: var(--tint); }

/* ヒーロー */
.hero { background: linear-gradient(180deg, var(--cream) 0%, #FFF3E0 100%); padding: 72px 0 56px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 32px; }
.hero h1 { font-size: 46px; margin: 0 0 20px; line-height: 1.3; }
.hero p.lead { font-size: 18px; color: var(--text); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-art img { width: 100%; max-width: 380px; margin: 0 auto; }

/* カード */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--white); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.card .num {
  display: inline-flex; width: 40px; height: 40px; border-radius: 50%; align-items: center; justify-content: center;
  background: var(--amber); color: var(--main-d); font-family: var(--font-round); font-weight: 700; margin-bottom: 12px;
}
.card p { margin: 0; color: var(--text); font-size: 16px; }

/* 3つの場 */
.places { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.place { border-radius: var(--radius); padding: 28px; background: var(--white); border: 2px solid var(--line); position: relative; }
.place .tag { display: inline-block; font-size: 13px; font-weight: 700; border-radius: 999px; padding: 2px 12px; margin-bottom: 10px; }
.place.line .tag { background: #E3F8EC; color: #05652B; }
.place.meet .tag { background: var(--amber-t); color: var(--amber-text); }
.place.discord .tag { background: #E9ECFF; color: #3A3FB0; }
.place p { margin: 0; font-size: 16px; }
.arrowline { text-align: center; color: var(--muted); font-size: 15px; margin-top: 18px; }

/* 帯（呼びかけ） */
.cta-band { background: var(--main); color: var(--white); border-radius: 24px; padding: 48px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.cta-band h2 { color: var(--white); margin-bottom: 8px; }
.cta-band p { margin: 0; color: #DDEBE0; }

/* 2列 */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split img { border-radius: var(--radius); border: 1px solid var(--line); }
.box { background: var(--white); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.box-soon { background: var(--amber-t); border: 2px dashed var(--amber); }
.box-soon strong { color: var(--amber-text); }

/* 手順 */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.steps li { background: var(--white); border-radius: var(--radius); padding: 24px 20px; border: 1px solid var(--line); counter-increment: step; position: relative; }
.steps li::before {
  content: counter(step); display: inline-flex; width: 36px; height: 36px; border-radius: 50%;
  background: var(--main); color: var(--white); align-items: center; justify-content: center;
  font-family: var(--font-round); margin-bottom: 10px;
}
.steps li b { display: block; color: var(--main); }
.steps li span { font-size: 15px; color: var(--muted); }

/* ルール */
.rules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; list-style: none; padding: 0; margin: 0; }
.rules li { background: var(--white); border-left: 5px solid var(--amber); border-radius: 10px; padding: 18px 20px; }
.rules li b { color: var(--main); display: block; }
.rules li span { font-size: 16px; }

/* よくある質問 */
.faq details { background: var(--white); border-radius: 12px; border: 1px solid var(--line); margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--main); padding: 18px 22px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; font-family: var(--font-round); color: var(--amber-text); margin-right: 12px; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq .a { padding: 16px 22px 20px; margin: 0; }

/* 本文のページ（プライバシーなど） */
.page-head { background: var(--cream); padding: 56px 0 40px; }
.page-head h1 { font-size: 38px; margin: 0 0 8px; }
.prose { max-width: 760px; }
.prose h2 { font-size: 22px; margin: 40px 0 8px; border-left: 5px solid var(--amber); padding-left: 12px; }
.prose ul { padding-left: 1.4em; }
.prose h3 { font-size: 17px; color: var(--main); margin: 22px 0 4px; }
.prose .small-note { font-size: 14px; color: var(--muted); margin-top: 32px; }
.draft { display: inline-block; background: var(--amber-t); color: var(--amber-text); font-size: 13px; font-weight: 700; border-radius: 6px; padding: 2px 10px; }

/* フッター */
.site-footer { background: var(--main-d); color: #CFE0D3; padding: 48px 0 32px; font-size: 15px; }
.site-footer .wrap { display: grid; grid-template-columns: minmax(300px, auto) 1fr; gap: 24px; }
.site-footer .fnav { justify-content: flex-end; }
.site-footer a { color: var(--white); }
.site-footer .fnav { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; }
.site-footer .operator { display: flex; align-items: center; gap: 10px; color: var(--white); font-weight: 700; }
.site-footer .operator img { width: 36px; height: 36px; }
.site-footer small { display: block; margin-top: 16px; color: #A9C4B0; }

/* タブレット */
@media (max-width: 960px) {
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { max-width: 260px; }
  .cards, .places { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cta-band { grid-template-columns: 1fr; padding: 36px 28px; }
  .site-footer .wrap { grid-template-columns: 1fr; }
}

/* スマートフォン */
@media (max-width: 720px) {
  body { font-size: 16px; }
  section { padding: 64px 0; }
  .wrap { padding: 0 18px; }
  .gnav { display: none; }
  .mnav { display: block; position: relative; }
  .mnav summary {
    list-style: none; cursor: pointer; font-weight: 700; color: var(--main); border: 2px solid var(--main);
    border-radius: 999px; padding: 6px 16px; font-size: 15px;
  }
  .mnav summary::-webkit-details-marker { display: none; }
  .mnav ul { position: absolute; right: 0; top: 48px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; list-style: none; margin: 0; padding: 8px; min-width: 220px; box-shadow: 0 10px 24px rgba(0,0,0,.12); }
  .mnav li a { display: block; padding: 12px 14px; color: var(--main); font-weight: 700; text-decoration: none; }
  .hero { padding: 40px 0; }
  .hero h1 { font-size: 32px; }
  h2 { font-size: 25px; }
  .btn { width: 100%; }
  .steps, .rules { grid-template-columns: 1fr; }
  .page-head h1 { font-size: 30px; }
}

/* 挿絵（Codex で作った透過の絵） */
h1, h2, h3 { word-break: auto-phrase; }
.hero .wrap { grid-template-columns: 1fr 1fr; }
.hero-art .hero-img { width: 100%; max-width: 600px; margin: 0 auto; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; } .hero-art .hero-img { max-width: 420px; } }
.card-art { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; margin: -8px 0 8px; }
.card h3 { font-size: 19px; }
.wide-art { width: 100%; max-width: 1000px; margin: 0 auto 32px; }
img.rounded { border-radius: var(--radius); border: 1px solid var(--line); background: var(--cream); }
.head-split { display: grid; grid-template-columns: 1fr 380px; align-items: center; gap: 32px; }
.head-art { width: 100%; }
.step-art { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; margin-bottom: 6px; }
@media (max-width: 960px) {
  .head-split { grid-template-columns: 1fr; }
  .head-art { max-width: 320px; margin: 0 auto; order: -1; }
}

/* ビレッジ会の予定（2026-10-10 追加。トップの「次のビレッジ会」と予定表で共通） */
[hidden] { display: none !important; }
.events { display: grid; gap: 16px; }
.event { display: grid; grid-template-columns: 96px 1fr; gap: 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; align-items: start; }
.event-date { background: var(--main); color: var(--white); border-radius: 12px; text-align: center; padding: 10px 6px; line-height: 1.2; }
.event-date .m { display: block; font-size: 14px; }
.event-date .d { display: block; font-size: 34px; font-weight: 800; }
.event-date .w { display: block; font-size: 13px; }
.event-state { margin: 0 0 4px; font-size: 13px; font-weight: 700; color: var(--main-l); }
.event h3 { margin: 0 0 8px; font-size: 19px; }
.event-sum { margin: 0 0 8px; }
.event dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; margin: 0 0 12px; font-size: 15px; }
.event dt { color: var(--muted); font-weight: 700; }
.event dd { margin: 0; }
.event-note { margin: 0; font-size: 14px; color: var(--muted); }
.event.past { background: #F6F7F6; }
.event.past .event-date { background: #6B7A70; }
.event.past .event-state { color: var(--muted); }
.next-label { font-weight: 700; color: var(--main); margin: 20px 0 8px; }
.more { margin: 16px 0 12px; color: var(--muted); font-size: 15px; }
.muted-note { color: var(--muted); }
@media (max-width: 720px) { .event { grid-template-columns: 72px 1fr; gap: 14px; padding: 16px; } .event-date .d { font-size: 28px; } }
@media (max-width: 960px) { .site-footer .fnav { justify-content: flex-start; } }

/* 2026-10-10 本人の修正：フッターの名前を折り返さない／参加の流れを5段に／村の約束を7つに */
.site-footer .operator, .site-footer .operator + p { white-space: nowrap; }
.steps { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1100px) { .steps { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }
ol.rules { list-style: none; padding: 0; counter-reset: rule; }
ol.rules li { counter-increment: rule; }
ol.rules li b::before { content: counter(rule) ". "; color: var(--amber-text); }
/* 2026-10-10 全体の確認で直した点：768px でヘッダーが詰まる → 1023px 以下はメニューのボタンに／名前を折り返さない／320px で場のカードがはみ出す */
.brand .name, .brand .by { white-space: nowrap; }
.place { min-width: 0; }
@media (max-width: 1023px) {
  .gnav { display: none; }
  .mnav { display: block; position: relative; }
  .mnav summary {
    list-style: none; cursor: pointer; font-weight: 700; color: var(--main); border: 2px solid var(--main);
    border-radius: 999px; padding: 6px 16px; font-size: 15px;
  }
  .mnav summary::-webkit-details-marker { display: none; }
  .mnav ul { position: absolute; right: 0; top: 48px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; list-style: none; margin: 0; padding: 8px; min-width: 220px; box-shadow: 0 10px 24px rgba(0,0,0,.12); z-index: 60; }
  .mnav li a { display: block; padding: 12px 14px; color: var(--main); font-weight: 700; text-decoration: none; }
}
/* タブレット（721〜1023px）：カードは3列のまま、横並びの絵は大きくしすぎない */
@media (min-width: 721px) and (max-width: 1023px) {
  .cards { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .card { padding: 20px; }
  .split > div > img, .split img.rounded { max-width: 560px; margin: 0 auto; }
}
/* 2026-10-12 はじめの一歩ガイド（guide.html。登録の3つの質問に答えた人への特典） */
.guide-sub { font-weight: 800; color: var(--main); font-size: 19px; margin-top: 0; }
.guide-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; counter-reset: gstep; margin: 20px 0 0; }
.guide-steps li { counter-increment: gstep; background: var(--tint); border-radius: 12px; padding: 14px 16px; }
.guide-steps li b { display: block; color: var(--main); }
.guide-steps li b::before { content: counter(gstep) ". "; color: var(--amber-text); }
.guide-steps li span { font-size: 14px; color: var(--muted); }
.guide-q { border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px 6px; margin: 12px 0; }
.guide-q h3 { margin-top: 12px; }
.guide-q p { font-size: 15px; color: var(--muted); margin: 0 0 8px; }
.guide-tip { background: var(--amber-t); border-radius: 12px; padding: 12px 16px; font-size: 15px; }
.guide-themes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.guide-theme { border: 1px solid var(--line); border-radius: 12px; padding: 2px 16px 4px; }
.guide-theme h3 { margin-top: 12px; }
.guide-theme ul { margin: 4px 0 10px; font-size: 15px; }
.guide-plan { margin: 12px 0; }
.guide-plan div { border-bottom: 2px dotted var(--line); padding: 10px 0; }
.guide-plan dt { font-weight: 800; color: var(--main); }
.guide-plan dd { margin: 0; font-size: 15px; color: var(--muted); }
.guide-village li { margin: 8px 0; }
@media (max-width: 720px) { .guide-steps, .guide-themes { grid-template-columns: 1fr; } .guide-sub { font-size: 16px; } }
