@charset "utf-8";

:root {
  --ai: #17344e;
  --ai-deep: #0c273f;
  --ai-soft: #577087;
  --kinari: #f7f2e7;
  --paper: rgba(255, 253, 248, 0.9);
  --gold: #c7a052;
  --gold-pale: #eadcbb;
  --shu: #9d3025;
  --line: rgba(23, 52, 78, 0.15);
  --shadow: 0 18px 55px rgba(43, 53, 57, 0.11);
  --serif: "Shippori Mincho", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ai);
  background:
    radial-gradient(circle at 12% 9%, rgba(255,255,255,.86), transparent 29rem),
    repeating-linear-gradient(7deg, rgba(117,89,44,.018) 0 1px, transparent 1px 5px),
    var(--kinari);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.9;
  letter-spacing: .035em;
  -webkit-text-size-adjust: 100%;
}

a { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: .75rem;
  left: .75rem;
  padding: .55rem 1rem;
  color: #fff;
  background: var(--ai-deep);
  border-radius: 999px;
  transform: translateY(-200%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) auto minmax(15rem, 1fr);
  align-items: center;
  gap: 2rem;
  width: min(1380px, calc(100% - 5rem));
  min-height: 104px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  width: max-content;
  text-decoration: none;
}

.brand-name {
  font-size: clamp(2rem, 3vw, 3.35rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .12em;
  text-shadow: 0 2px 0 rgba(255,255,255,.65);
}

.brand-seal,
.small-seal {
  display: inline-grid;
  place-items: center;
  color: var(--shu);
  border: 2px solid currentColor;
  border-radius: 3px;
  font-family: var(--serif);
  font-size: .66rem;
  font-weight: 700;
  line-height: .95;
  letter-spacing: 0;
  writing-mode: vertical-rl;
}

.brand-seal { width: 28px; height: 38px; }
.small-seal { width: 25px; height: 32px; }

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3.75rem);
  white-space: nowrap;
}

.primary-nav a {
  position: relative;
  padding: .85rem 0;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: .3rem;
  left: 50%;
  height: 2px;
  background: var(--gold);
  transition: left .18s ease, right .18s ease;
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after,
.primary-nav a[aria-current="page"]::after { right: 0; left: 0; }

.app-store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  min-height: 50px;
  padding: .75rem 1.5rem;
  color: #fff;
  background: linear-gradient(180deg, #284a68, #102b44);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(12,39,63,.22), inset 0 1px 0 rgba(255,255,255,.25);
  font-size: .96rem;
  letter-spacing: .06em;
  text-decoration: none;
}

.app-store-button::before {
  content: "↓";
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 50%;
  font-family: sans-serif;
  font-weight: 700;
}

.button-label-short { display: none; }

.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  border-bottom: 1px solid rgba(199,160,82,.25);
}

.hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 12% 0 0 38%;
  background: url("./assets/landscape.svg") right bottom / min(1040px, 77vw) auto no-repeat;
  opacity: .48;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 30%, #000 100%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(270px, .8fr) minmax(550px, 1.35fr) minmax(110px, .25fr);
  gap: clamp(1rem, 3vw, 3.75rem);
  align-items: center;
  width: min(1500px, 100%);
  min-height: 540px;
  margin: 0 auto;
  padding: 1rem clamp(1rem, 3vw, 3rem) 2.5rem;
}

.still-life {
  position: relative;
  align-self: stretch;
  min-height: 500px;
  margin-left: calc(clamp(1rem, 3vw, 3rem) * -1);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(10,27,38,.15), transparent 50%),
    radial-gradient(circle at 84% 16%, rgba(231,236,193,.9), transparent 22%),
    linear-gradient(150deg, #c2b99d 0 22%, #e1d8c2 22% 52%, #8a6644 52% 54%, #ac8056 54% 100%);
  border-radius: 0 44% 44% 0 / 0 16% 16% 0;
  box-shadow: inset -25px 0 45px rgba(247,242,231,.85);
}

.still-life::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 70%;
  height: 48%;
  background:
    linear-gradient(90deg, transparent 48%, rgba(80,61,38,.55) 49% 53%, transparent 54%),
    linear-gradient(transparent 47%, rgba(80,61,38,.55) 48% 53%, transparent 54%);
  opacity: .65;
}

.still-life img {
  position: absolute;
  z-index: 2;
  width: min(78%, 330px);
  right: 3%;
  bottom: -2%;
  filter: saturate(.86);
}

.still-life::after {
  content: "";
  position: absolute;
  z-index: 3;
  left: -4%;
  bottom: 2%;
  width: 52%;
  height: 28%;
  background:
    radial-gradient(circle at 20% 55%, #fff 0 7%, #e9dcc8 8% 12%, transparent 13%),
    radial-gradient(circle at 54% 36%, #fff 0 6%, #e9dcc8 7% 11%, transparent 12%),
    radial-gradient(circle at 73% 62%, #fff 0 7%, #eadcca 8% 12%, transparent 13%);
  filter: blur(.5px);
}

.hero-copy {
  max-width: 760px;
  padding: 1rem 0 0;
  text-align: center;
}

.hero-title {
  margin: 0;
  font-size: clamp(4.2rem, 7vw, 7.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .16em;
  text-indent: .16em;
}

.hero-subtitle {
  margin: 1.1rem 0 1.45rem;
  font-size: clamp(1.1rem, 1.7vw, 1.55rem);
  letter-spacing: .16em;
}

.hero-lead {
  margin: 0 auto 1.55rem;
  font-size: clamp(.98rem, 1.35vw, 1.15rem);
  line-height: 2;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(.65rem, 1.4vw, 1.3rem);
  margin: 1.3rem 0 1.7rem;
}

.feature-item { min-width: 0; }

.feature-icon {
  display: grid;
  place-items: center;
  width: clamp(64px, 6.3vw, 88px);
  height: clamp(64px, 6.3vw, 88px);
  margin: 0 auto .55rem;
  background: rgba(255,253,247,.62);
  border: 1px solid rgba(199,160,82,.52);
  border-radius: 50%;
  box-shadow: inset 0 0 0 6px rgba(234,220,187,.3);
}

.feature-icon svg {
  width: 46%;
  height: 46%;
  fill: none;
  stroke: var(--ai);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.feature-item h2 {
  margin: 0;
  font-size: clamp(.86rem, 1.2vw, 1.03rem);
  line-height: 1.55;
}

.feature-item p {
  margin: .15rem 0 0;
  color: var(--ai-soft);
  font-size: clamp(.72rem, .95vw, .86rem);
  line-height: 1.55;
}

.hero-cta {
  width: min(500px, 100%);
  min-height: 58px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.hero-motto {
  justify-self: center;
  padding: 1.4rem .8rem;
  background: rgba(247,242,231,.72);
  border: 1px solid rgba(199,160,82,.4);
  box-shadow: 0 12px 35px rgba(23,52,78,.08);
  font-size: clamp(1.1rem, 1.7vw, 1.45rem);
  line-height: 1.9;
  letter-spacing: .22em;
  writing-mode: vertical-rl;
}

.home-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(1380px, calc(100% - 4rem));
  margin: 0 auto;
  padding: 2rem 0 2.4rem;
}

.home-footer section { padding: 0 clamp(1.5rem, 4vw, 4rem); }
.home-footer section + section { border-left: 1px solid var(--line); }

.home-footer h2 {
  margin: 0 0 .8rem;
  font-size: 1.05rem;
  letter-spacing: .12em;
}

.home-footer h2::after {
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  margin-top: .35rem;
  background: var(--gold);
}

.home-footer p,
.home-footer ul { margin: 0; padding: 0; font-size: .91rem; }
.home-footer ul { list-style: none; }
.home-footer a { text-decoration-color: rgba(23,52,78,.35); text-underline-offset: .28em; }
.home-footer .contact-link { color: var(--shu); }

.legal-page { min-height: 100vh; margin: 0; padding: 0; }

.legal-page .site-header { min-height: 90px; }

.legal-hero {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border-bottom: 1px solid rgba(199,160,82,.2);
  text-align: center;
}

.legal-hero::before {
  content: "";
  position: absolute;
  inset: -18% 0 0;
  background: url("./assets/landscape.svg") center 27% / 1120px auto no-repeat;
  opacity: .62;
}

.legal-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  min-height: 245px;
  padding: 1rem 1.5rem 2.5rem;
}

.legal-symbol {
  display: grid;
  place-items: center;
  flex: 0 0 112px;
  width: 112px;
  height: 112px;
  background: rgba(255,253,248,.7);
  border: 1px solid rgba(199,160,82,.58);
  border-radius: 50%;
  box-shadow: inset 0 0 0 10px rgba(234,220,187,.35);
}

.legal-symbol svg {
  width: 54px;
  height: 54px;
  fill: none;
  stroke: var(--ai);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.legal-title { text-align: left; }

.legal-title h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.25;
  letter-spacing: .08em;
}

.legal-title p {
  margin: .45rem 0 0;
  color: var(--ai-soft);
  font-size: 1rem;
}

.legal-title p::after {
  content: "";
  display: block;
  width: 54px;
  height: 2px;
  margin-top: .85rem;
  background: var(--gold);
}

.legal-main {
  position: relative;
  z-index: 2;
  width: min(1040px, calc(100% - 3rem));
  max-width: none;
  margin: -22px auto 0;
}

.legal-card {
  counter-reset: legal-section;
  padding: clamp(1.5rem, 4vw, 4rem);
  background: var(--paper);
  border: 1px solid rgba(255,255,255,.95);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(7px);
}

.legal-card > .lead {
  margin: 0 0 2rem;
  padding: 0 0 1.7rem;
  border-bottom: 1px solid var(--line);
  font-size: 1.03rem;
}

.legal-card h2 {
  counter-increment: legal-section;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2.2rem 0 .45rem;
  padding-top: 1.7rem;
  border-top: 1px solid var(--line);
  font-size: 1.24rem;
  line-height: 1.45;
  letter-spacing: .06em;
}

.legal-card > .lead + h2 { margin-top: 0; border-top: 0; }

.legal-card h2::before {
  content: counter(legal-section);
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin-left: -.35rem;
  background: linear-gradient(145deg, #f1e5c9, #e2cfa0);
  border-radius: 45% 55% 48% 52%;
  color: var(--ai-deep);
  font-size: 1rem;
  font-weight: 500;
}

.legal-card p,
.legal-card li { margin: .55rem 0; }
.legal-card ul { margin: .55rem 0; padding-left: 1.45rem; }
.legal-card strong { color: var(--ai-deep); font-weight: 700; }
.legal-card code { font-size: .9em; }

.legal-card a,
.legal-bottom a { color: var(--shu); text-underline-offset: .24em; }

.legal-meta {
  margin: 2.5rem 0 0;
  color: var(--ai-soft);
  font-size: .88rem;
  text-align: right;
}

.legal-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem .25rem 2.5rem;
}

.back-link {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-height: 44px;
  padding: .55rem 1.1rem;
  border: 1px solid rgba(23,52,78,.18);
  border-radius: 999px;
  text-decoration: none;
}

.bottom-motto {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
}

.legal-bottom .app-store-button {
  justify-self: end;
  min-width: 285px;
  color: #fff;
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: auto 1fr;
    width: min(100% - 2.5rem, 920px);
    padding: .85rem 0;
  }
  .primary-nav { grid-row: 1; grid-column: 2; justify-content: flex-end; }
  .hero-grid { grid-template-columns: .75fr 1.25fr; min-height: 640px; }
  .hero-motto { display: none; }
  .still-life { min-height: 540px; }
  .home-footer { width: min(100% - 2rem, 900px); }
  .home-footer section { padding: 0 1.5rem; }
}

@media (max-width: 760px) {
  body { font-size: 16px; line-height: 1.82; }
  .site-header {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem 1rem;
    width: 100%;
    min-height: auto;
    padding:
      max(.75rem, env(safe-area-inset-top, 0px))
      max(1.25rem, env(safe-area-inset-right, 0px))
      .3rem
      max(1.25rem, env(safe-area-inset-left, 0px));
  }
  .brand-name { font-size: 2.15rem; }
  .brand-seal { width: 23px; height: 32px; }
  .primary-nav { order: 3; width: 100%; justify-content: space-between; gap: .5rem; }
  .primary-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: .55rem 0;
    font-size: .88rem;
  }
  .hero { min-height: 0; }
  .hero::before { inset: 20% 0 0 0; background-size: 1050px auto; opacity: .38; }
  .hero-grid { display: block; min-height: 0; padding: .5rem 1.25rem 2.25rem; }
  .still-life { min-height: 235px; margin: 0 -1.25rem 1.3rem; border-radius: 0 0 42% 42% / 0 0 17% 17%; }
  .still-life img { width: 180px; right: 16%; bottom: -23%; }
  .still-life::after { bottom: -3%; }
  .hero-copy { margin: 0 auto; }
  .hero-title { font-size: clamp(3.8rem, 18vw, 5.7rem); }
  .hero-subtitle { margin-top: .75rem; }
  .hero-lead br { display: none; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem .7rem; }
  .feature-item {
    padding: .65rem .35rem;
    background: rgba(247,242,231,.7);
    border-radius: 22px;
    backdrop-filter: blur(2px);
  }
  .feature-icon { width: 72px; height: 72px; }
  .hero-cta {
    gap: .55rem;
    min-height: 54px;
    padding: .7rem 1rem;
    font-size: clamp(.86rem, 4vw, 1rem);
    letter-spacing: .045em;
    white-space: nowrap;
  }
  .home-footer {
    display: block;
    width: calc(100% - 2rem);
    padding: 1.25rem 0 calc(2.5rem + env(safe-area-inset-bottom, 0px));
  }
  .home-footer section { padding: 1.2rem .75rem; }
  .home-footer section + section { border-top: 1px solid var(--line); border-left: 0; }
  .legal-page .site-header { min-height: auto; }
  .legal-hero { min-height: 230px; }
  .legal-hero-inner { min-height: 220px; gap: 1rem; padding-bottom: 2.2rem; }
  .legal-symbol { flex-basis: 82px; width: 82px; height: 82px; }
  .legal-symbol svg { width: 40px; height: 40px; }
  .legal-title h1 { font-size: clamp(1.65rem, 7vw, 2.35rem); }
  .privacy-page .legal-title h1 {
    font-size: clamp(1.3rem, 5.4vw, 1.75rem);
    letter-spacing: .035em;
    white-space: nowrap;
  }
  .legal-title p { font-size: .85rem; }
  .legal-main { width: min(100% - 1rem, 680px); }
  .legal-card {
    padding: 1.4rem 1.15rem 2rem;
    overflow-wrap: break-word;
    border-radius: 18px;
  }
  .legal-card h2 { gap: .7rem; font-size: 1.08rem; }
  .legal-card h2::before { flex-basis: 36px; width: 36px; height: 36px; margin-left: 0; }
  .legal-bottom {
    grid-template-columns: 1fr 1fr;
    padding: 1rem .4rem calc(2rem + env(safe-area-inset-bottom, 0px));
  }
  .bottom-motto { display: none; }
  .legal-bottom .app-store-button {
    min-width: 0;
    min-height: 44px;
    padding: .55rem .75rem;
    font-size: .82rem;
    white-space: nowrap;
  }
  .legal-bottom .button-label-long { display: none; }
  .legal-bottom .button-label-short { display: inline; }
  .contact-link { overflow-wrap: anywhere; }
}

@media (max-width: 420px) {
  .primary-nav a { font-size: .78rem; }
  .legal-hero-inner { align-items: flex-start; padding-top: 1.7rem; }
  .legal-symbol { flex-basis: 68px; width: 68px; height: 68px; }
  .legal-symbol svg { width: 34px; height: 34px; }
  .back-link { padding: .55rem .8rem; font-size: .82rem; }
  .legal-bottom .app-store-button { min-height: 44px; }
}

@media (max-width: 350px) {
  .site-header {
    column-gap: .65rem;
    padding-right: max(.8rem, env(safe-area-inset-right, 0px));
    padding-left: max(.8rem, env(safe-area-inset-left, 0px));
  }
  .brand-name { font-size: 1.95rem; }
  .brand-seal { width: 21px; height: 29px; font-size: .6rem; }
  .hero-grid { padding-right: 1rem; padding-left: 1rem; }
  .still-life { margin-right: -1rem; margin-left: -1rem; }
  .feature-grid { gap: .75rem .5rem; }
  .feature-item { padding-right: .2rem; padding-left: .2rem; }
  .feature-icon { width: 66px; height: 66px; }
  .legal-hero-inner { gap: .75rem; padding-right: .7rem; padding-left: .7rem; }
  .legal-title p { font-size: .78rem; letter-spacing: .015em; }
  .legal-card { padding-right: 1rem; padding-left: 1rem; }
  .legal-card ul { padding-left: 1.25rem; }
  .legal-bottom { gap: .55rem; }
  .back-link { padding-right: .65rem; padding-left: .65rem; font-size: .78rem; }
}

@media (max-width: 930px) and (max-height: 500px) and (orientation: landscape) {
  .site-header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    width: 100%;
    min-height: auto;
    padding:
      max(.55rem, env(safe-area-inset-top, 0px))
      max(1rem, env(safe-area-inset-right, 0px))
      .55rem
      max(1rem, env(safe-area-inset-left, 0px));
  }
  .brand-name { font-size: 1.9rem; }
  .brand-seal { width: 21px; height: 29px; font-size: .6rem; }
  .primary-nav {
    grid-row: 1;
    grid-column: 2;
    gap: clamp(.8rem, 3vw, 2rem);
    justify-content: flex-end;
  }
  .primary-nav a { min-height: 44px; padding: .45rem 0; font-size: .82rem; }
  .hero { min-height: 0; }
  .hero-grid { min-height: 510px; }
  .still-life { min-height: 440px; }
  .legal-page .site-header { min-height: auto; }
}

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