:root {
  color-scheme: light;
  --ink: #263732;
  --muted: #65736e;
  --green: #4b7168;
  --green-dark: #35574f;
  --cream: #fffaf3;
  --paper: #fffdf9;
  --peach: #f7dfd2;
  --peach-deep: #d98555;
  --sage: #e4eee3;
  --lilac: #ece6f4;
  --butter: #f4e8c9;
  --line: #ddcfc0;
  --shadow: 0 24px 70px rgba(67, 68, 56, .13);
  --radius-xl: 42px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --shell: min(1180px, calc(100vw - 40px));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -10;
  pointer-events: none;
  opacity: .38;
  background-image:
    repeating-linear-gradient(0deg, rgba(83, 98, 89, .045) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(90deg, rgba(132, 101, 81, .032) 0 1px, transparent 1px 8px);
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.l-en { display: none; }
html[data-language="en"] .l-ja { display: none !important; }
html[data-language="en"] .l-en { display: inline; }

.skip-link {
  position: fixed;
  z-index: 999;
  top: 10px;
  left: 10px;
  transform: translateY(-150%);
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: white;
}
.skip-link:focus { transform: translateY(0); }

.section-shell { width: var(--shell); margin-inline: auto; }

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(87, 103, 95, .12);
  background: rgba(255, 250, 243, .88);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: var(--shell);
  min-height: 78px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 780;
  letter-spacing: .05em;
  text-decoration: none;
  white-space: nowrap;
}
.brand img { border-radius: 12px; box-shadow: 0 5px 14px rgba(51, 56, 49, .12); }

.desktop-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.desktop-nav a, .footer-links a {
  color: #53645e;
  font-size: .92rem;
  font-weight: 650;
  text-decoration: none;
  text-underline-offset: 5px;
}
.desktop-nav a:hover, .footer-links a:hover { color: var(--green-dark); text-decoration: underline; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.language-switch {
  display: inline-flex;
  padding: 4px;
  border: 1px solid rgba(75, 113, 104, .2);
  border-radius: 999px;
  background: rgba(255,255,255,.7);
}
.language-switch button {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 750;
  cursor: pointer;
}
.language-switch button[aria-pressed="true"] { background: var(--green); color: white; }

.mini-store {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-size: .82rem;
  font-weight: 720;
  text-decoration: none;
}

.hero {
  position: relative;
  min-height: 780px;
  padding: 94px 0 84px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 26px;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -4;
  width: 560px;
  height: 560px;
  left: -310px;
  top: 20px;
  border-radius: 48% 52% 69% 31% / 42% 40% 60% 58%;
  background: var(--peach);
  opacity: .55;
}

.hero-copy { position: relative; z-index: 3; }
.eyebrow {
  margin: 0 0 15px;
  color: var(--green);
  font-size: .82rem;
  font-weight: 780;
  letter-spacing: .09em;
}
.thread-mark {
  display: inline-block;
  width: 34px;
  height: 2px;
  margin-right: 10px;
  vertical-align: middle;
  border-radius: 99px;
  background: var(--peach-deep);
}

h1, h2, h3, p { overflow-wrap: anywhere; }
h1 {
  margin: 0;
  font-size: clamp(3rem, 4vw, 3.75rem);
  line-height: 1.12;
  letter-spacing: -.045em;
  font-weight: 820;
}

.hero-lead {
  max-width: 600px;
  margin: 26px 0 0;
  color: #53615c;
  font-size: 1.07rem;
  line-height: 1.9;
}

.hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 34px; }
.store-button {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-height: 66px;
  padding: 9px 22px 9px 18px;
  border-radius: 18px;
  background: var(--ink);
  color: white;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(38, 55, 50, .2);
  transition: transform .2s ease, box-shadow .2s ease;
}
.store-button:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(38, 55, 50, .24); }
.apple-mark { font-size: 2rem; line-height: 1; }
.store-button small, .store-button strong { display: block; line-height: 1.1; }
.store-button small { margin-bottom: 4px; font-size: .7rem; font-weight: 560; }
.store-button strong { font-size: 1.18rem; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--green-dark);
  font-weight: 760;
  text-decoration: underline;
  text-decoration-color: rgba(75, 113, 104, .34);
  text-underline-offset: 7px;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid rgba(75, 113, 104, .15);
  border-radius: 999px;
  background: rgba(255,255,255,.55);
  color: #5f6c67;
  font-size: .78rem;
  font-weight: 650;
}
.trust-list li span:first-child { color: var(--green); }

.hero-art {
  position: relative;
  min-height: 610px;
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: 28px 0 10px 60px;
  z-index: -3;
  border: 2px dashed rgba(75,113,104,.2);
  border-radius: 50% 48% 45% 52%;
  transform: rotate(-4deg);
}
.fabric-swatch {
  position: absolute;
  z-index: -2;
  border-radius: 34px;
  opacity: .85;
  box-shadow: var(--shadow);
}
.swatch-one { width: 220px; height: 200px; right: 0; top: 10px; background: var(--sage); transform: rotate(8deg); }
.swatch-two { width: 190px; height: 170px; left: 24px; bottom: 18px; background: var(--lilac); transform: rotate(-9deg); }

.device-card {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border: 10px solid rgba(255,253,249,.96);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.device-card::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 2px dashed rgba(216,170,104,.42);
  border-radius: inherit;
  pointer-events: none;
}
.device-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.tablet-card { width: 82%; right: 0; top: 58px; border-radius: 34px; transform: rotate(1.5deg); }
.phone-card { width: 39%; left: 0; top: 0; z-index: 2; border-radius: 38px; transform: rotate(-4deg); }
.sewn-label {
  position: absolute;
  z-index: 3;
  right: 4%;
  bottom: 7%;
  padding: 9px 18px;
  border-radius: 12px 4px 12px 4px;
  background: var(--butter);
  color: #755d43;
  font-family: "Bradley Hand", "Comic Sans MS", cursive;
  font-size: .94rem;
  letter-spacing: .05em;
  transform: rotate(-3deg);
  box-shadow: 0 10px 20px rgba(89,73,55,.12);
}

.intro-band { padding: 28px 0; border-block: 1px solid rgba(75,113,104,.12); background: rgba(228,238,227,.56); }
.intro-grid { display: grid; grid-template-columns: .7fr 1.3fr; align-items: center; gap: 50px; }
.intro-grid p { margin: 0; }
.section-kicker { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; }
.intro-grid p:last-child { color: var(--muted); }

.features { padding-block: 120px; }
.section-heading { max-width: 690px; }
.section-heading h2, .privacy-card h2, .final-card h2 {
  margin: 0;
  font-size: clamp(2.35rem, 4.6vw, 4.1rem);
  line-height: 1.16;
  letter-spacing: -.045em;
  font-weight: 820;
}
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 54px; }
.feature-card {
  position: relative;
  min-height: 270px;
  padding: 36px;
  overflow: hidden;
  border: 1px solid rgba(119, 93, 72, .12);
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 35px rgba(68,66,53,.08);
}
.feature-card::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 2px dashed rgba(116, 93, 72, .14);
  border-radius: 21px;
  pointer-events: none;
}
.peach-card { background: var(--peach); }
.sage-card { background: var(--sage); }
.lilac-card { background: var(--lilac); }
.butter-card { background: var(--butter); }
.feature-number { position: absolute; right: 34px; top: 24px; color: rgba(38,55,50,.3); font-weight: 820; }
.feature-icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 18px; background: rgba(255,255,255,.62); color: var(--green); font-size: 1.55rem; font-weight: 800; }
.feature-card h3 { position: relative; z-index: 1; margin: 24px 0 10px; font-size: 1.38rem; line-height: 1.35; }
.feature-card p { position: relative; z-index: 1; margin: 0; max-width: 430px; color: #58655f; }

.screens-section { padding-block: 110px 125px; background: #f1eee7; border-block: 1px solid rgba(75,113,104,.1); }
.screens-header { display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.compact-heading h2 { font-size: clamp(2.25rem, 4.2vw, 3.7rem); }
.device-tabs { display: inline-flex; padding: 5px; border: 1px solid rgba(75,113,104,.2); border-radius: 999px; background: rgba(255,255,255,.65); }
.device-tabs button { min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-weight: 760; cursor: pointer; }
.device-tabs button[aria-selected="true"] { background: var(--green); color: white; box-shadow: 0 8px 18px rgba(55,92,83,.18); }
.gallery-panel { margin-top: 50px; }
.gallery-panel[hidden] { display: none; }
.shot-grid { display: grid; gap: 20px; }
.phone-grid { grid-template-columns: repeat(3, 1fr); }
.tablet-grid { grid-template-columns: repeat(2, 1fr); }
.shot-card {
  position: relative;
  padding: 0;
  overflow: hidden;
  border: 8px solid rgba(255,253,249,.92);
  border-radius: 25px;
  background: var(--paper);
  box-shadow: 0 16px 35px rgba(55,59,50,.11);
  cursor: zoom-in;
  transition: transform .2s ease, box-shadow .2s ease;
}
.shot-card:hover { transform: translateY(-5px); box-shadow: 0 22px 45px rgba(55,59,50,.16); }
.shot-card:focus-visible { outline: 4px solid rgba(75,113,104,.35); outline-offset: 5px; }

.privacy-feature { padding-block: 110px; }
.privacy-card {
  display: grid;
  grid-template-columns: 120px 1fr 1fr;
  align-items: center;
  gap: 38px;
  padding: 58px;
  border: 1px solid rgba(75,113,104,.14);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #e5eee5, #fffaf3 64%, #f7dfd2);
  box-shadow: var(--shadow);
}
.privacy-seal { width: 108px; height: 108px; display: grid; place-items: center; border: 2px dashed rgba(75,113,104,.32); border-radius: 50%; background: rgba(255,255,255,.62); color: var(--green); font-size: 2.6rem; }
.privacy-copy p { margin: 0 0 20px; color: #53635d; }

.final-cta { padding: 20px 0 110px; }
.final-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
  padding: 52px;
  border-radius: var(--radius-xl);
  background: var(--peach);
  box-shadow: var(--shadow);
}
.final-card > img { border-radius: 28px; box-shadow: 0 15px 35px rgba(70,61,52,.16); }
.final-card h2 { font-size: clamp(2.2rem, 4vw, 3.5rem); }

.site-footer { padding: 62px 0 28px; border-top: 1px solid rgba(75,113,104,.14); background: #f4efe7; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; }
.footer-brand p { margin: 18px 0 0; color: var(--muted); }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 15px 24px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(75,113,104,.12); color: #7a8581; font-size: .8rem; }

.lightbox {
  width: min(92vw, 1120px);
  max-height: 92vh;
  padding: 18px;
  overflow: auto;
  border: 0;
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 0 30px 100px rgba(22,32,28,.36);
}
.lightbox::backdrop { background: rgba(29,39,35,.66); backdrop-filter: blur(6px); }
.lightbox img { max-height: calc(92vh - 36px); margin-inline: auto; border-radius: 18px; }
.lightbox-close { position: fixed; z-index: 3; right: max(5vw, 24px); top: max(4vh, 20px); width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--ink); color: white; font-size: 1.8rem; cursor: pointer; }

.legal-main { padding-bottom: 110px; }
.legal-hero {
  position: relative;
  padding: 92px 0 70px;
  overflow: hidden;
  border-bottom: 1px solid rgba(75,113,104,.12);
  background: linear-gradient(135deg, rgba(247,223,210,.76), rgba(255,250,243,.92) 52%, rgba(228,238,227,.78));
}
.legal-hero::after {
  content: "";
  position: absolute;
  width: 380px;
  height: 260px;
  right: -90px;
  top: -80px;
  border: 3px dashed rgba(75,113,104,.17);
  border-radius: 48% 52% 60% 40%;
  transform: rotate(10deg);
}
.legal-hero h1 {
  max-width: 850px;
  font-size: clamp(3rem, 6vw, 5.4rem);
}
.nowrap { white-space: nowrap; }
.legal-hero .hero-lead { max-width: 760px; }
.updated-date { margin: 22px 0 0; color: #71807a; font-size: .86rem; font-weight: 650; }
.legal-facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 0; padding: 0; list-style: none; }
.legal-facts li { padding: 9px 14px; border: 1px solid rgba(75,113,104,.16); border-radius: 999px; background: rgba(255,255,255,.6); color: #52645d; font-size: .84rem; font-weight: 700; }
.legal-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); align-items: start; gap: 62px; padding-top: 72px; }
.legal-toc { position: sticky; top: 110px; padding: 24px; border: 1px solid rgba(75,113,104,.13); border-radius: 22px; background: rgba(255,253,249,.78); }
.legal-toc strong { display: block; margin-bottom: 13px; font-size: .9rem; }
.legal-toc a { display: block; padding: 7px 0; color: var(--muted); font-size: .83rem; font-weight: 620; text-decoration: none; }
.legal-toc a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 5px; }
.legal-body { max-width: 780px; }
.legal-section { scroll-margin-top: 110px; padding: 0 0 42px; margin: 0 0 42px; border-bottom: 1px dashed rgba(75,113,104,.22); }
.legal-section:last-child { border-bottom: 0; }
.legal-section h2 { margin: 0 0 18px; font-size: clamp(1.6rem, 3vw, 2.15rem); line-height: 1.35; letter-spacing: -.02em; }
.legal-section h3 { margin: 26px 0 10px; font-size: 1.1rem; }
.legal-section p, .legal-section li { color: #51605a; }
.legal-section ul { margin: 14px 0; padding-left: 1.25em; }
.legal-section li + li { margin-top: 8px; }
.fact-box { padding: 22px 24px; border-left: 5px solid var(--green); border-radius: 8px 20px 20px 8px; background: var(--sage); }
.fact-box p { margin: 0; }
.legal-link { color: var(--green-dark); font-weight: 720; text-underline-offset: 5px; }

.support-main { padding-bottom: 110px; }
.support-intro { padding: 86px 0 42px; text-align: center; }
.support-intro .eyebrow { justify-content: center; }
.support-intro h1 { max-width: 820px; margin-inline: auto; }
.support-intro .hero-lead { margin-inline: auto; }
.support-contact {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  margin-top: 44px;
  padding: 34px 38px;
  border: 1px solid rgba(75,113,104,.14);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--sage), #fffaf3);
  box-shadow: var(--shadow);
  text-align: left;
}
.support-contact h2 { margin: 0 0 6px; font-size: 1.45rem; }
.support-contact p { margin: 0; color: var(--muted); }
.email-button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px; border-radius: 16px; background: var(--green); color: white; font-weight: 740; text-decoration: none; white-space: nowrap; box-shadow: 0 12px 24px rgba(55,92,83,.16); }
.faq-wrap { padding-top: 72px; }
.faq-wrap > h2 { margin: 0 0 28px; font-size: clamp(2rem, 4vw, 3.2rem); }
.faq-list { display: grid; gap: 14px; }
.faq-list details { border: 1px solid rgba(75,113,104,.14); border-radius: 20px; background: rgba(255,253,249,.8); box-shadow: 0 10px 28px rgba(61,64,53,.06); }
.faq-list summary { position: relative; padding: 22px 58px 22px 24px; cursor: pointer; font-weight: 780; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); color: var(--green); font-size: 1.5rem; }
.faq-list details[open] summary::after { content: "−"; }
.faq-answer { padding: 0 24px 24px; color: #56645f; }
.faq-answer p { margin: 0; }
.help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 72px; }
.help-card { padding: 28px; border-radius: 24px; background: var(--peach); }
.help-card:nth-child(2) { background: var(--sage); }
.help-card:nth-child(3) { background: var(--lilac); }
.help-card h3 { margin: 0 0 8px; font-size: 1.12rem; }
.help-card p { margin: 0; color: #58655f; }

@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 70px; }
  .hero-copy { max-width: 720px; }
  .hero-art { min-height: 690px; max-width: 760px; width: 100%; margin-inline: auto; }
  .intro-grid { grid-template-columns: 1fr; gap: 8px; }
  .privacy-card { grid-template-columns: 90px 1fr; }
  .privacy-copy { grid-column: 2; }
  .final-card { grid-template-columns: auto 1fr; }
  .final-card .store-button { grid-column: 2; justify-self: start; }
}

@media (max-width: 720px) {
  :root { --shell: min(100% - 28px, 1180px); --radius-xl: 28px; }
  .site-header { position: relative; }
  .nav-shell { min-height: 70px; gap: 8px; }
  .brand { font-size: .96rem; }
  .brand img { width: 38px; height: 38px; }
  .mini-store { display: none; }
  .language-switch button { min-height: 32px; padding: 0 10px; }
  .hero { padding: 62px 0 60px; gap: 44px; }
  h1 { font-size: clamp(2.35rem, 10vw, 2.8rem); }
  .hero-lead { margin-top: 22px; font-size: 1rem; }
  .desktop-only { display: none; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .trust-list { gap: 7px; }
  .hero-art { min-height: 500px; overflow: hidden; border-radius: 36px; }
  .tablet-card { width: 92%; top: 72px; right: -8%; border-width: 7px; border-radius: 25px; }
  .phone-card { width: 47%; left: 2%; border-width: 7px; border-radius: 28px; }
  .sewn-label { right: 0; bottom: 2%; }
  .intro-band { padding-block: 24px; }
  .section-kicker { font-size: 1.12rem; }
  .features { padding-block: 86px; }
  .section-heading h2, .privacy-card h2, .final-card h2 { font-size: clamp(2.15rem, 11vw, 3.2rem); }
  .feature-grid { grid-template-columns: 1fr; margin-top: 38px; }
  .feature-card { min-height: 240px; padding: 30px; }
  .screens-section { padding-block: 82px 92px; }
  .screens-header { align-items: flex-start; flex-direction: column; }
  .gallery-panel { margin-top: 34px; }
  .shot-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; grid-template-columns: none; overflow-x: auto; padding: 2px 14px 28px 2px; scroll-snap-type: x mandatory; }
  .tablet-grid { grid-auto-columns: 94%; }
  .shot-card { scroll-snap-align: start; }
  .privacy-feature { padding-block: 82px; }
  .privacy-card { display: block; padding: 32px 26px; }
  .privacy-seal { width: 82px; height: 82px; margin-bottom: 26px; font-size: 2rem; }
  .privacy-copy { margin-top: 24px; }
  .final-cta { padding-bottom: 82px; }
  .final-card { display: block; padding: 34px 26px; }
  .final-card > img { width: 82px; height: 82px; margin-bottom: 24px; border-radius: 22px; }
  .final-card .store-button { margin-top: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .legal-hero { padding: 66px 0 54px; }
  .legal-hero h1 { font-size: clamp(2.4rem, 10.5vw, 2.85rem); }
  .legal-layout { grid-template-columns: 1fr; gap: 34px; padding-top: 48px; }
  .legal-toc { position: static; }
  .support-intro { padding-top: 62px; }
  .support-contact { grid-template-columns: 1fr; padding: 28px 24px; }
  .email-button { width: 100%; }
  .help-grid { grid-template-columns: 1fr; }
}

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