/* いろどりメモの紹介ページ。tools/lp/build.py（memo_android）が irodori-notes/assets/ にコピーする */
:root {
  --bg: #f6f9fe;
  --surface: #ffffff;
  --surface-2: #eef4fc;
  --text: #1b1f24;
  --muted: #5f6368;
  --brand: #0a6cd6;
  --brand-soft: #d6e6fa;
  --line: #e1e7ef;
  --phone: #1f2329;
  --shadow: 0 18px 40px rgba(10, 58, 107, 0.16);
  --rainbow: linear-gradient(90deg, #4f8df5, #c86fd0 30%, #f39a6b 55%, #f6d365 78%, #7bd88f);
  --radius: 20px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1318;
    --surface: #171c23;
    --surface-2: #1b2430;
    --text: #e8eaed;
    --muted: #a3a9b1;
    --brand: #8ab8f5;
    --brand-soft: #1d2b3c;
    --line: #2a313b;
    --phone: #000000;
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Hiragino Sans", "Noto Sans JP", "Noto Sans KR",
    "Noto Sans TC", "Microsoft JhengHei", "Meiryo", sans-serif;
  line-height: 1.75;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.3; margin: 0; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.icon { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }

/* ヘッダー */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; min-width: 0; }
.brand img { border-radius: 8px; }
.brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.lang { position: relative; }
.lang summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px;
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--text); font-size: 14px; white-space: nowrap;
}
.lang summary::-webkit-details-marker { display: none; }
.lang ul {
  position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  min-width: 190px;
}
.lang a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-size: 15px; }
.lang a:hover, .lang a:focus-visible { background: var(--surface-2); }
.lang a[aria-current="page"] { color: var(--brand); font-weight: 700; }

/* ファーストビュー */
.hero { position: relative; overflow: hidden; padding: 56px 0 72px; }
.blobs {
  position: absolute; inset: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
  mask-image: linear-gradient(to bottom, #000 70%, transparent);
}
.blobs i {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55; pointer-events: none;
}
.blobs i:nth-child(1) { width: 420px; height: 420px; background: #9cc5f7; top: -120px; left: -120px; }
.blobs i:nth-child(2) { width: 360px; height: 360px; background: #f3b6d9; top: 40px; right: -80px; }
.blobs i:nth-child(3) { width: 320px; height: 320px; background: #fde59a; bottom: -160px; left: 35%; }
@media (prefers-color-scheme: dark) { .blobs i { opacity: 0.22; } }

.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 40px; }
.eyebrow {
  display: inline-block; margin: 0 0 12px; padding: 4px 14px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 14px;
}
.hero h1 { font-size: clamp(40px, 7vw, 68px); letter-spacing: -0.02em; }
.stroke { width: min(320px, 80%); height: 24px; margin: 6px 0 18px; }
.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 17px;
  color: #fff; background: #0a6cd6; box-shadow: 0 10px 24px rgba(10, 108, 214, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(10, 108, 214, 0.42); }
.meta { margin: 12px 0 0; font-size: 14px; color: var(--muted); }

.hero-shots { position: relative; height: 560px; }
.phone {
  aspect-ratio: 9 / 16; border-radius: 34px; border: 9px solid var(--phone); background: #fff;
  overflow: hidden; box-shadow: var(--shadow);
}
.phone img { width: 100%; height: 100%; object-fit: cover; }
.hero-shots .phone { position: absolute; width: 270px; }
.hero-shots .front { right: 18%; top: 0; z-index: 2; animation: float 6s ease-in-out infinite; }
.hero-shots .back { right: 0; top: 70px; transform: rotate(7deg); opacity: 0.95; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* 紹介文 */
.intro { max-width: 760px; text-align: center; font-size: 18px; padding: 8px 0 24px; }
.intro p { margin: 0 0 8px; }

/* できること */
.section-title { font-size: clamp(26px, 4vw, 36px); text-align: center; margin: 48px auto 32px; }
.section-title::after {
  content: ""; display: block; width: 64px; height: 6px; border-radius: 3px; margin: 14px auto 0; background: var(--rainbow);
}
.feature {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px;
  padding: 40px; margin-bottom: 28px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line);
}
.feature:nth-of-type(even) .feature-text { order: 2; }
.feature-icon {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; margin-bottom: 16px;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); font-size: 24px;
}
@media (prefers-color-scheme: dark) {
  .feature-icon { color: color-mix(in srgb, var(--accent) 55%, #fff); background: color-mix(in srgb, var(--accent) 28%, transparent); }
}
.feature h3 { font-size: clamp(22px, 3vw, 28px); margin-bottom: 14px; }
.feature p { margin: 0 0 10px; color: var(--muted); }
.feature ul { margin: 0; padding: 0; list-style: none; }
.feature li { position: relative; padding-left: 22px; margin: 8px 0; color: var(--muted); }
.feature li::before {
  content: ""; position: absolute; left: 2px; top: 0.7em; width: 9px; height: 9px; border-radius: 50%; background: var(--accent);
}
.feature-shot { display: grid; place-items: center; padding: 24px; border-radius: 22px; background: var(--surface-2); }
.feature-shot .phone { width: min(260px, 100%); }

/* プライバシー */
.privacy { margin-top: 24px; }
.privacy-card {
  display: flex; gap: 24px; align-items: flex-start; padding: 36px 40px; border-radius: 28px;
  background: linear-gradient(135deg, var(--brand-soft), var(--surface)); border: 1px solid var(--line);
}
.privacy-icon {
  display: grid; place-items: center; flex: none; width: 60px; height: 60px; border-radius: 18px;
  background: var(--brand); color: var(--surface); font-size: 30px;
}
.privacy h2 { font-size: 24px; margin-bottom: 10px; }
.privacy p { margin: 0 0 8px; }
.privacy .note { color: var(--muted); font-size: 15px; }

/* スクリーンショット */
.gallery { padding-bottom: 24px; }
.gallery-list {
  display: flex; gap: 18px; margin: 0; padding: 8px max(16px, calc((100% - 1120px) / 2)) 24px; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.gallery-list li { flex: none; width: 230px; scroll-snap-align: center; }
.gallery-list img { border-radius: 18px; box-shadow: var(--shadow); }
.gallery-list:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }

/* 最後の案内 */
.final { text-align: center; padding: 56px 0 72px; }
.final img { margin: 0 auto 16px; border-radius: 22px; box-shadow: var(--shadow); }
.final h2 { font-size: clamp(22px, 3.4vw, 30px); margin-bottom: 8px; }
.final p { color: var(--muted); margin: 0 auto 24px; max-width: 34em; }

.site-footer { border-top: 1px solid var(--line); padding: 24px 0 40px; text-align: center; font-size: 14px; color: var(--muted); }
.site-footer p { margin: 4px 0; }
.site-footer .small { font-size: 12px; }

/* スクロールで表示（JavaScript が動くときだけ） */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-shots .front { animation: none; }
  .cta { transition: none; }
}

/* スマホ */
@media (max-width: 860px) {
  .hero { padding: 32px 0 40px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 24px; }
  .stroke { margin-inline: auto; }
  .lead { margin-inline: auto; }
  .hero-shots { height: 400px; width: min(340px, 100%); margin: 0 auto; }
  .hero-shots .phone { width: 190px; border-width: 7px; border-radius: 26px; }
  .hero-shots .front { right: 34%; }
  .hero-shots .back { right: 2%; top: 50px; }
  .intro { font-size: 16px; text-align: left; }
  .feature { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
  .feature:nth-of-type(even) .feature-text { order: 0; }
  .feature-shot .phone { width: min(220px, 100%); }
  .privacy-card { flex-direction: column; padding: 24px; }
  .gallery-list li { width: 190px; }
}
