:root {
  --page-width: 1120px;
  --text: #1f1f1f;
  --muted: #666;
  --line: #d9d9d9;
  --brand: #cf2f30;
  --brand-dark: #b41f24;
  --bg-soft: #f3f3f3;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "BIZ UDPGothic", "Yu Gothic UI", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.55;
}

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

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

button {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.97);
}

.header-inner {
  width: min(var(--page-width), calc(100% - 18px));
  min-height: 56px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.global-nav a {
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  font-weight: 700;
}

.global-nav a.is-active {
  color: var(--brand);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  width: 42px;
  height: 42px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  color: var(--brand);
  font-size: 0.85rem;
  line-height: 1.05;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  background: #fff;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #111;
}

.hero,
.summary-band,
.block,
.feature-list,
.killer-copy,
.site-footer {
  width: min(var(--page-width), calc(100% - 18px));
  margin-left: auto;
  margin-right: auto;
}

.hero {
  position: relative;
  margin-top: 0;
  margin-bottom: 22px;
}

.hero-image {
  width: 100%;
  height: auto;
}

.hero-overlay {
  position: absolute;
  left: 28px;
  bottom: 12px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.hero-copy {
  color: #fff;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.14), 0 6px 16px rgba(0, 0, 0, 0.18);
  max-width: 520px;
}

.hero-copy p {
  margin: 0;
  font-size: clamp(1.3rem, 2.45vw, 2.3rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.hero-copy h1 {
  margin: 4px 0 0;
  font-size: clamp(2.05rem, 4.25vw, 3.75rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transform: translateX(-0.08em);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 152px;
  min-height: 38px;
  padding: 0 18px;
  align-self: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-dark);
  font-size: 0.76rem;
  font-weight: 700;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.14);
  white-space: nowrap;
}

.hero-badge {
  position: absolute;
  right: 38px;
  bottom: 34px;
  width: 176px;
  padding: 10px 12px 44px;
  background: rgba(207, 47, 48, 0.92);
  color: #fff;
  border-radius: 8px;
}

.hero-badge p,
.hero-badge strong,
.hero-badge span {
  display: block;
}

.hero-badge p {
  margin: 0 0 14px;
  font-size: 0.65rem;
  font-weight: 700;
}

.hero-badge strong {
  font-size: 1.1rem;
  font-weight: 400;
}

.hero-badge span {
  font-size: 0.98rem;
  line-height: 1.45;
}

.hero-badge i {
  position: absolute;
  right: -22px;
  bottom: -22px;
  width: 30px;
  height: 28px;
  background: var(--brand);
  border-radius: 0 0 6px 6px;
}

.summary-band {
  display: grid;
  grid-template-columns: 120px 320px 1fr;
  gap: 16px;
  align-items: center;
  justify-items: center;
  margin-bottom: 24px;
}

.summary-device {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6px 0;
}

.summary-device img {
  width: 88px;
}

.summary-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.summary-icon-grid {
  display: grid;
  grid-template-columns: repeat(2, 68px);
  gap: 10px;
  justify-content: center;
}

.summary-icons img {
  width: 68px;
}

.summary-copy {
  color: #0d69a7;
  font-size: clamp(1.4rem, 2.5vw, 2.4rem);
  line-height: 1.15;
  font-weight: 700;
  text-align: center;
}

.block {
  padding: 20px 0 12px;
}

.block-heading {
  margin-bottom: 10px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--brand);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.block-heading h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
}

.two-col {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  align-items: center;
}

.two-col-soft {
  padding: 12px;
  background: var(--bg-soft);
  border-radius: 10px;
  align-items: center;
  text-align: center;
}

.trailer-button {
  position: relative;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.trailer-thumb {
  width: 100%;
  border-radius: 2px;
}

.trailer-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.trailer-play img {
  width: 76px;
}

.trailer-caption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 10px;
  display: flex;
  justify-content: space-between;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
}

.support-copy p,
.feature-text li,
.feature-text p,
.value-copy p,
.contact-copy p,
.contact-copy a {
  font-size: 0.92rem;
}

.support-copy p {
  margin: 0 0 10px;
  color: var(--muted);
}

.feature-list {
  padding: 12px 0;
}

.feature-row {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 22px;
  align-items: center;
  padding: 16px 0;
}

.feature-row-alt {
  grid-template-columns: 1.05fr 0.95fr;
}

.feature-text h2 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.feature-text ul {
  margin: 0;
  padding-left: 18px;
}

.feature-text li + li {
  margin-top: 6px;
}

.feature-inline-note {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #d8d8d8;
}

.feature-inline-note h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 900;
}

.sensor-icons {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.sensor-icons img {
  width: 64px;
}

.feature-media {
  padding: 10px;
  background: #f7f7f7;
  border-radius: 8px;
}

.room-media {
  position: relative;
  min-height: 280px;
  padding-left: 88px;
}

.room-image {
  width: 100%;
}

.device-float {
  position: absolute;
  left: 12px;
  bottom: 10px;
  width: 74px;
}

.feature-media-mapstack {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 10px 10px;
}

.mapstack-top {
  width: 68%;
  margin: 0 auto -14px;
  position: relative;
  z-index: 2;
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.08);
  background: #fff;
}

.mapstack-bottom {
  width: 92%;
  position: relative;
  z-index: 1;
}

.value-layout {
  align-items: start;
}

.value-image img {
  border-radius: 2px;
}

.value-copy {
  padding-top: 8px;
}

.value-copy h2 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3.1vw, 2.6rem);
  line-height: 1.15;
}

.value-copy p {
  margin: 0 0 12px;
  color: var(--muted);
}

.service-visual-large img {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.killer-copy {
  margin-top: 6px;
  margin-bottom: 8px;
  text-align: center;
}

.killer-copy p {
  margin: 0;
  color: #f1b100;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 0 rgba(140, 97, 0, 0.12);
}

.news-list {
  display: grid;
  gap: 10px;
}

.news-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: center;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid #ededed;
  border-radius: 999px;
}

.news-item time {
  color: var(--brand);
  font-weight: 700;
  font-size: 0.84rem;
}

.news-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.contact-layout-qr {
  padding: 16px;
  background: #fafafa;
  border: 1px solid #efefef;
  border-radius: 16px;
}

.contact-topline {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 20px;
  align-items: start;
}

.contact-division p {
  margin: 0 0 8px;
}

.contact-copy a {
  color: var(--brand-dark);
  font-weight: 700;
}

.contact-qr {
  width: 220px;
  justify-self: end;
}

.contact-qr img {
  width: 100%;
}

.site-footer {
  padding: 28px 0 40px;
  text-align: center;
  color: #888;
  font-size: 0.78rem;
}

.site-footer p,
.site-footer small {
  margin: 0;
}

.site-footer small {
  display: block;
  margin-top: 6px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
}

.modal.is-open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.modal-dialog {
  position: relative;
  width: min(980px, calc(100% - 24px));
  margin: 60px auto;
  padding: 24px;
  background: #fff;
  border-radius: 18px;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f0f0f0;
}

.video-placeholder p {
  margin: 10px 0 0;
  color: var(--muted);
}

.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 980px) {
  .header-inner {
    width: calc(100% - 24px);
    justify-content: space-between;
    gap: 12px;
  }

  .nav-toggle {
    display: inline-block;
  }

  .global-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 10px;
    left: 10px;
    display: none;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
  }

  .global-nav.is-open {
    display: flex;
  }

  .hero-image {
    min-height: 420px;
    object-fit: cover;
    object-position: 62% center;
  }

  .hero-overlay {
    left: 20px;
    bottom: 18px;
    gap: 16px;
  }

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

  .hero-badge {
    right: 18px;
    bottom: 18px;
    width: 156px;
  }

  .summary-band,
  .two-col,
  .feature-row,
  .feature-row-alt,
  .contact-topline {
    grid-template-columns: 1fr;
  }

  .two-col,
  .feature-row,
  .feature-row-alt {
    gap: 18px;
  }

  .feature-row > *,
  .feature-row-alt > * {
    width: 100%;
  }

  .feature-media-mapstack,
  .service-visual-large img {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
  }

  .contact-layout-qr {
    padding: 18px;
  }

  .summary-copy {
    text-align: center;
  }

  .contact-qr {
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .header-inner,
  .summary-band,
  .block,
  .feature-list,
  .killer-copy,
  .site-footer {
    width: calc(100% - 20px);
  }

  .header-inner {
    min-height: 52px;
  }

  .brand-icon {
    width: 34px;
    height: 34px;
  }

  .brand-copy {
    font-size: 0.72rem;
  }

  .hero {
    width: 100%;
    margin-bottom: 18px;
  }

  .hero-image {
    min-height: 390px;
    object-position: 60% center;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-overlay {
    left: 14px;
    right: 14px;
    bottom: 14px;
    gap: 16px;
  }

  .hero-badge {
    right: 12px;
    bottom: 16px;
    width: 122px;
    padding: 8px 8px 22px;
  }

  .hero-badge i {
    right: -10px;
    bottom: -10px;
    width: 18px;
    height: 16px;
  }

  .hero-badge p {
    margin-bottom: 10px;
    font-size: 0.54rem;
  }

  .hero-badge strong {
    font-size: 0.9rem;
  }

  .hero-badge span {
    font-size: 0.76rem;
    line-height: 1.32;
  }

  .summary-band {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 18px;
  }

  .hero-cta {
    min-width: 160px;
  }

  .summary-icon-grid {
    grid-template-columns: repeat(2, 60px);
  }

  .summary-device img {
    width: 78px;
  }

  .summary-icons img,
  .sensor-icons img {
    width: 60px;
  }

  .summary-copy {
    font-size: clamp(1.25rem, 7vw, 1.9rem);
  }

  .two-col-soft {
    padding: 10px;
  }

  .feature-list {
    padding: 6px 0;
  }

  .feature-row,
  .feature-row-alt {
    gap: 14px;
    padding: 12px 0;
  }

  .feature-text h2 {
    font-size: clamp(1.45rem, 6.4vw, 1.95rem);
  }

  .sensor-icons {
    flex-wrap: wrap;
    gap: 8px;
  }

  .feature-media {
    padding: 8px;
  }

  .room-media {
    padding-left: 54px;
    min-height: 190px;
  }

  .device-float {
    left: 8px;
    bottom: 8px;
    width: 44px;
  }

  .mapstack-top {
    width: 74%;
    margin-bottom: -8px;
  }

  .block-heading h2,
  .value-copy h2 {
    font-size: clamp(1.45rem, 6.6vw, 2rem);
  }

  .killer-copy p {
    font-size: clamp(1.35rem, 6vw, 2rem);
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 10px 14px;
    border-radius: 18px;
  }

  .news-item p {
    font-size: 0.82rem;
  }

  .contact-layout-qr {
    padding: 14px;
    border-radius: 12px;
  }

  .contact-copy a {
    display: inline-block;
    word-break: break-all;
  }

  .contact-qr {
    width: min(180px, 55vw);
    justify-self: center;
  }
}

@media (max-width: 480px) {
  .header-inner,
  .summary-band,
  .block,
  .feature-list,
  .killer-copy,
  .site-footer {
    width: calc(100% - 16px);
  }

  .hero-image {
    min-height: 350px;
    object-position: 58% center;
  }

  .hero-overlay {
    left: 10px;
    right: 10px;
    bottom: 10px;
    gap: 14px;
  }

  .hero-copy p {
    font-size: clamp(1rem, 6.8vw, 1.55rem);
  }

  .hero-copy h1 {
    font-size: clamp(1.75rem, 10.2vw, 2.85rem);
    line-height: 0.95;
  }

  .hero-cta {
    min-width: 148px;
    min-height: 36px;
    padding: 0 16px;
  }

  .hero-badge {
    width: 106px;
    bottom: 14px;
  }

  .summary-icon-grid {
    grid-template-columns: repeat(2, 52px);
    gap: 8px;
  }

  .summary-icons img,
  .sensor-icons img {
    width: 52px;
  }

  .summary-device img {
    width: 72px;
  }

  .summary-copy {
    font-size: clamp(1.15rem, 8vw, 1.6rem);
  }

  .trailer-play img {
    width: 62px;
  }

  .trailer-caption {
    font-size: 0.78rem;
  }

  .feature-text li,
  .support-copy p,
  .value-copy p,
  .contact-copy p,
  .contact-copy a {
    font-size: 0.86rem;
  }
}
