/* ============================================================
   kbAR Landing Page
   Plain HTML + CSS (PC + SP / 2 breakpoints)
   Breakpoint: 768px (≤768 = SP, >768 = PC)
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  --color-bg: #ffffff;
  --color-text: #333333;
  --color-text-inverse: #ffffff;
  --color-primary: #00a0e9;       /* sky blue (top of gradient) */
  --color-primary-deep: #3376b5;  /* deep blue (bottom of gradient) */
  --color-navy: #2e386a;          /* dark blue */
  --color-navy-deep: #202457;     /* deep navy */
  --color-gold: #b28c38;          /* warm gold */
  --color-accent-yellow: #eeff00; /* yellow */
  --color-red: #e00;              /* red badge */
  --color-gray: #eeeeee;
  --color-border: #2e386a;

  --gradient-blue: linear-gradient(to bottom, #00a0e9 0%, #3376b5 100%);

  --max-width: 1280px;
  --content-width: 960px;
  --gutter-pc: 160px;
  --gutter-sp: 24px;

  --radius-md: 20px;
  --radius-lg: 30px;
  --radius-pill: 9999px;

  --shadow-card: 3px 4px 2px rgba(0, 0, 0, 0.25);
  --shadow-feature: 3px 3px 2px rgba(0, 0, 0, 0.25);

  --font-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-jp);
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; padding: 0; color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }

/* ---------- Shared section title ---------- */
.section-title {
  font-weight: 900;
  font-size: 32px;
  letter-spacing: 0.1em;
  text-align: center;
  line-height: 1.4;
}
.section-title--navy { color: var(--color-navy); }
@media (max-width: 768px) {
  .section-title { font-size: 22px; }
}

/* ---------- Unified kbAR wordmark (single SVG) ---------- */
.kbar-mark { display: inline-block; line-height: 0; flex-shrink: 0; }
.kbar-mark--header  { width: 100px; height: 30px; }
.kbar-mark--footer  { width: 146px; height: 43px; }
.kbar-mark--contact { width: 100px; height: 29px; }

@media (max-width: 768px) {
  .kbar-mark--header  { width: 78px;  height: 23px; }
  .kbar-mark--footer  { width: 120px; height: 35px; }
  .kbar-mark--contact { width: 84px;  height: 24px; }
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #eee;
}
.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 15px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-header__brand {
  display: flex;
  align-items: center;
  gap: 20px;
}
.site-header__company { height: 20px; width: auto; }
.site-header__nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-header__tel {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #3376b5;
  font-weight: 700;
  font-size: 20px;
}
.site-header__tel img { width: 23px; height: 23px; }
.site-header__btn {
  background: var(--color-gold);
  color: #fff;
  font-weight: 500;
  font-size: 16px;
  padding: 5px 20px 7px;
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-md);
  min-width: 166px;
  text-align: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.site-header__btn:hover {
  background: #ffffff;
  color: var(--color-gold);
}

@media (max-width: 768px) {
  .site-header__inner { padding: 10px 16px; gap: 12px; }
  .site-header__brand { gap: 10px; }
  .site-header__company { height: 14px; }
  .site-header__tel { font-size: 16px; }
  .site-header__tel img { width: 16px; height: 16px; }
  .site-header__tel span { display: none; }
  .site-header__btn { font-size: 12px; min-width: 0; padding: 5px 14px; }
}

/* ============================================================
   HERO / KEY VISUAL — Full-width, min 900px PC, fit first view
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  height: calc(100vh - 70px);
  overflow: hidden;
  background: #cfd9e3;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 65%;
}
.hero__copy {
  position: absolute;
  top: 22%;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 2;
}
.hero__title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  font-weight: 700;
  color: #fff;
  font-size: 52px;
  line-height: 1.4;
}
.hero__title-line {
  background: var(--color-primary);
  padding: 5px 40px;
  display: inline-block;
}
.hero__sub {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.7);
  color: #333;
  font-weight: 700;
  font-size: 24px;
  padding: 10px 40px;
  line-height: 1.5;
  margin-left: 0;
}
.hero__cta {
  position: absolute;
  left: 50%;
  bottom: 8%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 15px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #3376b5;
  color: #3376b5;
  font-weight: 500;
  font-size: 20px;
  padding: 15px 28px;
  border-radius: var(--radius-md);
  width: 400px;
  max-width: calc(100% - 48px);
  justify-content: center;
  transition: transform 0.2s ease, background-color 0.2s ease;
  z-index: 2;
}
.hero__cta:hover {
  transform: translateX(-50%) translateY(-2px);
  background: rgba(255, 255, 255, 0.9);
}
.hero__cta-icon { font-size: 22px; line-height: 1; }
.hero__cta-arrow { font-size: 22px; line-height: 1; }

@media (max-width: 768px) {
  .hero { height: auto; aspect-ratio: 4 / 5; }
  .hero__copy { top: 14%; gap: 8px; }
  .hero__title { font-size: 30px; gap: 4px; }
  .hero__title-line { padding: 4px 18px; }
  .hero__sub {
    font-size: 16px;
    padding: 6px 16px;
  }
  .hero__cta {
    font-size: 16px;
    padding: 12px 16px;
    gap: 8px;
    width: calc(100% - 32px);
    bottom: 24px;
  }
  .hero__cta-icon, .hero__cta-arrow { font-size: 16px; }
}

/* ============================================================
   INTRO (Possibility / Paper role) — Full-bleed images
   Blue gradient background with diagonal skewY transition
   ============================================================ */
.intro {
  position: relative;
  color: #fff;
  padding: 140px 0 120px;
  display: flex;
  flex-direction: column;
  gap: 80px;
  z-index: 0;
}
.intro::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-blue);
  z-index: -1;
  pointer-events: none;
  /* Horizontal top (no slant where it meets Hero), slanted bottom */
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 5vw), 0 100%);
}

.intro__row {
  display: grid;
  align-items: center;
  gap: 0;
}

/* Layout: image on LEFT, full-bleed to viewport's left edge
   Image height fixed at 465px, scales width up while keeping aspect ratio,
   overflow hidden (object-fit: cover) */
.intro__row--bleed-left {
  grid-template-columns: calc(50vw - 15px) 1fr;
}
.intro__row--bleed-left .intro__media {
  width: 100%;
  height: 465px;
  overflow: hidden;
}
.intro__row--bleed-left .intro__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: 0;
  display: block;
}
.intro__row--bleed-left .intro__text-wrap {
  padding-left: 40px;
  padding-right: var(--gutter-pc);
  max-width: calc(50vw - 15px);
}

/* Layout: image on RIGHT, full-bleed to viewport's right edge */
.intro__row--bleed-right {
  grid-template-columns: 1fr calc(50vw - 15px);
}
.intro__row--bleed-right .intro__media {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
.intro__row--bleed-right .intro__text-wrap {
  padding-right: 40px;
  padding-left: var(--gutter-pc);
  max-width: calc(50vw - 15px);
  margin-left: auto;
}

.intro__media img { display: block; }

/* Section 2 image (paper-role): single image, natural square aspect */
.intro__media--paper {
  width: 100%;
  max-width: 620px;
}
.intro__paper-img {
  width: 100%;
  height: auto;
  border-radius: 0;
  display: block;
}

.intro__text {
  color: #fff;
  max-width: 540px;
}
.intro__title {
  font-weight: 900;
  font-size: 32px;
  letter-spacing: 0.1em;
  line-height: 1.5;
  margin-bottom: 24px;
}
.intro__title--alt { font-size: 28px; }
.intro__text p {
  font-size: 16px;
  line-height: 2;
  margin: 0;
}
.intro__text p + p { margin-top: 8px; }
.intro__lead {
  font-weight: 700;
  font-size: 20px !important;
  line-height: 2 !important;
  margin-top: 16px !important;
}

@media (max-width: 768px) {
  .intro { padding: 56px 0; gap: 56px; }
  .intro__row,
  .intro__row--bleed-left,
  .intro__row--bleed-right {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .intro__row--bleed-left .intro__media {
    width: 100%;
    height: 240px;
  }
  .intro__row--bleed-right .intro__media {
    width: 100%;
    justify-content: center;
  }
  .intro__row--bleed-right .intro__media img {
    width: auto;
    max-width: 100%;
  }
  .intro__row--bleed-left .intro__text-wrap,
  .intro__row--bleed-right .intro__text-wrap {
    padding: 0 var(--gutter-sp);
    max-width: 100%;
    margin-left: 0;
  }
  .intro__media--paper { max-width: 100%; }
  .intro__title { font-size: 26px; margin-bottom: 16px; }
  .intro__title--alt { font-size: 26px; }
  .intro__text p { font-size: 16px; line-height: 1.9; }
  .intro__lead { font-size: 20px !important; }
}

/* ============================================================
   AR EXPERIENCE
   ============================================================ */
.ar { padding: 120px 0 80px; background: #fff; }
.ar__wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter-pc);
}
.ar__hero {
  margin-top: 60px;
  border-radius: 0;
  overflow: hidden;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: 960 / 540;
}
.ar__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: 0;
  display: block;
}
.ar__desc {
  margin-top: 40px;
  text-align: center;
  font-size: 16px;
  line-height: 1.75;
  color: #333;
}
.ar__sub { margin-top: 80px; }
.ar__features {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  filter: drop-shadow(var(--shadow-feature));
  transition: transform 0.2s ease;
}
.feature-card:hover { transform: translateY(-4px); }
.feature-card__icon {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-card__icon img { width: 100%; height: 100%; }
.feature-card__title {
  font-weight: 700;
  font-size: 20px;
  color: var(--color-navy);
}
.feature-card__text {
  font-size: 16px;
  color: #333;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .ar { padding: 56px 0 48px; }
  .ar__wrap { padding: 0 var(--gutter-sp); }
  .ar__hero { margin-top: 32px; }
  .ar__desc { font-size: 16px; margin-top: 24px; }
  .ar__sub { margin-top: 48px; }
  .ar__features { grid-template-columns: 1fr; gap: 16px; margin-top: 24px; }
  .feature-card { padding: 24px 16px; }
  .feature-card__icon { width: 80px; height: 80px; }
  .feature-card__title { font-size: 20px; }
  .feature-card__text { font-size: 16px; }
}

/* ============================================================
   CHANGE (印刷物はこう変わる) — Blue gradient with diagonal skewY transition
   ============================================================ */
.change {
  position: relative;
  color: #fff;
  padding: 140px 0 120px;
  z-index: 0;
}
.change::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-blue);
  z-index: -1;
  pointer-events: none;
  /* Slanted top + bottom, matching Intro's bottom direction */
  clip-path: polygon(0 5vw, 100% 0, 100% calc(100% - 5vw), 0 100%);
}

.change__top {
  display: grid;
  align-items: center;
  gap: 0;
  margin-bottom: 80px;
}
.change__top--bleed-right {
  grid-template-columns: 1fr calc(50vw - 15px);
}
.change__top--bleed-right .change__media {
  width: 100%;
  height: 350px;
  overflow: hidden;
}
.change__top--bleed-right .change__text-wrap {
  padding-right: 60px;
  padding-left: var(--gutter-pc);
  max-width: calc(50vw - 15px);
  margin-left: auto;
}

.change__media img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  display: block;
  object-fit: cover;
  object-position: center center;
}

.change__text { max-width: 460px; }
.change__title {
  font-weight: 900;
  font-size: 32px;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  line-height: 1.4;
}
.change__text p {
  font-size: 16px;
  line-height: 2;
  margin: 0;
}
.change__text p + p { margin-top: 8px; }
.change__lead {
  font-weight: 700;
  font-size: 20px !important;
  line-height: 2 !important;
  margin: 16px 0 !important;
}

.change__wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter-pc);
}
.carousel-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  padding: 4px 0;
}
.carousel-list li {
  list-style: none;
}
.product-thumb {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-thumb:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
.product-thumb:hover .product-thumb__icon {
  background: rgba(0, 0, 0, 0.85);
  transform: scale(1.05);
}
.product-thumb:focus-visible {
  outline: 3px solid var(--color-accent-yellow);
  outline-offset: 2px;
}
.product-thumb img {
  width: 100%;
  height: 100%;
  aspect-ratio: 200 / 327;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  transition: opacity 0.2s ease;
}
.product-thumb:hover img {
  opacity: 0.75;
}
.product-thumb__icon {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
@media (max-width: 768px) {
  .product-thumb__icon {
    width: 22px;
    height: 22px;
    top: 4px;
    right: 4px;
    font-size: 10px;
  }
}

@media (max-width: 768px) {
  .change { padding: 56px 0 48px; }
  .change__top,
  .change__top--bleed-right { grid-template-columns: 1fr; gap: 24px; margin-bottom: 48px; }
  .change__top--bleed-right .change__media {
    height: 220px;
  }
  .change__top--bleed-right .change__text-wrap {
    padding: 0 var(--gutter-sp);
    max-width: 100%;
    margin-left: 0;
  }
  .change__title { font-size: 26px; margin-bottom: 16px; }
  .change__text p { font-size: 16px; line-height: 1.9; }
  .change__lead { font-size: 20px !important; }
  .change__wrap { padding: 0 var(--gutter-sp); }
  .carousel-list { gap: 12px; grid-template-columns: repeat(3, 1fr); row-gap: 12px; }
}

/* ============================================================
   SCENE (活用シーン) — Full-browser-width auto-carousel
   ============================================================ */
.scene { padding: 100px 0 80px; background: #fff; scroll-margin-top: 80px; }
.scene__head {
  max-width: var(--max-width);
  margin: 0 auto 56px;
  padding: 0 var(--gutter-pc);
}
.scene__desc {
  margin-top: 32px;
  text-align: center;
  font-size: 16px;
  line-height: 1.75;
  color: #333;
}

.scene-carousel {
  width: 100%;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  padding: 8px 0 24px;
  position: relative;
}
.scene-carousel.is-dragging { cursor: grabbing; }
.scene-carousel__track {
  display: flex;
  gap: 30px;
  width: max-content;
  will-change: transform;
  /* JS controls transform */
}
.scene-card {
  flex: 0 0 300px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  filter: drop-shadow(var(--shadow-card));
}
.scene-card img {
  width: 260px;
  max-width: 100%;
  height: 394px;
  object-fit: cover;
  border-radius: 6px;
  pointer-events: none;
}
.scene-card__title {
  font-weight: 700;
  font-size: 20px;
  color: var(--color-navy);
  text-align: center;
}
.scene-card__text {
  font-size: 16px;
  color: #333;
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 768px) {
  .scene { padding: 56px 0 48px; }
  .scene__head { padding: 0 var(--gutter-sp); margin-bottom: 32px; }
  .scene__desc { font-size: 16px; margin-top: 24px; }
  .scene-carousel__track { gap: 16px; }
  .scene-card { flex: 0 0 240px; padding: 16px; }
  .scene-card img { width: 100%; height: 320px; }
  .scene-card__title { font-size: 17px; }
  .scene-card__text { font-size: 16px; }
}

/* ============================================================
   ABOUT — Navy background with diagonal skewY transition
   ============================================================ */
.about {
  position: relative;
  color: #fff;
  padding: 160px 0 140px;
  z-index: 0;
}
.about::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-navy);
  z-index: -1;
  pointer-events: none;
  /* Slanted top + bottom */
  clip-path: polygon(0 5vw, 100% 0, 100% calc(100% - 5vw), 0 100%);
}
.about__wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter-pc);
}
.about__title {
  font-weight: 900;
  font-size: 32px;
  letter-spacing: 0.1em;
  text-align: center;
  line-height: 1.5;
  margin-bottom: 60px;
}
.about__row {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 60px;
  align-items: start;
}
.about__text p { font-size: 16px; line-height: 1.9; margin: 0; }
.about__text p + p { margin-top: 16px; }
.about__media {
  display: flex;
  justify-content: center;
}
.about__media img {
  width: 460px;
  height: 305px;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  border-radius: 0;
  display: block;
}

@media (max-width: 768px) {
  .about { padding: 56px 0 48px; }
  .about__wrap { padding: 0 var(--gutter-sp); }
  .about__title { font-size: 20px; margin-bottom: 32px; line-height: 1.6; }
  .about__row { grid-template-columns: 1fr; gap: 24px; }
  .about__text { min-width: 0; }
  .about__text p { font-size: 16px; line-height: 1.85; word-break: break-word; overflow-wrap: anywhere; }
  .about__media {
    width: 100%;
    min-width: 0;
  }
  .about__media img {
    width: 100%;
    max-width: 460px;
    height: auto;
    aspect-ratio: 460 / 305;
    object-fit: cover;
  }
}

/* ============================================================
   CONTACT — white outer background, navy inner box
   ============================================================ */
.contact {
  background: #ffffff;
  padding: 80px 0;
}
.contact__wrap {
  max-width: var(--content-width);
  margin: 0 auto;
  background: var(--color-navy-deep);
  border-radius: var(--radius-md);
  padding: 0 60px;
  position: relative;
  overflow: hidden;
  color: #fff;
}
.contact__visual {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 460px;
  pointer-events: none;
}
.contact__visual img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}
.contact__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 40px 0 40px 420px;
}
.contact__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  color: var(--color-accent-yellow);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.4;
}
.contact__title-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.contact__title-suffix { line-height: 1.4; }
.contact__tel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 32px;
}
.contact__tel img { width: 36px; height: 36px; filter: brightness(0) invert(1); }
.contact__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  background: #fff;
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-md);
  padding: 10px 20px 12px;
  font-weight: 500;
  font-size: 20px;
  width: 397px;
  max-width: 100%;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.contact__btn:hover {
  background: var(--color-gold);
  color: #ffffff;
}
.contact__btn-icon {
  background: var(--color-red);
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.contact__btn:hover .contact__btn-icon {
  background: #ffffff;
  color: var(--color-red);
}

@media (max-width: 768px) {
  .contact { padding: 48px 16px; }
  .contact__wrap {
    padding: 24px 20px;
    overflow: visible;
  }
  .contact__visual {
    position: static;
    transform: none;
    width: 100%;
    max-width: 280px;
    margin: 0 auto 16px;
  }
  .contact__body {
    margin: 0;
  }
  .contact__title { font-size: 18px; }
  .contact__tel { font-size: 22px; gap: 6px; }
  .contact__tel img { width: 24px; height: 24px; }
  .contact__btn { font-size: 16px; width: 100%; }
  .contact__btn-icon { width: 26px; height: 26px; font-size: 12px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #ffffff;
  padding-top: 0;
}
.site-footer__inner {
  background: var(--color-gray);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  padding: 70px var(--gutter-pc) 30px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.site-footer__row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
}
.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.site-footer__company { height: 29px; width: auto; }
.site-footer__btn {
  background: var(--color-primary);
  color: #fff;
  padding: 5px 20px 7px;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 16px;
  transition: opacity 0.2s ease;
}
.site-footer__btn:hover { opacity: 0.85; }
.site-footer__link {
  font-size: 16px;
  color: #000;
  text-decoration: none;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s ease;
}
.site-footer__link:hover {
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-decoration-thickness: 1px;
}
.site-footer__copy {
  font-weight: 300;
  font-size: 12px;
  color: #000;
  margin-top: 50px;
}
.site-footer__bar {
  height: 20px;
  background: var(--color-navy);
}

@media (max-width: 768px) {
  .site-footer__inner {
    padding: 40px var(--gutter-sp) 24px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
  }
  .site-footer__row { gap: 16px; flex-direction: column; align-items: flex-start; }
  .site-footer__brand { width: 100%; }
  .site-footer__company { height: 22px; }
  .site-footer__btn { font-size: 12px; padding: 5px 16px; }
  .site-footer__link { font-size: 16px; }
  .site-footer__copy { margin-top: 28px; font-size: 11px; }
}

/* ============================================================
   MODAL (Product GIF viewer)
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  cursor: pointer;
}
.modal__content {
  position: relative;
  max-width: min(90vw, 600px);
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal__image {
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 90vh;
  display: block;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}
.modal__close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}
.modal__close:hover { background: rgba(255, 255, 255, 0.3); }
.modal__close:focus-visible,
.modal__nav:focus-visible {
  outline: 3px solid var(--color-accent-yellow);
  outline-offset: 2px;
}
.modal__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
  z-index: 2;
}
.modal__nav:hover { background: rgba(255, 255, 255, 0.35); }
.modal__nav--prev { left: 24px; }
.modal__nav--next { right: 24px; }
body.modal-open { overflow: hidden; }
@media (max-width: 768px) {
  .modal { padding: 16px; }
  .modal__close { top: -42px; width: 36px; height: 36px; font-size: 18px; }
  .modal__nav { width: 38px; height: 38px; font-size: 16px; }
  .modal__nav--prev { left: 8px; }
  .modal__nav--next { right: 8px; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
