/* ==========================================================
   しーまん 公式プロフィールサイト
   Palette: ブランドガイド v0.5（白×黄×ネイビー×ティール）
   ========================================================== */

:root {
  --bg: #FAFAF7;
  --white: #FFFFFF;
  --ink: #2A3140;
  --ink-soft: #5A6272;
  --yellow: #F5C518;
  --yellow-soft: #FDF3D0;
  --teal: #3A9C8C;
  --teal-soft: #E4F2EF;
  --line: #E7E9EC;
  --radius: 20px;
  --shadow-sm: 0 2px 10px rgba(42, 49, 64, 0.06);
  --shadow-md: 0 14px 36px rgba(42, 49, 64, 0.12);
  --font-jp: "Noto Sans JP", system-ui, -apple-system, "Hiragino Sans", "Segoe UI", sans-serif;
  --font-serif: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-num: "Inter", "Noto Sans JP", sans-serif;
}

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

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

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

img { max-width: 100%; height: auto; display: block; }

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

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  border-radius: 999px;
  padding: 14px 30px;
  font-size: 15px;
  line-height: 1;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
  will-change: transform;
}
/* ホバーで光が走る */
.btn::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 60%;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.45) 50%, transparent 80%);
  transform: translateX(-180%) skewX(-12deg);
  transition: transform 0.7s ease;
  pointer-events: none;
}
.btn:hover::after { transform: translateX(320%) skewX(-12deg); }
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(-1px); }
.btn-navy { background: var(--ink); color: #fff; }
.btn-navy:hover { background: #3a4356; }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: #f7ce3f; }
.btn-white { background: #fff; color: var(--ink); border: 2px solid var(--ink); }
.btn-line { background: #06C755; color: #fff; }
.btn-line:hover { background: #05b950; }
.btn-small { padding: 10px 20px; font-size: 14px; }

.x-logo { width: 17px; height: 17px; fill: currentColor; flex: none; }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- スクロール進捗バー ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 4px;
  width: 100%;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 200;
  pointer-events: none;
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 250, 247, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 17px;
}
.brand img { border-radius: 50%; }
.global-nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}
.global-nav a {
  font-size: 14px;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}
.global-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 3px;
  background: var(--yellow);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.global-nav a:hover::after { transform: scaleX(1); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 150px 0 0;
  overflow: hidden;
  background:
    radial-gradient(rgba(42, 49, 64, 0.07) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
}
/* 漂う色の玉 */
.orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.orb-yellow {
  width: 620px; height: 620px;
  top: -180px; right: -140px;
  background: radial-gradient(circle at 35% 35%, rgba(245, 197, 24, 0.45), rgba(245, 197, 24, 0) 65%);
  animation: orbDrift 21s ease-in-out infinite alternate;
}
.orb-teal {
  width: 480px; height: 480px;
  bottom: -160px; left: -150px;
  background: radial-gradient(circle at 60% 40%, rgba(58, 156, 140, 0.32), rgba(58, 156, 140, 0) 65%);
  animation: orbDrift 27s ease-in-out infinite alternate-reverse;
}
@keyframes orbDrift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(46px, 54px) scale(1.16); }
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px 40px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
  min-height: min(72vh, 640px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 18px;
  box-shadow: var(--shadow-sm);
}
.eyebrow::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--yellow);
}

.hero-title {
  margin-top: 26px;
  font-family: var(--font-serif);
  font-size: clamp(32px, 4.6vw, 54px);
  font-weight: 900;
  line-height: 1.42;
  letter-spacing: 0.03em;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line-inner { display: inline-block; }

/* 1文字ずつ躍り出る演出（JSで分割された場合） */
.hero-title.split .line-inner {
  opacity: 1;
  transform: none;
  animation: none;
}
.hero-title .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.7em) rotate(6deg);
  animation: chRise 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(0.3s + var(--ci) * 0.042s);
}
@keyframes chRise {
  to { opacity: 1; transform: none; }
}
.hero-title.split .marker { animation-delay: 1.75s; }

.marker {
  font-style: normal;
  background-image: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 92%, transparent 92%);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  animation: markerSwipe 0.7s ease forwards;
  animation-delay: 1.15s;
}
@keyframes markerSwipe { to { background-size: 100% 100%; } }

.hero-sub {
  margin-top: 24px;
  max-width: 34em;
  color: var(--ink-soft);
  font-size: 16px;
}

.hero-cta {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* 左端の縦書き飾り文字（キャッチコピーA案） */
.hero::before {
  content: "淡々と積み上げる、ホワイトな物販。";
  position: absolute;
  top: 130px;
  left: clamp(10px, 2vw, 44px);
  z-index: 0;
  writing-mode: vertical-rl;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(22px, 2.1vw, 34px);
  letter-spacing: 0.16em;
  color: rgba(245, 197, 24, 0.55);
  pointer-events: none;
  opacity: 0;
  animation: fadeUp 1.1s ease forwards 1.3s;
}
@media (max-width: 1440px) {
  .hero::before { display: none; }
}

/* ヒーロー登場アニメーション */
.hero-in { opacity: 0; }
.hero-title:not(.split) .line-inner.hero-in { opacity: 1; transform: translateY(110%); }
.hero-title.split .line-inner.hero-in { opacity: 1; transform: none; animation: none; }
.hero-in-1 { animation: fadeUp 0.7s ease forwards 0.15s; }
.hero-in-2 { animation: lineUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.35s; }
.hero-in-3 { animation: lineUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.5s; }
.hero-in-4 { animation: lineUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.65s; }
.hero-in-5 { animation: fadeUp 0.7s ease forwards 0.85s; }
.hero-in-6 { animation: fadeUp 0.7s ease forwards 1.0s; }
.hero-in-7 { animation: fadeUp 0.7s ease forwards 1.15s; }
.hero-visual.hero-in-4 { opacity: 0; transform: none; animation: fadeUp 0.9s ease forwards 0.55s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes lineUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ヒーロー右側ビジュアル */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 380px;
}
.blob {
  position: absolute;
  width: min(420px, 90%);
  aspect-ratio: 1;
  background: var(--yellow);
  border-radius: 58% 42% 55% 45% / 48% 55% 45% 52%;
  animation: blobMorph 9s ease-in-out infinite alternate;
}
@keyframes blobMorph {
  0%   { border-radius: 58% 42% 55% 45% / 48% 55% 45% 52%; transform: rotate(0deg); }
  100% { border-radius: 45% 55% 47% 53% / 55% 46% 54% 45%; transform: rotate(6deg); }
}
.portrait {
  position: relative;
  width: min(300px, 62%);
  aspect-ratio: 1;
  background: #fff;
  border-radius: 50%;
  padding: 14px;
  box-shadow: var(--shadow-md);
  animation: bob 6s ease-in-out infinite;
}
.portrait img { border-radius: 50%; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.chip {
  position: absolute;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(42, 49, 64, 0.25);
  white-space: nowrap;
}
.chip::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  margin-right: 8px;
  vertical-align: 1px;
}
.chip-1 { top: 8%; right: 4%; animation: float 5s ease-in-out infinite; }
.chip-2 { bottom: 5%; left: 2%; animation: float 6s ease-in-out infinite 0.8s; }
.chip-3 { bottom: 2%; right: 12%; animation: float 5.5s ease-in-out infinite 1.6s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.deco-ring {
  position: absolute;
  top: 6%; left: 6%;
  width: 54px; height: 54px;
  border: 6px dashed var(--teal);
  border-radius: 50%;
  opacity: 0.85;
  animation: spin 22s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 回転する円形バッジ */
.rotator {
  position: absolute;
  bottom: 24%;
  left: -1%;
  width: 118px;
  height: 118px;
  animation: spin 16s linear infinite;
  filter: drop-shadow(0 6px 14px rgba(42, 49, 64, 0.18));
}
.rotator textPath {
  font-family: var(--font-num);
  font-weight: 800;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  fill: var(--ink);
}
.rotator .rotator-center {
  font-size: 26px;
  fill: var(--yellow);
  font-weight: 900;
}
.deco-dots {
  position: absolute;
  bottom: 4%; right: 0;
  width: 90px; height: 60px;
  background: radial-gradient(var(--ink) 2.2px, transparent 2.2px);
  background-size: 15px 15px;
  opacity: 0.35;
}

/* スクロール誘導 */
.scroll-cue {
  position: absolute;
  right: 34px;
  bottom: 96px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.scroll-cue span {
  writing-mode: vertical-rl;
  font-family: var(--font-num);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--ink-soft);
}
.scroll-cue i {
  display: block;
  width: 2px;
  height: 46px;
  background: rgba(42, 49, 64, 0.2);
  position: relative;
  overflow: hidden;
}
.scroll-cue i::after {
  content: "";
  position: absolute;
  top: -100%; left: 0;
  width: 100%; height: 100%;
  background: var(--yellow);
  animation: cueDrop 1.7s ease-in-out infinite;
}
@keyframes cueDrop {
  0% { top: -100%; }
  55% { top: 0; }
  100% { top: 100%; }
}

/* ティッカー（流れる帯） */
.ticker {
  background: var(--yellow);
  overflow: hidden;
  padding: 13px 0;
  transform: rotate(-1.2deg) scale(1.02);
  margin-top: 26px;
  position: relative;
  z-index: 1;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: tickerMove 30s linear infinite;
}
.ticker-track span {
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.12em;
  color: var(--ink);
  white-space: nowrap;
}
@keyframes tickerMove {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.ticker:hover .ticker-track { animation-play-state: paused; }

/* 紺色の逆方向ティッカー */
.ticker--navy {
  background: var(--ink);
  transform: rotate(1.2deg) scale(1.02);
  margin: 0;
}
.ticker--navy .ticker-track { animation-direction: reverse; }
.ticker--navy .ticker-track span { color: var(--yellow); }

/* ---------- セクション共通 ---------- */
section { scroll-margin-top: 84px; }

.numbers, .story, .services, .values, .links, .contact {
  padding: 96px 0;
}

.section-head { margin-bottom: 48px; }
.section-head .label {
  font-family: var(--font-num);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--teal);
  margin-bottom: 10px;
}
.section-head h2 {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.04em;
  background-image: linear-gradient(transparent 70%, var(--yellow) 70%, var(--yellow) 94%, transparent 94%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  padding-right: 6px;
}
.js .section-head h2 {
  background-size: 0% 100%;
  transition: background-size 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.25s;
}
.js .section-head.is-in h2 { background-size: 100% 100%; }

/* スクロール出現 */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-in { opacity: 1; transform: translateY(0); }

/* ---------- NUMBERS ---------- */
.numbers { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.num-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.num-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 24px 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.num-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.num-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 46px; height: 6px;
  background: var(--yellow);
  border-radius: 0 0 6px 0;
  transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.35s;
}
.js .num-card.reveal::before { width: 0; }
.js .num-card.reveal.is-in::before { width: 46px; }
.num {
  font-family: var(--font-num);
  font-weight: 800;
  font-size: clamp(38px, 4vw, 50px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.num .unit { font-size: 0.42em; font-weight: 900; margin-left: 4px; font-family: var(--font-jp); }
.num .rank { font-size: 0.78em; font-family: var(--font-jp); font-weight: 900; }
.num .rank .count { font-family: var(--font-num); font-size: 1.28em; }
.num-label { font-weight: 700; font-size: 14px; margin-top: 10px; line-height: 1.5; }
.num-note { color: var(--ink-soft); font-size: 12px; margin-top: 4px; }

/* ---------- STORY ---------- */
.story-lead {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
  margin-bottom: 64px;
}
.story-text p + p { margin-top: 16px; }
.story-text { font-size: 17px; }
.story-img img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.timeline {
  list-style: none;
  position: relative;
  max-width: 760px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 34px;
  top: 10px; bottom: 10px;
  width: 3px;
  background: linear-gradient(var(--yellow), var(--teal));
  border-radius: 2px;
}
.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 22px;
  padding: 0 0 44px;
}
/* タイムラインは左右交互にスライドイン */
.js .tl-item.reveal { transform: translateX(-36px); }
.js .tl-item:nth-child(even).reveal { transform: translateX(36px); }
.js .tl-item.reveal.is-in { transform: none; }
.tl-item:last-child { padding-bottom: 0; }
.tl-num {
  font-family: var(--font-num);
  font-weight: 800;
  font-size: 20px;
  width: 68px; height: 68px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--yellow);
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
}
.tl-item:nth-child(even) .tl-num { border-color: var(--teal); }
/* 番号が回転しながらポップイン */
.js .tl-item.reveal .tl-num {
  opacity: 0;
  transform: scale(0.4) rotate(-30deg);
  transition: transform 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) 0.18s, opacity 0.4s ease 0.18s;
}
.js .tl-item.reveal.is-in .tl-num {
  opacity: 1;
  transform: none;
}
.tl-body {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 30px;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.tl-body h3 { font-size: 19px; font-weight: 900; margin-bottom: 8px; }
.tl-body p { color: var(--ink-soft); font-size: 15px; }
.tl-face {
  float: right;
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 3px solid var(--yellow-soft);
  margin: 0 0 8px 14px;
  background: #fff;
}

/* ---------- SERVICES ---------- */
.services { background: #fff; border-top: 1px solid var(--line); }
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  perspective: 1000px;
}
.svc-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.svc-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.svc-card:hover {
  transform: translateY(-6px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.svc-card:hover::after { transform: scaleX(1); }
.svc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.svc-top img {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--yellow-soft);
}
.svc-num {
  font-family: var(--font-num);
  font-weight: 800;
  font-size: 40px;
  color: transparent;
  -webkit-text-stroke: 1.6px rgba(42, 49, 64, 0.28);
}
.svc-card h3 { font-size: 19px; font-weight: 900; margin-bottom: 10px; line-height: 1.5; }
.svc-card p { color: var(--ink-soft); font-size: 15px; }

/* ---------- VALUES ---------- */
.values {
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}
/* ゆっくり流れる斜めストライプ */
.values::before {
  content: "";
  position: absolute;
  inset: -50% -34px -50% 0;
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.035) 0 14px, transparent 14px 34px);
  animation: stripeShift 5s linear infinite;
  pointer-events: none;
}
@keyframes stripeShift {
  from { transform: translateX(0); }
  to { transform: translateX(-48px); }
}
.values .container { position: relative; z-index: 1; }
.values .section-head h2 { color: #fff; }
.label-on-dark { color: var(--yellow) !important; }
.val-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.val-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 28px 30px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.val-card:hover { background: rgba(255, 255, 255, 0.09); transform: translateY(-4px); }
.val-check {
  display: inline-grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 900;
  font-size: 18px;
  margin-bottom: 14px;
}
.val-card h3 { font-size: 18px; font-weight: 900; margin-bottom: 8px; }
.val-card p { color: rgba(255, 255, 255, 0.78); font-size: 15px; }

/* ---------- LINKS ---------- */
.links {
  background: var(--yellow-soft);
  border-top: 1px solid var(--line);
}
.link-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.link-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #fff;
  border: 1px solid rgba(42, 49, 64, 0.12);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.link-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--ink); }
.link-chip {
  flex: none;
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: var(--font-num);
  font-weight: 800;
  font-size: 22px;
}
.chip-x { background: var(--ink); color: #fff; }
.chip-x .x-logo { width: 22px; height: 22px; }
.chip-note { background: var(--teal); color: #fff; }
.chip-brain { background: var(--yellow); color: var(--ink); }
.chip-line { background: #06C755; color: #fff; }
.link-body { display: block; min-width: 0; }
.link-title { display: block; font-weight: 900; font-size: 16px; }
.link-desc {
  display: block;
  color: var(--ink-soft);
  font-size: 13px;
  margin-top: 3px;
  line-height: 1.6;
}
.tag-new {
  display: inline-block;
  background: var(--yellow);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 10px;
  margin-left: 8px;
  vertical-align: 2px;
}
.link-arrow {
  margin-left: auto;
  font-size: 20px;
  font-weight: 700;
  transition: transform 0.3s ease;
}
.link-card:hover .link-arrow { transform: translateX(6px); }

/* ---------- CONTACT ---------- */
.contact { padding-top: 40px; }
.contact-panel {
  background: var(--yellow);
  border-radius: 32px;
  padding: 64px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.contact-panel::before {
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}
.contact-panel::after {
  content: "";
  position: absolute;
  bottom: -80px; left: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  border: 3px solid rgba(42, 49, 64, 0.15);
}
.contact-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 4px solid #fff;
  margin: 0 auto 18px;
  position: relative;
  z-index: 1;
}
.contact-panel h2 {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 900;
  letter-spacing: 0.04em;
  position: relative;
  z-index: 1;
}
.contact-panel p {
  margin-top: 12px;
  font-weight: 500;
  position: relative;
  z-index: 1;
}
.contact-cta {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  position: relative;
  z-index: 1;
}
.contact-cta .btn-white { border-color: #fff; }
.contact-cta .btn-white:hover { border-color: var(--ink); }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.85);
  padding: 28px 0;
  font-size: 14px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-inner nav { display: flex; gap: 22px; }
.footer-inner a { position: relative; }
.footer-inner a:hover { color: var(--yellow); }

/* ==========================================================
   レスポンシブ
   ========================================================== */
@media (max-width: 900px) {
  .global-nav { display: none; }
  .header-inner { justify-content: space-between; }

  .hero { padding-top: 120px; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    min-height: 0;
  }
  .hero-visual { min-height: 340px; order: 2; }
  .num-grid { grid-template-columns: repeat(2, 1fr); }
  .story-lead { grid-template-columns: 1fr; gap: 28px; }
  .story-img { order: -1; }
  .svc-grid { grid-template-columns: 1fr; }
  .val-grid { grid-template-columns: 1fr; }
  .link-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  body { font-size: 15px; }
  .numbers, .story, .services, .values, .links, .contact { padding: 68px 0; }
  .container { padding: 0 18px; }

  .hero { padding-top: 104px; }
  .hero-title { font-size: clamp(30px, 8.6vw, 38px); }
  .hero-sub { font-size: 15px; }
  .hero-cta .btn { width: 100%; }

  .blob { width: min(300px, 96%); }
  .portrait { width: min(220px, 64%); }
  .chip { font-size: 12px; padding: 8px 14px; }
  .chip-1 { right: 0; }
  .rotator { width: 92px; height: 92px; bottom: 0; left: 0; }
  .scroll-cue { display: none; }
  .orb-yellow { width: 400px; height: 400px; }
  .orb-teal { width: 320px; height: 320px; }

  .ticker-track span { font-size: 13px; }

  .num-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .num-card { padding: 22px 16px 18px; }
  .num { font-size: 32px; }

  .tl-item { grid-template-columns: 52px 1fr; gap: 14px; }
  .tl-num { width: 52px; height: 52px; font-size: 16px; }
  .timeline::before { left: 26px; }
  .tl-body { padding: 20px 20px; }
  .tl-face { width: 56px; height: 56px; }

  .contact-panel { padding: 48px 22px; }
  .contact-cta .btn { width: 100%; }
}

/* ---------- 動きを減らす設定の尊重 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-in,
  .hero-title .line-inner.hero-in,
  .hero-visual.hero-in-4,
  .hero::before {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .marker { animation: none; background-size: 100% 100%; }
  .blob, .chip-1, .chip-2, .chip-3, .deco-ring, .rotator, .orb, .portrait { animation: none; }
  .ticker-track { animation: none; }
  .scroll-cue i::after { animation: none; }
  .values::before { animation: none; }
  .btn::after { display: none; }
  .hero-title .ch { animation: none; opacity: 1; transform: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .section-head h2 { background-size: 100% 100%; transition: none; }
  .js .num-card.reveal::before { width: 46px; transition: none; }
  .js .tl-item.reveal .tl-num { opacity: 1; transform: none; transition: none; }
  .btn, .num-card, .svc-card, .val-card, .link-card { transition: none; }
  [data-speed] { translate: none !important; }
}
