/* ============================================================
   tempmemo 公式サイト — Japanese Modern × Editorial
   紙色の背景・墨色の文字・クラシックレッド1色集中
   ============================================================ */

:root {
  --paper: #FAF7F2;
  --paper-deep: #F3EEE5;
  --ink: #211C15;
  --ink-soft: rgba(33, 28, 21, 0.64);
  --ink-faint: rgba(33, 28, 21, 0.38);
  --line: #E6DFD3;
  --red: #E42313;
  --red-deep: #B81C0E;
  --serif: "Shippori Mincho", "Hiragino Mincho ProN", serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
  /* spacing scale (8px基調・段階) */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 40px;
  --sp-5: 64px;
  --sp-6: 104px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* 紙のグレイン（feTurbulenceノイズを薄く重ねる） */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.13 0 0 0 0 0.11 0 0 0 0 0.08 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, header.site-head, footer.site-foot { position: relative; z-index: 2; }

a { color: inherit; }

img { max-width: 100%; display: block; }

/* ---------- 汎用 ---------- */

.wrap { max-width: 1080px; margin-inline: auto; padding-inline: clamp(20px, 4vw, 48px); }
.wrap--narrow { max-width: 760px; }

.overline {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

.serif { font-family: var(--serif); }

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

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 4vw, 48px);
  max-width: 1180px;
  margin-inline: auto;
}

.brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.04em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 3px 5px rgba(184, 28, 14, 0.35);
}

.head-nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 28px); font-size: 13px; }
.head-nav a { text-decoration: none; color: var(--ink-soft); }
.head-nav a:hover { color: var(--ink); }
.head-nav .lang { letter-spacing: 0.12em; border: 1px solid var(--line); padding: 4px 12px; border-radius: 3px; }

/* ---------- ヒーロー ---------- */

.hero {
  padding-block: clamp(48px, 8vw, 96px) clamp(64px, 9vw, 120px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(38px, 5.6vw, 62px);
  line-height: 1.28;
  letter-spacing: 0.015em;
  margin-block: 18px 22px;
}

.hero h1 .u-red {
  color: var(--red);
}

.hero .lede {
  font-size: 15.5px;
  color: var(--ink-soft);
  max-width: 34em;
  margin-bottom: 34px;
}

.cta-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--paper);
  background: var(--ink);
  padding: 15px 30px;
  border-radius: 9999px;
  transition: transform 0.18s cubic-bezier(0, 0, 0.2, 1), background 0.18s;
}
.cta:hover { transform: translateY(-2px); background: #000; }
.cta--soon { cursor: default; }
.cta svg { width: 17px; height: 17px; }

.price-note {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.price-note strong { font-size: 17px; font-family: var(--serif); color: var(--ink); letter-spacing: 0.02em; }

/* ヒーロー右: 実スクリーンショット（影付き透過PNG） */

.hero-visual { position: relative; }

.hero-shot { width: 100%; height: auto; display: block; }

/* 3ステップのデモ動画（撮り直し可能な仮素材。差し替えは site/README.md 参照） */
.demo-video {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 16px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--paper-deep);
}

.mock {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(33, 28, 21, 0.05), 0 18px 44px rgba(33, 28, 21, 0.1);
  overflow: hidden;
  transform: rotate(-0.6deg); /* 意図的なわずかな傾き */
}

.mock__bar {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.mock__bar i {
  width: 10px; height: 10px; border-radius: 50%;
  background: #E3DED5;
}

.mock__body { display: grid; grid-template-columns: 108px 1fr; min-height: 250px; }

.mock__side { background: #F6F3EC; border-right: 1px solid var(--line); padding: 12px 10px; }
.mock__row { padding: 8px 8px; border-radius: 5px; margin-bottom: 4px; }
.mock__row i { display: block; height: 7px; border-radius: 3px; background: #DBD4C7; width: 80%; }
.mock__row i + i { margin-top: 5px; width: 55%; opacity: 0.6; }
.mock__row--on { background: #FFF0EE; box-shadow: inset 3px 0 0 var(--red); }
.mock__row--on i { background: #E6B5AE; }

.mock__edit { padding: 18px 20px; }
.mock__title { height: 10px; width: 46%; border-radius: 4px; background: #D8D2C6; margin-bottom: 16px; }
.mock__line { height: 7px; border-radius: 3px; background: #EAE5DB; margin-bottom: 9px; }
.mock__line:nth-child(3) { width: 92%; }
.mock__line:nth-child(4) { width: 78%; }
.mock__line:nth-child(5) { width: 85%; }
.mock__line:nth-child(6) { width: 40%; }

/* 赤い鉛筆ボタン（アプリの入口を再現・モックに重ねてグリッドを破る） */
.pencil-btn {
  position: absolute;
  right: -18px;
  bottom: -22px;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--red);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 20px rgba(184, 28, 14, 0.35);
  transform: rotate(6deg);
  animation: float 4.5s ease-in-out infinite;
}
.pencil-btn svg { width: 30px; height: 30px; stroke: #fff; }

@keyframes float {
  0%, 100% { transform: rotate(6deg) translateY(0); }
  50% { transform: rotate(6deg) translateY(-7px); }
}

/* ---------- 語り（対比）セクション ---------- */

.statement {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(72px, 10vw, 140px);
}

.statement h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.55;
  letter-spacing: 0.03em;
}

.statement h2 em {
  font-style: normal;
  color: #FF8074;
}

.statement p {
  margin-top: 26px;
  color: rgba(250, 247, 242, 0.62);
  font-size: 15px;
  max-width: 38em;
}

/* 比較表 */
.compare { margin-top: clamp(40px, 6vw, 64px); overflow-x: auto; }
.compare table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 560px;
}
.compare th, .compare td {
  padding: 13px 14px;
  text-align: center;
  border-bottom: 1px solid rgba(250, 247, 242, 0.14);
}
.compare th { font-weight: 500; color: rgba(250, 247, 242, 0.55); letter-spacing: 0.06em; }
.compare td:first-child, .compare th:first-child { text-align: left; }
.compare thead th:nth-child(2) {
  color: var(--paper);
  font-weight: 700;
  background: rgba(228, 35, 19, 0.18);
  border-radius: 6px 6px 0 0;
}
.compare tbody td:nth-child(2) { background: rgba(228, 35, 19, 0.18); font-weight: 700; }
.compare tbody tr:last-child td:nth-child(2) { border-radius: 0 0 6px 6px; }
.compare .ok { color: #FF8074; }
.compare .no { color: rgba(250, 247, 242, 0.3); }

/* ---------- 3ステップ ---------- */

.steps { padding-block: clamp(64px, 9vw, 120px) clamp(48px, 6vw, 72px); }

.steps-head { margin-bottom: clamp(36px, 5vw, 56px); }
.steps-head h2, .features-head h2, .quiet-head h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(24px, 3.4vw, 34px);
  letter-spacing: 0.03em;
  margin-top: 10px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 28px);
}

.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px 24px 24px;
  position: relative;
}
.step:nth-child(2) { transform: translateY(14px); } /* 均等さを崩す */

.step__num {
  font-family: var(--serif);
  font-size: 36px;
  color: var(--ink-faint);
  line-height: 1;
}
.step h3 { font-size: 16px; margin: 12px 0 6px; letter-spacing: 0.05em; }
.step p { font-size: 13.5px; color: var(--ink-soft); }

.step .gif-slot {
  margin-top: 16px;
  aspect-ratio: 16 / 10;
  border-radius: 7px;
  background: var(--paper-deep);
  display: grid;
  place-items: center;
  color: var(--ink-faint);
  font-size: 12px;
  letter-spacing: 0.14em;
}

/* ---------- 機能（交互配置） ---------- */

.features { padding-block: clamp(40px, 6vw, 72px) clamp(64px, 9vw, 112px); }
.features-head { margin-bottom: clamp(40px, 6vw, 64px); }

.feat {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding-block: clamp(28px, 4vw, 44px);
}
.feat + .feat { border-top: 1px solid var(--line); }
.feat:nth-child(even) .feat__text { order: 2; }

.feat h3 {
  font-family: var(--serif);
  font-size: clamp(19px, 2.4vw, 24px);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.feat p { font-size: 14.5px; color: var(--ink-soft); max-width: 30em; }

.feat kbd {
  font-family: var(--sans);
  font-size: 12px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 4px;
  padding: 2px 7px;
  box-shadow: 0 2px 0 var(--line);
}

/* 機能ビジュアル（CSSで描く小さな図） */
.feat__vis {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 150px;
  display: grid;
  place-items: center;
  padding: 26px;
}

.swatches { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 300px; }
.swatches i {
  width: 30px; height: 30px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(33, 28, 21, 0.08);
}

.keys-vis { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.keys-vis span {
  font-size: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 16px;
  background: var(--paper);
  box-shadow: 0 3px 0 var(--line);
  letter-spacing: 0.06em;
}

.stat-vis { text-align: center; }
.stat-vis .big {
  font-family: var(--serif);
  font-size: clamp(44px, 6vw, 64px);
  line-height: 1;
  letter-spacing: -0.01em;
}
.stat-vis .big small { font-size: 0.4em; letter-spacing: 0.08em; }
.stat-vis .note { font-size: 12px; color: var(--ink-faint); margin-top: 8px; letter-spacing: 0.1em; }

.bars { margin-top: 18px; display: grid; gap: 9px; min-width: 240px; }
.bars .bar { display: grid; grid-template-columns: 112px 1fr; align-items: center; gap: 10px; font-size: 11.5px; color: var(--ink-soft); }
.bars .bar i { height: 9px; border-radius: 4px; background: #D8D2C6; display: block; }
.bars .bar:first-child i { background: var(--red); width: 9%; min-width: 14px; }
.bars .bar:nth-child(2) i { width: 58%; }
.bars .bar:nth-child(3) i { width: 100%; }

/* ---------- 安心（プライバシー） ---------- */

.quiet {
  background: var(--paper-deep);
  border-block: 1px solid var(--line);
  padding-block: clamp(56px, 8vw, 96px);
}
.quiet-head { margin-bottom: 36px; }

.quiet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px 32px;
}
.quiet-item { display: flex; gap: 13px; align-items: flex-start; padding-block: 14px; }
.quiet-item svg { width: 21px; height: 21px; flex: none; stroke: var(--red); margin-top: 2px; }
.quiet-item h3 { font-size: 14.5px; letter-spacing: 0.05em; }
.quiet-item p { font-size: 12.5px; color: var(--ink-soft); margin-top: 3px; }

/* ---------- 価格 ---------- */

.pricing { padding-block: clamp(72px, 10vw, 128px); text-align: center; }

.pricing .amount {
  font-family: var(--serif);
  font-size: clamp(56px, 8vw, 88px);
  line-height: 1;
  letter-spacing: -0.01em;
  margin-block: 18px 8px;
}
.pricing .amount small { font-size: 0.32em; letter-spacing: 0.1em; color: var(--ink-soft); }

.pricing .once {
  font-family: var(--serif);
  font-size: clamp(17px, 2vw, 20px);
  letter-spacing: 0.14em;
  color: var(--red);
}

.pricing p.detail { color: var(--ink-soft); font-size: 14px; margin-top: 18px; }
.pricing .cta-row { justify-content: center; margin-top: 34px; }

/* ---------- FAQ ---------- */

.faq { padding-block: 0 clamp(72px, 10vw, 120px); }
.faq h2 {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 26px;
}

.faq details {
  border-bottom: 1px solid var(--line);
}
.faq details:first-of-type { border-top: 1px solid var(--line); }

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 34px 18px 4px;
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.04em;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 9px; height: 9px;
  border-right: 1.5px solid var(--ink-faint);
  border-bottom: 1.5px solid var(--ink-faint);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq .a { padding: 0 4px 20px; font-size: 14px; color: var(--ink-soft); max-width: 44em; }

/* 比較表の注記（ダーク背景上） */
.compare-note {
  margin-top: 18px;
  font-size: 12px;
  line-height: 1.8;
  color: rgba(250, 247, 242, 0.45);
  max-width: 46em;
}

/* ---------- 作り手 ---------- */

.maker {
  border-top: 1px solid var(--line);
  padding-block: clamp(48px, 7vw, 80px) clamp(64px, 8vw, 96px);
}
.maker h2 {
  font-family: var(--serif);
  font-size: clamp(20px, 2.8vw, 26px);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 10px 0 14px;
}
.maker p { font-size: 14.5px; color: var(--ink-soft); max-width: 40em; }
.maker__follow { margin-top: 16px; font-size: 13px; }
.maker__follow a { color: var(--red-deep); }

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

.site-foot {
  border-top: 1px solid var(--line);
  padding: 34px clamp(20px, 4vw, 48px) 44px;
  max-width: 1180px;
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--ink-soft);
}
.site-foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--ink); }

/* ---------- 下層ページ（プライバシー/サポート） ---------- */

.doc { padding-block: clamp(40px, 6vw, 72px) clamp(72px, 9vw, 112px); }
.doc h1 {
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}
.doc .updated { font-size: 12.5px; color: var(--ink-faint); margin-bottom: 40px; letter-spacing: 0.08em; }
.doc h2 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 44px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.doc h3 { font-size: 15.5px; margin: 26px 0 6px; letter-spacing: 0.04em; }
.doc p, .doc li { font-size: 14.5px; color: var(--ink-soft); }
.doc ul { padding-left: 1.3em; margin-block: 8px; }
.doc a { color: var(--red-deep); }

/* ---------- リビール（スタガード） ---------- */

.reveal { opacity: 0; transform: translateY(18px); animation: rise 0.7s cubic-bezier(0, 0, 0.2, 1) forwards; }
.reveal:nth-child(2) { animation-delay: 0.08s; }
.reveal:nth-child(3) { animation-delay: 0.16s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- レスポンシブ ---------- */

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-block: 36px 72px; }
  .hero-visual { max-width: 480px; margin-top: 8px; }
  .pencil-btn { right: -6px; }
  .steps-grid { grid-template-columns: 1fr; }
  .step:nth-child(2) { transform: none; }
  .feat { grid-template-columns: 1fr; gap: 20px; }
  .feat:nth-child(even) .feat__text { order: 0; }
}
