@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700&display=swap');

:root {
  --honda-red: #E60012;
  --dark-bg: #3a3a3a;
  --dark-card: #4a4a4a;
  --text-light: #ffffff;
  --text-muted: #cccccc;
  --nav-bg: #2a2a2a;

  --sp-xxs: 8px;
  --sp-xs: 12px;
  --sp-sm: 16px;
  --sp-md: 24px;
  --sp-lg: 32px;
  --sp-xl: 48px;
  --sp-xxl: 64px;

  --r-sm: 4px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'HondaGlobalFontJP-Regular', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  background: #ffffff;
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-md);
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--sp-md);
}

/* ---------- Title Block ---------- */
.titleblock {
  padding: var(--sp-xxl) var(--sp-md) var(--sp-lg);
  text-align: center;
}

.titleblock__logo-wrapper {
  margin: 0 auto;
  max-width: 600px;
}

.titleblock__logo {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.titleblock__badge-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--sp-xxs);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-md);
}

.badge-sale {
  background: transparent;
  color: #333333;
  font-size: 14px;
  font-weight: 600;
  padding: 0;
  white-space: nowrap;
  letter-spacing: 0.05em;
}

.btn-corp {
  background: var(--honda-red);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--r-sm);
  transition: opacity 0.3s;
  white-space: nowrap;
}

.btn-corp:hover {
  opacity: 0.8;
}

/* ---------- Local Nav ---------- */
.localnav {
  background: #1a1a1a;
  position: sticky;
  top: 0;
  z-index: 100;
}

.localnav__row {
  display: flex;
  align-items: center;
  gap: var(--sp-xxl);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-md);
  min-height: 64px;
}

.localnav__home {
  display: flex;
  align-items: center;
  padding: var(--sp-xs);
  transition: opacity 0.3s;
  flex-shrink: 0;
}

.localnav__home img {
  width: 36px;
  height: 40px;
  display: block;
}

.localnav__home:hover {
  opacity: 0.8;
}

.localnav__list {
  display: flex;
  gap: var(--sp-xxl);
  list-style: none;
  flex: 1;
  justify-content: center;
}

.localnav__list a {
  display: block;
  color: var(--text-light);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: var(--sp-sm) 0;
  transition: opacity 0.3s;
  white-space: nowrap;
}

.localnav__list a:hover {
  opacity: 0.7;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark-bg);
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left 100%;
  transform: scale(1.2);
}

/* PC表示：スクロール量に連動した演出 */
@media (min-width: 768px) {
  .hero {
    /* --hero-progress は 0（最上部）〜 1（スクロール後）を JS が設定 */
    --hero-progress: 0;
    /* 高さ：370px（progress 0）→ 560px（progress 1） */
    min-height: calc(370px + (560px - 370px) * var(--hero-progress));
  }

  .hero__copy {
    overflow: hidden;
    /* コピー：スクロール量に応じてフェードイン＆展開 */
    opacity: var(--hero-progress);
    transform: translateY(calc(20px * (1 - var(--hero-progress))));
    max-height: calc(500px * var(--hero-progress));
    margin-top: calc(var(--sp-lg) * var(--hero-progress));
  }
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 24, 20, 0.78) 0%, rgba(20, 24, 20, 0.42) 46%, rgba(20, 24, 20, 0.1) 100%);
}

.hero__content {
  position: relative;
  z-index: 10;
  max-width: 1180px;
  margin: 0 auto;
  padding: var(--sp-xxl) var(--sp-md);
  width: 100%;
  color: var(--text-light);
}

.hero__title {
  font-family: 'HondaGlobalFontJP-Bold', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 700;
  line-height: 1.28;
  margin: 0;
  max-width: 12em;
}

.hero__copy {
  margin: var(--sp-lg) 0 0;
  max-width: 30em;
  font-size: 12px;
  line-height: 1.9;
  color: rgba(255,255,255,0.72);
}

/* ---------- Dark Sections ---------- */
.section-dark {
  background: var(--dark-bg);
  padding: var(--sp-xxl) 0;
  color: var(--text-light);
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-align: center;
  margin: 0 0 var(--sp-xl);
  color: var(--text-light);
}

/* ---------- Products ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-lg);
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  background: transparent;
  border-radius: 0;
  overflow: visible;
  transition: transform 0.3s;
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-card__img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #d0d0d0;
  border-radius: 0;
}

.product-card__body {
  display: flex;
  gap: var(--sp-sm);
  padding: var(--sp-md) 0;
  align-items: flex-start;
  background: transparent;
}

.product-card__swatch {
  flex-shrink: 0;
}

.product-card__swatch img {
  width: 50px;
  height: 50px;
  border-radius: 0;
  object-fit: cover;
}

.product-card__info {
  flex: 1;
}

.product-card__name {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text-light);
  letter-spacing: 0.05em;
}

.product-card__desc {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- Gallery ---------- */
#gallery {
  background: #212121;
  padding: var(--sp-xxl) 0;
}

.gallery-wrapper {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 80px;
}

.gallery-grid {
  display: flex;
  overflow-x: hidden;
  scroll-snap-type: x mandatory;
  gap: var(--sp-lg);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.gallery-grid::-webkit-scrollbar {
  display: none;
}

.gallery-item {
  flex: 0 0 calc(50% - 16px);
  scroll-snap-align: start;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-light);
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.3s;
  z-index: 10;
}

.gallery-nav:hover {
  opacity: 0.7;
}

.gallery-nav svg {
  width: 40px;
  height: 40px;
}

.gallery-nav--prev {
  left: 0;
}

.gallery-nav--next {
  right: 0;
}

.gallery-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: var(--sp-lg);
}

/* ---------- Spec ---------- */
.spec-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-xxl);
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

.spec-images {
  display: flex;
  flex-direction: column;
  gap: var(--sp-lg);
}

.spec-images img {
  width: 100%;
  height: auto;
  display: block;
}

.spec-content {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table th {
  text-align: left;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 13px;
  padding: var(--sp-sm) var(--sp-sm) var(--sp-sm) 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  vertical-align: top;
  width: 180px;
}

.spec-table td {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.7;
  padding: var(--sp-sm);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  vertical-align: top;
}

.spec-table__link {
  cursor: pointer;
}

.spec-table__link a {
  color: var(--text-light);
  text-decoration: none;
  transition: opacity 0.3s;
}

.spec-table__link a:hover {
  opacity: 0.7;
}

.icon-arrow {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 4px;
  vertical-align: middle;
}

.spec-note-inline {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.6;
  margin-top: var(--sp-sm);
}

/* ---------- Information ---------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-xl);
  max-width: 1100px;
  margin: 0 auto;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.info-card {
  background: #555;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 45 / 13;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s;
}

.info-card:hover {
  transform: translateY(-4px);
}

.info-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.info-card--placeholder {
  background: #5a5a5a;
  cursor: default;
}

.info-card--placeholder:hover {
  transform: none;
}

.info-card__label {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-light);
}

.info-item__text {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-light);
  margin: 0;
  text-align: center;
}

/* ---------- Online Store ---------- */
.onlinestore-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-lg);
  max-width: 700px;
  margin: 0 auto;
}

.onlinestore-logo-box {
  background: var(--text-light);
  padding: var(--sp-lg) var(--sp-xxl);
  border-radius: 60px;
  transition: transform 0.3s;
  display: block;
}

.onlinestore-logo-box:hover {
  transform: scale(1.03);
}

.onlinestore-logo-box img {
  width: 100%;
  max-width: 500px;
  height: auto;
  display: block;
}

.onlinestore-text {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-light);
  margin: 0;
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
  .titleblock__badge-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .localnav__row {
    overflow-x: auto;
    gap: var(--sp-md);
  }

  .localnav__list {
    gap: var(--sp-md);
  }

  .hero {
    min-height: 440px;
  }

  .hero__img {
    object-position: center center;
    transform: scale(1);
  }

  .hero__title {
    font-size: 28px;
  }

  .products-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .spec-layout {
    grid-template-columns: 1fr;
    gap: var(--sp-lg);
  }

  .spec-table th {
    width: 120px;
    font-size: 11px;
    padding: var(--sp-xs) var(--sp-xs) var(--sp-xs) 0;
  }

  .spec-table td {
    font-size: 12px;
    padding: var(--sp-xs);
  }

  #gallery {
    padding: var(--sp-lg) 0;
  }

  .gallery-wrapper {
    padding: 0 var(--sp-xl);
  }

  .gallery-grid {
    gap: 0;
  }

  .gallery-item {
    flex: 0 0 100%;
    padding-right: 0;
  }

  .gallery-nav {
    width: 48px;
    height: 48px;
  }

  .gallery-nav svg {
    width: 32px;
    height: 32px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  #gallery {
    padding: var(--sp-md) 0;
  }

  .gallery-wrapper {
    padding: 0 60px;
  }

  .gallery-item {
    flex: 0 0 calc(50% - 16px);
  }
}


/* ---------- thankyou.html ---------- */

.thankyou-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: var(--sp-xl) var(--sp-md);
}

.thankyou-content {
  max-width: 500px;
  text-align: center;
}

.thankyou-logo {
  max-width: 280px;
  margin: 0 auto var(--sp-xxl);
}

.thankyou-logo img {
  width: 100%;
  height: auto;
}

.thankyou-message {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  margin: 0 0 var(--sp-xl);
}

.thankyou-contact {
  font-size: 14px;
  line-height: 1.8;
  color: #333;
  margin: 0 0 var(--sp-xxl);
}

.thankyou-contact__label {
  display: block;
  margin-bottom: var(--sp-xs);
}

.thankyou-contact__email img {
  display: inline;
  max-width: 200px;
  vertical-align: middle;
}

.thankyou-contact__note {
  display: block;
  margin-top: var(--sp-xs);
}

.thankyou-button {
  display: inline-block;
  background: #000000;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  padding: 16px 48px;
  border-radius: 30px;
  text-decoration: none;
  transition: opacity 0.3s;
}

.thankyou-button:hover {
  opacity: 0.8;
}
