:root {
  /* Colors */
  --color-primary: #008BB4; /* Deep Cyan */
  --color-secondary: #2586A4; /* Muted Cyan */
  --color-accent: #00A2D1; /* Bright Cyan */
  --color-accent-hover: #1C8AD4; /* Medium Blue */
  --color-brand-blue: #0066B3; /* Brand Royal Blue */
  --color-deep-blue: #004C87; /* Deep Intellectual Blue */
  --color-light-cyan: #29B6F6; /* Transparent Light Cyan */
  --color-glow-cyan: #48CAE4; /* Electric Cyan Glow */
  --color-gold: #F7D070; /* Champagne Gold */
  --color-silver: #E2E8F0; /* Platinum Silver */
  --color-dark: #333333; /* Dark Gray */
  --color-light: #F4F7F9; /* Arctic Ice Gray - Executive Professional Tone */
  --color-bg-dark: #071E2B; /* Deep Sea Dark Navy */
  --color-white: #FFFFFF;
  --color-text: #333333;
  --color-text-light: #2586A4; /* Muted Cyan */
  --color-border: #CBD5E1; /* Clearly visible Gray border */

  /* Typography */
  --font-sans: 'Montserrat', 'Noto Sans JP', sans-serif;
  --font-serif: 'Montserrat', 'Noto Serif JP', 'Yu Mincho', 'YuMincho', serif;
  --font-en: 'Montserrat', sans-serif;

  /* Spacing & Layout */
  --max-width: 1360px;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.4s ease;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

/* Typography Classes */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-primary);
}

.title-lg {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: var(--spacing-md);
}

.title-md {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: var(--spacing-md);
}

.text-center { text-align: center; }
.text-gold { color: var(--color-gold); }
.text-white { color: var(--color-white); }
.text-light { color: var(--color-text-light); }

/* Layout Containers */
.container {
  width: 92%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section {
  padding: var(--spacing-xl) 0;
}

.section-dark {
  background-color: var(--color-bg-dark);
  color: var(--color-white);
}
.section-dark h1, .section-dark h2, .section-dark h3 {
  color: var(--color-white);
}

.section-gray {
  background-color: var(--color-light);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  white-space: nowrap; /* ボタン内のテキストが折り返して潰れないように */
}

.btn-accent {
  background-color: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(0, 162, 209, 0.3);
}

.btn-accent:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(28, 138, 212, 0.4);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-block {
  display: flex;
  width: 100%;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 10px rgba(0, 76, 135, 0.05);
  z-index: 1000;
  transition: box-shadow 0.25s ease, background 0.25s ease;
  will-change: box-shadow;
}

.header.is-scrolled {
  box-shadow: 0 4px 20px rgba(0, 76, 135, 0.12);
  background: rgba(255, 255, 255, 0.96);
}

.header .container,
.header__inner {
  width: 100%;
  max-width: 100%;
  padding: 0.5rem clamp(1.5rem, 3.5vw, 3.5rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: nowrap; /* 折り返しを防止して一行固定 */
}

.header__logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-secondary);
  letter-spacing: 0.05em;
  white-space: nowrap; /* ロゴの改行防止 */
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

/* 横型ロゴ（シンボルマーク＋SKY.T BRAIN, 約4.6:1）: ナビ・CTAと調和する高さに最適化 */
.logo-img {
  height: 44px;
  max-height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.logo-img:hover {
  transform: scale(1.02);
}

.logo-img--footer {
  height: 46px;
  max-height: 46px;
  width: auto;
  filter: brightness(0) invert(1);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: nowrap;
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: nowrap;
}

.header__nav-list li {
  display: flex;
  align-items: center;
}

.header__nav-list li:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 12px;
  background-color: var(--color-border);
  margin: 0 1.2rem;
  opacity: 0.8;
  flex-shrink: 0;
}

.header__nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: #333333;
  white-space: nowrap; /* リンクテキストの改行防止 */
  letter-spacing: 0.03em;
  padding: 0.2rem 0;
  transition: color var(--transition-fast);
  position: relative;
}

.header__nav-link:hover {
  color: var(--header-theme-color, var(--color-brand-blue));
}

.header__nav-link.is-active {
  color: var(--header-theme-color, var(--color-brand-blue)) !important;
  font-weight: 500;
}

/* Header Right CTA Button (Pill shape) */
.header__cta-btn {
  width: 148px;
  height: 42px;
  padding: 0 !important;
  border-radius: 21px !important;
  background-color: #FFFFFF !important;
  color: var(--header-theme-color, var(--color-brand-blue)) !important;
  font-family: var(--font-sans) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em;
  border: 1px solid var(--header-cta-border, rgba(0, 102, 179, 0.25)) !important;
  box-shadow: 0 4px 14px var(--header-cta-shadow, rgba(0, 76, 135, 0.18)) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.header__cta-btn:hover {
  background-color: var(--header-theme-color, var(--color-brand-blue)) !important;
  color: #FFFFFF !important;
  border-color: var(--header-theme-color, var(--color-brand-blue)) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--header-cta-shadow-hover, rgba(0, 76, 135, 0.28)) !important;
}

@media (max-width: 1240px) {
  .header__nav-list li:not(:last-child)::after {
    margin: 0 0.75rem;
    height: 10px;
  }
  .header__nav-link {
    font-size: 0.82rem;
  }
  .header__cta-btn {
    width: 130px;
    height: 38px;
    font-size: 12px !important;
  }
}

/* 横並びナビの幅調整（「お知らせ・コラム」「会社概要・アクセス」で項目が長くなったため。
   サービスの現在地ピル（例：税理士法人向けコンサル）が出るページでも相談ボタンが見切れないよう、幅帯ごとに間隔を詰める） */
@media (min-width: 1241px) {
  .header__nav-list li:not(:last-child)::after {
    margin: 0 0.95rem;
  }
}

@media (min-width: 1025px) and (max-width: 1240px) {
  .header .container,
  .header__inner {
    padding-inline: 1.25rem;
    gap: 1rem;
  }
  .header__nav {
    gap: 1rem;
  }
  .header__nav-list li:not(:last-child)::after {
    margin: 0 0.55rem;
  }
  .logo-img {
    height: 38px;
    max-height: 38px;
  }
}

@media (min-width: 1025px) and (max-width: 1120px) {
  .header__nav-list li:not(:last-child)::after {
    margin: 0 0.4rem;
  }
  .header__nav-link {
    font-size: 0.78rem;
    letter-spacing: 0.02em;
  }
  .header__cta-btn {
    width: 116px;
  }
}

/* Hamburger Button (Hidden on PC) */
.header__hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--color-primary);
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 1010;
  margin-left: 0.5rem;
  padding: 0;
  box-sizing: border-box;
  flex-shrink: 0;
}
.header__hamburger span {
  display: block;
  position: absolute;
  width: 20px;
  height: 2px;
  background-color: var(--color-white);
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.header__hamburger span:nth-child(1) {
  top: calc(50% - 7px);
}
.header__hamburger span:nth-child(2) {
  top: calc(50% - 1px);
}
.header__hamburger span:nth-child(3) {
  top: calc(50% + 5px);
}
.header__hamburger.is-active span:nth-child(1) {
  top: calc(50% - 1px);
  transform: translateX(-50%) rotate(45deg);
}
.header__hamburger.is-active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-50%) scale(0);
}
.header__hamburger.is-active span:nth-child(3) {
  top: calc(50% - 1px);
  transform: translateX(-50%) rotate(-45deg);
}

/* Main Visual (Hero) */
.hero {
  padding-top: 100px;
  padding-bottom: 40px;
  background-color: var(--color-bg-dark);
  color: var(--color-white);
  height: 720px;
  min-height: 720px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 1;
}

.hero::after {
  display: none !important;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.hero__title {
  color: var(--color-white);
  margin-bottom: var(--spacing-md);
  line-height: 1.3;
}

.hero__desc {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-lg);
  opacity: 0.9;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--color-white);
  padding: 2.5rem 2rem;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  border-top: 4px solid var(--color-accent);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.card__icon {
  font-size: 3rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.card__title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.card__desc {
  color: var(--color-text-light);
  font-size: 0.95rem;
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.card__link {
  color: var(--color-accent);
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.card__link::after {
  content: '→';
  transition: transform var(--transition-fast);
}
.card:hover .card__link::after {
  transform: translateX(5px);
}

/* Stats Section (Infographic) */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 2.5rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.stat-item__num {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  background: linear-gradient(135deg, #FFFFFF 0%, #00A2D1 50%, #008BB4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.8rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35)) drop-shadow(0 0 2px rgba(0, 162, 209, 0.3));
  white-space: nowrap;
}

.stat-item__num span {
  font-size: clamp(1rem, 1.5vw, 1.4rem) !important;
  font-family: var(--font-sans);
  font-weight: 500;
  -webkit-text-fill-color: var(--color-primary);
  color: var(--color-primary);
}

.stat-item__label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-white);
  opacity: 0.85;
  letter-spacing: 0.05em;
}

/* Two Column Layout (Text + Image) */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.split-layout--reverse .split-layout__content {
  order: 2;
}

.split-layout__img {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  height: 100%;
  width: 2px;
  background: var(--color-border);
}
.timeline-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 3rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 3px solid var(--color-white);
  box-shadow: 0 0 0 3px rgba(0, 162, 209, 0.2);
}
.timeline-title {
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

/* Reservation / Contact CTA */
.cta-section {
  background: linear-gradient(to right, rgba(0, 162, 209, 0.05), rgba(0, 162, 209, 0.15));
  border: 1px solid rgba(0, 162, 209, 0.2);
  border-radius: 12px;
  padding: 4rem 2rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.embed-container {
  margin-top: 2rem;
  background: var(--color-white);
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--color-border);
  color: var(--color-text-light);
}

/* Footer */
.footer {
  position: relative;
  z-index: 10;
  background-color: var(--color-dark);
  color: var(--color-light);
  padding: 4rem 0 2rem;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer__logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
  white-space: nowrap;
}

.footer__nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap; /* ナビが画面端で重ならないように折り返す */
  justify-content: center;
}

.footer__nav a {
  opacity: 0.8;
  font-size: 0.9rem;
  white-space: nowrap;
}
.footer__nav a:hover {
  opacity: 1;
  color: var(--color-accent);
}

.footer__bottom {
  text-align: center;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  opacity: 0.6;
}

/* --- Home Page Specific Styles (Logo-Derived Geometric Facet Theme - Professional Firm Blue) --- */
.home-hero {
  position: relative;
  min-height: 100vh;
  height: 100vh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center; /* 視覚的・光学的に最も心地よい中央配置 */
  background: transparent; /* 背景レイヤー(bg-decor)に分離して光の軌道を前面に通す */
  color: var(--color-white);
  padding-top: 80px; /* 固定ヘッダー分のクリアランス */
  padding-bottom: 70px; /* 下部スクロール分のクリアランス */
  overflow: hidden;
}

/* Background Decor Container (5層多層グラデーション背景レイヤー) */
.home-hero__bg-decor {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background: 
    radial-gradient(circle at 80% 20%, rgba(41, 182, 246, 0.35) 0%, transparent 45%),
    radial-gradient(circle at 50% 40%, rgba(72, 202, 228, 0.22) 0%, transparent 55%),
    radial-gradient(circle at 10% 90%, #004C87 0%, transparent 60%),
    radial-gradient(circle at 90% 85%, rgba(0, 102, 179, 0.5) 0%, transparent 50%),
    linear-gradient(135deg, #008FD5 0%, #0066B3 50%, #004C87 100%);
}

/* 1. Ambient Sky Aura, Updraft & Depth Glow Layers */
.home-hero__kite-sky-glow {
  position: absolute;
  top: -5%;
  right: 5%;
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(72, 202, 228, 0.35) 0%, rgba(41, 182, 246, 0.2) 45%, transparent 70%);
  filter: blur(80px);
  animation: skyGlowBreath 20s ease-in-out infinite alternate;
  will-change: transform;
  backface-visibility: hidden;
}

.home-hero__depth-glow {
  position: absolute;
  top: 25%;
  right: 15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(72, 202, 228, 0.25) 0%, rgba(0, 229, 255, 0.12) 50%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  animation: depthGlowPulse 18s ease-in-out infinite alternate;
  will-change: transform;
  backface-visibility: hidden;
}

.home-hero__kite-updraft-glow {
  position: absolute;
  bottom: 8%;
  right: 18%;
  width: 550px;
  height: 450px;
  background: radial-gradient(ellipse at center, rgba(56, 189, 248, 0.28) 0%, rgba(0, 102, 179, 0.15) 60%, transparent 75%);
  filter: blur(75px);
  animation: updraftBreath 16s ease-in-out infinite alternate;
  will-change: transform;
  backface-visibility: hidden;
}

@keyframes depthGlowPulse {
  0% { transform: scale(0.95) translate(0, 0); opacity: 0.8; }
  50% { transform: scale(1.05) translate(-15px, 8px); opacity: 0.95; }
  100% { transform: scale(0.98) translate(10px, -10px); opacity: 0.85; }
}

@keyframes skyGlowBreath {
  0% { transform: scale(0.96) translate(0, 0); opacity: 0.85; }
  50% { transform: scale(1.04) translate(-10px, 10px); opacity: 0.95; }
  100% { transform: scale(0.98) translate(10px, -8px); opacity: 0.88; }
}

@keyframes updraftBreath {
  0% { transform: translateY(0) scale(0.96); opacity: 0.75; }
  50% { transform: translateY(-15px) scale(1.04); opacity: 0.9; }
  100% { transform: translateY(-5px) scale(1); opacity: 0.8; }
}

/* 2. Authentic Kite Geometry Wrap & Aircraft Soaring */
.home-hero__kite-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  opacity: 0.95;
  pointer-events: none;
}

.home-hero__kite-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  overflow: visible !important;
}

/* 会社ロゴカイト本体：適度なサイズに縮小、右上へ傾けて大空を飛翔するモーション */
.kite-aircraft {
  transform-origin: 1040px 400px;
  transform: translate(80px, -60px) rotate(24deg) scale(0.52);
  animation: kiteSoarFlight 10s ease-in-out infinite alternate;
  filter: drop-shadow(0 15px 30px rgba(0, 70, 140, 0.4));
  will-change: transform;
  backface-visibility: hidden;
}

@keyframes kiteSoarFlight {
  0% {
    transform: translate(80px, -60px) rotate(24deg) scale(0.52);
  }
  50% {
    transform: translate(80px, -66px) rotate(25deg) scale(0.525);
  }
  100% {
    transform: translate(80px, -60px) rotate(24deg) scale(0.52);
  }
}

.home-page-container {
  position: relative;
  width: 100%;
  overflow-x: clip;
}

/* 4. Kite Wing Facets & Specular Highlights (翼面の光沢) */
.kite-wing-facets {
  mix-blend-mode: screen;
  filter: drop-shadow(0 4px 15px rgba(56, 189, 248, 0.25));
}

.kite-wing-facets polygon {
  transition: opacity 0.5s ease;
  animation: facetGlimmer 12s ease-in-out infinite alternate;
}

@keyframes facetGlimmer {
  0% { opacity: 0.7; }
  50% { opacity: 0.9; }
  100% { opacity: 0.75; }
}

/* 5. Geometric Guide Lines & Node Points (頂点ノードと薄い補足線) */
.kite-guide-lines line {
  stroke-linecap: round;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.3));
}

.kite-nodes {
  filter: drop-shadow(0 0 8px rgba(72, 202, 228, 0.8));
}

.kite-node {
  fill: #FFFFFF;
  filter: drop-shadow(0 0 4px #FFFFFF) drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
  pointer-events: none;
}

.kite-node--primary {
  fill: #FFFFFF;
  filter: drop-shadow(0 0 6px #FFFFFF) drop-shadow(0 0 14px rgba(72, 202, 228, 0.9));
  animation: nodeTwinkle 8s ease-in-out infinite alternate;
}

.kite-node-halo {
  fill: #48CAE4;
  opacity: 0.35;
  pointer-events: none;
  filter: drop-shadow(0 0 8px rgba(72, 202, 228, 0.6));
}

.kite-node-halo--1 {
  animation: haloPulse 8s ease-in-out infinite alternate;
}

.kite-node-halo--2 {
  animation: haloPulse 10s ease-in-out infinite alternate 1.5s;
}

.kite-node-halo--3 {
  animation: haloPulse 11s ease-in-out infinite alternate 3s;
}

/* 頂点位置から動かさず、その場で星のように緩やかに光るアニメーション */
@keyframes nodeTwinkle {
  0% {
    opacity: 0.85;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.9;
  }
}

@keyframes haloPulse {
  0% {
    opacity: 0.25;
  }
  50% {
    opacity: 0.45;
  }
  100% {
    opacity: 0.3;
  }
}

/* ==========================================================================
   6. [NEW ADDITIONS] Complementary Aerodynamic & Celestial Elements
   ========================================================================== */

/* 6-1. Micro Streamlines (補助破線気流: 静止表示・負荷0%) */
.wind-sub-line {
  stroke-linecap: round;
  opacity: 0.35;
}

/* 6-2. Strategic Compass / Gyro Rings (幾何学コンパス・ジャイロリング) */
.kite-gyro-group {
  pointer-events: none;
  opacity: 0.85;
}

.gyro-ring--outer {
  transform-origin: 1040px 255px;
  animation: gyroRotateClockwise 60s linear infinite;
}

.gyro-ring--inner {
  transform-origin: 1040px 255px;
  animation: gyroRotateCounter 45s linear infinite;
}

@keyframes gyroRotateClockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes gyroRotateCounter {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

/* 6-3. Atmospheric Wind Stardust (気流に舞う光の微粒子群) */
.wind-stardust-group {
  pointer-events: none;
}

.wind-stardust {
  animation: stardustTwinkle 8s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 3px rgba(56, 189, 248, 0.6));
}

.wind-stardust--1 { animation-delay: 0s; animation-duration: 7.5s; }
.wind-stardust--2 { animation-delay: 1.5s; animation-duration: 9.0s; }
.wind-stardust--3 { animation-delay: 3.0s; animation-duration: 7.0s; }
.wind-stardust--4 { animation-delay: 1.0s; animation-duration: 9.5s; }
.wind-stardust--5 { animation-delay: 4.0s; animation-duration: 8.0s; }
.wind-stardust--6 { animation-delay: 2.5s; animation-duration: 8.5s; }
.wind-stardust--7 { animation-delay: 3.5s; animation-duration: 7.2s; }
.wind-stardust--8 { animation-delay: 0.8s; animation-duration: 9.2s; }
.wind-stardust--9 { animation-delay: 4.5s; animation-duration: 8.0s; }

@keyframes stardustTwinkle {
  0% {
    opacity: 0.4;
    transform: translateY(0) scale(0.9);
  }
  50% {
    opacity: 0.75;
    transform: translateY(-6px) scale(1.1);
  }
  100% {
    opacity: 0.5;
    transform: translateY(-10px) scale(0.95);
  }
}

/* 6-4. Depth Mini Kites (遠景のミニカイト) */
.mini-kite {
  animation: miniKiteHover 12s ease-in-out infinite alternate;
}

.mini-kite--1 {
  transform-origin: 480px 190px;
  animation-duration: 14s;
  animation-delay: -2s;
}

.mini-kite--2 {
  transform-origin: 760px 125px;
  animation-duration: 11s;
  animation-delay: -5s;
}

@keyframes miniKiteHover {
  0% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0.45;
  }
  50% {
    transform: translate(-6px, -5px) rotate(-2deg);
    opacity: 0.65;
  }
  100% {
    transform: translate(5px, -10px) rotate(1deg);
    opacity: 0.5;
  }
}

.home-hero__inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 3.5vw, 3.5rem);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
}

.home-hero__text-col {
  position: relative;
  max-width: 880px;
  margin-left: 0;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-hero__copy {
  font-family: var(--font-serif);
  font-size: clamp(3.2rem, 5.6vw, 84px); /* 堂々とした力強い視覚的インパクト */
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: clamp(2.2rem, 3.5vh, 40px);
  color: #FFFFFF;
  letter-spacing: 0.05em;
  font-feature-settings: "palt" 1, "pkna" 1;
  text-shadow: 0 4px 30px rgba(0, 50, 110, 0.55), 0 2px 8px rgba(0, 0, 0, 0.3);
}

.home-hero__line {
  display: inline-block;
  white-space: nowrap;
  font-feature-settings: "palt" 1, "pkna" 1;
  letter-spacing: 0.04em;
}

.home-hero__line .punct {
  display: inline-block;
  letter-spacing: -0.4em;
  margin-right: 0.1em;
}

.home-hero__subcopy {
  display: block;
  font-family: var(--font-sans);
  font-size: clamp(1.15rem, 1.55vw, 22px);
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: clamp(2.6rem, 4.5vh, 50px);
  font-weight: 500;
  line-height: 2.0;
  letter-spacing: 0.06em;
  font-feature-settings: "palt" 1;
  text-shadow: 0 2px 12px rgba(0, 45, 90, 0.6);
}

/* Glassmorphism Stats Badge */
.home-hero__stats-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  flex-wrap: nowrap;
  gap: 36px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.08) 100%) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  border-radius: 9999px !important;
  padding: 16px 42px !important;
  box-shadow: 0 10px 35px rgba(0, 40, 90, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
  margin-bottom: 0;
}

.home-hero__stats-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.home-hero__stats-label {
  font-size: 15px !important;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88) !important;
  letter-spacing: 0.06em;
}

.home-hero__stats-num {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 40px !important;
  font-weight: 700 !important;
  color: #FFFFFF !important;
  line-height: 1 !important;
  margin: 0 2px;
  letter-spacing: -0.01em;
}

.home-hero__stats-unit {
  font-family: var(--font-sans);
  font-size: 16px !important;
  font-weight: 600;
  color: #FFFFFF !important;
}

.home-hero__stats-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.35);
}

.home-hero__scroll-wrap {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
}

/* ──────────────────────────────────────────────────────────────────────────
   Tablet Landscape (iPad 横向き: 992px 〜 1240px)
   PCの左テキスト＋右カイトの美しい黄金比をそのままコンパクトに再現
   ────────────────────────────────────────────────────────────────────────── */
@media (min-width: 992px) and (max-width: 1240px) {
  .home-hero {
    padding-top: 85px;
    padding-bottom: 60px;
  }
  .home-hero__inner {
    padding: 0 clamp(2rem, 4vw, 3.5rem);
  }
  .home-hero__text-col {
    max-width: 620px;
  }
  .home-hero__copy {
    font-size: clamp(2.6rem, 4.2vw, 3.4rem);
    margin-bottom: 1.4rem;
  }
  .home-hero__subcopy {
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    margin-bottom: 1.8rem;
  }
  .home-hero__stats-badge {
    padding: 12px 28px !important;
    gap: 22px;
  }
  .home-hero__stats-num {
    font-size: 34px !important;
  }
  .kite-aircraft {
    transform: translate(40px, -50px) rotate(24deg) scale(0.48);
  }
}

/* ──────────────────────────────────────────────────────────────────────────
   Tablet Portrait (iPad 縦向き: 768px 〜 991px)
   カイトを画面内側の美しい右奥上空に引き込み、はみ出しを完全解消
   ────────────────────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
  /* タブレットでの点滅防止＆GPU最適化 */
  .wind-stardust-group,
  .mini-kite,
  .kite-node-halo {
    display: none !important;
  }
  .kite-wing-facets polygon,
  .kite-node--primary,
  .wind-veil,
  .home-hero__kite-sky-glow,
  .home-hero__depth-glow,
  .home-hero__kite-updraft-glow {
    animation: none !important;
  }
  .kite-aircraft {
    transform-origin: 1040px 400px;
    /* 右端のはみ出しを解消するため、内側（左側）へしっかり引き込み、均等比率で美しく配置 */
    transform: translate(-150px, -40px) rotate(22deg) scale(0.46);
    filter: drop-shadow(0 12px 24px rgba(0, 70, 140, 0.35)) !important;
    will-change: transform;
    backface-visibility: hidden;
    animation: kiteSoarFlightTablet 12s ease-in-out infinite alternate !important;
  }
  @keyframes kiteSoarFlightTablet {
    0% {
      transform: translate(-150px, -40px) rotate(22deg) scale(0.46);
    }
    50% {
      transform: translate(-140px, -50px) rotate(23deg) scale(0.47);
    }
    100% {
      transform: translate(-150px, -40px) rotate(22deg) scale(0.46);
    }
  }
  .home-hero {
    padding-top: 90px;
    padding-bottom: 70px;
    height: auto;
    min-height: 100vh;
  }
  .home-hero__inner {
    text-align: left;
    justify-content: flex-start;
    padding: 0 clamp(2rem, 5vw, 3.5rem);
  }
  .home-hero__text-col {
    max-width: 600px;
    margin: 0;
    align-items: flex-start;
    text-align: left;
  }
  .home-hero__stats-badge {
    align-self: flex-start;
    padding: 12px 26px !important;
    gap: 22px;
  }
  .home-hero__stats-num {
    font-size: 32px !important;
  }
  .home-hero__copy {
    font-size: clamp(2.4rem, 5.5vw, 42px);
    line-height: 1.35;
  }
  .home-hero__subcopy {
    font-size: clamp(1rem, 2.4vw, 18px);
    line-height: 1.8;
  }
}

/* ──────────────────────────────────────────────────────────────────────────
   Mobile Portrait & General Mobile (スマホ画面: 〜 767px)
   カイトの上下押しつぶされ感を解消し、開放的な高さと美しい均等プロポーションを実現
   ────────────────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  /* スマホでの最適化：点滅・高負荷要素のみ非表示にし、優雅な気流・カイトモーションを軽快に動作 */
  .wind-stardust-group,
  .mini-kite,
  .kite-node-halo,
  .wind-sub-line {
    display: none !important;
  }
  .kite-wing-facets polygon,
  .kite-node--primary,
  .home-hero__kite-sky-glow,
  .home-hero__depth-glow,
  .home-hero__kite-updraft-glow {
    animation: none !important;
  }
  .kite-aircraft {
    transform-origin: 1040px 400px;
    opacity: 0.88;
    /* 縦方向の押しつぶれを解消（均等比率scale: 0.42）＋画面内に美しく収まる位置 */
    transform: translate(-190px, -25px) rotate(18deg) scale(0.42);
    animation: kiteSoarFlightMobile 10s ease-in-out infinite alternate !important;
    filter: drop-shadow(0 8px 16px rgba(0, 70, 140, 0.35)) !important;
    will-change: transform;
    backface-visibility: hidden;
  }
  @keyframes kiteSoarFlightMobile {
    0% {
      transform: translate(-190px, -25px) rotate(18deg) scale(0.42);
    }
    50% {
      transform: translate(-180px, -35px) rotate(19.5deg) scale(0.43);
    }
    100% {
      transform: translate(-190px, -25px) rotate(18deg) scale(0.42);
    }
  }
  .home-hero__bg-decor {
    opacity: 0.9;
  }
  .home-hero {
    padding-top: 95px;
    padding-bottom: 75px;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh; /* iOS Safariのアドレスバー伸縮にも完全適応 */
  }
  .home-hero__inner {
    padding: 0 1.25rem;
  }
  .home-hero__copy {
    font-size: clamp(2.05rem, 8vw, 2.75rem);
    line-height: 1.35;
    margin-bottom: 1.3rem;
    word-break: auto-phrase;
  }
  .home-hero__line {
    white-space: normal;
    display: inline;
  }
  .home-hero__subcopy {
    font-size: clamp(0.9rem, 3.8vw, 1.05rem);
    line-height: 1.75;
    margin-bottom: 1.6rem;
  }
  .home-hero__subcopy br {
    display: none;
  }
  .home-hero__stats-badge {
    padding: 10px clamp(12px, 3.5vw, 18px) !important;
    gap: clamp(8px, 3vw, 14px);
    max-width: 100%;
    box-sizing: border-box;
  }
  .home-hero__stats-item {
    gap: 6px;
    flex-shrink: 1;
  }
  .home-hero__stats-label {
    font-size: clamp(11px, 3.2vw, 13px) !important;
    white-space: nowrap;
  }
  .home-hero__stats-num {
    font-size: clamp(22px, 6.5vw, 26px) !important;
  }
  .home-hero__stats-unit {
    font-size: clamp(11px, 3.2vw, 13px) !important;
  }
  .home-hero__stats-divider {
    height: 18px;
    flex-shrink: 0;
  }
  .home-hero__scroll-wrap {
    bottom: 16px;
  }
}

/* ──────────────────────────────────────────────────────────────────────────
   Ultra Small Mobile (極小スマホ・折りたたみ画面外側: 〜 380px)
   ────────────────────────────────────────────────────────────────────────── */
@media (max-width: 380px) {
  .home-hero__copy {
    font-size: 1.85rem !important;
  }
  .home-hero__subcopy {
    font-size: 0.85rem !important;
  }
  .home-hero__stats-badge {
    padding: 8px 12px !important;
    gap: 8px !important;
  }
  .home-hero__stats-num {
    font-size: 20px !important;
  }
  .kite-aircraft {
    transform: translate(-170px, -20px) rotate(18deg) scale(0.36) !important;
  }
}


/* ──────────────────────────────────────────────────────────────────────────
   Short Viewport / Landscape (スマホ横向き・低ハイト画面: max-height: 550px)
   画面高さ不足による重なり・チカチカを完全解消
   ────────────────────────────────────────────────────────────────────────── */
@media (max-height: 550px) {
  .home-hero {
    height: auto !important;
    min-height: 100vh !important;
    padding-top: 70px !important;
    padding-bottom: 50px !important;
    justify-content: flex-start !important;
  }
  .home-hero__inner {
    padding-top: 15px;
    padding-bottom: 15px;
  }
  .home-hero__copy {
    font-size: clamp(1.6rem, 4.5vw, 2.2rem) !important;
    margin-bottom: 0.8rem !important;
    line-height: 1.3 !important;
  }
  .home-hero__subcopy {
    font-size: clamp(0.85rem, 2.2vw, 1rem) !important;
    line-height: 1.5 !important;
    margin-bottom: 1rem !important;
  }
  .home-hero__stats-badge {
    padding: 8px 18px !important;
    gap: 14px !important;
  }
  .home-hero__stats-num {
    font-size: 24px !important;
  }
  .home-hero__stats-label {
    font-size: 12px !important;
  }
  .home-hero__scroll-wrap {
    display: none !important; /* 横画面時は画面が狭いためスクロールインジケータを隠してすっきり表示 */
  }
  .kite-aircraft {
    transform: translate(60px, -40px) rotate(22deg) scale(0.38) !important;
    opacity: 0.75;
  }
}

/* SCROLL Indicator */
.scroll-indicator {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.scroll-indicator:hover {
  opacity: 1;
  transform: translateY(2px);
}

.scroll-indicator__text {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: #FFFFFF;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.scroll-indicator__line {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.25);
  position: relative;
  overflow: hidden;
}

.scroll-indicator__line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: #FFFFFF;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
  animation: scrollLine 2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes scrollLine {
  0% { transform: translateY(-100%); opacity: 0; }
  30% { opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translateY(200%); opacity: 0; }
}

.home-hero__img-col {
  position: relative;
  display: flex;
  justify-content: center;
}

.home-hero__img-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), 0 0 35px rgba(0, 162, 209, 0.25);
  border: 1.5px solid rgba(56, 189, 248, 0.35);
  width: 100%;
  max-width: 500px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.home-hero__img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
  filter: brightness(0.9) contrast(1.1);
}

.home-hero__img-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to top, rgba(5, 13, 26, 0.8) 0%, transparent 60%);
  pointer-events: none;
}

/* Service Pages Differentiation & Active Header Tab Styles */

/* Active Link & Pill Tab styling in Header */
.header__nav-link.is-active {
  color: var(--color-accent) !important;
  font-weight: 700;
  position: relative;
  background: rgba(0, 162, 209, 0.12);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  border: 1px solid rgba(0, 162, 209, 0.35);
}

/* Service Concept / Badge Header Tags in Hero */
.service-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 1.2rem;
  border-radius: 30px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  background: #FFFFFF;
  color: var(--color-bg-dark);
  border: 2px solid var(--color-accent);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* 1. Tax Investigation: Emergency SOS Card */
.hero-sos-card {
  background: rgba(4, 24, 38, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  padding: 1.8rem 1.75rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22), 0 0 35px rgba(0, 139, 180, 0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.4s ease;
}
.hero-sos-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 0.85rem;
  margin-bottom: 1.1rem;
}
.hero-sos-card__title {
  color: #FFDF73;
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: 0.04em;
  font-family: var(--font-serif);
}
.hero-sos-card__title svg {
  width: 24px;
  height: 24px;
}
.hero-sos-card__title svg path {
  stroke: #FFDF73;
  stroke-width: 2.2;
}
.hero-sos-card__tag {
  background: #D92B3A;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(217, 43, 58, 0.45);
  letter-spacing: 0.05em;
  font-family: var(--font-sans);
}
.hero-sos-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}
.hero-sos-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1.02rem;
  color: #FFFFFF;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.03em;
  font-family: var(--font-sans);
}
.hero-sos-item svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: #FFDF73;
  stroke-width: 3;
}
.hero-sos-card .btn {
  background: linear-gradient(135deg, #FFDF73 0%, #F5B82E 100%);
  color: #030D14 !important;
  font-family: var(--font-sans) !important;
  font-weight: 700 !important;
  font-size: 1.05rem !important;
  letter-spacing: 0.03em;
  padding: 0.95rem 1.4rem;
  border-radius: 8px;
  border: none;
  box-shadow: 0 6px 22px rgba(245, 184, 46, 0.35);
  transition: all 0.3s ease;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  text-decoration: none;
}
.hero-sos-btn__badge {
  background: #030D14;
  color: #FFDF73;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  letter-spacing: 0.04em;
  line-height: 1.2;
  flex-shrink: 0;
}
.hero-sos-btn__text {
  font-size: 1.05rem;
  font-weight: 700;
  color: #030D14;
}
.hero-sos-btn__arrow {
  transition: transform 0.3s ease;
  flex-shrink: 0;
  stroke: #030D14;
}
.hero-sos-card .btn:hover {
  background: linear-gradient(135deg, #FFF0B3 0%, #F8C648 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(245, 184, 46, 0.5);
  color: #000000 !important;
}
.hero-sos-card .btn:hover .hero-sos-btn__arrow {
  transform: translateX(5px);
}

/* 2. Advisory: Metrics Badge & Support Grid Card */
.hero-advisory-metrics {
  display: flex;
  gap: 1rem;
  margin-top: 1.4rem;
  margin-bottom: 1.8rem;
}
.hero-metric-pill {
  background: rgba(4, 24, 38, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.85rem 1.25rem;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2), 0 0 20px rgba(0, 139, 180, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  flex: 1;
  transition: all 0.35s ease;
}
.hero-metric-pill:hover {
  background: rgba(4, 24, 38, 0.8);
  border-color: rgba(255, 223, 115, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 25px rgba(255, 223, 115, 0.2);
}
.hero-metric-pill__num {
  font-size: 1.65rem;
  font-weight: 700;
  color: #FFDF73;
  font-family: var(--font-serif);
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 10px rgba(255, 223, 115, 0.25);
}
.hero-metric-pill__label {
  font-size: 0.83rem;
  color: #FFFFFF;
  font-weight: 600;
  margin-top: 0.3rem;
  letter-spacing: 0.04em;
}
.hero-support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.hero-support-card,
.hero-support-card:hover,
.hero-support-card:focus,
.hero-support-card:active {
  background-color: #FFFFFF !important;
  background: #FFFFFF !important;
  outline: none !important;
  border: 1px solid rgba(0, 139, 180, 0.2);
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.hero-support-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-accent);
}
.hero-support-card * {
  background-color: transparent !important;
}
.hero-support-card__title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #005B7F;
  margin-bottom: 0.4rem;
}
.hero-support-card__desc {
  font-size: 0.82rem;
  color: #222222;
  line-height: 1.55;
  font-weight: 400;
}

/* 3. Zeirishi Course: Centered Hero & 3-Step Cards */
.hero--centered {
  text-align: center;
}
.hero--centered .hero__content {
  max-width: 900px;
  margin: 0 auto;
}
.hero-course-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 2rem;
  width: 100%;
}
.hero-course-step-card {
  background: rgba(4, 24, 38, 0.65) !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  padding: 1.35rem 1.1rem;
  text-align: left;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25), 0 0 30px rgba(0, 139, 180, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.35s ease;
}
.hero-course-step-card:hover {
  background: rgba(4, 24, 38, 0.8) !important;
  transform: translateY(-4px);
  border-color: rgba(255, 223, 115, 0.5);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35), 0 0 35px rgba(255, 223, 115, 0.2);
}
.hero-course-step-card__num {
  font-size: 0.78rem;
  font-weight: 700;
  color: #FFDF73;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
  display: inline-block;
  background: rgba(255, 223, 115, 0.15);
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 223, 115, 0.35);
}
.hero-course-step-card__title {
  font-size: clamp(0.95rem, 1.1vw, 1.02rem);
  font-weight: 700;
  color: #FFDF73;
  margin-bottom: 0.5rem;
  font-family: var(--font-serif);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.hero-course-step-card__desc {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.6;
  font-weight: 400;
}

/* 4. Zeirishi Consulting: Roadmap Flow Card */
.hero-roadmap-card {
  background: rgba(4, 24, 38, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22), 0 0 35px rgba(0, 139, 180, 0.25);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.hero-roadmap-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(255, 223, 115, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-roadmap-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFDF73;
  font-family: var(--font-serif);
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: 0.03em;
}
.hero-roadmap-card__title svg {
  color: #FFDF73;
  stroke: #FFDF73;
}
.hero-roadmap-flow {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  position: relative;
}
.hero-roadmap-flow::before {
  content: '';
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 45px;
  width: 2px;
  background: linear-gradient(180deg, #FFDF73 0%, rgba(0, 162, 209, 0.6) 100%);
  opacity: 0.6;
  z-index: 1;
}
.hero-roadmap-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.95rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}
.hero-roadmap-step:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 223, 115, 0.4);
  transform: translateX(4px);
}
.hero-roadmap-step__badge {
  font-size: 0.75rem;
  font-weight: 700;
  background: #071E2B;
  color: #FFDF73;
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  border: 1.5px solid #FFDF73;
  white-space: nowrap;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
  position: relative;
  z-index: 3;
}
.hero-roadmap-step__text h4 {
  font-size: 1.02rem;
  color: #FFDF73;
  font-weight: 700;
  font-family: var(--font-serif);
  margin-bottom: 0.35rem;
  line-height: 1.4;
  letter-spacing: 0.01em;
}
.hero-roadmap-step__text p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.55;
}

@media (max-width: 992px) {
  .hero-course-steps {
    grid-template-columns: 1fr;
  }
  .hero-support-grid {
    grid-template-columns: 1fr;
  }
}

.home-gateways-section {
  position: relative;
  z-index: 10;
  background: var(--color-white);
  margin-top: 0 !important; /* めり込みを完全解除し、スクロール後に表示 */
  padding-top: clamp(3.5rem, 6vh, 5.5rem);
  padding-bottom: var(--spacing-xl);
}

@media (max-width: 991px) {
  .home-gateways-section {
    margin-top: 0 !important;
    padding-top: var(--spacing-lg);
  }
}

.home-gateways {
  display: flex;
  gap: 2rem;
  position: relative;
}

@media (max-width: 768px) {
  .home-gateways {
    flex-direction: column;
  }
}

.gateway-card {
  flex: 1;
  background: var(--color-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04), 
              0 1px 3px rgba(0, 0, 0, 0.02);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  cursor: pointer;
  text-decoration: none;
  display: block;
  min-height: 320px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.gateway-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(0, 139, 180, 0.95) 0%, rgba(37, 134, 164, 0.98) 100%);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gateway-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 16px;
  border: 2px solid transparent;
  z-index: 3;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.gateway-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 60px rgba(0, 139, 180, 0.15);
}

.gateway-card:hover::after {
  border-color: var(--color-accent);
}

.gateway-card:hover::before {
  opacity: 1;
}

.gateway-card__inner {
  padding: 3rem 2.2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
  align-items: center;
  text-align: center;
}

.gateway-card__icon {
  font-size: 3rem;
  color: var(--color-accent);
  margin-bottom: 1.8rem;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gateway-card:hover .gateway-card__icon {
  transform: scale(1.1) translateY(-8px);
}

.gateway-card__title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1.2rem;
  transition: color 0.4s ease;
  letter-spacing: 0.05em;
}

.gateway-card:hover .gateway-card__title {
  color: var(--color-white);
}

.gateway-card__desc {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.7;
  margin-top: auto;
  transition: color 0.4s ease;
}

.gateway-card:hover .gateway-card__desc {
  color: rgba(255, 255, 255, 0.95);
}

/* Animations (俊敏で引っ掛かりのないサクサク表示) */
.fade-up {
  opacity: 0;
  transform: translateY(14px);
  will-change: opacity, transform;
  transition: opacity 0.26s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ファーストビュー（各ページのヘッダー直下エリア）は遷移時にワンテンポ待たせず即座に表示 */
.home-hero .fade-up,
.hero-rich-light .fade-up,
.service-header .fade-up,
.profile-hero .fade-up,
.company-hero .fade-up,
.service-header__inner.fade-up,
.hero-rich-light__inner.fade-up {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* Mobile Responsive */
/* Header Responsive for Tablets/Mobile */
@media (max-width: 1024px) {
  /* ヘッダー */
  .header__inner {
    padding: 0.75rem 0;
    gap: 0.5rem;
    flex-wrap: nowrap;
  }
  .header__logo {
    font-size: 1.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .header__nav {
    display: flex;
    align-items: center;
    flex-shrink: 0;
  }
  .header__nav-list {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background-color: #FFFFFF !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 2rem 1.5rem;
    z-index: 1005;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    will-change: opacity;
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    contain: layout style paint;
    overscroll-behavior: contain;
    transition: opacity 0.12s cubic-bezier(0, 0, 0.2, 1), visibility 0.12s cubic-bezier(0, 0, 0.2, 1);
    touch-action: manipulation;
  }
  .header__nav-list.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .header__nav-list li {
    width: 100%;
    max-width: 320px;
    display: block;
  }
  .header__nav-list li:not(:last-child)::after {
    display: none !important;
  }
  .header__nav-list .header__nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 1.22rem;
    font-weight: 600;
    color: var(--color-primary);
    border-radius: 8px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0, 102, 179, 0.15);
    transition: background-color 0.1s ease, color 0.1s ease, transform 0.1s ease;
  }
  .header__nav-list .header__nav-link:active {
    background-color: rgba(0, 102, 179, 0.12);
    color: var(--header-theme-color, var(--color-brand-blue));
    transform: scale(0.98);
  }
  .header__hamburger {
    display: block;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  .header__nav .btn {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.75rem !important;
    width: auto;
    white-space: nowrap;
  }
}

@media (max-width: 768px) {
  :root {
    --spacing-md: 1.25rem;
    --spacing-lg: 1.8rem;
    --spacing-xl: 3rem;
  }

  .container {
    width: 92%;
    padding-left: 0;
    padding-right: 0;
  }

  .section {
    padding: 3rem 0;
  }

  /* Header in Mobile */
  .header .container,
  .header__inner {
    padding: 0.45rem 1rem !important;
    gap: 0.5rem;
  }
  .logo-img {
    height: 36px !important;
    max-height: 36px !important;
  }
  .logo-img--footer {
    height: 38px !important;
    max-height: 38px !important;
  }
  .header__cta-btn {
    display: none !important; /* スマホ時は画面下部固定CTAバーに役割を委譲 */
  }
  .header__hamburger {
    width: 44px;
    height: 44px;
    margin-left: auto;
  }

  .title-lg {
    font-size: 1.55rem;
    line-height: 1.35;
  }
  .title-md {
    font-size: 1.3rem;
    line-height: 1.4;
  }

  .btn {
    width: 100%;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    box-sizing: border-box;
  }

  .split-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .split-layout--reverse .split-layout__content {
    order: initial;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .card {
    padding: 1.25rem;
  }
  .card__icon {
    font-size: 2.2rem;
    margin-bottom: 0.85rem;
  }
  .card__title {
    font-size: 1.1rem;
  }

  /* Stats Grid */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .stat-item {
    padding: 1rem 0.5rem;
  }
  .stat-item__num {
    font-size: 2.1rem;
    letter-spacing: -0.02em;
  }
  .stat-item__num span {
    font-size: 1.1rem !important;
  }
  .stat-item__label {
    font-size: 0.78rem;
    line-height: 1.4;
  }

  /* CTA Section */
  .cta-section {
    padding: 2.2rem 1.2rem;
  }
  .embed-container {
    min-height: 380px;
  }

  /* Footer */
  .footer {
    padding: 3rem 0 calc(5.5rem + env(safe-area-inset-bottom, 0px));
  }
  .footer__inner {
    flex-direction: column;
    text-align: center;
    gap: 1.8rem;
  }
  .footer__nav {
    flex-direction: column;
    gap: 1rem;
  }
  .footer__nav a {
    font-size: 0.95rem;
    display: block;
    padding: 0.3rem 0;
  }
}

/* Story Section styling */
.story-block {
  max-width: 800px;
  margin: 0 auto;
}

.story-lead {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.5;
  color: var(--color-primary);
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
  padding-bottom: 1.5rem;
}

.story-lead::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--color-accent);
}

.story-content {
  text-align: left;
  background: var(--color-light);
  padding: 3.5rem 3rem;
  border-radius: 12px;
  border-left: 5px solid var(--color-accent);
  box-shadow: 0 15px 35px rgba(0,0,0,0.02);
}

.story-content p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #444;
}

.story-content p:not(:last-child) {
  margin-bottom: 1.8rem;
}

@media (max-width: 768px) {
  .story-content {
    padding: 2.2rem 1.5rem;
  }
}

/* Pricing Section */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.pricing-card {
  background: var(--color-white);
  padding: 3rem 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--color-border);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  text-align: left;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 139, 180, 0.08);
  border-color: var(--color-accent);
}

.pricing-card__badge {
  position: absolute;
  top: 1.5rem;
  left: 2rem;
  background: rgba(0, 162, 209, 0.1);
  color: var(--color-accent);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
}

.pricing-card__title {
  font-size: 1.4rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.pricing-card__price {
  font-family: var(--font-serif);
  color: var(--color-accent);
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1.5rem;
}

.pricing-card__price .price-num {
  font-size: 2.2rem;
  font-weight: 700;
}

.pricing-card__price .price-unit {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-left: 0.25rem;
}

.pricing-card__desc {
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.pricing-card__features {
  list-style: none;
  padding: 0;
  margin-top: auto;
}

.pricing-card__features li {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 1.5rem;
}

.pricing-card__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: bold;
}

/* Step Flow */
.step-flow {
  background: var(--color-white);
  padding: 3rem 2rem;
  border-radius: 12px;
  margin-bottom: 4rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.02);
  border: 1px solid var(--color-border);
  text-align: left;
}

.step-flow__title {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: var(--color-primary);
  text-align: center;
}

.step-flow__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  position: relative;
}

.step-flow__item {
  position: relative;
}

.step-flow__num {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: var(--color-accent);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.step-flow__item-title {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.step-flow__text {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* Calendar Tabs */
.calendar-tabs-wrapper {
  margin-top: 3rem;
}

.calendar-tabs-title {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: var(--color-primary);
}

.calendar-tabs-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.calendar-tabs-nav .tab-btn {
  flex: 1;
  max-width: 250px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  padding: 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-primary);
  transition: all var(--transition-fast);
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.calendar-tabs-nav .tab-btn:hover {
  border-color: var(--color-accent);
  background: rgba(0, 162, 209, 0.02);
}

.calendar-tabs-nav .tab-btn.active {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
  box-shadow: 0 6px 20px rgba(0, 139, 180, 0.15);
}

.calendar-tabs-content .tab-panel {
  display: none;
}

.calendar-tabs-content .tab-panel.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .step-flow__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .calendar-tabs-nav {
    flex-direction: column;
    align-items: center;
  }
  .calendar-tabs-nav .tab-btn {
    max-width: 100%;
    width: 100%;
  }
}

/* ==========================================================================
   Support Scope Diamond Layout & Curved Connectors (Compact One-Screen)
   ========================================================================== */
.diamond-scope-wrapper {
  position: relative;
  max-width: 1020px;
  margin: 0 auto;
  padding: 0.5rem 0 1rem;
}

.diamond-svg-connectors {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.diamond-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 135px 1fr;
  grid-template-rows: auto auto auto;
  gap: 1.8rem 2.2rem;
  align-items: center;
  justify-items: center;
}

.diamond-grid .card-top {
  grid-column: 1 / -1;
  grid-row: 1 / 2;
  width: 100%;
  max-width: 400px;
  justify-self: center;
}

.diamond-grid .card-right {
  grid-column: 3 / 4;
  grid-row: 2 / 3;
  width: 100%;
  max-width: 400px;
  justify-self: start;
}

.diamond-grid .card-bottom {
  grid-column: 1 / -1;
  grid-row: 3 / 4;
  width: 100%;
  max-width: 400px;
  justify-self: center;
}

.diamond-grid .card-left {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
  width: 100%;
  max-width: 400px;
  justify-self: end;
}

.diamond-center-hub {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, #071E2B 0%, #008BB4 100%);
  box-shadow: 0 8px 24px rgba(0, 139, 180, 0.28), inset 0 2px 6px rgba(255,255,255,0.25);
  border: 3px solid #F7D070;
  color: var(--color-white);
  text-align: center;
  padding: 0.6rem;
  z-index: 3;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.diamond-center-hub:hover {
  transform: scale(1.06);
  box-shadow: 0 12px 30px rgba(0, 139, 180, 0.38), inset 0 2px 8px rgba(255,255,255,0.35);
}

.diamond-center-hub__title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #F7D070;
  line-height: 1.25;
  margin-bottom: 0.15rem;
  font-family: var(--font-serif);
}

.diamond-center-hub__sub {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.04em;
  font-weight: 500;
}

.diamond-card {
  position: relative;
  background: #FFFFFF;
  border-radius: 16px;
  padding: 1.35rem 1.75rem;
  border: 1px solid rgba(203, 213, 225, 0.85);
  box-shadow: 0 10px 30px rgba(7, 30, 43, 0.05), 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.diamond-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-primary) 50%, var(--color-gold) 100%);
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.diamond-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(0, 162, 209, 0.5);
  box-shadow: 0 20px 40px rgba(0, 139, 180, 0.16), 0 4px 12px rgba(7, 30, 43, 0.04);
}

.diamond-card:hover::before {
  opacity: 1;
}

.diamond-card__header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.5rem;
}

.diamond-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #071E2B 0%, #008BB4 100%);
  color: #F7D070;
  font-size: 1.1rem;
  font-weight: 800;
  font-family: var(--font-sans);
  box-shadow: 0 4px 12px rgba(7, 30, 43, 0.2), inset 0 1px 2px rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(247, 208, 112, 0.4);
  flex-shrink: 0;
  letter-spacing: -0.02em;
}

.diamond-card__title {
  font-size: 1.18rem;
  font-weight: 700;
  color: #071E2B;
  margin: 0;
  line-height: 1.35;
  font-family: var(--font-serif);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.diamond-card__desc {
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.65;
  margin: 0;
  }
  .step-flow__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .calendar-tabs-nav {
    flex-direction: column;
    align-items: center;
  }
  .calendar-tabs-nav .tab-btn {
    max-width: 100%;
    width: 100%;
  }
}

/* ==========================================================================
   Support Scope Diamond Layout & Curved Connectors (Compact One-Screen)
   ========================================================================== */
.diamond-scope-wrapper {
  position: relative;
  max-width: 1020px;
  margin: 0 auto;
  padding: 0.5rem 0 1rem;
}

.diamond-svg-connectors {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.diamond-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 135px 1fr;
  grid-template-rows: auto auto auto;
  gap: 1.8rem 2.2rem;
  align-items: center;
  justify-items: center;
}

.diamond-grid .card-top {
  grid-column: 1 / -1;
  grid-row: 1 / 2;
  width: 100%;
  max-width: 400px;
  justify-self: center;
}

.diamond-grid .card-right {
  grid-column: 3 / 4;
  grid-row: 2 / 3;
  width: 100%;
  max-width: 400px;
  justify-self: start;
}

.diamond-grid .card-bottom {
  grid-column: 1 / -1;
  grid-row: 3 / 4;
  width: 100%;
  max-width: 400px;
  justify-self: center;
}

.diamond-grid .card-left {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
  width: 100%;
  max-width: 400px;
  justify-self: end;
}

.diamond-center-hub {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, #071E2B 0%, #008BB4 100%);
  box-shadow: 0 8px 24px rgba(0, 139, 180, 0.28), inset 0 2px 6px rgba(255,255,255,0.25);
  border: 3px solid #F7D070;
  color: var(--color-white);
  text-align: center;
  padding: 0.6rem;
  z-index: 3;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.diamond-center-hub:hover {
  transform: scale(1.06);
  box-shadow: 0 12px 30px rgba(0, 139, 180, 0.38), inset 0 2px 8px rgba(255,255,255,0.35);
}

.diamond-center-hub__title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #F7D070;
  line-height: 1.25;
  margin-bottom: 0.15rem;
  font-family: var(--font-serif);
}

.diamond-center-hub__sub {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.04em;
  font-weight: 500;
}

.diamond-card {
  position: relative;
  background: #FFFFFF;
  border-radius: 16px;
  padding: 1.35rem 1.75rem;
  border: 1px solid rgba(203, 213, 225, 0.85);
  box-shadow: 0 10px 30px rgba(7, 30, 43, 0.05), 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.diamond-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-primary) 50%, var(--color-gold) 100%);
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.diamond-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(0, 162, 209, 0.5);
  box-shadow: 0 20px 40px rgba(0, 139, 180, 0.16), 0 4px 12px rgba(7, 30, 43, 0.04);
}

.diamond-card:hover::before {
  opacity: 1;
}

.diamond-card__header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.5rem;
}

.diamond-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #071E2B 0%, #008BB4 100%);
  color: #F7D070;
  font-size: 1.1rem;
  font-weight: 800;
  font-family: var(--font-sans);
  box-shadow: 0 4px 12px rgba(7, 30, 43, 0.2), inset 0 1px 2px rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(247, 208, 112, 0.4);
  flex-shrink: 0;
  letter-spacing: -0.02em;
}

.diamond-card__title {
  font-size: 1.18rem;
  font-weight: 700;
  color: #071E2B;
  margin: 0;
  line-height: 1.35;
  font-family: var(--font-serif);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.diamond-card__desc {
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.65;
  margin: 0;
  font-weight: 400;
}

/* Node dots removed per user request */

@media (max-width: 900px) {
  .diamond-svg-connectors {
    display: none;
  }
  
  .diamond-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 1.2rem;
  }
  
  .diamond-grid .card-top,
  .diamond-grid .card-right,
  .diamond-grid .card-bottom,
  .diamond-grid .card-left {
    grid-column: 1 / -1;
    grid-row: auto;
    max-width: 100%;
  }
  
  .diamond-center-hub {
    display: none;
  }
  
  .diamond-card__node {
    display: none;
  }
  
  .diamond-card__title {
    white-space: normal;
  }
}

/* Gateway Card Component Base Styles */
.gateway-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2.2rem 1.8rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gateway-card__icon {
  background: transparent !important;
  padding: 0 !important;
  margin-bottom: 1.2rem;
  display: inline-flex;
  align-items: center;
}

.gateway-card__desc {
  color: #334155 !important;
  font-size: 0.95rem;
  line-height: 1.75;
  margin: 0;
}

/* ==========================================================================
   Floating Side CTA Button (画面右側固定バナー)
   ========================================================================== */
.floating-cta-side {
  position: fixed;
  right: 0;
  top: 70%;
  transform: translateY(-50%);
  z-index: 990;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #009fe8;
  background: linear-gradient(180deg, #00A2D1 0%, #008FD5 100%);
  padding: 16px 11px 20px 11px;
  border-radius: 6px 0 0 6px;
  box-shadow: -4px 6px 20px rgba(0, 116, 188, 0.32);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.floating-cta-side:hover {
  transform: translateY(-50%) translateX(-6px);
  box-shadow: -6px 8px 25px rgba(0, 116, 188, 0.48);
  background: linear-gradient(180deg, #00B4EA 0%, #0098E0 100%);
}

.floating-cta-side__icon {
  width: 26px;
  height: 38px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-cta-side__icon svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 1px 3px rgba(0, 50, 100, 0.3));
}

.floating-cta-side__text {
  writing-mode: vertical-rl;
  -webkit-writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: #FFFFFF;
  line-height: 1;
  text-shadow: 0 1px 4px rgba(0, 50, 100, 0.3);
}

@media (max-width: 768px) {
  .floating-cta-side {
    display: none; /* モバイル時は画面を圧迫しないよう非表示 */
  }
}

/* ==========================================================================
   Mobile Bottom Floating CTA Bar (スマホ専用 画面下部固定予約バー)
   ========================================================================== */
.mobile-bottom-cta {
  display: none;
}

@media (max-width: 768px) {
  .mobile-bottom-cta {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    padding: 10px 16px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(0, 162, 209, 0.2);
    box-shadow: 0 -4px 25px rgba(0, 45, 90, 0.15);
    box-sizing: border-box;
    animation: mobileCtaSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  }

  @keyframes mobileCtaSlideUp {
    from {
      transform: translateY(100%);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }

  .mobile-bottom-cta__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #00A2D1 0%, #0066B3 100%);
    color: #FFFFFF !important;
    border-radius: 24px;
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.03em;
    box-shadow: 0 4px 15px rgba(0, 102, 179, 0.35);
    transition: all 0.25s ease;
    border: none;
    box-sizing: border-box;
  }

  .mobile-bottom-cta__btn:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(0, 102, 179, 0.4);
    background: linear-gradient(135deg, #008FD5 0%, #004C87 100%);
  }

  .mobile-bottom-cta__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }
  .mobile-bottom-cta__icon svg {
    width: 18px;
    height: 18px;
  }

  .mobile-bottom-cta__text {
    flex-grow: 0;
    white-space: nowrap;
  }

  .mobile-bottom-cta__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
  }
  .mobile-bottom-cta__arrow svg {
    width: 14px;
    height: 14px;
  }
}


/* ==========================================================================
   Header Dropdown Navigation (Services Dropdown) — plans/98
   ========================================================================== */

.header__nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

/* 親メニューリンク */
.header__dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.header__dropdown-icon {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
  color: #64748B;
  flex-shrink: 0;
}

.header__dropdown.is-open .header__dropdown-trigger {
  color: var(--header-theme-color, var(--color-brand-blue));
}

.header__dropdown.is-open .header__dropdown-icon {
  transform: rotate(180deg);
  color: var(--header-theme-color, var(--color-brand-blue));
}

/* ドロップダウンメニュー本体 (PC) */
.header__dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  padding-top: 14px; /* ホバーブリッジ（マウス移動時に途切れないよう確保） */
  min-width: 380px; /* 「閲覧中」バッジ表示時も説明文が折り返さない幅 */
  max-width: 380px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s ease;
  z-index: 1020;
}

.header__dropdown-inner {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 102, 179, 0.12);
  border-radius: 16px;
  box-shadow: 0 16px 36px -6px rgba(0, 76, 135, 0.14), 0 4px 12px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  padding: 8px;
}

.header__dropdown-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.header__nav-list .header__dropdown-item {
  display: block;
  width: 100%;
}

/* 親ナビの区切り線（.header__nav-list li:not(:last-child)::after）を子項目へ波及させない */
.header__dropdown-item::after {
  display: none !important;
}

.header__dropdown-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  transition: background-color 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.header__dropdown-link:hover,
.header__dropdown-link:focus-visible {
  background-color: var(--dd-tint, rgba(0, 102, 179, 0.06));
  transform: translateX(4px);
}

.header__dropdown-badge {
  font-family: var(--font-en, 'Montserrat', sans-serif);
  font-size: 11px;
  font-weight: 700;
  color: var(--dd-badge-ink, #FFFFFF);
  background: var(--dd-color-bg, linear-gradient(135deg, #0EA5E9 0%, #0066B3 100%));
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  min-width: 30px;
  text-align: center;
}

.header__dropdown-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 0;
}

.header__dropdown-title {
  font-size: 14px;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.35;
  white-space: nowrap;
  transition: color 0.18s ease;
}

.header__dropdown-link:hover .header__dropdown-title,
.header__dropdown-link:focus-visible .header__dropdown-title,
.header__dropdown-link.is-current .header__dropdown-title {
  color: var(--dd-color, var(--color-brand-blue, #0066B3));
}

.header__dropdown-desc {
  font-size: 11px;
  color: #64748B;
  font-weight: 400;
  line-height: 1.3;
  margin-top: 2px;
}

.header__dropdown-arrow {
  color: #94A3B8;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.header__dropdown-link:hover .header__dropdown-arrow,
.header__dropdown-link:focus-visible .header__dropdown-arrow {
  opacity: 1;
  color: var(--color-brand-blue, #0066B3);
  transform: translateX(0);
}

/* フッター領域（サービス・料金一覧へ） */
.header__dropdown-footer {
  margin: 6px -8px -8px;
  padding: 8px;
  border-top: 1px solid rgba(0, 102, 179, 0.08);
  background: rgba(248, 250, 252, 0.8);
}

.header__dropdown-footer-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-brand-blue, #0066B3);
  background: rgba(0, 102, 179, 0.03);
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.header__dropdown-footer-link:hover,
.header__dropdown-footer-link:focus-visible {
  background: rgba(0, 102, 179, 0.09);
}

/* PC: ホバー / キーボードフォーカス / タップ(.is-open) で表示 */
@media (min-width: 1025px) {
  .header__dropdown.is-open .header__dropdown-menu,
  .header__dropdown:focus-within .header__dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
}

@media (min-width: 1025px) and (hover: hover) {
  .header__dropdown:hover .header__dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
  .header__dropdown:hover .header__dropdown-trigger {
    color: var(--header-theme-color, var(--color-brand-blue));
  }
  .header__dropdown:hover .header__dropdown-icon {
    transform: rotate(180deg);
    color: var(--header-theme-color, var(--color-brand-blue));
  }
}

/* モバイル（ハンバーガーメニュー内）: アコーディオン */
@keyframes headerDropdownAccordion {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1024px) {
  /* アコーディオン展開時に縦にはみ出しても上下とも到達できるようスクロール化 */
  .header__nav-list {
    justify-content: flex-start;
    overflow-y: auto;
  }
  .header__nav-list > li:first-child {
    margin-top: auto;
  }
  .header__nav-list > li:last-child {
    margin-bottom: auto;
  }

  .header__nav-list .header__dropdown-trigger {
    min-height: 48px;
    gap: 8px;
  }

  .header__dropdown-icon {
    width: 12px;
    height: 8px;
  }

  .header__dropdown-menu {
    position: static;
    transform: none;
    padding-top: 0;
    min-width: 0;
    max-width: none;
    width: 100%;
    display: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: none;
  }

  .header__dropdown.is-open .header__dropdown-menu {
    display: block;
    animation: headerDropdownAccordion 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .header__dropdown-inner {
    background: rgba(0, 102, 179, 0.03);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(0, 102, 179, 0.08);
    box-shadow: none;
    margin-top: 4px;
    padding: 6px;
  }

  .header__dropdown-link {
    min-height: 48px;
    padding: 8px 12px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0, 102, 179, 0.15);
  }

  .header__dropdown-link:hover,
  .header__dropdown-link:focus-visible {
    transform: none;
  }

  .header__dropdown-title {
    font-size: 15px;
    white-space: normal;
  }

  .header__dropdown-desc {
    display: none; /* スマホではコンパクトに */
  }

  .header__dropdown-arrow {
    opacity: 1;
    transform: none;
  }

  .header__dropdown-footer {
    margin: 6px -6px -6px;
    padding: 6px;
  }

  .header__dropdown-footer-link {
    min-height: 48px;
    font-size: 13px;
  }
}

/* ==========================================================================
   Header Service Dropdown Current State & Pill Badge — plans/99
   ========================================================================== */

/* 既存の .header__nav-link.is-active（シアンのピル型タブ）をトリガーでは打ち消し、
   現在地はピルバッジ側で表現する */
.header__nav-link.header__dropdown-trigger.is-active {
  color: var(--header-theme-color, var(--color-brand-blue)) !important;
  font-weight: 500;
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0.2rem 0;
}

/* 親トリガー内の現在地バッジ（共通ベース：サイズ拡大・視認性向上） */
.header__current-pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1;
  padding: 4px 10px !important;
  border-radius: 999px !important;
  letter-spacing: 0.03em !important;
  margin-left: 4px;
  white-space: nowrap;
  animation: pillFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05) !important;
  /* デフォルトフォールバック（ブルー：サービス・料金一覧など） */
  color: var(--color-brand-blue, #0066B3);
  background: rgba(0, 102, 179, 0.08);
  border: 1px solid rgba(0, 102, 179, 0.2);
}

@keyframes pillFadeIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(1px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ホバー時もピルバッジのコントラストを保つ */
.header__dropdown-trigger:hover .header__current-pill,
.header__dropdown.is-open .header__current-pill {
  background: rgba(0, 102, 179, 0.12);
  border-color: rgba(0, 102, 179, 0.3);
}

/* サービス固有イメージカラー（サービス・料金ページ /service/ の4色と同期） */

/* ─── 01. 税務調査依頼（フォレストグリーン） ─── */
.header__current-pill--green {
  color: #1B4D3E !important;
  background: #ECF5F1 !important;
  border: 1px solid rgba(27, 77, 62, 0.28) !important;
  box-shadow: 0 1px 4px rgba(27, 77, 62, 0.08) !important;
}
.header__dropdown-trigger:hover .header__current-pill--green,
.header__dropdown.is-open .header__current-pill--green {
  background: #E1EFEA !important;
  border-color: rgba(27, 77, 62, 0.45) !important;
}

/* ─── 02. 顧問サービス（アンバーオレンジ） ─── */
.header__current-pill--orange {
  color: #B45309 !important;
  background: #FFF7E6 !important;
  border: 1px solid rgba(217, 119, 6, 0.32) !important;
  box-shadow: 0 1px 4px rgba(217, 119, 6, 0.1) !important;
}
.header__dropdown-trigger:hover .header__current-pill--orange,
.header__dropdown.is-open .header__current-pill--orange {
  background: #FEEDC8 !important;
  border-color: rgba(217, 119, 6, 0.5) !important;
}

/* ─── 03. 税理士法人向けコンサル（ロイヤルパープル） ─── */
.header__current-pill--purple {
  color: #4338CA !important;
  background: #EEF0FF !important;
  border: 1px solid rgba(67, 56, 202, 0.28) !important;
  box-shadow: 0 1px 4px rgba(67, 56, 202, 0.08) !important;
}
.header__dropdown-trigger:hover .header__current-pill--purple,
.header__dropdown.is-open .header__current-pill--purple {
  background: #E0E3FF !important;
  border-color: rgba(67, 56, 202, 0.45) !important;
}

/* ─── 04. 税理士向け講座（クリムゾンワイン） ─── */
.header__current-pill--wine {
  color: #8E1B3E !important;
  background: #FBF1F3 !important;
  border: 1px solid rgba(123, 30, 56, 0.28) !important;
  box-shadow: 0 1px 4px rgba(123, 30, 56, 0.08) !important;
}
.header__dropdown-trigger:hover .header__current-pill--wine,
.header__dropdown.is-open .header__current-pill--wine {
  background: #F4E0E4 !important;
  border-color: rgba(123, 30, 56, 0.45) !important;
}

/* ドロップダウン各項目のイメージカラー（サービス・料金ページ /service/ の4色と同期）。未指定の項目はブランドブルー */
.header__dropdown-link[href="/tax-investigation/"] {
  --dd-color: #1B4D3E;
  --dd-color-bg: linear-gradient(135deg, #2E6B56 0%, #1B4D3E 100%);
  --dd-badge-ink: #FFFFFF;
  --dd-tint: rgba(27, 77, 62, 0.12);
  --dd-soft: #ECF5F1;
  --dd-line: rgba(27, 77, 62, 0.22);
  --dd-shadow: rgba(27, 77, 62, 0.3);
}
.header__dropdown-link[href="/advisory/"] {
  --dd-color: #B45309;
  --dd-color-bg: linear-gradient(135deg, #FBBF24 0%, #F59E0B 45%, #D97706 100%);
  --dd-badge-ink: #FFFFFF;
  --dd-tint: rgba(217, 119, 6, 0.12);
  --dd-soft: #FFF7E6;
  --dd-line: rgba(217, 119, 6, 0.24);
  --dd-shadow: rgba(217, 119, 6, 0.3);
}
.header__dropdown-link[href="/zeirishi-consulting/"] {
  --dd-color: #4338CA;
  --dd-color-bg: linear-gradient(135deg, #5B54E8 0%, #4338CA 100%);
  --dd-badge-ink: #FFFFFF;
  --dd-tint: rgba(67, 56, 202, 0.1);
  --dd-soft: #EEF0FF;
  --dd-line: rgba(67, 56, 202, 0.22);
  --dd-shadow: rgba(67, 56, 202, 0.3);
}
.header__dropdown-link[href="/zeirishi-course/"] {
  --dd-color: #8E1B3E;
  --dd-color-bg: linear-gradient(135deg, #BE123C 0%, #9F1239 45%, #7B1E38 100%);
  --dd-badge-ink: #FFFFFF;
  --dd-tint: rgba(123, 30, 56, 0.1);
  --dd-soft: #FBF1F3;
  --dd-line: rgba(123, 30, 56, 0.22);
  --dd-shadow: rgba(123, 30, 56, 0.3);
}

/* ドロップダウン内部の現在地アイテム (.is-current) */
.header__dropdown-link.is-current {
  background: var(--dd-tint, rgba(0, 102, 179, 0.08));
  border-left: 4px solid var(--dd-color, var(--color-brand-blue, #0066B3));
  padding-left: 10px; /* 左ボーダー4px分の調整（基準 14px） */
  box-shadow: inset 0 0 0 1px var(--dd-line, rgba(0, 102, 179, 0.2));
}

.header__dropdown-link.is-current .header__dropdown-desc {
  color: #475569;
}

.header__dropdown-link.is-current .header__dropdown-title {
  color: var(--dd-color, var(--color-brand-blue, #0066B3));
  font-weight: 800;
}

.header__dropdown-link.is-current .header__dropdown-badge {
  background: var(--dd-color-bg, linear-gradient(135deg, #0EA5E9 0%, #0066B3 100%));
  box-shadow: none;
  color: #FFFFFF;
}

.header__dropdown-link.is-current .header__dropdown-status {
  background: var(--dd-color, var(--color-brand-blue, #0066B3));
  box-shadow: 0 2px 6px var(--dd-shadow, rgba(0, 102, 179, 0.25));
}

/* 現在地アイテムは矢印の代わりに「閲覧中」を表示 */
.header__dropdown-link.is-current .header__dropdown-arrow,
.header__dropdown-footer-link.is-current > svg {
  display: none;
}

/* サービス・料金一覧ページ閲覧時のフッターリンク */
.header__dropdown-footer-link.is-current {
  background: rgba(0, 102, 179, 0.09);
  box-shadow: inset 0 0 0 1px rgba(0, 102, 179, 0.18);
}

/* 「閲覧中」ステータスラベル */
.header__dropdown-status {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  color: #FFFFFF;
  background: var(--color-brand-blue, #0066B3);
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: auto;
  box-shadow: 0 2px 6px rgba(0, 102, 179, 0.25);
}

.header__dropdown-footer-link .header__dropdown-status {
  margin-left: 4px;
}

/* モバイル表示時の現在地ピル */
@media (max-width: 1024px) {
  .header__nav-list .header__nav-link.header__dropdown-trigger.is-active {
    padding: 0.85rem 1rem;
    font-weight: 600;
  }

  .header__current-pill {
    font-size: 11.5px !important;
    padding: 3px 8px !important;
  }

  .header__dropdown-link.is-current {
    padding-left: 8px; /* 左ボーダー4px分の調整（基準 12px） */
  }

  .header__dropdown-status {
    font-size: 9.5px;
    padding: 1px 5px;
  }
}

/* ==========================================================================
   ご相談の場所（.place-band）：サービスページの「流れ」の直後に置く実写の帯
   左＝ラウンジの写真（白いふち＋左下にずらした淡い台）／右＝写真に重ねた白いカード
   色は各ページで --place-c（文字・線）／--place-soft（淡い面）を上書き。ホバーでは動かさない
   ========================================================================== */
.place-band {
  --place-c: #0066B3;
  --place-soft: #E6F2FB;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  max-width: 1080px;
  margin: clamp(64px, 7vw, 104px) auto 0;
}

.place-band__photo {
  position: relative;
  isolation: isolate;
  grid-column: 1 / 9;
  grid-row: 1;
  margin: 0 0 18px 18px;
}

.place-band__photo::before {
  content: '';
  position: absolute;
  inset: 18px 18px -18px -18px;
  z-index: -1;
  border-radius: var(--radius-module, 6px);
  background: var(--place-soft);
}

.place-band__photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 8px solid #FFFFFF;
  border-radius: var(--radius-module, 6px);
  background: #DCE6F0;
  box-shadow: 0 14px 36px -16px rgba(0, 58, 107, 0.2), 0 2px 6px rgba(0, 58, 107, 0.04);
}

.place-band__card {
  position: relative;
  z-index: 1;
  grid-column: 8 / 13;
  grid-row: 1;
  padding: clamp(28px, 3vw, 40px) clamp(24px, 2.8vw, 36px);
  border-top: 4px solid var(--place-c);
  border-radius: var(--radius-module, 6px);
  background: #FFFFFF;
  box-shadow: 0 24px 56px -22px rgba(0, 43, 77, 0.35), 0 2px 6px rgba(0, 58, 107, 0.05);
  text-align: left;
}

.place-band__label {
  display: inline-block;
  padding: 3px 14px;
  border-radius: 999px;
  background: var(--place-soft);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.6;
  color: var(--place-c);
}

main .place-band__title {
  margin: 14px 0 0;
  font-size: clamp(1.28rem, 1.65vw, 1.5rem);
  font-weight: 700;
  line-height: 1.48;
  letter-spacing: 0.02em;
  color: #0A192F !important;
}

.place-band__text {
  margin: 14px 0 0;
  font-size: clamp(1rem, 1.1vw, 1.08rem);
  line-height: 1.9;
  color: #1D3B5C;
}

.place-band__text strong { font-weight: 700; color: #0A192F; }

.place-band__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 15px;
  font-weight: 700;
  color: var(--place-c);
  text-decoration: none;
}

.place-band__link:hover { text-decoration: underline; text-underline-offset: 4px; }
.place-band__link:focus-visible { outline: 2px solid #002B4D; outline-offset: 3px; }

/* 写真下のクレジット（Compass Offices：掲載許諾の条件）。右側は白いカードが重なるので左寄せ */
.place-band__credit {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: #475569;
  text-align: left;
  opacity: 0.85;
}

@media (max-width: 1023px) {
  .place-band { display: block; max-width: 680px; }
  .place-band__photo { margin: 0 0 0 12px; }
  .place-band__photo::before { inset: 12px 12px -12px -12px; }
  .place-band__card { margin: 28px 16px 0; }
}

@media (max-width: 767px) {
  .place-band__photo img { border-width: 6px; aspect-ratio: 4 / 3; }
  .place-band__card { margin: 24px 8px 0; padding: 26px 20px; }
  .place-band__credit { margin-top: 4px; font-size: 10px; }
  .place-band__text { font-size: 16.5px; line-height: 1.82; }
}


/* ==========================================================================
   最後のお問い合わせの白い面に、うっすら実写（.cta-photo）
   自社 plan 122 の発展形：右側だけに太陽と塔の写真を薄く敷き、文字側へ白く溶かす。
   白い面には .cta-photo-host を付け、最初の子に <span class="cta-photo"> を置く
   ========================================================================== */
.cta-photo-host { position: relative; isolation: isolate; }

.cta-photo {
  position: absolute;
  inset: 0 0 0 38%;
  z-index: -1;
  border-radius: inherit;
  background: url('/assets/images/office/sun-tower.webp') 30% 40% / cover no-repeat;
  opacity: 0.22;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
}

@media (max-width: 767px) {
  .cta-photo {
    inset: 0;
    opacity: 0.14;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 70%);
            mask-image: linear-gradient(180deg, transparent 0%, #000 70%);
  }
}

/* ==========================================================================
   実写写真（plans/102）：クレジット「Compass Offices」＋各ページの写真枠
   ========================================================================== */
.cmp-photo-credit,
.prf-photo-credit {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--home-text-sub, #475569);
  text-align: right;
  opacity: 0.85;
}

/* 全幅パノラマ・ブレイク共通 */
.prf-photo-break,
.cmp-vista-wrap {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 64px;
  margin-bottom: 64px;
  overflow: hidden;
}

.prf-photo-break img,
.cmp-vista-photo img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

/* 全幅写真のクレジットは画面の端に付かないよう内側へ */
.prf-photo-break .prf-photo-credit,
.cmp-vista-photo .cmp-photo-credit {
  padding-right: 24px;
}

/* 会社概要：空と足元を背景へ溶け込ませる（背景が空色なので白帯ではなくマスクでフェード） */
.cmp-vista-photo {
  position: relative;
  margin: 0;
}
.cmp-vista-photo img {
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
}

/* お知らせ：一覧とCTAのあいだ。写真は中央、細い線が画面の左右の端から写真へ向かう。
   ラベル（FROM UMEDA）は写真の上の中央に単独で（線では挟まない＝見出しと見間違えないように） */
.news-vista {
  display: grid;
  grid-template-columns: 1fr min(880px, 100vw - var(--nws-gutter, 16px) * 4) 1fr;
  align-items: center;
  margin-top: clamp(72px, 9vw, 112px);
}
.news-vista__label {
  grid-column: 1 / -1;
  margin: 0 0 18px;
  font: 700 13px/1 'Montserrat', sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  color: #004C87;
}
.news-vista__line {
  height: 1px;
  margin-bottom: 1.6em; /* クレジットの分だけ上げて、写真の縦の中央に合わせる */
  background: rgba(0, 76, 135, 0.4);
}
.news-vista__line--l { margin-right: clamp(16px, 2vw, 28px); }
.news-vista__line--r { margin-left: clamp(16px, 2vw, 28px); }
.news-vista__photo { margin: 0; }
.news-vista__photo img {
  display: block;
  width: 100%;
  height: clamp(220px, 24vw, 360px);
  object-fit: cover;
  object-position: 50% 45%;
  border-radius: 8px;
}

/* 税理士向け講座：受講後のワイン帯（.crs-shift__answer）の右側に、羽根ペンと地球儀の斜めのカットを溶かす。
   写真はグレーにして mix-blend-mode: luminosity でワインに乗せる（＝ワインのモノトーン）。新しい枠は足さず、文字はワインの上のまま */
.crs-shift__answer--photo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.crs-shift__answer--photo > * {
  position: relative;
  z-index: 1;
}
.crs-shift__answer--photo::before {
  content: '';
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: 58%;
  background: url(/assets/images/office/desk-angle.webp) 60% 55% / cover no-repeat;
  filter: grayscale(1) contrast(1.15);
  mix-blend-mode: luminosity;
  opacity: 0.55;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 60%);
          mask-image: linear-gradient(90deg, transparent 0, #000 60%);
}

/* スマホ対応 */
@media (max-width: 767px) {
  .prf-photo-break,
  .cmp-vista-wrap {
    margin-top: 40px;
    margin-bottom: 40px;
  }
  .prf-photo-break img,
  .cmp-vista-photo img {
    height: 220px;
  }
  .cmp-photo-credit,
  .prf-photo-credit {
    font-size: 10px;
  }
  .prf-photo-break .prf-photo-credit,
  .cmp-vista-photo .cmp-photo-credit {
    padding-right: 16px;
  }
  /* スマホは左右の線を外す */
  .news-vista {
    grid-template-columns: minmax(0, 1fr);
    padding-inline: var(--nws-gutter, 16px);
  }
  .news-vista__line { display: none; }
  .cmp-vista-photo img {
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
            mask-image: linear-gradient(180deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
  }
  .crs-shift__answer--photo::before {
    bottom: auto;
    width: 100%;
    height: 60%;
    opacity: 0.35;
    -webkit-mask-image: linear-gradient(200deg, #000 10%, transparent 70%);
            mask-image: linear-gradient(200deg, #000 10%, transparent 70%);
  }
}
