/* 海のマーケット — uminomarket.com
   tokens: 朝霧 / 砂 / 海 / 深海 / 墨 (see DESIGN.md) */

:root {
  --asagiri: #f5f8fa;   /* base: morning-mist white, cool not cream */
  --suna: #efe9df;      /* sand section */
  --umi: #0f5e7a;       /* primary (app design-system Primary) */
  --shinkai: #0a3d4f;   /* deep sea: footer band, strong text */
  --shio: #9fd3e2;      /* pale tide accent */
  --sumi: #16202c;      /* main text */
  --nami: #51606f;      /* secondary text */
  --line: #d5dee4;

  /* ローカルフォントのみ（Webフォント不使用）: https://ics.media/entry/200317/ */
  --sans: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", "Noto Sans JP", sans-serif;
  --display: var(--sans);

  --measure: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--asagiri);
  color: var(--sumi);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.04em;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--umi); text-decoration-thickness: 1px; text-underline-offset: 4px; }

:focus-visible {
  outline: 2px solid var(--umi);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.06em;
  margin: 0;
}

.pc-only { display: inline; }
.sp-only { display: none; }

/* ---------- header ---------- */

.site-header {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 30px 24px 8px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  text-decoration: none;
  color: var(--sumi);
}

.brand-ja {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.brand-en {
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--nami);
  white-space: nowrap;
}

.header-nav {
  display: flex;
  align-items: baseline;
  gap: 26px;
  font-size: 13px;
}

.header-nav a {
  color: var(--nami);
  text-decoration: none;
}

.header-nav a:hover { color: var(--umi); }

.header-nav .header-x { color: var(--umi); }

/* ---------- hero ---------- */

.hero { position: relative; }

.hero-inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 56px 24px 72px;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4.5fr);
  gap: 56px;
  align-items: center;
}

.hero-text { display: flex; gap: 36px; }

.hero-eyebrow {
  writing-mode: vertical-rl;
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.42em;
  color: var(--umi);
  margin: 6px 0 0;
  border-left: 1px solid var(--line);
  padding-left: 18px;
  height: fit-content;
}

.hero h1 {
  font-size: clamp(27px, 3.4vw, 38px);
  line-height: 1.9;
  color: var(--shinkai);
}

.hero-lead {
  margin: 28px 0 0;
  color: var(--nami);
}

.hero-cta {
  margin-top: 36px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 22px;
}

.btn {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
  padding: 13px 30px;
  border-radius: 999px;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.btn-primary {
  background: var(--umi);
  color: #fff;
}

.btn-primary:hover { background: var(--shinkai); }

.btn-light {
  background: transparent;
  color: #f0f7fa;
  border: 1px solid rgba(240, 247, 250, 0.55);
}

.btn-light:hover { background: rgba(240, 247, 250, 0.12); }

.app-soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--nami);
}

.hero-photo {
  margin: 0;
  justify-self: end;
  width: min(100%, 380px);
}

.hero-photo img {
  border-radius: 6px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}

/* tide line — the page's signature: a slow horizontal drift */

.tide {
  color: var(--shio);
  overflow: hidden;
  line-height: 0;
}

.tide svg {
  width: 200%;
  height: 40px;
  animation: tide-drift 26s linear infinite;
}

@keyframes tide-drift {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tide svg { animation: none; }
}

/* ---------- sections ---------- */

.section-inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 96px 24px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--umi);
  margin: 0 0 18px;
}

.about h2,
.how h2 {
  font-size: clamp(23px, 2.6vw, 30px);
  line-height: 1.8;
  color: var(--shinkai);
  margin-bottom: 56px;
}

/* about */

.about { background: #fff; }

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

.about-item {
  border-top: 1px solid var(--line);
  padding-top: 26px;
}

.about-item h3 {
  font-size: 18px;
  color: var(--shinkai);
  margin-bottom: 14px;
}

.about-item p {
  margin: 0;
  color: var(--nami);
  font-size: 14px;
}

/* how */

.how { background: var(--suna); }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.step {
  position: relative;
  padding: 30px 0 0 44px;
  border-top: 1px solid rgba(15, 94, 122, 0.22);
}

.step-no {
  position: absolute;
  left: 0;
  top: 26px;
  font-family: var(--display);
  font-size: 26px;
  color: var(--umi);
  line-height: 1;
}

.step h3 {
  font-size: 17px;
  color: var(--shinkai);
  margin-bottom: 10px;
}

.step p {
  margin: 0;
  color: var(--nami);
  font-size: 14px;
}

/* port photo band */

.port-band {
  margin: 0;
  line-height: 0;
  position: relative;
}

.port-band img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

.port-band figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 56px 24px 22px;
  background: linear-gradient(to top, rgba(10, 61, 79, 0.62), transparent);
  color: #f0f7fa;
  font-size: 13px;
  letter-spacing: 0.1em;
  line-height: 1.8;
  text-align: center;
}

/* teaser band */

.teaser {
  background: var(--shinkai);
  color: #f0f7fa;
  text-align: center;
}

.teaser .section-inner { padding: 104px 24px; }

.teaser-eyebrow {
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--shio);
  margin: 0 0 20px;
}

.teaser h2 {
  font-size: clamp(24px, 2.8vw, 32px);
  color: #fff;
}

.teaser-lead {
  margin: 26px 0 40px;
  color: rgba(240, 247, 250, 0.75);
  font-size: 14px;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--asagiri);
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 56px 24px 48px;
}

.footer-brand {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-size: 13px;
}

.footer-links a {
  color: var(--nami);
  text-decoration: none;
}

.footer-links a:hover { color: var(--umi); }

.footer-copy {
  margin: 30px 0 0;
  font-size: 12px;
  color: var(--nami);
}

/* ---------- legal pages ---------- */

.legal-body { background: #fff; }

.legal-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 96px;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 13px;
  margin-bottom: 56px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.legal-nav a {
  color: var(--nami);
  text-decoration: none;
}

.legal-nav a[aria-current="page"] {
  color: var(--umi);
  font-weight: 500;
}

.legal-article {
  font-size: 14px;
  line-height: 2.1;
}

.legal-article h1 {
  font-size: 24px;
  line-height: 1.8;
  color: var(--shinkai);
  margin-bottom: 40px;
}

.legal-article h2 {
  font-size: 18px;
  color: var(--shinkai);
  margin: 52px 0 18px;
}

.legal-article h3 {
  font-size: 15px;
  color: var(--shinkai);
  margin: 36px 0 12px;
}

.legal-article p { margin: 0 0 18px; }

.legal-article ol,
.legal-article ul { padding-left: 26px; margin: 0 0 18px; }

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

.legal-article table {
  border-collapse: collapse;
  width: 100%;
  margin: 24px 0;
  font-size: 13px;
}

.legal-article th,
.legal-article td {
  border: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  line-height: 1.9;
}

.legal-article th {
  background: var(--asagiri);
  white-space: nowrap;
  font-weight: 500;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 44px;
    padding-top: 40px;
  }
  .hero-photo { justify-self: stretch; width: 100%; }
  .hero-photo img { aspect-ratio: 16 / 10; }
  .about-grid, .steps { grid-template-columns: 1fr; gap: 36px; }
  .section-inner { padding: 72px 24px; }
  .pc-only { display: none; }
  .sp-only { display: inline; }
}

@media (max-width: 640px) {
  .site-header { flex-direction: column; gap: 12px; padding-top: 24px; }
  .header-nav { gap: 20px; }
  .hero-text { gap: 22px; }
  .hero-eyebrow { padding-left: 12px; font-size: 12px; }
  .legal-article th { white-space: normal; }
  /* 多列テーブル（プライバシーポリシー6章など）は横スクロールで逃がす */
  .legal-article table { display: block; overflow-x: auto; }
}
