/* ミニマリスト路線：白・余白・Manrope + JetBrains Mono（参考: tokimarutanaka.com / nextraveler.com） */
:root {
  --bg: #f4f2ea;
  --text: #1b2420;
  --muted: #686f68;
  --link: #2e5648;
  --line: #e2dfd2;
  --sage: #ccd9cf;
  /* 日本語はdoarの実際の表示と同じ明朝体（游明朝→ヒラギノ明朝） */
  --font-sans: "Manrope", "游明朝体", "Yu Mincho", YuMincho, "Hiragino Mincho ProN", "ヒラギノ明朝 ProN", "MS 明朝", serif;
  --font-mono: "JetBrains Mono", monospace;
  --font-ui: "Manrope", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium", Meiryo, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 2;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.container { max-width: 880px; margin: 0 auto; padding: 0 24px; }

header {
  background: #1e2a28;
  position: sticky; top: 0; z-index: 10;
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; height: auto; }
.brand {
  color: var(--bg);
  font-family: "Special Elite", "Courier New", monospace;
  font-weight: 400; font-size: 1.15rem; letter-spacing: .12em;
  text-transform: uppercase;
}
nav ul { display: flex; gap: 30px; list-style: none; }
nav a {
  font-family: var(--font-mono); font-size: .74rem; font-weight: 700;
  color: var(--bg); text-transform: uppercase; letter-spacing: .14em;
  border-bottom: 2px solid transparent; padding-bottom: 3px;
  transition: border-color .15s;
}
nav a:hover { border-bottom-color: var(--bg); }

/* ---- ファーストビュー（トップ専用） ---- */
.hero-visual {
  position: relative; height: 74vh; min-height: 420px;
  background: #141c19; overflow: hidden;
}
.hero-visual video, .hero-visual img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.hero-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse 80% 60% at 20% 110%, rgba(122,168,146,.22), transparent 60%),
    radial-gradient(ellipse 70% 50% at 85% -10%, rgba(244,242,234,.07), transparent 60%),
    #141c19;
  animation: heroShift 14s ease-in-out infinite alternate;
}
@keyframes heroShift {
  from { background-position: 0% 0%, 0% 0%, 0 0; }
  to   { background-position: 12% 6%, -10% -6%, 0 0; }
}
.hero-brand { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.hero-tagline {
  font-size: .85rem; font-weight: 400; letter-spacing: .4em; text-indent: .4em;
  color: rgba(244,242,234,.8);
}
.hero-word {
  font-weight: 800; font-size: clamp(3.2rem, 13vw, 10.5rem);
  letter-spacing: .04em; line-height: 1; user-select: none;
  color: transparent; -webkit-text-stroke: 1.5px rgba(244,242,234,.9);
}
.hero-note {
  position: absolute; left: 24px; bottom: 20px;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .2em;
  color: rgba(244,242,234,.6);
}
.hero { padding: 96px 0 72px; border: none; }
.hero h1 {
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  line-height: 1.7; font-weight: 700; letter-spacing: .01em;
}
.hero p { color: var(--muted); margin-top: 24px; max-width: 560px; font-size: .92rem; }
.cta-row { display: flex; gap: 28px; margin-top: 40px; flex-wrap: wrap; align-items: center; }
.btn { display: inline-block; font-size: .88rem; transition: opacity .15s; border: none; border-radius: 0; padding: 0; font-family: var(--font-ui); }
.btn-primary { background: var(--text); color: var(--bg); padding: 13px 26px; font-weight: 700; }
.btn-primary:hover { opacity: .75; }
.btn-ghost { color: var(--link); background: none; padding: 10px 0; font-weight: 500; }
.btn-ghost:hover { text-decoration: underline; }

section { padding: 56px 0 40px; border: none; }
h2 {
  font-family: var(--font-mono); font-size: .78rem; font-weight: 400;
  color: var(--muted); letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 12px;
}
.section-lead { color: var(--text); margin-bottom: 24px; font-size: .95rem; }

.filters { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 44px; }
.filters button {
  background: none; border: none; color: var(--muted);
  padding: 10px 8px; cursor: pointer; font-size: .85rem;
  font-family: var(--font-ui); transition: color .15s;
}
.filters button:hover { color: var(--text); }
.filters button.active { color: var(--text); font-weight: 700; }

.works { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 48px 32px; }
.work { background: none; border: none; }
.work .thumb { aspect-ratio: 16/9; background: #e9e6d9; transition: opacity .25s ease; }
.work:hover .thumb { opacity: .8; }
.work .thumb iframe { width: 100%; height: 100%; border: 0; display: block; }
.work .thumb.placeholder { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: .8rem; }
.work .meta { padding: 16px 0 0; }
.work .cat { font-family: var(--font-mono); color: var(--muted); font-size: .7rem; letter-spacing: .08em; }
.work h3 { font-size: .98rem; margin-top: 8px; font-weight: 700; line-height: 1.7; }
.work p { color: var(--muted); font-size: .85rem; margin-top: 6px; }

.form-card { border: none; padding: 0; max-width: 560px; background: none; }
label { display: block; margin-top: 28px; font-size: .88rem; font-weight: 700; }
label .req { color: var(--link); font-size: .7rem; margin-left: 8px; font-weight: 500; font-family: var(--font-mono); }
input[type=text], input[type=email], textarea, select {
  width: 100%; margin-top: 10px; padding: 13px 14px; border-radius: 0;
  border: 1px solid #a8a595; background: #fdfcf8; color: var(--text); font-size: .95rem;
  font-family: var(--font-ui); transition: border-color .15s;
}
input:focus, textarea:focus { outline: none; border-color: var(--text); }
textarea { min-height: 140px; resize: vertical; }
.submit { margin-top: 36px; width: auto; cursor: pointer; }
button.submit.btn-primary { padding: 14px 40px; }
.notice { margin-top: 20px; font-size: .78rem; color: var(--muted); font-weight: 400; }
.success { background: #dde7e0; border: none; padding: 28px; margin-top: 24px; display: none; font-size: .92rem; }

.diag-summary { background: #e6ece5; border: none; padding: 18px 20px; margin-bottom: 12px; font-size: .84rem; color: var(--muted); }
.diag-summary strong { color: var(--text); }

.q-card { border: none; padding: 0; max-width: 560px; background: none; }
.q-step { font-family: var(--font-mono); color: var(--muted); font-size: .72rem; letter-spacing: .1em; }
.q-card h3 { margin-top: 14px; font-size: 1.1rem; font-weight: 700; }
.choices { display: grid; gap: 10px; margin-top: 32px; }
.choices button {
  text-align: left; padding: 15px 18px; border-radius: 0; border: 1px solid #a8a595;
  background: #fdfcf8; color: var(--text); font-size: .92rem; cursor: pointer; transition: border-color .15s;
  font-family: var(--font-ui);
}
.choices button:hover { border-color: var(--text); }
.result-plan { border: 1px solid var(--text); padding: 28px; margin-top: 28px; }
.result-plan .plan-name { font-size: 1.15rem; font-weight: 800; }
.policy { margin-top: 28px; font-size: .84rem; color: var(--muted); list-style: none; }
.policy li { margin-top: 8px; }
.policy strong { color: var(--text); }

/* Aboutページ：本文とプロフィールのタイポグラフィ（行間1.9・段落間24pxで統一） */
.about-copy { max-width: 620px; margin: 0 auto 24px; line-height: 1.9; color: var(--text); font-size: .95rem; }
section .about-copy:last-child { margin-bottom: 0; }
.profile-role { font-family: var(--font-mono); font-size: .78rem; color: var(--muted); margin: 0 auto 8px; }
.profile-name { font-family: "游明朝体", "Yu Mincho", YuMincho, "Hiragino Mincho ProN", serif; font-size: 1.15rem; font-weight: 700; margin: 0 auto 28px; }
.profile-label { font-family: var(--font-mono); font-size: .78rem; color: var(--muted); margin: 48px auto 12px; }

/* キーボード操作時のフォーカスを可視化 */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--text); outline-offset: 3px;
}
header a:focus-visible, .site-footer a:focus-visible, .btn-primary:focus-visible {
  outline-color: var(--bg);
}

/* 動きを減らす設定のユーザーにはアニメーションを止める */
@media (prefers-reduced-motion: reduce) {
  .hero-placeholder { animation: none; }
}

/* トップページ用：中央揃えセクション */
.centered { text-align: center; padding: 72px 0 56px; }
.centered .section-lead { margin-left: auto; margin-right: auto; margin-bottom: 0; line-height: 1.9; }
.centered .section-lead:last-of-type { margin-bottom: 20px; }
.centered .cta-row { justify-content: center; }

footer { border-top: 1px solid var(--line); padding: 48px 0; color: var(--muted); font-size: .76rem; margin-top: 64px; text-align: center; }
footer p { font-family: var(--font-mono); }

/* セージグリーンの帯（ページ下部のCTAなどに使う全幅の面） */
.band-sage { background: var(--sage); margin-top: 72px; }
.band-sage .centered { padding: 56px 0; }
.band-sage h2 { color: #3f4b44; }
.band-sage .notice { color: #45514a; }
.band-sage a:not(.btn) { text-decoration: underline; }
.band-sage + .site-footer { margin-top: 0; }

/* 黒背景のサイトフッター（ヘッダーと対になるデザイン） */
.site-footer {
  background: #1e2a28; color: var(--bg); border-top: none;
  padding: 64px 0 44px; margin-top: 80px; text-align: center;
}
.footer-brand {
  display: inline-block; color: var(--bg);
  font-family: "Special Elite", "Courier New", monospace;
  font-size: 1.2rem; letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 24px;
}
.footer-nav { list-style: none; display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }
.footer-nav a {
  font-family: var(--font-mono); font-size: .68rem; font-weight: 700;
  color: rgba(244,242,234,.68); text-transform: uppercase; letter-spacing: .14em;
  padding: 8px 2px; transition: color .15s;
}
.footer-nav a:hover { color: var(--bg); }
.site-footer .copyright { font-family: var(--font-mono); font-size: .62rem; color: rgba(244,242,234,.6); letter-spacing: .08em; }

@media (max-width: 640px) {
  /* ヘッダー：ロゴを1行目、メニューを2行目に分けて崩れを防ぐ */
  .nav { flex-wrap: wrap; padding: 14px 0 12px; row-gap: 10px; }
  .brand { width: 100%; text-align: center; font-size: 1.05rem; }
  nav { width: 100%; }
  nav ul { gap: 14px; justify-content: center; flex-wrap: wrap; }
  nav a { font-size: .66rem; letter-spacing: .1em; padding: 8px 2px 6px; }

  .container { padding: 0 20px; }
  .hero { padding: 56px 0 40px; }
  .hero-visual { height: 56vh; min-height: 340px; }
  .hero-note { left: 16px; bottom: 14px; font-size: .6rem; letter-spacing: .14em; }
  .works { gap: 40px 24px; }
  .centered { padding: 52px 0 40px; }

  /* 手動改行はスマホでは解除して自然に折り返す */
  .about-copy br { display: none; }

  .btn-primary { width: 100%; text-align: center; }
}
