/* ともしび ポートフォリオサイト（原型）共通の見た目
   色とフォントは .claude/skills/資料作成 の「私の好みの見た目」：白・黒・淡いピンク＋ミルクティー色 */

:root {
  --ink: #111111;
  --white: #ffffff;
  --pink: #ffe5e8;       /* 背景・箱・タグの地 */
  --line: #ffd2d6;       /* うすい線 */
  --line-strong: #f2a7b0;/* 点線・図形の2色目 */
  --accent: #a17b62;     /* 差し色（文字） */
  --accent-shape: #c8a78d;/* 差し色（図形） */
  --font: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  --r-lg: 22px;
  --r-md: 16px;
  --wrap: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; color: var(--ink); background: var(--white);
  font-family: var(--font); font-size: 16px; line-height: 1.85;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding-left: 1.3em; }
em { font-style: normal; color: var(--accent); font-weight: 700; }
.ph { display: inline-block; } /* 言葉の切れ目で改行させる */

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 88px 0; }
.section.tint { background: var(--pink); }
.section + .section:not(.tint) { border-top: 2px dashed var(--line); }
.tint + .section, .section + .tint { border-top: 0; }

.kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--accent); margin-bottom: 8px; }
.h2 { font-size: clamp(24px, 3.4vw, 34px); line-height: 1.45; font-weight: 900; text-wrap: balance; }
.lead { margin-top: 14px; max-width: 46em; }
.h3 { font-size: 19px; line-height: 1.5; font-weight: 700; }
.small { font-size: 14px; line-height: 1.75; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ヘッダー */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94); backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 20px; letter-spacing: .06em; }
.brand img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--pink); }
.brand small { display: block; font-size: 11px; font-weight: 500; letter-spacing: .04em; line-height: 1.2; white-space: nowrap; }
.nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: nowrap; overflow-x: auto; }
.nav a { text-decoration: none; font-size: 14px; font-weight: 700; padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
.nav a:hover { background: var(--pink); }
.nav a.cta { background: var(--ink); color: var(--white); }
@media (max-width: 760px) {
  .nav a:not(.cta) { display: none; }
}

/* ボタン */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 15px;
  text-decoration: none; border: 2px solid var(--ink); background: var(--ink); color: var(--white);
  cursor: pointer; font-family: inherit; line-height: 1.4;
}
.btn.ghost { background: var(--white); color: var(--ink); }
.btn.soft { background: var(--pink); border-color: var(--pink); color: var(--ink); }
.btn:hover { opacity: .85; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* タグ・ラベル */
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--pink); color: var(--accent); line-height: 1.6; }
.tag.line { background: var(--white); border: 1.5px solid var(--line-strong); color: var(--ink); }
.tag.dark { background: var(--ink); color: var(--white); }

/* 箱 */
.card { background: var(--white); border: 2px solid var(--line); border-radius: var(--r-md); padding: 24px; }
.tint .card { border-color: var(--white); }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } .section { padding: 64px 0; } }

/* ページの縮小画像 */
.thumb { border-radius: 10px; border: 1.5px solid var(--line); overflow: hidden; background: var(--white); }
.thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; }
.thumb.a4 img { aspect-ratio: 297 / 210; }
button.thumb, a.thumb { padding: 0; cursor: zoom-in; display: block; width: 100%; text-decoration: none; font: inherit; color: inherit; }
button.thumb:hover, a.thumb:hover { border-color: var(--line-strong); }

/* 目盛り（できることの度合い） */
.scale { display: inline-flex; gap: 3px; vertical-align: middle; }
.scale i { width: 14px; height: 8px; border-radius: 4px; background: var(--line); }
.scale i.on { background: var(--accent-shape); }

/* 頼める仕事 */
.svc { display: grid; gap: 10px; align-content: start; }
.svc .pos { font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: .1em; }
.svc dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 14px; line-height: 1.7; margin-top: 4px; }
.svc dt { font-weight: 700; white-space: nowrap; }

/* 強み */
.strength { display: grid; grid-template-columns: 48px 1fr; gap: 4px 14px; align-items: start; }
.strength .no { grid-row: span 2; width: 48px; height: 48px; border-radius: 50%; background: var(--pink); color: var(--accent); font-weight: 900; display: grid; place-items: center; font-size: 18px; }
.tint .strength .no { background: var(--white); }
.strength p { font-size: 14px; line-height: 1.75; }

/* 流れ */
.flow { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 14px; }
.flow > li { counter-increment: step; position: relative; padding: 18px 20px 18px 70px; background: var(--white); border-radius: var(--r-md); border: 2px solid var(--line); }
.flow > li::before { content: counter(step); position: absolute; left: 18px; top: 16px; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--white); font-weight: 900; display: grid; place-items: center; }
.flow .feel { display: block; font-size: 13px; color: var(--accent); font-weight: 700; margin-top: 4px; }

/* できないこと＋代わり */
.alt { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; }
.alt .no-do, .alt .instead { padding: 14px 16px; border-radius: 12px; font-size: 14px; line-height: 1.7; }
.alt .no-do { background: var(--white); border: 2px dashed var(--line-strong); }
.alt .instead { background: var(--white); border: 2px solid var(--accent-shape); }
.alt .arrow { color: var(--accent); font-weight: 900; }
@media (max-width: 640px) { .alt { grid-template-columns: 1fr; } .alt .arrow { transform: rotate(90deg); justify-self: center; } }

/* 経歴の帯 */
.career-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; margin: 18px 0 14px; }
.career-bar span:nth-child(1) { background: var(--accent-shape); }
.career-bar span:nth-child(2) { background: var(--line-strong); }
.career-bar span:nth-child(3) { background: var(--line); }

/* 年表 */
.timeline { list-style: none; padding: 0; border-left: 2px dashed var(--line-strong); margin-left: 8px; }
.timeline li { position: relative; padding: 0 0 16px 22px; font-size: 15px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 9px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent-shape); }
.timeline time { display: block; font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: .06em; }

/* 相談の入り口 */
.contact-box { background: var(--white); border-radius: var(--r-lg); border: 2px solid var(--line); padding: 32px; }
.checklist { list-style: none; padding: 0; display: grid; gap: 8px; }
.checklist li { padding-left: 30px; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 5px; border: 2px solid var(--accent-shape); }

/* よくある質問 */
details.faq { background: var(--white); border-radius: 12px; border: 2px solid var(--line); padding: 14px 18px; }
details.faq + details.faq { margin-top: 10px; }
details.faq summary { font-weight: 700; cursor: pointer; }
details.faq p { margin-top: 8px; font-size: 15px; }

/* フッター */
.site-footer { background: var(--ink); color: var(--white); padding: 40px 0; font-size: 13px; }
.site-footer .wrap { display: grid; gap: 8px; }
.site-footer a { color: var(--white); }

/* ===== 原型だけに出すメモ（公開前に消す） ===== */
.memo {
  display: block; margin: 12px 0; padding: 10px 14px 10px 14px;
  border: 2px dashed var(--accent-shape); border-radius: 12px; background: #fffdfb;
  font-size: 13px; line-height: 1.7; color: var(--ink);
}
.memo::before { content: "原型メモ"; display: inline-block; margin-right: 8px; font-size: 11px; font-weight: 700; color: var(--white); background: var(--accent); padding: 1px 8px; border-radius: 999px; }
.memo.inline { display: inline-block; margin: 0 4px; padding: 2px 8px; }
.tbd { background: var(--pink); border-bottom: 2px dashed var(--accent-shape); padding: 0 4px; border-radius: 4px; }
body.hide-memo .memo { display: none !important; }
.memo-toggle {
  position: fixed; right: 14px; bottom: 14px; z-index: 80;
  font: 700 13px var(--font); padding: 10px 14px; border-radius: 999px;
  background: var(--accent); color: var(--white); border: 0; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.15);
}
.proto-bar { background: var(--ink); color: var(--white); font-size: 12px; text-align: center; padding: 6px 12px; }
.proto-bar a { color: var(--white); font-weight: 700; }

/* ===== 見本ビューア（拡大表示） ===== */
.viewer { position: fixed; inset: 0; z-index: 100; background: rgba(17,17,17,.88); display: none; }
.viewer.open { display: grid; grid-template-rows: auto 1fr auto; }
.viewer .v-top { display: flex; align-items: center; gap: 12px; padding: 12px 16px; color: var(--white); font-size: 14px; }
.viewer .v-top .v-count { margin-left: auto; font-variant-numeric: tabular-nums; }
.viewer .v-close { background: var(--white); color: var(--ink); border: 0; border-radius: 999px; padding: 8px 16px; font: 700 14px var(--font); cursor: pointer; }
.viewer .v-body { display: grid; grid-template-columns: 1fr minmax(240px, 320px); gap: 16px; padding: 0 16px; min-height: 0; }
.viewer .v-body.no-notes { grid-template-columns: 1fr; }
.viewer .v-stage { display: grid; place-items: center; min-height: 0; }
.viewer .v-stage img { max-height: calc(100vh - 150px); width: auto; max-width: 100%; border-radius: 10px; background: var(--white); }
.viewer .v-notes { background: var(--white); border-radius: var(--r-md); padding: 18px; overflow: auto; max-height: calc(100vh - 150px); align-self: center; }
.viewer .v-notes h4 { font-size: 13px; color: var(--accent); letter-spacing: .1em; margin-bottom: 8px; }
.viewer .v-notes ol { padding-left: 1.2em; display: grid; gap: 8px; font-size: 14px; line-height: 1.7; }
.viewer .v-bottom { display: flex; justify-content: center; gap: 10px; padding: 12px; }
.viewer .v-bottom button { background: var(--white); border: 0; border-radius: 999px; padding: 10px 20px; font: 700 14px var(--font); cursor: pointer; }
.viewer .v-bottom button:disabled { opacity: .35; cursor: default; }
@media (max-width: 760px) {
  .viewer .v-body { grid-template-columns: 1fr; overflow: auto; }
  .viewer .v-notes { max-height: none; }
}

/* 動きを減らしたい人向け */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ===== 直す前・直したあと ===== */
.ba { background: var(--white); border: 2px solid var(--line); border-radius: var(--r-md); padding: 20px; display: grid; gap: 10px; align-content: start; }
.ba .where { font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: .06em; }
.ba .before, .ba .after { border-radius: 10px; padding: 12px 14px; font-size: 15px; line-height: 1.7; }
.ba .before { background: #f6f6f6; color: #444; }
.ba .before::before { content: "直す前"; display: block; font-size: 11px; font-weight: 700; color: #555; margin-bottom: 2px; }
.ba .after { background: var(--pink); font-weight: 700; }
.ba .after::before { content: "直したあと"; display: block; font-size: 11px; font-weight: 700; color: var(--accent); margin-bottom: 2px; }
.ba .why { font-size: 13px; line-height: 1.7; }
.ba .why::before { content: "なぜ："; font-weight: 700; }
.ba[data-ba] .after, .ba[data-ba] .why { display: none; }
.ba[data-ba].show-after .after, .ba[data-ba].show-after .why { display: block; }
.ba[data-ba].show-after .before { text-decoration: line-through; text-decoration-color: var(--line-strong); }
.ba-switch { justify-self: start; font: 700 13px var(--font); padding: 6px 14px; border-radius: 999px; border: 2px solid var(--ink); background: var(--white); cursor: pointer; }

/* 直す前・直したあとを横に並べる（2026-11-24 本人：ボタンで切りかえるより、横並びのほうが見くらべやすい） */
.ba.side { grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: stretch; column-gap: 10px; }
.ba.side .where, .ba.side .why { grid-column: 1 / -1; }
.ba.side .before { grid-column: 1; }
.ba.side .after { grid-column: 3; }
.ba.side::after { content: "→"; grid-row: 2; grid-column: 2; align-self: center; color: var(--accent); font-weight: 900; }
@media (max-width: 600px) {
  .ba.side { grid-template-columns: 1fr; }
  .ba.side .before, .ba.side .after { grid-column: 1; }
  .ba.side::after { content: "↓"; grid-row: 3; grid-column: 1; justify-self: center; }
  .ba.side .after { grid-row: 4; }
}
