/* ============================================================
   学びの処方箋 ／ 不登校情報ハブ（/futoko/）共通スタイル
   既存サイトのデザイントークンを踏襲しつつ、
   「清潔感・安心感・可読性」を優先した派生スタイル。
   ============================================================ */

:root {
  --navy: #1a2744;
  --navy-deep: #111a2e;
  --cream: #f4efe6;
  --paper: #fbf9f4;
  --ink: #1c2233;
  --sub: #5a6273;
  --muted: #8a91a0;
  --orange: #e67e22;
  --green: #06C755;
  --soft: #eef2f7;      /* 優しい水色寄りの背景 */
  --soft-line: #dfe5ee;
  --line-l: rgba(26,39,68,0.14);
  --line-d: rgba(255,255,255,0.18);
  --sub-d: rgba(255,255,255,0.72);
  --radius: 14px;
  --radius-sm: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.95;
  font-size: 16px;
  padding-top: 60px;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; display: block; }
a { color: #1f5fae; }

.wrap { max-width: 860px; margin: 0 auto; padding: 0 1.25rem; }
.wrap-wide { max-width: 1040px; margin: 0 auto; padding: 0 1.25rem; }
.serif { font-family: 'Shippori Mincho', serif; }
.visually-hidden { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }

/* ===== HEADER ===== */
.f-header {
  position: fixed; top: 0; left: 0; right: 0; height: 60px;
  background: var(--navy);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.1rem; z-index: 100;
}
.f-logo { text-decoration: none; line-height: 1.25; }
.f-logo b { color: #fff; font-weight: 900; font-size: 0.98rem; letter-spacing: 0.04em; display: block; }
.f-logo span { color: var(--sub-d); font-size: 0.6rem; letter-spacing: 0.12em; display: block; }
.f-nav { display: none; align-items: center; gap: 1.3rem; }
.f-nav a { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 0.82rem; font-weight: 500; }
.f-nav a:hover { color: #fff; }
.f-nav .f-line { display: inline-flex; align-items: center; gap: 0.35rem; background: var(--green); color: #fff; padding: 0.4rem 0.9rem; border-radius: 6px; font-weight: 700; }
.f-nav .f-line svg { width: 16px; height: 16px; fill: #fff; }
.f-menu-btn { background: none; border: none; cursor: pointer; width: 42px; height: 42px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.f-menu-btn span { width: 24px; height: 2px; background: #fff; transition: 0.3s; }
.f-menu-btn.open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.f-menu-btn.open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
.f-menu { position: fixed; inset: 0; background: var(--navy-deep); z-index: 90; display: flex; flex-direction: column; justify-content: center; padding: 2rem; transform: translateY(-102%); transition: transform 0.4s cubic-bezier(0.7,0,0.2,1); }
.f-menu.open { transform: none; }
.f-menu a { color: #fff; text-decoration: none; font-weight: 700; font-size: 1.3rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line-d); }
.f-menu .f-menu-line { color: var(--green); }

/* ===== BREADCRUMB ===== */
.crumbs { background: var(--soft); border-bottom: 1px solid var(--soft-line); font-size: 0.76rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.3rem; align-items: center; max-width: 1040px; margin: 0 auto; padding: 0.6rem 1.25rem; color: var(--muted); }
.crumbs a { color: var(--sub); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs li:not(:last-child)::after { content: '›'; margin-left: 0.3rem; color: var(--muted); }

/* ===== HERO (page head) ===== */
.f-hero { background: linear-gradient(180deg, var(--soft), var(--paper)); padding: 2.6rem 0 2rem; border-bottom: 1px solid var(--soft-line); }
.f-hero .eyebrow { font-size: 0.74rem; letter-spacing: 0.16em; color: var(--orange); font-weight: 700; margin-bottom: 0.7rem; }
.f-hero h1 { font-size: clamp(1.55rem, 5.5vw, 2.3rem); font-weight: 900; color: var(--navy); line-height: 1.4; letter-spacing: 0.02em; }
.f-hero .lead { margin-top: 1rem; color: var(--sub); font-size: 0.95rem; }

/* ===== SECTIONS ===== */
.f-sec { padding: 2.8rem 0; }
.f-sec.alt { background: #fff; border-top: 1px solid var(--soft-line); border-bottom: 1px solid var(--soft-line); }
.f-h2 { font-size: 1.3rem; font-weight: 900; color: var(--navy); letter-spacing: 0.02em; margin-bottom: 1.2rem; padding-left: 0.7rem; border-left: 4px solid var(--orange); line-height: 1.5; }
.f-h3 { font-size: 1.08rem; font-weight: 700; color: var(--navy); margin: 1.8rem 0 0.7rem; }
.f-p { margin-bottom: 1rem; }
.f-sec p { color: var(--ink); }
.f-sec ul, .f-sec ol { margin: 0 0 1.1rem 1.3rem; }
.f-sec li { margin-bottom: 0.4rem; }

/* ===== 目的別カード導線 ===== */
.goal-grid { display: grid; grid-template-columns: 1fr; gap: 0.9rem; }
.goal-card { display: flex; align-items: center; gap: 1rem; background: #fff; border: 1px solid var(--soft-line); border-radius: var(--radius); padding: 1.1rem 1.2rem; text-decoration: none; color: var(--ink); box-shadow: 0 1px 3px rgba(26,39,68,0.05); transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s; }
.goal-card:hover, .goal-card:focus-visible { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(26,39,68,0.1); border-color: var(--orange); outline: none; }
.goal-ico { flex-shrink: 0; width: 48px; height: 48px; border-radius: 12px; background: var(--soft); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.goal-card b { display: block; font-size: 1rem; color: var(--navy); font-weight: 700; }
.goal-card small { display: block; color: var(--sub); font-size: 0.82rem; margin-top: 0.15rem; }
.goal-card .arrow { margin-left: auto; color: var(--orange); font-weight: 700; flex-shrink: 0; }

/* ===== 索引・リンクリスト ===== */
.link-list { list-style: none; margin: 0 !important; display: grid; gap: 0.6rem; }
.link-list li { margin: 0; }
.link-list a { display: flex; align-items: baseline; gap: 0.6rem; background: #fff; border: 1px solid var(--soft-line); border-radius: var(--radius-sm); padding: 0.85rem 1rem; text-decoration: none; color: var(--navy); font-weight: 500; transition: border-color 0.15s, background 0.15s; }
.link-list a:hover { border-color: var(--orange); background: #fffdf9; }
.link-list a .arrow { margin-left: auto; color: var(--orange); }
.link-list .tag { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; color: var(--sub); background: var(--soft); border-radius: 4px; padding: 0.1rem 0.5rem; }
.link-list .soon { color: var(--muted); }
.link-list .soon .tag { color: var(--muted); }

/* ===== 市カード（索引トップ用） ===== */
.city-grid { display: grid; grid-template-columns: 1fr; gap: 0.8rem; }
.city-card { display: flex; align-items: center; gap: 0.9rem; padding: 1rem 1.15rem; border: 1px solid var(--soft-line); border-radius: var(--radius); background: #fff; text-decoration: none; color: var(--ink); }
.city-card.ready:hover { border-color: var(--orange); }
.city-card.pending { opacity: 0.72; }
.city-card b { color: var(--navy); font-weight: 700; }
.city-card small { color: var(--sub); font-size: 0.8rem; display: block; }
.city-card .badge { margin-left: auto; font-size: 0.68rem; font-weight: 700; padding: 0.15rem 0.55rem; border-radius: 5px; }
.city-card .badge.ok { background: #e8f5ee; color: #1a8a4a; }
.city-card .badge.wip { background: var(--soft); color: var(--muted); }

/* ===== 注意書き・出典 ===== */
.notice { background: #fff8ec; border: 1px solid #f2dcae; border-radius: var(--radius-sm); padding: 0.9rem 1.1rem; font-size: 0.85rem; color: #7a5a1e; margin: 1.2rem 0; }
.notice b { color: #7a5a1e; }
.confirm-tag { display: inline-block; font-size: 0.7rem; font-weight: 700; color: #b26a00; background: #fff3df; border: 1px dashed #e5b567; border-radius: 4px; padding: 0.05rem 0.45rem; }
.source { font-size: 0.78rem; color: var(--muted); margin-top: 0.4rem; }
.source a { color: var(--sub); }
.updated { font-size: 0.76rem; color: var(--muted); }

/* ===== 学びの処方箋 導線（控えめ） ===== */
.mnb-box { background: var(--cream); border-radius: var(--radius); padding: 1.4rem 1.3rem; margin: 1.5rem 0; }
.mnb-box .kicker { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; color: var(--orange); }
.mnb-box h3 { font-size: 1.05rem; color: var(--navy); margin: 0.3rem 0 0.6rem; font-weight: 700; }
.mnb-box p { font-size: 0.88rem; color: var(--sub); margin-bottom: 0.9rem; }
.mnb-box a.more { font-weight: 700; color: var(--navy); text-decoration: none; border-bottom: 2px solid var(--orange); }

/* ===== CTA / LINE ===== */
.f-cta { text-align: center; background: var(--navy); color: #fff; padding: 2.6rem 1.25rem; border-radius: var(--radius); margin: 2rem auto; max-width: 860px; }
.f-cta h2 { font-family: 'Shippori Mincho', serif; font-size: 1.35rem; font-weight: 600; margin-bottom: 0.6rem; }
.f-cta p { color: var(--sub-d); font-size: 0.88rem; margin-bottom: 1.3rem; }
.btn-line { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--green); color: #fff; font-weight: 700; padding: 0.9rem 1.8rem; border-radius: 8px; text-decoration: none; }
.btn-line svg { width: 20px; height: 20px; fill: #fff; }

/* ===== related links ===== */
.related { display: grid; gap: 0.6rem; margin-top: 0.6rem; }
.related a { text-decoration: none; color: var(--navy); border: 1px solid var(--soft-line); border-radius: var(--radius-sm); padding: 0.7rem 0.95rem; background: #fff; font-size: 0.9rem; }
.related a:hover { border-color: var(--orange); }

/* ===== 施設一覧（フィルタ） ===== */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.3rem; }
.filter-btn { border: 1px solid var(--soft-line); background: #fff; color: var(--sub); font-size: 0.82rem; font-weight: 700; padding: 0.45rem 1rem; border-radius: 999px; cursor: pointer; font-family: inherit; transition: 0.15s; }
.filter-btn[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.shisetsu-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.shisetsu-card { border: 1px solid var(--soft-line); border-radius: var(--radius); background: #fff; padding: 1.2rem 1.25rem; }
.shisetsu-card h3 { font-size: 1.05rem; color: var(--navy); font-weight: 700; margin-bottom: 0.5rem; }
.shisetsu-card .card-summary { font-size: 0.86rem; color: var(--ink); line-height: 1.8; margin-bottom: 0.8rem; }
.shisetsu-card .types { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.7rem; }
.shisetsu-card .types span { font-size: 0.68rem; font-weight: 700; color: var(--sub); background: var(--soft); border-radius: 5px; padding: 0.1rem 0.5rem; }
.shisetsu-card dl { display: grid; grid-template-columns: 5.5em 1fr; gap: 0.3rem 0.6rem; font-size: 0.85rem; }
.shisetsu-card dt { color: var(--muted); font-weight: 700; }
.shisetsu-card dd { color: var(--ink); }
.shisetsu-card .card-foot { margin-top: 0.8rem; padding-top: 0.7rem; border-top: 1px solid var(--soft-line); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.4rem; }
.shisetsu-empty { color: var(--muted); text-align: center; padding: 2rem 0; }

/* ===== FOOTER ===== */
.f-footer { background: var(--navy-deep); color: var(--sub-d); padding: 2.4rem 0 1.6rem; margin-top: 2rem; font-size: 0.82rem; }
.f-footer .cols { display: grid; grid-template-columns: 1fr; gap: 1.4rem; margin-bottom: 1.6rem; }
.f-footer h4 { color: #fff; font-size: 0.82rem; margin-bottom: 0.6rem; }
.f-footer a { color: var(--sub-d); text-decoration: none; display: block; margin-bottom: 0.25rem; }
.f-footer a:hover { color: #fff; }
.f-footer .foot-note { border-top: 1px solid var(--line-d); padding-top: 1.2rem; font-size: 0.72rem; line-height: 1.8; }

/* ===== DESKTOP ===== */
@media (min-width: 800px) {
  .f-menu-btn, .f-menu { display: none; }
  .f-nav { display: flex; }
  .goal-grid { grid-template-columns: 1fr 1fr; }
  .city-grid { grid-template-columns: 1fr 1fr; }
  .shisetsu-grid { grid-template-columns: 1fr 1fr; }
  .related { grid-template-columns: 1fr 1fr; }
  .f-footer .cols { grid-template-columns: 2fr 1fr 1fr; }
}
