:root {
  --paper: #fdf7f0;
  --paper-2: #f6ede2;
  --card: #ffffff;
  --ink: #3a302b;
  --sub-ink: #877a70;
  --line: #ebdfd3;
  --accent: #9c6a4d;
  --accent-deep: #7d5239;
  --accent-soft: #efe2d6;
  --radius: 18px;
  --radius-lg: 28px;
  --maxw: 1080px;
  --body: "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", "YuGothic", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-width: 320px;
  font-size: 16px;
  line-height: 1.8;
}

a {
  color: inherit;
  text-decoration: none;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.01em;
}

/* ---------- 共通パーツ ---------- */

.kicker {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button.primary {
  color: #ffffff;
  background: var(--accent);
  box-shadow: 0 8px 20px rgba(239, 109, 156, 0.28);
}
.button.primary:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
}

.button.secondary {
  color: var(--ink);
  background: transparent;
  border: 1.5px solid var(--line);
}
.button.secondary:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
}

.nowrap {
  white-space: nowrap;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px max(24px, 7vw);
  background: rgba(253, 247, 240, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 800;
}
.brand-lockup img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 700;
  color: var(--sub-ink);
}
.site-header nav a {
  transition: color 150ms ease;
}
.site-header nav a:hover {
  color: var(--ink);
}

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

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 6vw;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 92px max(24px, 7vw) 88px;
}

.hero h1 {
  font-size: clamp(56px, 8vw, 80px);
  line-height: 1.04;
}

.subtitle {
  margin: 12px 0 0;
  font-size: clamp(19px, 2.6vw, 23px);
  font-weight: 700;
  color: var(--sub-ink);
}

.lead {
  max-width: 480px;
  margin: 26px 0 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 2;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-scene {
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: min(100%, 290px);
  padding: 8px;
  border-radius: 40px;
  background: #2a2422;
  box-shadow: 0 30px 60px -20px rgba(58, 48, 43, 0.4);
}
.phone-frame img {
  width: 100%;
  border-radius: 32px;
}

/* ---------- セクション共通 ---------- */

.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 88px max(24px, 7vw);
}

.section-heading {
  max-width: 640px;
  margin-bottom: 44px;
}
.section h2 {
  font-size: clamp(26px, 3.6vw, 36px);
  line-height: 1.4;
}
.section-heading p {
  margin: 16px 0 0;
  color: var(--sub-ink);
  font-size: 16px;
}

/* ---------- 使い方 ---------- */

.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.flow-grid article {
  position: relative;
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  margin-bottom: 22px;
  border-radius: 14px;
  color: var(--accent-deep);
  background: var(--accent-soft);
}
.step-icon svg {
  width: 26px;
  height: 26px;
}

.step-tag {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 13px;
  font-weight: 800;
  color: var(--sub-ink);
  opacity: 0.5;
}

.flow-grid h3,
.privacy-grid h3 {
  margin-bottom: 10px;
  font-size: 19px;
}
.flow-grid p,
.privacy-grid p {
  margin: 0;
  color: var(--sub-ink);
  font-size: 14.5px;
  line-height: 1.85;
}

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

.screenshots-section {
  padding-top: 0;
  padding-bottom: 44px;
}

.screenshots-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
}

.phone-frame-sm {
  margin: 0;
}
.phone-frame-sm img {
  width: 100%;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px -8px rgba(58, 48, 43, 0.15);
}
.phone-frame-sm figcaption {
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--sub-ink);
}

/* ---------- アルバム ---------- */

.plan-notes {
  max-width: 620px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
}
.plan-notes div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}
.plan-notes div:last-child {
  border-bottom: none;
}
.plan-notes dt {
  font-weight: 800;
  color: var(--ink);
}
.plan-notes dd {
  margin: 0;
  color: var(--sub-ink);
}

/* ---------- 安心設計 ---------- */

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.privacy-grid article {
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.privacy-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  color: var(--accent-deep);
}
.privacy-icon svg {
  width: 30px;
  height: 30px;
}

/* ---------- リリース ---------- */

.release-section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px max(24px, 7vw) 88px;
}
.release-panel {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 48px;
  border-radius: var(--radius-lg);
  background: var(--paper-2);
  text-align: center;
}
.release-panel h2 {
  font-size: clamp(24px, 3.4vw, 32px);
}
.release-panel p {
  max-width: 520px;
  margin: 16px auto 0;
  color: var(--sub-ink);
  font-size: 16px;
}

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

.faq-list {
  max-width: 760px;
  border-top: 1px solid var(--line);
}
.faq-list details {
  border-bottom: 1px solid var(--line);
}
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px;
  cursor: pointer;
  list-style: none;
  font-weight: 800;
  font-size: 16px;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after {
  content: "+";
  flex: none;
  color: var(--accent-deep);
  font-size: 22px;
  font-weight: 700;
  transition: transform 200ms ease;
}
.faq-list details[open] summary::after {
  content: "−";
}
.faq-list p {
  margin: 0;
  padding: 0 4px 24px;
  color: var(--sub-ink);
  font-size: 15px;
  line-height: 1.9;
}

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

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px max(24px, 7vw) 48px;
  border-top: 1px solid var(--line);
  color: var(--sub-ink);
  font-size: 14px;
}
.site-footer div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-footer img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}
.site-footer strong {
  color: var(--ink);
  font-weight: 800;
}

.footer-links {
  display: flex;
  gap: 20px;
  font-size: 13px;
}
.footer-links a {
  color: var(--sub-ink);
  transition: color 150ms ease;
}
.footer-links a:hover {
  color: var(--ink);
}

/* ---------- 法務ページ ---------- */

.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px max(24px, 7vw) 88px;
}

.legal-body h1 {
  font-size: clamp(28px, 4vw, 36px);
  margin-bottom: 8px;
}

.legal-meta {
  color: var(--sub-ink);
  font-size: 14px;
  margin-bottom: 36px;
}

.legal-body h2 {
  font-size: 20px;
  margin-top: 40px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.legal-body h3 {
  font-size: 17px;
  margin-top: 24px;
  margin-bottom: 8px;
}

.legal-body p,
.legal-body li {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.9;
}

.legal-body ul {
  padding-left: 1.4em;
}

.legal-body li {
  margin-bottom: 6px;
}

.legal-body a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-body details {
  border-bottom: 1px solid var(--line);
}
.legal-body summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 4px;
  cursor: pointer;
  list-style: none;
  font-weight: 800;
  font-size: 16px;
}
.legal-body summary::-webkit-details-marker {
  display: none;
}
.legal-body summary::after {
  content: "+";
  flex: none;
  color: var(--accent-deep);
  font-size: 22px;
  font-weight: 700;
}
.legal-body details[open] summary::after {
  content: "−";
}
.legal-body details p {
  padding: 0 4px 20px;
}

.support-email {
  font-size: 18px;
  font-weight: 700;
}

.dev-info {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 8px 16px;
  margin: 0;
}
.dev-info dt {
  font-weight: 800;
}
.dev-info dd {
  margin: 0;
  color: var(--sub-ink);
}

/* ---------- 控えめなフェードイン ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 64px;
    padding-bottom: 64px;
  }
  .hero-scene {
    order: -1;
  }
  .privacy-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 14px 20px;
  }
  .site-header nav {
    gap: 16px;
    font-size: 13px;
  }
  .brand-lockup span {
    display: none;
  }
  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }
  .flow-grid,
  .privacy-grid {
    grid-template-columns: 1fr;
  }
  .button {
    flex: 1;
  }
  .release-panel {
    padding: 40px 26px;
  }
  .plan-notes div {
    grid-template-columns: 120px 1fr;
    gap: 10px;
  }
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
  }
}
