/* ===== 背景（過去→現在→未来で色が変化する空） ===== */
.sky { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; background: #fff; }
.sky .layer { position: absolute; inset: 0; transition: opacity .4s linear; will-change: opacity; }
.sky .past {
  background:
    radial-gradient(1200px 700px at 20% 0%, rgba(6, 72, 157, .16), transparent 60%),
    linear-gradient(180deg, #eef2f8 0%, #e7edf6 100%);
}
.sky .present {
  background:
    radial-gradient(1100px 700px at 80% -5%, rgba(0, 157, 222, .20), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #eef7fd 100%);
  opacity: 0;
}
.sky .future {
  background:
    radial-gradient(1000px 800px at 60% -10%, rgba(253, 208, 0, .22), transparent 55%),
    radial-gradient(900px 700px at 20% 100%, rgba(0, 157, 222, .18), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #eaf6ff 100%);
  opacity: 0;
}

/* 紙吹雪的モチーフ（控えめ） */
.confetti { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.confetti i {
  position: absolute; top: -20px; width: 9px; height: 9px; opacity: 0; border-radius: 1px;
  animation: fall linear infinite;
}

/* ===== SECTION: HERO（案B：記念ロゴ × 疾走ビーム／前進・挑戦） ===== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center; padding-top: 70px; overflow: hidden;
  background:
    radial-gradient(58% 78% at 80% 50%, rgba(0, 157, 222, .20), transparent 62%),
    linear-gradient(115deg, #f3f9fe 0%, #e9f3fd 46%, #d3e7f8 100%);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero-bg .kv-art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-bg .glow { animation: glowPulse 3.6s ease-in-out infinite; }
.hero-bg .rays .streak { animation: rayTw 2.6s ease-in-out infinite; }
.hero-bg .rays .streak:nth-child(2) { animation-delay: .4s; }
.hero-bg .rays .streak:nth-child(3) { animation-delay: .8s; }
.hero-bg .rays .streak:nth-child(4) { animation-delay: 1.2s; }
.hero-bg .rays .streak:nth-child(5) { animation-delay: 1.6s; }
/* 左側のメッセージ可読性を確保する白のかすみ／下端の締め */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, .62) 0%, rgba(255, 255, 255, .18) 42%, transparent 60%);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34%; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, .6) 55%, #ffffff 100%);
}
.hero .wrap { width: 100%; }
.hero-copy { max-width: 60%; }
.hero-tag { font-family: var(--mono); font-size: 12px; letter-spacing: .28em; color: var(--brand-2); }
/* コピーは2行固定（「40年分のありがとうを、」／「次の5年の挑戦へ。」） */
.hero h1 { font-size: clamp(28px, 4.9vw, 54px); line-height: 1.16; margin: 14px 0; letter-spacing: .01em; }
.hero h1 .line { display: block; white-space: nowrap; }
.hero h1 .accent { background: linear-gradient(120deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { color: var(--ink-soft); font-size: 17px; max-width: 540px; }
.hero-meta { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; font-family: var(--mono); font-size: 12.5px; color: var(--ink-soft); }
.hero-meta span { border: 1px solid var(--line); border-radius: 6px; padding: 6px 11px; background: rgba(255, 255, 255, .7); }
.scrolldown {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); text-align: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: .24em; color: var(--brand-2); z-index: 3;
}
.scrolldown::after {
  content: ""; display: block; width: 1px; height: 46px; margin: 8px auto 0;
  background: linear-gradient(var(--brand-2), transparent); animation: sd 1.8s ease-in-out infinite;
}
/* 案B：スプリット × 疾走ビーム */
.hero-b .hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; width: 100%; }
.hero-b .hero-copy { max-width: none; }
.hero-b .hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-b .hero-logo-img { width: min(560px, 98%); height: auto; filter: drop-shadow(0 16px 40px rgba(6, 72, 157, .22)); animation: floaty 6.5s ease-in-out infinite; }
.hero-b .march polygon { animation: beamShift 2.2s ease-in-out infinite; }
.hero-b .march polygon:nth-child(2) { animation-delay: .25s; }
.hero-b .march polygon:nth-child(3) { animation-delay: .5s; }

/* ===== SECTION: MESSAGE ===== */
#message { overflow: hidden; }
#message::after {
  content: "THANK YOU"; position: absolute; right: -14px; bottom: -42px; z-index: 0; pointer-events: none;
  font-family: var(--en); font-weight: 800; font-size: clamp(70px, 12vw, 150px); line-height: .8; letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(6, 72, 157, .08);
}
.msg-grid { display: grid; grid-template-columns: 320px 1fr; gap: 56px; align-items: start; margin-top: 32px; }
.portrait-wrap { position: relative; padding: 10px; }
.portrait-wrap .tri { position: absolute; pointer-events: none; }
.portrait-wrap .tri--yellow {
  left: -30px; bottom: -22px; width: 130px; height: 130px; z-index: 0; background: var(--accent);
  -webkit-clip-path: polygon(50% 0, 100% 100%, 0 100%); clip-path: polygon(50% 0, 100% 100%, 0 100%); transform: rotate(-9deg); filter: drop-shadow(0 14px 26px rgba(253, 208, 0, .4));
}
.portrait-wrap .tri--brand {
  right: -28px; top: -24px; width: 140px; height: 140px; z-index: 0;
  background: linear-gradient(180deg, var(--brand), var(--brand-2)); opacity: .16; -webkit-clip-path: polygon(0 0, 100% 0, 50% 100%); clip-path: polygon(0 0, 100% 0, 50% 100%); transform: rotate(9deg);
}
.portrait {
  aspect-ratio: 3/4; background: linear-gradient(160deg, #cfdef6, #e9f0fb); position: relative; overflow: hidden; z-index: 1;
  border-radius: 14px; filter: drop-shadow(0 24px 40px var(--glow));
}
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.portrait .sig {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 16px;
  background: linear-gradient(0deg, rgba(6, 25, 55, .82), rgba(6, 25, 55, .2) 65%, transparent); color: #fff; font-size: 13px;
}
.portrait .sig b { font-size: 18px; display: block; }
.msg-body p { margin-bottom: 16px; font-size: 15.5px; color: #243b5c; }
.msg-body .m-lead { font-size: clamp(19px, 2.6vw, 25px); font-weight: 800; line-height: 1.7; color: var(--brand); margin-bottom: 22px; }

/* ===== SECTION: HISTORY（円弧スクラブ／下部に売上グラフ帯／中央寄せ画像・青ベース確定版） ===== */
#history {
  padding: 0;
  /* テーマ変数（青ステージ：反転配色） */
  --h-bg:
    radial-gradient(1200px 760px at 22% 8%, rgba(0, 157, 222, .45), transparent 60%),
    radial-gradient(1000px 820px at 85% 110%, rgba(6, 72, 157, .65), transparent 60%),
    linear-gradient(165deg, #063b86 0%, #06489D 42%, #0a66b8 100%);
  --h-ink: #fff; --h-ink-soft: rgba(255, 255, 255, .74);
  --h-card-bg: rgba(255, 255, 255, .96); --h-card-ink: #22374f; --h-card-line: #e3e8ef;
  --h-grid: rgba(255, 255, 255, .16); --h-axis: rgba(255, 255, 255, .5);
  --h-bar: #cfe6fb; --h-line: #ffffff; --h-accent: #FDD000;
  --h-year-stroke: rgba(255, 255, 255, .24); --h-year-small: #8bd8f5; --h-head-sub: #8bd8f5;
}
.hist-intro-wrap { max-width: 1120px; margin: 0 auto; padding: 100px 24px 20px; }
.hist-scroller { height: 5200px; position: relative; }
.hist-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; background: var(--h-bg); }
.era-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.era-bg .era-img {
  position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease;
  background-size: cover; background-position: center; filter: blur(44px) saturate(.7); transform: scale(1.25);
}
.era-bg .era-img.on { opacity: .14; }

/* カードと被っても自然に見えるよう、HISTORYは白の中抜き（アウトライン）＋カード背面に配置 */
.hist-head { position: absolute; left: 6vw; top: 7vh; z-index: 2; pointer-events: none; }
.hist-head .en { font-family: var(--mono); font-size: 11px; letter-spacing: .28em; color: var(--h-head-sub); }
.hist-head h2 {
  font-family: var(--en); font-size: clamp(30px, 5vw, 52px); line-height: 1; margin: 8px 0;
  color: transparent; -webkit-text-stroke: 1.6px rgba(255, 255, 255, .55);
}
.hist-head p { font-family: var(--mono); font-size: 12px; color: var(--h-ink-soft); letter-spacing: .1em; }

/* 上段ステージ（売上グラフ帯の上）：年号カード＋年代イメージ＋マイルストーン */
.hist-stage { position: absolute; left: 0; right: 0; top: 0; bottom: 38vh; z-index: 10; display: flex; align-items: center; }
.viewport { position: relative; flex: 0 0 50%; max-width: 50%; height: 100%; overflow: hidden; z-index: 6; }
.arc { position: absolute; right: 2%; top: -30%; width: 60vw; height: 160%; border: 1px solid var(--h-year-stroke); border-radius: 50%; }
.arc2 { position: absolute; right: 11%; top: -6%; width: 46vw; height: 112%; border: 1px dashed var(--h-year-stroke); border-radius: 50%; }
.cards { position: absolute; inset: 0; }
.hcard {
  position: absolute; width: min(470px, 82%); min-height: 128px; left: 56%; top: 50%; padding: 22px 26px; border-radius: 16px;
  background: var(--h-card-bg); border: 1px solid var(--h-card-line); box-shadow: 0 18px 50px rgba(6, 72, 157, .18);
  transform-origin: center center; transition: opacity .3s ease, box-shadow .3s ease, border-color .3s ease;
  will-change: transform, opacity; backface-visibility: hidden;
}
.hcard .hhead { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.hcard .hy { font-family: var(--en); font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1; color: var(--brand); }
.hcard .ht { font-size: 16.5px; color: var(--brand-2); letter-spacing: .02em; font-weight: 700; }
.hcard .hev { margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--h-card-line); font-size: 16.5px; line-height: 1.85; color: #1b2e47; }
.hcard .hev .mo { font-weight: 700; margin-right: 7px; color: var(--brand); }
.hcard.active { box-shadow: 0 26px 72px rgba(6, 72, 157, .28), 0 0 45px rgba(0, 157, 222, .12); border-color: rgba(0, 157, 222, .4); }
.hcard.active .hy { background: linear-gradient(150deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.year-rail {
  position: absolute; left: 1.2vw; top: 50%; transform: translateY(-50%); z-index: 1; pointer-events: none;
  writing-mode: vertical-rl; text-orientation: mixed; font-family: var(--en); font-weight: 800;
  font-size: clamp(48px, 7.5vw, 104px); line-height: .98; letter-spacing: .01em;
  color: transparent; -webkit-text-stroke: 1.6px var(--h-year-stroke);
}
.year-rail small {
  writing-mode: horizontal-tb; -webkit-text-stroke: 0; color: var(--h-year-small); font-family: var(--mono);
  font-size: 11px; font-weight: 700; letter-spacing: .24em; display: block; margin-bottom: 10px;
}

/* 年代イメージ：画面中央寄り／枠だけ柔らかくぼかす（中央はくっきり）／グラフ帯には重ねない */
.era-follow {
  position: absolute; left: 52.9vw; top: 10.2vh; width: 17.2vw; min-width: 220px; height: 33.8vh; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
}
.follow-stage { position: relative; width: 100%; height: 100%; }
/* R-15: 年代ごとのフレームを重ねてクロスフェード（切替時に空白を作らない） */
.follow-frame { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; opacity: 0; transition: opacity .6s ease; }
.follow-frame.on { opacity: 1; }
.follow-img { opacity: 0; transform: scale(.98); transition: opacity .8s ease, transform .8s ease; }
.follow-img.on { opacity: 1; transform: none; }
/* 写真：四角のまま枠いっぱい（cover）／四辺の輪郭だけ柔らかくぼかす（矩形フェザーマスク） */
.follow-img.photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 6px;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 7%, #000 93%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-composite: intersect;
}
/* 複数写真（例：2019 本社＋長崎＝縦長）はフレーム内で横に並べる（単独写真はinset:0のまま全面） */
.follow-frame.multi.photos { flex-direction: row; gap: 6px; }
.follow-frame.multi.photos .follow-img.photo { position: relative; inset: auto; width: 48%; height: 100%; }
/* ロゴ：白カードでくっきり（ぼかしなし）。単独ロゴは内容に合わせた自然サイズ（間延び防止） */
.follow-img.logo { max-width: 100%; max-height: 46%; object-fit: contain; padding: 8px 14px; background: #fff; border-radius: 12px; box-shadow: 0 16px 40px rgba(4, 22, 55, .24); }
/* 複数社ロゴ（例：2022 3社）は同一サイズの白カードで揃える */
.follow-frame.multi .follow-img.logo { width: 100%; height: 30%; max-height: none; }
.follow-cap { position: absolute; top: calc(100% + 8px); left: 0; right: 0; font-size: 11.5px; color: var(--h-ink-soft); opacity: 0; transition: opacity .6s ease .1s; text-align: center; line-height: 1.5; }
.follow-cap.on { opacity: 1; }
.follow-cap .yt { display: block; font-family: var(--en); font-weight: 800; color: var(--h-ink); margin-bottom: 2px; letter-spacing: .04em; }

/* 2025「売上高100億円」強調（空きスペースを活用） */
.milestone {
  position: absolute; z-index: 14; right: 9.9vw; top: 21vh; width: 13.5vw; min-width: 180px; text-align: right; pointer-events: none;
  opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease;
}
.milestone.on { opacity: 1; transform: none; }
.milestone .ms-badge {
  display: inline-block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em;
  color: var(--h-accent); border: 1px solid var(--h-accent); border-radius: 99px; padding: 4px 12px; margin-bottom: 10px;
}
.milestone .ms-num { font-family: var(--en); font-weight: 800; line-height: .9; display: flex; align-items: baseline; gap: 6px; justify-content: flex-end; }
.milestone .ms-num b {
  font-size: clamp(44px, 6vw, 88px);
  background: linear-gradient(120deg, #ffdf3f, var(--h-accent)); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 20px rgba(253, 208, 0, .35));
}
.milestone .ms-num span { font-size: clamp(16px, 2.2vw, 26px); font-weight: 800; color: var(--h-ink); }
.milestone .ms-cap { margin-top: 8px; font-size: 13px; color: var(--h-ink-soft); }

/* 下段：売上グラフ帯（Y軸＝売上高〔億円〕／X軸＝年） */
.hist-chart { position: absolute; left: 0; right: 0; bottom: 0; height: 38vh; z-index: 4; pointer-events: none; overflow: visible; }
.hist-chart svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.hist-chart .ch-grid { stroke: var(--h-grid); stroke-width: 1; vector-effect: non-scaling-stroke; }
.hist-chart .ch-base { stroke: var(--h-axis); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.hist-chart .ch-area { fill: var(--h-line); opacity: .12; }
.hist-chart .ch-line { fill: none; stroke: var(--h-line); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.hist-chart .ch-bar { fill: var(--h-bar); opacity: .55; }
.hist-chart .ch-bar.hot { fill: var(--h-accent); opacity: 1; }
.hist-chart .ch-dot { fill: var(--h-accent); stroke: #fff; stroke-width: 2.5; vector-effect: non-scaling-stroke; opacity: 0; transition: opacity .4s; }
.hist-chart .ch-dot.on { opacity: 1; }
.ch-ylab { position: absolute; left: 6px; transform: translateY(-50%); font-family: var(--mono); font-size: 11px; color: var(--h-ink-soft); white-space: nowrap; }
.ch-xlab { position: absolute; transform: translate(-50%, 7px); font-family: var(--en); font-weight: 700; font-size: 12.5px; color: var(--h-ink-soft); white-space: nowrap; }
.ch-xlab.hot { color: var(--h-ink); }
.ch-ytitle { position: absolute; left: 6px; top: 5px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; color: var(--h-ink-soft); }
.hist-chart .cap { position: absolute; right: 2vw; bottom: 7px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; color: var(--h-ink-soft); }
.hist-note { position: absolute; left: 6vw; bottom: calc(38vh + 12px); z-index: 20; font-size: 11px; color: var(--h-ink-soft); max-width: 46vw; }

/* ===== SECTION: VISION（角丸カードを廃したフラットなエディトリアル：大きな番号＋罫線） ===== */
#vision .lead { margin-bottom: 8px; }
.vision-list { margin-top: 32px; border-top: 2px solid var(--brand); }
.vrow { display: grid; grid-template-columns: 132px 1fr; gap: 30px; align-items: start; padding: 30px 2px; border-bottom: 1px solid var(--line); }
.vrow .vn { font-family: var(--en); font-weight: 800; font-size: clamp(48px, 7vw, 86px); line-height: .82; color: transparent; -webkit-text-stroke: 1.6px rgba(6, 72, 157, .28); }
.vrow .vt { font-size: clamp(18px, 2.2vw, 22px); color: var(--brand); font-weight: 800; margin-bottom: 8px; }
.vrow .vb { font-size: 14px; color: var(--ink-soft); max-width: 720px; }
.vrow .vkey-label { display: inline-block; font-family: var(--en); font-weight: 800; font-size: 10.5px; letter-spacing: .16em; color: var(--brand-2); margin-bottom: 10px; }
/* キー施策01：番号を塗りで主役化＋左アクセント罫と淡い横グラデ（箱にはしない） */
.vrow.key { padding-left: 22px; border-left: 4px solid var(--brand-2); background: linear-gradient(90deg, rgba(0, 157, 222, .07), transparent 55%); }
.vrow.key .vn { color: var(--brand); -webkit-text-stroke: 0; }
.vrow.key .vt { font-size: clamp(21px, 2.8vw, 28px); }
.vrow.key .vb { font-size: 15px; }

/* R-31: カーソルを当てた項目に強調が移る（既定は01=key）。:hover のみで全ブラウザ対応 */
.vrow, .vrow .vn, .vrow .vt, .vrow .vb { transition: padding .3s ease, border-color .3s ease, background .3s ease, color .3s ease, font-size .3s ease; }
.vrow { cursor: default; }
.vrow:hover { padding-left: 22px; border-left: 4px solid var(--brand-2); background: linear-gradient(90deg, rgba(0, 157, 222, .07), transparent 55%); }
.vrow:hover .vn { color: var(--brand); -webkit-text-stroke: 0; }
.vrow:hover .vt { font-size: clamp(21px, 2.8vw, 28px); }
.vrow:hover .vb { font-size: 15px; }
/* 02/03 ホバー中は、既定強調の01を控えめに戻す（＝強調が移動） */
.vision-list:hover .vrow.key:not(:hover) { padding-left: 2px; border-left: 0 solid transparent; background: none; }
.vision-list:hover .vrow.key:not(:hover) .vn { color: transparent; -webkit-text-stroke: 1.6px rgba(6, 72, 157, .28); }
.vision-list:hover .vrow.key:not(:hover) .vt { font-size: clamp(18px, 2.2vw, 22px); }
.vision-list:hover .vrow.key:not(:hover) .vb { font-size: 14px; }
/* MID-TERM：角丸・影のないフラットな帯。上に細いブランド罫のみ */
.vision-goal { margin-top: 34px; padding: 30px 2px 6px; position: relative; border-top: 2px solid var(--brand); }
.vision-goal .vg-in { position: relative; z-index: 2; }
.vision-goal .vg-k { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; color: var(--brand-2); }
.vision-goal .vg-slogan { font-size: clamp(22px, 3.2vw, 34px); font-weight: 800; margin: 10px 0 6px; line-height: 1.4; color: var(--brand); }
.vision-goal .vg-slogan .num { color: var(--brand-2); }
.vision-goal .vg-slogan .y { background: linear-gradient(120deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vision-goal .vg-b { color: var(--ink-soft); font-size: 14.5px; max-width: 760px; margin-top: 14px; }

/* ===== SECTION: VOICES（自動スクロールカード） ===== */
#voices { overflow: hidden; }
.marquee {
  margin-top: 32px; position: relative; overflow: hidden; cursor: pointer;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee + .marquee { margin-top: 18px; }
.track-row { display: flex; gap: 18px; width: max-content; animation: scrollX 42s linear infinite; will-change: transform; backface-visibility: hidden; }
.track-row.rev { animation-direction: reverse; animation-duration: 48s; }
.marquee.paused .track-row { animation-play-state: paused; }
.vcard {
  flex: 0 0 auto; width: 320px; height: 300px; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: 14px; padding: 20px;
  background: linear-gradient(180deg, #fff, #f6fbff); box-shadow: 0 8px 24px rgba(6, 72, 157, .06);
}
.vcard .top { display: flex; align-items: center; gap: 12px; }
.vcard .av { width: 52px; height: 52px; border-radius: 50%; flex: 0 0 auto; position: relative; overflow: hidden; border: 1px solid var(--line); background: #eef5fc; }
.vcard .av img { width: 100%; height: 100%; display: block; object-fit: cover; }
.vcard .av .aibadge { position: absolute; right: -1px; bottom: -1px; background: var(--brand); color: #fff; font-family: var(--en); font-size: 7px; font-weight: 800; letter-spacing: .04em; padding: 2px 3px; border-radius: 6px 0 11px 0; line-height: 1; }
.vcard .who { font-size: 14px; font-weight: 800; color: var(--ink); letter-spacing: .02em; }
.vcard .who small { display: block; font-family: var(--mono); font-size: 11px; color: var(--ink-soft); font-weight: 400; margin-top: 3px; }
.vcard .vtext { flex: 1 1 auto; min-height: 0; margin-top: 14px; }
.vcard .vtext p {
  font-size: 13px; line-height: 1.75; color: #26405f; white-space: pre-line;
  display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden;
}
/* 本文が溢れたカードにだけ表示（JSで判定して出し分け） */
.vcard .more {
  flex: 0 0 auto; align-self: flex-start; margin-top: 10px; display: none; cursor: pointer;
  font-family: var(--mono); font-size: 11.5px; color: var(--brand); background: #fff;
  border: 1px solid var(--brand-2); border-radius: 8px; padding: 4px 12px;
}
.vcard .more:hover { background: #eef7fd; }
.vcard .more .arw { color: var(--accent); margin-left: 4px; }
.voices-note { margin-top: 18px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-soft); }

/* ===== SECTION: LIFE（写真ギャラリー：クライマックス） ===== */
#life { background: linear-gradient(180deg, #f4faff, #eaf4fd); overflow: hidden; }
.life-sub { margin-top: 28px; font-size: 13px; font-weight: 800; letter-spacing: .14em; color: var(--brand-2); }
.gallery { margin-top: 16px; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 150px; gap: 14px; }
.gtile {
  position: relative; border-radius: 14px; overflow: hidden; background: linear-gradient(150deg, #cfe0f5, #e9f2fc);
  border: 1px solid var(--line); display: flex; align-items: flex-end; transition: transform .4s, box-shadow .4s; cursor: pointer; text-align: left;
}
.gtile:hover, .gtile:focus-visible { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(6, 72, 157, .16); outline: none; }
.gtile:focus-visible { box-shadow: 0 0 0 3px var(--brand-2), 0 18px 40px rgba(6, 72, 157, .16); }
.gtile:hover .gph { transform: scale(1.06); }
.gtile .gph {
  position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .6s ease;
  display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 11px; color: rgba(6, 72, 157, .5); letter-spacing: .1em;
}
.gtile .cap { position: relative; z-index: 2; width: 100%; padding: 12px 14px; font-size: 12px; color: #fff; background: linear-gradient(0deg, rgba(6, 25, 55, .72), transparent); }
/* 拡大できることを示すヒント */
.gtile .zoom {
  position: absolute; top: 10px; right: 10px; z-index: 3; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255, 255, 255, .85); color: var(--brand); display: flex; align-items: center; justify-content: center;
  font-size: 13px; opacity: 0; transform: scale(.8); transition: opacity .3s, transform .3s;
}
.gtile:hover .zoom, .gtile:focus-visible .zoom { opacity: 1; transform: none; }
.gtile.big { grid-column: span 2; grid-row: span 2; }
.gtile.wide { grid-column: span 2; }
/* R-22: 記念ロゴタイルも記念品と同様に下部キャプションを付ける（白地なので文字はブランド色） */
.gtile.logo-tile { background: #fff; border: 1px solid var(--line); }
.gtile.logo-tile .lg-img { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); z-index: 2; width: 82%; height: 68%; object-fit: contain; }
.gtile.logo-tile .cap { background: linear-gradient(0deg, rgba(6, 72, 157, .12), transparent); color: var(--brand); font-weight: 700; }
/* リリース時掲載（記念ロゴ・記念品）：2枚を大きめ・均等に */
.release-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 230px; gap: 16px; }
.gph.goods { flex-direction: column; gap: 10px; color: var(--brand); background: linear-gradient(150deg, #eaf2fc, #f6fbff); }
.gph.goods svg { width: 56px; height: 56px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.gph.goods span { font-family: var(--mono); font-size: 13px; letter-spacing: .14em; color: var(--brand); }
.circle-tags { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.circle-tags span { font-size: 12.5px; color: var(--brand); background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 7px 15px; }
.life-note { margin-top: 18px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-soft); }

/* ===== FOOTER ===== */
footer { background: linear-gradient(180deg, #f4faff, #eaf4fd); color: var(--ink-soft); padding: 56px 0 34px; font-size: 13px; position: relative; z-index: 2; border-top: 1px solid var(--line); }
.foot-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 26px; }
.foot-brand .logo { font-family: var(--mono); font-weight: 700; color: var(--brand); font-size: 16px; display: flex; align-items: center; gap: 8px; }
.foot-brand .logo img { height: 22px; width: auto; }
.foot-brand .logo b { color: var(--brand-2); }
.foot-brand p { color: var(--ink-soft); font-size: 12px; margin-top: 8px; max-width: 360px; }
.foot-links { display: flex; flex-direction: column; gap: 10px; }
footer a { color: var(--brand); text-decoration: none; transition: color .2s; }
footer a:hover { color: var(--brand-2); }
.corp-cta {
  display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #3a2a00; font-weight: 700;
  padding: 12px 22px; border-radius: 10px; font-size: 13.5px; text-decoration: none; transition: transform .3s, box-shadow .3s; box-shadow: 0 8px 20px rgba(253, 208, 0, .3);
}
.corp-cta:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(253, 208, 0, .42); color: #3a2a00; }
.foot-bottom { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 11.5px; color: var(--ink-soft); }
.ai-note { font-size: 11.5px; color: var(--ink-soft); }
