/* =========================================
   REBSAM – style.css
   カラーパレット:
     --primary   : #1a3461 (ネイビー / ロゴ)
     --secondary : #1d7a8a (ティール / バナー)
     --accent    : #c8a96e (ゴールド / アクセント)
   ========================================= */

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* アンカーリンクの固定ヘッダー分オフセット（アンカーターゲットの section のみ対象） */
section[id], .section[id], .page-hero[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pageFadeOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-8px); }
}
@keyframes btn-shimmer {
  from { transform: translateX(-100%) skewX(-15deg); }
  to   { transform: translateX(260%) skewX(-15deg); }
}
main { animation: pageFadeIn .35s ease both; }
main.page-leaving { animation: pageFadeOut .3s ease forwards; }

:root {
  --primary   : #1a3461;
  --secondary : #1d7a8a;
  --accent    : #c8a96e;
  --text      : #2c2c2c;
  --text-light: #666;
  --bg-light  : #f5f7fa;
  --bg-dark   : #0f1e38;
  --white     : #fff;
  --border    : #e0e4ec;

  --font-ja   : 'Noto Sans JP', sans-serif;
  --font-en   : 'Montserrat', sans-serif;

  --radius    : 8px;
  --shadow    : 0 4px 24px rgba(26,52,97,.10);
  --shadow-lg : 0 12px 48px rgba(26,52,97,.16);

  --container : 1140px;
  --header-h  : 72px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-ja);
  color: var(--text);
  background: var(--white);
  line-height: 1.75;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 4px;
  font-family: var(--font-ja);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .05em;
  transition: all .25s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--secondary);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.btn--primary::after {
  content: '';
  position: absolute;
  top: -10%;
  left: 0;
  width: 35%;
  height: 120%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.22), transparent);
  transform: translateX(-100%) skewX(-15deg);
  pointer-events: none;
}
.btn--primary:hover { background: #166a78; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(29,122,138,.35); }
.btn--primary:hover::after { animation: btn-shimmer .55s ease forwards; }

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.7);
}
.btn--outline:hover { background: rgba(255,255,255,.12); border-color: var(--white); }

.btn--ghost {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn--ghost:hover { background: var(--primary); color: var(--white); }

.btn--lg { padding: 18px 52px; font-size: 1rem; }

/* ---------- Section Commons ---------- */
.section { padding: 96px 0; }

.section__header { text-align: center; margin-bottom: 64px; }
.section__header--light .section__title,
.section__header--light .section__label { color: var(--white); }
.section__header--light .section__desc  { color: rgba(255,255,255,.78); }

.section__label {
  display: inline-block;
  font-family: var(--font-en);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
  position: relative;
  display: inline-block;
}
.section__title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--accent);
  margin: 16px auto 0;
  border-radius: 2px;
}

.section__desc {
  margin-top: 20px;
  font-size: .95rem;
  color: var(--text-light);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================
   SKIP NAVIGATION
   ========================================== */
/* スクリーンリーダー専用（視覚的に非表示） */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10000;
  padding: 8px 20px;
  background: var(--primary);
  color: var(--white);
  font-size: .87rem;
  font-weight: 600;
  letter-spacing: .05em;
  border-radius: 0 0 6px 6px;
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus {
  top: 0;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ==========================================
   HEADER
   ========================================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: transparent;
  transition: background .3s ease, box-shadow .3s ease, height .3s ease;
}
.header--scrolled {
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(22px) saturate(1.8);
  -webkit-backdrop-filter: blur(22px) saturate(1.8);
  border-bottom: 1px solid rgba(255,255,255,.5);
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 4px 28px rgba(0,0,0,.09);
  height: 60px;
}
.header--scrolled .logo-rebsam { color: var(--secondary); }
.header--scrolled .logo-sub    { color: var(--secondary); letter-spacing: .28em; }
.header--scrolled .nav__link   { color: var(--text); }
.header--scrolled .nav__link:hover { color: var(--secondary); }
.header--scrolled .nav__link--cta  { color: var(--white) !important; }
.header--scrolled .nav-toggle span { background: var(--primary); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  line-height: 1;
}
.header__logo:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}
/* スクロール後の白背景でアクセントカラーがコントラスト不足になるため primary に切り替え */
.header--scrolled .header__logo:focus-visible {
  outline-color: var(--primary);
}
.logo-img {
  height: 34px;
  width: 34px;
  object-fit: contain;
  overflow: hidden;
  transform: scale(1.38);
  transition: transform .3s;
  filter: brightness(0) saturate(100%) invert(40%) sepia(73%) saturate(430%) hue-rotate(148deg) brightness(92%);
}
.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding-top: 5px;
}
.logo-rebsam {
  font-family: var(--font-en);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: .10em;
  line-height: 1;
  transition: color .3s;
}
.logo-sub {
  font-family: var(--font-en);
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .28em;
  color: rgba(255,255,255,.85);
  line-height: 1;
  transition: color .3s;
}

/* NAV */
.nav__list {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav__link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.header--scrolled .nav__link:focus-visible {
  outline-color: var(--primary);
}

.nav__link {
  font-size: .875rem;
  font-weight: 500;
  color: rgba(255,255,255,.88);
  padding: 8px 14px;
  border-radius: 4px;
  transition: color .2s, background .2s;
  letter-spacing: .03em;
}
.nav__link:hover { color: var(--white); background: rgba(255,255,255,.1); }
.nav__link--cta {
  background: var(--secondary);
  color: var(--white) !important;
  padding: 10px 20px;
}
.nav__link--cta:hover { background: #166a78; }

/* 現在ページ強調 */
.nav__link--active {
  color: var(--accent) !important;
  position: relative;
}
.nav__link--active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 14px;
  right: 14px;
  height: 1.5px;
  background: var(--accent);
  border-radius: 1px;
}
.header--scrolled .nav__link--active { color: var(--accent) !important; }

/* Nav overlay (mobile) */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 99;
}
@media (max-width: 768px) {
  .nav-overlay.is-visible { display: block; }
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px 4px;
  z-index: 110;
  border-radius: 6px;
  transition: background .25s ease;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s ease, opacity .2s ease, background .25s ease;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.header--scrolled .nav-toggle:focus-visible {
  outline-color: var(--primary);
}

/* 閉じるボタン（×）スタイル */
.nav-toggle.is-open {
  background: rgba(255,255,255,0.18);
}
.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================
   HERO
   ========================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('images/Hero-bg.jpg') center 30% / cover no-repeat;
  overflow: hidden;
  text-align: center;
}

/* グレインテクスチャ */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.035;
  pointer-events: none;
  z-index: 0;
}

/* グラデーションオーバーレイ */
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(4, 10, 28, .72)  0%,
      rgba(4, 10, 28, .58) 30%,
      rgba(4, 10, 28, .45) 55%,
      rgba(4,  9, 24, .60) 75%,
      rgba(3,  7, 20, .88) 90%,
      rgba(3,  7, 20, 1.0) 100%
    );
}
/* 中央に向けた微細な光彩 */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 55% at 50% 38%,
    rgba(29,122,138,.10) 0%,
    transparent 68%
  );
  pointer-events: none;
}

/* コンテンツ: 中央揃え縦積み */
.hero__content {
  position: relative;
  z-index: 1;
  padding-top: var(--header-h);
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 820px;
}

/* ---- ロゴ ---- */
.hero__logo-block {
  margin-bottom: 24px;
}
.hero__logo-img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  filter: invert(1) grayscale(1) brightness(1.5);
  mix-blend-mode: screen;
}

/* ---- REBSAM ---- */
.hero__brand {
  font-family: var(--font-en);
  font-size: clamp(4rem, 10vw, 7.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  letter-spacing: .18em;
  margin-bottom: 14px;
  text-shadow: 0 2px 40px rgba(0,0,0,.45);
}

/* ---- FUTURE GROWTH ---- */
.hero__tagline {
  font-family: var(--font-en);
  font-size: clamp(.7rem, 1.4vw, .88rem);
  font-weight: 600;
  letter-spacing: .45em;
  color: rgba(255,255,255,.52);
  text-transform: uppercase;
  margin-bottom: 30px;
}

/* ---- ゴールドの仕切り線 ---- */
.hero__rule {
  width: 40px;
  height: 1.5px;
  background: var(--accent);
  border-radius: 2px;
  margin: 0 auto 28px;
}

/* ---- ミッション（日本語大見出し） ---- */
.hero__mission {
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  font-weight: 600;
  color: rgba(255,255,255,.93);
  letter-spacing: .07em;
  line-height: 1.6;
  margin-bottom: 16px;
}

/* ---- サブテキスト ---- */
.hero__desc {
  font-size: clamp(.82rem, 1.4vw, .95rem);
  color: rgba(255,255,255,.55);
  line-height: 2;
  margin-bottom: 48px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* ---- スクロールライン ---- */
.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
}
.hero__scroll-label {
  font-family: var(--font-en);
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .3em;
  color: rgba(255,255,255,.45);
  animation: scrollFade 2.4s ease-in-out infinite;
}
.hero__scroll-line {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(200,169,110,.6), rgba(200,169,110,0));
  animation: scrollLine 2.4s ease-in-out infinite;
}
.hero__scroll-dot {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: scrollDot 2.4s ease-in-out infinite;
}
@keyframes scrollLine {
  0%,100% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  30%      { transform: scaleY(1); transform-origin: top; opacity: 1; }
  70%      { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  99%      { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}
@keyframes scrollDot {
  0%,30% { transform: translateY(-6px); opacity: 0; }
  60%    { transform: translateY(0);    opacity: 1; }
  100%   { transform: translateY(6px);  opacity: 0; }
}
@keyframes scrollFade {
  0%,100% { opacity: .25; }
  50%     { opacity: .6;  }
}

.br-pc { display: inline; }

/* ==========================================
   ABOUT
   ========================================== */
.about { background: var(--white); overflow: hidden; position: relative; }

/* 薄いグリッド背景（index.html の About セクションのみ） */
.about:not(.about--page)::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26,52,97,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,52,97,.025) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
}

.about__bg-text {
  position: absolute;
  top: -10px;
  right: -24px;
  font-family: var(--font-en);
  font-size: clamp(100px, 18vw, 210px);
  font-weight: 800;
  color: rgba(4,12,30,.03);
  letter-spacing: -0.05em;
  line-height: 1;
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}

.about__hd {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  margin-bottom: 72px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
}

.about__main-title {
  font-family: var(--font-en);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.0;
  letter-spacing: -0.04em;
  flex-shrink: 0;
}

.about__hd-bar {
  width: 1px;
  height: 80px;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 8px;
}

.about__hd-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 4px;
}

.about__tagline {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.75;
}

.about__sub-text {
  font-size: .9rem;
  color: var(--text-light);
  line-height: 1.9;
  max-width: 460px;
}

/* Goals grid */
.about__goals-label {
  font-family: var(--font-ja);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .15em;
  color: var(--accent);
  margin-bottom: 24px;
}

.about__goals {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 64px;
  list-style: none;
  padding: 0;
}

.about__goal {
  padding: 36px 48px 36px 0;
  border-top: 1px solid var(--border);
  position: relative;
}

.about__goal:nth-child(even) {
  padding-left: 48px;
  padding-right: 0;
  border-left: 1px solid var(--border);
}

.about__goal::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 36px;
  height: 2px;
  background: var(--accent);
}

.about__goal:nth-child(even)::before {
  left: 48px;
}

.about__goal-num {
  display: block;
  font-family: var(--font-en);
  font-size: 4rem;
  font-weight: 800;
  color: rgba(4,12,30,.06);
  line-height: 1;
  letter-spacing: -0.05em;
  margin-bottom: 16px;
}

.about__goal-text {
  font-size: .925rem;
  color: var(--text);
  line-height: 1.85;
}

.about__text {
  font-size: .95rem;
  color: var(--text-light);
  line-height: 1.9;
  margin-bottom: 36px;
}

.about__pillars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.about__pillars li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: var(--bg-light);
  border-left: 3px solid var(--primary);
  border-radius: 0 8px 8px 0;
}
.pillar__icon { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; flex-shrink: 0; }
.pillar__icon img { width: 100%; height: 100%; object-fit: contain; }
.pillar__label { display: flex; flex-direction: column; gap: 3px; }
.pillar__label strong { font-size: .9rem; font-weight: 700; color: var(--primary); line-height: 1; }
.pillar__label [lang] { font-family: var(--font-en); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-light); }

/* Table */
.about__table { width: 100%; border-collapse: collapse; }
.about__table th,
.about__table td {
  padding: 14px 16px;
  font-size: .9rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  text-align: left;
}
.about__table th {
  width: 36%;
  color: var(--text-light);
  font-weight: 500;
  white-space: nowrap;
}
.about__table td { color: var(--text); line-height: 1.8; }
.about__table tr:first-child th,
.about__table tr:first-child td { border-top: 2px solid var(--primary); }

/* ==========================================
   SERVICE
   ========================================== */
.service {
  background: linear-gradient(
    135deg,
    #07111f 0%,
    #0c1c38 28%,
    #0f2244 55%,
    #091a34 78%,
    #060f1e 100%
  );
  position: relative;
}

/* 対角ストライプテクスチャ */
.service::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -55deg,
    transparent 0,
    transparent 48px,
    rgba(255,255,255,.022) 48px,
    rgba(255,255,255,.022) 49px
  );
  pointer-events: none;
}

/* ページ中央の微細なグロー */
.service::after {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 50%;
  background: radial-gradient(
    ellipse at 50% 0%,
    rgba(29,122,138,.10) 0%,
    transparent 65%
  );
  pointer-events: none;
}

.service .section__label { color: var(--accent); }
.service .section__title { color: var(--white); }
.service .section__title::after { background: var(--accent); }

/* 疑似要素の上にコンテンツを重ねる */
.service > .container { position: relative; z-index: 1; }

/* ---- サービスブロック ---- */
.sv-block { margin-bottom: 64px; }
.sv-block:last-child { margin-bottom: 0; }

.sv-block__head {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 18px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.sv-block__num {
  font-family: var(--font-en);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1;
  letter-spacing: -0.04em;
  opacity: .55;
}
.sv-block__num--alt { color: var(--accent); }
.sv-block__name {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: .04em;
}
.sv-block__name--alt { color: var(--accent); }

/* ---- サービス行 ---- */
.sv-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
  padding: 32px 20px 32px 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  border-radius: 0 6px 6px 0;
  transition: background .25s ease, box-shadow .25s ease, transform .25s ease;
}
.sv-row:last-child { border-bottom: none; }
.sv-row:hover {
  background: rgba(255,255,255,.055);
  box-shadow: inset 3px 0 0 var(--accent), 6px 0 28px rgba(200,169,110,.08);
  transform: translateX(6px);
}

.sv-row__meta {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sv-row__icon {
  width: 36px;
  height: 36px;
  color: var(--secondary);
  flex-shrink: 0;
  transition: color .25s ease, transform .25s ease;
}
.sv-row--alt .sv-row__icon { color: var(--accent); }
.sv-row:hover .sv-row__icon { color: var(--accent); transform: scale(1.1); }
.sv-row--alt:hover .sv-row__icon { color: #e8d09a; }
.sv-row__title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.6;
  transition: color .25s ease;
}
.sv-row:hover .sv-row__title { color: var(--accent); }

.sv-row__bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 4px;
}
.sv-row__bullets li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: .875rem;
  color: rgba(255,255,255,.68);
  line-height: 1.8;
}
.sv-row__bullets li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--secondary);
  flex-shrink: 0;
  margin-top: 9px;
}
.sv-row__bullets--alt li::before { background: var(--accent); }

.sv-contact-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 72px;
  padding: 36px 48px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 4px;
}

.sv-contact-cta__text {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,.8);
  line-height: 1.6;
}

/* ==========================================
   TEAM
   ========================================== */
.team {
  background:
    url('images/team-bg.jpg') center center / cover no-repeat;
  position: relative;
  overflow: hidden;
}
.team::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(4, 12, 30, .72);
  pointer-events: none;
}
.team.section { padding: 160px 0; }

/* 背景装飾テキスト */
.team__bg-text {
  position: absolute;
  bottom: -0.1em;
  right: -0.04em;
  font-family: var(--font-en);
  font-size: clamp(120px, 18vw, 260px);
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.045);
  letter-spacing: -0.02em;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* 2カラムレイアウト */
.team-hero {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* 左：テキストエリア */
.team-hero__overline {
  font-family: var(--font-en);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .45em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.team-hero__overline::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.team-hero__title {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: 36px;
  letter-spacing: -0.01em;
}
.team-hero__title .accent {
  color: var(--accent);
}

.team-hero__divider {
  width: 60px;
  height: 1.5px;
  background: rgba(255,255,255,.28);
  margin-bottom: 32px;
}

.team-hero__desc {
  font-size: clamp(.88rem, 1.4vw, .97rem);
  color: rgba(255,255,255,.68);
  line-height: 2;
  margin-bottom: 44px;
}

.team-hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-en);
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.3);
  transition: color .3s, border-color .3s, gap .35s ease;
}
.team-hero__btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  gap: 20px;
}
.team-hero__btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* 右：統計エリア */
.team-hero__stats {
  display: flex;
  flex-direction: column;
  gap: 44px;
  padding-left: 56px;
  border-left: 1px solid rgba(255,255,255,.1);
}

.team-hero__stat-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 6px;
  white-space: nowrap;
}
.team-hero__stat-num {
  font-family: var(--font-en);
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.03em;
}
.team-hero__stat-suffix {
  font-family: var(--font-en);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
}
.team-hero__stat-label {
  display: block;
  font-family: var(--font-en);
  font-size: .58rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.62);
}

/* スクロール連動アニメーション */
@keyframes teamFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.js-enabled .js-reveal { opacity: 0; }
.js-reveal.is-visible {
  animation: teamFadeUp .75s cubic-bezier(.22, 1, .36, 1) forwards;
  animation-delay: var(--delay, 0s);
}

.team__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* --- カード本体 --- */
.team-card {
  display: flex;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.09);
  border-left: 3px solid var(--accent);
  transition: background .35s ease, box-shadow .35s ease, transform .35s ease;
}
.team-card:hover {
  background: rgba(255,255,255,.08);
  box-shadow:
    0 24px 64px rgba(0,0,0,.45),
    0 0 0 1px rgba(200,169,110,.20),
    0 8px 40px rgba(200,169,110,.10);
  transform: translateY(-6px);
}

/* パネル①: 写真 */
.team-card__media {
  width: 148px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}
.team-card__photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  object-position: center 12%;
  filter: brightness(.92) grayscale(.2);
  transition: filter .45s ease, transform .45s ease;
}
.team-card:hover .team-card__photo {
  filter: brightness(1) grayscale(0);
  transform: scale(1.04);
}

/* パネル②: 氏名・役職 */
.team-card__identity {
  width: 196px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px 26px;
  border-right: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.025);
}
.team-card__role {
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--secondary);
  line-height: 1.75;
  margin-bottom: 12px;
}
.team-card__name {
  font-size: 1.48rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 9px;
  letter-spacing: .01em;
}
.team-card__kana {
  font-family: var(--font-en);
  font-size: .6rem;
  font-weight: 400;
  color: rgba(255,255,255,.35);
  letter-spacing: .22em;
}
.team-card__accent {
  width: 22px;
  height: 1.5px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: 18px;
  transition: width .35s ease;
}
.team-card:hover .team-card__accent { width: 40px; }

/* パネル③: 経歴 */
.team-card__career-wrap {
  flex: 1;
  padding: 26px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.team-card__career-label {
  font-family: var(--font-en);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(255,255,255,.28);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.team-card__career { display: flex; flex-direction: column; }
.team-card__career li {
  display: flex;
  gap: 16px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,.055);
  align-items: baseline;
}
.team-card__career li:last-child { border-bottom: none; padding-bottom: 0; }
.career__year {
  font-family: var(--font-en);
  font-size: .66rem;
  font-weight: 700;
  color: var(--secondary);
  white-space: nowrap;
  min-width: 34px;
  letter-spacing: .04em;
  flex-shrink: 0;
}
.career__text {
  font-size: .8rem;
  color: rgba(255,255,255,.62);
  line-height: 1.68;
}

/* ==========================================
   NEWS
   ========================================== */
.news { background: var(--white); }

.news__list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
  margin-bottom: 48px;
}

.news-item {
  display: flex;
  align-items: baseline;
  gap: 20px;
  border-left: 3px solid transparent;
  padding: 22px 0 22px 16px;
  border-bottom: 1px solid var(--border);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.news-item:hover {
  border-left-color: var(--accent);
  background: var(--bg-light);
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
}

.news-item__date {
  font-family: var(--font-en);
  font-size: .82rem;
  color: var(--text-light);
  white-space: nowrap;
  min-width: 88px;
}
.news-item__tag {
  font-size: .72rem;
  font-weight: 600;
  color: var(--secondary);
  background: rgba(29,122,138,.1);
  padding: 3px 10px;
  border-radius: 3px;
  white-space: nowrap;
}
.news-item__title {
  font-size: .95rem;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  transition: color .2s;
  flex: 1;
}
.news-item__title:hover { color: var(--secondary); }
.news-item__title:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.news__more,
.section__more { text-align: center; margin-top: 48px; }

/* ==========================================
   CONTACT
   ========================================== */
.contact {
  background: linear-gradient(135deg, var(--primary) 0%, #0e2244 60%, var(--bg-dark) 100%);
}
.contact .section__label { color: var(--accent); }

.contact__inner {
  max-width: 760px;
  margin: 0 auto;
}

.contact__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group--full { grid-column: 1 / -1; }
.form-group--check { align-items: flex-start; }
.form-group--submit { align-items: center; margin-top: 8px; }

.form-label {
  font-size: .85rem;
  font-weight: 600;
  color: rgba(255,255,255,.88);
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-required {
  font-size: .7rem;
  background: #b91c1c;
  color: #fff;
  padding: 2px 7px;
  border-radius: 3px;
  font-weight: 600;
}

.form-input {
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1.5px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  color: var(--white);
  font-family: var(--font-ja);
  font-size: .9rem;
  transition: border-color .2s, background .2s;
}
.form-input::placeholder { color: rgba(255,255,255,.35); }
.form-input:focus { border-color: var(--secondary); background: rgba(255,255,255,.12); outline: none; }
.form-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,.5)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}
.form-select option { background: var(--primary); color: var(--white); }

.form-textarea { resize: vertical; min-height: 150px; }

/* Custom checkbox */
.form-check {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.form-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.form-check__box {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 1.5px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.08);
  flex-shrink: 0;
  transition: all .2s;
  position: relative;
}
.form-check input:checked ~ .form-check__box {
  background: var(--secondary);
  border-color: var(--secondary);
}
.form-check input:checked ~ .form-check__box::after {
  content: '';
  position: absolute;
  left: 5px; top: 2px;
  width: 7px; height: 11px;
  border: 2px solid #fff;
  border-top: none; border-left: none;
  transform: rotate(45deg);
}
.form-check input:focus-visible ~ .form-check__box {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.form-check__label {
  font-size: .85rem;
  color: rgba(255,255,255,.75);
}
.form-link { color: var(--accent); text-decoration: underline; }
.form-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

/* バリデーション */
.form-input--error { border-color: #ff7070 !important; background: rgba(224,85,85,.08) !important; }
.form-error { display: block; color: #f08080; font-size: .76rem; margin-top: 6px; line-height: 1.5; }


/* ==========================================
   FOOTER
   ========================================== */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,.7);
  border-top: 1px solid rgba(255,255,255,.08);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  padding-top: 40px;
  padding-bottom: 48px;
}

.footer__brand { display: flex; flex-direction: column; gap: 4px; }
.footer__logo-wrap {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 16px;
}
.footer__logo-wrap > div {
  padding-top: 4px;
}
.footer__logo-img {
  height: 44px;
  width: 44px;
  object-fit: contain;
  filter: invert(1) grayscale(1) brightness(1.5);
  mix-blend-mode: screen;
}
.footer__logo-rebsam {
  display: block;
  font-family: var(--font-en);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: .10em;
  line-height: 1;
}
.footer__logo-sub {
  display: block;
  font-family: var(--font-en);
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .28em;
  color: rgba(255,255,255,.7);
  margin-top: 3px;
}
.footer__address {
  font-size: .82rem;
  font-style: normal;
  line-height: 1.9;
  color: rgba(255,255,255,.6);
}
.footer__email {
  display: inline-block;
  margin-top: 8px;
  font-size: .82rem;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: color .2s;
}
.footer__email:hover { color: var(--accent); }
.footer__email:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.footer__nav-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}
.footer__nav-list a {
  font-size: .87rem;
  color: rgba(255,255,255,.6);
  transition: color .2s;
}
.footer__nav-list a:hover { color: var(--accent); }
.footer__nav-list a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 24px;
  text-align: center;
}
.footer__copy { font-size: .78rem; color: rgba(255,255,255,.55); letter-spacing: .05em; }

/* ==========================================
   MAP (about page inline)
   ========================================== */
.about__layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}
.about__right {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.about__map-wrap {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 48px;
}
.about__team-photo {
  flex: 1 1 0;
  min-width: 0;
}
.about__team-photo img {
  width: 100%;
  height: auto;
  display: block;
}
.about__map-wrap .about__map {
  flex: 1 1 0;
  min-width: 0;
}
.about__map-wrap .about__map iframe {
  width: 100%;
  height: 420px;
  display: block;
  border: 0;
  border-radius: 4px;
}
.about__map iframe {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
  border-radius: 4px;
}

/* ==========================================
   SCROLL PROGRESS BAR
   ========================================== */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent) 0%, #e8d09a 100%);
  z-index: 9999;
  transition: width .08s linear;
  pointer-events: none;
}

/* ==========================================
   BACK TO TOP
   ========================================== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 800;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease, background .2s ease;
  pointer-events: none;
  box-shadow: 0 4px 20px rgba(0,0,0,.22);
}
.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover { background: var(--secondary); }
.back-to-top:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 768px) {
  .back-to-top { bottom: 96px; right: 16px; background: rgba(26,52,97,.75); backdrop-filter: blur(6px); }
  .back-to-top:hover { background: rgba(29,122,138,.80); }
}

/* ==========================================
   MOBILE FIXED CTA
   ========================================== */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  padding: 12px 20px;
  background: rgba(4,12,30,.92);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,.08);
  transform: translateY(0);
  transition: transform .3s ease, opacity .3s ease;
}
.mobile-cta--hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.mobile-cta__btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px;
  background: var(--accent);
  color: var(--primary);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .08em;
  border-radius: 4px;
  text-decoration: none;
  transition: opacity .2s;
}
.mobile-cta__btn:hover { opacity: .85; }
.mobile-cta__btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

@media (max-width: 768px) {
  .mobile-cta { display: block; }
  body { padding-bottom: 76px; }
}

/* ==========================================
   RESPONSIVE – Tablet (≤ 1024px)
   ========================================== */
@media (max-width: 1024px) {
  .about__hd { gap: 28px; }
  .about__layout { grid-template-columns: 1fr; gap: 48px; }
  .about__map-wrap { flex-direction: column; gap: 24px; }
  .about__team-photo { flex: 0 0 auto; width: 100%; max-width: 460px; margin: 0 auto; }
  .about__map iframe { height: 240px; }
  .about__table-wrap { order: -1; }
  .team-card__media    { width: 120px; }
  .team-card__identity { width: 170px; padding: 24px 20px; }
  .team-card__career-wrap { padding: 22px 22px; }
  .team-hero { grid-template-columns: 1fr 200px; gap: 48px; }
  .team-hero__stats { padding-left: 36px; gap: 32px; }
}

/* ==========================================
   RESPONSIVE – Mobile (≤ 768px)
   ========================================== */
@media (max-width: 768px) {
  :root { --header-h: 60px; }

  /* モバイルでは backdrop-filter が fixed な .nav パネルに干渉するため無効化 */
  .header--scrolled {
    background: rgba(255,255,255,.97);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid rgba(0,0,0,.07);
    box-shadow: 0 2px 16px rgba(0,0,0,.08);
  }

  .section { padding: 72px 0; }
  .section__header { margin-bottom: 48px; }

  /* Header & Nav */
  .nav-toggle { display: flex; }

  .nav {
    position: fixed;
    top: 0; right: 0;
    width: 75vw;
    max-width: 320px;
    height: 100%;
    background: var(--primary);
    padding: calc(var(--header-h) + 24px) 32px 48px;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    box-shadow: -8px 0 40px rgba(0,0,0,.3);
    z-index: 100;
  }
  .nav.is-open { transform: translateX(0); }

  .nav__list { flex-direction: column; align-items: flex-start; gap: 4px; }
  .nav__link { color: rgba(255,255,255,.88) !important; font-size: 1rem; padding: 12px 0; display: block; width: 100%; }
  .nav__link--cta { background: var(--secondary); padding: 12px 20px; border-radius: 4px; margin-top: 16px; }
  .nav__link--active::after { display: none; }
  .nav__link--active { border-left: 2px solid var(--accent); padding-left: 12px; }

  /* Hero */
  .hero { min-height: 100svh; }
  .hero__content { padding-top: calc(var(--header-h) + 16px); }
  .hero__title--main { font-size: clamp(2.8rem, 12vw, 4rem); }
  .br-pc { display: none; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .hero__actions .btn { width: 100%; max-width: 260px; }

  /* About */
  .about__hd { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 48px; padding-bottom: 36px; }
  .about__hd-bar { width: 48px; height: 2px; }
  .about__pillars { gap: 10px; }
  .about__goals { grid-template-columns: 1fr; }
  .about__goal:nth-child(even) { padding-left: 0; border-left: none; }
  .about__goal:nth-child(even)::before { left: 0; }

  /* Service */
  .sv-row { grid-template-columns: 1fr; gap: 16px; padding: 28px 16px 28px 12px; }
  .sv-row:hover { transform: translateX(3px); }
  .sv-contact-cta { flex-direction: column; align-items: flex-start; padding: 28px 24px; gap: 20px; }
  .sv-contact-cta .btn { width: 100%; text-align: center; }

  /* Team: モバイルで縦積み */
  .team-card {
    flex-direction: column;
    border-left: none;
    border-top: 3px solid var(--accent);
  }
  .team-card__media    { width: 100%; }
  .team-card__photo    { min-height: 200px; object-position: center 15%; }
  .team-card__identity {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding: 22px 24px 18px;
    background: rgba(255,255,255,.03);
  }
  .team-card__career-wrap { padding: 18px 24px 26px; }
  .team.section { padding: 100px 0; }
  .team-hero { grid-template-columns: 1fr; }
  .team-hero__stats {
    flex-direction: row;
    justify-content: space-around;
    padding-left: 0;
    border-left: none;
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 40px;
    margin-top: 48px;
  }
  .team-hero__stat-num { font-size: 2.2rem; }

  /* News */
  .news-item {
    flex-wrap: wrap;
    gap: 8px 14px;
  }
  .news-item__title { width: 100%; }

  /* Contact */
  .contact__form { grid-template-columns: 1fr; }
  .form-group--full { grid-column: 1; }

  /* Footer */
  .footer__inner { flex-direction: column; gap: 36px; padding-top: 52px; }
  .footer__nav-list { flex-direction: row; flex-wrap: wrap; gap: 12px 24px; }
}

/* ==========================================
   RESPONSIVE – Small Mobile (≤ 480px)
   ========================================== */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero__scroll { display: none; }
  .about__table th { width: 42%; font-size: .82rem; }
  .about__table td { font-size: .82rem; }
  .team-card__name { font-size: 1.35rem; }
  .footer__inner { padding-top: 36px; padding-bottom: 28px; }
}

/* ==========================================
   ABOUT PAGE  (about.html)
   ========================================== */
.about--page { background: var(--bg-light); }

/* 戻るボタンエリア（about.html） */
.page-back-section {
  padding: 64px 0;
  background: var(--bg-light);
  text-align: center;
}

/* 取引実績セクション */
.track-record { background: var(--white); }

.track-record__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.track-record__sub {
  font-size: 1rem;
  font-weight: 700;
  color: var(--secondary);
  letter-spacing: .06em;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--secondary);
}

/* 案件実績テーブル */
.table-wrap { overflow-x: auto; }
.track-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.track-table thead tr {
  background: var(--primary);
  color: var(--white);
}
.track-table th {
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  letter-spacing: .05em;
  white-space: nowrap;
}
.track-table td {
  padding: 11px 14px;
  color: var(--text);
  border-bottom: 1px solid rgba(0,0,0,.07);
  vertical-align: middle;
}
.track-table tbody tr:hover { background: var(--bg-light); }
.track-table td:first-child { font-weight: 600; color: var(--primary); white-space: nowrap; }
.track-table td:nth-child(2) {
  white-space: nowrap;
  font-family: var(--font-en);
  font-weight: 600;
  color: var(--secondary);
}

/* 業務委託先リスト */
.client-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.client-list li {
  padding: 11px 0;
  font-size: .9rem;
  color: var(--text);
  border-bottom: 1px solid rgba(0,0,0,.07);
  display: flex;
  align-items: center;
  gap: 10px;
}
.client-list li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .track-record__grid { grid-template-columns: 1fr; gap: 40px; }
}


/* ==========================================
   TEAM PAGE  (team.html)
   ========================================== */
.team--page {
  background: var(--bg-light);
}
.team--page::before { display: none; }
.team--page .team-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,.07);
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
}
.team--page .team-card:hover {
  box-shadow: 0 6px 32px rgba(0,0,0,.10);
}
.team--page .team-card__photo { filter: none; }
.team--page .team-card:hover .team-card__photo { filter: none; }
.team--page .team-card__role  { color: var(--secondary); }
.team--page .team-card__name  { color: var(--text); }
.team--page .team-card__kana  { color: var(--text-light); }
.team--page .team-card__career-label { color: var(--text-light); border-color: rgba(0,0,0,.12); }
.team--page .career__year  { color: var(--accent); }
.team--page .career__text  { color: var(--text-light); }

/* ==========================================
   NEWS PAGE  (news.html)
   ========================================== */

/* ---- ページヒーロー ---- */
.page-hero {
  background: var(--primary);
  padding: calc(var(--header-h) + 48px) 0 48px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.03;
  pointer-events: none;
}
.page-hero__inner { text-align: center; }
.page-hero__en {
  font-family: var(--font-en);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .3em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.page-hero__title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
}

/* ---- パンくず ---- */
.breadcrumb__list {
  display: flex;
  justify-content: center;
  gap: 0;
  list-style: none;
  font-size: .8rem;
  color: rgba(255,255,255,.55);
}
.breadcrumb__list li + li::before { content: '›' / ''; margin: 0 8px; }
.breadcrumb__list a { color: rgba(255,255,255,.7); text-decoration: none; }
.breadcrumb__list a:hover { color: var(--white); }
.breadcrumb__list a:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; border-radius: 2px; }

/* ---- ニュース一覧ページ ---- */
.news-page { background: var(--bg-light); }
.news-page__wrap { max-width: 820px; }

.news-page__list { display: flex; flex-direction: column; gap: 1px; }
.news-empty {
  text-align: center;
  color: rgba(0,0,0,.55);
  padding: 56px 0;
  font-size: .9rem;
  letter-spacing: .1em;
}

.news-card {
  display: grid;
  grid-template-columns: 120px 100px 1fr;
  align-items: start;
  gap: 0 20px;
  background: var(--white);
  padding: 28px 32px;
  border-left: 3px solid transparent;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.news-card:hover {
  border-left-color: var(--accent);
  box-shadow: 4px 0 20px rgba(200,169,110,.07), 0 4px 20px rgba(0,0,0,.08);
  transform: translateX(4px);
}

.news-card__date {
  font-family: var(--font-en);
  font-size: .85rem;
  color: var(--text-light);
  padding-top: 2px;
  white-space: nowrap;
}
.news-card__tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 3px 10px;
  border: 1px solid var(--secondary);
  color: var(--secondary);
  border-radius: 2px;
  align-self: center;
  justify-self: center;
  white-space: nowrap;
}
.news-card__body { grid-column: 3; }
.news-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.6;
}
.news-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}
.news-card__title a:hover { color: var(--primary); }
.news-card__text {
  font-size: .875rem;
  color: var(--text-light);
  line-height: 1.85;
}

/* フィルターバー */
.news-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 36px;
}
.news-filter__btn {
  font-family: var(--font-ja);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .06em;
  padding: 7px 18px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  color: var(--text-light);
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.news-filter__btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.news-filter__btn.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}
.news-filter__btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* 記事詳細ページ */
.news-detail {
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 2rem;
}
.news-detail__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.25rem;
}
.news-detail__date {
  font-family: var(--font-en);
  font-size: .85rem;
  color: var(--text-light);
  letter-spacing: .04em;
}
.news-detail__tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 3px 10px;
  border-radius: 3px;
  background: var(--primary);
  color: var(--white);
}
.news-detail__title {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 700;
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.news-detail__body {
  font-size: .95rem;
  line-height: 2;
  color: var(--text);
}
.news-detail__body p { margin-bottom: 1.5rem; }
.news-detail__body a {
  color: var(--primary);
  text-decoration: underline;
  word-break: break-all;
}
.news-detail__body a:hover { opacity: .75; }

/* フィルター非表示 */
.news-card.is-hidden {
  display: none;
}


/* ==========================================
   HISTORY TIMELINE  (about.html)
   ========================================== */
.history { background: var(--bg-dark); }
.history .section__label { color: rgba(200,169,110,.7); }
.history .section__title { color: var(--white); }

.timeline {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding-left: 32px;
}
/* 縦ライン */
.timeline::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 0;
  left: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), rgba(200,169,110,.15));
}

.timeline__item {
  position: relative;
  padding: 0 0 48px 36px;
}
.timeline__item:last-child { padding-bottom: 0; }

/* ドット */
.timeline__item::before {
  content: '';
  position: absolute;
  top: 6px;
  left: -5px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(200,169,110,.2);
}

.timeline__date {
  display: block;
  font-family: var(--font-en);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--accent);
  margin-bottom: 6px;
}
.timeline__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.5;
  margin-bottom: 6px;
}
.timeline__text {
  font-size: .83rem;
  color: rgba(255,255,255,.58);
  line-height: 1.85;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .timeline { padding-left: 24px; }
  .timeline__item { padding-left: 28px; padding-bottom: 36px; }

  .news-card {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto auto;
    gap: 8px 12px;
    padding: 20px;
  }
  .news-card__date { grid-column: 1; grid-row: 1; }
  .news-card__tag  { grid-column: 2; grid-row: 1; }
  .news-card__body { grid-column: 1 / -1; grid-row: 2; }
}

/* ==========================================
   PRIVACY PAGE
   ========================================== */
.privacy { background: var(--bg-light); }
.privacy__body {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 56px 64px;
  box-shadow: var(--shadow);
}
.privacy__lead {
  font-size: .92rem;
  color: var(--text-light);
  line-height: 2;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.privacy__section {
  margin-bottom: 44px;
}
.privacy__section:last-child { margin-bottom: 0; }
.privacy__h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  border-left: 3px solid var(--accent);
  padding-left: 12px;
  margin-bottom: 18px;
  line-height: 1.5;
}
.privacy__h3 {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  margin: 16px 0 10px;
}
.privacy__p {
  font-size: .88rem;
  color: var(--text-light);
  line-height: 2;
  margin-bottom: 12px;
}
.privacy__ol {
  list-style: none;
  padding: 0;
  margin: 8px 0 0 0;
}
.privacy__ol li {
  font-size: .88rem;
  color: var(--text-light);
  line-height: 1.9;
  padding-left: 2em;
  position: relative;
  margin-bottom: 4px;
}
.privacy__ol li::before {
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}
.privacy__ol--num li:nth-child(1)::before  { content: '①'; }
.privacy__ol--num li:nth-child(2)::before  { content: '②'; }
.privacy__ol--num li:nth-child(3)::before  { content: '③'; }
.privacy__ol--num li:nth-child(4)::before  { content: '④'; }
.privacy__ol--num li:nth-child(5)::before  { content: '⑤'; }
.privacy__ol--num li:nth-child(6)::before  { content: '⑥'; }
.privacy__ol--num li:nth-child(7)::before  { content: '⑦'; }
.privacy__ol--num li:nth-child(8)::before  { content: '⑧'; }
.privacy__ol--num li:nth-child(9)::before  { content: '⑨'; }
.privacy__ol--num li:nth-child(10)::before { content: '⑩'; }
.privacy__contact-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
  margin-top: 16px;
}
.privacy__contact-table tr {
  border-bottom: 1px solid var(--border);
}
.privacy__contact-table th {
  text-align: left;
  font-weight: 500;
  color: var(--text-light);
  padding: 10px 16px 10px 0;
  white-space: nowrap;
  width: 120px;
}
.privacy__contact-table td {
  color: var(--text);
  padding: 10px 0;
}
.privacy__contact-table a {
  color: var(--secondary);
  text-decoration: none;
}
.privacy__contact-table a:hover { text-decoration: underline; }
.privacy__contact-table a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

@media (max-width: 768px) {
  .privacy__body { padding: 32px 24px; }
}

/* ==========================================
   PREFERS-REDUCED-MOTION
   ========================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
  .js-reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
  .btn--primary:hover::after { animation: none; }
  .news-card:hover { transform: none; }
  .team-card:hover { transform: none; }
}

/* ==========================================
   iOS SAFE AREA
   ========================================== */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .mobile-cta { padding-bottom: env(safe-area-inset-bottom); }
  @media (max-width: 768px) {
    body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
    .back-to-top { bottom: calc(96px + env(safe-area-inset-bottom)); }
  }
}

/* ==========================================
   404 PAGE
   ========================================== */
.not-found {
  min-height: calc(100vh - var(--header-h));
  background: #040c1e;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 80px 24px;
}
/* 中央グロー */
.not-found::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 70vw; height: 70vw;
  max-width: 700px; max-height: 700px;
  background: radial-gradient(circle, rgba(26,52,97,.55) 0%, transparent 70%);
  pointer-events: none;
}
/* 背面に大きなアウトライン 404 */
.not-found__ghost {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-en);
  font-size: clamp(220px, 44vw, 420px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  -webkit-text-stroke: 1px rgba(200,169,110,.07);
  color: transparent;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}
.not-found__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 520px;
  width: 100%;
}
/* ERROR ラベル */
.not-found__label {
  font-family: var(--font-en);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .45em;
  color: var(--white);
  opacity: .5;
  margin-bottom: 24px;
}
/* グラデーション 404 */
.not-found__num {
  display: block;
  font-family: var(--font-en);
  font-size: clamp(4.8rem, 16vw, 9rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  background: linear-gradient(135deg, #ffffff 0%, rgba(255,255,255,.85) 50%, rgba(200,169,110,.6) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 36px;
}
/* 区切りデコレーション */
.not-found__deco {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 28px;
}
.not-found__deco-line {
  width: 48px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(200,169,110,.5));
}
.not-found__deco-line:last-child {
  background: linear-gradient(to left, transparent, rgba(200,169,110,.5));
}
.not-found__deco-diamond {
  width: 6px; height: 6px;
  border: 1.5px solid var(--accent);
  transform: rotate(45deg);
  opacity: .8;
}
/* テキスト */
.not-found__title {
  font-family: var(--font-en);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 600;
  color: var(--white);
  letter-spacing: .06em;
  margin-bottom: 8px;
}
.not-found__sub {
  font-size: .85rem;
  color: rgba(255,255,255,.55);
  letter-spacing: .1em;
  margin-bottom: 20px;
}
.not-found__text {
  font-size: .83rem;
  color: rgba(255,255,255,.55);
  line-height: 2;
  margin-bottom: 48px;
}
.not-found__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================
   PRINT
   ========================================== */
@media print {
  .header, .footer, .mobile-cta, .back-to-top,
  .hero, .hero__scroll, .scroll-progress, .skip-link,
  .news-filter, .page-back-section, .btn { display: none !important; }
  body { background: #fff !important; color: #111 !important; font-size: 11pt; padding-bottom: 0 !important; }
  main { padding-top: 0 !important; }
  .page-hero { background: none !important; color: #111 !important; padding: 16pt 0 8pt; min-height: 0; }
  .page-hero__en, .breadcrumb { display: none; }
  .section { padding: 20pt 0 !important; }
  a { color: #111 !important; text-decoration: none !important; }
  .about__table th, .about__table td,
  .track-table th, .track-table td { color: #111 !important; border-color: #bbb !important; }
  .timeline__date, .timeline__title, .timeline__text,
  .team-card__name, .team-card__role, .career__year, .career__text { color: #111 !important; }
  .privacy { background: #fff !important; }
  .privacy__body { box-shadow: none !important; padding: 0 !important; }
}
