/* =========================================================
   8hammer — Creative Content & Education
   Corporate layout (header menu + hero) / white / monochrome
   with strong line-weight hierarchy
   ========================================================= */

:root {
  --bg: #ffffff;
  --ink: #111111;
  --gray: #5f6166;
  --line: #e6e6e6;       /* hairline (細) */
  --line-2: #efefef;     /* faint hairline (極細) */
  --rule: #111111;       /* structural rule color (太) */
  --rule-w: 2px;         /* structural rule weight */
  --brand: #f5c518;      /* logo yellow (highlight) */
  --accent: #141414;     /* monochrome accent (黒×イエロー方針) */
  --maxw: 1160px;
  --header-h: 74px;
  --ph-img: url("../img/bland/8hammers.svg");   /* 画像未設定時のブランドプレースホルダー */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --display: "Space Grotesk", "Zen Kaku Gothic New", system-ui, sans-serif;
  --sans: "Inter", "Zen Kaku Gothic New", system-ui, sans-serif;
  --jp: "Zen Kaku Gothic New", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: var(--jp);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.85;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
em { font-style: normal; color: var(--accent); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.pc { display: inline; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: var(--rule-w) solid var(--rule);   /* 太 */
  transition: box-shadow 0.3s var(--ease);
}
.header.is-scrolled { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05); }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  max-width: none;          /* 全幅化：containerの最大幅を解除 */
  padding: 0 36px;
}
.logo { display: inline-flex; align-items: center; }
.logo__img {
  display: block;
  height: 42px;
  width: auto;
  transition: transform 0.25s var(--ease);
}
.logo:hover .logo__img { transform: translateY(-1px); }
.logo__img--sm { height: 30px; }

.nav__list { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav__list a {
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  transition: color 0.25s;
}
.nav__list a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1.5px; background: var(--accent);
  transition: width 0.3s var(--ease);
}
.nav__list a:not(.nav__cta):hover { color: var(--accent); }
.nav__list a:not(.nav__cta):hover::after { width: 100%; }
.nav__cta {
  padding: 9px 20px;
  background: var(--ink);
  color: #fff !important;
  border-radius: 999px;
  transition: background 0.25s;
}
.nav__cta:hover { background: var(--accent); }
/* secondary (outlined) nav CTA — 資料請求：枠線のみ → ホバーでイエロー */
.nav__list a.nav__cta--line { background: transparent; color: var(--ink) !important; box-shadow: inset 0 0 0 1.5px var(--ink); transition: background 0.25s, color 0.25s, box-shadow 0.25s; }
.nav__list a.nav__cta--line:hover { background: var(--brand); color: var(--ink) !important; box-shadow: inset 0 0 0 1.5px var(--brand); transform: none; }
/* 資料請求とContactの間隔を詰める（gap 30px → 約12px） */
.nav__list li:last-child { margin-left: -18px; }

.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none; cursor: pointer;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); transition: transform 0.3s var(--ease), opacity 0.3s; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (full-bleed video) ---------- */
.hero {
  position: relative;
  width: 100%;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: var(--rule-w) solid var(--rule);   /* 太 */
  background: linear-gradient(135deg, #1a1a1a, #3a3a3a);   /* video fallback */
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.55));
}
.hero__content {
  position: relative;
  z-index: 2;
  padding-top: 80px;
  padding-bottom: 80px;
  color: #fff;
}
.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}
.eyebrow--light { color: #fff; }
.hero__title {
  font-family: var(--jp);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.9rem);
  line-height: 1.4;
  letter-spacing: 0.01em;
  margin-bottom: 28px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.3);
}
.hero__lead {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(0.95rem, 1.6vw, 1.08rem);
  margin-bottom: 36px;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.35);
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 34px;
  background: var(--ink); color: #fff;
  border: 1px solid var(--ink); border-radius: 999px;
  font-family: var(--sans); font-weight: 600; font-size: 0.9rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.btn:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: transparent; color: var(--accent); border-color: var(--accent); }
/* hero (on dark) variants */
.btn--invert { background: #fff; color: var(--ink); border-color: #fff; }
.btn--invert:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--sm { padding: 10px 22px; font-size: 0.82rem; }

/* area CTA (services) */
.area-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; margin-top: 30px; }

/* product / service cards — bordered grid (ボーダー基調) */
.pcards-label {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink); font-weight: 600; margin: 38px 0 0;
}
.pcards-label::before { content: ""; width: 18px; height: 8px; background: var(--brand); }
.pcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 22px; }
.pcard { position: relative; overflow: hidden; border-radius: 6px; min-height: 360px; display: flex; align-items: flex-end; background: #1a1a1a; }
.pcard__bg { position: absolute; inset: 0; background-color: #1a1a1a; background-image: var(--bg-image, var(--ph-img)), var(--ph-img); background-size: cover; background-position: center; background-repeat: no-repeat; transition: transform 0.6s var(--ease); }
.pcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 20%, rgba(0, 0, 0, 0.45) 52%, rgba(0, 0, 0, 0.86)); z-index: 1; }
.pcard:hover .pcard__bg { transform: scale(1.06); }
.pcard::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 0; background: var(--brand); z-index: 3; transition: width 0.35s var(--ease); }
.pcard:hover::before { width: 100%; }
.pcard__cap { position: relative; z-index: 2; padding: 34px 30px; }
.pcard__en { display: inline-block; font-family: var(--sans); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); font-weight: 600; }
.pcard__name { display: block; margin-top: 10px; color: #fff; font-weight: 700; font-size: 1.14rem; line-height: 1.5; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6); }
.pcard__text { display: block; margin-top: 14px; color: rgba(255, 255, 255, 0.82); font-size: 0.9rem; line-height: 1.85; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5); }

/* ---------- Full-bleed rows (top page Services / Works) ---------- */
.block--full { overflow: hidden; }
.svc-full, .gallery--full { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; width: 100%; margin-top: 0; }
.gallery--full { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 12px; padding: 12px; }   /* トップWorksは横1段 */
.scard { position: relative; display: flex; align-items: flex-end; min-height: 460px; overflow: hidden; background: #1a1a1a; }
.scard__bg { position: absolute; inset: 0; background-color: #1a1a1a; background-image: var(--bg-image, linear-gradient(135deg, #2b2b2b, #4a4a4a)); background-size: cover; background-position: center; background-repeat: no-repeat; transition: transform 0.7s var(--ease); }
.scard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 22%, rgba(0, 0, 0, 0.5) 56%, rgba(0, 0, 0, 0.86)); z-index: 1; }
.scard:hover .scard__bg { transform: scale(1.05); }
.scard::before { content: ""; position: absolute; left: 0; top: 0; height: 5px; width: 0; background: var(--brand); z-index: 3; transition: width 0.4s var(--ease); }
.scard:hover::before { width: 100%; }
.scard__cap { position: relative; z-index: 2; padding: 46px 40px; }
.scard__en { display: block; font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brand); font-weight: 600; }
.scard__name { display: block; margin-top: 9px; color: #fff; font-weight: 700; font-size: clamp(1.4rem, 2.1vw, 1.9rem); line-height: 1.4; text-shadow: 0 1px 14px rgba(0, 0, 0, 0.6); }
.scard__text { display: block; margin-top: 15px; color: rgba(255, 255, 255, 0.85); font-size: 0.92rem; line-height: 1.85; max-width: 34em; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5); }

/* ---------- Top-page: clients logo marquee ---------- */
.clients { padding: 46px 0 50px; background: #fff; overflow: hidden; }
.clients__label { font-family: var(--sans); font-size: clamp(1.05rem, 1.7vw, 1.35rem); font-weight: 700; letter-spacing: 0.06em; color: var(--ink); margin: 0 0 28px; padding: 0 28px; text-align: center; }
.client-marquee { overflow: hidden; }
.client-marquee__track { display: flex; width: max-content; animation: client-scroll 40s linear infinite; }
.client-marquee:hover .client-marquee__track { animation-play-state: paused; }
.client-logo { flex: none; margin-right: clamp(44px, 5vw, 76px); font-family: var(--display); font-weight: 700; font-size: clamp(1.2rem, 2vw, 1.7rem); white-space: nowrap; letter-spacing: 0.01em; }
.client-logo img { height: clamp(26px, 3.4vw, 40px); width: auto; display: block; }
@keyframes client-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .client-marquee__track { animation: none; flex-wrap: wrap; gap: 20px 40px; }
}

/* ---------- Top-page: full-width section title (lines top & bottom) ---------- */
.block__head.block__head--full {
  position: relative;
  padding-top: 20px;
  margin-bottom: 0;       /* トップページのタイトルのみ */
  border-bottom: none;    /* replaced by wide ::after */
}
.block__head--full::before,
.block__head--full::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  width: 100vw;   /* 線は全幅（端まで）。内側の余白はテキスト側で確保 */
  height: var(--rule-w); background: var(--rule);
}
.block__head--full::before { top: 0; }
.block__head--full::after { bottom: 0; }

/* ---------- Top-page: About split (image left / text right) ---------- */
.about-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 640px; margin-bottom: 0; border-top: var(--rule-w) solid var(--rule); border-bottom: var(--rule-w) solid var(--rule); }
/* Aboutの直後（Services）は上の余白を詰める。About下線と見出し上線を共有 */
.about-split + .block--full { padding-top: 0; }
.about-split + .block--full .block__head--full { border-top: none; }
.about-split + .block--full .block__head--full::before { display: none; }
.about-split__media { position: relative; overflow: hidden; background: #dfe3ea; }
.about-split__bg { position: absolute; inset: 0; background-color: #dfe3ea; background-image: var(--bg-image, linear-gradient(135deg, #d7dbe2, #bcc1ca)); background-size: cover; background-position: center; background-repeat: no-repeat; transition: transform 1s var(--ease); }
.about-split:hover .about-split__bg { transform: scale(1.04); }
.about-split__float { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 46%; aspect-ratio: 1/1; background: rgba(255,255,255,0.5); backdrop-filter: blur(2px); border: 1px solid rgba(255,255,255,0.6); }
.about-split__body { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 88px clamp(32px, 6vw, 104px); }
.about-split__badge { align-self: flex-start; font-family: var(--sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; color: var(--ink); background: var(--brand); padding: 7px 18px; border-radius: 999px; }
.about-split__index { position: absolute; top: 40px; right: clamp(32px, 6vw, 104px); width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; font-family: var(--sans); font-size: 0.8rem; color: var(--gray); }
.about-split__title { font-size: clamp(2rem, 3.6vw, 3.2rem); font-weight: 700; line-height: 1.32; margin: 30px 0 16px; }
.about-split__sub { font-family: var(--sans); font-size: 0.84rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray); margin-bottom: 26px; }
.about-split__text { color: var(--gray); line-height: 1.95; max-width: 40em; margin-bottom: 38px; }
.pill-btn { align-self: flex-start; display: inline-flex; align-items: center; gap: 30px; padding: 14px 26px; border: 1px solid var(--ink); border-radius: 999px; font-family: var(--sans); font-weight: 600; font-size: 0.88rem; color: var(--ink); transition: background 0.25s, color 0.25s, border-color 0.25s; }
.pill-btn span { color: var(--brand); transition: transform 0.25s var(--ease); }
.pill-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.pill-btn:hover span { color: var(--brand); transform: translateX(4px); }
.about-split__caption { position: absolute; right: clamp(32px, 6vw, 104px); bottom: 40px; font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.08em; color: var(--gray); }

/* ---------- Top-page feature bands (Services, 1-column stacked) ---------- */
.features { display: block; }
.feature { position: relative; display: flex; align-items: center; min-height: 500px; overflow: hidden; background: #111; }
.feature + .feature { margin-top: 0; }
.feature__bg {
  position: absolute; inset: 0;
  background-color: #1a1a1a;
  background-image: var(--bg-image, linear-gradient(135deg, #2b2b2b, #4a4a4a));
  background-size: cover; background-position: center; background-repeat: no-repeat;
  transition: transform 1s var(--ease);
}
.feature:hover .feature__bg { transform: scale(1.045); }
.feature::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(0,0,0,0.58) 0%, rgba(0,0,0,0.32) 48%, rgba(0,0,0,0.12) 86%); }
.feature--right::after { background: linear-gradient(270deg, rgba(0,0,0,0.58) 0%, rgba(0,0,0,0.32) 48%, rgba(0,0,0,0.12) 86%); }
.feature .container { position: relative; z-index: 2; width: 100%; }
.feature__inner { max-width: 560px; padding: 72px 0; color: #fff; }
.feature--right .feature__inner { margin-left: auto; }
.feature__no { display: block; font-family: var(--display); font-size: 2.4rem; font-weight: 700; color: var(--brand); line-height: 1; }
.feature__en { display: block; margin-top: 16px; font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brand); font-weight: 600; }
.feature__name { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 700; line-height: 1.3; margin: 10px 0 18px; text-shadow: 0 2px 18px rgba(0,0,0,0.85), 0 1px 4px rgba(0,0,0,0.6); }
.feature__text { color: #fff; font-size: clamp(0.95rem, 1.4vw, 1.05rem); line-height: 1.95; margin-bottom: 26px; text-shadow: 0 1px 10px rgba(0,0,0,0.85), 0 1px 3px rgba(0,0,0,0.6); }
.feature__more { display: inline-flex; align-items: center; gap: 9px; font-family: var(--sans); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.04em; color: #fff; border-bottom: 2px solid var(--brand); padding-bottom: 5px; transition: gap 0.25s var(--ease); }
.feature:hover .feature__more { gap: 15px; }

/* role list (team) */
.rolelist { list-style: none; border-top: 1px solid var(--line); max-width: 720px; }
.rolelist li { padding: 16px 0; border-bottom: 1px solid var(--line); font-weight: 500; display: flex; align-items: baseline; gap: 14px; }
.rolelist li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }

/* team member cards (photo / name / role) */
.team { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 24px; }
.member { position: relative; }
.member__photo {
  position: relative; aspect-ratio: 3 / 4; border-radius: 6px; overflow: hidden;
  background-color: #ededed;
  background-image: var(--photo, var(--ph-img)), var(--ph-img);
  background-size: cover; background-position: center top;
  filter: grayscale(1); transition: filter 0.5s var(--ease), transform 0.5s var(--ease);
}
.member:hover .member__photo { filter: grayscale(0); }
.member__photo::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 0;
  background: var(--brand); transition: width 0.35s var(--ease);
}
.member:hover .member__photo::after { width: 100%; }
.member__name {
  margin-top: 16px; font-weight: 700; font-size: 1rem; line-height: 1.4;
  display: flex; flex-direction: column; gap: 2px;
}
.member__en { font-family: var(--sans); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.1em; color: var(--gray); }
.member__role { margin-top: 6px; font-family: var(--sans); font-size: 0.82rem; color: var(--gray); line-height: 1.6; }

/* message sign / profile */
.sign { font-weight: 700; margin-top: 22px; font-size: 1.05rem; }
.profile { list-style: none; margin-top: 16px; color: var(--gray); font-size: 0.9rem; }
.profile li { padding: 4px 0; }

/* cross-sell callout */
.crosslink {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  padding: 30px 34px; border: 1px solid var(--line); border-radius: 4px; background: #fafafa;
}
.crosslink__text strong { display: block; font-size: 1.08rem; }
.crosslink__text span { display: block; color: var(--gray); font-size: 0.9rem; margin-top: 6px; }

/* ---------- Blocks ---------- */
.block { padding: 80px 0; }
.block__head {
  display: flex; align-items: baseline; gap: 16px;
  margin-bottom: 40px; padding-bottom: 18px;
  border-bottom: var(--rule-w) solid var(--rule);   /* 太（タイトル直下） */
}
.block__no { font-family: var(--sans); font-size: 0.78rem; font-weight: 600; color: var(--accent); letter-spacing: 0.1em; }
.block__title { font-family: var(--display); font-weight: 600; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.block__more {
  margin-left: auto; align-self: center;
  font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.08em; font-weight: 600;
  color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 3px;
  transition: color 0.25s, border-color 0.25s;
}
.block__more:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.about__big { font-family: var(--display); font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 500; line-height: 1.7; }
.about__text p { color: var(--gray); margin-bottom: 18px; }
.about__text p:last-child { margin-bottom: 0; }

/* ---------- About — Philosophy (Mission / Vision / Message) ---------- */
.phil { position: relative; padding: 80px 0; overflow: hidden; }
.phil__index {
  position: absolute; top: 18px; right: -6px; z-index: 0; pointer-events: none;
  font-family: var(--display); font-weight: 700; line-height: 0.78;
  font-size: clamp(6rem, 17vw, 14rem); letter-spacing: -0.03em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(17, 17, 17, 0.08);
}
.phil__head { position: relative; z-index: 1; margin-bottom: 40px; }
.phil__label {
  display: inline-flex; align-items: center;
  font-family: var(--sans); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink); margin-bottom: 18px;
}
.phil__label::before { content: ""; width: 22px; height: 8px; background: var(--brand); margin-right: 12px; }
.phil__title {
  font-family: var(--jp); font-weight: 700; letter-spacing: 0.01em;
  font-size: clamp(1.7rem, 4vw, 3rem); line-height: 1.4; max-width: 22em;
}
.phil__title em { font-style: normal; color: var(--ink); background: linear-gradient(transparent 58%, rgba(245, 197, 24, 0.9) 58%); padding: 0 0.06em; }
.phil__body { position: relative; z-index: 1; }
.phil__note { margin-top: 30px; max-width: 46em; color: var(--gray); font-size: 1rem; line-height: 1.95; }

/* Mission — triad */
.triad { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); border-top: var(--rule-w) solid var(--rule); }
.triad__item { padding: 26px 26px 30px 0; border-right: 1px solid var(--line); }
.triad__item:last-child { border-right: none; padding-right: 0; }
.triad__no { font-family: var(--sans); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.12em; color: var(--gray); }
.triad__word { font-family: var(--jp); font-weight: 700; font-size: clamp(1.8rem, 3.6vw, 2.7rem); line-height: 1.15; margin: 12px 0 0; }
.triad__word::after { content: ""; display: block; width: 36px; height: 4px; background: var(--brand); margin: 16px 0; }
.triad__desc { color: var(--gray); font-size: 0.95rem; line-height: 1.85; }

/* Vision — dark full-bleed band */
.phil--dark { background: #111; color: #fff; padding: 92px 0; }
.phil--dark .phil__index--light { color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.13); }
.phil--dark .phil__label--light { color: #fff; }
.phil--dark .phil__title--light { color: #fff; }
.vision-name { position: relative; z-index: 1; display: flex; align-items: center; flex-wrap: wrap; gap: 36px 48px; margin-top: 48px; }
.vision-name__formula {
  display: inline-flex; align-items: center; gap: 0.16em;
  font-family: var(--display); font-weight: 700; line-height: 1; color: #fff;
  font-size: clamp(3.4rem, 10vw, 7rem);
}
.vision-name__formula i { font-style: normal; font-size: 0.42em; color: rgba(255, 255, 255, 0.45); }
.vision-name__formula b { color: var(--brand); }
.vision-name__text { max-width: 30em; color: rgba(255, 255, 255, 0.8); font-size: 1rem; line-height: 1.95; }
.vision-name__text strong { color: #fff; font-weight: 700; }

/* Message — editorial quote */
.message-body { position: relative; z-index: 1; display: grid; grid-template-columns: 1.55fr 1fr; gap: 24px 52px; align-items: start; }
.message-portrait { aspect-ratio: 4 / 5; width: 100%; border-radius: 6px; overflow: hidden; background-color: #ededed; background-image: var(--photo, var(--ph-img)), var(--ph-img); background-size: cover; background-position: center top; }
.message-aside .message-sign { margin-top: 22px; }
.message-quote { position: relative; padding-top: 34px; }
.message-quote::before { content: "\201C"; position: absolute; top: -28px; left: -10px; font-family: var(--display); font-size: 7rem; line-height: 1; color: var(--brand); }
.message-quote p { color: var(--gray); font-size: 1.02rem; line-height: 2; margin-bottom: 18px; }
.message-quote p:last-child { margin-bottom: 0; }
.message-quote p:first-of-type { color: var(--ink); font-weight: 500; }
.message-sign { border-top: var(--rule-w) solid var(--rule); padding-top: 22px; }
.message-sign .sign { margin-top: 0; }

/* ---------- Services ---------- */
.svc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }   /* 細グリッド */
.svc__item { background: var(--bg); padding: 42px 38px; }
.svc__title { font-family: var(--display); font-size: 1.5rem; font-weight: 600; }
.svc__sub { font-size: 0.78rem; letter-spacing: 0.16em; color: var(--gray); margin-bottom: 20px; }
.svc__text { color: var(--gray); font-size: 0.94rem; margin-bottom: 24px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.04em;
  padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--gray);
}

/* ---------- Gallery (image-forward cards with caption overlay) ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { display: block; }
.card__media { position: relative; display: block; aspect-ratio: 3 / 2; border-radius: 5px; overflow: hidden; background: #1a1a1a; }
.card__img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 0.6s var(--ease); }
.card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(0, 0, 0, 0.2) 55%, rgba(0, 0, 0, 0.78)); }
.card:hover .card__img { transform: scale(1.06); }
.card__cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 20px 22px; }
.card__cat { display: inline-block; font-family: var(--sans); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); font-weight: 600; }
.card__ttl { display: block; margin-top: 7px; color: #fff; font-weight: 700; font-size: 1.05rem; line-height: 1.5; text-shadow: 0 1px 14px rgba(0, 0, 0, 0.5); }
.card__media::before { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: 5px; box-shadow: inset 0 0 0 0 var(--brand); transition: box-shadow 0.25s var(--ease); pointer-events: none; }
.card:hover .card__media::before { box-shadow: inset 0 0 0 3px var(--brand); }

/* thumb (detail hero / company access) */
.card__thumb { display: block; aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; }

.t1 { background: linear-gradient(135deg, #ff7a59, #ff4a23); }
.t2 { background: linear-gradient(135deg, #1d1d1d, #5a5a5a); }
.t3 { background-color: #111; background-image: url("../img/top/IMG_8109.jpg"); background-size: cover; background-position: center; }
.t4 { background: linear-gradient(135deg, #ffd166, #ff8c42); }
.t5 { background-color: #111; background-image: url("../img/top/IMG_0903.jpg"); background-size: cover; background-position: center; }
.t6 { background-color: #111; background-image: url("../img/top/IMG_8109.jpg"); background-size: cover; background-position: center; }
.t7 { background: linear-gradient(135deg, #e9e4dc, #b8b0a4); }
.t8 { background: linear-gradient(135deg, #2b6cb0, #63b3ed); }
.t9 { background: linear-gradient(135deg, #f06595, #ff8787); }
.note { color: var(--gray); font-size: 0.8rem; margin-top: 30px; }

/* ---------- School ---------- */
.courses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.course { border: 1px solid var(--line); border-radius: 4px; padding: 32px 28px; transition: border-color 0.3s, transform 0.3s var(--ease); }
.course:hover { border-color: var(--ink); transform: translateY(-4px); }
.course h3 { font-size: 1.2rem; margin-bottom: 12px; }
.course h3::before { content: ""; display: block; width: 32px; height: 2px; background: var(--accent); margin-bottom: 14px; }
.course p { color: var(--gray); font-size: 0.9rem; }

.stats { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; padding-top: 44px; border-top: 1px solid var(--line); }   /* 細 */   /* 太 */
.stats li { text-align: center; }
.stats__num, .stats__suffix { font-family: var(--display); font-size: clamp(2.4rem, 5vw, 3.2rem); font-weight: 700; }
.stats__suffix { color: var(--accent); }
.stats__label { display: block; font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray); margin-top: 6px; }

/* ---------- Company ---------- */
.company { border-top: 1px solid var(--line); max-width: 860px; }   /* 細 */
.company__row { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }   /* 細 */
.company__row dt { font-weight: 700; font-size: 0.92rem; }
.company__row dd { color: var(--gray); font-size: 0.94rem; }
.company__row dd a { color: var(--accent); }
.company__row dd a:hover { text-decoration: underline; }

/* ---------- Contact / Form ---------- */
.contact__lead { color: var(--gray); margin-bottom: 32px; }
.form { max-width: 640px; }
.form__row { margin-bottom: 22px; }
.form__row label { display: block; font-size: 0.88rem; font-weight: 700; margin-bottom: 9px; }
.req { font-family: var(--sans); font-size: 0.62rem; background: var(--accent); color: #fff; padding: 2px 7px; border-radius: 3px; margin-left: 6px; letter-spacing: 0.05em; }
.form input, .form textarea, .form select {
  width: 100%; padding: 13px 15px;
  background: #fafafa; border: 1px solid var(--line); border-radius: 4px;
  color: var(--ink); font-family: inherit; font-size: 0.95rem;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none; background: #fff; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.06);
}
.form input.is-invalid, .form textarea.is-invalid { border-color: var(--accent); }
.form textarea { resize: vertical; }
.form__result { margin-top: 16px; font-weight: 700; min-height: 1.2em; }
.form__result.is-success { color: #119955; }
.form__result.is-error { color: var(--accent); }

/* ---------- HubSpot embedded form ---------- */
.form-narrow, .hs-form-wrap { max-width: 640px; }
.hs-form-wrap fieldset { max-width: 100% !important; border: none; }
.hs-form-wrap .hs-form-field { margin-bottom: 18px; }
.hs-form-wrap .hs-form-field > label { display: block; font-size: 0.88rem; font-weight: 700; margin-bottom: 9px; color: var(--ink); }
.hs-form-wrap .hs-form-field > label .hs-form-required { color: var(--accent); margin-left: 4px; }
.hs-form-wrap input.hs-input:not([type="checkbox"]):not([type="radio"]),
.hs-form-wrap textarea.hs-input,
.hs-form-wrap select.hs-input {
  width: 100% !important; max-width: 100% !important;
  padding: 13px 15px; background: #fafafa; border: 1px solid var(--line); border-radius: 4px;
  color: var(--ink); font-family: inherit; font-size: 0.95rem; box-sizing: border-box;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.hs-form-wrap input.hs-input:focus,
.hs-form-wrap textarea.hs-input:focus,
.hs-form-wrap select.hs-input:focus {
  outline: none; background: #fff; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.06);
}
.hs-form-wrap textarea.hs-input { resize: vertical; min-height: 130px; }
.hs-form-wrap ul { list-style: none; padding: 0; margin: 0; }
.hs-form-wrap .inputs-list { margin-top: 6px; }
.hs-form-wrap .hs-error-msgs { margin: 6px 0 0; }
.hs-form-wrap .hs-error-msg, .hs-form-wrap label.hs-error-msg { color: var(--accent); font-size: 0.8rem; }
.hs-form-wrap .hs-button {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 6px; padding: 14px 34px;
  background: var(--ink); color: #fff; border: 1px solid var(--ink); border-radius: 999px;
  font-family: var(--sans); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.06em; cursor: pointer;
  transition: background 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.hs-form-wrap .hs-button:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }

/* ---------- Sub-page: page head ---------- */
.page-head { position: relative; padding: 64px 0 46px; }
.page-head::after {   /* 点線（ドット間隔を広めに） */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background-image: radial-gradient(circle, var(--rule) 1.4px, transparent 1.6px);
  background-size: 8px 3px; background-repeat: repeat-x; background-position: left bottom;
}
.breadcrumb {
  font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gray); margin-bottom: 22px;
}
.breadcrumb a { color: var(--gray); transition: color 0.25s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 8px; }
.page-head__en {
  display: block; font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.page-head__title { font-family: var(--display); font-weight: 600; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.3; }
.page-head__lead { color: var(--gray); margin-top: 20px; }

/* current page in nav */
.nav__list a[aria-current="page"] { color: var(--accent); }

/* ---------- Legal (privacy policy etc.) ---------- */
.legal { max-width: 820px; }
.legal__sec { padding: 28px 0; border-bottom: 1px solid var(--line); }
.legal__sec:last-child { border-bottom: none; }
.legal__sec h2 {
  font-family: var(--sans); font-size: 1.06rem; font-weight: 700; letter-spacing: 0.02em;
  margin-bottom: 12px; display: flex; align-items: baseline; gap: 12px;
}
.legal__sec h2 .legal__no { font-family: var(--display); font-size: 0.82rem; color: var(--brand); font-weight: 700; }
.legal__sec p { color: var(--gray); margin-bottom: 10px; }
.legal__sec p:last-child { margin-bottom: 0; }
.legal__sec ul { list-style: none; margin: 8px 0 0; }
.legal__sec li { position: relative; padding-left: 18px; color: var(--gray); margin-bottom: 6px; }
.legal__sec li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 6px; height: 2px; background: var(--rule); }
.legal__sec a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal__updated { margin-top: 28px; font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.08em; color: var(--gray); }
.nav__list a.nav__cta[aria-current="page"] { color: #fff !important; background: var(--accent); }

/* ---------- MVV (mission / vision / value) ---------- */
.mvv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.mvv__item { background: var(--bg); padding: 38px 32px; }
.mvv__no { font-family: var(--sans); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.12em; color: var(--accent); }
.mvv__title { font-family: var(--display); font-size: 1.4rem; font-weight: 600; margin: 8px 0 14px; }
.mvv__text { color: var(--gray); font-size: 0.92rem; }

/* ---------- Process (steps) ---------- */
.process { border-top: 1px solid var(--line); }
.process__step { display: grid; grid-template-columns: 90px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.process__no { font-family: var(--display); font-size: 2.2rem; font-weight: 700; color: var(--accent); line-height: 1; }
.process__title { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.process__text { color: var(--gray); font-size: 0.92rem; }

/* ---------- Detail service rows ---------- */
.svc-detail { border-top: 1px solid var(--line); }   /* 細 */
.svc-detail__row { padding: 40px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 260px 1fr; gap: 32px; }
.svc-detail__no { font-family: var(--sans); font-size: 0.76rem; font-weight: 600; color: var(--accent); letter-spacing: 0.1em; }
.svc-detail__name { font-family: var(--display); font-size: 1.6rem; font-weight: 600; margin-top: 6px; }
.svc-detail__jp { font-size: 0.82rem; color: var(--gray); letter-spacing: 0.1em; margin-top: 4px; }
.svc-detail__text { color: var(--gray); margin-bottom: 18px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }   /* 細 */
.faq__item { border-bottom: 1px solid var(--line); padding: 24px 0; }
.faq__q { font-weight: 700; position: relative; padding-left: 30px; }
.faq__q::before { content: "Q"; position: absolute; left: 0; top: 0; font-family: var(--display); color: var(--accent); font-weight: 700; }
.faq__a { color: var(--gray); font-size: 0.94rem; margin-top: 10px; padding-left: 30px; position: relative; }
.faq__a::before { content: "A"; position: absolute; left: 0; top: 0; font-family: var(--display); color: var(--ink); font-weight: 700; }

/* ---------- Course detail card ---------- */
.course-detail { border: 1px solid var(--line); border-radius: 4px; padding: 0; overflow: hidden; }
.course-detail + .course-detail { margin-top: 22px; }
.course-detail__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px; padding: 26px 30px; border-bottom: 1px solid var(--line); background: #fafafa; }
.course-detail__name { font-family: var(--display); font-size: 1.4rem; font-weight: 600; }
.course-detail__tag { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray); }
.course-detail__body { padding: 26px 30px; }
.course-detail__body p { color: var(--gray); margin-bottom: 14px; }
.course-detail__body ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.course-detail__body li { font-family: var(--sans); font-size: 0.72rem; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--gray); }

/* ---------- Works filter (static) ---------- */
.filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter span {
  font-family: var(--sans); font-size: 0.76rem; letter-spacing: 0.06em;
  padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--gray);
}
.filter span:first-child { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Contact info row ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-info { border-top: 1px solid var(--line); }   /* 細 */
.contact-info__row { padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-info__row dt { font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray); margin-bottom: 6px; }
.contact-info__row dd { font-size: 1.05rem; }
.contact-info__row dd a { color: var(--accent); }

/* ---------- News ---------- */
.news-list { border-top: 1px solid var(--line); }   /* 細 */
.news-item {
  display: grid;
  grid-template-columns: 130px 130px 1fr;
  gap: 24px;
  align-items: center;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);   /* 細 */
  transition: background 0.25s;
}
.news-item:hover { background: #fafafa; }
.news-item__date { font-family: var(--sans); font-size: 0.86rem; color: var(--gray); letter-spacing: 0.04em; }
.news-item__cat {
  justify-self: start;
  font-family: var(--sans); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 3px 12px;
}
.news-item__title { font-size: 0.98rem; font-weight: 500; transition: color 0.25s; }
.news-item:hover .news-item__title { color: var(--accent); }

/* ---------- Works filter (interactive) ---------- */
.filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter button {
  font-family: var(--sans); font-size: 0.76rem; letter-spacing: 0.06em;
  padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--gray); background: #fff; cursor: pointer; transition: all 0.2s var(--ease);
}
.filter button:hover { border-color: var(--ink); color: var(--ink); }
.filter button.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Detail pages ---------- */
.detail__thumb { display: block; width: 100%; aspect-ratio: 16 / 7; border-radius: 4px; margin-bottom: 48px; }
.detail-layout { display: grid; grid-template-columns: 1fr 280px; gap: 48px; align-items: start; }
.detail__body { font-size: 1rem; line-height: 2; }
.detail__body p { margin-bottom: 20px; }
.detail__body h3 { font-family: var(--display); font-weight: 600; font-size: 1.3rem; margin: 34px 0 14px; }
.detail__side { border-top: var(--rule-w) solid var(--rule); }
.detail-meta__row { padding: 14px 0; border-bottom: 1px solid var(--line); }
.detail-meta__row dt { font-family: var(--sans); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray); margin-bottom: 4px; }
.detail-meta__row dd { font-size: 0.92rem; }
.pager {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 56px; padding-top: 28px; border-top: var(--rule-w) solid var(--rule);
  font-family: var(--sans); font-size: 0.85rem; font-weight: 500;
}
.pager__link { color: var(--ink); transition: color 0.25s; }
.pager__link:hover { color: var(--accent); }
.pager__link--center { color: var(--gray); }
.pager__link--right { text-align: right; }

/* ---------- Footer ---------- */
.footer { background: #111; color: #fff; }   /* 黒地・線なし */
.footer__main {
  display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap;
  padding-top: 40px; padding-bottom: 30px;
}
.footer__nav {
  display: flex; flex-wrap: wrap; gap: 12px 28px;
  font-family: var(--sans); font-size: 0.84rem; font-weight: 500; letter-spacing: 0.06em;
}
.footer__nav a { color: rgba(255, 255, 255, 0.82); position: relative; transition: color 0.25s; }
.footer__nav a:hover { color: var(--brand); }
.footer__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap;
  padding-top: 22px; padding-bottom: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55);
}
.footer__meta { display: flex; align-items: center; gap: 24px; }
.footer__link { color: rgba(255, 255, 255, 0.55); transition: color 0.25s; }
.footer__link:hover { color: var(--brand); }
.footer__top { font-weight: 600; color: #fff; transition: color 0.25s; }
.footer__top:hover { color: var(--brand); }

/* ---------- To Top ---------- */
.to-top {
  position: fixed; right: 18px; bottom: 18px;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--ink); color: #fff; border-radius: 50%; font-size: 1.1rem;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.3s;
  z-index: 90;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--accent); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   Brand theme — 黒 × イエロー（direction B）
   ロゴの黄を構造アクセントへ。黄は背景/マーカーに使い、
   テキストは黒基調で可読性を確保する。
   ========================================================= */

/* --- 可読性：本文をやや濃く・行幅を制限 --- */
.about__text { max-width: 42em; }
.about__text p { font-size: 0.98rem; }
.about__text strong { font-weight: 700; background: linear-gradient(transparent 62%, rgba(245, 197, 24, 0.85) 62%); padding: 0 0.08em; }

/* --- セクション番号：黄チップ --- */
.block__no { background: var(--brand); color: var(--ink); padding: 3px 9px; border-radius: 4px; font-weight: 700; }

/* --- ラベル（eyebrow / page-head）：黒文字＋黄マーカー --- */
.eyebrow, .page-head__en { color: var(--ink); }
.eyebrow::before, .page-head__en::before {
  content: ""; display: inline-block; width: 22px; height: 8px;
  background: var(--brand); margin-right: 11px; vertical-align: middle; position: relative; top: -2px;
}
.eyebrow--light { color: #fff; }

/* --- 強調語：ヒーローの em は黄文字（暗背景で映える） --- */
em { font-style: normal; color: var(--brand); }

/* --- ナビ：下線＆現在地を黄に --- */
.nav__list a:not(.nav__cta)::after { background: var(--brand); height: 3px; }
.nav__list a:not(.nav__cta):hover { color: var(--ink); }
.nav__list a[aria-current="page"] { color: var(--ink); }
.nav__list a[aria-current="page"]::after { width: 100%; background: var(--brand); }
.nav__cta[aria-current="page"] { background: var(--ink); color: #fff !important; }

/* --- ボタン：ホバーで黄 --- */
.btn:hover, .nav__cta:hover { background: var(--brand); color: var(--ink); border-color: var(--brand); transform: translateY(-2px); }
.btn--invert:hover, .btn--ghost:hover { background: var(--brand); color: var(--ink); border-color: var(--brand); }

/* --- 必須ラベル：黄 --- */
.req { background: var(--brand); color: var(--ink); }

/* --- 数字：黒＋上に黄ティック --- */
.stats__num, .stats__suffix { color: var(--ink); }
.stats li { position: relative; }
.stats li::before { content: ""; display: block; width: 30px; height: 5px; background: var(--brand); margin: 0 auto 16px; }

/* --- コース/見出しアクセント --- */
.course h3::before { background: var(--brand); }
.block__more:hover { color: var(--ink); border-color: var(--brand); box-shadow: inset 0 -7px 0 var(--brand); }

/* --- News カテゴリ：黄枠チップ／ホバー --- */
.news-item__cat { color: var(--ink); border-color: var(--brand); }
.news-item:hover { background: #fffdf2; }
.news-item:hover .news-item__title { color: var(--ink); }

/* --- Works カード --- */
.card:hover .card__title { color: var(--ink); }

/* --- To top / footer --- */
.to-top:hover { background: var(--brand); color: var(--ink); }
.footer__top:hover { color: var(--brand); }

/* --- Works フィルタ --- */
.filter button.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.filter button:hover { border-color: var(--brand); color: var(--ink); }

/* --- 数字バンドを引き締め（任意の黒パネル化はせず軽量に） --- */
.svc-detail__no, .mvv__no, .process__no { color: var(--ink); }
.mvv__no { font-weight: 700; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: var(--rule-w) solid var(--rule);
    transform: translateY(-130%);
    transition: transform 0.4s var(--ease);
  }
  .nav.is-open { transform: translateY(0); }
  .nav__list { flex-direction: row; flex-wrap: wrap; gap: 0; padding: 8px 14px 18px; }
  .nav__list li { flex: 0 0 100%; width: 100%; text-align: center; border-top: 1px solid var(--line); }
  .nav__list li:first-child { border-top: none; }
  .nav__list a { display: block; padding: 15px; }
  .nav__list a:not(.nav__cta)::after { display: none; }
  /* 最後の2項目（資料請求・Contact）を横並びに */
  .nav__list li:nth-last-child(2),
  .nav__list li:last-child { flex: 1 1 0; width: auto; border-top: none; margin-top: 16px; margin-left: 0; }
  .nav__list li:nth-last-child(2) { margin-right: 6px; }
  .nav__list li:last-child { margin-left: 6px; }
  .nav__cta { display: block; margin: 0; padding: 13px 12px; }

  .hero { min-height: 70vh; }
  .hero__content { padding-top: 64px; padding-bottom: 64px; }

  .about { grid-template-columns: 1fr; gap: 24px; }
  .svc { grid-template-columns: 1fr; }
  .pcards { grid-template-columns: repeat(2, 1fr); }
  .svc-full { grid-template-columns: 1fr; }
  .gallery--full { grid-auto-columns: 64%; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
  .gallery--full > .card { scroll-snap-align: start; }
  .feature__inner { max-width: none; margin: 0; padding: 56px 0; }
  .feature { min-height: 360px; }
  .feature::after, .feature--right::after { background: linear-gradient(rgba(0,0,0,0.28), rgba(0,0,0,0.82)); }
  .about-split { grid-template-columns: 1fr; }
  .about-split__media { min-height: 320px; }
  .about-split__body { padding: 56px 28px 64px; }
  .about-split__index { top: 24px; }
  .about-split__caption { display: none; }
  .team { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 680px) {
  .pc { display: none; }
  .header__inner { padding: 0 20px; }
  .team { grid-template-columns: repeat(2, 1fr); gap: 22px 16px; }
  .block { padding: 60px 0; }
  .phil { padding: 56px 0; }
  .phil--dark { padding: 64px 0; }
  .triad { grid-template-columns: 1fr; }
  .triad__item { padding: 22px 0; border-right: none; border-bottom: 1px solid var(--line); }
  .triad__item:last-child { border-bottom: none; }
  .triad__word::after { margin: 12px 0; }
  .vision-name { gap: 20px; margin-top: 32px; }
  .message-body { grid-template-columns: 1fr; gap: 32px; }
  .message-quote::before { font-size: 5rem; top: -16px; }
  .pcards { grid-template-columns: 1fr; }
  .gallery--full { grid-auto-columns: 82%; }
  .scard { min-height: 380px; }
  .scard__cap { padding: 34px 28px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 24px 18px; }
  .courses { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 28px; }
  .company__row { grid-template-columns: 1fr; gap: 4px; }
  .footer__main { flex-direction: column; align-items: center; text-align: center; gap: 22px; }
  .footer__nav { justify-content: center; }
  .footer__inner { flex-direction: column; gap: 14px; text-align: center; }
  .footer__meta { gap: 22px; }
  .mvv { grid-template-columns: 1fr; }
  .svc-detail__row { grid-template-columns: 1fr; gap: 14px; }
  .process__step { grid-template-columns: 60px 1fr; gap: 16px; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .news-item { grid-template-columns: auto auto; gap: 8px 16px; }
  .news-item__title { grid-column: 1 / -1; }
  .detail-layout { grid-template-columns: 1fr; gap: 36px; }
  .pager { flex-wrap: wrap; gap: 10px; }
  .pager__link--right { text-align: left; }
}
@media (max-width: 420px) {
  .gallery { grid-template-columns: 1fr; }
  .logo__tag { display: none; }
  .pcards { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
