/* hibidori.com 公式サイト 017（2026-09-30）— すべてのページで使う見た目
   019e（2026-10-02、Masahiro）: 作った人からの本文の文字を少し小さく（16px → 15px。感謝の一文はそのまま）。
   019f（2026-10-03、Masahiro）: 作った人からの本文と感謝の一文の色を、ちょっとだけ薄く（--ink-soft。見出しの --muted ほどではない）。
   017: できることの説明の文字を少し小さく（16px → 15px）し、色を「こんな場面で」の説明と同じ少し薄い色にした（題名と見分けがつくように。Masahiro）。
        作った人からも、見出しを押すと開く形にした。閉じていても、最後の感謝の一文は見える（Masahiro）。
   016: できることの題名をもう少し小さく（19px → 17px）、太字をやめ、区切りの線をなくした。注記（.notes）を足した。
   014: できることを、題名を押すと開く形にした（よくある質問と同じ見た目の矢印）。
   015: できることの題名を少し小さく（21px → 19px）。節と節の間（4.5rem → 3rem）と、いちばん下の前（5rem → 3.5rem）を詰めた。
        会社のアイコンが飛んできて収まる動き（トップだけ。motion.js）のための見た目を足した。
   外のものは何も読み込まない。文字は端末の標準の書体。
   明るい表示・暗い表示は、端末の設定（Mac・iPhone の「外観」、Android の「ダークテーマ」）に合わせて切り替わる。
   本文の幅は、トップのホーム画面（アイコンの並び）の幅にそろえる（--phone。008 で決めた）。 */
:root {
  --bg: #faf8f4;
  --ink: #1d1d1b;
  --muted: #66635d;
  --ink-soft: #3a3935;     /* 019f: 本文より少しだけ薄い色（--ink から --muted へ 4 割寄せた色）。作った人からの本文と感謝の一文 */
  --line: #e3dfd6;
  --card: #fffdf9;
  --wall-a: #f8d5c1;
  --wall-b: #cfe3f3;
  --wall-c: #f4eee6;
  --brand: #062d34;
  --co-shadow: drop-shadow(0 2px 5px rgba(6, 45, 52, 0.22));
  --s: 64px;               /* ホーム画面のアイコンの大きさ */
  --pitch: 92px;           /* ホーム画面の行の間隔 */
  --f: 72px;               /* 立ち上がったあとのアイコンの大きさ */
  --phone: 400px;          /* スマホの画面の幅のめやす（パソコンで開いたときの、本文の幅） */
  --gw: min(100%, var(--phone));  /* ホーム画面の幅 */
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161615;
    --ink: #edebe7;
    --muted: #a4a09a;
    --ink-soft: #d0cdc8;
    --line: #34332f;
    --card: #1d1d1b;
    --wall-a: #4a2a1e;
    --wall-b: #1b2e45;
    --wall-c: #111214;
    --brand: #f6fbfa;
    --co-shadow: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.55));
  }
}
@media (max-width: 359px) {
  :root { --s: 54px; --pitch: 80px; --f: 64px; }
}
@media (min-width: 600px) {
  :root { --f: 84px; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); scrollbar-gutter: stable; }
html:lang(ja) { word-break: auto-phrase; }   /* 対応するブラウザーでは、日本語を言葉の切れ目で折り返す */
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Noto Sans CJK JP", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.8;
}
.page {
  position: relative;
  z-index: 1;
  max-width: calc(var(--phone) + 3rem);
  margin: 0 auto;
  padding: 0.75rem 1.5rem 2rem;
}
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }

/* いちばん上の帯: 言語の切り替え（下のページでは、左に hibidori の名前も） */
.topbar {
  display: flex;
  align-items: center;
  gap: 0.5rem 1rem;
  min-height: 44px;
  margin: 0 0 clamp(1.75rem, 6vh, 3.5rem);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: 0.01em;
}
.brand img { display: block; width: 32px; height: 32px; }
.topbar nav { margin-left: auto; }   /* 言語の切り替えは右に寄せる */
.langs {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
}
.langs a { display: inline-block; padding: 0.6rem 0; color: var(--muted); text-decoration: none; }
.langs a:hover { color: var(--ink); }
.langs a[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* 節 */
.section { margin-top: 3rem; }
.hero + .section { margin-top: 2.5rem; }   /* はじめの部分のすぐ下は、少し詰める（はじめの部分の高さは intro.css で、この 2.5rem と合わせてある） */
.section > h2, .maker-fold > summary > h2 {
  margin: 0 0 1.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.lead-line { margin: -0.5rem 0 1.5rem; }

/* できること: 題名を押すと説明が開く（2026-09-30、Masahiro） */
.features { margin: 0; }
.feature summary {
  position: relative;
  padding: 0.6rem 2rem 0.6rem 0;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}
.feature summary::-webkit-details-marker { display: none; }
.feature summary::after {
  content: "";
  position: absolute;
  right: 0.35rem;
  top: 50%;   /* 題名の行の真ん中の高さ */
  width: 0.55rem;
  height: 0.55rem;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s;
}
.feature[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.feature h3 { margin: 0; font-size: 1.0625rem; font-weight: 400; line-height: 1.6; }
@media (hover: hover) {   /* マウスのときだけ（スマホで押したあとに下線が残らないように） */
  .feature summary:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; text-decoration-color: var(--line); }
}
.feature-body { padding: 0.15rem 0 0.9rem; font-size: 0.9375rem; line-height: 1.75; color: var(--muted); }   /* 017: 題名（17px）と見分けがつくように */
.feature p { margin: 0 0 0.5rem; }

/* こんな場面で */
.scenes { margin: 0; }
.scenes dt { margin: 1.25rem 0 0.15rem; font-weight: 600; }
.scenes dt:first-child { margin-top: 0; }
.scenes dd { margin: 0; color: var(--muted); }

/* 約束 */
.promise { margin: 0 0 1.5rem; }
.promise h3 { margin: 0 0 0.25rem; font-size: 1.0625rem; font-weight: 600; line-height: 1.6; }
.promise p { margin: 0; }
.note, .fine { margin: 0.35rem 0 0; font-size: 0.8125rem; line-height: 1.6; color: var(--muted); }
/* 注記（開発中・予定・順次お知らせ。016） */
.notes { margin: 1.25rem 0 0; }
.notes .fine { margin: 0 0 0.2rem; }
main > .notes.closing { margin-top: 3rem; }
.details { margin: 1.75rem 0 0; font-size: 0.875rem; color: var(--muted); }
.details a { color: var(--muted); }

/* 料金 */
.price-table {
  width: 100%;
  margin: 1.75rem 0 1.25rem;   /* 014: プランの下に置いた */
  border-collapse: collapse;
  font-size: 0.875rem;
  line-height: 1.5;
}
.price-table th, .price-table td {
  padding: 0.65rem 0.35rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.price-table thead th { font-weight: 600; border-bottom-color: var(--muted); }
.price-table tbody th { font-weight: 500; color: var(--muted); }
.price-table td { font-variant-numeric: tabular-nums; }
.price-table .small { display: block; font-size: 0.75rem; color: var(--muted); }
.plan {
  margin: 0 0 1rem;
  padding: 1.15rem 1.25rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}
.plan.premium { border: 1.5px solid var(--muted); }
.plan h3 { margin: 0; font-size: 1.125rem; font-weight: 700; letter-spacing: 0.01em; }
.plan .lead { margin: 0.2rem 0 0.75rem; font-weight: 600; }
.plan .plus-all { margin: 0 0 0.4rem; font-size: 0.875rem; color: var(--muted); }
.plan ul { margin: 0; padding: 0 0 0 1.1rem; }
.plan li { margin: 0 0 0.4rem; }
.plan li b { font-weight: 600; }
.fine + .fine { margin-top: 0.15rem; }

/* 作った人から */
.maker { margin: 0; padding: 0 0 0 1rem; border-left: 2px solid var(--line); }
.maker p { margin: 0 0 0.6rem; }
.maker .dedication { margin: 1.4rem 0 0.2rem; }
/* 017: 作った人からは、見出し（作った人から）を押すと開く。最後の感謝の一文（.maker-end）は、閉じていても見える。
   開いたときは、本文（.maker-body）と感謝の一文の左の線がつながって、016 までと同じ見た目になる */
.maker-fold > summary {
  position: relative;
  margin: -0.6rem 0 0.9rem;   /* 押せる高さを広げる分（上下 0.6rem）を戻し、見出しの下の間は 1.5rem のまま */
  padding: 0.6rem 2rem 0.6rem 0;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}
.maker-fold > summary::-webkit-details-marker { display: none; }
.maker-fold > summary > h2 { margin: 0; }
.maker-fold > summary::after {   /* できることと同じ矢印 */
  content: "";
  position: absolute;
  right: 0.35rem;
  top: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s;
}
.maker-fold[open] > summary::after { transform: translateY(-20%) rotate(-135deg); }
.maker-fold[open].closing > summary::after { transform: translateY(-70%) rotate(45deg); }   /* 閉じる動きの間（motion.js）は、矢印をすぐ下向きに戻す */
@media (hover: hover) {
  .maker-fold > summary:hover > h2 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; text-decoration-color: var(--line); }
}
.maker-body { padding-bottom: 1.4rem; font-size: 0.9375rem; color: var(--ink-soft); }   /* 感謝の一文の前を1行離す（016 までの 1.4rem と同じ）。019e: 本文の文字を少し小さく（16px → 15px。できることの説明と同じ大きさ。Masahiro） */
.maker-body p:last-child { margin-bottom: 0; }
.maker-end .dedication { margin: 0; padding: 0 0 0.2rem; color: var(--ink-soft); }   /* 019f: 本文と同じ、少しだけ薄い色 */
.nw { white-space: nowrap; }   /* ここでは折り返さない（016） */   /* 作った人からの最後の1行（感謝を込めて）。本の献辞のように1行離す（016） */
.maker h3 { margin: 0 0 0.6rem; font-size: 1.0625rem; font-weight: 600; }

/* 下のページ（サポート・規約など） */
.doc h1 { margin: 0 0 1rem; font-size: 1.75rem; font-weight: 600; line-height: 1.4; }
.doc h2 { margin: 2.75rem 0 0.75rem; font-size: 1.125rem; font-weight: 600; }
.doc p { margin: 0 0 0.75rem; }
.doc .intro { color: var(--muted); }
.contact { margin: 0 0 0.75rem; padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.contact p { margin: 0 0 0.35rem; }
.contact .mail { font-size: 1.0625rem; font-weight: 600; }
.doc .faq-group { margin: 2rem 0 0.4rem; font-size: 0.875rem; font-weight: 600; letter-spacing: 0.04em; color: var(--muted); }   /* よくある質問の区分の見出し（020） */
.doc h2 + .faq-group { margin-top: 0.75rem; }
.faq { margin: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  padding: 0.85rem 2rem 0.85rem 0;
  font-weight: 600;
  line-height: 1.6;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 0.35rem;
  top: 1.2rem;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: translate(0, 0.25rem) rotate(-135deg); }
.faq .answer { padding: 0 0 1rem; }
.faq .answer p { margin: 0 0 0.5rem; }
.soon { margin: 1.5rem 0 0; padding: 1.25rem; border: 1px dashed var(--line); border-radius: 18px; color: var(--muted); }
.soon p { margin: 0 0 0.35rem; }

/* 下 */
footer { margin-top: 3.5rem; font-size: 0.875rem; color: var(--muted); }
.footnav { display: flex; flex-wrap: wrap; gap: 0 1.25rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.footnav a { display: inline-block; padding: 0.35rem 0; color: var(--muted); }
.lang-tag { margin-left: 0.3rem; font-size: 0.6875rem; letter-spacing: 0.06em; }
.footlangs { margin: 0 0 1.25rem; }
.rule { height: 0; margin: 0 0 1.25rem; border-top: 1px solid var(--line); }
.co { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 0.85rem; }
.co-mark { display: block; flex: none; width: 30px; }
.co-mark > svg { display: block; width: 100%; height: auto; filter: var(--co-shadow); }
.co-word { display: block; height: 18px; width: auto; }
/* 会社のアイコンが飛んできて収まる動き（トップだけ。motion.js が html に co-wait を付けたときだけ、本物を隠して待つ）
   スクリプトが動かないとき・動きを減らす設定のときは、いつもどおり最初から見えている */
.co-wait .co > .co-mark { opacity: 0; }
.co-fly { position: absolute; z-index: 5; margin: 0; pointer-events: none; }
.co-fly > svg { transform-origin: 50% 100%; }
.co-word path { fill: var(--brand); }
footer p { margin: 0 0 0.25rem; }
footer a { color: var(--muted); }
.notice { margin-top: 1.25rem; font-size: 0.75rem; line-height: 1.6; }
.copyright { margin-top: 0.75rem; }

/* 会社のアイコンと hibidori のアイコンは、端末の表示に合わせて絵を切り替える */
.co-tile-white { display: none; }
.v-night { display: none; }
@media (prefers-color-scheme: dark) {
  .co-tile-deep { display: none; }
  .co-tile-white { display: inline; }
  .v-day { display: none; }
  .v-night { display: inline; }
}

@media print {
  :root { --bg: #fff; --ink: #000; --muted: #333; --ink-soft: #1a1a1a; --line: #999; --card: #fff; --brand: #062d34; }
  .langs, .footlangs { display: none !important; }
  .co-mark > svg { filter: none; }
  .co-wait .co > .co-mark { opacity: 1 !important; }
  .co-fly { display: none !important; }
  .co-tile-deep { display: inline !important; }
  .co-tile-white { display: none !important; }
  .v-day { display: inline !important; }
  .v-night { display: none !important; }
  .page { max-width: 34rem; padding-top: 0; }
  .plan, .contact { break-inside: avoid; }
  .feature summary::after, .maker-fold > summary::after { display: none; }   /* 印刷では、motion.js ができることと作った人からを全部開く */
  footer a[href^="https:"]::after { content: "（" attr(href) "）"; }
}
