:root {
  --color-primary: #209fc3;
  --color-primary-dark: #187792;
  --color-sky: #c2def2;
  --color-sky-light: #e8f5fb;
  --color-text: #222;
  --color-muted: #66737d;
  --color-line: #d9e2e8;
  --color-footer: #d3dbe1;
  --color-white: #fff;
  --container: 1050px;
  --shadow-soft: 0 18px 45px rgba(20, 69, 92, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-white);
  color: var(--color-text);
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.7;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(32, 159, 195, 0.12);
  box-shadow: 0 5px 18px rgba(20, 69, 92, 0.08);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 32px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.site-logo img {
  width: auto;
  height: 40px;
}

.global-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  color: #1094b0;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

.global-nav a {
  position: relative;
  padding-block: 22px;
}

.global-nav a::after {
  position: absolute;
  right: 0;
  bottom: 16px;
  left: 0;
  height: 2px;
  background: var(--color-primary);
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.global-nav a:hover::after,
.global-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
}

.drawer-overlay,
.drawer-menu {
  display: none;
}

.page-hero {
  min-height: 190px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.78) 52%, rgba(255, 255, 255, 0.44) 100%),
    url("../images/page-cover.webp") center / cover no-repeat;
}

.page-hero__inner {
  display: flex;
  align-items: center;
  min-height: 190px;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 900;
  line-height: 1.2;
}

.breadcrumb {
  background: #f6f9fb;
  border-block: 1px solid var(--color-line);
  color: var(--color-muted);
  font-size: 13px;
}

.breadcrumb ol {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  padding: 0;
  list-style: none;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.breadcrumb li + li::before {
  width: 6px;
  height: 6px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

.item-list {
  background: var(--color-sky);
}

.item-list__inner {
  padding: 76px 0 86px;
}

.section-title {
  display: grid;
  grid-template-columns: 190px 1fr;
  width: min(470px, 100%);
  min-height: 60px;
  margin: 0 auto 64px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
}

.section-title__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 16px;
}

.section-title h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 -18px 0 0;
  padding-right: 16px;
  background: #3399cc;
  color: var(--color-white);
  font-size: 30px;
  font-weight: 900;
  transform: skewX(-20deg);
}

.section-title h2 span {
  transform: skewX(20deg);
}

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

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 8px;
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
}

.product-card h3 {
  margin: 0;
  padding: 10px 14px;
  background: #3399cc;
  color: var(--color-white);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.45;
}

.product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 22px 24px;
}

.product-card__image {
  width: 100%;
  margin-bottom: 14px;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.product-card__category {
  width: fit-content;
  margin: 0 0 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #ffd814;
  color: var(--color-primary-dark);
  font-size: 12px;
  font-weight: 700;
}

.product-card h4 {
  margin: 0 0 10px;
  color: #3399cc;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.product-card__body > p:not(.product-card__category) {
  margin: 0 0 22px;
  color: #333;
  font-size: 14px;
  line-height: 1.6;
}

.product-card__button,
.footer-cta,
.detail-back__button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 48px 0 28px;
  border-radius: 999px;
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.product-card__button {
  margin-top: auto;
  padding-inline: 48px;
}

.product-card__button::after,
.footer-cta::after,
.detail-back__button::after {
  position: absolute;
  top: 50%;
  right: 22px;
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  content: "";
  transform: translateY(-50%) rotate(45deg);
}

.product-card__button:hover,
.footer-cta:hover,
.detail-back__button:hover {
  background: var(--color-primary-dark);
}

.product-detail {
  background: var(--color-white);
}

.product-detail__inner {
  display: grid;
  grid-template-columns: minmax(300px, 38%) 1fr;
  gap: 56px;
  align-items: center;
  padding: 72px 0;
}

.product-detail__media {
  width: 100%;
  padding: 32px;
  border-radius: 8px;
  background: var(--color-sky-light);
  justify-self: center;
  max-width: 480px;
}

.product-carousel {
  position: relative;
}

.product-carousel__viewport {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--color-white);
}

.product-carousel__track {
  display: flex;
  transform: translateX(calc(var(--carousel-index, 0) * -100%));
  transition: transform 0.38s ease;
}

.product-carousel__slide {
  flex: 0 0 100%;
}

.product-carousel__image-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.product-carousel__image-button img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
}

.product-carousel__control {
  position: absolute;
  top: 50%;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(32, 159, 195, 0.92);
  color: var(--color-white);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease;
}

.product-carousel__control:hover {
  background: var(--color-primary-dark);
}

.product-carousel__control::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  content: "";
}

.product-carousel__control--prev {
  left: 14px;
}

.product-carousel__control--prev::before {
  transform: translate(-35%, -50%) rotate(-135deg);
}

.product-carousel__control--next {
  right: 14px;
}

.product-carousel__control--next::before {
  transform: translate(-65%, -50%) rotate(45deg);
}

.product-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.product-carousel__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #a8c6d4;
  cursor: pointer;
}

.product-carousel__dot.is-active {
  background: var(--color-primary);
}

.product-carousel__hint {
  margin: 14px 0 0;
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.is-lightbox-open {
  overflow: hidden;
}

.image-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 30, 0.72);
}

.image-lightbox__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(1100px, 100%);
  max-height: min(84vh, 780px);
  pointer-events: none;
}

.image-lightbox__image {
  max-width: 100%;
  max-height: min(84vh, 780px);
  border-radius: 8px;
  background: var(--color-white);
  object-fit: contain;
  pointer-events: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.image-lightbox__close {
  position: absolute;
  top: -18px;
  right: -18px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--color-white);
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.image-lightbox__close::before,
.image-lightbox__close::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 2px;
  background: var(--color-primary-dark);
  content: "";
}

.image-lightbox__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.image-lightbox__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.product-detail__category {
  width: fit-content;
  margin: 0 0 16px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #ffd814;
  color: var(--color-primary-dark);
  font-size: 13px;
  font-weight: 700;
}

.product-detail h2 {
  margin: 0 0 10px;
  color: var(--color-primary-dark);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 900;
  line-height: 1.3;
}

.product-detail__lead {
  margin: 0 0 24px;
  color: #334155;
  font-size: 22px;
  font-weight: 700;
}

.product-detail__summary {
  margin: 0 0 32px;
  color: #45545f;
  font-size: 16px;
}

.spec-section {
  padding: 72px 0 86px;
  background: var(--color-sky);
}

.spec-section h2 {
  margin: 0 0 32px;
  color: var(--color-primary-dark);
  font-size: 32px;
  font-weight: 900;
  text-align: center;
}

.spec-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-line);
}

.spec-list div {
  display: grid;
  grid-template-columns: 150px 1fr;
  min-height: 56px;
  background: var(--color-white);
}

.spec-list dt,
.spec-list dd {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 12px 16px;
  font-size: 14px;
}

.spec-list dt {
  background: #f6f9fb;
  color: var(--color-primary-dark);
  font-weight: 700;
}

.spec-list dd {
  color: #333;
}

.detail-back {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.site-footer {
  background: var(--color-footer);
  border-top: 10px solid #e9edf0;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  padding: 32px 0 28px;
}

.footer-brand {
  color: #333;
  font-size: 14px;
}

.footer-brand .site-logo {
  margin-bottom: 12px;
}

.footer-brand address {
  margin: 0;
  font-style: normal;
  line-height: 1.6;
}

.footer-brand address a {
  color: var(--color-primary);
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 24px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  color: #52616c;
  font-size: 15px;
}

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

.footer-cta {
  width: fit-content;
  min-height: 44px;
  border-radius: 4px;
  background: #334155;
  font-size: 14px;
}

.copyright {
  margin: 0;
  padding: 15px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.75);
  color: #717171;
  font-size: 13px;
  text-align: center;
}

@media (max-width: 900px) {
  .site-header__inner {
    min-height: 60px;
    gap: 16px;
  }

  .site-logo img {
    height: 40px;
  }

  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    gap: 6px;
    z-index: 70;
  }

  .menu-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    margin: 0 auto;
    border-radius: 999px;
    background: var(--color-primary);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .is-menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .is-menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .is-menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .global-nav {
    display: none;
  }

  .drawer-overlay {
    position: fixed;
    inset: 60px 0 0;
    z-index: 40;
    display: block;
    background: rgba(255, 255, 255, 0.72);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  .drawer-menu {
    position: fixed;
    top: 60px;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: block;
    width: min(300px, 78vw);
    padding: 18px 20px 32px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: -12px 0 30px rgba(20, 69, 92, 0.12);
    transform: translateX(100%);
    transition: transform 0.25s ease;
  }

  .is-menu-open {
    overflow: hidden;
  }

  .is-menu-open .drawer-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .is-menu-open .drawer-menu {
    transform: translateX(0);
  }

  .drawer-nav {
    display: grid;
  }

  .drawer-nav a {
    display: block;
    padding: 14px 2px;
    border-bottom: 1px solid var(--color-line);
    color: #1094b0;
    font-size: 15px;
    font-weight: 700;
    text-align: left;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }

  .footer-brand .site-logo {
    justify-content: center;
  }

  .footer-nav {
    justify-content: center;
  }

  .footer-cta {
    width: min(100%, 420px);
    margin: 0 auto;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-detail__inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 52px 0;
  }

  .spec-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .page-hero,
  .page-hero__inner {
    min-height: 130px;
  }

  .item-list__inner {
    padding: 48px 0 58px;
  }

  .section-title {
    grid-template-columns: 42% 58%;
    min-height: 54px;
    margin-bottom: 36px;
  }

  .section-title__logo {
    padding-left: 8px;
  }

  .section-title__logo img {
    width: 92px;
  }

  .section-title h2 {
    min-width: 0;
    font-size: 24px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card__body {
    padding: 18px 20px 22px;
  }

  .product-card__button,
  .footer-cta {
    width: 100%;
    padding-inline: 20px 42px;
  }

  .product-card__button {
    padding-inline: 42px;
  }

  .product-detail__media {
    padding: 20px;
  }

  .product-detail__lead {
    font-size: 18px;
  }

  .spec-list div {
    grid-template-columns: 1fr;
  }

  .spec-list dt,
  .spec-list dd {
    padding: 10px 14px;
  }
}
