/*
Theme Name: KnowHow Corporate
Theme URI: https://knowhow.example.jp/
Author: 株式会社KnowHow
Author URI: https://knowhow.example.jp/
Description: 株式会社KnowHow（AI導入支援・教育研修・AI開発・営業ノウハウ）のコーポレートサイト用WordPressテーマ。ダークネイビー×ゴールドの高級感あるワンページ構成。
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: knowhow
Tags: business, one-page, custom-colors, translation-ready
*/

/* ===== Variables ===== */
:root {
  --navy-950: #060b1c;
  --navy-900: #0a1128;
  --navy-800: #0d1b3e;
  --navy-700: #122452;
  --navy-600: #1a3168;
  --gold: #c9a24b;
  --gold-light: #e9cf8f;
  --gold-bright: #f4e0a8;
  --gold-dark: #a5822f;
  --text-light: #eef2fb;
  --text-muted: #9caed0;
  --text-dim: #6f7ea0;
  --white: #ffffff;
  --serif: "Noto Serif JP", serif;
  --sans: "Noto Sans JP", sans-serif;
  --display: "Cormorant Garamond", "Noto Serif JP", serif;
  --maxw: 1180px;
  --gold-grad: linear-gradient(135deg, var(--gold-bright), var(--gold) 55%, var(--gold-dark));
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--sans);
  background: var(--navy-950);
  color: var(--text-light);
  line-height: 1.9;
  font-weight: 300;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ===== Global ambient background layers ===== */
/* Fine dotted lattice + subtle vignette, fixed behind everything */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    radial-gradient(rgba(201,162,75,.05) 1px, transparent 1.4px);
  background-size: 44px 44px;
  background-position: -22px -22px;
  mask-image: radial-gradient(120% 120% at 50% 0%, #000 35%, transparent 92%);
  -webkit-mask-image: radial-gradient(120% 120% at 50% 0%, #000 35%, transparent 92%);
  opacity: .55;
}
/* Soft roaming aurora glows */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background:
    radial-gradient(600px 600px at 12% 18%, rgba(201,162,75,.06), transparent 60%),
    radial-gradient(760px 620px at 88% 42%, rgba(26,49,104,.55), transparent 62%),
    radial-gradient(680px 680px at 30% 88%, rgba(201,162,75,.045), transparent 60%);
}

.container { width: 92%; max-width: var(--maxw); margin: 0 auto; }
.accent { color: var(--gold-light); }

/* Japanese-friendly line breaking: keep words/phrases from splitting awkwardly */
.hero-title, .section-title, .contact-title, .achieve-desc {
  word-break: normal;
  overflow-wrap: anywhere;
  line-break: strict;
}
/* Non-breaking phrase helper — never splits mid-phrase */
.nowrap { white-space: nowrap; }
/* <br> that only applies on desktop; on phones it collapses to a normal space */
br.pc-only { display: inline; }
/* <br> that only applies on phones; hidden on desktop (single line) */
br.sp-only { display: none; }

/* Gold gradient text helper */
.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ===== Buttons ===== */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: .6em;
  padding: 1em 2em; border-radius: 4px;
  font-weight: 500; font-size: .95rem; letter-spacing: .05em;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease, background .3s ease, color .3s ease;
  cursor: pointer; white-space: nowrap; overflow: hidden;
}
.btn-lg { padding: 1.15em 2.6em; font-size: 1.02rem; }

.btn-gold {
  background: var(--gold-grad);
  color: var(--navy-950); font-weight: 600;
  box-shadow: 0 10px 30px rgba(201,162,75,.32);
}
.btn-gold::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .6s ease;
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(201,162,75,.5); }
.btn-gold:hover::after { transform: translateX(120%); }

.btn-outline {
  border: 1px solid rgba(233,207,143,.5);
  color: var(--gold-light);
  background: rgba(255,255,255,.02);
}
.btn-outline:hover { border-color: var(--gold-light); background: rgba(201,162,75,.12); transform: translateY(-3px); }

/* ===== Header ===== */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  transition: background .4s ease, box-shadow .4s ease, padding .4s ease;
  padding: 1rem 0;
}
.site-header.scrolled {
  background: rgba(6,11,28,.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(201,162,75,.18), 0 10px 30px rgba(0,0,0,.4);
  padding: .35rem 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }

.logo { display: flex; align-items: center; gap: .8rem; }
.logo-mark {
  width: 44px; height: 44px; border-radius: 8px;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 600; font-size: 1.6rem;
  color: var(--navy-950);
  background: var(--gold-grad);
  box-shadow: 0 6px 18px rgba(201,162,75,.4);
  position: relative;
}
.logo-mark::after {
  content: ""; position: absolute; inset: 3px; border: 1px solid rgba(6,11,28,.25); border-radius: 5px;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.logo-en { font-family: var(--display); font-weight: 600; font-size: 1.35rem; letter-spacing: .04em; }
.logo-jp { font-size: .66rem; color: var(--text-muted); letter-spacing: .08em; }

.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav a { font-size: .9rem; font-weight: 400; color: var(--text-light); position: relative; letter-spacing: .04em; }
.main-nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 1.5px;
  background: var(--gold-grad); transition: width .35s ease;
}
.main-nav a:not(.nav-cta):hover { color: var(--gold-light); }
.main-nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  padding: .6em 1.4em; border-radius: 4px;
  border: 1px solid var(--gold);
  color: var(--gold-light) !important;
}
.nav-cta:hover { background: var(--gold-grad); color: var(--navy-950) !important; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; z-index: 130; }
.nav-toggle span { width: 26px; height: 1.6px; background: var(--gold-light); transition: .3s; }

/* ===== Section base ===== */
.section { padding: 120px 0; position: relative; overflow: hidden; }
/* Content sits above decorative layers */
.section > .container { position: relative; z-index: 2; }

/* Hairline gold divider between stacked sections */
.section + .section::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(88%, 1080px); height: 1px; z-index: 1;
  background: linear-gradient(90deg, transparent, rgba(201,162,75,.5), transparent);
}
/* Tiny diamond ornament centered on the divider */
.section + .section::after {
  content: ""; position: absolute; top: -4px; left: 50%; z-index: 1;
  width: 8px; height: 8px; transform: translateX(-50%) rotate(45deg);
  background: var(--gold-grad);
  box-shadow: 0 0 0 4px rgba(6,11,28,1), 0 0 18px rgba(201,162,75,.55);
}

/* Floating decorative orb — add .orb elements inside sections */
.orb {
  position: absolute; z-index: 0; border-radius: 50%; pointer-events: none;
  filter: blur(60px); opacity: .5;
}
.orb-gold { background: radial-gradient(circle, rgba(201,162,75,.32), transparent 70%); animation: orbFloat 16s ease-in-out infinite; }
.orb-blue { background: radial-gradient(circle, rgba(26,49,104,.6), transparent 70%); animation: orbFloat 20s ease-in-out infinite reverse; }
@keyframes orbFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(0, -26px, 0) scale(1.08); }
}

.section-head { text-align: center; max-width: 760px; margin: 0 auto 4rem; position: relative; z-index: 2; }
.section-eyebrow {
  display: inline-block; font-family: var(--display);
  font-size: 1rem; letter-spacing: .45em; font-weight: 600; font-style: italic;
  color: var(--gold); margin-bottom: 1.2rem; text-transform: uppercase;
}
.section-eyebrow.light { color: var(--gold-light); }
.section-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.45;
  letter-spacing: .04em; margin-bottom: 1.4rem;
}
.section-desc { color: var(--text-muted); font-size: 1rem; font-weight: 300; }

/* Decorative divider under titles */
.section-head .section-title::after {
  content: ""; display: block; width: 56px; height: 2px; margin: 1.3rem auto 0;
  background: var(--gold-grad); border-radius: 2px;
}

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  background:
    radial-gradient(1200px 700px at 78% 35%, rgba(201,162,75,.10), transparent 60%),
    linear-gradient(165deg, var(--navy-950) 0%, var(--navy-900) 45%, var(--navy-800) 100%);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
#network-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .75; }
.hero-glow {
  position: absolute; right: -8%; top: 15%; width: 55vw; height: 55vw; max-width: 720px; max-height: 720px;
  background: radial-gradient(circle, rgba(201,162,75,.20), transparent 65%);
  filter: blur(34px); pointer-events: none;
}
.hero-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 120% at 50% 50%, transparent 55%, rgba(6,11,28,.65) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 130px 0 100px; }
.hero-eyebrow {
  display: flex; align-items: center; gap: 1rem;
  font-family: var(--display); font-style: italic;
  font-size: 1.15rem; letter-spacing: .3em; font-weight: 600;
  color: var(--gold-light); margin-bottom: 1.8rem;
}
.hero-eyebrow em { color: var(--text-muted); font-style: normal; }
.hero-eyebrow .line { flex: 0 0 42px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }
.hero-eyebrow .line:first-child { background: linear-gradient(90deg, transparent, var(--gold)); }

.hero-title {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(2.5rem, 6.2vw, 4.6rem); line-height: 1.3;
  letter-spacing: .04em; margin-bottom: 2rem;
  text-shadow: 0 4px 40px rgba(0,0,0,.5);
}
.hero-title .accent {
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-lead {
  max-width: 650px; font-size: clamp(1rem, 1.6vw, 1.18rem);
  color: var(--text-light); font-weight: 300; margin-bottom: 1rem;
}
.hero-sub { max-width: 650px; color: var(--text-muted); font-size: .95rem; margin-bottom: 2.6rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }

.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 1rem 2rem; }
.hero-badges li { font-size: .88rem; color: var(--text-muted); display: flex; align-items: center; gap: .55em; }
.hero-badges i { color: var(--gold); }

.scroll-indicator {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--display); font-size: .78rem; letter-spacing: .3em; color: var(--text-muted);
}
.scroll-line { width: 1px; height: 48px; background: linear-gradient(var(--gold), transparent); animation: scrollPulse 2s infinite; }
@keyframes scrollPulse { 0%,100% { opacity: .3; transform: scaleY(.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* ===== Achievements ===== */
.achievements {
  padding: 64px 0;
  background: linear-gradient(90deg, var(--navy-800), var(--navy-700) 50%, var(--navy-800));
  border-block: 1px solid rgba(201,162,75,.16);
}
.achieve-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.6rem; }
.achieve-card {
  text-align: center; padding: 1.3rem 1.1rem;
  border: 1px solid rgba(201,162,75,.18); border-radius: 10px;
  background: linear-gradient(160deg, rgba(255,255,255,.045), rgba(255,255,255,.008));
  position: relative; transition: transform .35s ease, border-color .35s ease;
}
.achieve-card::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 40px; height: 2px; background: var(--gold-grad);
}
.achieve-card:hover { transform: translateY(-6px); border-color: rgba(201,162,75,.45); }
.achieve-num {
  display: block; font-family: var(--serif); font-weight: 600;
  font-size: clamp(1rem, 1.4vw, 1.2rem); letter-spacing: .03em; margin-bottom: .45rem;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.achieve-desc { color: var(--text-muted); font-size: .8rem; line-height: 1.6; }

/* ===== Challenges ===== */
.challenges {
  background:
    radial-gradient(700px 400px at 20% 10%, rgba(201,162,75,.05), transparent 60%),
    linear-gradient(180deg, var(--navy-950), var(--navy-900));
}
.challenge-list { list-style: none; max-width: 820px; margin: 0 auto 2.6rem; display: grid; gap: 1rem; }
.challenge-list li {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 1.5rem; border-radius: 8px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06);
  border-left: 3px solid rgba(201,162,75,.5);
  font-size: 1rem; color: var(--text-light); font-weight: 300;
  transition: transform .3s ease, border-color .3s ease, background .3s;
}
.challenge-list li:hover { transform: translateX(6px); background: rgba(201,162,75,.06); border-left-color: var(--gold); }
.challenge-list i { color: var(--gold); font-size: 1.05rem; }
.challenge-solution {
  max-width: 820px; margin: 0 auto; text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap;
  font-family: var(--serif); font-size: clamp(1.15rem, 2.4vw, 1.6rem); font-weight: 500;
  padding: 2rem; border-radius: 10px;
  background: linear-gradient(135deg, rgba(201,162,75,.1), rgba(201,162,75,.02));
  border: 1px solid rgba(201,162,75,.3);
}
.challenge-solution i { color: var(--gold-light); }
.challenge-solution strong { color: var(--gold-light); font-weight: 700; }

/* ===== Service ===== */
.service { background: linear-gradient(180deg, var(--navy-900), var(--navy-800)); }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.8rem; }
.service-card {
  background: linear-gradient(160deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  border: 1px solid rgba(201,162,75,.16);
  border-radius: 12px; padding: 2.6rem 2rem;
  transition: transform .4s cubic-bezier(.2,.8,.2,1), border-color .4s, box-shadow .4s;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: var(--gold-grad); transform: scaleX(0); transform-origin: left; transition: transform .4s ease;
}
.service-card:hover { transform: translateY(-8px); border-color: rgba(201,162,75,.5); box-shadow: 0 24px 50px rgba(0,0,0,.45); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 66px; height: 66px; border-radius: 12px; margin-bottom: 1.5rem;
  display: grid; place-items: center; font-size: 1.6rem; color: var(--gold-light);
  background: rgba(201,162,75,.1); border: 1px solid rgba(201,162,75,.28);
}
.service-card h3 { font-family: var(--serif); font-size: 1.28rem; font-weight: 600; margin-bottom: 1rem; letter-spacing: .03em; }
.service-card p { color: var(--text-muted); font-size: .93rem; }

/* ===== Why ===== */
.why {
  background:
    radial-gradient(680px 420px at 82% 12%, rgba(201,162,75,.06), transparent 62%),
    radial-gradient(620px 460px at 8% 92%, rgba(26,49,104,.4), transparent 60%),
    var(--navy-900);
}
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.why-card {
  position: relative; padding: 2rem 1.6rem;
  border: 1px solid rgba(255,255,255,.07); border-radius: 12px;
  background: linear-gradient(160deg, rgba(255,255,255,.035), rgba(255,255,255,.006));
  transition: transform .35s ease, border-color .35s;
}
.why-card:hover { transform: translateY(-6px); border-color: rgba(201,162,75,.4); }
.why-num {
  font-family: var(--display); font-size: 2.5rem; font-weight: 600; line-height: 1;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  display: block; margin-bottom: 1rem; opacity: .9;
}
.why-card h3 { font-family: var(--serif); font-size: 1.08rem; font-weight: 600; margin-bottom: .9rem; letter-spacing: .02em; line-height: 1.6; }
.why-card p { color: var(--text-muted); font-size: .92rem; }

/* ===== Results / Case ===== */
.results { background: linear-gradient(180deg, var(--navy-800), var(--navy-900)); }

/* --- Tabs --- */
.case-tabs {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem;
  max-width: 980px; margin: 0 auto 2.2rem;
}
.case-tab {
  font-family: var(--sans); font-size: .9rem; font-weight: 500; letter-spacing: .02em;
  color: var(--text-light); cursor: pointer;
  padding: .7em 1.4em; border-radius: 50px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(201,162,75,.22);
  transition: all .35s ease; white-space: nowrap;
}
.case-tab .tab-id { font-family: var(--display); font-style: italic; font-weight: 600; margin-right: .2em; color: var(--gold); transition: color .35s ease; }
.case-tab:hover { border-color: rgba(201,162,75,.5); background: rgba(201,162,75,.08); }
.case-tab.active {
  background: var(--gold-grad); border-color: transparent; color: var(--navy-900); font-weight: 700;
  box-shadow: 0 10px 26px rgba(201,162,75,.32);
}
.case-tab.active .tab-id { color: var(--navy-900); }

/* --- Panels --- */
.case-panels { max-width: 980px; margin: 0 auto; }
.case-card {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 0;
  border: 1px solid rgba(201,162,75,.22); border-radius: 16px; overflow: hidden;
  background: linear-gradient(160deg, rgba(255,255,255,.04), rgba(255,255,255,.008));
  box-shadow: 0 30px 70px rgba(0,0,0,.4);
}
.case-card[hidden] { display: none; }
.case-card { animation: caseFade .5s ease both; }
@keyframes caseFade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.case-body { padding: 2.6rem; }
.case-industry { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; color: var(--gold-light); margin-bottom: 1.6rem; display: flex; align-items: center; gap: .6em; }
.case-block { margin-bottom: 1.5rem; }
.case-tag {
  display: inline-block; font-family: var(--display); font-size: .78rem; font-weight: 600;
  letter-spacing: .2em; padding: .25em .8em; border-radius: 3px; margin-bottom: .6rem;
}
.case-tag.challenge { background: rgba(224,120,120,.14); color: #e79a9a; border: 1px solid rgba(224,120,120,.35); }
.case-tag.solution { background: rgba(201,162,75,.14); color: var(--gold-light); border: 1px solid rgba(201,162,75,.4); }
.case-block p { color: var(--text-muted); font-size: .93rem; }
.case-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.case-chips span { font-size: .78rem; padding: .3em .8em; border-radius: 50px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); color: var(--text-light); }
.case-result {
  margin-top: 1.8rem; padding-top: 1.6rem; border-top: 1px dashed rgba(201,162,75,.3);
  display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap;
}
.case-result-label { font-family: var(--display); letter-spacing: .16em; font-weight: 600; color: var(--gold); font-size: .8rem; }
.case-result-label i { color: var(--gold); margin-right: .2em; }
.case-result-hl { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.case-result-note { color: var(--text-muted); font-size: .82rem; }

.case-chart { padding: 2.6rem; background: linear-gradient(160deg, rgba(201,162,75,.08), rgba(6,11,28,.2)); border-left: 1px solid rgba(201,162,75,.18); display: flex; flex-direction: column; }
.chart-title { font-family: var(--display); font-size: .82rem; letter-spacing: .2em; color: var(--gold); font-weight: 600; }
.chart-sub { font-size: .78rem; color: var(--text-muted); margin-bottom: 1.4rem; }
.bars { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 1.4rem; min-height: 200px; }
.bar-col { display: flex; flex-direction: column; align-items: center; gap: .7rem; height: 100%; justify-content: flex-end; flex: 1; max-width: 64px; }
.bar-wrap { display: flex; align-items: flex-end; height: 180px; width: 100%; justify-content: center; position: relative; }
.bar { width: 100%; max-width: 46px; border-radius: 6px 6px 0 0; height: 0; transition: height 1.1s cubic-bezier(.2,.8,.2,1); position: relative; }
.bar.before { background: linear-gradient(180deg, #38466e, #26314f); }
.bar.after { background: var(--gold-grad); box-shadow: 0 -6px 24px rgba(201,162,75,.35); }
.bar-val { position: absolute; top: -1.5em; left: 50%; transform: translateX(-50%); font-family: var(--display); font-size: .78rem; font-weight: 600; color: var(--text-light); white-space: nowrap; opacity: 0; transition: opacity .5s ease .5s; }
.bar-col.shown .bar-val { opacity: 1; }
.bar-label { font-size: .74rem; color: var(--text-muted); text-align: center; line-height: 1.3; }
.chart-legend { display: flex; justify-content: center; gap: 1.4rem; margin-top: 1.4rem; }
.chart-legend span { display: inline-flex; align-items: center; gap: .45em; font-size: .78rem; color: var(--text-muted); }
.chart-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.chart-legend .lg-before { background: linear-gradient(180deg, #38466e, #26314f); }
.chart-legend .lg-after { background: var(--gold-grad); }

/* --- Results CTA --- */
.case-cta { max-width: 980px; margin: 2.8rem auto 0; text-align: center; }
.case-cta p { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--gold-light); margin-bottom: 1.3rem; letter-spacing: .03em; }

/* ===== Profile ===== */
.profile {
  background:
    radial-gradient(720px 460px at 15% 8%, rgba(201,162,75,.055), transparent 62%),
    radial-gradient(640px 520px at 90% 96%, rgba(26,49,104,.4), transparent 60%),
    var(--navy-900);
}
.profile-top { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: center; margin-bottom: 4rem; }
.profile-card {
  padding: 2.6rem; border-radius: 14px; text-align: center;
  background: linear-gradient(160deg, rgba(201,162,75,.12), rgba(255,255,255,.01));
  border: 1px solid rgba(201,162,75,.3);
  box-shadow: inset 0 0 60px rgba(201,162,75,.05), 0 24px 50px rgba(0,0,0,.4);
}
.profile-role { display: inline-block; font-size: .8rem; letter-spacing: .18em; color: var(--gold-light); border: 1px solid rgba(201,162,75,.4); padding: .3em 1em; border-radius: 50px; margin-bottom: 1.2rem; }
.profile-name { font-family: var(--serif); font-size: 2.4rem; font-weight: 700; letter-spacing: .1em; }
.profile-name-en { font-family: var(--display); font-style: italic; color: var(--gold); letter-spacing: .1em; margin-bottom: 1.6rem; }
.profile-highlights { list-style: none; text-align: left; display: grid; gap: .7rem; }
.profile-highlights li { font-size: .88rem; color: var(--text-light); display: flex; gap: .6em; align-items: flex-start; }
.profile-highlights i { color: var(--gold); font-size: .8rem; margin-top: .45em; }
.profile-bio { font-size: 1.02rem; color: var(--text-muted); font-weight: 300; line-height: 2; }

.timeline { list-style: none; max-width: 860px; margin: 0 auto; position: relative; padding-left: 2rem; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--gold), rgba(201,162,75,.1)); }
.timeline-item { position: relative; padding: 0 0 2.4rem 1.8rem; }
.timeline-item::before {
  content: ""; position: absolute; left: -1.65rem; top: 8px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold-grad); box-shadow: 0 0 0 4px rgba(201,162,75,.15);
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-period { font-family: var(--display); font-style: italic; font-size: .9rem; letter-spacing: .08em; color: var(--gold); }
.timeline-item h4 { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; margin: .3rem 0; letter-spacing: .02em; }
.timeline-role { color: var(--gold-light); font-size: .9rem; margin-bottom: .6rem; }
.timeline-item p:last-child { color: var(--text-muted); font-size: .92rem; }

/* ===== Other Services ===== */
.other {
  text-align: center;
  background:
    radial-gradient(700px 400px at 50% 0%, rgba(201,162,75,.1), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-800));
}
.other-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2.6rem; max-width: 900px; margin-inline: auto; }
.other-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  padding: 2rem 1.4rem; border-radius: 12px; text-align: center;
  background: linear-gradient(160deg, rgba(255,255,255,.045), rgba(255,255,255,.008));
  border: 1px solid rgba(201,162,75,.2); transition: transform .35s ease, border-color .35s;
}
.other-item:hover { transform: translateY(-6px); border-color: rgba(201,162,75,.5); }
.other-item i { font-size: 2rem; color: var(--gold-light); }
.other-item span { font-family: var(--serif); font-size: 1rem; font-weight: 500; }

/* ===== Contact ===== */
.contact {
  text-align: center;
  background:
    radial-gradient(900px 450px at 50% 0%, rgba(201,162,75,.14), transparent 60%),
    linear-gradient(160deg, var(--navy-950), var(--navy-700));
  border-top: 1px solid rgba(201,162,75,.16);
}
.contact-title { font-family: var(--serif); font-weight: 700; font-size: clamp(1.9rem, 4.5vw, 2.9rem); line-height: 1.5; letter-spacing: .04em; margin-bottom: 1.4rem; }
.contact-desc { color: var(--text-light); font-weight: 300; margin-bottom: .6rem; }
.contact-scope { color: var(--gold-light); font-size: .92rem; margin-bottom: 2.6rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-bottom: 1.8rem; }
.contact-note { color: var(--text-muted); font-size: .88rem; }
.contact-note i { color: var(--gold); }

/* ===== Footer ===== */
.site-footer { background: var(--navy-950); border-top: 1px solid rgba(201,162,75,.15); padding-top: 3.4rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: center; padding-bottom: 2.6rem; }
.footer-brand { display: flex; align-items: center; gap: 1rem; }
.footer-name { font-family: var(--serif); font-weight: 700; font-size: 1.12rem; letter-spacing: .05em; }
.footer-tag { font-family: var(--display); font-style: italic; font-size: .8rem; letter-spacing: .2em; color: var(--gold-light); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.6rem; }
.footer-nav a { font-size: .88rem; color: var(--text-muted); transition: color .3s; }
.footer-nav a:hover { color: var(--gold-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.06); padding: 1.5rem 0; text-align: center; }
.footer-bottom p { font-size: .78rem; color: var(--text-dim); letter-spacing: .05em; }

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 940px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .case-card { grid-template-columns: 1fr; }
  .case-chart { border-left: none; border-top: 1px solid rgba(201,162,75,.18); }
  .profile-top { grid-template-columns: 1fr; }

  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; top: 0; right: -100%; width: 80%; max-width: 340px; height: 100vh;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.8rem;
    background: linear-gradient(160deg, var(--navy-800), var(--navy-900)); padding: 2rem 2.6rem;
    box-shadow: -10px 0 50px rgba(0,0,0,.6); transition: right .4s ease; z-index: 120;
  }
  .main-nav.open { right: 0; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 560px) {
  .section { padding: 80px 0; }
  /* Collapse desktop-only <br> so titles wrap naturally per phrase */
  br.pc-only { display: none; }
  /* Phone-only <br> shows up */
  br.sp-only { display: inline; }
  /* Let phrases wrap normally on phones (Japanese wraps per character cleanly),
     and keep balanced, centered line breaks */
  .hero-title .nowrap, .section-title .nowrap,
  .achieve-desc .nowrap { white-space: normal; }
  .hero-title, .section-title { text-wrap: balance; }
  /* Contact title: keep each phrase on one line, fit within 2 lines */
  .contact-title { font-size: clamp(1.4rem, 6.4vw, 1.9rem); line-height: 1.6; text-wrap: nowrap; }
  .contact-title .nowrap { white-space: nowrap; }
  .why-grid { grid-template-columns: 1fr; }
  .other-grid { grid-template-columns: 1fr; max-width: 340px; }
  .hero-actions .btn, .contact-actions .btn { width: 100%; justify-content: center; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .case-body, .case-chart { padding: 1.8rem; }
  .case-tab { font-size: .82rem; padding: .6em 1.1em; }
  .bars { gap: .7rem; }
  .bar-label { font-size: .68rem; }
}

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