/* techo tomo 手帳会議LP — スタイル */
:root {
  --paper: #f4eee3;
  --paper-deep: #ece4d5;
  --card: #fbf8f2;
  --ink: #4a4038;
  --ink-soft: #7d7064;
  --ink-faint: #b3a797;
  --line: #e2d8c7;
  --sage: #b5c0a5;
  --rose: #e6c0b2;
  --honey: #e8cf95;
  --sky: #bccfd6;
  --lilac: #c9bfdc;
  --kraft: #d9c4a5;
  --shadow: 0 1px 2px rgba(90, 70, 50, .05), 0 10px 28px -14px rgba(90, 70, 50, .22);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  font-family: "Zen Maru Gothic", system-ui, sans-serif;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .45  0 0 0 0 .38  0 0 0 0 .3  0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
    radial-gradient(circle, rgba(140, 120, 95, .16) 1px, transparent 1.4px);
  background-size: 220px 220px, 22px 22px;
  -webkit-font-smoothing: antialiased;
  letter-spacing: .03em;
  line-height: 1.85;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 28px; }

/* ---------- ヘッダー ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 238, 227, .86);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-head.scrolled { border-bottom-color: var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.logo-mark { font-family: "Fraunces", serif; font-style: italic; font-weight: 300; font-size: 26px; line-height: 1; }
.logo-sub { font-size: 11px; letter-spacing: .24em; color: var(--ink-faint); }
.nav { display: flex; align-items: center; gap: 26px; font-size: 13px; }
.nav a { text-decoration: none; color: var(--ink-soft); }
.nav a:hover { color: var(--ink); }
.nav .pill { padding: 7px 16px; border-radius: 999px; background: var(--ink); color: var(--card); }
.nav .pill:hover { color: var(--card); opacity: .9; }

/* ---------- 共通 ---------- */
section { padding: 110px 0 0; scroll-margin-top: 20px; }
.eyebrow {
  display: inline-block;
  font-family: "Quicksand", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.sec-title { margin: 8px 0 14px; font-size: clamp(24px, 3.4vw, 32px); font-weight: 500; line-height: 1.5; }
.sec-lead { max-width: 560px; color: var(--ink-soft); font-size: 15px; }
.center { text-align: center; }
.center .sec-lead { margin: 0 auto; }
.card {
  position: relative;
  background: var(--card);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.tape {
  position: absolute;
  top: -11px; left: 50%;
  width: 92px; height: 22px;
  transform: translateX(-50%) rotate(-3deg);
  opacity: .85;
  background-color: var(--rose);
  background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, .25) 0 6px, transparent 6px 12px);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--card);
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s, box-shadow .25s;
  box-shadow: 0 12px 24px -14px rgba(60, 40, 20, .6);
}
.btn:hover { transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--ink-soft); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { background: var(--card); }
.btn small { font-size: 12px; opacity: .7; }

/* ---------- ヒーロー ---------- */
.hero { padding: 72px 0 0; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 12px;
  color: var(--ink-soft);
}
.hero-kicker i { width: 7px; height: 7px; border-radius: 50%; background: #e3a38a; }
.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(32px, 5.2vw, 52px);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: .04em;
}
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, rgba(232, 207, 149, .55) 62%); }
.hero p { max-width: 460px; color: var(--ink-soft); font-size: 16px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 32px; }
.hero-note { font-size: 12px; color: var(--ink-faint); }
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; overflow: visible; }
.float { animation: float 7s ease-in-out infinite; transform-origin: center; }
@keyframes float { 50% { transform: translateY(-6px) rotate(1deg); } }

/* ---------- 診断 ---------- */
.quiz { max-width: 680px; margin: 44px auto 0; padding: 44px 44px 36px; }
.quiz-top { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--ink-faint); }
.quiz-top button { border: 0; background: none; color: var(--ink-soft); cursor: pointer; font-size: 12.5px; }
.quiz-top button:disabled { visibility: hidden; }
.progress { height: 4px; margin: 12px 0 30px; border-radius: 2px; background: var(--paper-deep); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; border-radius: 2px; background: var(--honey); transition: width .5s cubic-bezier(.3, .7, .2, 1); }
/* 動きだけで、見えなくはしない（アニメーションが止まっても質問は読める） */
.q-body, .result { animation: q-in .35s ease; }
@keyframes q-in { from { transform: translateX(12px); } }
.q-num { font-family: "Quicksand", sans-serif; font-size: 13px; font-weight: 600; color: #c47a6a; letter-spacing: .1em; }
.q-text { margin: 4px 0 22px; font-size: 22px; font-weight: 500; line-height: 1.6; }
.options { display: grid; gap: 10px; }
.opt {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  text-align: left;
  font-size: 15px;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}
.opt:hover { background: var(--paper); border-color: var(--ink-faint); transform: translateX(3px); }
.opt .mark {
  width: 26px; height: 26px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper-deep);
  font-family: "Quicksand", sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
}
.opt.picked { background: var(--paper); border-color: var(--ink-soft); }
.opt.picked .mark { background: var(--ink); color: var(--card); }


.result { text-align: center; }
.result-label { font-size: 12px; letter-spacing: .2em; color: var(--ink-faint); }
.result-name { margin: 6px 0 4px; font-size: 30px; font-weight: 500; }
.result-catch { font-family: "Klee One", serif; font-size: 17px; color: var(--ink-soft); }
.result-art { width: min(320px, 100%); margin: 22px auto 18px; }
.result-art svg { width: 100%; height: auto; overflow: visible; }
.result-desc { max-width: 500px; margin: 0 auto; font-size: 14.5px; color: var(--ink-soft); }
.result-box { margin: 26px 0 0; padding: 22px 24px; border-radius: 18px; background: var(--paper); text-align: left; }
.result-box h4 { font-size: 13px; font-weight: 500; letter-spacing: .12em; color: var(--ink-faint); margin-bottom: 10px; }
.result-box ul { list-style: none; display: grid; gap: 8px; font-size: 14.5px; }
.result-box li { display: flex; gap: 10px; }
.result-box li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 10px; border-radius: 50%; background: var(--honey); }
.result-box + .result-box { margin-top: 12px; }
.result-box.tomo { background: linear-gradient(135deg, #f6eee4, #eef1e8); }
.result-box.tomo p { font-size: 14.5px; }
.result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.runner { margin-top: 16px; font-size: 12.5px; color: var(--ink-faint); }
.runner a { color: var(--ink-soft); }

/* ---------- 手帳のかたち ---------- */
.types { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 44px; }
.type {
  padding: 22px 18px 20px;
  text-align: left;
  border: 0;
  cursor: pointer;
  transition: transform .3s;
}
.type:hover { transform: translateY(-4px) rotate(-.5deg); }
.type svg { width: 100%; height: auto; margin-bottom: 12px; }
.type b { display: block; font-weight: 500; font-size: 15.5px; }
.type span { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.7; color: var(--ink-soft); }
.type-detail { max-width: 760px; margin: 22px auto 0; padding: 26px 30px; display: none; }
.type-detail.show { display: block; animation: fade .4s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }
.type-detail h3 { font-size: 19px; font-weight: 500; }
.type-detail p { margin: 6px 0 14px; font-size: 14.5px; color: var(--ink-soft); }
.type-detail ul { list-style: none; display: grid; gap: 6px; font-size: 14px; }
.type-detail li::before { content: "・"; color: var(--ink-faint); }

/* ---------- おすすめ手帳 ---------- */
.shop-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 36px 0 22px; }
.shop-tab {
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 13.5px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.shop-tab.on { background: var(--ink); border-color: var(--ink); color: var(--card); }
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; }
.product {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow);
  animation: q-in .35s ease;
}
.product-top { display: flex; align-items: flex-start; gap: 16px; }
.p-book { flex: none; width: 52px; }
.p-book svg { display: block; width: 100%; height: auto; }
.p-info small { font-size: 11.5px; color: var(--ink-faint); }
.p-info b { display: block; font-weight: 500; font-size: 15.5px; line-height: 1.5; }
.p-info p { margin-top: 4px; font-size: 13px; line-height: 1.75; color: var(--ink-soft); }
.p-links { display: grid; gap: 8px; margin-top: auto; }
.shop-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
  border-radius: 12px;
  font-size: 12.5px;
  text-align: center;
  text-decoration: none;
  transition: filter .2s;
}
.shop-btn.soon { background: var(--paper-deep); color: var(--ink-faint); font-family: "Quicksand", sans-serif; font-weight: 600; letter-spacing: .08em; cursor: default; }
.shop-note { max-width: 720px; margin: 22px auto 0; font-size: 12px; line-height: 1.8; text-align: center; color: var(--ink-faint); }
.result-shop { margin-top: 12px; padding: 22px 24px; border-radius: 18px; background: var(--paper); text-align: left; }
.result-shop h4 { margin-bottom: 12px; font-size: 13px; font-weight: 500; letter-spacing: .12em; color: var(--ink-faint); }
.result-shop .products { grid-template-columns: 1fr; gap: 10px; }
.result-shop .product { padding: 16px; box-shadow: none; }
.result-shop .more { display: block; margin-top: 12px; font-size: 13px; text-align: center; color: var(--ink-soft); }

/* ---------- チェックリスト ---------- */
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 40px; }
.check { display: flex; gap: 16px; padding: 22px 22px 20px; }
.check-num {
  width: 38px; height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--paper);
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 20px;
  color: #c47a6a;
}
.check h3 { font-size: 16px; font-weight: 500; }
.check p { margin-top: 4px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.8; }

/* ---------- techo tomo ---------- */
.tomo-band {
  margin-top: 110px;
  padding: 90px 0;
  background: rgba(236, 228, 213, .7);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.tomo-band section { padding: 0; }
.tomo-grid { display: grid; grid-template-columns: 1fr 340px; gap: 60px; align-items: center; }
.tomo-logo { font-family: "Fraunces", serif; font-style: italic; font-weight: 300; font-size: 44px; line-height: 1; }
.features { list-style: none; display: grid; gap: 18px; margin-top: 30px; }
.features li { display: flex; gap: 16px; }
.features i {
  width: 44px; height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.features i svg { width: 22px; height: 22px; }
.features b { display: block; font-weight: 500; font-size: 16px; }
.features span { font-size: 13.5px; color: var(--ink-soft); }
/* 手帳の1ページに書いたような一文（罫線の間隔＝行の高さ。折り返しても罫線に乗る） */
.not-diary {
  --rule: 36px;
  position: relative;
  margin-top: 28px;
  padding: 0 20px 0 36px;
  border-radius: 6px;
  background-color: var(--card);
  background-image: repeating-linear-gradient(to bottom, transparent 0 calc(var(--rule) - 1px), var(--line) calc(var(--rule) - 1px) var(--rule));
  box-shadow: var(--shadow);
  font-family: "Klee One", serif;
  font-size: 16px;
  line-height: var(--rule);
  letter-spacing: .04em;
}
/* 左の余白線 */
.not-diary::before { content: ""; position: absolute; left: 22px; top: 0; bottom: 0; width: 1px; background: var(--rose); }
/* 言葉のまとまりの途中で折り返さない */
.nd-ph { display: inline-block; }
.nd-date { display: block; font-size: 12px; letter-spacing: .1em; color: var(--ink-faint); }

.phone {
  width: 300px;
  height: 600px;
  margin: 0 auto;
  padding: 10px;
  border-radius: 46px;
  background: #2f2925;
  box-shadow: inset 0 0 0 2px #4d433b, 0 34px 60px -30px rgba(60, 40, 20, .55);
  transform: rotate(2deg);
}
.screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  padding: 50px 16px 16px;
  border-radius: 37px;
  background-color: var(--paper);
  background-image: radial-gradient(circle, rgba(140, 120, 95, .16) 1px, transparent 1.4px);
  background-size: 18px 18px;
}
.island { position: absolute; top: 10px; left: 50%; width: 92px; height: 26px; translate: -50% 0; border-radius: 14px; background: #14110f; }
.s-logo { font-family: "Fraunces", serif; font-style: italic; font-weight: 300; font-size: 19px; }
.s-greet { margin: 14px 0 12px; text-align: center; }
.s-greet svg { width: 34px; height: 34px; }
.s-greet small { display: block; font-size: 9.5px; letter-spacing: .14em; color: var(--ink-faint); }
.s-greet p { font-size: 14px; font-weight: 500; color: var(--ink-soft); }
.s-widgets { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }
.s-w { padding: 12px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); }
.s-w .wd { font-size: 10px; font-weight: 600; color: #c47a6a; }
.s-w .num { font-family: "Quicksand", sans-serif; font-size: 34px; line-height: 1.1; }
.s-w .sub { font-size: 10px; color: var(--ink-soft); }
.s-w.color { display: flex; flex-direction: column; justify-content: space-between; }
.s-w.color i { display: block; width: 26px; height: 26px; border-radius: 50%; background: #a86f4c; }
.s-card { position: relative; margin-top: 18px; padding: 16px 14px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); }
.s-card .tape { width: 56px; height: 15px; top: -8px; }
.s-card small { font-size: 9.5px; letter-spacing: .18em; color: var(--ink-faint); }
.s-card p { margin-top: 6px; font-size: 13.5px; font-weight: 500; line-height: 1.7; }
.s-lines { height: 34px; margin-top: 10px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(var(--line), var(--line)) center / 100% 1px no-repeat; }

/* ---------- FAQ ---------- */
.faq { max-width: 720px; margin: 36px auto 0; display: grid; gap: 10px; }
.faq details { padding: 0 24px; border-radius: 18px; background: var(--card); box-shadow: 0 1px 2px rgba(90, 70, 50, .05); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  font-size: 15px;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: "Quicksand", sans-serif; font-size: 20px; color: var(--ink-faint); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; font-size: 14px; color: var(--ink-soft); }

footer { margin-top: 120px; padding: 40px 0 50px; border-top: 1px solid var(--line); text-align: center; font-size: 12px; color: var(--ink-faint); }
footer .logo { justify-content: center; margin-bottom: 10px; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin-top: 14px; }
.foot-links a { color: var(--ink-soft); }

/* ---------- インラインstyleの置きかえ（CSPで style 属性を禁止しているため） ---------- */
.float.late { animation-delay: -2s; }
.tomo-logo.spaced { margin-top: 12px; }
.color-name { font-size: 13px; font-weight: 500; color: var(--ink); }
.tape.sage { background-color: var(--sage); }
.result-box p.fit { font-size: 14.5px; }

/* ---------- JS がオフのとき ---------- */
.noscript { padding: 20px; border-radius: 16px; background: var(--paper); text-align: center; font-size: 14px; color: var(--ink-soft); }

/* ---------- 文章のページ（プライバシーポリシーなど） ---------- */
.doc { max-width: 760px; margin: 56px auto 0; padding: 48px 48px 40px; }
.doc h1 { font-size: clamp(24px, 3.4vw, 30px); font-weight: 500; line-height: 1.5; }
.doc .doc-meta { margin-top: 6px; font-size: 12.5px; color: var(--ink-faint); }
.doc h2 { margin: 36px 0 10px; font-size: 17px; font-weight: 500; }
.doc p, .doc li { font-size: 14.5px; color: var(--ink-soft); }
.doc p + p { margin-top: 10px; }
.doc ul { margin: 8px 0 0 1.4em; display: grid; gap: 4px; }
.doc table { width: 100%; margin-top: 10px; border-collapse: collapse; font-size: 13.5px; }
.doc th, .doc td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; color: var(--ink-soft); }
.doc th { width: 30%; font-weight: 500; background: var(--paper); color: var(--ink); }
.todo { padding: 1px 6px; border-radius: 6px; background: #f6e3b4; color: #6a4f1d; }
.back-link { display: inline-block; margin-top: 36px; font-size: 14px; color: var(--ink-soft); }

.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .types { grid-template-columns: repeat(2, 1fr); }
  .tomo-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .nav a:not(.pill) { display: none; }
  .hero { padding-top: 40px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 360px; margin: 0 auto; }
  section { padding-top: 80px; }
  .quiz { padding: 32px 20px 26px; }
  .doc { margin-top: 32px; padding: 32px 20px 28px; }
  .doc table, .doc tbody, .doc tr, .doc th, .doc td { display: block; width: 100%; }
  .doc td { border-top: 0; }
  .q-text { font-size: 19px; }
  .types { grid-template-columns: 1fr 1fr; }
  .tomo-band { padding: 70px 0; margin-top: 80px; }
  .phone { transform: none; }
  .not-diary { --rule: 32px; padding: 0 14px 0 30px; font-size: 14.5px; }
  .not-diary::before { left: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- シェア用ページ（/r/<type>/） ---------- */
.share-page { display: grid; justify-items: center; gap: 28px; padding-top: 40px; padding-bottom: 80px; }
.share-card { width: 100%; max-width: 720px; padding: 40px 40px 34px; display: grid; justify-items: center; gap: 20px; text-align: center; }
.share-label { font-size: 12px; letter-spacing: .2em; color: var(--ink-faint); }
.share-img { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 1px 2px rgba(90, 70, 50, .06); }
.share-desc { max-width: 520px; font-size: 15px; color: var(--ink-soft); text-align: left; }
.share-card .back-link { margin-top: 0; }
@media (max-width: 720px) {
  .share-page { padding-top: 24px; }
  .share-card { padding: 28px 16px 24px; }
}
