/* =============================================
   main.css  —  RELIEF WordPress Theme v1.3
   ============================================= */

/* ── body 背景（単色ネイビー：wave fillと一致させるため） ── */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-main);
  color: #ffffff;
  background: #0d1f6e;
  min-height: 100vh;
  line-height: 1.7;
}

/* WordPress管理バーのmargin-topをheroに影響させない */
body.admin-bar .site-header {
  top: 32px;
}
body.admin-bar #hero {
  margin-top: 0 !important;
}
@media screen and (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

/* main要素の余白リセット */
main {
  display: block;
  margin: 0;
  padding: 0;
  width: 100%;
}

/* ── ユーティリティ ── */
.container       { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section-padding { padding: 100px 0; }
.section-label   { font-size: .75rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--color-secondary); margin-bottom: 12px; }
.section-title   { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; color: var(--color-primary); margin-bottom: 16px; line-height: 1.3; }
.section-sub     { color: var(--color-muted); font-size: 1rem; margin-bottom: 56px; }

/* ── ボタン ── */
.btn-primary {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  padding: 14px 36px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: .05em;
  transition: background var(--transition), transform var(--transition);
}
.btn-primary:hover { background: var(--color-secondary); transform: translateY(-2px); }

/* ═══════════════════════════════════════════
   HEADER  — MVにオーバーレイ（Benesse方式）
   background: rgba(25,25,25,0.85) 半透明ネイビー
   ═══════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid rgba(255,255,255,.1);
  transition: background var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
  background: rgba(13,31,110,.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0,0,0,.2);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

/* ロゴ */
.header-left { display: flex; align-items: center; gap: 12px; }
.logo-img { height: 36px; width: auto; display: block; }
.site-logo a { display: flex; align-items: center; }
.logo-sub {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .18em;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  line-height: 1.3;
  border-left: 1px solid rgba(255,255,255,.3);
  padding-left: 12px;
}

/* ナビ */
.nav-list { display: flex; align-items: center; gap: 32px; }
.nav-list a {
  color: rgba(255,255,255,.85);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: color var(--transition);
  position: relative;
  padding-bottom: 4px;
}
/* ホバー／アクティブ：グラデーションテキスト（Benesse方式） */
.nav-list a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, #3570C9 0%, #1A3763 60%, #1A3763 80%, #3570C9 100%);
  transition: width .3s ease;
}
.nav-list a:hover::after,
.nav-list a.nav-active::after { width: 100%; }
.nav-list a:hover,
.nav-list a.nav-active {
  background: linear-gradient(90deg, #3570C9 0%, #1A3763 60%, #1A3763 80%, #3570C9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── ハンバーガーボタン（改善版） ── */
.hamburger {
  display: none;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  background: #0d1f6e;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 8px;
  padding: 8px 14px;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  transition: background .2s;
}
.hamburger:hover { background: #1535c8; }
.hamburger-lines { display: flex !important; flex-direction: column; gap: 5px; }
.hamburger-lines span {
  display: block !important;
  width: 22px !important;
  height: 2px !important;
  background: #fff !important;
  border-radius: 2px;
  opacity: 1 !important;
  transition: transform .3s, opacity .3s;
  -webkit-text-fill-color: initial;
}
.hamburger-label {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
}
/* 開いた状態 → × */
.hamburger.is-open .hamburger-lines span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open .hamburger-lines span:nth-child(2) { opacity: 0 !important; }
.hamburger.is-open .hamburger-lines span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.hamburger.is-open .hamburger-label { opacity: 0; }

/* ── ドロワーオーバーレイ ── */
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 199;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .3s;
}
.drawer-overlay.is-open { display: block; opacity: 1; }

/* ── ドロワーメニュー本体 ── */
.drawer-menu {
  position: fixed;
  top: 72px;
  right: 0;
  width: min(320px, 85vw);
  height: calc(100dvh - 72px);
  background: linear-gradient(160deg, #071440 0%, #0d1f6e 45%, #1535c8 100%);
  z-index: 200;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-shadow: -8px 0 40px rgba(0,0,0,.4);
}
.drawer-menu.is-open { transform: translateX(0); }

/* ドロワーヘッダー */
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.drawer-logo { height: 32px; width: auto; }

/* 閉じるボタン（×） */
.drawer-close {
  position: relative;
  width: 36px; height: 36px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
}
.drawer-close span {
  position: absolute;
  top: 50%; left: 50%;
  width: 16px; height: 2px;
  background: #fff;
  border-radius: 2px;
}
.drawer-close span:nth-child(1) { transform: translate(-50%,-50%) rotate(45deg); }
.drawer-close span:nth-child(2) { transform: translate(-50%,-50%) rotate(-45deg); }

/* ドロワーリスト */
.drawer-list {
  list-style: none;
  padding: 16px 0;
  flex: 1;
}
.drawer-list li {
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 28px;
  text-decoration: none;
  transition: background .2s, padding-left .2s;
}
.drawer-link:hover { background: rgba(255,255,255,.08); padding-left: 36px; }
.drawer-en {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  color: rgba(255,255,255,.5);
  min-width: 80px;
}
.drawer-ja {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: .05em;
}

/* CONTACTだけCTA強調 */
.drawer-cta {
  margin: 20px 24px 0;
  border: none !important;
  background: linear-gradient(90deg, #1535c8, #3a8fff);
  border-radius: 8px;
  padding: 18px 24px !important;
}
.drawer-cta:hover { opacity: .88; padding-left: 24px !important; }

/* ═══════════════════════════════════════════
   HERO  — Benesse完全再現 v5
   左83%画像 + 右17%ダークパネル 2カラム構造
   ═══════════════════════════════════════════ */

/* ═══════════════════════════════════════════
   グラデーションブロブ — 全セクション共通定義
   ═══════════════════════════════════════════ */

/* 右上ブロブ（ヘッダー付近固定・スクロール追尾なし） */
.hero-blob {
  position: absolute;
  top: -100px;
  right: -80px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(53,112,201,.5) 0%,
    rgba(26,55,99,.3) 50%,
    transparent 70%
  );
  z-index: 1;
  pointer-events: none;
  animation: bgSimpleLoop 10s linear infinite;
}
@keyframes bgSimpleLoop {
  0%,100% { transform: scale(1);    opacity: 1; }
  25%      { transform: scale(1.07); opacity: 0.5; }
  50%      { transform: scale(1);    opacity: 0.3; }
  75%      { transform: scale(1.03); opacity: 0.5; }
}

/* 各セクション内のグラデーション装飾（Benesse bgEffectRotate相当） */
.section-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: bgEffectRotate 10s linear infinite alternate;
}
@keyframes bgEffectRotate {
  0%   { transform: scale(1)    rotate(0deg)  skew(3deg,3deg);  opacity: 1; }
  25%  { transform: scale(1.07) rotate(5deg)  skew(3deg,1deg);  opacity: 0.5; }
  50%  { transform: scale(1)    rotate(-5deg) skew(0deg,0deg);  opacity: 0.3; }
  75%  { transform: scale(1.03) rotate(1deg)  skew(-3deg,-1deg);opacity: 0.5; }
  100% { transform: scale(1)    rotate(0deg)  skew(-3deg,-3deg);opacity: 1; }
}

/* ═══════════════════════════════════════════
   HERO  — jaftas.jp方式完全再現
   フルブリード画像 + 左上テキストオーバーレイ
   高さ: calc(830/1440*100vw) ≈ 57.6vw
   ═══════════════════════════════════════════ */

.hero-section {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  height: calc(830 / 1440 * 100vw);
  min-height: 520px;
  max-height: 92vh;
  margin-top: 0;
  overflow: hidden;
  background: linear-gradient(118deg, #0d1f6e 0%, #1535c8 58%, #1f6fdb 82%, #3a8fff 97%);
}

/* ── スライダー本体 ── */
.hero-swiper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.hero-swiper .swiper-wrapper,
.hero-swiper .swiper-slide {
  width: 100%;
  height: 100%;
}

/* ── 各スライドの背景画像（Ken Burns横パン用） ── */
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  /* 横パン余白のため少し広く */
  width: 108%;
  left: -4%;
  will-change: transform;
}
.slide-bg-1 { background-position: center center; }
.slide-bg-2 { background-position: center top; }
.slide-bg-3 { background-position: right center; }

/* Ken Burns 横パン（jaftas: 8秒間でtranslateX移動） */
@keyframes kbPanRight  { from { transform: translateX(0)     scale(1.08); } to { transform: translateX(-3.8%) scale(1.04); } }
@keyframes kbPanLeft   { from { transform: translateX(-3.8%) scale(1.04); } to { transform: translateX(0)     scale(1.08); } }
@keyframes kbPanCenter { from { transform: translateX(-1.9%) scale(1.06); } to { transform: translateX(1.9%)  scale(1.04); } }

.hero-bg.kb-pan-right  { animation: kbPanRight  8s linear forwards; }
.hero-bg.kb-pan-left   { animation: kbPanLeft   8s linear forwards; }
.hero-bg.kb-pan-center { animation: kbPanCenter 8s linear forwards; }

/* ── SP用 1枚ループ表示 ── */
.hero-sp-single { display: none; }

@keyframes spKbLoop {
  0%   { transform: scale(1.08) translateX(0); }
  50%  { transform: scale(1.04) translateX(-2%); }
  100% { transform: scale(1.08) translateX(0); }
}
.sp-bg-loop {
  animation: spKbLoop 10s ease-in-out infinite;
  background-position: center top;
}

/* ── オーバーレイ（上部暗化・左側暗化） ── */
/* 上部グラデーション（テキスト可読性） */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: clamp(6rem, 10vw, 10rem);
  background: linear-gradient(180deg, rgba(6,15,40,.35) 0%, transparent 100%);
  z-index: 5;
  pointer-events: none;
}
/* 左側暗化グラデーション（テキスト可読性） */
.hero-section::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: clamp(10rem, 40%, 560px);
  height: 100%;
  background: linear-gradient(90deg, rgba(6,15,40,.5) 0%, transparent 100%);
  z-index: 5;
  pointer-events: none;
}

/* ── 固定テキストオーバーレイ（左上） ── */
.hero-text-overlay {
  position: absolute;
  top: clamp(5rem, 9vw, 9.5rem);
  left: clamp(1.5rem, 7.5vw, 108px);
  z-index: 20;
  /* フェードインアニメーション */
  animation: heroTextIn .9s cubic-bezier(0.22, 0.61, 0.36, 1) .45s both;
}
@keyframes heroTextIn {
  from { opacity: 0; transform: translateX(-28px); }
  to   { opacity: 1; transform: translateX(0); }
}

.hero-eyebrow {
  font-size: clamp(.6rem, .875vw, .875rem);
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.8);
  margin-bottom: 16px;
}

.hero-heading {
  margin-bottom: 24px;
}
.hero-heading__en {
  display: block;
  font-size: clamp(3rem, 5.5vw, 6.5rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.0;
  letter-spacing: -.02em;
  text-shadow: 0 2px 40px rgba(0,0,0,.4);
}
.hero-heading__ja {
  display: block;
  font-size: clamp(1.2rem, 2.2vw, 2.4rem);
  font-weight: 700;
  color: rgba(255,255,255,.9);
  line-height: 1.6;
  margin-top: 8px;
  text-shadow: 0 2px 20px rgba(0,0,0,.5);
}

.hero-lead {
  font-size: clamp(.8rem, 1vw, 1rem);
  color: rgba(255,255,255,.8);
  line-height: 1.9;
  font-weight: 400;
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
}

/* ── ページネーション（バー型） ── */
.hero-pagination {
  position: absolute !important;
  bottom: clamp(24px, 4vw, 40px) !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 20;
  display: flex !important;
  gap: 6px;
  width: auto !important;
}
.hero-pagination .swiper-pagination-bullet {
  background: rgba(255,255,255,.45);
  width: 28px; height: 3px;
  border-radius: 2px;
  opacity: 1;
  margin: 0 !important;
  transition: width .4s ease, background .4s ease;
}
.hero-pagination .swiper-pagination-bullet-active {
  background: #ffffff;
  width: 52px;
}

/* ── 底部フェード：削除（hero-bottom-fadeがwave fillと同色になり波が見えなくなるため） ── */
.hero-bottom-fade {
  display: none;
}

/* ── 底部装飾PNG（MV波画像） ── */
.hero-wave-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 12;
  pointer-events: none;
  line-height: 0;
}
.hero-wave-overlay img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: bottom;
}

/* ── SCROLLヒント ── */
.hero-scroll-hint {
  position: absolute;
  bottom: clamp(24px, 5vw, 56px);
  right: clamp(24px, 5vw, 56px);
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.5);
  font-size: .58rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
}
.scroll-line {
  display: block;
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, rgba(255,255,255,.6), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
.scroll-text { color: rgba(255,255,255,.5); }
@keyframes scrollPulse { 0%,100%{opacity:.4} 50%{opacity:1} }


/* ═══════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════ */

/* jaftas.jp完全模倣：波はaboutセクション内のabsolute要素 */
.about-section {
  background: transparent;
  position: relative;
}

/* jaftas: top-[-16.75svw] left-0 absolute w-full pointer-events-none z-[1] */
.about-wave-top {
  position: absolute;
  top: -16.75vw;
  left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 1;
  line-height: 0;
}
.about-wave-top svg {
  display: block;
  width: 100%;
  /* viewBox 1440x1064 → height比率 73.9vw */
  height: 73.9vw;
}
.about-section::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,55,99,.3) 0%, transparent 65%);
  animation: bgEffectRotate 10s linear infinite alternate;
  pointer-events: none;
  z-index: 0;
}
.about-section > * { position: relative; z-index: 1; }

/* ── グラデーションタイトル（全セクション共通） ── */
/* ── 全セクションタイトル：白→水色グラデーション（ボタン内 span への継承を防ぐため h1/h2/h3 タグに限定） ── */
h1.section-title,
h2.section-title,
h3.section-title,
h1.about-section-title,
h2.about-section-title,
h3.about-section-title,
h1.gradient-title,
h2.gradient-title,
h3.gradient-title,
p.gradient-title {
  background: linear-gradient(135deg, #ffffff 0%, #7dd3fc 60%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* ── ピクセルドット装飾 ── */
.title-pixels {
  display: inline-flex;
  gap: 5px;
  margin-left: 10px;
  vertical-align: super;
  align-items: center;
}
.title-pixels span {
  display: block;
  width: 9px; height: 9px;
  border-radius: 2px;
  animation: pixelPulse 2s ease-in-out infinite;
}
.title-pixels span:nth-child(1) { background: #3570C9; animation-delay: 0s; }
.title-pixels span:nth-child(2) { background: transparent; animation-delay: .4s; }
.title-pixels span:nth-child(3) { background: #3570C9; animation-delay: .8s; }
@keyframes pixelPulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .2; transform: scale(.55); }
}

/* ── ABOUTセクションタイトル ── */
.about-section-title {
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 48px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
}

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about-text { line-height: 1.9; }
.about-lead { font-size: 1.1rem; font-weight: 600; color: #fff; margin-bottom: 20px; }
.about-text p + p { margin-top: 16px; color: rgba(255,255,255,.65); }
.about-philosophy { display: flex; flex-direction: column; }

/* ── MISSION/VISION カード（ボーダー区切りスタイル） ── */
.philosophy-card {
  padding: 28px 0;
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,.1);
  border-left: none;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.philosophy-card:first-child { border-top: 1px solid rgba(255,255,255,.1); }
.philosophy-icon {
  color: #3570C9;
  flex-shrink: 0;
  margin-top: 2px;
}
.philosophy-card h3 {
  font-size: .65rem;
  letter-spacing: .22em;
  color: var(--color-accent);
  margin-bottom: 8px;
}
.philosophy-card p { color: rgba(255,255,255,.75); font-size: .95rem; line-height: 1.7; }

/* ═══════════════════════════════════════════
   SERVICE
   ═══════════════════════════════════════════ */
.service-section { background: transparent; position: relative; }
.service-section::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(53,112,201,.25) 0%, rgba(26,55,99,.18) 50%, transparent 70%);
  animation: bgEffectRotate 10s linear infinite alternate;
  pointer-events: none;
  z-index: 0;
}
.service-section > * { position: relative; z-index: 1; }
.service-section .section-title::after {
  content: ''; display: block; width: 48px; height: 3px;
  background: var(--color-accent); margin-top: 12px;
}
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 48px; }
.service-card {
  border: 1px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 48px 36px;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(201,168,76,.2); }
.service-num { position: absolute; top: 20px; right: 28px; font-size: 4rem; font-weight: 900; color: rgba(255,255,255,.05); line-height: 1; }
.service-icon { color: var(--color-accent); margin-bottom: 20px; }
.service-card h3 { font-size: 1.3rem; font-weight: 700; color: #fff; margin-bottom: 16px; }
.service-card > p { color: rgba(255,255,255,.75); font-size: .95rem; line-height: 1.8; margin-bottom: 20px; }
.service-card strong { color: var(--color-accent); }
.service-features { display: flex; flex-direction: column; gap: 8px; }
.service-features li { color: rgba(255,255,255,.7); font-size: .875rem; padding-left: 16px; position: relative; }
.service-features li::before { content: '—'; position: absolute; left: 0; color: var(--color-accent); }

/* ═══════════════════════════════════════════
   NUMBERS
   ═══════════════════════════════════════════ */
.numbers-section { background: transparent; position: relative; }
.numbers-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,55,99,.28) 0%, rgba(53,112,201,.15) 50%, transparent 70%);
  animation: bgEffectRotate 12s linear infinite alternate;
  pointer-events: none;
  z-index: 0;
}
.numbers-section > * { position: relative; z-index: 1; }
.numbers-section .section-title::after {
  content: ''; display: block; width: 48px; height: 3px;
  background: var(--color-accent); margin-top: 12px;
}
.numbers-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 32px; margin-top: 56px; }
.numbers-grid--3 { grid-template-columns: repeat(3,1fr); max-width: 840px; margin-left: auto; margin-right: auto; }
.number-item { text-align: center; padding: 48px 24px; border-top: 2px solid rgba(201,168,76,.3); }
.number-value { font-size: clamp(4rem, 10vw, 7rem); font-weight: 900; color: var(--color-accent); line-height: 1; margin-bottom: 16px; }
.number-unit { font-size: clamp(1rem, 2vw, 1.5rem); font-weight: 700; }
.number-label { font-size: .8rem; color: rgba(255,255,255,.7); letter-spacing: .08em; }

/* ═══════════════════════════════════════════
   CAROUSEL (NEWS)
   ═══════════════════════════════════════════ */
.carousel-section { background: transparent; position: relative; }
.carousel-section::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,55,99,.25) 0%, rgba(26,55,99,.18) 50%, transparent 70%);
  animation: bgEffectRotate 10s linear infinite alternate;
  pointer-events: none;
  z-index: 0;
}
.carousel-section > * { position: relative; z-index: 1; }
.carousel-section .section-title::after {
  content: ''; display: block; width: 48px; height: 3px;
  background: var(--color-primary); margin-top: 12px;
}
.news-swiper {
  margin-top: 48px;
  padding-bottom: 56px !important;
  /* 左右にボタン分の余白を確保 */
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.news-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: 0 2px 16px rgba(10,26,59,.06);
  height: auto;
  border-top: 3px solid var(--color-primary);
  transition: transform var(--transition);
}
.news-card:hover { transform: translateY(-4px); }
.news-tag {
  display: inline-block;
  font-size: .65rem;
  letter-spacing: .12em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  border-radius: 2px;
  padding: 2px 8px;
  margin-bottom: 10px;
}
.news-date { font-size: .75rem; color: rgba(255,255,255,.45); font-weight: 600; letter-spacing: .1em; margin-bottom: 12px; }
.news-card h3 { font-size: 1rem; font-weight: 700; color: var(--color-text); margin-bottom: 12px; line-height: 1.5; }
.news-card p { font-size: .875rem; color: var(--color-muted); line-height: 1.7; }

/* ページネーション */
.news-swiper .swiper-pagination { bottom: 8px; }
.news-swiper .swiper-pagination-bullet { background: rgba(255,255,255,.4); opacity: 1; width: 8px; height: 8px; }
.news-swiper .swiper-pagination-bullet-active { background: var(--color-primary); }

/* 矢印ボタン：カードと被らないようカード外に配置 */
.news-swiper .swiper-button-prev,
.news-swiper .swiper-button-next {
  color: #fff;
  width: 36px; height: 36px;
  background: rgba(13,31,110,.7);
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  top: auto;
  bottom: 10px;
}
.news-swiper .swiper-button-prev { left: calc(50% - 52px); }
.news-swiper .swiper-button-next { right: calc(50% - 52px); }
.news-swiper .swiper-button-prev::after,
.news-swiper .swiper-button-next::after { font-size: .8rem; font-weight: 900; }

/* ── セクション波形（上下） ── */
.section-wave {
  position: absolute;
  left: 0;
  width: 100%;
  line-height: 0;
  pointer-events: none;
  z-index: 2;
}
.section-wave--top { top: 0; }
.section-wave--bottom { bottom: 0; }
.section-wave svg {
  display: block;
  width: 100%;
  height: 80px;
}

/* ═══════════════════════════════════════════
   VALUE
   ═══════════════════════════════════════════ */
.value-section { background: transparent; position: relative; }
.value-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,55,99,.28) 0%, rgba(53,112,201,.15) 50%, transparent 70%);
  animation: bgEffectRotate 11s linear infinite alternate;
  pointer-events: none;
  z-index: 0;
}
.value-section > * { position: relative; z-index: 1; }
.value-section .section-title::after {
  content: ''; display: block; width: 48px; height: 3px;
  background: var(--color-primary); margin-top: 12px;
}
.value-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; margin-top: 48px; }
.value-item {
  padding: 36px 28px;
  background: var(--color-bg);
  border-radius: var(--radius);
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
}
.value-item:hover { box-shadow: 0 8px 32px rgba(10,26,59,.1); transform: translateY(-4px); }
.value-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: var(--color-primary);
  color: var(--color-accent);
  font-weight: 900;
  font-size: .875rem;
  border-radius: 50%;
  margin-bottom: 16px;
}
.value-item h3 { font-size: 1.05rem; font-weight: 700; color: var(--color-primary); margin-bottom: 12px; }
.value-item p { font-size: .9rem; color: var(--color-muted); line-height: 1.8; }

/* ═══════════════════════════════════════════
   COMPANY
   ═══════════════════════════════════════════ */
.company-section { background: transparent; position: relative; }
.company-section::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(53,112,201,.25) 0%, rgba(26,55,99,.15) 50%, transparent 70%);
  animation: bgEffectRotate 13s linear infinite alternate;
  pointer-events: none;
  z-index: 0;
}
.company-section > * { position: relative; z-index: 1; }
.company-section .section-title::after {
  content: ''; display: block; width: 48px; height: 3px;
  background: var(--color-primary); margin-top: 12px;
}
.company-wrap { margin-top: 48px; }
.company-table { width: 100%; border-collapse: collapse; }
.company-table th,
.company-table td { padding: 20px 24px; text-align: left; border-bottom: 1px solid rgba(10,26,59,.08); }
.company-table th { width: 180px; background: var(--color-primary); color: var(--color-accent); font-size: .8rem; letter-spacing: .1em; font-weight: 700; }
.company-table td { background: var(--color-surface); color: var(--color-text); }
.company-table tr:last-child th { border-bottom: none; }
.company-table tr:last-child td { border-bottom: none; }

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.site-footer { background: var(--color-footer); padding: 72px 0 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 48px; }
.footer-logo { font-size: 1.8rem; font-weight: 900; color: var(--color-accent); letter-spacing: .1em; margin-bottom: 12px; }
.footer-tagline { color: rgba(255,255,255,.5); font-size: .875rem; }
.footer-nav ul { display: flex; flex-direction: column; gap: 12px; }
.footer-nav a { color: rgba(255,255,255,.6); font-size: .875rem; transition: color var(--transition); }
.footer-nav a:hover { color: var(--color-accent); }
.footer-bottom { margin-top: 48px; border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; text-align: center; }
.footer-bottom p { color: rgba(255,255,255,.35); font-size: .75rem; letter-spacing: .05em; }

/* ── Single / Archive ── */
.page-content, .single-post { padding-top: 120px; }
.page-title { font-size: 2rem; font-weight: 700; color: var(--color-primary); margin-bottom: 32px; }
.post-title { font-size: 2rem; font-weight: 700; color: var(--color-primary); margin-bottom: 12px; }
.post-date { color: var(--color-muted); font-size: .85rem; margin-bottom: 32px; }
.post-content { line-height: 1.9; color: var(--color-text); }
.archive-title { font-size: 2rem; font-weight: 700; color: var(--color-primary); margin-bottom: 40px; padding-top: 48px; }
.post-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; }
.post-card { background: var(--color-surface); border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 12px rgba(10,26,59,.06); }
.post-card a { display: block; padding: 20px; color: var(--color-text); }
.post-card img { border-radius: 4px; margin-bottom: 12px; width: 100%; }
.post-card h2 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.post-card p { font-size: .8rem; color: var(--color-muted); }

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .service-grid { grid-template-columns: 1fr; }
  .numbers-grid { grid-template-columns: repeat(2,1fr); }
  .value-grid { grid-template-columns: repeat(2,1fr); }
  .post-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
  .section-padding { padding: 72px 0; }
  .nav-list { display: none; flex-direction: column; position: fixed; top: 72px; left: 0; right: 0; background: var(--color-primary); padding: 24px; gap: 20px; }
  .nav-list.open { display: flex; }
  .hamburger { display: flex; }
  .hero-sidebar { display: none; }
  .hero-image-col {
    width: 92%;
    height: 90%;
    box-shadow:
      0 0 0 1px rgba(255,255,255,.2),
      0 0 20px 4px rgba(58,143,255,.5),
      0 0 50px 12px rgba(31,111,219,.3);
  }
  .hero-swiper { right: 0; }
  /* SP：PCスライダー非表示 → SP1枚表示 */
  .hero-pc-slider { display: none !important; }
  .hero-sp-single {
    display: block;
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
  }
  .hero-overlay-wrap { right: 0; }
  .hero-title { font-size: clamp(2.2rem, 10vw, 3.5rem); }
  .hero-slide-counter { bottom: 148px; left: 16px; }
  .hero-scroll-hint { display: none; }
  .hero-thumbs { height: 100px; }
  .thumb-content { padding: 0 16px; }
  .thumb-title { font-size: .78rem; }
  .numbers-grid { grid-template-columns: repeat(2,1fr); }
  .value-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .company-table th { width: 120px; }
  .post-grid { grid-template-columns: 1fr; }
}

.numbers-grid--1 { grid-template-columns: 1fr; max-width: 280px; margin-left: auto; margin-right: auto; }

/* ═══════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════ */
.contact-section { background: transparent; position: relative; }
.contact-section::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,55,99,.2) 0%, rgba(53,112,201,.1) 50%, transparent 70%);
  animation: bgEffectRotate 10s linear infinite alternate;
  pointer-events: none;
  z-index: 0;
}
.contact-section > * { position: relative; z-index: 1; }
.contact-lead { color: rgba(255,255,255,.7); margin-bottom: 48px; font-size: 1rem; }
.contact-form { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: .8rem; letter-spacing: .1em; color: rgba(255,255,255,.7); font-weight: 500; }
.required { color: #3570C9; }
.form-group input,
.form-group textarea {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  padding: 14px 18px;
  color: #fff;
  font-size: 1rem;
  font-family: var(--font-main);
  transition: border-color var(--transition), background var(--transition);
  width: 100%;
  box-sizing: border-box; /* はみ出し防止 */
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3570C9;
  background: rgba(255,255,255,.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,.3); }
.btn-contact {
  align-self: stretch; /* SP時は全幅ボタン */
  text-align: center;
  background: linear-gradient(90deg, #3570C9, #1A3763);
  color: #fff;
  border: none;
  padding: 16px 48px;
  border-radius: 40px;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .1em;
  cursor: pointer;
  transition: opacity var(--transition), transform var(--transition);
}
.btn-contact:hover { opacity: .85; transform: translateY(-2px); }
.contact-success { color: #4ade80; font-weight: 600; padding: 16px; background: rgba(74,222,128,.1); border-radius: var(--radius); }
.contact-error   { color: #f87171; font-weight: 600; padding: 16px; background: rgba(248,113,113,.1); border-radius: var(--radius); }

/* ══════════════════════════════════════════
   ハンバーガーボタン 強制上書き（最優先）
   -webkit-text-fill-color 継承問題を完全解決
   ══════════════════════════════════════════ */
.hamburger,
.hamburger *,
.hamburger span,
.hamburger-label,
.hamburger-lines span {
  -webkit-text-fill-color: initial !important;
  background-image: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  color: #ffffff !important;
}
.hamburger-lines span {
  display: block !important;
  width: 22px !important;
  height: 2px !important;
  background: #ffffff !important;
  background-image: none !important;
  border-radius: 2px !important;
  opacity: 1 !important;
}
.hamburger-label {
  font-size: .65rem !important;
  font-weight: 700 !important;
  letter-spacing: .12em !important;
  color: #ffffff !important;
  background: none !important;
}
