/* 起業ママのわたし専属AIの教科書 共通スタイル
   2026-11-14：参考サイトの雰囲気（丸ゴシック太め・ターコイズ×水色・3色の差し色・太い枠の角丸カード）に寄せた版
   色はここ（:root）だけで管理。変えるときはここを書きかえる */
:root {
  --ink: #251e1c;        /* 文字 */
  --ink-soft: #5c5350;   /* うすい文字 */
  --teal: #2cb3b9;       /* 主役 */
  --teal-dark: #1f9298;
  --teal-pale: #d0eaef;  /* うすい水色の面 */
  --mustard: #ddc071;    /* 差し色① */
  --pink: #dba2a0;       /* 差し色② */
  --blue: #6e87c1;       /* 差し色③ */
  --yellow: #fff25f;     /* 目立たせたいボタン */
  --white: #ffffff;
  --line: #e4eef0;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;
  font-weight: 500;
  line-height: 1.9;
  font-size: 16px;
}
a { color: var(--teal-dark); }
b, strong { font-weight: 700; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* ヘッダー */
.top-bar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  position: sticky; top: 0; z-index: 10;
}
.top-bar a {
  text-decoration: none; color: var(--ink); font-weight: 700; font-size: 14px;
  display: inline-flex; align-items: center; gap: 10px;
}
.top-bar a::before {
  content: "AI"; flex: none;
  width: 34px; height: 34px; border: 2px solid var(--ink); border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 900; letter-spacing: .05em;
  background: linear-gradient(transparent 70%, var(--pink) 70%, var(--pink) 82%, transparent 82%);
}

/* ファーストビュー */
.hero { padding: 40px 16px 28px; }
.hero .eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .15em;
  color: var(--white); background: var(--teal); border-radius: 99px; padding: 2px 14px;
}
.hero h1 {
  font-size: clamp(26px, 6.4vw, 42px); font-weight: 900; line-height: 1.45;
  letter-spacing: .04em; margin: 14px 0 14px;
}
.hero p { margin: 0; color: var(--ink-soft); font-weight: 700; }
.hero .accent { color: var(--teal); }
.hero .lead { font-size: clamp(17px, 4.2vw, 22px); font-weight: 900; letter-spacing: .06em; color: var(--ink); margin-bottom: 4px; }
.c-mustard { color: var(--mustard); }
.c-pink { color: var(--pink); }
.c-blue { color: var(--blue); }

/* 見出し：小さな英字ラベル＋大きな日本語 */
h2 {
  font-size: clamp(22px, 5.4vw, 28px); font-weight: 900; letter-spacing: .1em;
  text-align: center; line-height: 1.5;
  margin: 64px 0 22px;
}
h2 .en {
  display: block; font-size: 13px; letter-spacing: .14em; color: var(--teal);
  font-weight: 900; margin-bottom: 2px;
}
h3 {
  font-size: 18px; font-weight: 900; margin: 30px 0 10px;
  display: flex; align-items: center; gap: 8px;
}
h3::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); flex: none;
}

/* カード・箱 */
.card {
  background: var(--white);
  border: 3px solid var(--teal);
  border-radius: 22px;
  padding: 20px 22px;
  margin: 18px 0;
}
.box-beige {
  background: var(--teal-pale);
  border-radius: 22px;
  padding: 20px 22px;
  margin: 18px 0;
}
.box-me {
  position: relative;
  background: var(--white);
  border: 3px solid var(--teal-pale);
  border-radius: 22px;
  padding: 26px 22px 18px;
  margin: 30px 0 20px;
  font-size: 15px;
}
.box-me .label {
  position: absolute; top: -15px; left: 18px;
  background: var(--teal); color: var(--white);
  font-weight: 900; font-size: 13px; letter-spacing: .08em;
  padding: 3px 16px; border-radius: 99px;
}
.box-point {
  border: 3px solid var(--mustard);
  border-radius: 22px;
  padding: 0 22px 18px;
  margin: 28px 0;
  overflow: hidden;
}
.box-point .label {
  display: block; margin: 0 -22px 12px;
  background: var(--mustard); color: var(--white);
  text-align: center; font-weight: 900; font-size: 15px; letter-spacing: .12em;
  padding: 8px 0;
}
.box-point .label + br { display: none; }

/* 地図（ロード） */
.road { list-style: none; padding: 0; margin: 20px 0; position: relative; }
.road::before {
  content: ""; position: absolute; left: 23px; top: 10px; bottom: 10px;
  border-left: 3px dotted var(--teal);
}
.road li { position: relative; padding: 0 0 20px 64px; }
.road .num {
  position: absolute; left: 0; top: 0;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--teal); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 16px;
  box-shadow: 0 0 0 4px var(--white);
}
.road .num.soon { background: var(--teal-pale); color: var(--teal-dark); }
.road a.title, .road span.title { font-weight: 900; font-size: 17px; text-decoration: none; color: var(--ink); }
.road a.title::after { content: " ›"; color: var(--teal); }
.road p { margin: 2px 0 0; font-size: 14px; color: var(--ink-soft); }

/* タグ */
.tag {
  display: inline-block; font-size: 11px; font-weight: 900; letter-spacing: .06em;
  padding: 1px 10px; border-radius: 99px; margin-left: 6px; vertical-align: 2px;
}
.tag.open { background: var(--teal); color: var(--white); }
.tag.soon { background: var(--teal-pale); color: var(--teal-dark); }

/* レシピ棚：色ちがいの帯つきカード */
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.shelf .card { margin: 0; padding: 0 18px 16px; font-size: 14px; overflow: hidden; }
.shelf .card b {
  display: block; margin: 0 -18px 10px; padding: 8px 12px;
  color: var(--white); text-align: center; font-size: 15px; letter-spacing: .06em;
}
.shelf .card:nth-child(3n+1) { border-color: var(--mustard); }
.shelf .card:nth-child(3n+1) b { background: var(--mustard); }
.shelf .card:nth-child(3n+2) { border-color: var(--pink); }
.shelf .card:nth-child(3n+2) b { background: var(--pink); }
.shelf .card:nth-child(3n) { border-color: var(--blue); }
.shelf .card:nth-child(3n) b { background: var(--blue); }

/* コード・テンプレ */
pre {
  background: #f4fafb;
  border: 2px dashed var(--teal);
  border-radius: 16px;
  padding: 16px 18px;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
}
code { font-family: "SFMono-Regular", Menlo, monospace; }
p code, li code { background: var(--teal-pale); color: var(--ink); padding: 1px 7px; border-radius: 6px; font-size: 14px; }

/* 表：見出しは水色の丸ラベル風 */
table { width: 100%; border-collapse: separate; border-spacing: 0 8px; font-size: 14.5px; margin: 10px 0; }
th, td { padding: 8px 10px; text-align: left; vertical-align: top; }
th {
  background: var(--teal); color: var(--white); font-size: 13px; font-weight: 900; letter-spacing: .05em;
}
th:first-child { border-radius: 99px 0 0 99px; }
th:last-child { border-radius: 0 99px 99px 0; }
th:only-child { border-radius: 99px; }
td { border-bottom: 1px dashed var(--teal-pale); }
td:first-child { font-weight: 700; }

/* チェックリスト */
ul.check { list-style: none; padding: 0; }
ul.check li { padding-left: 32px; position: relative; margin: 8px 0; }
ul.check li::before {
  content: "✓"; position: absolute; left: 0; top: 4px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--teal); color: var(--white);
  font-size: 13px; font-weight: 900; line-height: 22px; text-align: center;
}

/* 章の目次 */
.toc { font-size: 14.5px; }
.toc > b { color: var(--teal-dark); letter-spacing: .06em; }
.toc ol { margin: 4px 0; padding-left: 22px; }

/* 章送り：丸いボタン */
.pager { display: flex; justify-content: center; gap: 12px; margin: 56px 0 24px; flex-wrap: wrap; }
.pager a {
  flex: 1 1 220px; max-width: 340px; text-decoration: none; position: relative;
  border: 3px solid var(--teal); color: var(--teal-dark); border-radius: 99px;
  padding: 12px 20px; text-align: center; font-weight: 900; font-size: 14px; letter-spacing: .04em;
}
.pager a.next { background: var(--teal); color: var(--white); }

/* フッター：ターコイズの帯 */
footer {
  background: var(--teal);
  color: var(--white);
  text-align: center;
  padding: 40px 16px 32px;
  font-size: 13px;
  margin-top: 64px;
}
footer .motto { font-weight: 900; font-size: clamp(18px, 4.6vw, 22px); letter-spacing: .1em; margin-bottom: 14px; }
footer .motto::before { content: "＼ "; }
footer .motto::after { content: " ／"; }

@media (max-width: 480px) {
  .card, .box-beige { padding: 16px; }
  .box-me { padding: 24px 16px 16px; }
  .box-point { padding: 0 16px 16px; }
  .box-point .label { margin: 0 -16px 12px; }
  th, td { padding: 7px 6px; }
  footer .motto::before, footer .motto::after { content: none; }
}

/* ===== レシピのページ ===== */
.recipe-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.recipe-meta li {
  background: var(--teal-pale); border-radius: 99px; padding: 3px 14px;
  font-size: 13px; font-weight: 700;
}
.recipe-meta li b { color: var(--teal-dark); margin-right: 4px; }
.dekiagari {
  border: 3px solid var(--pink); border-radius: 22px; overflow: hidden; margin: 24px 0;
}
.dekiagari .label {
  display: block; background: var(--pink); color: var(--white); text-align: center;
  font-weight: 900; letter-spacing: .12em; padding: 8px 0;
}
.dekiagari .body { padding: 14px 22px 16px; }
ol.steps { list-style: none; padding: 0; margin: 0; counter-reset: st; }
ol.steps > li {
  counter-increment: st; position: relative;
  padding: 0 0 26px 58px; margin: 0;
}
ol.steps > li::before {
  content: counter(st); position: absolute; left: 0; top: -2px;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--blue); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 18px;
}
ol.steps > li::after {
  content: ""; position: absolute; left: 20px; top: 44px; bottom: 6px;
  border-left: 3px dotted var(--teal-pale);
}
ol.steps > li:last-child::after { display: none; }
ol.steps > li > b:first-child { display: block; font-size: 17px; font-weight: 900; margin-bottom: 4px; }
ol.steps pre { margin: 10px 0 4px; }
.shelf a.card { display: block; text-decoration: none; color: var(--ink); transition: transform .15s; }
.shelf a.card:hover { transform: translateY(-3px); }

/* コピーボタン（copy.js） */
.copy-wrap { position: relative; }
.copy-wrap pre { padding-top: 44px; }
.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: .06em;
  color: #fff;
  background: var(--teal);
  border: 0;
  border-radius: 99px;
  padding: 5px 14px;
  cursor: pointer;
  line-height: 1.6;
}
.copy-btn:hover { background: var(--teal-dark); }
.copy-btn.done { background: var(--ink); }

/* 準備ページ（junbi.html） */
.why { display: flex; align-items: stretch; gap: 10px; margin: 18px 0; }
.why-item { flex: 1; border: 3px solid var(--teal-pale); border-radius: 22px; padding: 16px 18px; font-size: 14.5px; }
.why-item p { margin: 6px 0 0; }
.why-item.is-main { border-color: var(--teal); }
.why-tag { display: inline-block; background: var(--teal-pale); color: var(--teal-dark); font-weight: 900; font-size: 13px; padding: 2px 12px; border-radius: 99px; }
.why-item.is-main .why-tag { background: var(--teal); color: var(--white); }
.why-arrow { align-self: center; color: var(--teal); font-weight: 900; font-size: 22px; }
@media (max-width: 560px) {
  .why { flex-direction: column; }
  .why-arrow { transform: rotate(90deg); }
}

.os-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0 8px; }
.os-switch-label { font-weight: 900; font-size: 14px; margin-right: 4px; }
.os-switch button {
  font: inherit; font-weight: 900; font-size: 14px; cursor: pointer;
  border: 3px solid var(--teal); background: var(--white); color: var(--teal-dark);
  border-radius: 99px; padding: 4px 18px;
}
.os-switch button[aria-pressed="true"] { background: var(--teal); color: var(--white); }
[hidden] { display: none !important; }

.step { border: 3px solid var(--teal); border-radius: 22px; overflow: hidden; margin: 18px 0; }
.step-head { background: var(--teal-pale); padding: 10px 18px; font-weight: 900; font-size: 17px; }
.step-num {
  display: inline-block; background: var(--teal); color: var(--white);
  font-size: 12px; letter-spacing: .1em; padding: 2px 12px; border-radius: 99px;
  margin-right: 10px; vertical-align: 2px;
}
.step-body { padding: 14px 20px 6px; font-size: 15px; }
.step-body ol { padding-left: 22px; margin: 0 0 12px; }
.step-body p { margin: 0 0 12px; }
.stumble {
  background: #fdf6e3; border-left: 5px solid var(--mustard); border-radius: 12px;
  padding: 10px 14px; margin: 0 0 14px; font-size: 14px;
}
.stumble > b:first-child { display: block; color: #a8892e; font-size: 13px; letter-spacing: .08em; }

.ops { display: grid; gap: 10px; margin: 18px 0; }
.op { display: flex; gap: 14px; align-items: flex-start; border: 3px solid var(--teal-pale); border-radius: 18px; padding: 12px 16px; font-size: 14.5px; }
.op-num, .sos-num {
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: var(--blue); color: var(--white); font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.sos { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 18px 0; }
.sos-item { border: 3px solid var(--pink); border-radius: 18px; padding: 14px 16px; font-size: 14.5px; }
.sos-item .sos-num { background: var(--pink); margin-bottom: 6px; }
.sos-item b { font-size: 16px; }
.sos-item p { margin: 4px 0 0; }

/* ダウンロードボタン */
.dl-btn {
  display: inline-block; margin: 0 0 14px;
  background: var(--yellow); color: var(--ink); text-decoration: none;
  font-weight: 900; font-size: 15px; letter-spacing: .06em;
  border: 3px solid var(--ink); border-radius: 99px; padding: 8px 22px;
}
.dl-btn:hover { transform: translateY(-2px); }

/* 章の中のステップの区切り（ch3） */
.stage {
  margin: 56px 0 8px; padding: 18px 22px 16px; border-radius: 22px;
  background: var(--teal); color: var(--white); scroll-margin-top: 70px;
}
.stage-num {
  display: inline-block; background: var(--white); color: var(--teal-dark);
  font-weight: 900; font-size: 12px; letter-spacing: .12em; padding: 2px 12px; border-radius: 99px;
}
.stage-title { font-weight: 900; font-size: clamp(22px, 5.4vw, 28px); letter-spacing: .06em; margin: 6px 0 2px; }
.stage p { margin: 0; font-size: 14.5px; font-weight: 700; }

/* ひらくと出る（details） */
details.more { border: 3px solid var(--teal-pale); border-radius: 18px; margin: 14px 0; background: var(--white); }
details.more > summary {
  cursor: pointer; list-style: none; padding: 12px 18px; font-weight: 900; font-size: 15px; color: var(--teal-dark);
}
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: "＋"; display: inline-block; width: 1.4em; color: var(--teal); }
details.more[open] > summary::before { content: "－"; }
details.more > *:not(summary) { margin-left: 18px; margin-right: 18px; }
details.more > *:last-child { margin-bottom: 16px; }
details.more ul, details.more ol { font-size: 14.5px; }
details.more li { margin: 6px 0; }

/* 流れ図（ch3） */
.flow { display: grid; gap: 6px; margin: 18px 0 24px; text-align: center; }
.flow-item { border: 3px solid var(--teal-pale); border-radius: 18px; padding: 10px 14px; font-weight: 900; }
.flow-item span { font-weight: 500; font-size: 13.5px; color: var(--ink-soft); }
.flow-item.is-goal { border-color: var(--mustard); background: #fdf6e3; }
.flow-arrow { font-size: 13px; font-weight: 700; color: var(--teal-dark); }

/* ===== frontend-design お試し（2026-12-02）：トップページ ===== */
:focus-visible { outline: 3px solid var(--teal-dark); outline-offset: 3px; border-radius: 6px; }
.home .wrap { max-width: 880px; }

.fd-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding-top: 48px; padding-bottom: 40px; }
.fd-hero h1 { font-size: clamp(28px, 4.4vw, 40px); font-weight: 900; line-height: 1.45; letter-spacing: .03em; margin: 0 0 16px; }
.fd-hero-text p { margin: 0 0 24px; color: var(--ink-soft); font-weight: 700; }
.fd-start {
  display: inline-block; background: var(--teal); color: var(--white); text-decoration: none;
  font-weight: 900; letter-spacing: .04em; padding: 12px 26px; border-radius: 99px;
}
.fd-start:hover { background: var(--teal-dark); }

/* 時間割：このページでいちばん目立たせる所 */
.fd-day {
  margin: 0; background: var(--white); border: 2px solid var(--ink); border-radius: 14px;
  padding: 18px 20px 10px;
}
.fd-hero h1 span { display: inline-block; }
.fd-day figcaption { font-weight: 900; font-size: 14px; color: var(--teal-dark); margin-bottom: 8px; }
.fd-day ol { list-style: none; margin: 0; padding: 0; }
.fd-day li { display: grid; grid-template-columns: 52px 1fr; gap: 10px; padding: 8px 0; border-top: 1px dashed var(--teal-pale); }
.fd-day li:first-child { border-top: 0; }
.fd-day time { font-weight: 900; font-size: 14px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.fd-day span { font-size: 13.5px; line-height: 1.6; color: var(--ink-soft); }
.fd-day span b { display: block; font-size: 15px; color: var(--ink); }
.fd-day li.is-mine { background: #fbf3dc; margin: 6px -20px 0; padding: 12px 20px; border-top: 0; border-radius: 0 0 12px 12px; }
.fd-day li.is-mine time { color: #9a7a1f; }
.fd-day li.is-mine b { font-size: 18px; }

.fd-hello { border-left: 4px solid var(--teal); padding: 2px 0 2px 20px; margin: 16px 0 0; max-width: 40em; }
.fd-hello p { margin: 0 0 10px; }

.fd-h2 { text-align: left; letter-spacing: .04em; font-size: clamp(22px, 4.6vw, 28px); margin: 64px 0 18px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.fd-note { margin: -6px 0 14px; color: var(--ink-soft); font-size: 15px; }

.fd-howto { list-style: none; padding: 0; margin: 0; }
.fd-howto li { padding: 10px 0; border-bottom: 1px dashed var(--teal-pale); }
.fd-howto li b { display: block; }

/* 章の地図：順番があるので番号を残す */
.fd-map { list-style: none; padding: 0; margin: 0; }
.fd-map a {
  display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; align-items: baseline;
  text-decoration: none; color: var(--ink); padding: 14px 8px; border-bottom: 1px solid var(--line); border-radius: 10px;
}
.fd-map a:hover { background: #f4fafb; }
.fd-map .n { grid-row: span 2; font-size: 36px; font-weight: 900; color: var(--teal); line-height: 1; text-align: center; }
.fd-map .n-text { font-size: 18px; }
.fd-map b { font-size: 18px; }
.fd-map .d { grid-column: 2; font-size: 14px; color: var(--ink-soft); }

/* レシピ・困ったとき：手順書の目次のような一覧 */
.fd-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
.fd-list a { display: block; text-decoration: none; color: var(--ink); padding: 12px 0; border-bottom: 1px solid var(--line); }
.fd-list a:hover b { color: var(--teal-dark); text-decoration: underline; }
.fd-list b { display: block; font-size: 16px; }
.fd-list span { font-size: 14px; color: var(--ink-soft); }
.fd-list-quiet b { font-size: 15px; }

@media (max-width: 720px) {
  .fd-hero { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; }
  .fd-list { grid-template-columns: 1fr; }
  .fd-map .n { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
