:root {
  --bg: #f4f8fd;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-alt: #edf6ff;
  --text: #0f172a;
  --muted: #5f6f82;
  --line: rgba(15, 23, 42, 0.09);
  --primary: #2563eb;
  --primary-deep: #1646b7;
  --accent: #0f766e;
  --warm: #ea580c;
  --shadow: 0 24px 60px rgba(25, 55, 95, 0.14);
  --radius-lg: 32px;
  --radius-md: 22px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Hiragino Sans", "Noto Sans JP", "Yu Gothic", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.16), transparent 30%),
    radial-gradient(circle at 86% 8%, rgba(15, 118, 110, 0.14), transparent 31%),
    linear-gradient(180deg, #fbfdff 0%, var(--bg) 100%);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

[data-language="ja"] [data-lang="en"],
[data-language="en"] [data-lang="ja"] {
  display: none !important;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

.narrow {
  width: min(calc(100% - 40px), 800px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 253, 255, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
}

.nav,
.footer-row,
.nav-links,
.cta-row,
.feature-strip-grid,
.callout {
  display: flex;
  align-items: center;
}

.nav {
  min-height: 78px;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-size: 1.08rem;
  font-weight: 800;
}

.nav-links {
  gap: 22px;
  color: var(--muted);
  font-size: 0.96rem;
}

.nav-links a {
  overflow-wrap: anywhere;
}

.nav-links a:hover,
.footer-links a:hover {
  color: var(--primary);
}

.language-switch {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 4px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.language-switch button {
  min-height: 34px;
  padding: 0 12px;
  color: var(--muted);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 999px;
}

.language-switch button[aria-pressed="true"] {
  color: #fff;
  background: var(--primary);
}

.hero {
  padding: 72px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
}

.hero-copy,
.feature-card,
.feature-strip-grid article,
.callout {
  min-width: 0;
}

.eyebrow,
.feature-label,
.policy-date {
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
ul,
figure {
  margin: 0;
}

h1 {
  margin-top: 12px;
  font-size: clamp(2.32rem, 4.4vw, 4.25rem);
  line-height: 1.03;
}

.hero-line {
  display: block;
  white-space: nowrap;
}

h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  line-height: 1.15;
}

h3 {
  font-size: 1.2rem;
  line-height: 1.35;
}

.lead {
  margin-top: 22px;
  color: var(--muted);
  font-size: 1.04rem;
}

.hero-subtitle {
  max-width: 34rem;
  margin-top: 14px;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.3vw, 1.12rem);
  font-weight: 600;
  line-height: 1.55;
}

.en-inline,
.subtle-inline {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.en-inline {
  font-size: 0.72em;
  font-weight: 650;
  line-height: 1.4;
}

.en-block {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.copy-line {
  display: block;
  max-width: 100%;
}

.lead,
.hero-subtitle,
.quick-points li,
.feature-card p,
.feature-strip-grid p,
.policy-card p,
.callout p {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.cta-row {
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.26);
}

.button.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.quick-points {
  display: grid;
  gap: 10px;
  padding: 0;
  margin-top: 26px;
  color: var(--text);
  list-style: none;
}

.quick-points li,
.policy-list li {
  position: relative;
  padding-left: 18px;
}

.quick-points li::before,
.policy-list li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 8px;
  height: 8px;
  content: "";
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
}

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

.phone-stack {
  position: relative;
  width: min(100%, 500px);
  min-height: 690px;
}

.phone-card {
  position: absolute;
  width: 58%;
  padding: 14px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 42px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.phone-card img {
  width: 100%;
  border-radius: 30px;
}

.phone-card-back {
  bottom: 58px;
  left: 0;
  transform: rotate(-7deg);
}

.phone-card-front {
  top: 0;
  right: 0;
  transform: rotate(7deg);
}

.feature-strip {
  padding: 18px 0 24px;
}

.feature-strip-grid {
  align-items: stretch;
  gap: 18px;
}

.feature-strip-grid article,
.feature-card,
.shot-card,
.policy-card,
.callout {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.feature-strip-grid article {
  flex: 1;
  padding: 24px;
  border-radius: var(--radius-md);
}

.feature-label {
  margin-bottom: 8px;
  color: var(--accent);
}

.section {
  padding: 72px 0;
}

.section.alt {
  background: linear-gradient(180deg, rgba(237, 246, 255, 0.84) 0%, rgba(251, 253, 255, 0.18) 100%);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.section-copy {
  margin-top: 14px;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  padding: 28px;
  border-radius: var(--radius-md);
}

.feature-card p,
.feature-strip-grid p,
.policy-card p,
.callout p {
  margin-top: 10px;
  color: var(--muted);
}

.contact-line {
  margin-top: 16px;
  font-weight: 800;
}

.contact-line a {
  color: var(--primary-deep);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.shot-card {
  padding: 14px;
  border-radius: 28px;
}

.shot-card img {
  width: 100%;
  aspect-ratio: 1320 / 2868;
  object-fit: cover;
  background: #e6eef7;
  border-radius: 20px;
}

.shot-card figcaption {
  padding: 14px 6px 6px;
  font-size: 0.94rem;
  font-weight: 800;
}

.callout {
  justify-content: space-between;
  gap: 20px;
  padding: 34px;
  border-radius: var(--radius-lg);
}

.site-footer {
  padding: 26px 0 36px;
}

.footer-row {
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.policy-main {
  padding-bottom: 28px;
}

.policy-hero {
  padding: 72px 0 22px;
}

.policy-date {
  margin-top: 22px;
}

.policy-card {
  padding: 34px;
  border-radius: var(--radius-lg);
}

.policy-card h2 {
  margin-top: 28px;
  font-size: 1.45rem;
}

.policy-card h2:first-child {
  margin-top: 0;
}

.policy-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin-top: 12px;
  color: var(--muted);
  list-style: none;
}

@media (max-width: 1080px) {
  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-grid {
    gap: 28px;
  }

  .phone-stack {
    min-height: 610px;
  }

  .feature-strip-grid,
  .callout {
    flex-direction: column;
  }

  .callout {
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .nav {
    min-height: auto;
    padding: 16px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .nav-links {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    font-size: 0.88rem;
  }

  .hero-copy {
    width: 100%;
    overflow: hidden;
  }

  .lead,
  .hero-subtitle,
  .quick-points li {
    line-break: anywhere;
    word-break: break-all;
  }

  .nav-links a {
    min-width: 0;
    line-break: anywhere;
    word-break: break-all;
  }

  .hero {
    padding-top: 42px;
  }

  .hero-grid,
  .feature-grid,
  .gallery {
    grid-template-columns: 1fr;
  }

  .hero-line {
    white-space: normal;
  }

  .phone-stack {
    min-height: 600px;
    margin-top: 34px;
  }

  .phone-card {
    width: 64%;
  }

  .phone-card-back {
    bottom: 24px;
  }

  .section,
  .policy-hero {
    padding: 54px 0;
  }

  .feature-card,
  .feature-strip-grid article,
  .policy-card,
  .callout {
    padding: 24px;
  }

  .footer-row {
    align-items: flex-start;
    flex-direction: column;
  }
}
