/* あきこ ポートフォリオサイト 共通のスタイル
   色の決まり：白・黒・グレーが基本。アクセントはピンク1色。文字はすべて黒。 */
:root {
  --ink: #111;
  --pink: #E8789E;
  --pink-soft: #FCE4EE;
  --line: #D9D9D9;
  --gray: #F4F4F4;
  --white: #fff;
  --draft: #FFF1A6;
  --radius: 14px;
  --wrap: 1080px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--white); color: var(--ink);
  font-family: "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 17px; line-height: 1.8; font-weight: 400;
}
img, video { max-width: 100%; display: block; }
a { color: var(--ink); }
b, strong { font-weight: 700; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.section { padding: 64px 0; }
.section.gray { background: var(--gray); }
.section.pink { background: var(--pink-soft); }
h1 { font-size: clamp(30px, 6vw, 52px); line-height: 1.3; font-weight: 700; }
h2 { font-size: clamp(24px, 4vw, 34px); line-height: 1.4; font-weight: 700; margin-bottom: 24px; }
h2 .bar { display: inline-block; width: 8px; height: 1em; background: var(--pink); border-radius: 4px; margin-right: 12px; vertical-align: -0.12em; }
h3 { font-size: 20px; line-height: 1.5; font-weight: 700; margin-bottom: 8px; }
.lead { font-size: 19px; }
.nw { display: inline-block; }
.mark { background: linear-gradient(transparent 60%, var(--pink-soft) 60%); font-weight: 700; }
.pink-line { background: linear-gradient(transparent 62%, var(--pink) 62%); }

/* ---- 原型のしるし（公開前に外す） ---- */
.proto-note {
  background: var(--draft); border-bottom: 1px solid #E6CF4F;
  font-size: 14px; line-height: 1.6; padding: 8px 16px; text-align: center;
}
.draft { background: linear-gradient(transparent 55%, var(--draft) 55%); }
.blank { background: var(--draft); padding: 0 4px; border-radius: 4px; font-weight: 700; }

/* ---- ボタン ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 28px; border-radius: 999px;
  font-size: 17px; font-weight: 700; text-decoration: none; cursor: pointer;
  background: var(--pink); color: var(--ink); border: 2px solid var(--pink);
}
.btn.ghost { background: var(--white); border-color: var(--ink); }
.btn.small { min-height: 40px; padding: 6px 18px; font-size: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- カード ---- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card.pink { background: var(--pink-soft); border-color: var(--pink-soft); }
.card.gray { background: var(--gray); border-color: var(--gray); }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.num {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 34px; height: 34px; border-radius: 50%; background: var(--pink);
  font-weight: 700; font-size: 16px; margin-right: 10px;
}
.dot-list { list-style: none; }
.dot-list li { position: relative; padding-left: 20px; margin: 4px 0; }
.dot-list li::before { content: ""; position: absolute; left: 2px; top: 0.75em; width: 9px; height: 9px; border-radius: 50%; background: var(--pink); }
.tag { display: inline-block; font-size: 14px; font-weight: 700; border: 1.5px solid var(--pink); border-radius: 999px; padding: 0 12px; background: var(--white); }
.price { font-size: 26px; font-weight: 700; line-height: 1.3; }
.price small { font-size: 15px; font-weight: 700; }
.note { font-size: 15px; }

/* ---- プロフィール写真 ---- */
.avatar { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; object-position: 40% 45%; border: 6px solid var(--white); background: var(--white); }

/* ---- スマホの枠に入れた縦型動画 ---- */
.phones { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.phone { background: var(--ink); border-radius: 30px; padding: 10px; }
.phone video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 22px; background: #333; }
.phone-cap { margin-top: 10px; font-size: 15px; line-height: 1.6; }
.phone-cap b { font-size: 16px; }
@media (max-width: 720px) {
  .phones { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 70%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .phones > * { scroll-snap-align: start; }
}

/* ---- 数字 ---- */
.stats { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.stat { background: var(--white); border-radius: var(--radius); padding: 20px; border: 1px solid var(--line); }
.stat .big { font-size: 38px; font-weight: 700; line-height: 1.2; }
.stat .big small { font-size: 18px; }

/* ---- 資料のページ一覧（押すと大きく見られる） ---- */
.pages { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pages button { border: 1px solid var(--line); border-radius: 8px; padding: 0; background: var(--white); cursor: zoom-in; overflow: hidden; }
.pages img { width: 100%; aspect-ratio: 297 / 210; object-fit: cover; }
.pages.wide { grid-template-columns: 1fr; }
.pages.wide img { aspect-ratio: 1123 / 631; object-fit: contain; }
@media (max-width: 560px) { .pages { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
dialog.viewer { border: none; padding: 0; background: transparent; max-width: 96vw; margin: auto; }
dialog.viewer::backdrop { background: rgba(0, 0, 0, 0.72); }
.viewer-inner { background: var(--white); border-radius: 12px; padding: 12px; }
.viewer-inner img { max-height: 78vh; width: auto; margin: 0 auto; }
.viewer-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }

/* ---- 年表 ---- */
.timeline { list-style: none; border-left: 3px solid var(--pink); margin-left: 8px; }
.timeline li { position: relative; padding: 0 0 18px 22px; }
.timeline li::before { content: ""; position: absolute; left: -10px; top: 0.45em; width: 16px; height: 16px; border-radius: 50%; background: var(--white); border: 3px solid var(--pink); }
.timeline .when { font-weight: 700; }

/* ---- 流れ ---- */
.steps { list-style: none; counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: flex; gap: 14px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.steps li::before { content: counter(s); flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--pink); display: flex; align-items: center; justify-content: center; font-weight: 700; }

/* ---- 条件の表 ---- */
.terms { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; }
.terms th, .terms td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.terms th { width: 34%; background: var(--pink-soft); font-weight: 700; }
@media (max-width: 560px) { .terms th, .terms td { display: block; width: 100%; } .terms th { border-bottom: none; padding-bottom: 4px; } }

/* ---- よくある質問 ---- */
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 12px; }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; padding-right: 28px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; position: absolute; right: 0; top: 0; }
.faq details[open] summary::after { content: "－"; }
.faq details p { margin-top: 10px; }

/* ---- 相談 ---- */
.contact-box { background: var(--pink-soft); border-radius: 24px; padding: 40px 24px; text-align: center; }
.contact-box .btn-row { justify-content: center; margin-top: 20px; }

/* ---- 下のバー・フッター ---- */
.footer { padding: 32px 0 96px; font-size: 15px; text-align: center; border-top: 1px solid var(--line); }
.sticky-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 20; display: none; }
.sticky-cta .btn { width: 100%; box-shadow: 0 6px 20px rgba(0,0,0,0.18); }
@media (max-width: 720px) { .sticky-cta { display: block; } }

/* ---- 上のメニュー ---- */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,0.96); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.nav .logo { font-weight: 700; font-size: 18px; text-decoration: none; }
.nav ul { list-style: none; display: flex; gap: 20px; font-size: 15px; font-weight: 700; }
.nav ul a { text-decoration: none; }
@media (max-width: 860px) { .nav ul { display: none; } }
