/* ------------------------------------------------------------------
   武藤 — 個人サイト（有機的リデザイン）

   方針:
   - 紙のような温かい下地に、ぼかした色のにじみ（blob）を漂わせる
   - 見出しだけ明朝のWebフォント。本文は端末標準で軽く・読みやすく
   - 区切り線は使わない。余白と面の色で切り替える
   - 動きは「気づくか気づかないか」程度。reduced-motionでは全て止める
   ------------------------------------------------------------------ */

:root {
  --paper: #faf7f1;        /* 生成りの紙。真っ白にしない */
  --card: #fffdf8;
  --ink: #272319;          /* 墨。写真の暖色と喧嘩しない茶系の黒 */
  --ink-soft: #6b655a;
  --ink-faint: #a39b8b;
  --line: rgba(60, 45, 20, .08);
  --green: #1d5c4d;        /* ヨンダラの深緑 */
  --green-soft: #e7efe9;
  --amber: #b9803a;        /* 写真の窓明かりから */
  --radius: 26px;
  --measure: 34rem;
  --serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", -apple-system,
               BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.95;
  letter-spacing: .02em;
  font-feature-settings: "palt";
  overflow-x: hidden;      /* 背景のにじみが画面外へはみ出すため */
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ------------------------------------------------------------------ 骨格 */

.wrap { width: min(100% - 2.75rem, 62rem); margin-inline: auto; }
.narrow { max-width: var(--measure); }

section { padding-block: clamp(4.5rem, 11vw, 8rem); position: relative; }

/* ------------------------------------------------------------------ 色のにじみ */

.blob {
  position: absolute;
  border-radius: 58% 42% 55% 45% / 52% 48% 60% 40%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}

.blob-green { background: rgba(29, 92, 77, .13); }
.blob-amber { background: rgba(201, 146, 74, .17); }
.blob-rose  { background: rgba(186, 108, 86, .10); }

@keyframes drift {
  0%   { transform: translate(0, 0) rotate(0deg); }
  50%  { transform: translate(2%, -3%) rotate(6deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

.blob { animation: drift 26s ease-in-out infinite; }
.blob:nth-child(2) { animation-duration: 34s; animation-delay: -12s; }

/* にじみの上に載る内容 */
section > .wrap { position: relative; z-index: 1; }

/* ------------------------------------------------------------------ 見出しの書体 */

h1, h2, h3, .wordmark {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: .04em;
}

/* ------------------------------------------------------------------ ヘッダー */

.site-head {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250, 247, 241, .82);
  backdrop-filter: saturate(160%) blur(14px);
}

.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 4.25rem;
}

.wordmark { font-size: 1.2rem; text-decoration: none; }

.nav { display: flex; gap: 1.75rem; font-size: .875rem; }
.nav a { color: var(--ink-soft); text-decoration: none; }
.nav a:hover { color: var(--green); }

/* ------------------------------------------------------------------ 冒頭 */

.hero { padding-block: clamp(5.5rem, 14vw, 10rem) clamp(4rem, 9vw, 6.5rem); }

.hero .blob-green { width: 34rem; height: 28rem; top: -8rem; right: -10rem; }
.hero .blob-amber { width: 26rem; height: 22rem; bottom: -9rem; left: -8rem; }

.hero h1 {
  margin: 0 0 2rem;
  font-size: clamp(2rem, 5.4vw, 3.3rem);
  line-height: 1.55;
  max-width: 22em;
}

.hero p { margin: 0; color: var(--ink-soft); font-size: clamp(1rem, 2.1vw, 1.075rem); }

.eyebrow {
  display: block;
  font-size: .78rem; letter-spacing: .3em;
  color: var(--amber);
  margin-bottom: 1.75rem;
}

/* 意味のかたまり単位の改行は広い画面だけ。
   狭い画面でかたまりを固定すると「す。」だけが孤立する行が生まれる */
.phrase { display: inline; }
@media (min-width: 40rem) { .phrase { display: inline-block; } }

/* ------------------------------------------------------------------ 見出しまわり */

.section-label {
  font-size: .78rem; letter-spacing: .3em;
  color: var(--amber);
  margin: 0 0 2.75rem;
}

h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.45rem, 3.4vw, 1.9rem);
  line-height: 1.65;
  max-width: 24em;
}

h3 { margin: 0 0 .5rem; font-size: 1.1rem; }

/* ------------------------------------------------------------------ アプリカード */

.apps { display: grid; gap: 1.5rem; }

.app-card {
  display: grid;
  grid-template-columns: 5.75rem 1fr;
  gap: 1.75rem;
  align-items: center;
  padding: 2rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  box-shadow: 0 18px 50px -34px rgba(74, 56, 24, .35);
  transition: transform .25s ease, box-shadow .25s ease;
}

.app-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -34px rgba(29, 92, 77, .45);
}

.app-card img { border-radius: 24%; width: 5.75rem; }

.app-card .meta { min-width: 0; }

.app-card p { margin: 0; color: var(--ink-soft); font-size: .925rem; line-height: 1.85; }

.badge {
  display: inline-block;
  margin-top: .8rem;
  padding: .22rem .7rem;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: .75rem;
  letter-spacing: .05em;
}

.app-placeholder {
  padding: 2rem;
  border: 1.5px dashed rgba(60, 45, 20, .16);
  border-radius: var(--radius);
  color: var(--ink-faint);
  font-size: .9rem;
}

/* ------------------------------------------------------------------ 自己紹介 */

.about-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 46rem) {
  .about-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; }
}

.portrait-frame { position: relative; max-width: 24rem; margin-inline: auto; }

.portrait-frame .blob {
  inset: -2.5rem -3rem auto auto;
  width: 85%; height: 85%;
  filter: blur(46px);
}

.portrait {
  position: relative;
  border-radius: 64% 36% 57% 43% / 46% 62% 38% 54%;  /* 円より少し崩した有機的な輪郭 */
  box-shadow: 0 30px 70px -35px rgba(74, 56, 24, .55);
}

.portrait-note {
  margin: 1.5rem 0 0;
  text-align: center;
  font-size: .8rem;
  color: var(--ink-faint);
}

.about p { margin: 0 0 1.6rem; }
.about p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------ 連絡先 */

.contact-card {
  background: var(--green);
  color: #f2f6f3;
  border-radius: calc(var(--radius) + 8px);
  padding: clamp(2.5rem, 7vw, 4.5rem);
  position: relative;
  overflow: hidden;
}

.contact-card .blob-amber { width: 22rem; height: 18rem; top: -6rem; right: -7rem; opacity: .8; }

.contact-card .section-label { color: rgba(242, 246, 243, .6); }
.contact-card h2 { color: #fff; }
/* にじみ(.blob)は絶対配置のまま残す。ここに * を使うと
   .blob の position: absolute を打ち消して巨大な空白ができる */
.contact-card > :not(.blob) { position: relative; z-index: 1; }

.contact-lede { color: rgba(242, 246, 243, .85); margin: 0 0 2.25rem; max-width: var(--measure); }

.contact-link {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .9rem 1.6rem;
  background: #fff;
  color: var(--green);
  border-radius: 999px;
  text-decoration: none;
  font-size: .95rem;
  font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease;
}

.contact-link:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(0,0,0,.4); }
.contact-link svg { width: 1.05em; height: 1.05em; fill: currentColor; }

/* ------------------------------------------------------------------ フッター */

.site-foot {
  padding-block: 3.5rem;
  color: var(--ink-faint);
  font-size: .85rem;
}

.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }
.site-foot a { color: var(--ink-faint); text-decoration: none; }
.site-foot a:hover { color: var(--green); }

/* ------------------------------------------------------------------ アプリ紹介ページ */

.app-hero { padding-block: clamp(4rem, 10vw, 7rem) 0; }

.app-hero .blob-green { width: 30rem; height: 26rem; top: -6rem; right: -9rem; }
.app-hero .blob-amber { width: 22rem; height: 18rem; top: 14rem; left: -8rem; }

.app-hero .icon {
  width: 6.75rem;
  border-radius: 26%;
  margin-bottom: 2.25rem;
  box-shadow: 0 22px 50px -28px rgba(74, 56, 24, .5);
}

.app-hero h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.9rem, 4.8vw, 2.8rem);
  line-height: 1.6;
  max-width: 22em;
}

.lede { color: var(--ink-soft); font-size: clamp(1rem, 2.1vw, 1.075rem); margin: 0; }

.back {
  display: inline-block;
  margin-bottom: 2.75rem;
  font-size: .875rem;
  color: var(--ink-faint);
  text-decoration: none;
}
.back:hover { color: var(--green); }

/* 3ステップ */

.steps { display: grid; gap: 2.75rem; counter-reset: step; }

.step { display: grid; grid-template-columns: 2.5rem 1fr; gap: 1.4rem; }

.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem;
  border-radius: 46% 54% 52% 48% / 50% 46% 54% 50%;
  background: var(--green);
  color: #fff;
  font-family: var(--serif);
  font-size: .95rem;
}

.step p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* スクリーンショット */

.shots {
  display: flex;
  gap: 1.75rem;
  overflow-x: auto;
  padding: 1rem .5rem 2.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.shot { flex: 0 0 auto; width: 15.5rem; scroll-snap-align: center; }

/* 交互にわずかに傾けて、手で並べたような揺らぎを作る */
.shot:nth-child(odd)  img { transform: rotate(-1.1deg); }
.shot:nth-child(even) img { transform: rotate(1.1deg); }

.shot img {
  border-radius: 22px;
  box-shadow: 0 26px 55px -30px rgba(74, 56, 24, .5);
}

.shot figcaption {
  margin-top: 1.1rem;
  font-size: .85rem;
  color: var(--ink-soft);
  text-align: center;
}

/* 機能一覧 */

.features {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 16px 44px -34px rgba(74, 56, 24, .3);
}

.feature p { margin: 0; color: var(--ink-soft); font-size: .9rem; }

/* 料金 */

.plans { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }

.plan {
  padding: 1.75rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 44px -34px rgba(74, 56, 24, .3);
}

.plan .price { font-family: var(--serif); font-size: 1.65rem; font-weight: 700; margin: .3rem 0 .6rem; }
.plan .note { margin: 0; font-size: .85rem; color: var(--ink-soft); }

.plan-free { background: var(--green-soft); border-color: transparent; }

.fineprint { margin-top: 2.25rem; font-size: .8rem; color: var(--ink-faint); line-height: 1.9; }

/* ------------------------------------------------------------------ スクロールで現れる */

.js .reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity .7s ease, transform .7s ease;
}

.js .reveal.in { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ 動きを減らす設定の人へ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blob { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .app-card, .contact-link { transition: none; }
}

/* ------------------------------------------------------------------ 狭い画面 */

@media (max-width: 34rem) {
  .nav { gap: 1.1rem; }
  .app-card { grid-template-columns: 4.25rem 1fr; gap: 1.2rem; padding: 1.5rem; }
  .app-card img { width: 4.25rem; }
  .shot { width: 13rem; }
}
