:root {
  color-scheme: light;
  --ink: #10242c;
  --muted: #546872;
  --paper: #f7f3ea;
  --paper-strong: #fffdf8;
  --sea: #0b7771;
  --sea-deep: #073341;
  --sky: #d9f0ef;
  --amber: #f3b342;
  --coral: #d86650;
  --berry: #a9385e;
  --line: rgba(16, 36, 44, 0.16);
  --shadow: 0 22px 60px rgba(9, 40, 48, 0.18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a { color: inherit; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 30;
  background: var(--paper-strong);
  padding: 10px 14px;
  border-radius: 6px;
}

.skip-link:focus { top: 16px; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  color: #fffdf8;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.16);
  font-size: 15px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}

.nav a { text-decoration: none; opacity: 0.92; }

.lang-switch {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 8px;
  overflow: hidden;
}

.lang-switch button {
  min-width: 44px;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 7px 10px;
  font: inherit;
  cursor: pointer;
}

.lang-switch button[aria-pressed="true"] { background: rgba(255, 253, 248, 0.22); }

.hero-showcase {
  position: relative;
  display: flex;
  min-height: max(720px, 94vh);
  overflow: hidden;
  align-items: center;
  padding: 132px clamp(20px, 7vw, 104px) 108px;
  background: var(--sea-deep);
  color: #fffdf8;
}

.hero-illustration {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  background: linear-gradient(90deg, rgba(6, 23, 29, 0.84) 0%, rgba(6, 23, 29, 0.6) 42%, rgba(6, 23, 29, 0.1) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, 61%);
}

.eyebrow,
.section-label {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

h1,
h2,
h3,
p { overflow-wrap: break-word; }

.copy-break { display: none; }

#intro-title .copy-break,
#map-title .copy-break,
#record-title .copy-break,
#collection-title .copy-break,
#trust-title .copy-break { display: block; }

h1 {
  margin: 0;
  font-size: clamp(42px, 5vw, 78px);
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-sub {
  margin: 10px 0 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 253, 248, 0.78);
}

.hero-lead {
  max-width: 530px;
  margin: 24px 0 0;
  font-size: clamp(18px, 2vw, 23px);
  color: rgba(255, 253, 248, 0.92);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary { background: var(--amber); color: #292009; }
.button.secondary { border-color: rgba(255, 255, 255, 0.54); color: #fffdf8; }

.device {
  position: relative;
  overflow: hidden;
  border: 8px solid #102932;
  border-radius: 28px;
  background: #eaf0f5;
  box-shadow: var(--shadow);
}

.device::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 7px;
  left: 50%;
  width: 30%;
  height: 16px;
  border-radius: 999px;
  background: #102932;
  transform: translateX(-50%);
}

.screen-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: saturate(0.88) contrast(0.98) sepia(0.04);
}

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: clamp(20px, 7vw, 104px);
  z-index: 4;
  display: grid;
  place-items: center;
  width: 42px;
  height: 52px;
}

.hero-scroll span {
  display: block;
  width: 1px;
  height: 42px;
  background: rgba(255, 253, 248, 0.72);
}

.intro-band,
.feature-band,
.policy-band {
  padding: clamp(72px, 10vw, 132px) clamp(20px, 6vw, 80px);
}

.intro-band { background: var(--paper-strong); }

.intro-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 7vw, 110px);
  max-width: 1160px;
  margin: 0 auto;
}

.intro-inner .section-label { grid-column: 1 / -1; margin-bottom: -8px; color: var(--sea); }

.intro-inner h2,
.story-copy h2,
.section-head h2,
.trust-inner h2 {
  margin: 0;
  font-size: clamp(31px, 4.4vw, 58px);
  line-height: 1.12;
  letter-spacing: 0;
}

.intro-inner h2 { font-size: clamp(30px, 3.5vw, 46px); }

.intro-inner > p:last-child {
  align-self: end;
  max-width: 530px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.story-section { padding: 0; }

.story-scene {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background: var(--sea-deep);
}

.story-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-copy {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: min(430px, 34vw);
  text-shadow: 0 2px 18px rgba(3, 20, 25, 0.56);
  transform: translateY(-50%);
}

.story-copy-left { left: clamp(20px, 8vw, 132px); }
.story-copy-right { right: clamp(20px, 8vw, 132px); }

.story-copy .section-label { color: var(--amber); }
.story-copy h2 { color: #fffdf8; text-wrap: balance; }
.story-section-map .story-copy h2 { font-size: clamp(31px, 3.7vw, 48px); }
.story-copy p:last-child { margin: 20px 0 0; color: rgba(255, 253, 248, 0.88); font-size: 17px; }

.story-device {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: min(27vw, 358px);
  aspect-ratio: 0.45;
  transform: translateY(-50%) rotate(4deg);
}

.story-device-right { right: clamp(8vw, 16vw, 245px); }

.story-section-record .story-scene { background: #6a5f70; }
.story-section-record .story-copy { width: min(520px, 42vw); }
.story-section-record .story-copy h2 { font-size: clamp(31px, 3.8vw, 50px); }

.record-devices {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: clamp(5vw, 13vw, 210px);
  width: min(39vw, 560px);
  height: 580px;
  transform: translateY(-50%);
}

.device-identify,
.device-detail {
  position: absolute;
  width: min(23vw, 294px);
  aspect-ratio: 0.45;
}

.device-identify .screen-photo-replacement {
  position: absolute;
  z-index: 1;
  top: 11.2%;
  left: 2.9%;
  width: 94.2%;
  height: 22%;
  border-radius: 13px;
  object-fit: cover;
  object-position: 27% 48%;
  filter: saturate(0.9) contrast(0.98);
}

.device-identify { left: 0; top: 0; transform: rotate(-5deg); }
.device-detail { right: 0; bottom: 0; transform: rotate(5deg); }

.story-section-collection .story-scene { background: #f1d9aa; }
.story-section-collection .story-copy {
  top: 60%;
  padding: 0;
  border: 0;
  background: transparent;
  text-shadow: 0 3px 18px rgba(3, 20, 25, 0.84);
}
.story-section-collection .story-copy h2 { color: #fffdf8; }
.story-section-collection .story-copy h2 { font-size: clamp(30px, 3.7vw, 46px); }
.story-section-collection .story-copy p:last-child { color: rgba(255, 253, 248, 0.94); }
.story-section-collection .section-label { color: var(--berry); }

.collection-devices {
  position: absolute;
  z-index: 3;
  right: clamp(20px, 7vw, 110px);
  bottom: 68px;
  display: flex;
  align-items: end;
  gap: clamp(10px, 1.4vw, 22px);
}

.device-mini { width: min(15vw, 190px); aspect-ratio: 0.45; }
.device-analytics { transform: rotate(-7deg) translateY(26px); }
.device-encyclopedia { z-index: 2; transform: translateY(-32px); }
.device-badges { transform: rotate(7deg) translateY(28px); }

.feature-band { background: var(--paper-strong); }

.section-head { max-width: 790px; margin: 0 auto 44px; text-align: center; }
.section-head-wide { max-width: 920px; }
.section-head .section-label { color: var(--sea); }
.section-head p:last-child { margin: 16px auto 0; color: var(--muted); font-size: 18px; }

#feature-title { font-size: clamp(30px, 3.3vw, 45px); }
.policy-band .section-head { max-width: 1100px; }
#policies-title { font-size: clamp(30px, 3.3vw, 45px); }
#feature-title,
#policies-title { text-wrap: balance; }

@media (min-width: 761px) {
  #feature-title,
  #policies-title { white-space: nowrap; }
}

.feature-list {
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.feature-row {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 28px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.feature-number { color: var(--coral); font-size: 15px; font-weight: 900; letter-spacing: 0.08em; }
.feature-row h3 { margin: 0; font-size: clamp(22px, 2.4vw, 29px); line-height: 1.25; }
.feature-row p { max-width: 650px; margin: 9px 0 0; color: var(--muted); }

.trust-band {
  padding: clamp(70px, 9vw, 120px) clamp(20px, 6vw, 80px);
  background: var(--sea-deep);
  color: #fffdf8;
}

.trust-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(32px, 9vw, 150px);
  max-width: 1100px;
  margin: 0 auto;
}

.trust-inner .section-label { color: var(--amber); }
.trust-inner > p { align-self: end; margin: 0; color: rgba(255, 253, 248, 0.82); font-size: 18px; }

.policy-band { background: var(--paper); }

/* News (お知らせ) */
.hero-banner-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 8px 16px;
  border: 1px solid rgba(243, 179, 66, 0.55);
  border-radius: 999px;
  background: rgba(243, 179, 66, 0.16);
  color: #ffe9bd;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.hero-banner-pill .pill-tag {
  color: var(--amber);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.news-band {
  padding: clamp(52px, 6vw, 84px) clamp(20px, 6vw, 80px);
  background: var(--paper-strong);
  border-bottom: 1px solid var(--line);
}

.news-band-inner { max-width: 1100px; margin: 0 auto; }
.news-band .section-label { color: var(--sea); }

.news-band-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.news-band-head h2 { margin: 0; font-size: clamp(26px, 3vw, 38px); }
.news-band-all { font-size: 14px; font-weight: 700; color: var(--sea); }

.news-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.news-item a {
  display: grid;
  grid-template-columns: 96px 84px minmax(0, 1fr);
  gap: 18px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.news-date { color: var(--muted); font-size: 14px; }

.news-tag {
  display: inline-block;
  justify-self: start;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(11, 119, 113, 0.12);
  color: var(--sea);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.news-item .news-title { font-weight: 700; }
.news-item a:hover .news-title { text-decoration: underline; }

.news-article h1 {
  margin-top: 8px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.25;
  white-space: normal;
}

.news-back { margin: 0 0 26px; font-size: 14px; }
.news-back a { color: var(--sea); font-weight: 700; text-decoration: none; }

.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 6px;
}

.news-body { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 10px; font-size: 16px; }
.news-body h2 { margin: 34px 0 10px; font-size: clamp(20px, 2.4vw, 24px); line-height: 1.35; }
.news-body p { margin: 12px 0; }
.news-body ul,
.news-body ol { margin: 12px 0; padding-left: 24px; }
.news-body li { margin: 6px 0; }
.news-body a { color: var(--sea); }

.news-cta { margin: 18px 0 8px; }
.news-cta .button.primary { min-width: 240px; }
.news-note { color: var(--muted); font-size: 14px; }

@media (max-width: 760px) {
  .news-item a {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 10px 14px;
  }

  .news-item .news-title { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .hero-banner-pill { font-size: 13px; }
  .news-cta .button.primary { width: 100%; }
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 920px;
  margin: 28px auto 0;
}

.legal-links .button { border-color: var(--line); background: var(--paper-strong); color: var(--ink); }

.site-footer { padding: 32px clamp(20px, 6vw, 80px); color: rgba(255, 253, 248, 0.78); background: #102932; }

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1160px;
  margin: 0 auto;
}

.footer-inner nav { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-inner a { text-decoration: none; }

.footer-trademark {
  max-width: 1160px;
  margin: 16px auto 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(255, 253, 248, 0.55);
}

.legal-page .site-header {
  color: var(--ink);
  background: rgba(247, 243, 234, 0.96);
  border-bottom: 1px solid var(--line);
}

.legal-page .brand-mark,
.legal-page .lang-switch { border-color: var(--line); background: rgba(15, 118, 110, 0.08); }
.legal-page .lang-switch button[aria-pressed="true"] { background: rgba(15, 118, 110, 0.16); }

.legal { max-width: 920px; margin: 0 auto; padding: 132px clamp(20px, 5vw, 48px) 72px; }
.legal .meta { margin: 12px 0 30px; color: var(--muted); }
.notice { border-left: 4px solid var(--coral); background: var(--paper-strong); padding: 14px 18px; margin: 0 0 28px; }
.doc { white-space: pre-wrap; border-top: 1px solid var(--line); padding-top: 26px; font-size: 16px; }
.delete-panel { border: 1px solid var(--line); border-radius: 8px; background: var(--paper-strong); padding: 24px; box-shadow: var(--shadow); }

@media (max-width: 980px) {
  .story-copy { width: min(390px, 43vw); }
  .story-device-right { right: 8vw; }
  .record-devices { left: 6vw; }
  .collection-devices { right: 4vw; }
}

@media (max-width: 760px) {
  .site-header { position: absolute; padding: 14px 16px; align-items: flex-start; }
  .nav { gap: 10px; }
  .nav a.hide-mobile { display: none; }
  .brand span:last-child { max-width: 148px; line-height: 1.15; }
  .hero-showcase { min-height: 1050px; align-items: flex-start; padding: 112px 20px 76px; }
  .hero-illustration { inset: 0; width: 100%; height: 100%; object-position: center; }
  .hero-shade { width: 100%; height: 100%; top: 0; background: linear-gradient(180deg, rgba(6, 23, 29, 0.8) 0%, rgba(6, 23, 29, 0.46) 45%, rgba(6, 23, 29, 0.12) 100%); }
  .hero-content { width: 100%; }
  .hero-lead { max-width: 540px; font-size: 18px; }
  .hero-scroll { display: none; }
  .intro-inner,
  .trust-inner { grid-template-columns: 1fr; gap: 22px; }
  .intro-inner .section-label { margin-bottom: 0; }
  .intro-inner > p:last-child { font-size: 17px; }
  .story-scene { min-height: 780px; }
  .story-art { height: 100%; object-position: center; }
  .story-copy { top: 56px; right: 20px; left: 20px; width: auto; transform: none; }
  .story-section-record .story-copy { width: auto; }
  .story-section-collection .story-copy { top: 48px; }
  .story-copy h2 { font-size: clamp(30px, 8vw, 44px); }
  .intro-inner h2,
  .story-section-record .story-copy h2,
  .story-section-collection .story-copy h2,
  .trust-inner h2 { font-size: clamp(28px, 7.4vw, 34px); }
  #feature-title,
  #policies-title { font-size: clamp(28px, 7.4vw, 34px); }
  html[lang="en"] #policies-title { font-size: clamp(26px, 6.5vw, 29px); }
  #feature-title .copy-break,
  #policies-title .copy-break { display: block; }
  .story-copy p:last-child { margin-top: 14px; font-size: 16px; }
  .story-device { top: auto; right: 13vw; bottom: 32px; width: min(48vw, 260px); transform: rotate(4deg); }
  .story-section-record .story-copy { width: auto; }
  .record-devices { top: auto; right: 8vw; bottom: 28px; left: 8vw; width: auto; height: 360px; transform: none; }
  .device-identify,
  .device-detail { width: min(42vw, 230px); }
  .collection-devices { right: 3vw; bottom: 22px; left: 3vw; justify-content: center; gap: 4px; }
  .device-mini { width: min(29vw, 154px); }
  .feature-row { grid-template-columns: 64px minmax(0, 1fr); gap: 16px; }
  .trust-inner > p { font-size: 17px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 520px) {
  .site-header { color: #fffdf8; }
  .site-header .nav > a { display: none; }
  .hero-showcase { min-height: 1050px; }
  h1 { font-size: clamp(35px, 9vw, 44px); }
  .actions,
  .legal-links { flex-direction: column; }
  .button { width: 100%; }
  .story-scene { min-height: 760px; }
  .story-copy { top: 48px; }
  .story-copy p:last-child { max-width: 335px; }
  .story-device { right: 12vw; width: min(53vw, 250px); }
  .record-devices { right: 5vw; left: 5vw; height: 330px; }
  .device-identify,
  .device-detail { width: min(46vw, 208px); }
  .device-mini { width: min(30vw, 125px); border-width: 5px; border-radius: 18px; }
  .device-mini::before { top: 4px; height: 10px; }
  .feature-row { grid-template-columns: 1fr; gap: 6px; }
}
