/* =========================================================
   TMSI Partners — Corporate Site
   Warm, black-text-only consulting/AI boutique style
   ========================================================= */

/* ---- Tokens ---- */
:root {
  --ivory:      #FAF8F4;   /* base background */
  --sand:       #F3EEE5;   /* panel background */
  --sand-deep:  #ECE4D6;   /* deeper panel */
  --line:       #D9CFBE;   /* hairline / border */
  --line-soft:  #E7DFD1;
  --warmgrey:   #8A8175;   /* captions, secondary rules */
  --accent:     #C4622D;   /* terracotta — lines/fills only, NEVER text */
  --accent-soft:#E2C8B4;
  --ink:        #1A1A1A;   /* all text */

  --maxw: 1160px;
  --gutter: clamp(20px, 5vw, 64px);

  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  --sans:  "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.85;
  font-size: 16px;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.4; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---- Layout helpers ---- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 9vw, 120px); }
.section--sand { background: var(--sand); border-block: 1px solid var(--line-soft); }
.section--deep { background: var(--sand-deep); border-block: 1px solid var(--line); }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  margin-bottom: 22px;
  position: relative;
  padding-left: 38px;
}
.eyebrow::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 26px; height: 2px;
  background: var(--accent);
  transform: translateY(-50%);
}

.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.45;
  letter-spacing: .02em;
  max-width: 22em;
}
.lead {
  font-size: clamp(16px, 1.4vw, 18px);
  max-width: 44em;
  margin-top: 24px;
  color: var(--ink);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .08em;
  padding: 15px 30px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background .25s ease, color .25s ease, transform .2s ease;
}
.btn:hover { background: var(--ink); color: var(--ivory); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn--fill { background: var(--ink); color: var(--ivory); }
.btn--fill:hover { background: transparent; color: var(--ink); }
.btn .arr { transition: transform .25s ease; }
.btn:hover .arr { transform: translateX(4px); }

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .06em;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  transition: gap .25s ease;
}
.textlink:hover { gap: 16px; }

/* ===========================================================
   Header / Navigation (shared)
   =========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ivory);
  border-bottom: 1px solid var(--line-soft);
  transition: background .4s ease;
}
.site-header.scrolled {
  background: rgba(250,248,244,.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(1px)) {
  .site-header.scrolled { background: rgba(250,248,244,.97); }
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand .mark {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: .04em;
}
.brand .mark .accent-bar {
  display: inline-block;
  width: 22px; height: 3px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 9px;
}
.brand-logo { height: 40px; width: auto; display: block; align-self: flex-start; }
.footer-brand .brand-logo { height: 34px; width: auto; display: block; }
.brand .sub {
  font-size: 10px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--warmgrey);
  margin-top: 4px;
  padding-left: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 38px);
}
.nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: .04em;
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width .25s ease;
}
.nav-links a:hover::after,
.nav-links a.is-active::after { width: 100%; }
.nav-links a.is-active { font-weight: 600; }
.nav-cta { margin-left: 8px; }
.nav-cta a {
  border: 1px solid var(--ink);
  padding: 11px 22px !important;
  font-weight: 600;
}
.nav-cta a::after { display: none; }
.nav-cta a:hover { background: var(--ink); color: var(--ivory); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 26px; height: 2px;
  background: var(--ink);
  transition: transform .3s ease, opacity .3s ease;
}
.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
   =========================================================== */
.hero {
  position: relative;
  padding-block: clamp(70px, 12vw, 150px);
  background:
    linear-gradient(180deg, var(--ivory) 0%, var(--sand) 100%);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  /* subtle warm keyline grid as the signature element */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 100% 88px, 88px 100%;
  opacity: .5;
  -webkit-mask-image: radial-gradient(circle at 78% 30%, #000 0%, transparent 62%);
          mask-image: radial-gradient(circle at 78% 30%, #000 0%, transparent 62%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--warmgrey);
  margin-bottom: 30px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(30px, 5.4vw, 60px);
  line-height: 1.42;
  letter-spacing: .01em;
  max-width: 17em;
}
.hero h1 .rule {
  display: block;
  width: 64px; height: 3px;
  background: var(--accent);
  margin: 30px 0;
}
.hero .sub {
  font-size: clamp(15px, 1.5vw, 18px);
  max-width: 40em;
  margin-top: 8px;
  line-height: 1.95;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 44px;
}
.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1px;
  margin-top: 64px;
  background: var(--line);
  border: 1px solid var(--line);
  max-width: 760px;
}
.hero-meta div {
  background: var(--ivory);
  padding: 26px 24px;
}
.hero-meta .k {
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 600;
}
.hero-meta .v {
  font-size: 12.5px;
  letter-spacing: .08em;
  color: var(--warmgrey);
  margin-top: 8px;
  line-height: 1.6;
}

/* ===========================================================
   Value props
   =========================================================== */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 56px;
}
.value {
  background: var(--ivory);
  padding: 40px 34px;
}
.value .num {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: .1em;
  color: var(--warmgrey);
  border-bottom: 1px solid var(--accent);
  display: inline-block;
  padding-bottom: 6px;
  margin-bottom: 22px;
}
.value h3 {
  font-family: var(--serif);
  font-size: 20px;
  margin-bottom: 14px;
}
.value p { font-size: 14.5px; line-height: 1.9; }

/* ===========================================================
   Service list (index + services)
   =========================================================== */
.svc-list { border-top: 1px solid var(--line); margin-top: 56px; }
.svc-row {
  display: grid;
  grid-template-columns: 90px 1.1fr 1.6fr auto;
  gap: 28px;
  align-items: start;
  padding: 38px 0;
  border-bottom: 1px solid var(--line);
}
.svc-row .idx {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: .12em;
  color: var(--warmgrey);
  padding-top: 6px;
}
.svc-row h3 {
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.5;
}
.svc-row .en {
  display: block;
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--warmgrey);
  margin-top: 10px;
  font-weight: 600;
}
.svc-row p { font-size: 14.5px; line-height: 1.9; }
.svc-row .more {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  white-space: nowrap;
  padding-top: 4px;
}
.svc-row .more span {
  border-bottom: 1px solid var(--accent);
  padding-bottom: 4px;
}

/* ===========================================================
   Capability detail blocks (services page)
   =========================================================== */
.cap {
  display: grid;
  grid-template-columns: 0.9fr 1.6fr;
  gap: clamp(28px, 6vw, 80px);
  padding-block: clamp(46px, 7vw, 80px);
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.cap:first-of-type { border-top: 1px solid var(--line); }
.cap .cap-head .idx {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: .14em;
  color: var(--warmgrey);
}
.cap .cap-head h2 {
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 31px);
  margin-top: 14px;
  line-height: 1.45;
}
.cap .cap-head .en {
  display: block;
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--warmgrey);
  font-weight: 600;
  margin-top: 12px;
}
.cap .cap-body p { font-size: 15.5px; margin-bottom: 22px; }
.cap .cap-body .label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--warmgrey);
  margin: 30px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.cap-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 30px;
}
.cap-points li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  line-height: 1.7;
}
.cap-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 9px; height: 2px;
  background: var(--accent);
}

/* ===========================================================
   Approach / process
   =========================================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 56px;
}
.step { background: var(--ivory); padding: 34px 28px; }
.step .n {
  font-family: var(--serif);
  font-size: 30px;
  color: var(--ink);
  line-height: 1;
}
.step .n::after {
  content: "";
  display: block;
  width: 30px; height: 2px;
  background: var(--accent);
  margin-top: 16px;
}
.step h3 { font-family: var(--serif); font-size: 18px; margin: 22px 0 12px; }
.step p { font-size: 13.5px; line-height: 1.85; }

/* ===========================================================
   Sectors / audience
   =========================================================== */
.sectors {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 52px;
}
.sector { background: var(--ivory); padding: 34px 32px; }
.sector h3 {
  font-family: var(--serif);
  font-size: 19px;
  margin-bottom: 10px;
}
.sector .en {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--warmgrey);
  font-weight: 600;
  display: block;
  margin-bottom: 16px;
}
.sector p { font-size: 14px; line-height: 1.85; }

/* ===========================================================
   Insights / cards
   =========================================================== */
.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 52px;
}
.card {
  background: var(--ivory);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px -22px rgba(60,40,20,.45); }
.card .thumb {
  aspect-ratio: 16 / 9;
  background: var(--sand-deep);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.card .thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(135deg, var(--line-soft) 0 1px, transparent 1px 16px);
  opacity: .8;
}
.card .thumb .tag {
  position: absolute;
  left: 16px; top: 16px;
  z-index: 1;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: var(--ivory);
  border: 1px solid var(--accent);
  padding: 6px 12px;
}
.card .body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.card .kicker {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--warmgrey);
  font-weight: 600;
  margin-bottom: 14px;
}
.card h3 { font-family: var(--serif); font-size: 19px; line-height: 1.55; margin-bottom: 14px; }
.card p { font-size: 14px; line-height: 1.85; flex: 1; }
.card .more {
  margin-top: 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .05em;
}
.card .more span { border-bottom: 1px solid var(--accent); padding-bottom: 3px; }

/* topic chips */
.topics { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 44px; }
.topic {
  font-size: 13px;
  letter-spacing: .04em;
  padding: 10px 20px;
  border: 1px solid var(--line);
  background: var(--ivory);
}
.topic strong { font-weight: 600; }

/* resource / download rows */
.res-list { border-top: 1px solid var(--line); margin-top: 52px; }
.res-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.res-row .type {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--warmgrey);
  border: 1px solid var(--line);
  padding: 8px 14px;
  white-space: nowrap;
}
.res-row h3 { font-family: var(--serif); font-size: 18px; line-height: 1.5; }
.res-row p { font-size: 13.5px; color: var(--warmgrey); margin-top: 6px; }
.res-row .get { font-size: 13px; font-weight: 600; white-space: nowrap; }
.res-row .get span { border-bottom: 1px solid var(--accent); padding-bottom: 3px; }

/* video placeholders */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 44px;
}
.video {
  border: 1px solid var(--line);
  background: var(--ivory);
}
.video .frame {
  aspect-ratio: 16 / 9;
  background: var(--sand-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
}
.video .play {
  width: 64px; height: 64px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--ivory);
}
.video .play::after {
  content: "";
  width: 0; height: 0;
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent var(--ink);
  margin-left: 4px;
}
.video .vbody { padding: 22px 24px 26px; }
.video .kicker {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--warmgrey); font-weight: 600; margin-bottom: 12px;
}
.video h3 { font-family: var(--serif); font-size: 18px; line-height: 1.5; }

/* ===========================================================
   About
   =========================================================== */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 6vw, 72px);
  align-items: start;
}
.about-intro .big {
  font-family: var(--serif);
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.6;
  letter-spacing: .015em;
}
.about-intro .big .rule { display:block; width:60px; height:3px; background:var(--accent); margin: 26px 0; }
.about-intro p { font-size: 15.5px; margin-bottom: 20px; }

.profile-table {
  border-top: 1px solid var(--ink);
  margin-top: 52px;
}
.profile-table .row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.profile-table .row dt {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--ink);
}
.profile-table .row dd { margin: 0; font-size: 15px; line-height: 1.85; }
.profile-table .row dd .en {
  display:block; font-size: 12px; color: var(--warmgrey); letter-spacing:.08em; margin-top:4px;
}

.feature-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 52px;
}
.feature-cols .col { background: var(--ivory); padding: 38px 32px; }
.feature-cols .col .idx {
  font-family: var(--serif); font-size: 14px; letter-spacing:.12em; color: var(--warmgrey);
  border-bottom: 1px solid var(--accent); display:inline-block; padding-bottom:6px; margin-bottom:22px;
}
.feature-cols .col h3 { font-family: var(--serif); font-size: 20px; margin-bottom: 14px; }
.feature-cols .col p { font-size: 14.5px; line-height: 1.9; }

/* message */
.message {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.message .portrait {
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  background: var(--sand-deep);
  border: 1px solid var(--line);
}
.message .portrait::after {
  display: none;
}
.message .msg-body .role {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--warmgrey);
  font-weight: 600; margin-bottom: 18px;
}
.message .msg-body p { font-size: 15.5px; margin-bottom: 22px; }
.message .msg-body .sign {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 18px;
}
.message .msg-body .sign small {
  display:block; font-family: var(--sans); font-size: 12px; letter-spacing:.1em; color: var(--warmgrey); margin-top:6px;
}

/* ===========================================================
   Contact
   =========================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}
.contact-themes { border-top: 1px solid var(--ink); }
.contact-themes li {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: baseline;
}
.contact-themes li .n { font-family: var(--serif); font-size: 14px; color: var(--warmgrey); }
.contact-themes li h3 { font-family: var(--serif); font-size: 17px; line-height: 1.5; }
.contact-themes li p { font-size: 13.5px; color: var(--warmgrey); margin-top: 6px; }

/* form */
.form { background: var(--ivory); border: 1px solid var(--line); padding: clamp(28px, 4vw, 44px); }
.form .field { margin-bottom: 26px; }
.form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  margin-bottom: 10px;
}
.form label .req { font-weight: 400; color: var(--warmgrey); margin-left: 8px; font-size: 11px; letter-spacing:.08em; }
.form input,
.form select,
.form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--sand);
  border: 1px solid var(--line);
  padding: 14px 16px;
  transition: border-color .2s ease, background .2s ease;
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--ivory);
}
.form textarea { resize: vertical; min-height: 150px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form .consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; line-height: 1.7; }
.form .consent input { width: auto; margin-top: 5px; }
.form .submit-row { margin-top: 8px; }
.form-note {
  font-size: 12.5px;
  color: var(--warmgrey);
  line-height: 1.8;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.form-success {
  display: none;
  background: var(--sand);
  border: 1px solid var(--accent);
  padding: 22px 24px;
  font-size: 14.5px;
  margin-bottom: 26px;
}
.form-success.show { display: block; }

.contact-direct {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  padding-top: 30px;
}
.contact-direct .row { margin-bottom: 18px; }
.contact-direct dt { font-size: 12px; letter-spacing:.12em; color: var(--warmgrey); font-weight:600; margin-bottom:5px; }
.contact-direct dd { margin: 0; font-size: 15px; font-family: var(--serif); }

/* ===========================================================
   CTA band
   =========================================================== */
.cta-band {
  background: var(--ink);
  color: var(--ivory);
}
.cta-band .wrap {
  padding-block: clamp(54px, 8vw, 92px);
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 40px;
  align-items: center;
}
.cta-band h2 {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.5;
  color: var(--ivory);
}
.cta-band h2 .rule { display:block; width:60px; height:3px; background:var(--accent); margin: 22px 0; }
.cta-band p { color: #D9D2C7; margin-top: 8px; font-size: 15px; max-width: 40em; }
.cta-band .btn {
  border-color: var(--ivory);
  color: var(--ivory);
}
.cta-band .btn:hover { background: var(--ivory); color: var(--ink); }

/* ===========================================================
   Footer
   =========================================================== */
.site-footer {
  background: var(--sand-deep);
  border-top: 1px solid var(--line);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  padding-block: clamp(48px, 7vw, 72px);
}
.footer-brand .mark {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .04em;
}
.footer-brand .mark .accent-bar {
  display:inline-block; width:20px; height:3px; background:var(--accent); vertical-align:middle; margin-right:8px;
}
.footer-brand p { font-size: 13.5px; line-height: 1.9; color: #5d574d; margin-top: 18px; max-width: 30em; }
.footer-col h4 {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--warmgrey);
  margin-bottom: 18px;
  font-weight: 600;
}
.footer-col li { margin-bottom: 12px; }
.footer-col a { font-size: 13.5px; }
.footer-col a:hover { border-bottom: 1px solid var(--accent); padding-bottom: 2px; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-block: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--warmgrey);
}

/* ===========================================================
   Page header (interior pages)
   =========================================================== */
.page-head {
  background: linear-gradient(180deg, var(--ivory), var(--sand));
  border-bottom: 1px solid var(--line);
  padding-block: clamp(52px, 8vw, 96px);
}
.page-head .crumb {
  font-size: 12px; letter-spacing: .1em; color: var(--warmgrey); margin-bottom: 22px;
}
.page-head .crumb a:hover { border-bottom: 1px solid var(--accent); }
.page-head h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 4.4vw, 50px);
  line-height: 1.4;
  letter-spacing: .015em;
}
.page-head .en {
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--warmgrey);
  font-weight: 600; margin-bottom: 18px;
}
.page-head .desc { font-size: clamp(15px, 1.4vw, 17px); max-width: 46em; margin-top: 24px; }

/* reveal animation (subtle) — only active when JS adds .js to <html>;
   without JS, content is fully visible by default (graceful degradation) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 960px) {
  .values, .feature-cols, .steps { grid-template-columns: repeat(2, 1fr); }
  .insight-grid { grid-template-columns: repeat(2, 1fr); }
  .about-intro, .message, .contact-grid, .cta-band .wrap { grid-template-columns: 1fr; }
  .cap { grid-template-columns: 1fr; gap: 24px; }
  .message .portrait { width: 180px; margin: 0 auto; }
  .svc-row { grid-template-columns: 60px 1fr; }
  .svc-row p { grid-column: 1 / -1; }
  .svc-row .more { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    inset: 78px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 26px;
    transform: translateY(-130%);
    transition: transform .35s ease;
    box-shadow: 0 24px 40px -28px rgba(60,40,20,.4);
  }
  .nav-links.is-open { transform: translateY(0); }
  .nav-links a { width: 100%; padding: 16px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
  .nav-links a::after { display: none; }
  .nav-cta { margin: 14px 0 0; width: 100%; }
  .nav-cta a { display: block; text-align: center; padding: 15px !important; }
  .nav-toggle { display: flex; }

  .hero-meta { grid-template-columns: 1fr; }
  .profile-table .row { grid-template-columns: 1fr; gap: 6px; }
  .cap-points { grid-template-columns: 1fr; }
  .form .row2 { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .values, .feature-cols, .steps, .sectors,
  .insight-grid, .video-grid { grid-template-columns: 1fr; }
  .res-row { grid-template-columns: 1fr; gap: 10px; }
  .res-row .get { text-align: left; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ===========================================================
   EXTENSIONS — v2 (talent pillar, insights library, filters)
   =========================================================== */

/* 4-up value grid */
.values--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .values--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .values--4 { grid-template-columns: 1fr; } }

/* Insights: category nav (sticky sub-bar) */
.cat-nav {
  position: sticky;
  top: 78px;
  z-index: 30;
  background: rgba(243,238,229,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.cat-nav .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 4px;
  padding-block: 14px;
  align-items: center;
}
.cat-nav .label {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--warmgrey); font-weight: 600; margin-right: 14px;
}
.cat-nav a {
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border: 1px solid var(--line);
  background: var(--ivory);
  transition: background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.cat-nav a:hover { border-color: var(--accent); }

/* Insights: filter bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.filter-bar .flabel {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--warmgrey); font-weight: 600; margin-right: 8px;
}
.filter-btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 10px 18px;
  border: 1px solid var(--line);
  background: var(--ivory);
  color: var(--ink);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.filter-btn:hover { border-color: var(--accent); }
.filter-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.filter-btn[aria-pressed="true"] {
  background: var(--ink);
  color: var(--ivory);
  border-color: var(--ink);
}

/* category section heading */
.cat-section { padding-block: clamp(48px, 7vw, 86px); border-bottom: 1px solid var(--line); }
.cat-section:last-of-type { border-bottom: 0; }
.cat-head-row {
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.cat-head-row h2 {
  font-family: var(--serif);
  font-size: clamp(22px, 2.8vw, 32px);
  line-height: 1.4;
}
.cat-head-row .cnum {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: .12em;
  color: var(--warmgrey);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 4px;
}
.cat-desc { font-size: 15px; max-width: 50em; margin-bottom: 36px; }

/* content card grid 3/2/1 */
.lib-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .lib-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .lib-grid { grid-template-columns: 1fr; } }

.lib-card {
  background: var(--ivory);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.lib-card.is-hidden { display: none; }
.lib-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px -22px rgba(60,40,20,.45); }
.lib-card .lib-thumb {
  aspect-ratio: 16 / 9;
  background: var(--sand-deep);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lib-card .lib-thumb img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
/* hide glyph label when a thumbnail image is present */
.lib-card .lib-thumb img + .glyph { display: none; }
/* fallback pattern shows when no image / image fails */
.lib-card .lib-thumb::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, var(--line-soft) 0 1px, transparent 1px 18px);
  opacity: .7;
}
.lib-card .lib-thumb .glyph {
  position: relative;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: .14em;
  color: var(--warmgrey);
}
.lib-card .lib-thumb img { position: relative; z-index: 1; }
.lib-card .lib-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }

/* type label — distinguished by border/weight/shade, never color */
.type-label {
  align-self: flex-start;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid var(--ink);
  margin-bottom: 16px;
}
.type-label[data-t="PDF"]      { background: var(--ink); color: var(--ivory); }
.type-label[data-t="Video"]    { background: var(--sand-deep); border-style: solid; }
.type-label[data-t="Article"]  { background: transparent; border-style: dashed; }
.type-label[data-t="Use Case"] { background: var(--sand); border-width: 2px; }
.type-label[data-t="Training"] { background: var(--ivory); border-bottom-width: 3px; border-bottom-color: var(--accent); }

.lib-card h3 { font-family: var(--serif); font-size: 18px; line-height: 1.5; margin-bottom: 12px; }
.lib-card .lib-desc { font-size: 13.5px; line-height: 1.85; flex: 1; }
.lib-meta {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6px;
}
.lib-meta .m {
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--warmgrey);
  display: flex;
  gap: 8px;
}
.lib-meta .m b { font-weight: 600; color: var(--ink); min-width: 4.2em; }
.lib-card .lib-cta {
  margin-top: 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .05em;
  align-self: flex-start;
}
.lib-card .lib-cta span { border-bottom: 1px solid var(--accent); padding-bottom: 3px; }
.lib-card .lib-cta:hover span { border-bottom-width: 2px; }

.filter-empty {
  display: none;
  font-size: 14px;
  color: var(--warmgrey);
  padding: 30px 0;
}
.filter-empty.show { display: block; }

/* sample note pill */
.sample-note {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--warmgrey);
  border: 1px dashed var(--line);
  padding: 4px 10px;
  margin-left: 8px;
}

/* about: representative name in signature */
.message .msg-body .sign strong { font-weight: 600; }

/* services: results / related rows */
.cap .cap-body .meta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 8px;
}
.cap .cap-body .sub-block { margin-bottom: 26px; }
.cap .cap-body .sub-block:last-child { margin-bottom: 0; }
.cap .cap-body .related {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
}
.cap .cap-body .related a { border-bottom: 1px solid var(--accent); padding-bottom: 3px; }

/* ===========================================================
   EXTENSIONS — v3 (cinematic motion + SharePoint source)
   Warm, enterprise-grade futurism. No neon, no cool tones.
   All motion respects prefers-reduced-motion.
   =========================================================== */

/* ---- Cinematic background video ---- */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: heroVideoIn 2s ease .3s both;
}
@keyframes heroVideoIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* semi-opaque overlay: left (text area) darker, right (visual) more transparent */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    155deg,
    rgba(250,248,244,.88) 0%,
    rgba(250,248,244,.72) 55%,
    rgba(243,238,229,.78) 100%
  );
}

@media (prefers-reduced-motion: reduce) {
  .hero-video  { display: none; }
  .hero-overlay { display: none; }
}

/* ---- SharePoint filter button + type label ---- */
.type-label[data-t="SharePoint"] {
  background: var(--sand);
  border-style: double;
  border-width: 3px;
}
/* note shown on SharePoint cards */
.sp-note {
  margin-top: 14px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--warmgrey);
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 12px;
}

/* ===========================================================
   HERO VISUAL — cinematic, CSS-only, warm futurism
   =========================================================== */
.hero { position: relative; }
.hero-visual {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.hero .wrap { position: relative; z-index: 2; }

/* layered warm light orbs that drift very slowly */
.warm-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: .5;
  mix-blend-mode: multiply;
}
.warm-orb.orb-1 {
  width: 520px; height: 520px;
  right: -80px; top: -120px;
  background: radial-gradient(circle at 30% 30%, rgba(196,98,45,.30), rgba(196,98,45,0) 70%);
  animation: orbDrift1 26s ease-in-out infinite alternate;
}
.warm-orb.orb-2 {
  width: 420px; height: 420px;
  right: 18%; top: 30%;
  background: radial-gradient(circle at 50% 50%, rgba(226,200,180,.55), rgba(226,200,180,0) 70%);
  animation: orbDrift2 32s ease-in-out infinite alternate;
}
.warm-orb.orb-3 {
  width: 360px; height: 360px;
  left: -60px; bottom: -100px;
  background: radial-gradient(circle at 50% 50%, rgba(217,207,190,.5), rgba(217,207,190,0) 70%);
  animation: orbDrift3 38s ease-in-out infinite alternate;
}
@keyframes orbDrift1 { from { transform: translate(0,0) scale(1); } to { transform: translate(-40px,30px) scale(1.08); } }
@keyframes orbDrift2 { from { transform: translate(0,0) scale(1); } to { transform: translate(30px,-26px) scale(1.05); } }
@keyframes orbDrift3 { from { transform: translate(0,0) scale(1); } to { transform: translate(26px,-20px) scale(1.1); } }

/* fine moving grid */
.motion-grid {
  position: absolute;
  inset: -2px;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px;
  opacity: .45;
  -webkit-mask-image: radial-gradient(circle at 72% 38%, #000 0%, transparent 68%);
          mask-image: radial-gradient(circle at 72% 38%, #000 0%, transparent 68%);
  animation: gridShift 40s linear infinite;
}
@keyframes gridShift { from { background-position: 0 0, 0 0; } to { background-position: 64px 64px, 64px 64px; } }

/* abstract AI network: nodes + connecting data-lines (SVG-like via elements) */
.ai-network {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}
.floating-node {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--ivory);
  border: 1.5px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(196,98,45,.08);
  animation: nodePulse 4.5s ease-in-out infinite;
}
.floating-node::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid rgba(196,98,45,.25);
  animation: nodeRing 4.5s ease-out infinite;
}
.floating-node.n1 { left: 70%; top: 26%; animation-delay: 0s; }
.floating-node.n2 { left: 84%; top: 44%; animation-delay: .8s; }
.floating-node.n3 { left: 62%; top: 52%; animation-delay: 1.6s; }
.floating-node.n4 { left: 78%; top: 66%; animation-delay: 2.4s; }
.floating-node.n5 { left: 90%; top: 30%; animation-delay: 3.2s; }
.floating-node.n6 { left: 56%; top: 36%; animation-delay: 1.2s; }
@keyframes nodePulse {
  0%, 100% { transform: translateY(0); opacity: .9; }
  50% { transform: translateY(-8px); opacity: 1; }
}
@keyframes nodeRing {
  0% { transform: scale(1); opacity: .6; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* thin data-lines that travel along faint paths */
.data-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196,98,45,.45), transparent);
  opacity: .7;
  overflow: hidden;
}
.data-line.l1 { left: 56%; top: 31%; width: 16%; transform: rotate(14deg); }
.data-line.l2 { left: 62%; top: 49%; width: 22%; transform: rotate(-8deg); }
.data-line.l3 { left: 70%; top: 60%; width: 14%; transform: rotate(20deg); }
.data-line.l4 { left: 60%; top: 38%; width: 18%; transform: rotate(-2deg); }
.data-line::before {
  content: "";
  position: absolute;
  top: 0; left: -30%;
  width: 30%; height: 100%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: dataTravel 4s linear infinite;
}
.data-line.l2::before { animation-delay: 1s; animation-duration: 5s; }
.data-line.l3::before { animation-delay: 2s; animation-duration: 4.5s; }
.data-line.l4::before { animation-delay: 1.5s; animation-duration: 5.5s; }
@keyframes dataTravel { from { left: -30%; } to { left: 100%; } }

/* translucent interface panel — suggests an AI operating surface */
.interface-panel {
  position: absolute;
  right: 7%;
  top: 30%;
  width: 230px;
  padding: 18px 18px 16px;
  background: rgba(250,248,244,.55);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
  box-shadow: 0 24px 60px -34px rgba(80,50,24,.4);
  animation: panelFloat 9s ease-in-out infinite;
}
.interface-panel .ip-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--warmgrey); font-weight: 600; margin-bottom: 14px;
}
.interface-panel .ip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.interface-panel .ip-row {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; color: var(--ink);
  padding: 7px 0; border-top: 1px solid var(--line-soft);
}
.interface-panel .ip-row:first-of-type { border-top: 0; }
.interface-panel .ip-bar {
  width: 70px; height: 4px; background: var(--sand-deep); position: relative; overflow: hidden;
}
.interface-panel .ip-bar::after {
  content: ""; position: absolute; left: 0; top: 0; height: 100%;
  background: var(--accent);
  animation: ipFill 6s ease-in-out infinite;
}
.interface-panel .ip-row:nth-child(2) .ip-bar::after { width: 78%; animation-delay: 0s; }
.interface-panel .ip-row:nth-child(3) .ip-bar::after { width: 54%; animation-delay: .5s; }
.interface-panel .ip-row:nth-child(4) .ip-bar::after { width: 88%; animation-delay: 1s; }
@keyframes ipFill { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes panelFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

@media (max-width: 880px) {
  .interface-panel { display: none; }
  .warm-orb.orb-1 { width: 360px; height: 360px; }
  .floating-node.n4, .floating-node.n5 { display: none; }
}

/* Hero copy entrance (plays once on load) */
.hero-eyebrow,
.hero h1,
.hero .sub,
.hero-actions,
.hero-meta { opacity: 1; }
.js .hero-eyebrow { animation: heroIn .9s ease both; }
.js .hero h1 { animation: heroIn 1s ease .12s both; }
.js .hero .sub { animation: heroIn 1s ease .28s both; }
.js .hero-actions { animation: heroIn 1s ease .42s both; }
.js .hero-meta { animation: heroIn 1s ease .56s both; }
@keyframes heroIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ===========================================================
   Reduced motion — stop all cinematic animation
   =========================================================== */
@media (prefers-reduced-motion: reduce) {
  .warm-orb, .motion-grid, .floating-node, .floating-node::after,
  .data-line::before, .interface-panel, .interface-panel .ip-bar::after {
    animation: none !important;
  }
  .js .hero-eyebrow, .js .hero h1, .js .hero .sub,
  .js .hero-actions, .js .hero-meta { animation: none !important; opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none !important; }
  .site-header { transition: none; }
}

/* ===========================================================
   KEYWORD MARQUEE BAND
   Thin belt of AI/consulting keywords that scrolls on load.
   Hover pauses the scroll. prefers-reduced-motion stops it.
   =========================================================== */
.marquee-band {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--sand);
  padding-block: 14px;
  user-select: none;
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: marqueeScroll 55s linear infinite;
  will-change: transform;
}
.marquee-band:hover .marquee-track {
  animation-play-state: paused;
}
.marquee-item {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--warmgrey);
  padding-right: 36px;
}
.marquee-item::after {
  content: "·";
  display: inline-block;
  color: rgba(196,98,45,.65);
  padding-left: 36px;
  font-size: 18px;
  vertical-align: -2px;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===========================================================
   MATERIAL & CRAFT LAYER — Warm Futurism refinement (2026-07)
   紙目グレイン / 呼吸する暖光 / 見出しのpalt詰め / 行マスク出現 /
   スクロール進捗線 / View Transitions / マイクロディテール。
   全て暖色トークン由来・reduced-motion対応・@supportsで漸進強化。
   =========================================================== */

/* --- 1. フィルムグレイン(署名要素: ページ全体の"上質紙"の質感) --- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  opacity: .05;
  mix-blend-mode: multiply;
}

/* --- 2. 面の深み: サンド面に上下の陰影、要所に呼吸する暖光 --- */
.section--sand {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,.45), rgba(255,255,255,0) 140px),
    linear-gradient(0deg, rgba(60,40,20,.04), rgba(60,40,20,0) 120px),
    var(--sand);
}
.section--sand > .wrap { position: relative; z-index: 1; }
.section--sand::after {
  content: "";
  position: absolute;
  width: 720px; height: 720px;
  top: -320px; right: -200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(226,200,180,.55), rgba(226,200,180,0) 62%);
  pointer-events: none;
  animation: warmBreath 24s ease-in-out infinite alternate;
}
.cta-band { position: relative; overflow: hidden; }
.cta-band > .wrap { position: relative; z-index: 1; }
.cta-band::before {
  content: "";
  position: absolute;
  width: 680px; height: 680px;
  bottom: -380px; left: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196,98,45,.22), rgba(196,98,45,0) 60%);
  pointer-events: none;
  animation: warmBreath 28s ease-in-out infinite alternate-reverse;
}
@keyframes warmBreath {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(-64px,44px,0) scale(1.14); }
}

/* --- 3. 文字の質感: 和文見出しのプロポーショナル詰め(palt) --- */
.hero h1, .section-title, .cta-band h2,
.value h3, .card h3, .svc-row h3, .lib-card h3, .hero-meta .k {
  font-feature-settings: "palt" 1;
  letter-spacing: .035em;
}
body { text-rendering: optimizeLegibility; }

/* --- 4. Hero見出しの行マスク出現(既存heroInをh1のみ置換) --- */
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line-inner { display: inline-block; }
.js .hero h1 { animation: none; opacity: 1; }
.js .hero h1 .line-inner {
  transform: translateY(115%);
  animation: lineRise 1s cubic-bezier(.19,.72,.16,1) .1s both;
}
.js .hero h1 .line:nth-child(2) .line-inner { animation-delay: .24s; }
.js .hero h1 .rule {
  transform-origin: left;
  transform: scaleX(0);
  animation: ruleDraw .8s cubic-bezier(.2,.65,.2,1) .62s both;
}
@keyframes lineRise { to { transform: translateY(0); } }
@keyframes ruleDraw { to { transform: scaleX(1); } }

/* --- 5. スクロール進捗線+ヘッダー深化(対応ブラウザのみ) --- */
@supports (animation-timeline: scroll()) {
  .site-header::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 2px;
    background: var(--accent);
    transform-origin: 0 50%;
    transform: scaleX(0);
    animation: scrollProgress linear both;
    animation-timeline: scroll(root);
  }
  .site-header {
    animation: headerDeepen linear both;
    animation-timeline: scroll(root);
    animation-range: 0 160px;
  }
}
@keyframes scrollProgress { to { transform: scaleX(1); } }
@keyframes headerDeepen {
  to {
    background: rgba(250,248,244,.8);
    box-shadow: 0 14px 30px -20px rgba(60,40,20,.3);
  }
}

/* --- 6. ページ間クロスフェード(View Transitions・非対応は通常遷移) --- */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: .35s; }

/* --- 7. マーキー磨き: 端フェード+セリフ小組みで"索引"の佇まいに --- */
.marquee-band {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  background:
    linear-gradient(180deg, rgba(255,255,255,.4), rgba(255,255,255,0)),
    var(--sand);
}
.marquee-item {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .22em;
}

/* --- 8. マイクロディテール(選択色・フォーカス・ホバーの手触り) --- */
::selection { background: var(--accent-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.value { position: relative; }
.value::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s cubic-bezier(.2,.65,.2,1);
}
.value:hover::before { transform: scaleX(1); }
.card .thumb img { transition: transform .6s cubic-bezier(.2,.65,.2,1); }
.card:hover .thumb img { transform: scale(1.03); }

/* --- 9. reduced-motion: 本レイヤーの全モーション停止 --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .section--sand::after, .cta-band::before { animation: none !important; }
  .js .hero h1 .line-inner, .js .hero h1 .rule {
    animation: none !important;
    transform: none !important;
  }
  .site-header { animation: none !important; }
  .site-header::after { display: none; }
  .card:hover .thumb img { transform: none; }
  .value::before { transition: none; }
  @view-transition { navigation: none; }
}

/* ===========================================================
   NEW BADGE LAYER — 新着ラベル（Insights カード）  2026-07
   Warm Futurism 準拠：寒色は使用しない。
   accent は「面・線」としてのみ使い、文字色には使わない。
   =========================================================== */

/* type-label と New バッジを横並びにするラッパー。
   .type-label 側の align-self / margin-bottom はここへ移す。 */
.lib-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  align-self: flex-start;
  margin-bottom: 16px;
}
.lib-tags .type-label { margin-bottom: 0; }

.badge-new {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 6px 11px;
  white-space: nowrap;
  color: var(--ink);
  background: var(--accent-soft);
  border: 1px solid var(--accent);
}
.badge-new::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* 新着カードは枠を一段強め、上辺に accent の細いラインを置く */
.lib-card--new { position: relative; border-color: var(--line); }
.lib-card--new::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  pointer-events: none;
  z-index: 2;
}
