/* ==============================
   Product List
============================== */
.products-page .page-hero {
  padding: 62px 0 86px;
}

.products-page .page-hero h1 {
  font-size: clamp(1.7rem, 5.2vw, 2.2rem);
  line-height: 1.2;
}

.products-page .products-article {
  max-width: var(--container-width);
  margin-inline: auto;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 420px));
  justify-content: center;
  gap: 18px;
  padding-inline: calc(var(--site-gutter) / 2);
}

.product-card {
  display: block;
  overflow: hidden;
  border-radius: 4px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(31, 73, 125, 0.12);
  border: 1px solid rgba(31, 73, 125, 0.08);
}

.product-card-img {
  background: #f3f8ff;
}

.product-card-img img {
  display: block;
  width: 100%;
  height: auto;
}

.product-card-body {
  padding: 18px;
  border-top: 1px solid rgba(31, 73, 125, 0.08);
}

.product-card-body h2 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  line-height: 1.45;
}

.product-card-body p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.8;
  white-space: pre-line;
}




/* ==============================
   Product Page
============================== */
.product-page {
  /* padding: 0 0 96px; */
  padding: 0 0 4px;
}

.product-container {
  width: min(100% - var(--site-gutter), var(--site-width));
  margin-inline: auto;
  margin: 0 auto;
}

.product-section+.product-section {
  margin-top: 80px;
}

.product-section--hero+.product-section {
  margin-top: 56px;
}

.product-section h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.3;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.product-section h3 {
  margin: 48px 0 12px;
  font-weight: 700;
  font-size: 1.00rem;
  line-height: 1.45;
  color: var(--text);
}

.product-section p+p {
  margin-top: 12px;
}

.product-section>.product-container>p:not(.product-eyebrow):not(.product-note) {
  /* max-width: 760px; */
  color: var(--bodytext);
  font-size: 0.88rem;
  line-height: 1.80;
}

.product-eyebrow+h2 {
  margin-top: 0;
}

.product-section h2+p {
  margin-top: 24px;
}

.product-description-lead {
  margin-top: 24px;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.8;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.product-section--description h3 {
  position: relative;
  margin: 44px 0 12px;
  padding-left: 12px;
  border-left: 4px solid var(--accent);
  color: var(--text);
  font-size: 1.00rem;
  line-height: 1.65;
  font-weight: 800;
}

.product-section--description h3:first-of-type {
  margin-top: 28px;
  margin-bottom: 8px;
}

.product-section--description h3+p {
  margin-top: 10px;
}

.product-section--description p+h3 {
  margin-top: 52px;
}

.product-section--description h4 {
  margin: 30px 0 8px;
  margin-left: 1px;
  padding-left: 8px;

  /* border-left: 3px solid rgba(56, 189, 248, 0.55); */
  border-left: 2px solid rgba(56, 189, 248, 0.45);

  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.5;
  font-weight: 800;
}

.product-section--description h4:first-of-type {
  margin-top: 16px;
}

.product-section--description h3+h4 {
  margin-top: 20px;
}

.product-section--description h4+p {
  margin-top: 0;
}

.product-section--description p+h4 {
  margin-top: 32px;
}

.product-section--description h5 {
  margin: 14px 0 2px;

  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.6;
  font-weight: 800;
}

.product-section--description h5+p {
  margin-top: 0;
}

.product-section--description p+h5 {
  margin-top: 10px;
}

.product-section--description p {
  line-height: 2.05;
}

/* .product-section--description p br {
  content: "";
} */

.product-section--description .product-note {
  /* margin-top: 4px; */
  /* margin-bottom: 24px; */
  font-size: 0.78rem;
  line-height: 1.7;
  white-space: normal;
}


.product-section--description ul {
  margin: 0;
  padding: 4px 16px 4px 1.0em;
  border-radius: 8px;
  /* background: rgba(56, 189, 248, 0.06); */
  color: var(--bodytext);
  font-size: 0.88rem;
  line-height: 1.85;
}

.product-section--description li {
  padding-left: 0.1em;
}

.product-section--description li+li {
  margin-top: 6px;
}

.product-section--description p+ul,
.product-section--description ul+p,
.product-section--description ul+h4 {
  margin-top: 12px;
}









/* ==============================
   Compact / More List
============================== */
.product-more-list {
  margin-top: 18px;
  margin-bottom: 18px;
  margin-right: 10%;
  padding-top: 12px;
  padding-bottom: 12px;
  border-top: 1px solid rgba(56, 189, 248, 0.18);
  border-bottom: 1px solid rgba(56, 189, 248, 0.18);
}

.product-section--description .product-compact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  /* max-height: 128px; */
  max-height: 96px;
  max-width: 640px;
  margin: 0;
  padding: 0;

  overflow: hidden;
  list-style: none;
  background: none;
  border-radius: 0;

  color: var(--bodytext);
  font-size: 0.88rem;
  line-height: 1.6;

  transition: max-height 0.28s ease;
}

.product-section--description .product-compact-list li {
  width: fit-content;
  margin: 0;
  padding: 0;
}

.product-section--description .product-compact-list li+li {
  margin-top: 0;
}

.product-more-list[data-expanded="true"] .product-compact-list {
  max-height: 1200px;
}

.product-more-list-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  /* min-height: 44px; */
  margin-top: 16px;
  margin-bottom: 4px;
  padding: 0 2px;

  border: none;
  background: none;

  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

/* .product-more-list[data-expanded="true"] .product-more-list-button {
  margin-top: 24px;
} */

.product-more-list-button::after {
  content: "＋";
}

.product-more-list[data-expanded="true"] .product-more-list-button::after {
  content: "−";
}

.product-more-list-button[hidden] {
  display: none;
}

.product-compact-list-more {
  opacity: 0.7;
  grid-column: 1 / -1;
}








/* HERO */
.product-hero {
  display: grid;
  gap: 24px;
}

.product-hero h1 {
  /* font-family:
    "Yu Mincho",
    "Hiragino Mincho ProN",
    serif; */

  margin: 0;
  font-weight: 900;
  font-size: clamp(1.9rem, 7.2vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.04em;

  white-space: normal;
  word-break: keep-all;
}

/* .product-subtitle {
  font-size: clamp(1.7rem, 5vw, 3rem);
  font-weight: 900;
  margin-top: 10px;
  line-height: 1.15;
} */

.product-subtitle {
  font-size: clamp(1.5rem, 3.8vw, 2.4rem);
  font-weight: 900;
  margin-top: 10px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.product-divider {
  width: 84px;
  height: 4px;
  margin: 18px 0 24px;
  border-radius: 999px;
  background: var(--accent);
}

.product-catch {
  margin-top: 0;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text);
  /* font-size: clamp(1.05rem, 1.4vw, 1.35rem); */
  /* line-height: 1.8; */
  font-size: clamp(1rem, 1vw, 1.15rem);
  line-height: 1.72;
}

.product-lead {
  color: var(--subtext);
  margin-top: 14px;

  /* font-size: 0.98rem; */
  /* line-height: 1.85; */
  font-size: 0.86rem;
  line-height: 1.7;
}

.product-hero-visual {
  margin-top: 20px;
  margin-inline: -8px;
}

.product-hero-visual img {
  display: block;
  border-radius: 8px;
  width: 100%;
  margin-left: auto;
}

.product-hero-body {
  display: grid;
  gap: 18px;
}

/* HEADING */
.product-eyebrow {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--accent);
}


/* ==============================
   STORE LINKS
============================== */
.product-links a,
.product-links--store a,
.product-links--sub a {
  display: block;
  line-height: 0;
  transition:
    transform 0.18s ease,
    opacity 0.18s ease;
}

.product-links a:hover,
.product-links--store a:hover,
.product-links--sub a:hover {
  transform: translateY(-3px);
  opacity: 0.86;
}

.product-links img,
.product-links--store img,
.product-links--sub img {
  display: block;
  width: auto;
  height: 100%;
  object-fit: contain;
}

.product-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}

.product-links a {
  height: 44px;
}

.product-links-wrap {
  /* order: 3; */
  margin-top: 8px;
}

.product-links--hero {
  display: grid;
  gap: 18px;
  justify-content: center;
}

.product-links--store {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}

.product-links--hero .product-links--store {
  justify-content: center;
}

.product-links--store a {
  height: 34px;
}

.product-links--sub {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.product-links--sub a {
  height: 36px;
}

.product-links--cta {
  margin: 28px auto 0;
}

.product-download .product-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px 18px;
}



/* MOVIE */
.product-movie {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  margin-top: 12px;
}

.product-movie::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

.product-movie iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* GALLERY */
.product-gallery--scroll {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
  /* scroll-snap-type: x proximity; */
  scroll-snap-type: x mandatory;

  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 78vw);

}

.product-gallery-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  scroll-snap-align: start;
  flex: 0 0 auto;
}

.product-gallery-card figure {
  margin: 0;
  background: var(--bg-soft);

  overflow: hidden;
  /* border-radius: 20px;
  background: #edf3f8; */
}

.product-gallery-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-gallery-card--portrait {
  flex: 0 0 220px;
}

.product-gallery-card--portrait figure {
  aspect-ratio: 9 / 16;
}

.product-gallery-card--landscape {
  flex: 0 0 100%;
  flex: 0 0 min(100%, 360px);
}

.product-gallery-card--landscape figure {
  aspect-ratio: 16 / 9;
}




/* FEATURES */
.product-feature-list {
  display: grid;
  gap: 18px;
  margin: 28px 0 0;
}

.product-feature {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.product-feature h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  line-height: 1.5;
  font-weight: 800;
}

.product-feature p {
  margin: 0;
}




/* DETAILS */
.product-details-list {
  display: grid;
  gap: 0;
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.product-details {
  border-bottom: 1px solid var(--line);
}

.product-details summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 24px 0 14px 42px;
}

.product-details summary::-webkit-details-marker {
  display: none;
}


.product-details summary::before {
  content: "+";
  position: absolute;
  left: 0;
  top: 24px;
  color: var(--accent);
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 500;
}


.product-details[open] summary::before {
  content: "−";
}

.product-details-title {
  display: block;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.55;
  color: var(--text);
}

.product-details-summary {
  display: block;
  margin-top: 12px;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--subtext);
}

.product-details-body {
  padding: 0 0 28px 42px;
}

.product-details-body p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 2;
  color: var(--subtext);
}

.product-details-body p+p {
  margin-top: 10px;
}

.product-note {
  margin-top: 28px;
  font-size: 0.80rem;
  line-height: 1.7;
  max-width: none;
  color: var(--bodytext);
  opacity: 0.72;
  white-space: pre-line;
}

.product-details-body .product-note {
  margin-top: 0;
  font-size: 0.90rem;
  line-height: 1.9;
  max-width: none;
  color: var(--bodytext);
  opacity: 0.72;
  white-space: pre-line;
}


/* DOWNLOAD */
.product-download {
  margin-top: 40px;
  padding: 32px 24px;
  border-radius: 12px;
  background: var(--bg-soft);
}

.product-download-title {
  margin: 0;
  text-align: center;
  font-weight: 700;
  color: var(--text);
}

.product-section--info {
  margin-bottom: 96px;
}

.product-section--info .page-table {
  margin-top: 12px;
}

/* ACTIONS */
.product-section--actions {
  margin-top: 64px;
}


.product-section--hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 96px;
  background: var(--bg-soft);
}

.page-table th {
  font-size: 0.99rem;
}

.page-table td {
  font-size: 0.80rem;
}







/* Tablet */
@media (min-width: 768px) {

  /* product list */
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    padding-inline: 16px;
  }

  .product-card {
    box-shadow: 0 10px 26px rgba(31, 73, 125, 0.08);
  }

  /* page */
  .product-feature-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-cta {
    padding: 36px;
  }

  .product-gallery-card--landscape {
    flex: 0 0 420px;
    /* flex: 0 0 30px; */
  }

  .product-section p+p {
    margin-top: 16px;
  }

  .product-section--description .product-compact-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 760px;
    gap: 12px 28px;
  }

}





/* PC */
@media (min-width: 1200px) {

  /* product list */
  .products-grid {
    grid-template-columns: repeat(3, 420px);
    justify-content: center;
    gap: 26px;
  }

  .product-card {
    transition:
      transform 0.2s ease,
      box-shadow 0.2s ease;
  }

  .product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(31, 73, 125, 0.18);
  }


  /* page */
  .product-page {
    padding: 0 0 4px;
  }

  .product-section--hero {
    padding: 72px 0 140px;
  }

  .product-section+.product-section {
    margin-top: 96px;
  }

  .product-section--hero+.product-section {
    margin-top: 64px;
  }

  .product-hero-body {
    grid-template-columns:
      minmax(320px, 42%) minmax(0, 58%);

    grid-template-areas:
      "copy visual"
      "links visual";

    column-gap: clamp(40px, 5vw, 80px);
    row-gap: 40px;

    align-items: start;
  }

  .product-links-wrap {
    grid-area: links;
    justify-self: start;
  }

  .product-hero h1 {
    white-space: normal;
    word-break: keep-all;
    /* font-size: clamp(3rem, 3.1vw, 3.8rem); */
    font-size: clamp(2.4rem, 2.6vw, 3.2rem);
    line-height: 1.04;
  }

  .product-subtitle {
    font-size: clamp(2.2rem, 2.35vw, 2.9rem);
    margin-top: 8px;
  }

  .product-lead {
    font-size: 0.92rem;
    line-height: 1.8;
  }

  .product-links-wrap {
    grid-area: links;
  }


  .product-links--store {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    gap: 12px 14px;
  }

  .product-links--hero .product-links--store {
    justify-content: start;
  }

  .product-links--store a {
    height: 42px;
  }

  .product-links--sub {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: start;
  }

  .product-links--sub a {
    height: 40px;
  }

  .product-links--hero img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .product-links {
    align-items: center;
    gap: 16px;
  }

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

  .product-cta {
    padding: 40px;
  }

  .product-section--movie .product-container {
    max-width: 1040px;
  }


  .product-hero {
    display: block;
  }


  .product-hero-copy {
    grid-area: copy;
    min-width: 0;
    /* max-width: 560px; */
    max-width: 600px;
  }

  .product-hero-visual {
    grid-area: visual;
    min-width: 0;

    align-self: start;
    margin-top: 8px;
    margin-inline: 0;
  }

  .product-hero-visual img {
    display: block;
    width: 100%;
    /* max-width: 860px; */
    max-width: 960px;

    margin-left: auto;
  }

  .product-links-wrap {
    grid-area: links;
    justify-self: start;
  }

  .product-section--description p+h3 {
    margin-top: 56px;
  }

}