:root {
  --bg: #f5f5f7;
  --fg: #111114;
  --muted: #6e6e73;
  --line: rgba(17, 17, 20, 0.1);
  --dark: #050506;
  --dark-2: #111318;
  --white: #ffffff;
  --blue: #1f7aff;
  --cyan: #5ad7ff;
  --violet: #8f7cff;
  --amber: #f0b45b;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Inter, "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(245, 245, 247, 0.82);
  backdrop-filter: blur(18px);
}

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

.logo-mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
}

.nav nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 26px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

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

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

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

.eyebrow,
.tag {
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 56px);
  padding: clamp(64px, 9vw, 120px) clamp(18px, 5vw, 72px) clamp(34px, 6vw, 80px);
  overflow: hidden;
  text-align: center;
}

.hero-copy {
  max-width: 980px;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(54px, 9vw, 118px);
  line-height: 0.96;
  letter-spacing: 0;
}

.lead {
  max-width: 780px;
  margin: 0 auto 30px;
  color: var(--muted);
  font-size: clamp(19px, 2.4vw, 28px);
  line-height: 1.45;
}

.hero-actions,
.buy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.btn,
button {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 11px 20px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.primary,
button {
  background: var(--blue);
  color: white;
}

.ghost {
  background: rgba(0, 0, 0, 0.06);
  color: var(--fg);
}

.hero-gallery {
  position: relative;
  display: grid;
  grid-template-columns: 0.78fr 0.54fr 0.92fr;
  align-items: end;
  gap: clamp(12px, 3vw, 36px);
  width: min(1120px, 100%);
  min-height: 440px;
  margin-top: clamp(42px, 7vw, 76px);
}

.hero-gallery::before {
  content: "";
  position: absolute;
  inset: auto 5% 0;
  height: 42%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 122, 255, 0.18), transparent 68%);
  filter: blur(16px);
}

.hero-device {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  box-shadow: var(--shadow);
}

.tablet-device {
  width: min(290px, 28vw);
  aspect-ratio: 0.72;
  padding: 12px;
  border-radius: 34px;
  background: linear-gradient(145deg, #31343b, #0a0b0d);
  transform: rotate(-7deg) translateY(34px);
}

.glass-screen {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding: 24px;
  border-radius: 24px;
  background:
    linear-gradient(150deg, rgba(90, 215, 255, 0.7), transparent 44%),
    linear-gradient(330deg, rgba(143, 124, 255, 0.62), transparent 52%),
    #10131a;
  color: white;
  text-align: left;
}

.glass-screen span {
  width: 48px;
  height: 7px;
  margin-bottom: auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
}

.glass-screen strong {
  font-size: 38px;
  line-height: 1;
}

.glass-screen small {
  color: rgba(255, 255, 255, 0.66);
  font-weight: 800;
}

.station-device {
  width: min(260px, 26vw);
  aspect-ratio: 1;
  border-radius: 42px;
  background: linear-gradient(145deg, #20232b, #07080a);
  transform: translateY(18px);
}

.station-core {
  position: absolute;
  inset: 24%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(90, 215, 255, 0.95), transparent 35%),
    radial-gradient(circle, rgba(143, 124, 255, 0.7), transparent 62%),
    #10131a;
}

.desktop-device {
  width: min(420px, 38vw);
  padding-bottom: 42px;
  box-shadow: none;
  transform: rotate(4deg) translateY(38px);
}

.desktop-screen {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 12px;
  height: min(270px, 24vw);
  min-height: 190px;
  padding: 18px;
  border: 12px solid #17191d;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(31, 122, 255, 0.22), transparent),
    #f8f8fb;
  box-shadow: var(--shadow);
}

.desktop-screen span {
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(31, 122, 255, 0.22), rgba(143, 124, 255, 0.18));
}

.desktop-screen span:first-child {
  grid-row: span 2;
}

.desktop-base {
  width: 32%;
  height: 42px;
  margin: 0 auto;
  border-radius: 0 0 18px 18px;
  background: #1b1d22;
}

.lineup,
.store,
.compare,
.faq,
.support {
  padding: clamp(64px, 9vw, 118px) clamp(18px, 5vw, 72px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: end;
  max-width: 1180px;
  margin: 0 auto 34px;
}

.section-heading.center {
  display: block;
  max-width: 820px;
  text-align: center;
}

.section-heading h2,
.experience h2,
.support h2 {
  margin-bottom: 12px;
  font-size: clamp(34px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.family-grid,
.product-grid,
.compare-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.family-card,
.product-card,
.compare-grid article,
.faq details {
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.family-card {
  min-height: 540px;
  padding: 26px;
}

.family-visual {
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 300px;
  margin-bottom: 28px;
  border-radius: 22px;
  background: #f0f1f4;
}

.family-visual img,
.product-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.family-card h3 {
  margin-bottom: 8px;
  font-size: 30px;
  line-height: 1.12;
}

.family-card p:last-child,
.product-card p,
.compare-grid p,
.faq p,
.support p {
  color: var(--muted);
}

.experience {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  padding: clamp(76px, 11vw, 140px) clamp(18px, 5vw, 72px);
  background: var(--dark);
  color: white;
}

.experience-copy {
  max-width: 640px;
}

.experience p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.68);
  font-size: 19px;
}

.flow-stage {
  display: grid;
  grid-template-columns: 1fr 0.34fr 1.15fr 0.34fr 1fr;
  align-items: center;
  min-height: 360px;
}

.flow-node {
  display: grid;
  place-items: center;
  min-height: 120px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
  color: white;
  font-size: clamp(18px, 3vw, 34px);
  font-weight: 800;
  box-shadow: 0 22px 70px rgba(31, 122, 255, 0.16);
}

.flow-node.large {
  min-height: 220px;
  background:
    radial-gradient(circle, rgba(90, 215, 255, 0.36), transparent 60%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06));
}

.flow-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(90, 215, 255, 0.8), transparent);
}

.device-family {
  max-width: 1180px;
  margin: 0 auto clamp(38px, 6vw, 72px);
}

.device-family:last-child {
  margin-bottom: 0;
}

.family-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.family-heading h3 {
  margin: 0;
  font-size: clamp(30px, 5vw, 54px);
}

.product-card {
  overflow: hidden;
  position: relative;
}

.product-card.featured {
  outline: 2px solid rgba(31, 122, 255, 0.45);
}

.product-card.featured::before {
  content: "おすすめ";
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--blue);
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.product-visual {
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 300px;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.82), transparent 38%),
    #eef0f4;
}

.slate .product-visual {
  background-color: #edf5ff;
}

.station .product-visual {
  background-color: #f6f0ff;
}

.console .product-visual {
  background-color: #f1f5f2;
}

.meta {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.meta h4 {
  margin: 0;
  font-size: 25px;
  line-height: 1.16;
}

.meta ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 14px;
  list-style: none;
}

.meta li::before {
  content: "+ ";
  color: var(--blue);
  font-weight: 800;
}

.buy-row {
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.buy-row strong {
  font-size: 20px;
}

.buy-row button {
  min-height: 38px;
  padding: 8px 15px;
}

.compare {
  background: var(--dark);
  color: white;
}

.compare .section-heading p:not(.eyebrow),
.compare-grid p {
  color: rgba(255, 255, 255, 0.68);
}

.compare-grid article {
  min-height: 260px;
  padding: 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
}

.compare-grid h3 {
  font-size: 32px;
}

.compare-grid strong {
  color: var(--cyan);
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 980px;
  margin: 0 auto;
}

.faq details {
  padding: 22px 24px;
}

.faq summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
}

.faq details p {
  margin: 14px 0 0;
}

.support {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
  gap: 28px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}

.inquiry-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  padding: 24px;
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.inquiry-form label {
  display: grid;
  gap: 8px;
  color: var(--fg);
  font-size: 14px;
  font-weight: 800;
}

.inquiry-form .full {
  grid-column: 1 / -1;
}

.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 13px;
  background: #fbfbfd;
  color: var(--fg);
  font: inherit;
}

.inquiry-form textarea {
  resize: vertical;
}

.inquiry-form input::placeholder,
.inquiry-form textarea::placeholder {
  color: rgba(110, 110, 115, 0.76);
}

.inquiry-form button {
  width: 100%;
}

.cart {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 20;
  width: min(340px, calc(100vw - 32px));
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 22px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-weight: 800;
}

.cart-count {
  min-width: 28px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--blue);
  color: white;
  text-align: center;
}

.cart-list {
  display: grid;
  gap: 6px;
  max-height: 180px;
  margin: 0;
  padding: 0;
  overflow: auto;
  color: var(--muted);
  font-size: 14px;
  list-style: none;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-weight: 800;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer a {
  text-decoration: none;
}

@media (max-width: 980px) {
  .hero-gallery,
  .family-grid,
  .product-grid,
  .compare-grid,
  .experience,
  .support {
    grid-template-columns: 1fr;
  }

  .hero-gallery {
    max-width: 520px;
    min-height: auto;
  }

  .tablet-device,
  .station-device,
  .desktop-device {
    width: min(82vw, 380px);
    transform: none;
  }

  .desktop-screen {
    height: 240px;
  }

  .flow-stage {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .flow-line {
    width: 2px;
    height: 44px;
    margin: 0 auto;
  }
}

@media (max-width: 620px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    overflow-x: auto;
    white-space: nowrap;
  }

  h1 {
    font-size: 48px;
  }

  .hero-actions .btn,
  .inquiry-form button {
    width: 100%;
  }

  .lineup,
  .store,
  .compare,
  .faq,
  .support {
    padding-left: 16px;
    padding-right: 16px;
  }

  .family-card,
  .product-card,
  .compare-grid article,
  .faq details,
  .inquiry-form {
    border-radius: 22px;
  }

  .family-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .inquiry-form {
    grid-template-columns: 1fr;
  }

  .cart {
    position: static;
    width: auto;
    margin: 0 16px 18px;
  }

  .footer {
    flex-direction: column;
  }
}
