/* ==========================================================================
   tm&d サイトリニューアル — デザイントークン + リセット + 見出し体系
   ========================================================================== */

:root {
  --bg: #F0F2F2;
  --ink: #1F1F1F;
  --ink-weak: #6b6e6e;
  --line: #d8dbdb;
  --dark: #181a1a;
  --font-ja: 'Zen Kaku Gothic New', sans-serif;
  --font-ja-display: 'Shippori Mincho B1', serif;
  --font-en: 'Hanken Grotesk', 'Inter', sans-serif;

  --section-pad: clamp(80px, 12vw, 160px);
  --container-max: 1200px;
  --container-pad: clamp(20px, 4vw, 48px);
  --header-h: 80px;
}

/* --- reset ---------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* root-level horizontal clip guard for the page's several 100vw breakout
   elements (.workstrip, .fullbleed, .marquee-band's track) — takes over the
   job that used to sit on #business-a/#business-b's own `overflow: hidden`,
   which as a side effect broke position:sticky on their .sec-head (an
   `overflow` other than visible on any ancestor changes a sticky
   descendant's containing block from the viewport to that ancestor — see
   the narrow-viewport-only overflow rules on #business-a/#business-b below). */
html {
  overflow-x: clip;
}

/* scroll-behavior: smooth intentionally omitted here — Lenis (assets/app.js
   initLenis) drives inertia scrolling instead and the two fight each other.
   Native anchor jumps still work instantly when Lenis isn't active (reduced
   motion, or the CDN script failing to load). */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, figure {
  margin: 0;
  padding: 0;
}

ul, ol {
  list-style: none;
}

img, svg, video {
  display: block;
  max-width: 100%;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* --- base typography -------------------------------------------------- */
body {
  font-family: var(--font-ja);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.9;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
}

/* --- layout ------------------------------------------------------------ */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

main section {
  padding-block: var(--section-pad);
  scroll-margin-top: 96px;
}

footer {
  padding-block: var(--section-pad);
  color: var(--bg);
  background: var(--dark);
}

/* --- heading system ------------------------------------------------- */
/* .sec-label = tiny marker line above a section (e.g. "ABOUT"), not a headline */
.sec-label {
  font-family: var(--font-en);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  line-height: 1.4;
}

/* .sec-statement = big English statement headline */
.sec-statement {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: clamp(28px, 4.2vw, 40px);
  letter-spacing: -0.01em;
  line-height: 1.7;
}

/* .sec-phrase-ja = Japanese key phrase under the statement */
.sec-phrase-ja {
  font-family: var(--font-ja-display);
  font-weight: 600;
  font-size: 17px;
  line-height: 2.2;
  letter-spacing: 0.04em;
}

/* .sec-eyebrow = third voice: tiny English line above .sec-label */
.sec-eyebrow {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-weak);
  margin-bottom: 12px;
}

#business-b .sec-eyebrow {
  color: rgba(240, 240, 242, 0.55);
}

/* .sec-body = Japanese body copy paragraphs */
.sec-body {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 13px;
  line-height: 26px;
  letter-spacing: 0.05em;
  text-wrap: pretty;
}

.sec-sub {
  font-family: var(--font-ja);
  font-weight: 500;
  font-size: 14px;
  color: var(--ink-weak);
  margin-top: 12px;
}

footer .sec-sub {
  color: var(--line);
}

/* --- header --------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 100;
  /* scrim so hero text scrolling underneath stays legible until the solid flip */
  background: linear-gradient(to bottom, rgba(24, 26, 26, 0.92), rgba(24, 26, 26, 0));
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.35s ease;
  will-change: transform;
}

/* hide-on-scroll-down / reveal-on-scroll-up (app.js initHeaderScroll). Never
   applied while body.menu-open. Under prefers-reduced-motion the transition
   above is neutralized globally (0.01ms), so this becomes an instant
   hide/show instead of a slide — acceptable per spec. */
.site-header.is-hidden {
  transform: translateY(-100%);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: #f4f5f5;
  transition: color 0.3s ease;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 32px);
}

.header-nav a {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #f4f5f5;
  transition: color 0.3s ease, opacity 0.3s ease;
}

/* scrollspy: only dim non-active links once app.js has determined a section
   is active, so the initial (pre-JS) state is unchanged */
.header-nav.has-active a {
  opacity: 0.55;
}

.header-nav.has-active a.active {
  opacity: 1;
}

/* default state = light-on-dark, for sitting over the hero at page top.
   solid state (applied via JS scroll listener, app.js) flips to dark-on-light
   once the user scrolls past the hero. */
.site-header.is-solid {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.site-header.is-solid .logo,
.site-header.is-solid .header-nav a {
  color: var(--ink);
}

/* --- hamburger menu button (≤820px) ---------------------------------- */
.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-right: -10px;
  color: #f4f5f5;
}

.site-header.is-solid .menu-btn {
  color: var(--ink);
}

.menu-btn-line {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

body.menu-open .menu-btn-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.menu-open .menu-btn-line:nth-child(2) {
  opacity: 0;
}

body.menu-open .menu-btn-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 820px) {
  .header-nav {
    display: none;
  }

  .menu-btn {
    display: flex;
  }
}

/* --- mobile menu overlay (≤820px) ------------------------------------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 6vw, 40px);
  background: var(--dark);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
}

@media (min-width: 821px) {
  .mobile-menu {
    display: none;
  }
}

body.menu-open {
  overflow: hidden;
}

body.menu-open .mobile-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0s;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 5vw, 30px);
}

.mobile-menu-nav a {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f4f5f5;
}

.mobile-menu-company {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(24px, 6vw, 48px);
  text-align: center;
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 12px;
  color: rgba(240, 242, 242, 0.5);
}

/* ==========================================================================
   hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  background: var(--dark);
  overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(60px, 12vw, 160px));
  padding-bottom: clamp(60px, 10vw, 120px);
}

/* hero-01: dark still life of printed matter, isolated in its own layer so it
   can be slowly scaled (see app.js initHeroBreathe) without affecting the
   overlays or text above it */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--dark) url("img/hero-01.jpg") center / cover no-repeat;
  transform-origin: center center;
  will-change: transform;
}

/* scrim so the catch copy stays legible over the photo */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24, 26, 26, 0.55) 0%, rgba(24, 26, 26, 0.25) 45%, rgba(24, 26, 26, 0.6) 100%);
}

/* matte gradient base — soft light pooling, not glossy */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 120% 80% at 15% 0%, rgba(255, 255, 255, 0.05), transparent 60%),
    radial-gradient(ellipse 100% 60% at 90% 100%, rgba(255, 255, 255, 0.035), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.1));
}

/* fine paper-grain noise via SVG feTurbulence, kept subtle with overlay blend */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

.hero-inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 3vw, 28px);
}

.hero-caption {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: clamp(10px, 1vw, 11px);
  line-height: 17px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(240, 242, 242, 0.55);
}

.hero-catch {
  font-family: var(--font-ja-display);
  font-weight: 600;
  font-size: clamp(24px, 4.5vw, 44px);
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: #f4f5f5;
  max-width: 18em;
}

.hero-catch .line-mask {
  display: block;
  overflow: hidden;
}

.hero-catch .line {
  display: block;
}

.hero-company {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 13px;
  color: rgba(240, 242, 242, 0.5);
}

/* ==========================================================================
   marquee band
   ========================================================================== */
.marquee-band {
  background: #fff;
  border-block: 1px solid var(--line);
  /* symmetric vertical padding around the logo row (was 16/10 — the row
     visibly sat closer to the bottom rule than the top one) */
  padding-top: 16px;
  padding-bottom: 16px;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee-scroll 240s linear infinite;
}

.marquee-set {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-right: 34px;
}

.marquee-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.marquee-logo {
  height: 20px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.5;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

@media (hover: hover) {
  .marquee-band:hover .marquee-track {
    animation-play-state: paused;
  }

  .marquee-logo:hover {
    filter: grayscale(0);
    opacity: 1;
  }
}

.marquee-name {
  white-space: nowrap;
  font-family: var(--font-ja);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-weak);
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.marquee-credit {
  margin-top: 6px;
  text-align: right;
  font-family: var(--font-ja);
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--ink-weak);
  opacity: 0.8;
}

/* ==========================================================================
   services — bridge section between the marquee and #about, two anchor cards
   ========================================================================== */
.services {
  background: var(--bg);
  padding-block: clamp(44px, 5.5vw, 80px);
}

.services .sec-head {
  margin-bottom: clamp(28px, 4vw, 44px);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

@media (max-width: 760px) {
  .services-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.service-card {
  position: relative;
  display: block;
  min-height: clamp(280px, 36vh, 420px);
  overflow: hidden;
  background: var(--dark);
}

.service-card-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24, 26, 26, 0.35) 0%, rgba(24, 26, 26, 0.75) 100%);
  transition: opacity 0.4s ease;
}

@media (hover: hover) {
  .service-card:hover .service-card-bg {
    transform: scale(1.03);
  }

  .service-card:hover .service-card-overlay {
    opacity: 0.85;
  }
}

.service-card-body {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  padding: clamp(20px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-card-caption {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.service-card-title {
  font-family: var(--font-ja-display);
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: 0.04em;
  color: #fff;
}

.service-card-line {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}

.service-card-arrow {
  position: absolute;
  right: clamp(16px, 2.5vw, 28px);
  bottom: clamp(16px, 2.5vw, 28px);
  font-family: var(--font-en);
  font-size: 18px;
  color: #fff;
  transition: transform 0.3s ease;
}

@media (hover: hover) {
  .service-card:hover .service-card-arrow {
    transform: translateX(6px);
  }
}

/* ==========================================================================
   about
   ========================================================================== */
#about {
  /* generous air above the section — the aesthetic midrain leans on.
     enlarged again for the "rhythm & contrast" pass so the flip from the
     dark hero into ABOUT reads as a deliberate breath, not a stripe */
  padding-top: clamp(180px, 22vw, 300px);
}

.about-head {
  margin-bottom: clamp(32px, 5vw, 56px);
}

.about-head .sec-statement {
  margin-top: 16px;
}

/* the ABOUT statement gets a much bigger typographic hit than every other
   .sec-statement on the page — this is the one deliberate "shout" moment */
.sec-statement--xl {
  font-size: clamp(38px, 6.5vw, 68px);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.about-head .sec-statement--xl {
  margin-top: clamp(20px, 3vw, 32px);
}

.about-head .sec-phrase-ja {
  margin-top: 12px;
}

.sec-body-group {
  display: flex;
  flex-direction: column;
  gap: 1.4em;
  max-width: 34em;
}

/* line-break hygiene tuning for the two paragraphs the client flagged for
   mid-word orphans (#about's intro, #business-a's lead). Narrowed slightly
   from the shared 34em default so lines break nearer to natural punctuation
   at common viewport widths; tuned visually at 1280/1024/375. */
#about .sec-body-group,
#business-a > .container > .sec-body-group {
  max-width: 35em;
}

/* asymmetric 2-col layout: head sticks on the left, statement/body reads on
   the right. Only #about's direct .container is targeted here — the
   business sections get their own scoped rules below, since only their
   lead .sec-body-group (not the later .biz-block chapters) should sit in
   the right column. */
@media (min-width: 900px) {
  #about > .container {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: start;
  }

  #about .about-head {
    position: sticky;
    top: 120px;
    margin-bottom: 0;
  }
}

/* ==========================================================================
   business (shared skeleton for #business-a / #business-b)
   ========================================================================== */
.sec-head {
  position: relative;
  margin-bottom: clamp(32px, 5vw, 56px);
}

/* keep the real heading content above .sec-num (see below) regardless of
   DOM order — positioned descendants otherwise paint above static ones */
.sec-head > *:not(.sec-num) {
  position: relative;
  z-index: 1;
}

.sec-head .sec-statement {
  margin-top: 16px;
}

.sec-head .sec-phrase-ja {
  margin-top: 12px;
}

/* giant outlined chapter number ("01" / "02") floating behind #business-a
   and #business-b's .sec-head — decorative, hidden from assistive tech */
.sec-num {
  position: absolute;
  right: 0;
  top: -0.2em;
  z-index: 0;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: clamp(88px, 14vw, 160px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  pointer-events: none;
}

@media (max-width: 560px) {
  .sec-num {
    font-size: clamp(64px, 20vw, 96px);
  }
}

/* clip the giant .sec-num on narrow viewports so it can never contribute to
   horizontal overflow. Scoped to <900px only (rather than applied
   unconditionally) because `overflow` other than visible on #business-a
   would otherwise become the containing block for its sticky .sec-head
   (see @media (min-width: 900px) below) and permanently offset it by its
   sticky `top` value regardless of scroll position. The root `html {
   overflow-x: clip }` rule above covers desktop-width horizontal overflow
   instead. */
@media (max-width: 899px) {
  #business-a {
    overflow: hidden;
  }
}

/* asymmetric 2-col layout: sec-head + the lead .sec-body-group sit side by
   side (head sticky on the left); every later .biz-block / .fullbleed chapter
   still runs the full container width below. */
@media (min-width: 900px) {
  #business-a > .container,
  #business-b > .container {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: start;
  }

  /* NOT sticky here (unlike #about): in practice the sticky constraint
     rectangle covers the whole section grid, so the pinned head rode down
     over the card grids and full-width blocks below (client-reported).
     #about keeps sticky because nothing full-width follows its two columns. */
  #business-a .sec-head,
  #business-b .sec-head {
    margin-bottom: 0;
    /* pin explicitly to row1/col1 — .sec-body-group (col:2) and the later
       .biz-block chapters (col:1/-1) all have a *definite* column, so the
       CSS Grid auto-placement algorithm places them before this (fully-auto)
       item and leaves its cursor past row 1, which without this rule pushes
       .sec-head down into a later row instead of sharing row 1 with
       .sec-body-group (visible as the body copy starting ~120px above the
       eyebrow/label instead of flush with it). */
    grid-row: 1;
    grid-column: 1;
  }

  #business-a > .container > .sec-body-group,
  #business-b > .container > .sec-body-group {
    grid-column: 2;
  }

  #business-a > .container > .biz-block,
  #business-b > .container > .biz-block,
  #business-b > .container > .fullbleed {
    grid-column: 1 / -1;
  }

  /* the head column is narrower than the full section now, so the giant
     chapter numeral is scaled down slightly and pulled toward the column
     gap — still visible, but no longer trying to occupy full-section width */
  #business-a .sec-num,
  #business-b .sec-num {
    right: -12px;
    font-size: clamp(72px, 9vw, 130px);
  }
}

.biz-block {
  margin-top: clamp(56px, 8vw, 96px);
}

.sub-heading {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  margin-bottom: clamp(20px, 3vw, 28px);
}

/* card grid — "つくれるもの" (6 cards) / "設置環境" (3 cards) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .card-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.info-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
}

/* installation-environment photo header — business-b's "設置環境" cards only.
   Negative margins matching .info-card's own padding pull the photo out to
   the card's top/left/right edges (bottom stays inset, gap to card-name is
   the card's normal flex gap). */
.env-photo {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  margin: calc(-1 * clamp(20px, 3vw, 28px)) calc(-1 * clamp(20px, 3vw, 28px)) 0;
}

.env-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* "つくれるもの" 6-card grid photo header — #business-a only. Same
   negative-margin bleed-to-card-edge trick as .env-photo above, but a
   tighter 3:2 crop and its own small "参考イメージ" scrim chip since these
   are generic reference photos, not actual client artwork. */
.tool-photo {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  margin: calc(-1 * clamp(20px, 3vw, 28px)) calc(-1 * clamp(20px, 3vw, 28px)) 0;
}

.tool-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tool-photo-caption {
  position: absolute;
  right: 8px;
  bottom: 8px;
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 9px;
  letter-spacing: 0.02em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(24, 26, 26, 0.55);
  padding: 4px 8px;
  border-radius: 999px;
}

.card-name {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 15px;
}

.card-sub {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 12px;
  color: var(--ink-weak);
  margin-top: -4px;
}

/* numbered step list — "ご依頼から納品まで" / "お申し込みから設置まで".
   Connected vertical timeline: a leading rail column (numbered node circle)
   per item, with a 1px connecting line (.step-item::before) running the
   height of every item except the last, so nodes read as beads on one
   continuous line down the list. The line's draw-in and each node's pop-in
   are driven from app.js (initStepTimeline, inside the prefers-reduced-motion
   guard) via a --line-scale custom property consumed below — default 1 here
   so no-JS/reduced-motion visitors see the line fully drawn and nodes fully
   visible with no extra markup or gsap.set required. */
.step-list {
  display: flex;
  flex-direction: column;
}

.step-item {
  position: relative;
  display: flex;
  gap: clamp(16px, 3vw, 28px);
  padding-block: 22px;
  --line-scale: 1;
}

.step-item::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
  transform: scaleY(var(--line-scale));
  transform-origin: top;
}

.step-item:last-child::before {
  content: none;
}

.step-rail {
  flex: 0 0 auto;
  width: 32px;
  display: flex;
  justify-content: center;
}

.step-node {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-num {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 12px;
  color: var(--ink);
}

.step-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding-top: 5px;
}

.step-name {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 15px;
}

.step-note {
  margin-top: 16px;
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 12px;
  line-height: 1.9;
  color: var(--ink-weak);
}

/* work strip — slow auto-scrolling row of client artwork (business-a only,
   "制作物より", after the 5-step list). Same full-bleed-breakout + duplicated
   flex-row-track approach as .marquee-band above, kept as its own class
   since it's a different speed/size/section. Reduced-motion is handled by
   the global animation-duration override at the top of this file. */
.workstrip-label {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 10px;
  color: var(--ink-weak);
  margin-bottom: 12px;
}

.workstrip {
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  overflow: hidden;
  padding-block: 12px;
}

.workstrip-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: workstrip-scroll 120s linear infinite;
}

.workstrip-set {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-right: 20px;
}

.workstrip-set img {
  flex: 0 0 auto;
  height: clamp(120px, 16vw, 200px);
  width: auto;
  border: 1px solid var(--line);
  background: #fff;
  padding: 4px;
}

@keyframes workstrip-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* stat row — "数字" (business-b only, always on the dark section — colors
   below are hardcoded for that dark background rather than themed via
   var(--ink) etc., same as the rest of this block). 3-layer anatomy per
   item: .stat-num (value + unit, baseline-aligned) / .stat-caption /
   .stat-note. .stat-grid itself uses grid-level `align-items: baseline` so
   every item's number sits on one shared baseline row even though item 3
   ("1枠1社") uses a smaller serif variant (.stat-value--ja) than the others. */
/* top-aligned so the 1px top rules sit on one shared line; the numbers are
   then bottom-aligned inside a fixed-height .stat-num zone instead (the old
   grid-level baseline alignment shifted whole item boxes and broke the rules'
   alignment). */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 32px;
  row-gap: 40px;
  align-items: start;
}

@media (max-width: 900px) {
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.stat-item {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.stat-num {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(58px, 6.5vw, 80px);
  padding-bottom: 14px;
  --underline-w: 32px;
}

.stat-num .stat-unit {
  padding-bottom: 4px;
}

/* animated underline under the number — draws in (0 → 32px) when the
   count-up completes; app.js sets --underline-w to 0px then tweens it back
   up. Default 32px here means no-JS/reduced-motion visitors see it already
   fully drawn. */
.stat-num::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: var(--underline-w);
  background: rgba(255, 255, 255, 0.5);
}

.stat-value {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: clamp(44px, 5.5vw, 64px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

/* "1枠1社" — the Hanken Grotesk numeral size overflows on non-numeric
   Japanese text at that scale, so it gets its own smaller serif treatment,
   still baseline-aligned against the other three items via .stat-grid. */
.stat-value--ja {
  font-family: var(--font-ja-display);
  font-weight: 600;
  font-size: clamp(30px, 3.6vw, 40px);
}

.stat-unit {
  margin-left: 6px;
  font-family: var(--font-ja);
  font-weight: 500;
  font-size: 15px;
  color: rgba(240, 242, 242, 0.8);
}

.stat-caption {
  margin-top: 12px;
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(240, 242, 242, 0.65);
}

/* min-height keeps every item's caption→note spacing identical even on the
   two items ("1枠1社" / "3〜5分") that have no note text at all. */
.stat-note {
  margin-top: 4px;
  min-height: 15px;
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 10px;
  color: rgba(240, 242, 242, 0.4);
}

/* plan block — "プラン" (business-b only, same dark-hardcoded-color
   reasoning as the stat row above). Two side-by-side cards with the FP
   (flagship) plan visually emphasized, then a compact meta table, then the
   unchanged closing paragraph (plain .sec-body, styled elsewhere). */
.plan-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin-bottom: clamp(28px, 4vw, 40px);
}

@media (min-width: 700px) {
  .plan-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.plan-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.plan-card--fp {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.35);
}

.plan-code {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1;
  color: #fff;
}

.plan-title {
  margin-top: 10px;
  font-family: var(--font-ja-display);
  font-weight: 600;
  font-size: 16px;
  color: #f4f5f5;
}

.plan-desc {
  margin-top: 12px;
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 12.5px;
  line-height: 1.9;
  color: rgba(240, 242, 242, 0.65);
}

.plan-meta-table {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 16px;
  max-width: 32em;
  margin-bottom: clamp(28px, 4vw, 40px);
}

.plan-meta-table dt,
.plan-meta-table dd {
  padding-block: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.plan-meta-table dt {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}

.plan-meta-table dd {
  margin: 0;
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 13px;
  color: #f4f5f5;
}

/* availability digest — "空き枠情報" (business-b only, dark section) */
.avail-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.avail-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.avail-store {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 13px;
  color: #f4f5f5;
}

.avail-chip {
  flex: 0 0 auto;
  font-family: var(--font-ja);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
}

.avail-chip--open {
  border-color: rgba(255, 255, 255, 0.85);
  color: #fff;
}

.avail-chip--full {
  border-color: rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.35);
}

.avail-note {
  margin-top: 16px;
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 10px;
  color: rgba(240, 242, 242, 0.5);
}

@media (max-width: 560px) {
  .avail-item {
    flex-wrap: wrap;
    gap: 8px;
  }

  .avail-store {
    flex-basis: 100%;
  }
}

/* ==========================================================================
   full-bleed photo band — #business-b only, between the intro copy and the
   "設置環境" cards. Breaks out of .container to full viewport width.
   ========================================================================== */
.fullbleed {
  position: relative;
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  margin-top: clamp(56px, 8vw, 96px);
  height: clamp(320px, 55vh, 560px);
  overflow: hidden;
}

/* inset -12% top/bottom (via CSS, not JS) so the image already overpaints
   the box at rest — parallax (app.js) then rides yPercent -8→8 across that
   headroom. If JS/scroll-driven motion is skipped (prefers-reduced-motion
   or no ScrollTrigger), this still renders as a plain centered cover image. */
.fullbleed-media {
  position: absolute;
  inset: -12% 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.fullbleed-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(16px, 3vw, 28px) var(--container-pad);
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(240, 242, 242, 0.7);
}

/* ==========================================================================
   business-b — dark chapter moment ("second hero"). Overrides scoped under
   #business-b so #business-a is completely unaffected.
   ========================================================================== */
#business-b {
  background: var(--dark);
  color: #f4f5f5;
  padding-block: clamp(120px, 16vw, 220px);
}

/* same reasoning/scoping as #business-a's overflow rule above — kept off at
   >=900px so it doesn't break position:sticky on #business-b .sec-head. */
@media (max-width: 899px) {
  #business-b {
    overflow: hidden;
  }
}

#business-b .sec-num {
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.22);
}

#business-b .sec-label,
#business-b .sec-statement,
#business-b .sec-phrase-ja,
#business-b .sub-heading,
#business-b .card-name,
#business-b .step-name {
  color: #f4f5f5;
}

#business-b .sec-body,
#business-b .card-sub,
#business-b .step-note {
  color: rgba(240, 242, 242, 0.6);
}

#business-b .info-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.14);
}

/* step timeline — dark variant (line + node border lighter, node number
   full white, node background matches the section's own dark bg so it
   masks the connecting line passing behind it, same trick as the light
   .step-node rule above) */
#business-b .step-item::before {
  background: rgba(255, 255, 255, 0.3);
}

#business-b .step-node {
  border-color: rgba(255, 255, 255, 0.6);
  background: var(--dark);
}

#business-b .step-num {
  color: #fff;
}

/* ==========================================================================
   works — #works
   ========================================================================== */
#works {
  /* white, and a hairline top border to mark the hard cut from dark
     BUSINESS 02 back to a light section */
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 32px);
}

@media (max-width: 900px) {
  .works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .works-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.work-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  cursor: default;
}

.work-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.85) 0%, rgba(226, 229, 228, 0.55) 45%, rgba(203, 207, 206, 0.6) 100%),
    linear-gradient(200deg, #e4e6e5, #cdd0cf);
  margin-bottom: 4px;
  overflow: hidden;
}

.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) {
  .work-card:hover .work-thumb img {
    transform: scale(1.04);
  }
}

.work-title {
  font-family: var(--font-ja-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  line-height: 1.6;
  display: inline-block;
  background-image: linear-gradient(var(--ink), var(--ink));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.work-card:hover .work-title {
  background-size: 100% 1px;
}

.work-client {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 11px;
  color: var(--ink-weak);
}

.work-tags {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 11px;
  color: var(--ink-weak);
}

/* archive wall — dense masonry-like grid of all client artwork tiles
   ("制作物アーカイブ", biz-block after .works-grid). Unmapped pieces, so no
   per-item titles — .archive-wall img gets a batch fade/rise reveal in
   app.js instead of the per-item wipeIn used on .work-thumb above. */
.archive-note {
  margin-top: -16px;
  margin-bottom: 24px;
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 11px;
  color: var(--ink-weak);
}

.archive-wall {
  columns: 3;
  column-gap: 10px;
}

@media (min-width: 760px) {
  .archive-wall {
    columns: 4;
  }
}

@media (min-width: 1100px) {
  .archive-wall {
    columns: 5;
  }
}

.archive-wall img {
  display: block;
  width: 100%;
  break-inside: avoid;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 4px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (hover: hover) {
  .archive-wall img:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(31, 31, 31, 0.12);
  }

  .work-thumb img,
  .archive-wall img,
  .news-photo img {
    cursor: zoom-in;
  }
}

/* archive wall — flex-column restructure (app.js initArchiveWallColumns,
   >=760px only, inside the prefers-reduced-motion guard). .is-flex is only
   ever added by JS, so no-JS/reduced-motion/<760px visitors keep the plain
   CSS-columns layout above untouched. margin-bottom is zeroed on tiles here
   since .archive-col's own `gap` replaces it as the vertical spacing. */
.archive-wall.is-flex {
  display: flex;
  gap: 10px;
}

.archive-wall.is-flex .archive-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.archive-wall.is-flex img {
  margin-bottom: 0;
}

/* ==========================================================================
   news — #news
   ========================================================================== */
.news-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.news-item {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 28px);
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
}

/* Groups .news-meta + .news-headline so they wrap together as one unit on
   narrow viewports while .news-photo stays pinned to the right of the row
   (see .news-item above, which no longer wraps itself). */
.news-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(12px, 3vw, 28px);
}

.news-meta {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.news-date {
  flex: 0 0 auto;
  min-width: 64px;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--ink-weak);
}

.news-cat {
  flex: 0 0 auto;
  /* fixed min-width (measured against the longest current label, 実施決定
     at 64px) so the chip's rendered width doesn't vary with label length —
     otherwise .news-headline (the next flex sibling) starts at a different
     x per row and the headlines don't share one vertical line. */
  min-width: 68px;
  text-align: center;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink-weak);
  background: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}

.news-cat--win {
  color: var(--ink);
  border-color: var(--ink);
}

.news-headline {
  flex: 1 1 320px;
  min-width: 0;
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.9;
}

.news-photo {
  flex: 0 0 auto;
  margin-left: auto;
  width: clamp(96px, 10vw, 132px);
  aspect-ratio: 3 / 2;
  border: 1px solid var(--line);
  overflow: hidden;
}

.news-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 560px) {
  .news-photo {
    width: 84px;
  }
}

/* ==========================================================================
   company — #company
   ========================================================================== */
.company-table {
  display: grid;
  grid-template-columns: minmax(110px, 200px) minmax(0, 1fr);
  border-top: 1px solid var(--line);
}

.company-table dt,
.company-table dd {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-ja);
  font-size: 13px;
  line-height: 26px;
  letter-spacing: 0.08em;
}

.company-table dt {
  font-weight: 700;
  color: var(--ink-weak);
  padding-right: 16px;
}

.company-table dd {
  font-weight: 400;
  min-width: 0;
  word-break: break-word;
}

@media (max-width: 560px) {
  .company-table {
    grid-template-columns: minmax(0, 1fr);
  }

  .company-table dt {
    padding-bottom: 2px;
    border-bottom: none;
  }

  .company-table dd {
    padding-top: 0;
  }
}

/* grouped partners list — "主要取引先" (#company), replacing the old single
   text-wall paragraph with 3 categorized columns. The 不動産・住宅・建設
   group is the largest (23 companies) so it gets a wider track and its own
   internal 2-column split once there's room (≥900px). */
.partners {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 40px);
}

@media (min-width: 1000px) {
  .partners {
    grid-template-columns: 1.8fr 1fr 1fr;
    gap: 48px;
  }
}

.partner-cat {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.partner-cat::before {
  content: '';
  flex: 0 0 auto;
  display: inline-block;
  width: 16px;
  height: 1px;
  background: var(--ink);
}

.partner-list {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 12.5px;
  line-height: 2.2;
  color: var(--ink);
}

@media (min-width: 900px) {
  .partner-group--main .partner-list {
    columns: 2;
    column-gap: 24px;
  }
}

.partners-note {
  margin-top: 12px;
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 12px;
  color: var(--ink-weak);
}

/* ==========================================================================
   contact — #contact
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

@media (max-width: 860px) {
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.contact-intro {
  display: flex;
  flex-direction: column;
  /* fill the grid row height (the form column next to it runs much taller —
     7 fields + submit) and spread the panel/tel block across it instead of
     leaving all the extra air stranded below a short left column. No-op at
     <=860px where .contact-layout drops to a single stacked column, since
     each item is then its own row sized to its own content. */
  align-self: stretch;
  justify-content: space-between;
}

.contact-panel {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
  padding: 28px;
}

.contact-tel {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-tel-label {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 11px;
  color: var(--ink-weak);
}

.contact-tel-number {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.contact-tel-note {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 12px;
  color: var(--ink-weak);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  border: none;
  padding: 0;
  margin: 0;
}

.form-label {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.req {
  margin-left: 6px;
  font-family: var(--font-ja);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--ink-weak);
}

/* "お問い合わせ項目" radios rendered as selectable chips — the native radio
   stays in the DOM (and reachable by keyboard/focus) but is visually hidden
   via sr-only clipping rather than display:none, so the field stays
   accessible; the label itself becomes the clickable pill. Checked state is
   driven purely by :has(), no JS required, so the existing submit handler
   and status element in app.js need no changes. */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.radio-option {
  position: relative;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.radio-option input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* bump the chip's tap target to the 44px touch-target minimum on mobile —
   at the base padding (10px 16px, 12.5px/1.3 text) the rendered height is
   only ~38px. Desktop/hover-capable pointers are unaffected. */
@media (max-width: 560px) {
  .radio-option {
    min-height: 44px;
    padding-block: 13px;
  }
}

.radio-option:has(input:checked) {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.radio-option:has(input:focus-visible) {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.checkbox-option {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 13px;
  cursor: pointer;
}

.form-input {
  width: 100%;
  min-width: 0;
  padding: 10px 2px;
  font-family: var(--font-ja);
  font-size: 13px;
  color: var(--ink);
  background: var(--bg);
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-input:focus {
  border-bottom-color: var(--ink);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-checkbox-field .checkbox-option a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  padding: 16px;
  font-family: var(--font-ja);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--bg);
  background: var(--ink);
  transition: background 0.2s ease;
}

.form-submit-arrow {
  font-family: var(--font-en);
  transition: transform 0.25s ease;
}

@media (hover: hover) {
  .form-submit:hover {
    background: #000;
  }

  .form-submit:hover .form-submit-arrow {
    transform: translateX(4px);
  }
}

.form-status {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 12px;
  line-height: 1.8;
  color: var(--ink-weak);
  min-height: 1.8em;
}

.form-status.is-visible {
  color: var(--ink);
}

/* ==========================================================================
   footer
   ========================================================================== */
/* footer-top: giant wordmark + tagline, nav column, and a small
   back-to-top link pinned to the top-right corner of the row. */
.footer-top {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: clamp(28px, 5vw, 48px);
  /* padding-top clears the absolutely-positioned .footer-top-link (top:0) so
     it never overlaps the first .footer-nav link sitting in normal flow */
  padding-top: 32px;
  padding-bottom: clamp(32px, 5vw, 48px);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-logo {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: clamp(48px, 7vw, 84px);
  line-height: 1;
  color: #f4f5f5;
}

.footer-tagline {
  font-family: var(--font-en);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(240, 242, 242, 0.5);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav a {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(240, 242, 242, 0.75);
  transition: color 0.2s ease;
}

@media (hover: hover) {
  .footer-nav a:hover {
    color: #fff;
  }
}

.footer-top-link {
  position: absolute;
  top: 0;
  right: 0;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(240, 242, 242, 0.55);
  transition: color 0.2s ease;
}

@media (hover: hover) {
  .footer-top-link:hover {
    color: #fff;
  }
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-block: clamp(32px, 5vw, 48px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-name {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 14px;
  color: var(--bg);
  margin-bottom: 4px;
}

.footer-line {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 12px;
  line-height: 1.9;
  color: rgba(240, 242, 242, 0.65);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: clamp(32px, 5vw, 48px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

@media (min-width: 700px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-privacy {
  /* border/spacing now come from the shared .footer-bottom row above */
}

.footer-privacy summary {
  cursor: pointer;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(240, 242, 242, 0.8);
}

.privacy-body {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 46em;
}

.privacy-body p,
.privacy-body li {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 12px;
  line-height: 1.9;
  color: rgba(240, 242, 242, 0.65);
}

.privacy-subhead {
  margin-top: 6px;
  font-weight: 700;
  color: rgba(240, 242, 242, 0.85);
}

.privacy-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 1.4em;
}

.privacy-list li {
  list-style: disc;
}

.footer-copy {
  font-family: var(--font-en);
  font-weight: 400;
  font-size: 11px;
  color: rgba(240, 242, 242, 0.4);
  text-align: left;
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-link {
  font-family: var(--font-en);
  font-weight: 400;
  font-size: 10px;
  color: rgba(240, 242, 242, 0.25);
  text-decoration: none;
}

.admin-link:hover {
  color: rgba(240, 242, 242, 0.5);
}

/* ==========================================================================
   tel links — #contact intro + footer. Visible digits stay unchanged; the
   link only adds tap-to-call behavior, so it inherits color and has no
   underline until hover.
   ========================================================================== */
.tel-link {
  color: inherit;
  text-decoration: none;
}

.tel-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   fixed CTA pill — persistent "お問い合わせ" shortcut. Purely functional
   (visibility toggling based on scroll position / #contact intersection),
   so its JS lives outside the prefers-reduced-motion decorative-motion guard
   in app.js; only the opacity/transform transition below is animated.
   ========================================================================== */
.cta-pill {
  position: fixed;
  right: clamp(16px, 2vw, 28px);
  bottom: clamp(16px, 2.5vh, 28px);
  z-index: 90;
  display: inline-block;
  background: var(--ink);
  color: #f4f5f5;
  font-family: var(--font-ja);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 12px 22px;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, transform 0.3s;
}

.cta-pill.is-visible {
  opacity: 1;
  visibility: visible;
}

@media (hover: hover) {
  .cta-pill:hover {
    background: #000;
    transform: translateY(-2px);
  }
}

@media (max-width: 560px) {
  .cta-pill {
    padding: 10px 18px;
  }
}

/* ==========================================================================
   opening curtain — first-load-only intro (app.js initCurtain). JS-created
   and JS-only: it's built and animated entirely inside the
   prefers-reduced-motion-guarded initReveals(), so this element never exists
   under reduced motion or when JS/GSAP fails to load. sessionStorage keeps
   it to once per session.
   ========================================================================== */
.curtain {
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 200;
  pointer-events: none;
}

/* ==========================================================================
   lightbox — WORKS thumbnails (.work-thumb img) + archive wall tiles
   (.archive-wall img), JS-built overlay (app.js initLightbox). Built and
   wired unconditionally so opening/closing an enlarged image keeps working
   under prefers-reduced-motion or if GSAP fails to load; the opacity/scale
   transition below collapses to ~instant under reduced motion via the global
   `transition-duration: 0.01ms !important` rule at the top of this file, so
   no separate no-motion code path is needed here.
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(24, 26, 26, 0.94);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.lightbox[hidden] {
  display: none;
}

.lightbox.is-open {
  opacity: 1;
}

.lightbox-img {
  max-width: 88vw;
  max-height: 86vh;
  object-fit: contain;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  transform: scale(0.96);
  transition: transform 0.25s ease;
}

.lightbox.is-open .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: clamp(10px, 2vw, 20px);
  right: clamp(10px, 2vw, 20px);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f4f5f5;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

@media (hover: hover) {
  .lightbox-close:hover {
    background: rgba(255, 255, 255, 0.18);
  }
}

/* ==========================================================================
   2026-11-02 先方の修正（HP修正箇所20261101・追加の修正）で足した部品
   ========================================================================== */

/* 流れる帯：クライアント業態の20語（11/4 から。前は事業の4語）。帯の速さは前の社名の帯と同じ毎秒約17.6px、字は読める濃さに */
.marquee-band--words .marquee-track {
  animation-duration: 202s; /* 1周の長さ 約3,560px ÷ 毎秒17.6px */
}

.marquee-word {
  white-space: nowrap;
  font-family: var(--font-ja);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.marquee-item--link {
  color: inherit;
  text-decoration: none;
}

@media (hover: hover) {
  .marquee-item--link:hover .marquee-word {
    color: var(--ink-weak);
  }
}

/* 事業の柱の2枚の下に、サブの扱いで HP制作・各種撮影 */
.services-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-top: clamp(16px, 2vw, 22px);
  font-family: var(--font-ja);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink-weak);
}

.services-sub span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.services-sub span::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 1px;
  background: var(--ink-weak);
}

/* ABOUT：広告事業に対する基本的な考え方の4つ（見出しは明朝のフレーズの声部） */
.stance {
  gap: 0;
  max-width: 40em;
}

.stance-item {
  display: flex;
  flex-direction: column;
  gap: 0.9em;
  padding-block: 22px;
  border-top: 1px solid var(--line);
}

.stance-item:last-child {
  border-bottom: 1px solid var(--line);
}

.stance-title {
  font-family: var(--font-ja-display);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-wrap: balance; /* 1字だけ次の行に落ちないように */
}

/* 見出しは文節（読点・＝）のところでだけ折る */
.hero-catch .ph,
.stance-title .ph,
.card-name .ph {
  display: inline-block;
}

/* 卓上広告：企画の強み（4枚は2列） */
.card-grid--points {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 560px) {
  .card-grid--points {
    grid-template-columns: minmax(0, 1fr);
  }
}

.card-num {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(240, 242, 242, 0.45);
}

/* 数字は3つになった */
.stat-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 560px) {
  .stat-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* プラン：HSP 未満の注記 */
.plan-note {
  margin: 16px 0 20px;
  max-width: 40em;
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 12.5px;
  line-height: 1.9;
  color: rgba(240, 242, 242, 0.65);
}

/* 会社案内：略歴（年の列を狭く） */
.company-table--history {
  grid-template-columns: minmax(90px, 140px) minmax(0, 1fr);
}

.company-table--history dd {
  word-break: auto-phrase; /* 語の途中で折らない（対応しているブラウザだけ） */
}

/* 会社案内：クライアント業態 */
.industry-list {
  columns: 2;
  column-gap: 32px;
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 12.5px;
  line-height: 2.2;
  color: var(--ink);
}

@media (min-width: 900px) {
  .industry-list {
    columns: 3;
  }
}

@media (max-width: 560px) {
  .industry-list {
    columns: 1;
  }
}

.industry-list li {
  break-inside: avoid;
}

.industry-list li::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 10px;
  background: var(--ink);
  vertical-align: middle;
}

.industry-note {
  margin-top: 12px;
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 12px;
  color: var(--ink-weak);
}

/* 問い合わせフォームの上：営業・勧誘のお断り（目立つように） */
.form-notice {
  padding: 14px 18px;
  border: 1.5px solid var(--ink);
  background: #fff;
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--ink);
}

/* 釣り合いの調整（2026-11-02）：札が2枚だけの枠は2列にして右の穴をなくす（つくれるもの・設置環境）。
   企画の強み4枚は、広い画面では横1列にして高さを詰める */
.card-grid:has(> :nth-child(2):last-child) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 560px) {
  .card-grid:has(> :nth-child(2):last-child) {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 1000px) {
  .card-grid--points {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ==========================================================================
   2026-11-04 先方の修正（修正のお願い20261103）で足した部品
   ========================================================================== */

/* 最初の画面：見出しの上に「良い広告とは――」（同じ明朝で小さく。見出しと一緒に下からせり上がる） */
.hero-catch .line-mask--lead {
  margin-bottom: 0.35em;
}

.hero-catch .hero-lead {
  font-size: 0.5em;
  letter-spacing: 0.12em;
  color: rgba(244, 245, 245, 0.78);
}

/* 事業の柱：HP制作・各種撮影の前に「その他の業務」 */
.services-sub .services-sub-label {
  color: var(--ink);
  font-weight: 700;
}

.services-sub .services-sub-label::before {
  display: none;
}

/* 卓上広告：設置環境は8枚（11/5 に1枚追加）。広い画面は4列（4＋4）、その下は3列→2列→1列 */
@media (min-width: 1100px) {
  .card-grid--env {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* 札の小見出し（ブランド・設置場所）も文節で折る */
.card-sub .ph {
  display: inline-block;
}

/* ABOUT（11/4 本人「文字文字しすぎ」）：4つは番号＋見出し＋1行だけの一覧に。
   4つ目に詰まっていた長い2段落は一覧から外し、下に読み物として置く */
.stance-item {
  display: grid;
  grid-template-columns: 2.4em minmax(0, 1fr);
  column-gap: 14px;
  padding-block: 26px;
}

.stance-num {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--ink-weak);
  padding-top: 0.75em;
}

.stance-text {
  display: flex;
  flex-direction: column;
  gap: 0.7em;
  min-width: 0;
}

.stance .stance-title {
  font-size: clamp(17px, 1.6vw, 19px);
}

.stance-note {
  display: flex;
  flex-direction: column;
  gap: 1.6em;
  margin-top: clamp(36px, 5vw, 56px);
}

.stance-quote {
  font-family: var(--font-ja-display);
  font-weight: 500;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 2.1;
  letter-spacing: 0.04em;
  color: var(--ink);
  padding-left: clamp(16px, 2vw, 24px);
  border-left: 2px solid var(--ink);
}

/* 数字（11/4 本人「数字だけでは"だから何？"」）：数字ごとに意味の一文。カウントアップはやめた（app.js） */
.stat-desc {
  margin-top: 10px;
  max-width: 22em;
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.9;
  letter-spacing: 0.03em;
  color: rgba(240, 242, 242, 0.82);
}

/* 2026-11-04 案B（本人 OK）：作品の実物を台紙の上に置く／実施事例の並び */
.work-thumb--flat img { object-fit: contain; padding: 5% 6%; filter: drop-shadow(0 6px 14px rgba(0,0,0,.18)); }
@media (hover: hover) { .work-card:hover .work-thumb--flat img { transform: scale(1.02); } }
.tool-photo--flat { background: linear-gradient(155deg, rgba(255,255,255,.85) 0%, rgba(226,229,228,.55) 45%, rgba(203,207,206,.6) 100%), linear-gradient(200deg,#e4e6e5,#cdd0cf); }
.tool-photo--flat img { object-fit: contain; padding: 6% 0; filter: drop-shadow(0 6px 14px rgba(0,0,0,.18)); }
.case-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(12px, 2vw, 20px); }
@media (min-width: 700px) { .case-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (min-width: 1000px) { .case-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.case-item { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.case-photo { aspect-ratio: 4 / 3; overflow: hidden; }
.case-photo img { width: 100%; height: 100%; object-fit: cover; }
.case-name { font-family: var(--font-ja); font-size: 12px; letter-spacing: .06em; color: rgba(240,242,242,.72); }
.works-group + .works-group { margin-top: clamp(40px, 6vw, 64px); }
.works-grid--flat { grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (min-width: 700px) { .works-grid--flat { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (min-width: 1000px) { .works-grid--flat { grid-template-columns: repeat(5, minmax(0,1fr)); } }
.works-grid--flat .work-thumb { aspect-ratio: 3 / 4; }

/* 改行の総点検（11/4）：本文は最後の行に「ます。」だけ残さない組み方に。語の切れ目で折る（Chrome）。
   見出しと括弧の塊は .ph で文節ごとに折る */
.sec-body, .stat-desc, .stat-caption, .plan-desc, .plan-note, .avail-store, .avail-note,
.news-headline, .service-card-line, .company-table dd, .industry-list li, .case-name, .fullbleed-caption {
  text-wrap: pretty;
  word-break: auto-phrase;
}

.industry-list .ph,
.company-table dd .ph,
.hero-catch .line .ph {
  display: inline-block;
}

.company-table dd.kana-name {
  word-break: keep-all;
}

/* 語の切れ目で折る設定の逃げ道：どうしても入らない語句だけは中で折る（スマホで略歴が箱からはみ出していた） */
.sec-body, .stat-desc, .stat-caption, .plan-desc, .plan-note, .avail-store, .avail-note,
.news-headline, .service-card-line, .company-table dd, .industry-list li, .case-name, .fullbleed-caption {
  overflow-wrap: anywhere;
}

.industry-list .ph,
.company-table dd .ph {
  max-width: 100%;
}

/* 事業の柱：広告制作の背景は作品2点を切らずに右へ（札が縦長になっても右端に寄せて見せる） */
.service-card-bg--right {
  background-position: 100% 50%;
}

/* 実施事例：何の写真かを一文で */
.case-lead {
  margin-bottom: clamp(16px, 2vw, 24px);
}

/* 2026-11-05 新着：最初は6件、「View more」で10件ずつ開く */
.news-item[hidden] {
  display: none;
}

.news-more {
  display: flex;
  justify-content: center;
  margin-top: clamp(24px, 4vw, 36px);
}

.news-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 12px 32px;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 2px;
  transition: background 0.2s ease, color 0.2s ease;
}

.news-more-plus {
  font-weight: 400;
  font-size: 14px;
  line-height: 1;
}

@media (hover: hover) {
  .news-more-btn:hover {
    background: var(--ink);
    color: var(--bg);
  }
}

.news-more-btn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* 2026-11-05 「中高年」が「中高｜年」と語の途中で折れるのを止める */
.nw {
  white-space: nowrap;
}

/* 2026-11-08 新着：本文がある行は、題を押すと写真と本文が下に開く（本人「押すと開く」） */
.news-item--more {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: clamp(12px, 3vw, 28px);
  row-gap: 16px;
}

.news-item--more .news-photo {
  margin-left: 0;
}

/* 開いているあいだは小さい写真を隠し、ボタンを横いっぱいにする */
.news-item.is-open .news-toggle {
  grid-column: 1 / -1;
}

.news-toggle {
  -webkit-appearance: none;
  appearance: none;
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 28px);
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.news-toggle:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.news-toggle-mark {
  flex: 0 0 auto;
  position: relative;
  width: 11px;
  height: 11px;
}

.news-toggle-mark::before,
.news-toggle-mark::after {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 11px;
  height: 1px;
  background: var(--ink-weak);
}

.news-toggle-mark::after {
  transform: rotate(90deg);
}

.news-item.is-open .news-toggle-mark::after {
  transform: none;
}

.news-item.is-open .news-photo {
  display: none;
}

.news-body {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 32px);
  align-items: start;
}

.news-body[hidden] {
  display: none;
}

.news-body-photo {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 480px; /* 縦に長い写真が画面いっぱいに伸びないように（2026-11-19）。小さい写真は引き伸ばさない */
  border: 1px solid var(--line);
}

.news-body-text {
  margin: 0;
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.9;
  white-space: pre-line;
  color: var(--ink);
}

@media (min-width: 761px) {
  /* 本文の書き出しを題の書き出しにそろえる（日付64px＋間12px＋カテゴリ68px＋間） */
  .news-body {
    padding-left: calc(144px + clamp(12px, 3vw, 28px));
  }
}

@media (max-width: 760px) {
  .news-body {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (hover: hover) {
  .news-toggle:hover .news-headline {
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}

@media (max-width: 560px) {
  /* スマホでは開け閉めの印を日付の行の右端に置き、題の幅を削らない（題が語の途中で折れていた） */
  .news-toggle {
    position: relative;
    display: block;
  }

  .news-toggle-mark {
    position: absolute;
    top: 8px;
    right: 0;
  }
}
