/* =============================================================
   KEN Co., Ltd. — Corporate Site (Single Page)
   Near-monotone system: near-black on white; the accent role
   inverts to white on dark grounds. A single restrained olive
   (--accent-olive) is the only hue, used sparingly for rules,
   hover, focus and small marks. Progressive-enhancement JS only.
   Alternating section tones for visual rhythm.
   ============================================================= */

:root {
  /* --- Accent: monotone (no hue) — inverts by section brightness --- */
  --accent:        #232323;   /* dark charcoal — CTA, numerals, rules (light-bg contexts) */
  --accent-deep:   #000000;   /* darker — button hover (light-bg contexts) */
  --accent-bright: #ffffff;   /* white — accent role on dark grounds, and always-dark header */
  --accent-ink:    #ffffff;   /* text color to place ON TOP of --accent fill (light-bg contexts) */
  --accent-fg:     var(--accent);   /* accent used for foreground text    */

  /* --- The one hue: a calm olive green. Used ONLY for small marks:
         eyebrow rule, hover, focus ring, step connector, brand hover. --- */
  --accent-olive:      #2b4c7e;   /* navy — the single accent hue
                                     (variable name kept for compatibility) */
  --accent-olive-soft: #7f9bc4;   /* lighter navy for use on dark grounds */

  /* Hero photo is served as a responsive <img> in index.html
     (srcset: hero-b-820/1200/1672 WebP). Keep this none so the CSS
     background never double-downloads — to swap the hero image,
     edit the <img> in index.html. */
  --hero-photo: none;

  /* --- Component tokens (LIGHT context defaults) --- */
  --c-title: #191714;
  --c-text:  #3a352f;
  --c-muted: #645e57;
  --c-faint: #6d6760;
  --c-hair:  #e6e1db;
  --c-hair-strong: #cfc8c0;
  --c-bg:    #ffffff;

  /* --- Dark ground base --- */
  --dark: #17161a;

  /* --- Type --- */
  --font-sans: "Hiragino Kaku Gothic ProN", "Hiragino Sans",
    "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;

  /* --- Layout --- */
  --container: 1140px;
  --measure: 40rem;
  --header-h: 72px;

  --ease: cubic-bezier(0.22, 0.61, 0.24, 1);
}

/* --- Dark contexts remap component tokens --- */
.hero,
.section--dark,
.site-footer {
  --c-title: #f7f3ef;
  --c-text:  rgba(255, 255, 255, 0.74);
  --c-muted: rgba(255, 255, 255, 0.52);
  --c-faint: rgba(255, 255, 255, 0.36);
  --c-hair:  rgba(255, 255, 255, 0.14);
  --c-hair-strong: rgba(255, 255, 255, 0.26);
  --c-bg:    var(--dark);
  --accent:      var(--accent-bright);  /* white becomes the accent fill on dark grounds */
  --accent-deep: #cfcfcf;               /* hover: dim to light grey */
  --accent-ink:  #17161a;               /* text ON TOP of the (now white) accent fill */
  --accent-fg:   var(--accent-bright);
  --accent-olive: var(--accent-olive-soft);  /* lift olive for contrast on dark */
}

/* --- Warm tonal (grey) context --- */
.section--tone {
  --c-bg:   #f4f0ec;
  --c-hair: #e2dcd4;
  --c-hair-strong: #cfc7bd;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--c-text);
  background: var(--dark);
  font-size: 0.9375rem;
  line-height: 1.95;
  letter-spacing: 0.03em;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* --- Shared container --- */
.inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3.5rem);
}

/* --- Eyebrow: Latin label with a leading accent rule --- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.6875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-muted);
  font-weight: 500;
  font-feature-settings: normal;
}

.eyebrow::before {
  content: "";
  width: 2rem;
  height: 2px;
  background: var(--accent-fg);
}

/* =============================================================
   Header — permanently dark bar (works over every section)
   ============================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(20, 19, 23, 0.72);
  /* NOTE: backdrop-filter は使用禁止。ヘッダーに付けると position:fixed の
     ドロワーメニューの基準がヘッダーになり、メニューが潰れるバグの原因になる */
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: baseline;
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #f7f3ef;
  line-height: 1;
}

.logo span {
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  margin-left: 0.5rem;
  color: rgba(255, 255, 255, 0.5);
}

.global-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.global-nav a {
  position: relative;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.66);
  padding: 0.4rem 0;
  transition: color 0.25s var(--ease);
}

.global-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}

.global-nav a:hover { color: #fff; }
.global-nav a:hover::after { transform: scaleX(1); }

/* =============================================================
   Buttons
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1.9rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  border-radius: 2px;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn-arrow { transition: transform 0.25s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn--accent {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn--accent:hover { background: var(--accent-deep); }

.btn--ghost {
  border: 1px solid var(--c-hair-strong);
  color: var(--c-title);
}
.btn--ghost:hover {
  border-color: var(--accent-fg);
  color: var(--accent-fg);
}

/* =============================================================
   Hero — full-bleed dark
   ============================================================= */
.hero {
  background: var(--dark);
  color: var(--c-text);
  min-height: calc(100svh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3.5rem, 8vh, 7rem) 0;
  position: relative;
  overflow: hidden;
}

.hero-inner { position: relative; z-index: 1; flex: 1; display: flex;
  flex-direction: column; justify-content: center; }

.hero-title {
  margin-top: 1.6rem;
  font-size: clamp(2.4rem, 1.1rem + 4.9vw, 4.375rem);
  font-weight: 700;
  line-height: 1.34;
  letter-spacing: 0.02em;
  color: var(--c-title);
  text-wrap: balance;
}

.hero-lead {
  margin-top: clamp(1.75rem, 3.5vw, 2.75rem);
  max-width: 44rem;
  font-size: clamp(0.9375rem, 0.9rem + 0.25vw, 1.0625rem);
  line-height: 2.15;
  color: var(--c-text);
  text-wrap: pretty;
}

.hero-actions {
  margin-top: clamp(2.25rem, 4vw, 3.25rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1rem;
}

/* =============================================================
   Sections — shared editorial two-column structure
   ============================================================= */
.section {
  background: var(--c-bg);
  color: var(--c-text);
  padding: clamp(4.5rem, 10vw, 8.5rem) 0;
  scroll-margin-top: var(--header-h);
}

.section-grid {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4.5vw, 3.25rem);
}

/* --- Section head: title bar above the content --- */
.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: clamp(1.1rem, 2.5vw, 1.6rem);
  padding-bottom: clamp(1.25rem, 2.5vw, 1.6rem);
  border-bottom: 1px solid var(--c-hair);
}

.section-num {
  display: block;
  grid-row: span 2;
  font-size: clamp(2.5rem, 2rem + 1.6vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--accent-fg);
  font-feature-settings: "tnum";
}

.section-en {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--c-faint);
  font-feature-settings: normal;
}

.section-title {
  margin-top: 0.2rem;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.4;
  color: var(--c-title);
}

/* Sections without a number (e.g. Contact): stack label + title full width */
.section-head > .section-en:first-child,
.section-head > .section-en:first-child + .section-title {
  grid-column: 1 / -1;
}

.section-body { min-width: 0; }

/* Intro paragraph placed above a section's main content */
.section-lead {
  max-width: var(--measure);
  font-size: 0.9375rem;
  line-height: 2.1;
  color: var(--c-text);
  margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem);
}

/* =============================================================
   Info table (About / Contact)
   ============================================================= */
.info-table {
  width: 100%;
  max-width: 52rem;
  border-collapse: collapse;
}

.info-table th,
.info-table td {
  text-align: left;
  vertical-align: middle;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--c-hair);
  font-weight: 400;
}

.info-table tr:first-child th,
.info-table tr:first-child td { padding-top: 0; }

.info-table th { width: 13rem; }

.info-table .th-label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--c-title);
  line-height: 1.5;
}

.info-table .th-en {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-fg);
  font-feature-settings: normal;
}

.info-table td {
  font-size: 1rem;
  color: var(--c-text);
  line-height: 1.7;
}

/* =============================================================
   Business
   ============================================================= */
.biz-title {
  font-size: clamp(1.1875rem, 1.05rem + 0.6vw, 1.4375rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: var(--c-title);
  margin-bottom: 1.1rem;
}

.biz-text {
  max-width: var(--measure);
  font-size: 0.9375rem;
  color: var(--c-text);
  line-height: 2.15;
}

/* --- 運営ブランド：カード（カルーセル内） --- */
.brand-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: clamp(1.25rem, 2.5vw, 1.6rem);
  border: 1px solid var(--c-hair-strong);
  border-radius: 2px;
  background: var(--c-bg);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.brand-card:hover { border-color: var(--accent-olive); transform: translateY(-2px); }

.brand-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 4.5rem;
  padding: 0.6rem 1rem;
  background: #ffffff;
  border: 1px solid var(--c-hair-strong);
  border-radius: 2px;
}
.brand-logo {
  display: block;   /* shown by default, exactly like the shop logos */
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain;
}
.brand-logo-fallback {
  display: none;    /* only used if the logo image can't be loaded */
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-align: center;
  color: var(--c-title);
}
/* If the logo image is unavailable, fall back to the brand name text. */
.brand-logo-wrap.no-logo .brand-logo { display: none; }
.brand-logo-wrap.no-logo .brand-logo-fallback { display: block; }

.brand-reading {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--c-muted);
}
.brand-cat {
  font-size: 0.875rem;
  color: var(--c-text);
  line-height: 1.7;
  margin-top: auto;
}

/* --- Carousel (slide, max 3 visible, arrow controls) --- */
.carousel {
  --visible: 1;
  --cg: 1rem;
  position: relative;
  margin-top: 1.75rem;
  padding: 0;   /* cards align flush with the section heading */
  display: flex;
  flex-direction: column;
}
.carousel-viewport { order: 1; }
/* narrow screens: arrows centered below the cards */
.carousel-nav {
  order: 2;
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
}
@media (min-width: 600px) { .carousel { --visible: 2; --cg: 1.25rem; } }
@media (min-width: 900px) { .carousel { --visible: 3; --cg: 1.5rem; } }

.carousel-viewport {
  overflow: hidden;
  /* padding gives clip-room on ALL sides so card borders (incl. the
     left/right edge cards) aren't clipped; the matching negative margin
     keeps the cards flush-aligned with the section heading */
  padding: 10px;
  margin: -10px;
}
.carousel-track {
  display: flex;
  gap: var(--cg);
  list-style: none;
  transition: transform 0.45s var(--ease);
}
.brand-slide {
  flex: 0 0 calc((100% - (var(--visible) - 1) * var(--cg)) / var(--visible));
}

.carousel-btn {
  flex: none;          /* never let the flex row squeeze the tap target */
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--c-title);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;   /* snappy taps on iOS, no 300ms delay */
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s var(--ease), opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.carousel-btn:hover { color: var(--accent-olive); }
.carousel-btn--prev:hover { transform: translateX(-2px); }
.carousel-btn--next:hover { transform: translateX(2px); }
.carousel-btn[disabled],
.carousel-btn[aria-disabled="true"] { opacity: 0.28; pointer-events: none; }

/* Wide screens: arrows on the left/right, in the outer gutter so they
   sit beside the cards (not over them) and the cards stay aligned. */
@media (min-width: 1024px) {
  .carousel { display: block; }
  .carousel-nav { display: contents; }
  .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
  }
  .carousel-btn--prev { left: -46px; }
  .carousel-btn--next { right: -46px; }
  /* keep the vertical centering when the hover nudge applies */
  .carousel-btn--prev:hover { transform: translateY(-50%) translateX(-2px); }
  .carousel-btn--next:hover { transform: translateY(-50%) translateX(2px); }
}

/* =============================================================
   Operated sites
   ============================================================= */
/* Horizontal snap carousel — pure CSS, no JS.
   Card widths are fractions of the track so 1 / 2 / 3 / 4 cards
   stay visible (plus a peek of the next) as the viewport grows. */
.sites-grid {
  --sg: clamp(1rem, 2vw, 1.5rem);
  display: flex;
  gap: var(--sg);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1.25rem; /* room for the scrollbar */
  scrollbar-width: thin;
  scrollbar-color: var(--c-faint) transparent;
}

.sites-grid::-webkit-scrollbar { height: 5px; }
.sites-grid::-webkit-scrollbar-track { background: var(--c-hair); border-radius: 999px; }
.sites-grid::-webkit-scrollbar-thumb { background: var(--c-faint); border-radius: 999px; }

.site-card {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  flex: 0 0 min(78%, 17rem); /* mobile: 1 card + peek */
  scroll-snap-align: start;
  padding: clamp(1.25rem, 2.5vw, 1.65rem);
  border: 1px solid var(--c-hair-strong);
  border-radius: 2px;
  background: var(--c-bg);
}

@media (min-width: 600px) {
  .site-card { flex-basis: calc((100% - var(--sg) - 2.25rem) / 2); }  /* 2 + peek */
}

@media (min-width: 880px) {
  .site-card { flex-basis: calc((100% - var(--sg) * 2 - 2.5rem) / 3); }  /* 3 + peek */
}

@media (min-width: 1100px) {
  .site-card { flex-basis: calc((100% - var(--sg) * 3 - 2.75rem) / 4); }  /* 4 + peek */
}

.site-card-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 4.5rem;
  padding: 0.75rem 1rem;
  background: #ffffff;
  border: 1px solid var(--c-hair-strong);
  border-radius: 2px;
}

.site-card-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.site-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-start;
}

.site-card-title {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.5;
  color: var(--c-title);
}

.site-card-text {
  font-size: 0.8125rem;
  color: var(--c-muted);
  line-height: 1.75;
  margin-bottom: 0.3rem;
}

/* =============================================================
   Contact
   ============================================================= */
.contact-lead {
  max-width: var(--measure);
  font-size: 1rem;
  line-height: 2.15;
  color: var(--c-text);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

/* --- Contact form --- */
.contact-form {
  display: grid;
  gap: 1.5rem;
  max-width: 34rem;
  margin-bottom: clamp(3rem, 5vw, 4rem);
}

.form-row {
  display: grid;
  gap: 0.6rem;
}

.form-row label {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--c-title);
}

.form-row .req,
.form-row .opt {
  margin-left: 0.6rem;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  vertical-align: middle;
}
.form-row .req { color: var(--accent-fg); }
.form-row .opt { color: var(--c-faint); }

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 0.9375rem;
  color: #1a1a1a;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 2px;
  transition: border-color 0.2s var(--ease);
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: #1a1a1a;
}

.form-row textarea { resize: vertical; }

.contact-form .btn {
  justify-self: start;
  border: none;
  cursor: pointer;
}

/* Honeypot — hidden from sighted users, still reachable by bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.info-table--contact {
  margin-top: 0.5rem;
}

/* =============================================================
   Footer — simple single bar
   ============================================================= */
.site-footer {
  background: #100f13;
  padding: 1.75rem 0;
}

.site-footer small {
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  color: var(--c-faint);
  font-feature-settings: normal;
}

/* =============================================================
   Back to top — fixed pill, fades in/out with scroll position
   (CSS scroll-driven animation, no JS; degrades to always-visible
   in browsers that don't yet support animation-timeline: scroll())
   ============================================================= */
.to-top {
  position: fixed;
  right: clamp(1.25rem, 3vw, 2rem);
  bottom: clamp(1.25rem, 3vw, 2rem);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1.15rem 0.75rem 0.9rem;
  border-radius: 999px;
  background: rgba(26, 26, 26, 0.9);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);

  animation: to-top-reveal linear both;
  animation-timeline: scroll(root block);
  animation-range: 240px 520px;
}

.to-top:hover {
  background: #000000;
  border-color: rgba(255, 255, 255, 0.4);
}

.to-top-icon {
  font-size: 0.9375rem;
}

.to-top-label {
  text-transform: uppercase;
}

@keyframes to-top-reveal {
  from {
    opacity: 0;
    pointer-events: none;
  }
  to {
    opacity: 1;
    pointer-events: auto;
  }
}

/* =============================================================
   Responsive
   ============================================================= */
@media (max-width: 640px) {
  .site-header .inner {
    flex-direction: column;
    height: auto;
    padding-top: 1rem;
    padding-bottom: 1rem;
    gap: 0.85rem;
  }
  .site-header { position: static; }

  .global-nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem 1.35rem;
  }

  .hero { padding-top: clamp(3rem, 10vw, 4.5rem); }

  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }

  .info-table th,
  .info-table td { display: block; width: 100%; }
  .info-table th { padding-bottom: 0.5rem; border-bottom: 0; }
  .info-table td { padding-top: 0; }
  .info-table tr:first-child td { padding-top: 0; }
}

/* =============================================================
   2026-07 refresh — accent (olive), header/nav enhancement,
   hero backdrop, business steps, grid stores, footer, a11y.
   Appended as overrides; earlier rules stay intact.
   ============================================================= */

/* --- Focus & skip link (keyboard a11y) --- */
:focus-visible {
  outline: 2px solid var(--accent-olive);
  outline-offset: 2px;
  border-radius: 2px;
}
.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -3.5rem;
  z-index: 300;
  background: #ffffff;
  color: #17161a;
  padding: 0.55rem 0.95rem;
  border-radius: 2px;
  font-size: 0.8125rem;
  font-weight: 700;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0.5rem; }

/* --- Small helpers --- */
.link-plain { color: inherit; text-decoration: none; }
.link-plain:hover { color: var(--accent-olive); }
.nowrap { white-space: nowrap; }

/* --- Olive as the single hue on small marks --- */
.eyebrow::before { background: var(--accent-olive); }
.btn--ghost:hover { border-color: var(--accent-olive); color: var(--accent-olive); }
.global-nav a::after { background: var(--accent-olive); }

/* =============================================================
   Header — scroll state + hamburger + mobile drawer
   ============================================================= */
.site-header {
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(14, 13, 17, 0.95);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

/* active section indicator */
.global-nav a[aria-current="true"] { color: #fff; }
.global-nav a[aria-current="true"]::after { transform: scaleX(1); }

/* Hamburger — hidden unless JS is active and viewport is narrow */
.nav-toggle { display: none; }
.nav-toggle-box {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 24px;
  height: 18px;
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: #f7f3ef;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.site-header.is-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.is-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.site-header.is-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  /* keep a single-row header when JS drawer is in use */
  .js .site-header { position: sticky; top: 0; }
  .js .site-header .inner {
    flex-direction: row;
    height: var(--header-h);
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
    gap: 0;
  }
  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: -0.5rem;
    background: transparent;
    border: 0;
    cursor: pointer;
  }
  .js .global-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-h);
    bottom: 0;
    background: rgba(18, 17, 21, 0.98);
    padding: 1.25rem clamp(1.5rem, 6vw, 2.5rem) 2.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s var(--ease);
    overflow-y: auto;
  }
  .js .site-header.is-open .global-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .js .global-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .js .global-nav li { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  .js .global-nav a { display: block; padding: 1.1rem 0.25rem; font-size: 1rem; }
  .js .global-nav a::after { display: none; }
  body.nav-open { overflow: hidden; }
}

/* =============================================================
   Hero backdrop (overlay + optional photo + contour) + stats
   ============================================================= */
.hero { min-height: max(650px, 86svh); }
.hero-inner { z-index: 2; }

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: var(--dark);
  background-image:
    linear-gradient(90deg,
      rgba(20, 19, 22, 1) 0%,
      rgba(20, 19, 22, 0.96) 40%,
      rgba(20, 19, 22, 0.68) 72%,
      rgba(20, 19, 22, 0.45) 100%),
    var(--hero-photo);
  background-repeat: no-repeat;
  background-position: center, center right;
  background-size: cover, cover;
}
/* faint topographic contour, right side only (decorative, no photo needed) */
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-radial-gradient(circle at 84% 48%,
    transparent 0 42px, rgba(255, 255, 255, 0.03) 42px 43px, transparent 43px 44px);
  -webkit-mask-image: linear-gradient(90deg, transparent 0 46%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0 46%, #000 100%);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: clamp(2.5rem, 6vh, 4rem);
}
.hero-stat dt {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--c-muted);
  font-feature-settings: normal;
}
.hero-stat dd {
  margin-top: 0.35rem;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--c-title);
  line-height: 1.3;
}

/* =============================================================
   Section: split (About) two-column rail
   ============================================================= */
.section-head--rail .section-lead { grid-column: 1 / -1; margin-top: 1rem; }

@media (min-width: 860px) {
  .section-grid--split {
    display: grid;
    grid-template-columns: minmax(0, 20rem) 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
  }
  .section-head--rail {
    border-bottom: 0;
    padding-bottom: 0;
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
  }
}

/* =============================================================
   Business — long lead + 4-step flow
   ============================================================= */
.biz-lead { max-width: 46rem; }
.biz-lead .biz-text + .biz-text { margin-top: 1.1rem; }

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 3vw, 2rem);
  margin-top: clamp(2.75rem, 5vw, 3.75rem);
}
.step {
  position: relative;
  padding-top: 1.35rem;
  border-top: 1px solid var(--c-hair-strong);
}
.step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 2rem;
  height: 2px;
  background: var(--accent-olive);
}
.step-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
  color: var(--accent-olive);
  font-feature-settings: "tnum";
}
.step-title {
  margin: 0.7rem 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--c-title);
}
.step-text {
  font-size: 0.875rem;
  color: var(--c-text);
  line-height: 1.9;
  max-width: 22rem;
}
@media (min-width: 540px) and (max-width: 899px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}

/* --- Brand block --- */
.brand-block {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--c-hair);
}

/* =============================================================
   Online stores — responsive grid (was horizontal scroll)
   ============================================================= */
.sites-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2vw, 1.5rem);
  overflow: visible;
  padding-bottom: 0;
  scroll-snap-type: none;
  list-style: none;
}
.sites-grid::-webkit-scrollbar { display: none; }
@media (min-width: 600px) {
  .sites-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .sites-grid { grid-template-columns: repeat(3, 1fr); }
}
.site-card {
  flex: none;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.site-card:hover {
  border-color: var(--accent-olive);
  transform: translateY(-2px);
}

/* =============================================================
   Contact form — inline errors, note, busy state
   ============================================================= */
.form-error {
  display: block;
  font-size: 0.75rem;
  line-height: 1.6;
  color: #ffb1a4;
  margin-top: 0.4rem;
}
.form-error:empty { display: none; }
.form-row.is-invalid input,
.form-row.is-invalid textarea {
  border-color: #ff9a8b;
}
.form-note {
  font-size: 0.75rem;
  color: var(--c-muted);
  line-height: 1.8;
}
.btn.is-busy,
.btn[aria-disabled="true"] {
  opacity: 0.6;
  pointer-events: none;
}

/* =============================================================
   Footer — expanded
   ============================================================= */
.site-footer { padding: clamp(2.5rem, 5vw, 3.5rem) 0; }
.footer-grid {
  display: grid;
  gap: 2rem clamp(2rem, 5vw, 4rem);
}
@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr auto;
    align-items: start;
  }
}
.footer-brand .logo { margin-bottom: 1rem; }
.footer-address {
  font-style: normal;
  font-size: 0.8125rem;
  line-height: 2;
  color: var(--c-muted);
}
.footer-hours { display: block; }
.footer-nav ul { display: grid; gap: 0.55rem; }
.footer-nav a {
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--c-text);
  transition: color 0.2s var(--ease);
}
.footer-nav a:hover { color: #fff; }
.footer-meta { align-self: end; }
.footer-copy {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: var(--c-faint);
  font-feature-settings: normal;
}

/* =============================================================
   Reveal-on-scroll (only when JS is present) + reduced motion
   ============================================================= */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn-arrow,
  .site-card,
  .brand-card { transition: none; }
  .carousel-track { transition: none; }
}

/* --- Narrow screens: quiet the decorative bits --- */
@media (max-width: 640px) {
  .hero-media::after { display: none; }
}

/* =============================================================
   2026-07 tweaks — logo lockup, larger hero eyebrow
   ============================================================= */

/* Logo: 「株式会社」 at the same size as KEN, in white */
.logo span {
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-left: 0.16em;
  color: #f7f3ef;
}

/* Hero eyebrow: larger, more legible (Japanese reads better with
   tighter tracking at this size) */
.hero .eyebrow {
  font-size: clamp(0.9375rem, 0.85rem + 0.45vw, 1.1875rem);
  letter-spacing: 0.12em;
  font-weight: 500;
  color: var(--c-title);
}
.hero .eyebrow::before { width: 2.4rem; }

/* Wider body text + no gap between the business paragraphs */
.biz-lead,
.biz-text,
.section-lead { max-width: 56rem; }
.biz-lead .biz-text + .biz-text { margin-top: 0; }

/* Hero sub-copy: wide enough that each sentence sits on its own line
   (on desktop); it still wraps gracefully on small screens */
.hero-lead { max-width: 56rem; }

/* Contact intro: wider so it doesn't wrap awkwardly */
.contact-lead { max-width: 56rem; }

/* Spam-guard question row */
.form-captcha .captcha-q {
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--c-title);
}
.form-captcha input { max-width: 12rem; }

/* =============================================================
   Bright theme (2026-07) — off-white base, dark text.
   Flips the formerly-dark hero / header / footer to light,
   inspired by clean white-based corporate sites. The already-
   light sections (about / business / stores) are unchanged.
   ============================================================= */

body { background: #efece6; }

/* hero + footer: undo the dark token remap → dark text on light */
.hero,
.site-footer {
  --c-title: #191714;
  --c-text:  #3a352f;
  --c-muted: #645e57;
  --c-faint: #6d6760;
  --c-hair:  #e6e1db;
  --c-hair-strong: #cfc8c0;
  --c-bg:    #f4f0ec;
  --accent:      #232323;
  --accent-deep: #000000;
  --accent-ink:  #ffffff;
  --accent-fg:   #232323;
  --accent-olive: #2b4c7e;
}

/* Hero: off-white base, photo brightened on the right */
.hero { background: #f4f0ec; }
.hero-media {
  background-color: #f4f0ec;
  background-image:
    linear-gradient(90deg,
      rgba(244, 240, 236, 1) 0%,
      rgba(244, 240, 236, 0.96) 45%,
      rgba(244, 240, 236, 0.72) 74%,
      rgba(244, 240, 236, 0.28) 100%),
    var(--hero-photo);
}
.hero-media::after {
  background: repeating-radial-gradient(circle at 84% 48%,
    transparent 0 42px, rgba(0, 0, 0, 0.04) 42px 43px, transparent 43px 44px);
}

/* Header: light translucent bar, dark logo + nav */
.site-header {
  background: #ffffff;   /* solid pure white — no see-through tint */
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}
.site-header.is-scrolled {
  background: #ffffff;
  border-bottom-color: rgba(0, 0, 0, 0.1);
}
.logo { color: #191714; }
.logo span { color: #191714; }
.global-nav a { color: rgba(0, 0, 0, 0.6); font-weight: 700; }
.global-nav a:hover,
.global-nav a[aria-current="true"] { color: #191714; }
.nav-toggle-bar { background: #191714; }

@media (max-width: 768px) {
  .js .global-nav { background: rgba(255, 255, 255, 0.98); }
  .js .global-nav li { border-bottom: 1px solid rgba(0, 0, 0, 0.1); }
}

/* Footer: light */
.site-footer { background: #ece9e3; }
.footer-nav a:hover { color: #191714; }

/* Contact form errors: readable red on a light ground */
.form-error { color: #c0392b; }
.form-row.is-invalid input,
.form-row.is-invalid textarea { border-color: #d9776b; }

/* =============================================================
   Refinement pass (2026-07) — modern polish on the bright theme.
   Pill buttons, soft-radius cards with gentle lift, staggered
   reveals, finer header, green selection. Appended overrides.
   ============================================================= */

/* --- Selection: brand green --- */
::selection { background: #2b4c7e; color: #fff; }

/* --- Buttons: pill silhouette (Apple-esque), a touch more air --- */
.btn {
  border-radius: 999px;
  padding: 1rem 2.1rem;
}
.contact-form .btn { border-radius: 999px; }

/* --- Hero type: larger, tighter — more presence --- */
.hero-title {
  font-size: clamp(2.5rem, 1.1rem + 5.2vw, 4.75rem);
  line-height: 1.42;
  letter-spacing: 0.01em;
}
.hero { min-height: max(650px, 88svh); }

/* --- Cards: soft radius + gentle lift/shadow on hover --- */
.site-card,
.brand-card {
  border-radius: 14px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.site-card:hover,
.brand-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(25, 23, 20, 0.08);
}
.site-card-logo,
.brand-logo-wrap { border-radius: 10px; }

/* --- Inputs: softer corners, calmer borders --- */
.form-row input,
.form-row textarea {
  border-radius: 10px;
  border-color: rgba(0, 0, 0, 0.48);
}
.form-row input:focus,
.form-row textarea:focus { border-color: #2b4c7e; }

/* --- Header: hairline + soft shadow when scrolled --- */
.site-header.is-scrolled {
  box-shadow: 0 1px 24px rgba(25, 23, 20, 0.06);
}

/* --- Info table: slightly airier rows --- */
.info-table th,
.info-table td { padding: 1.5rem 0; }

/* --- Steps: staggered entrance within the section reveal --- */
.js .reveal .step {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.js .reveal.is-visible .step { opacity: 1; transform: none; }
.js .reveal.is-visible .step:nth-child(2) { transition-delay: 0.08s; }
.js .reveal.is-visible .step:nth-child(3) { transition-delay: 0.16s; }
.js .reveal.is-visible .step:nth-child(4) { transition-delay: 0.24s; }

/* --- Site cards: staggered too --- */
.js .reveal .site-card {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease),
    border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.js .reveal.is-visible .site-card { opacity: 1; transform: none; }
.js .reveal.is-visible .site-card:nth-child(2) { transition-delay: 0.07s; }
.js .reveal.is-visible .site-card:nth-child(3) { transition-delay: 0.14s; }
.js .reveal.is-visible .site-card:nth-child(4) { transition-delay: 0.21s; }
.js .reveal.is-visible .site-card:nth-child(5) { transition-delay: 0.28s; }
.js .reveal.is-visible .site-card:hover { transform: translateY(-3px); }

/* --- To-top pill: brand navy, matching the CTA buttons --- */
.to-top {
  background: #2b4c7e;
  border-color: transparent;
}
.to-top:hover { background: #20395e; }

/* --- Reduced motion: kill the stagger too --- */
@media (prefers-reduced-motion: reduce) {
  .js .reveal .step,
  .js .reveal .site-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =============================================================
   Accent extension (2026-07) — green in two more places, curated:
   section numbers (rhythm with the already-green step numbers)
   and primary CTA buttons (action = brand color). English labels
   stay muted so the section heads don't double up on green.
   ============================================================= */
.section-num { color: var(--accent-olive); }

.btn--accent {
  background: #2b4c7e;            /* navy: ~7.5:1 with white text */
  color: #ffffff;
}
.btn--accent:hover { background: #20395e; }

/* =============================================================
   Performance pass (2026-07) — the hero photo is now a real
   responsive <img> inside .hero-media (early discovery → better
   LCP; mobile gets an 820w WebP). The CSS-background copy is
   disabled so the photo is never downloaded twice; the bright
   overlay gradient moves to ::before so it paints ABOVE the img.
   ============================================================= */
:root { --hero-photo: none; }

.hero-media img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg,
    rgba(244, 240, 236, 1) 0%,
    rgba(244, 240, 236, 0.96) 45%,
    rgba(244, 240, 236, 0.72) 74%,
    rgba(244, 240, 236, 0.28) 100%);
}

.hero-media::after { z-index: 2; }

/* =============================================================
   Final audit fixes (2026-07)
   ============================================================= */
/* [16] Re-assert the mobile stacked info-table paddings that the
   refinement-pass padding override was silently defeating */
@media (max-width: 640px) {
  .info-table th { padding: 1.5rem 0 0.5rem; }
  .info-table td { padding: 0 0 1.5rem; }
  .info-table tr:first-child th { padding-top: 0; }
}

/* [18] Reduced motion: win against the later transition re-definitions */
@media (prefers-reduced-motion: reduce) {
  .site-card,
  .brand-card,
  .js .global-nav { transition: none; }
}

/* =============================================================
   Legal pages (privacy.html / terms.html)
   ============================================================= */
.legal {
  max-width: 46rem;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}
.legal p,
.legal ul { font-size: 0.9375rem; line-height: 2; margin-bottom: 1.1rem; }
.legal ul { list-style: disc; padding-left: 1.5rem; }
.legal li { margin-bottom: 0.35rem; }
.legal h2 {
  margin: 2.75rem 0 0.9rem;
  padding-left: 0.9rem;
  border-left: 3px solid var(--accent-olive);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: var(--c-title);
}
.legal .legal-note { font-size: 0.8125rem; color: var(--c-muted); }
.legal-link { color: var(--accent-olive); text-decoration: underline; text-underline-offset: 3px; }
.legal-link:hover { opacity: 0.75; }
.legal .legal-dates {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--c-hair);
  font-size: 0.8125rem;
  color: var(--c-muted);
}

/* Brand block anchor: land clear of the sticky header */
#brands { scroll-margin-top: calc(var(--header-h) + 1.5rem); }

/* =============================================================
   Scam / fraud alert notice (directly below hero)
   Single-accent (navy) site, but a genuine safety warning
   warrants a restrained red so it reads as a warning at a glance.
   ============================================================= */
.alert-section {
  background: #fbf2f1;
  padding: clamp(1.75rem, 4vw, 2.75rem) 0;
}

.alert {
  display: flex;
  align-items: flex-start;
  gap: clamp(0.85rem, 2vw, 1.2rem);
  max-width: 60rem;
  margin: 0 auto;
  padding: clamp(1.15rem, 3vw, 1.6rem) clamp(1.15rem, 3vw, 1.75rem);
  background: #ffffff;
  border: 1px solid rgba(192, 57, 43, 0.28);
  border-left: 4px solid #c0392b;
  border-radius: 3px;
}

.alert-icon {
  flex: 0 0 auto;
  display: inline-flex;
  margin-top: 0.15rem;
  color: #c0392b;
}

.alert-body { min-width: 0; }

.alert-title {
  font-size: clamp(0.95rem, 0.9rem + 0.4vw, 1.1rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.55;
  color: #a3271d;
  margin-bottom: 0.6rem;
}

.alert-text {
  font-size: clamp(0.8125rem, 0.79rem + 0.2vw, 0.9rem);
  line-height: 1.95;
  color: #333333;
}

.alert-actions {
  margin-top: 1.05rem;
}

.alert-link {
  color: #a3271d;
  font-weight: 700;
  text-decoration: underline;
  word-break: break-all;
}

@media (max-width: 560px) {
  .alert { gap: 0.7rem; }
  .alert-icon svg { width: 22px; height: 22px; }
}

/* =============================================================
   Contact — 仕入れ・転売目的のお問い合わせに関するご案内
   お問い合わせセクションの左レール（モバイルではフォーム直前）に置く注記。
   詐欺注意喚起（.alert）より一段トーンを落とし、事務的な案内として読ませる。
   ============================================================= */
/* リード文の下マージンと注記の上マージンはグリッド内では相殺されないため、
   リード側を殺してアキを一本化する */
#contact .section-head--rail .section-lead { margin-bottom: 0; }

.contact-notice {
  grid-column: 1 / -1;
  margin-top: 1rem;
  padding: 1.2rem 1.35rem;
  background: #ffffff;
  border: 1px solid rgba(43, 76, 126, 0.3);
  border-left: 4px solid #2b4c7e;
  border-radius: 12px;
  box-shadow: 0 6px 22px rgba(25, 23, 20, 0.07);
}

.contact-notice-title {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.65;
  color: #2b4c7e;
}

.contact-notice-icon {
  flex: none;
  display: inline-flex;
  margin-top: 0.15rem;
}

.contact-notice-text {
  margin-top: 0.6rem;
  font-size: 0.8125rem;
  line-height: 1.9;
  color: var(--c-text);
}

.contact-notice-text strong {
  font-weight: 700;
  color: #2b4c7e;
}
