@charset "UTF-8";
/* 署名フォント(Zen Kurenaido, Shippori Mincho, Noto Serif JP)は about.html の <link> で読み込み */

/* ==================== Reset & Base ==================== */
:root {
  --bg-color: #050505;
  --text-color: #f0f0f0;
  --accent-color: #c4b5fd;
  /* ラベンダー */
  --accent-hover: #a78bfa;
  /* 英語 見出し・装飾 */
  --font-display: "Cormorant Garamond", serif;
  /* 英語 UI・ナビ */
  --font-ui: "Raleway", sans-serif;
  /* 日本語 見出し・メイン */
  --font-main: "Zen Old Mincho", serif;
  /* 日本語 本文・説明 */
  --font-jp: "Zen Kaku Gothic New", sans-serif;
}

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

/* アクセシビリティ: 視覚的に非表示、スクリーンリーダー向け */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-main);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Fallback for No-WebGL Environments */
body.no-webgl {
  background: radial-gradient(circle at center, #1a1a2e 0%, #000000 100%);
}

/* スクロールバーのカスタマイズ */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}

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

/* ==================== Canvas Container ==================== */
#canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: auto;
  /* インタラクティブ有効 */
}

/* ==================== Loading & Logo (Old/Fallback) ==================== */
#logo-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
}

.glitch-text {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: bold;
  color: #fff;
  position: absolute;
  /* 親コンテナ全体を覆い、子要素のセンタリング基準を画面全体にする */
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.final-logo {
  transition: opacity 2s ease;
}

/* エラーメッセージスタイル */
.system-msg {
  position: absolute;
  bottom: 20px;
  left: 20px;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  z-index: 1000;
}

/* プログレスバー */
.progress-container {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: var(--accent-color);
  box-shadow: 0 0 10px var(--accent-color);
  transition: width 0.1s linear;
}

/* ==================== Navigation ==================== */
.navigation {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  /* Ensure it's on top */
  width: 90%;
  /* Slightly reduced width */
  max-width: 600px;
  /* More compact */

  /* Glassmorphism Pill Style - Refined */
  background: rgba(10, 10, 15, 0.7);
  /* More transparent */
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  /* Highlight top border */
  border-radius: 100px;
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  padding: 8px 30px;

  /* 初期状態: 非表示（Loadingが終わるまで隠す） */
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.8s ease-out,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* ナビゲーション表示状態 */
.navigation.visible {
  opacity: 1;
  pointer-events: auto;
}

/* スクロール連動: モバイルでナビを隠す */
.navigation.nav-hidden {
  transform: translateX(-50%) translateY(calc(100% + 40px));
  opacity: 0;
  pointer-events: none;
}

.navigation:hover {
  box-shadow:
    0 15px 50px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  transform: translateX(-50%) translateY(-2px);
}

.nav-list {
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  height: 100%;
}

.nav-item {
  position: relative;
  text-align: center;
  flex: 1;
}

.nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
  transition: all 0.3s ease;
  opacity: 0.5;
  text-decoration: none;
  /* Reset */
}

.nav-link:hover,
.nav-link.active {
  opacity: 1;
}

.nav-link .en {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1px;
  margin-bottom: 2px;
  display: block;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

.nav-link .jp {
  font-family: var(--font-main);
  font-size: 0.7rem;
  color: var(--accent-color);
  opacity: 0;
  transform: translateY(5px);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: block;
}

.nav-link:hover .jp,
.nav-link.active .jp {
  opacity: 1;
  transform: translateY(0);
}

/* Active Indicator Dot */
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-color);
  box-shadow: 0 0 8px var(--accent-color);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-link.active::after {
  transform: translateX(-50%) scale(1);
}

.nav-link:hover::after {
  /* Hover effect for dot? Maybe slightly displayed */
  transform: translateX(-50%) scale(0.5);
  opacity: 0.5;
}

/* モバイル対応 */
@media (max-width: 768px) {

  /* モバイルではナビを1行に収めるために調整 */
  .navigation {
    padding: 6px 16px;
    bottom: 20px;
  }

  .nav-list {
    flex-wrap: nowrap;
    justify-content: space-around;
    gap: 4px;
  }

  .nav-item {
    flex: 1;
    min-width: auto;
  }

  .nav-link .en {
    font-size: 0.7rem;
    letter-spacing: 0.5px;
  }

  .nav-link .jp {
    font-size: 0.55rem;
  }

  /* ナビバー分の下部余白 */
  body {
    padding-bottom: 80px;
  }

  .glitch-text {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .navigation {
    padding: 5px 8px;
    bottom: 16px;
    width: 96%;
    max-width: none;
    /* 横スクロールのスクロールバー非表示 */
    overflow: hidden;
  }

  .nav-list {
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* スクロールバー非表示 */
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .nav-list::-webkit-scrollbar {
    display: none;
  }

  .nav-item {
    flex: 0 0 auto;
    min-width: 52px;
  }

  .nav-link .en {
    font-size: 0.6rem;
    letter-spacing: 0;
  }

  .nav-link .jp {
    font-size: 0.48rem;
  }

  .nav-link {
    padding: 5px 2px;
  }
}

/* ==================== About Page Styles ==================== */

/* --- Aboutページ ヒーローセクション --- */
.about-hero {
  position: relative;
  z-index: 10;
  padding-top: 60px;
  padding-bottom: 40px;
}

.profile-container {
  position: relative;
  width: 100%;
  height: 520px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  perspective: 1000px;
  /* 3D効果用 */
  overflow: visible;
}

/* --- About 共通セクション --- */
.about-section {
  position: relative;
  z-index: 10;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px 56px;
}

.about-section-label {
  font-family: var(--font-main);
  font-size: 0.65rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: rgba(196, 181, 253, 0.5);
  margin-bottom: 24px;
}

.about-divider {
  width: 32px;
  height: 1px;
  background: rgba(196, 181, 253, 0.12);
  margin: 0 auto 48px;
}

/* --- ② キャッチコピー --- */
.about-quote {
  text-align: center;
  padding-top: 8px;
}

.about-quote-deco {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.about-quote-line {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196, 181, 253, 0.5));
}

.about-quote-line:last-child {
  background: linear-gradient(90deg, rgba(196, 181, 253, 0.5), transparent);
}

.about-quote-symbol {
  font-size: 10px;
  color: rgba(196, 181, 253, 0.5);
}

.about-quote-text {
  font-family: var(--font-main);
  font-size: 1.15rem;
  color: rgba(220, 215, 240, 0.85);
  letter-spacing: 2px;
  margin-top: 20px;
  line-height: 1.8;
}

/* --- ③ ABOUT ME テキスト --- */
.about-body-text {
  font-family: var(--font-jp);
  font-size: 0.9rem;
  line-height: 2.1;
  color: rgba(240, 240, 245, 0.7);
}

/* --- ④ WHAT I DO グリッド --- */
.about-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.about-grid-card {
  background: rgba(20, 16, 40, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(196, 181, 253, 0.1);
  border-radius: 14px;
  padding: 24px 16px;
  text-align: center;
  transition: all 0.3s;
}

.about-grid-card:hover {
  border-color: rgba(196, 181, 253, 0.3);
  transform: translateY(-2px);
}

.about-grid-icon {
  font-size: 24px;
  margin-bottom: 10px;
}

.about-grid-title {
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 6px;
}

.about-grid-desc {
  font-family: var(--font-jp);
  font-size: 0.75rem;
  line-height: 1.7;
  color: rgba(220, 220, 230, 0.5);
}

/* --- ⑤ CLIENT VOICE --- */
.about-voice-card {
  background: rgba(20, 16, 40, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(196, 181, 253, 0.1);
  border-radius: 16px;
  padding: 32px 28px;
  position: relative;
}

.about-voice-mark {
  font-family: var(--font-display);
  font-size: 48px;
  color: rgba(196, 181, 253, 0.15);
  line-height: 1;
  position: absolute;
  top: 16px;
  left: 20px;
}

.about-voice-text {
  font-family: var(--font-jp);
  font-size: 0.9rem;
  line-height: 2;
  color: rgba(220, 215, 240, 0.75);
  font-style: italic;
  margin-top: 8px;
}

.about-voice-author {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: rgba(220, 220, 230, 0.45);
  margin-top: 16px;
  text-align: right;
}

/* --- ⑥ PERSONALITY --- */
.about-personality-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.about-p-item {
  background: rgba(20, 16, 40, 0.5);
  border: 1px solid rgba(196, 181, 253, 0.1);
  border-radius: 12px;
  padding: 18px 16px;
}

.about-p-full {
  grid-column: 1 / -1;
}

.about-p-label {
  font-family: var(--font-ui);
  font-size: 0.55rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(196, 181, 253, 0.5);
  margin-bottom: 6px;
}

.about-p-value {
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: rgba(240, 240, 245, 0.85);
}

.about-p-value-small {
  font-family: var(--font-jp);
  font-size: 0.8rem;
  color: rgba(240, 240, 245, 0.7);
  line-height: 1.6;
}

/* --- ⑦ LINKS --- */
.about-links-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.about-link-card {
  background: rgba(20, 16, 40, 0.5);
  border: 1px solid rgba(196, 181, 253, 0.1);
  border-radius: 10px;
  padding: 16px 8px;
  text-align: center;
  transition: all 0.3s;
  text-decoration: none;
  display: block;
  color: inherit;
}

.about-link-card:hover {
  border-color: rgba(196, 181, 253, 0.35);
  transform: translateY(-2px);
}

.about-link-icon {
  font-size: 20px;
  margin-bottom: 6px;
}

.about-link-name {
  font-family: var(--font-ui);
  font-size: 0.55rem;
  color: rgba(220, 220, 230, 0.5);
  letter-spacing: 1px;
}

.about-view-all {
  color: rgba(196, 181, 253, 0.5);
  font-family: var(--font-ui);
  font-size: 0.7rem;
  text-decoration: none;
  letter-spacing: 1px;
  transition: color 0.3s;
}

.about-view-all:hover {
  color: var(--accent-color);
}

/* --- About モバイル対応 --- */
@media (max-width: 600px) {
  .about-grid-2x2 {
    grid-template-columns: 1fr;
  }

  .about-personality-grid {
    grid-template-columns: 1fr;
  }

  .about-links-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-quote-text {
    font-size: 1rem;
  }

  .profile-container {
    height: auto;
    min-height: 480px;
  }
}

.profile-card {
  position: absolute;
  width: 340px;
  height: 520px;
  background: rgba(20, 20, 25, 0.6);
  /* 半透明 */
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  /* アバター引き上げ分を考慮したパディング */
  padding: 0 1.5rem 1rem;
  /* アバターの上はみ出しを許容 */
  overflow: visible;
  transition:
    width 0.3s,
    height 0.3s;
  /* サイズ変更アニメーション */
  transform-style: preserve-3d;
  /* 子要素も3D */
  /* activeクラスでポインタ有効化 */
  pointer-events: none;
  transform: translateY(50px) scale(0.9);
}

.profile-card.active {
  opacity: 1;
  pointer-events: auto;
}

/* Streamer Mode (Kawaii) */
.streamer-mode {
  background: rgba(255, 240, 245, 0.15);
  /* ピンク系背景 */
  border-color: rgba(255, 182, 193, 0.3);
  box-shadow: 0 0 30px rgba(255, 105, 180, 0.2);
}

.streamer-name {
  font-family: var(--font-jp);
  background: linear-gradient(to right, #ff9a9e, #fecfef);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 10px rgba(255, 105, 180, 0.3);
}

.streamer-role {
  color: #ffb3d0;
  font-family: var(--font-ui);
}

.tag {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 182, 193, 0.4);
  color: #ffb3d0;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-family: var(--font-ui);
}

/* Freelancer Mode (Cool/Mysterious) */
.freelancer-mode {
  background: rgba(10, 10, 15, 0.8);
  /* 濃い黒 */
  border-color: rgba(196, 181, 253, 0.3);
  /* ラベンダー */
  box-shadow: 0 0 40px rgba(100, 50, 200, 0.3);
}

.freelancer-name {
  font-family: var(--font-main);
  background: linear-gradient(to right, #fff, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.2em;
}

.freelancer-role {
  color: #a78bfa;
  font-family: var(--font-ui);
  letter-spacing: 0.1em;
}

.skill {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: rgba(196, 181, 253, 0.9);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(196, 181, 253, 0.3);
  padding: 4px 12px;
  border-radius: 15px;
}

/* Card Visual (Avatar/Symbol) */
.card-visual {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  /* カード上端から引き上げてスペース確保 */
  margin-top: -50px;
  margin-bottom: 0.8rem;
  border: 3px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  /* 透過PNG対策（不透明） */
  background: #2d283c;
  position: relative;
  z-index: 5;
  transition: transform 0.5s ease;
  flex-shrink: 0;
  /* 縮小防止 */
  aspect-ratio: 1 / 1;
  /* 正円維持 */
}

.streamer-mode .card-visual {
  border-color: rgba(255, 182, 193, 0.5);
}

.freelancer-mode .card-visual {
  border-color: rgba(196, 181, 253, 0.5);
}

.avatar-img,
.symbol-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

.symbol-img {
  padding: 20px;
  /* シンボルは余白あり */
  background: #000;
}

/* Card Info */
.card-info {
  text-align: center;
  width: 100%;
  flex-grow: 1;
  /* 残りのスペースを占有 */
}

.card-name {
  font-size: 2rem;
  margin-bottom: 0.2rem;
  font-weight: bold;
}

.card-role {
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
  font-style: italic;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.card-desc {
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
}

/* Tags & Skills Container */
.tags,
.skills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  /* ボタンとの間隔を確保 */
}

/* Signature */
/* Signature Base */
.signature {
  position: absolute;
  bottom: 85px;
  right: 30px;
  z-index: 0;
  user-select: none;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Streamer Style: 縦書き + 落款 */
.streamer-signature {
  flex-direction: row-reverse;
  align-items: flex-start;
  /* 縦書き(vertical-rl)の上揃え */
  /* 落款を左に */
  transform: rotate(-5deg);
  opacity: 0.9;
  right: 15px;
  /* 右端 */
  bottom: 65px;
  /* 上に行き過ぎないよう下げる */
  pointer-events: none;
  /* クリック透過 */
}

.streamer-signature .sig-text {
  font-family: "Zen Kurenaido", sans-serif;
  color: rgba(255, 182, 193, 0.6);
  font-size: 1.4rem;
  /* 少し小さくして収まりよく */
  writing-mode: vertical-rl;
  text-orientation: upright;
  letter-spacing: 0.2em;
  filter: drop-shadow(0 0 2px rgba(255, 105, 180, 0.2));
}

.streamer-signature .seal {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 2px solid #ff6b6b;
  border-radius: 4px;
  color: #ff6b6b;
  font-family: "Zen Kurenaido", sans-serif;
  font-size: 0.9rem;
  font-weight: bold;
  background: rgba(255, 107, 107, 0.1);
  box-shadow: 0 0 5px rgba(255, 107, 107, 0.3);
  transform: rotate(10deg);
  /* ハンコは少しずらす */
  margin-top: auto;
  /* 縦書きテキストの下に配置 */
}

/* Freelancer Style: 幾何学ロゴ + 横書き */
.freelancer-signature {
  flex-direction: row;
  bottom: 80px;
  right: 25px;
  opacity: 0.7;
}

.freelancer-signature .sig-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.freelancer-signature .sig-text {
  font-family: "Noto Serif JP", serif;
  color: rgba(196, 181, 253, 0.6);
  font-weight: 300;
  letter-spacing: 0.3em;
  font-size: 1.1rem;
  border-bottom: 1px solid rgba(196, 181, 253, 0.3);
  padding-bottom: 2px;
  margin-bottom: 4px;
}

.freelancer-signature .sig-sub {
  font-family: var(--font-ui);
  font-size: 0.5rem;
  color: rgba(196, 181, 253, 0.4);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.freelancer-signature .cyber-logo {
  font-family: var(--font-ui);
  font-size: 1.2rem;
  color: rgba(196, 181, 253, 0.3);
  border: 1px solid rgba(196, 181, 253, 0.3);
  padding: 4px 6px;
  border-radius: 2px;
  position: relative;
}

.freelancer-signature .cyber-logo::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  width: 6px;
  height: 6px;
  border-top: 1px solid rgba(196, 181, 253, 0.6);
  border-left: 1px solid rgba(196, 181, 253, 0.6);
}

.freelancer-signature .cyber-logo::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 6px;
  height: 6px;
  border-bottom: 1px solid rgba(196, 181, 253, 0.6);
  border-right: 1px solid rgba(196, 181, 253, 0.6);
}

/* Switch Button */
.switch-btn {
  margin-top: auto;
  /* ボタンをカード底に配置 */
  flex-shrink: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 10px 24px;
  border-radius: 30px;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  transition: all 0.3s ease;
  position: relative;
}

.switch-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.btn-text {
  position: relative;
  z-index: 1;
}

/* ==================== Works, Service, Blog Container ==================== */
.works-container,
.service-container {
  position: relative;
  z-index: 10;
  width: 100%;
  min-height: 100vh;
  padding: 100px 5% 150px;
  /* ナビゲーション考慮 */
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.works-header {
  text-align: center;
  margin-bottom: 60px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInHeader 1s ease 0.5s forwards;
}

@keyframes fadeInHeader {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-title {
  font-family: var(--font-display);
  font-size: 3rem;
  letter-spacing: 0.2em;
  margin-bottom: 10px;
  background: linear-gradient(to right, #fff, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-subtitle {
  font-family: var(--font-jp);
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.1em;
}

/* Gallery Grid (Works & Blog) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 40px;
  width: 100%;
  max-width: 1200px;
}

.work-card {
  background: rgba(20, 20, 25, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  opacity: 0;
  /* JS制御 */
  transform: translateY(20px);
  position: relative;
  /* Shopカード用: ボタン位置を底部に固定 */
  display: flex;
  flex-direction: column;
}

.work-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-color: var(--accent-color);
}

.work-thumbnail {
  width: 100%;
  height: 200px;
  background: #000;
  overflow: hidden;
}

.work-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.work-card:hover .work-thumbnail img {
  opacity: 1;
}

.work-info {
  padding: 20px;
}

.work-category {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--accent-color);
  margin-bottom: 8px;
  display: block;
}

.work-title {
  font-family: var(--font-main);
  font-size: 1.2rem;
  margin-bottom: 10px;
  line-height: 1.4;
}

/* Blog Excerpt (Line Clamp) */
.blog-excerpt {
  font-family: var(--font-jp);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  margin-top: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.work-year {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  text-align: right;
  display: block;
  margin-top: 10px;
}

/* ─── Coming Soon プレースホルダー ─── */

/* カード内サムネイル */
.card-thumb {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #000;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.work-card:hover .card-thumb img {
  opacity: 1;
}

/* カード情報 */
.card-info {
  padding: 20px;
}

.card-title {
  font-family: var(--font-main);
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #fff;
}

.card-desc {
  font-family: var(--font-jp);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tags {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.card-tag {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: var(--accent-color);
  background: rgba(168, 168, 255, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
}

/* Coming Soon サムネイル */
.coming-soon-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(15, 15, 25, 0.9), rgba(25, 15, 40, 0.9));
  border-bottom: 1px solid rgba(168, 168, 255, 0.1);
  cursor: pointer;
}

.coming-soon-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  animation: coming-soon-pulse 3s ease-in-out infinite;
  filter: grayscale(0.3);
}

.coming-soon-label {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: rgba(168, 168, 255, 0.5);
  text-transform: uppercase;
}

@keyframes coming-soon-pulse {

  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

/* Coming Soon モーダル */
.coming-soon-modal-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  background: linear-gradient(135deg, rgba(15, 15, 25, 0.95), rgba(25, 15, 40, 0.95));
  border-radius: 8px;
  border: 1px solid rgba(168, 168, 255, 0.15);
}

.coming-soon-modal-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  animation: coming-soon-pulse 3s ease-in-out infinite;
}

.coming-soon-modal-text {
  font-family: var(--font-ui);
  font-size: 1rem;
  letter-spacing: 0.4em;
  color: rgba(168, 168, 255, 0.6);
  margin-bottom: 8px;
}

.coming-soon-modal-sub {
  font-family: var(--font-jp);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
}

/* Secondary Filter (Tags) - Horizontal Scroll */
.filter-secondary {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 5px;
  /* Scrollbar space */
  display: flex;
  justify-content: center;
  /* Centered visually if items are few */
  /* Force Nowrap handling */
  flex-wrap: nowrap;
}

/* Scrollbar Hide (Optional) */
.filter-secondary::-webkit-scrollbar {
  height: 4px;
}

.filter-secondary::-webkit-scrollbar-thumb {
  background: rgba(196, 181, 253, 0.3);
  border-radius: 2px;
}

.tag-scroll-area {
  display: flex;
  gap: 12px;
  padding: 0 10px;
  /* CRITICAL: Prevent wrapping */
  flex-wrap: nowrap;
  white-space: nowrap;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .control-panel {
    gap: 15px;
  }

  .filter-secondary {
    justify-content: flex-start;
    /* Left align for scroll */
  }

  .tag-scroll-area {
    padding-right: 20px;
    /* End padding */
  }

  .sort-selector {
    justify-content: center;
    /* Center on mobile */
  }
}

/* Modal (Works & Blog) */
.work-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 200;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.work-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.modal-content {
  width: 90%;
  max-width: 800px;
  height: 80vh;
  background: #111;
  border: 1px solid var(--accent-color);
  border-radius: 8px;
  position: relative;
  z-index: 201;
  padding: 40px;
  overflow-y: auto;
  box-shadow: 0 0 50px rgba(196, 181, 253, 0.2);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.work-modal.open .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  transition: color 0.3s;
}

.modal-close:hover {
  color: var(--accent-color);
}

/* ==================== Service Page Specifics ==================== */

.service-layout {
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 100px;
  padding-bottom: 100px;
}

.section-title {
  font-family: var(--font-main);
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 40px;
  border-left: 3px solid var(--accent-color);
  padding-left: 15px;
  display: flex;
  align-items: baseline;
  gap: 15px;
}

.section-title .sub {
  font-family: var(--font-jp);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: normal;
}

/* Spot Menu (Grimoire List) */
.menu-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.menu-item {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 20px 25px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  /* Subtle border */
  border-left: 2px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  background: rgba(13, 13, 18, 0.4);
  /* Darker glass */
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
}

.menu-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: var(--accent-color);
  transform: scaleY(0);
  transition: transform 0.4s ease;
  transform-origin: bottom;
}

.menu-item:hover {
  background: rgba(196, 181, 253, 0.08);
  border-color: rgba(196, 181, 253, 0.3);
  transform: translateX(5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.menu-item:hover::before {
  transform: scaleY(1);
  transform-origin: top;
}

.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: 100%;
}

.menu-name {
  font-family: var(--font-main);
  font-size: 1.3rem;
  color: #fff;
  z-index: 2;
  padding-right: 15px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.05em;
}

.menu-line {
  flex-grow: 1;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.2);
  margin: 0 10px;
  position: relative;
  top: -6px;
  opacity: 0.5;
}

.menu-price {
  font-family: var(--font-ui);
  font-size: 1.1rem;
  color: var(--accent-color);
  z-index: 2;
  padding-left: 10px;
  letter-spacing: 0.05em;
}

.menu-desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0;
  line-height: 1.6;
  max-height: 0;
  opacity: 0;
  transition: all 0.4s ease;
  padding-left: 5px;
}

.menu-item:hover .menu-desc {
  max-height: 100px;
  /* Expands */
  opacity: 1;
  margin-top: 15px;
  padding-bottom: 5px;
}

/* Subscription (VIP Card) */
.vip-card-container {
  display: flex;
  justify-content: center;
  perspective: 1200px;
  padding: 40px;
}

.vip-card {
  width: 100%;
  max-width: 480px;
  height: 280px;
  /* Premium Black Gradient */
  background: linear-gradient(135deg, #1a1a1a 0%, #050505 50%, #1a1a1a 100%);
  border-radius: 16px;
  border: 1px solid rgba(255, 215, 0, 0.2);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 215, 0, 0.1) inset;
  transition: transform 0.1s ease-out;
  /* Controlled by JS */
  display: flex;
  flex-direction: column;
  padding: 30px;
  color: #fff;
  transform-style: preserve-3d;
}

/* Gold Accents for VIP */
.vip-accent {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center,
      rgba(255, 215, 0, 0.15) 0%,
      transparent 60%);
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 1;
}

.vip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: auto;
  position: relative;
  z-index: 2;
}

.vip-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.15em;
  background: linear-gradient(to right, #ffd700, #fbf2c0, #ffd700);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.3));
  font-weight: bold;
}

.vip-chip {
  width: 45px;
  height: 35px;
  background: linear-gradient(135deg, #d4af37, #f7ef8a);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.4),
    0 2px 4px rgba(0, 0, 0, 0.3);
}

.vip-chip::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
}

.vip-benefit {
  position: relative;
  z-index: 2;
  text-align: center;
  margin: 10px 0 20px;
}

.benefit-main {
  font-family: var(--font-main);
  font-size: 1.8rem;
  margin-bottom: 5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  letter-spacing: 0.05em;
}

.benefit-sub {
  font-family: var(--font-jp);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

.vip-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  position: relative;
  z-index: 2;
}

.vip-name {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  opacity: 0.8;
  letter-spacing: 0.1em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.vip-number {
  font-family: var(--font-ui);
  font-size: 1.1rem;
  color: #ffd700;
  letter-spacing: 0.1em;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}


.vip-chip::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg width="50" height="35" xmlns="http://www.w3.org/2000/svg"><path d="M0 10 H50 M0 25 H50 M15 0 V35 M35 0 V35" stroke="rgba(0,0,0,0.3)" fill="none"/></svg>');
}

.vip-benefit {
  text-align: center;
  margin: 20px 0;
}

.benefit-main {
  font-family: var(--font-main);
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 5px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.benefit-sub {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.vip-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: rgba(255, 215, 0, 0.8);
}

.vip-number {
  letter-spacing: 0.2em;
  font-size: 1.1rem;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .service-layout {
    gap: 60px;
  }

  .vip-card {
    height: auto;
    min-height: 260px;
  }

  .menu-item {
    padding: 15px 10px;
  }

  .menu-desc {
    height: auto;
    opacity: 1;
    margin-top: 5px;
    font-size: 0.8rem;
  }
}

/* Contact CTA Section */
.cta-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg,
      transparent,
      var(--accent-color),
      transparent);
}

.cta-text {
  font-family: var(--font-jp);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 30px;
  line-height: 2;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(196, 181, 253, 0.1);
  border: 1px solid var(--accent-color);
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cta-button:hover {
  background: var(--accent-color);
  box-shadow: 0 0 20px rgba(196, 181, 253, 0.4);
  transform: translateY(-2px);
}

.cta-email {
  font-family: var(--font-ui);
  font-size: 1.1rem;
  color: #fff;
  letter-spacing: 0.05em;
}

.cta-button:hover .cta-email {
  color: #1a1a1a;
  /* Dark text on hover */
}

.cta-label {
  font-family: var(--font-jp);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.cta-button:hover .cta-label {
  color: rgba(26, 26, 32, 0.7);
}

/* ==================== Contact Page Specifics ==================== */

.contact-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 100px 5% 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 10;
}

/* Contact ページ固有のレイアウト（navとの重なり防止） */
.contact-page {
  position: relative;
  z-index: 10;
  padding-bottom: 120px;
}

.contact-message {
  text-align: center;
  margin-bottom: 50px;
  padding: 0 20px;
}

.message-text {
  font-family: var(--font-jp);
  color: rgba(255, 255, 255, 0.8);
  line-height: 2;
  font-size: 0.95rem;
}

.message-text .highlight {
  color: var(--accent-color);
  font-weight: bold;
  font-size: 1.1rem;
  display: block;
  margin-bottom: 10px;
}

/* Form Styles */
.contact-form {
  width: 100%;
  background: rgba(10, 10, 15, 0.6);
  backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.form-group {
  margin-bottom: 30px;
  position: relative;
}

.form-label {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  display: block;
  margin-bottom: 8px;
  transition: color 0.3s;
}

.form-label .jp {
  font-family: var(--font-jp);
  font-size: 0.75rem;
  opacity: 0.6;
  margin-left: 8px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  padding: 12px 0;
  font-family: var(--font-jp);
  font-size: 1rem;
  transition: all 0.3s;
  outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-bottom-color: var(--accent-color);
  background: rgba(255, 255, 255, 0.08);
}

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

/* Select Styling Hack */
.select-wrapper {
  position: relative;
}

.select-wrapper::after {
  content: "▼";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  pointer-events: none;
}

.form-select {
  appearance: none;
  padding-right: 30px;
  cursor: pointer;
}

.form-select option {
  background: #1a1a20;
  color: #fff;
}

/* Focus Line Animation */
.focus-line {
  display: block;
  width: 0%;
  height: 2px;
  background: var(--accent-color);
  position: absolute;
  bottom: 0;
  left: 0;
  transition: none;
  /* JS handles tweening */
}

/* Submit Button */
.form-actions {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.submit-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 12px 40px;
  border-radius: 30px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  min-width: 180px;
}

.submit-btn:hover {
  background: rgba(196, 181, 253, 0.1);
  border-color: var(--accent-color);
  box-shadow: 0 0 20px rgba(196, 181, 253, 0.3);
  transform: translateY(-2px);
}

.btn-text {
  font-family: var(--font-ui);
  font-size: 1rem;
  letter-spacing: 0.1em;
}

.btn-jp {
  font-family: var(--font-jp);
  font-size: 0.7rem;
  opacity: 0.6;
  margin-top: 2px;
}

/* Direct Contact */
.direct-contact {
  text-align: center;
  margin-top: 50px;
  font-family: var(--font-jp);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

.direct-link {
  display: block;
  margin-top: 5px;
  font-family: var(--font-ui);
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s;
}

.direct-link:hover {
  color: var(--accent-color);
}

/* Success Message */
.success-message {
  margin-top: 30px;
  text-align: center;
  background: rgba(196, 181, 253, 0.1);
  border: 1px solid var(--accent-color);
  padding: 20px;
  border-radius: 8px;
  color: #fff;
  font-family: var(--font-jp);
}

@media (max-width: 768px) {
  .contact-form {
    padding: 20px;
  }
}

.shop-card {
  border-color: rgba(255, 100, 200, 0.2);
  border-radius: 16px;
}

.shop-card:hover {
  border-color: rgba(255, 100, 200, 0.6);
  box-shadow: 0 0 20px rgba(255, 100, 200, 0.1);
}

.shop-thumbnail {
  height: 180px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1rem;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.shop-card:hover .shop-thumbnail img {
  transform: scale(1.05);
}

.shop-info {
  text-align: center;
  padding: 0 1rem 1rem;
}

.shop-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.shop-price {
  font-family: var(--font-ui);
  font-size: 1.4rem;
  font-weight: bold;
  color: #ffb3d0;
  margin-bottom: 0.8rem;
  text-shadow: 0 0 10px rgba(255, 100, 200, 0.3);
}

.shop-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
  line-height: 1.5;
  height: 2.8em;
  overflow: hidden;
}

/* Shopカード: infoセクションをflex化してボタンを底部固定 */
.shop-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.shop-info .shop-btn {
  margin-top: auto;
}

.shop-btn {
  display: inline-block;
  width: 100%;
  padding: 0.8rem;
  background: linear-gradient(45deg, #c4b5fd, #ffb3d0);
  color: #1a1a20;
  text-decoration: none;
  font-weight: bold;
  border-radius: 30px;
  font-family: var(--font-ui);
  transition: all 0.3s;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.shop-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 179, 208, 0.4);
  filter: brightness(1.1);
}

.shop-btn.disabled {
  background: #444;
  color: #aaa;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
  filter: none;
}

.shop-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ffb3d0;
  color: #000;
  font-size: 0.7rem;
  font-weight: bold;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  z-index: 5;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  font-family: var(--font-jp);
}

.nav-link.active::after {
  animation: navLineExpand 0.8s ease-out forwards;
  /* animation-delay はトップページ(index.html)側で個別に設定 */
  transform: translateX(-50%) scaleX(0);
}

@keyframes navLineExpand {
  to {
    transform: translateX(-50%) scaleX(1);
  }
}

/* ==================== Blog Filter Bar (Flexible & Glassmorphism) ==================== */
.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 900px;
  margin-bottom: 40px;
  padding: 0 10px;
  flex-wrap: wrap;
  /* モバイル対応: 折り返し許可 */
  gap: 15px;
  /* 要素間の隙間 */
}

.filter-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-tab {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  backdrop-filter: blur(5px);
}

.filter-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  transform: translateY(-2px);
}

.filter-tab.active {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent-color);
  color: #fff;
  box-shadow: 0 0 15px rgba(45, 212, 191, 0.15);
  /* Accent glow */
}

/* ==================== Blog Control Panel (カテゴリ + タグ + ソート) ==================== */
.control-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 40px;
  padding: 0 10px;
}

.filter-primary {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-secondary {
  display: flex;
  justify-content: center;
  width: 100%;
  overflow: hidden;
}

.tag-scroll-area {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 2px 0;
}

/* タグチップ — .filter-tab と統一感を持たせつつ、少し小さめに */
.tag-chip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5);
  padding: 5px 14px;
  border-radius: 16px;
  cursor: pointer;
  font-family: var(--font-jp);
  font-size: 0.78rem;
  letter-spacing: 0.3px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  backdrop-filter: blur(5px);
  white-space: nowrap;
}

.tag-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.85);
  transform: translateY(-1px);
}

.tag-chip.active {
  background: rgba(196, 181, 253, 0.12);
  border-color: var(--accent-color);
  color: var(--accent-color);
  box-shadow: 0 0 10px rgba(196, 181, 253, 0.15);
}

.sort-selector {
  display: flex;
  justify-content: center;
}

/* ==================== Custom Select Box ==================== */
.custom-select-wrapper {
  position: relative;
  user-select: none;
  width: 140px;
  font-family: var(--font-ui);
  font-size: 0.9rem;
}

.custom-select-trigger {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.custom-select-trigger:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.custom-select-trigger span {
  color: #fff;
}

.arrow {
  position: relative;
  width: 10px;
  height: 10px;
}

.arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 6px;
  height: 6px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.5);
  border-right: 2px solid rgba(255, 255, 255, 0.5);
  transform: translateY(-50%) rotate(45deg);
  transition: all 0.3s ease;
}

.custom-select-wrapper.open .arrow::after {
  transform: translateY(-20%) rotate(225deg);
  border-color: var(--accent-color);
}

.custom-options {
  position: absolute;
  display: block;
  top: 110%;
  left: 0;
  right: 0;
  background: rgba(15, 15, 20, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
  z-index: 100;
  overflow: hidden;
  padding: 5px;
}

.custom-select-wrapper.open .custom-options {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.custom-option {
  display: block;
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 8px;
}

.custom-option:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.custom-option.selected {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent-color);
  font-weight: bold;
}

/* ==================== Single Post Page ==================== */
.text-page-container {
  max-width: 900px;
  /* 少し幅広に */
  margin: 0 auto;
  align-items: flex-start;
  /* 左寄せ気味に */
}

.post-nav {
  width: 100%;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeInHeader 1s ease 0.5s forwards;
}

.back-link {
  font-family: var(--font-ui);
  color: var(--accent-color);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.back-link:hover {
  color: #fff;
  transform: translateX(-5px);
}

.single-post {
  width: 100%;
  background: rgba(20, 20, 25, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 4rem;
  margin-bottom: 4rem;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.3);
}

.post-header {
  text-align: center;
  margin-bottom: 3rem;
}

.post-meta {
  font-family: var(--font-ui);
  color: var(--accent-color);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: block;
}

.post-title {
  font-family: var(--font-main);
  font-size: 2.5rem;
  line-height: 1.4;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #fff, #e0e7ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.post-line {
  width: 50px;
  height: 1px;
  background: var(--accent-color);
  margin: 0 auto;
}

.post-hero {
  width: 100%;
  height: 400px;
  margin-bottom: 3rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.post-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-body {
  font-family: var(--font-main);
  /* 明朝体で美しく */
  font-size: 1.1rem;
  line-height: 2;
  color: #e0e0e0;
}

/* Post Body Content Styles */
.post-body h2 {
  font-size: 1.8rem;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  position: relative;
}

.post-body h2::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 60px;
  height: 1px;
  background: var(--accent-color);
}

.post-body h3 {
  font-size: 1.4rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
}

.post-body p {
  margin-bottom: 1.5rem;
}

.post-body ul,
.post-body ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.post-body li {
  margin-bottom: 0.5rem;
}

.post-body blockquote {
  border-left: 3px solid var(--accent-color);
  padding-left: 1.5rem;
  margin: 2rem 0;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
}

@media (max-width: 768px) {
  .single-post {
    padding: 2rem;
  }

  .post-title {
    font-size: 1.8rem;
  }

  .post-hero {
    height: 250px;
  }
}

.loading-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  /* バランス調整: 15px -> 20px */
  width: 100%;
  pointer-events: none;
  z-index: 1002;
}

.loading-content {
  text-align: center;
  width: 100%;
  /* ドット絶対配置の基準 */
  position: relative;
}

.loading-text {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
}

/* ドットを絶対配置にしてセンタリング計算に影響させない */
.loading-dots {
  position: absolute;
  text-align: left;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  /* テキスト右端のベースラインに合わせる */
  bottom: 0.15em;
  margin-left: 0.2em;
}

.loading-bar-container {
  width: 200px;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.loading-bar {
  width: 0%;
  height: 100%;
  /* background-color: #ffffff; */
  /* ユーザー要望によりグラデーションに戻す */
  background: linear-gradient(90deg, #a8a8ff, #ffffff);
  box-shadow: 0 0 10px rgba(168, 168, 255, 0.5);
  transition: width 0.1s linear;
}

.connected-text {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.2em;
  color: #fff;
  animation: blink 0.1s infinite;
}

/* エラーテキストのラッパー（RGBクローンの位置基準） */
.error-wrapper {
  position: relative;
  display: inline-block;
}

.error-text {
  font-family: var(--font-ui);
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  color: #fff;
  font-weight: bold;
}

/* --- Works Modal Gallery (Carousel) --- */
.modal-gallery {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  /* アスペクト比固定 */
  background: #000;
  overflow: hidden;
  margin-bottom: 2rem;
  border-radius: 4px;
}

.gallery-track {
  display: flex;
  width: 100%;
  height: 100%;
  /* GSAPで制御するためtransformはJS側 */
}

.gallery-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.gallery-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  pointer-events: none;
  /* 画像保護 */
}

/* YouTube Embed Styles */
.gallery-slide.video-slide iframe {
  width: 100%;
  height: 100%;
  aspect-ratio: 16/9;
  /* Maintain aspect ratio */
  max-width: 900px;
  /* Max width for readability */
}

/* カルーセル操作ボタン */
.gallery-prev,
.gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
  font-family: var(--font-ui);
}

.gallery-prev:hover,
.gallery-next:hover {
  background: rgba(168, 168, 255, 0.3);
  /* ラベンダー色 */
  border-color: #a8a8ff;
}

.gallery-prev {
  left: 10px;
}

.gallery-next {
  right: 10px;
}

/* インジケーター (ドット) */
.gallery-indicators {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.gallery-dot.active {
  background: #a8a8ff;
  box-shadow: 0 0 5px #a8a8ff;
}

/* ==================== Service Detail Page ==================== */
.service-detail-page {
  background-color: #050505;
  color: #ffffff;
  overflow-x: hidden;
}

.detail-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  mix-blend-mode: difference;
}

/* .back-link はL2055で定義済み（post用）。service_detail用の上書き */
.service-detail-page .back-link {
  color: #fff;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.service-detail-page .back-link:hover {
  opacity: 1;
  transform: none;
}

/* Hero */
.detail-hero {
  height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 2rem;
  position: relative;
}

.detail-title {
  font-family: var(--font-main);
  font-size: 4rem;
  margin-bottom: 1rem;
  background: linear-gradient(to right, #fff, #a8a8ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.detail-catch {
  font-family: var(--font-jp);
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
}

/* Main Content */
.detail-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 4rem 2rem 10rem;
}

.detail-section {
  margin-bottom: 8rem;
}

.section-label {
  font-family: var(--font-display);
  font-size: 3rem;
  opacity: 0.1;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Overview Grid */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.detail-block h3 {
  font-family: var(--font-jp);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #a8a8ff;
}

.detail-block p {
  font-family: var(--font-jp);
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
}

.note {
  font-size: 0.8em;
  color: #ffaaaa;
  vertical-align: super;
  margin-right: 2px;
}

/* Workflow Timeline */
.workflow-timeline {
  position: relative;
  padding-left: 2rem;
  border-left: 1px solid rgba(168, 168, 255, 0.3);
}

.flow-step {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 4rem;
}

.flow-step::before {
  content: "";
  position: absolute;
  left: -2.4rem;
  /* Adjust based on padding/border */
  top: 0.5rem;
  width: 10px;
  height: 10px;
  background: #050505;
  border: 2px solid #a8a8ff;
  border-radius: 50%;
  z-index: 10;
}

.step-number {
  font-family: var(--font-ui);
  font-size: 4rem;
  position: absolute;
  left: 0;
  top: -1.5rem;
  color: rgba(255, 255, 255, 0.05);
  font-weight: bold;
  pointer-events: none;
}

.step-title {
  font-family: var(--font-jp);
  font-size: 1.5rem;
  font-weight: bold;
}

/* Specs List */
.specs-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.spec-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  align-items: baseline;
}

.spec-label {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}

.spec-value {
  font-family: var(--font-jp);
  font-size: 1rem;
}

/* CTA */
.detail-cta {
  text-align: center;
  margin-top: 8rem;
  padding: 4rem;
  background: rgba(168, 168, 255, 0.05);
  border-radius: 8px;
}

.cta-message {
  font-family: var(--font-jp);
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.cta-button {
  display: inline-block;
  padding: 1rem 3rem;
  background: #a8a8ff;
  color: #050505;
  font-family: var(--font-ui);
  font-weight: bold;
  text-decoration: none;
  border-radius: 4px;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.cta-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(168, 168, 255, 0.4);
}

/* ==================== Mobile Styles (Additions) ==================== */
@media (max-width: 768px) {
  /* ... existing mobile styles ... */

  /* Policy Table Stacking */
  .policy-table th,
  .policy-table td {
    display: block;
    width: 100%;
    border-left: none;
  }

  .policy-table th {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: none;
    padding: 5px 10px;
    color: var(--accent-color);
  }

  .policy-table td {
    padding: 5px 10px 15px;
    /* Bottom padding for separation */
    border-top: none;
    word-break: break-all;
    /* Prevent overflow on small screens */
  }
}

/* Sticky TOC */
.detail-toc {
  position: fixed;
  top: 50%;
  right: 3rem;
  transform: translateY(-50%);
  z-index: 50;
  mix-blend-mode: difference;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: right;
}

.toc-link {
  font-family: var(--font-ui);
  color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.3s;
  position: relative;
  padding-right: 1.5rem;
}

.toc-link::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translateY(-50%);
  transition: all 0.3s;
}

.toc-link:hover,
.toc-link.active {
  color: #fff;
  font-weight: bold;
}

.toc-link.active::after {
  background: #a8a8ff;
  box-shadow: 0 0 10px #a8a8ff;
  transform: translateY(-50%) scale(1.5);
}

/* ==================== Error Card UI (CMS Failure) ==================== */
.error-card {
  background: rgba(255, 50, 50, 0.05);
  border: 1px solid rgba(255, 50, 50, 0.3);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.1);
  animation: glitch-anim 2s infinite;
  max-width: 600px;
  margin: 0 auto;
  grid-column: 1 / -1;
  /* Global grid span */
}

.error-icon {
  font-size: 3rem;
  color: #ff4444;
  margin-bottom: 20px;
  text-shadow: 0 0 10px #ff0000;
  font-family: var(--font-display);
}

.error-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  letter-spacing: 2px;
  font-family: var(--font-display);
  color: #fff;
}

.error-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.retry-btn {
  margin-top: 30px;
  padding: 10px 30px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: var(--font-ui);
}

.retry-btn:hover {
  background: rgba(255, 50, 50, 0.2);
  border-color: #ff4444;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
}

/* ==================== Site Footer ==================== */
.site-footer {
  text-align: center;
  padding: 40px 20px;
  color: rgba(255, 255, 255, 0.25);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==================== Policy Page ==================== */
.policy-page {
  background-color: var(--bg-color);
}

.policy-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 5% 60px;
  position: relative;
  z-index: 10;
}

.policy-header {
  text-align: center;
  margin-bottom: 50px;
}

.policy-header h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  letter-spacing: 0.2em;
  background: linear-gradient(to right, #fff, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.policy-header p {
  font-family: var(--font-jp);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.policy-toc {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.policy-toc a {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--accent-color);
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid rgba(196, 181, 253, 0.2);
  border-radius: 20px;
  transition: all 0.3s;
}

.policy-toc a:hover {
  background: rgba(196, 181, 253, 0.1);
  border-color: var(--accent-color);
}

.policy-section {
  margin-bottom: 60px;
}

.policy-section h2 {
  font-family: var(--font-main);
  font-size: 1.5rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}

.policy-content h3 {
  font-family: var(--font-jp);
  font-size: 1rem;
  color: var(--accent-color);
  margin: 25px 0 10px;
}

.policy-content p {
  font-family: var(--font-jp);
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 15px;
}

.policy-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-jp);
  font-size: 0.9rem;
}

.policy-table th,
.policy-table td {
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
  vertical-align: top;
}

.policy-table th {
  width: 180px;
  color: var(--accent-color);
  font-weight: normal;
  background: rgba(255, 255, 255, 0.03);
}

.policy-table td {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}

/* ==================== Service Page ==================== */
/* サービスページ: 共通デザインシステム統合 */

/* --- ヘッダー --- */
.service-header {
  text-align: center;
  margin-bottom: 60px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInHeader 1s ease 0.5s forwards;
}

/* --- 無料相談CTA --- */
.svc-cta {
  text-align: center;
  padding: 60px 20px;
  margin: 0 auto;
  max-width: 800px;
}

.svc-cta.bottom {
  margin-top: 80px;
  padding-top: 100px;
  border-top: 1px solid rgba(196, 181, 253, 0.1);
  position: relative;
}

.svc-cta.bottom::before {
  content: 'CONTACT';
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.02);
  letter-spacing: 0.2em;
  pointer-events: none;
}

.svc-cta-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--accent-color);
  margin-bottom: 16px;
}

.svc-cta-sub {
  font-family: var(--font-jp);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 32px;
  line-height: 2;
}

.svc-cta-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 60px;
  border: 1px solid rgba(196, 181, 253, 0.4);
  border-radius: 4px;
  background: transparent;
  text-decoration: none;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.svc-cta-btn .en {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: var(--accent-color);
  transition: color 0.4s ease;
}

.svc-cta-btn .jp {
  font-family: var(--font-jp);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 4px;
  transition: color 0.4s ease;
}

.svc-cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: rgba(196, 181, 253, 0.1);
  transition: width 0.4s ease;
  z-index: -1;
}

.svc-cta-btn:hover {
  border-color: var(--accent-color);
  box-shadow: 0 0 20px rgba(196, 181, 253, 0.15);
}

.svc-cta-btn:hover::before {
  width: 100%;
}

.svc-cta-btn:hover .jp {
  color: rgba(255, 255, 255, 0.8);
}

/* --- メインコンテナ --- */
.svc-main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* --- セクション共通 --- */
.svc-section {
  margin-bottom: 100px;
}

.svc-section-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(196, 181, 253, 0.1);
}

.svc-section-title {
  font-family: var(--font-main);
  font-size: 1.4rem;
  color: var(--accent-color);
}

.svc-section-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 300;
}

/* --- 診断カードグリッド (Tier 1) --- */
.svc-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* --- インラインパネル共通 --- */
/* カード選択状態 */
.svc-card-selected,
.svc-card-selected:hover {
  border-color: var(--accent-color) !important;
  box-shadow: 0 0 20px rgba(196, 181, 253, 0.1);
  transform: none !important;
}

/* カード内のヒント */
.svc-card-hint {
  position: absolute;
  bottom: 12px;
  right: 16px;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.2);
  transition: color 0.3s ease;
  pointer-events: none;
}

.svc-card:hover .svc-card-hint,
.svc-spot:hover .svc-card-hint {
  color: var(--accent-color);
}

.svc-card-selected .svc-card-hint {
  color: var(--accent-color);
}

/* パネルスロット */
.svc-inline-panel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.svc-inline-panel.open {
  grid-template-rows: 1fr;
}

.svc-inline-panel-wrap {
  overflow: hidden;
}

/* パネル内部 */
.svc-inline-panel-inner {
  padding: 32px;
  border: 1px solid rgba(196, 181, 253, 0.2);
  border-radius: 12px;
  background: rgba(20, 20, 25, 0.7);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  margin: 8px 0 4px;
  position: relative;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.4s ease 0.15s, transform 0.4s ease 0.15s;
}

.svc-inline-panel.open .svc-inline-panel-inner {
  opacity: 1;
  transform: translateY(0);
}

/* 上部のアクセントライン */
.svc-inline-panel-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
  opacity: 0.5;
  border-radius: 12px 12px 0 0;
}

/* 矢印インジケーター */
.svc-panel-arrow {
  position: absolute;
  top: -8px;
  width: 16px;
  height: 8px;
  transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.svc-panel-arrow::before {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid var(--accent-color);
  opacity: 0.5;
}

/* 閉じるボタン */
.svc-panel-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 2;
  line-height: 1;
}

.svc-panel-close:hover {
  color: var(--accent-color);
}

/* パネルカラム */
.svc-panel-col h4 {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(196, 181, 253, 0.1);
}

.svc-panel-col p {
  font-family: var(--font-jp);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
}

/* ワークフローリスト */
.svc-panel-workflow {
  list-style: none;
  padding: 0;
  margin: 0;
}

.svc-panel-workflow li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-family: var(--font-jp);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.svc-panel-step-num {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  color: var(--accent-color);
  background: rgba(196, 181, 253, 0.1);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* スペック行 */
.svc-panel-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  gap: 12px;
}

.svc-panel-spec-label {
  font-family: var(--font-jp);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
  flex-shrink: 0;
}

.svc-panel-spec-value {
  font-family: var(--font-jp);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: right;
}


.svc-card {
  padding: 32px 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(20, 20, 25, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.svc-card:hover {
  background: rgba(196, 181, 253, 0.05);
  border-color: rgba(196, 181, 253, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.svc-card-icon {
  font-size: 1.8rem;
  margin-bottom: 16px;
  opacity: 0.9;
}

.svc-card-name {
  font-family: var(--font-main);
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 10px;
  line-height: 1.4;
}

.svc-card-desc {
  font-family: var(--font-jp);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  margin-bottom: 20px;
}

.svc-card-price {
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--accent-color);
  letter-spacing: 0.05em;
}

/* --- メインプロダクト (Tier 2: 3ヶ月サポート) --- */
.svc-hero-card {
  padding: 50px 48px;
  border: 1px solid rgba(196, 181, 253, 0.2);
  border-radius: 12px;
  background: rgba(20, 20, 25, 0.6);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.svc-hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
  opacity: 0.5;
}

.svc-hero-badge {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-color);
  border: 1px solid rgba(196, 181, 253, 0.3);
  padding: 4px 12px;
  border-radius: 2px;
  margin-bottom: 20px;
}

.svc-hero-name {
  font-family: var(--font-main);
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 16px;
  text-shadow: 0 0 15px rgba(196, 181, 253, 0.15);
}

.svc-hero-desc {
  font-family: var(--font-jp);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 32px;
  max-width: 700px;
  line-height: 2;
}

.svc-hero-includes {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.svc-hero-includes li {
  font-family: var(--font-jp);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(196, 181, 253, 0.1);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.svc-hero-includes li:hover {
  border-color: rgba(196, 181, 253, 0.3);
  background: rgba(196, 181, 253, 0.05);
}

.svc-hero-price-area {
  margin-bottom: 32px;
}

.svc-hero-price {
  font-family: var(--font-ui);
  font-size: 1.6rem;
  color: var(--accent-color);
  letter-spacing: 0.03em;
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 8px;
}

.svc-hero-price .note {
  font-family: var(--font-jp);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 300;
}

.svc-hero-price.sub {
  font-size: 1.2rem;
  color: rgba(196, 181, 253, 0.6);
}

.svc-hero-domains {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.svc-domain-tag {
  font-family: var(--font-jp);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(196, 181, 253, 0.08);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.svc-domain-tag:hover {
  border-color: rgba(196, 181, 253, 0.3);
  background: rgba(196, 181, 253, 0.05);
}

/* --- スポットカード (Tier 3) --- */
.svc-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.svc-spot {
  padding: 24px 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(20, 20, 25, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.svc-spot:hover {
  border-color: rgba(196, 181, 253, 0.4);
  background: rgba(196, 181, 253, 0.05);
  transform: translateY(-4px);
}

.svc-spot-name {
  font-family: var(--font-main);
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
}

.svc-spot-price {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: var(--accent-color);
}

/* --- 信頼セクション --- */
.svc-trust {
  max-width: 700px;
  margin: 80px auto;
}

.svc-trust-card {
  padding: 48px 40px;
  border: 1px solid rgba(196, 181, 253, 0.15);
  border-radius: 12px;
  background: rgba(20, 20, 25, 0.6);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  text-align: center;
}

.svc-trust-profile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 24px;
}

.svc-trust-img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  opacity: 0.8;
}

.svc-trust-name {
  font-family: var(--font-main);
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 4px;
}

.svc-trust-role {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--accent-color);
  letter-spacing: 0.1em;
}

.svc-trust-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}

.svc-trust-tag {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(196, 181, 253, 0.15);
  border-radius: 4px;
}

.svc-trust-quote {
  font-family: var(--font-main);
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 2;
  font-style: italic;
  margin-bottom: 32px;
}

.svc-trust-link {
  font-size: 0.85rem;
  color: var(--accent-color);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(196, 181, 253, 0.3);
  transition: all 0.3s ease;
}

.svc-trust-link:hover {
  color: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* --- ケーススタディ --- */
.svc-cs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.svc-cs-card {
  background: rgba(20, 20, 25, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 24px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: block;
}

.svc-cs-card:hover {
  background: rgba(196, 181, 253, 0.05);
  border-color: rgba(196, 181, 253, 0.3);
  transform: translateY(-4px);
}

.svc-cs-icon {
  font-size: 1.8rem;
  margin-bottom: 16px;
  display: block;
  text-align: center;
}

.svc-cs-title {
  font-family: var(--font-main);
  font-size: 1rem;
  color: var(--accent-color);
  margin-bottom: 12px;
  text-align: center;
}

.svc-cs-desc {
  font-family: var(--font-jp);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  text-align: left;
}

/* --- Q&A アコーディオン --- */
.svc-faq {
  max-width: 800px;
  margin: 0 auto;
}

.svc-faq-item {
  border-bottom: 1px solid rgba(196, 181, 253, 0.1);
  margin-bottom: 16px;
}

.svc-faq-q {
  padding: 16px 0;
  cursor: pointer;
  position: relative;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  padding-right: 40px;
  transition: color 0.3s ease;
}

.svc-faq-q:hover {
  color: var(--accent-color);
}

.svc-faq-q::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: rgba(196, 181, 253, 0.5);
  transition: transform 0.3s ease;
}

.svc-faq-item.active .svc-faq-q::after {
  transform: translateY(-50%) rotate(45deg);
}

.svc-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.svc-faq-a-inner {
  font-family: var(--font-jp);
  padding: 0 0 24px 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.8;
}

/* --- レスポンシブ --- */
@media (max-width: 768px) {
  .svc-grid-3 {
    grid-template-columns: 1fr;
  }

  .svc-inline-panel-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
  }

  .svc-panel-arrow {
    display: none;
  }

  .svc-grid-4 {
    grid-template-columns: 1fr 1fr;
  }

  .svc-hero-card {
    padding: 32px 24px;
  }

  .svc-hero-includes {
    flex-direction: column;
    gap: 8px;
  }

  .svc-hero-price {
    font-size: 1.4rem;
    flex-direction: column;
    gap: 4px;
  }

  .svc-cs-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .svc-grid-4 {
    grid-template-columns: 1fr;
  }

  .svc-cs-grid {
    grid-template-columns: 1fr;
  }
}

/* ==================== ユーティリティ ==================== */
/* ナビゲーション前の余白（about.html等で使用） */
.nav-spacer {
  height: 100px;
}

/* ==================== Responsive: Tablet (max-width: 768px) ==================== */
@media (max-width: 768px) {

  /* --- ページ共通 --- */
  .page-title {
    font-size: 2rem;
    letter-spacing: 0.1em;
  }

  .page-subtitle {
    font-size: 0.85rem;
  }

  .section-title {
    flex-direction: column;
    gap: 5px;
  }

  .section-title .main {
    font-size: 1.5rem;
  }

  .works-header {
    margin-bottom: 30px;
  }

  /* --- カードグリッド（Works / Blog / Service / Shop） --- */
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
  }

  .service-container {
    padding: 80px 4% 120px;
  }

  /* --- プロファイルカード --- */
  .profile-card {
    width: 280px;
    height: auto;
    min-height: 400px;
    padding: 1.5rem;
  }

  .card-visual {
    width: 120px;
    height: 120px;
    margin-bottom: 1rem;
  }

  .card-name {
    font-size: 1.3rem;
  }

  .profile-container {
    height: auto;
    min-height: 480px;
  }

  /* --- VIPカード --- */
  .vip-card-container {
    padding: 20px;
  }

  .vip-card {
    max-width: 380px;
    height: 240px;
    padding: 20px;
  }

  .vip-title {
    font-size: 0.75rem;
  }

  .vip-name {
    font-size: 1rem;
  }

  /* --- サービスメニュー --- */
  .menu-item {
    padding: 15px 18px;
  }

  .menu-title {
    font-size: 1rem;
  }

  .menu-price-tag {
    font-size: 1.3rem;
  }

  /* --- モーダル --- */
  .modal-content {
    width: 95%;
    max-height: 90vh;
    padding: 25px;
  }

  /* --- コンタクト --- */
  .contact-container {
    padding: 80px 5% 120px;
  }

  .contact-message h2 {
    font-size: 1.3rem;
  }

  /* --- CTA --- */
  .cta-box {
    padding: 25px;
  }

  /* --- Service Detail ページ --- */
  .detail-nav {
    padding: 1.5rem 2rem;
  }

  .detail-hero {
    height: 50vh;
  }

  .detail-title {
    font-size: 2.5rem;
  }

  .detail-catch {
    font-size: 1rem;
  }

  .detail-container {
    padding: 3rem 1.5rem 8rem;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section-label {
    font-size: 2rem;
  }

  .spec-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .detail-cta {
    margin-top: 4rem;
    padding: 2.5rem;
  }

  .cta-message {
    font-size: 1rem;
  }

  .cta-button {
    padding: 0.8rem 2rem;
  }

  /* --- ギャラリー --- */
  .gallery-nav {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }

  /* --- ブログ記事 --- */
  .post-container {
    padding: 80px 5% 120px;
  }

  .post-title {
    font-size: 2rem;
  }

  .post-body {
    font-size: 1rem;
    line-height: 1.8;
  }

  .post-body h2 {
    font-size: 1.4rem;
    margin-top: 2rem;
  }

  .post-body h3 {
    font-size: 1.2rem;
  }

  /* --- ショップ --- */
  .shop-thumbnail {
    height: 150px;
  }

  /* --- フッター --- */
  .site-footer {
    padding: 30px 15px;
  }
}

/* ==================== Responsive: Mobile (max-width: 480px) ==================== */
@media (max-width: 480px) {

  /* --- ページ共通 --- */
  .page-title {
    font-size: 1.5rem;
    letter-spacing: 0.05em;
  }

  .section-title .main {
    font-size: 1.2rem;
  }

  /* --- カードグリッド --- */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-container {
    padding: 70px 3% 100px;
  }

  /* --- プロファイルカード --- */
  .profile-card {
    width: 85vw;
    max-width: 280px;
    height: auto;
    min-height: 360px;
    padding: 1.2rem;
  }

  .card-visual {
    width: 100px;
    height: 100px;
    margin-bottom: 0.8rem;
  }

  .card-name {
    font-size: 1.1rem;
  }

  .card-desc {
    font-size: 0.8rem;
  }

  .tag,
  .skill {
    font-size: 0.7rem;
  }

  .switch-btn {
    font-size: 0.8rem;
    padding: 6px 12px;
  }

  /* --- VIPカード --- */
  .vip-card {
    max-width: 100%;
    height: auto;
    min-height: 200px;
    padding: 18px;
  }

  /* --- モーダル --- */
  .modal-content {
    width: 100%;
    max-height: 95vh;
    padding: 20px 15px;
    border-radius: 0;
  }

  .modal-close {
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
  }

  /* --- コンタクト --- */
  .contact-container {
    padding: 70px 4% 100px;
  }

  .contact-form {
    padding: 20px 15px;
  }

  .submit-btn {
    width: 100%;
    justify-content: center;
  }

  /* --- Service Detail ページ --- */
  .detail-nav {
    padding: 1rem 1.2rem;
  }

  .nav-logo {
    font-size: 1rem;
  }

  .back-link {
    font-size: 0.75rem;
  }

  .detail-hero {
    height: 45vh;
  }

  .detail-title {
    font-size: 1.8rem;
  }

  .detail-catch {
    font-size: 0.9rem;
  }

  .detail-container {
    padding: 2rem 1rem 6rem;
  }

  .section-label {
    font-size: 1.5rem;
  }

  .step-title {
    font-size: 1.2rem;
  }

  .detail-cta {
    margin-top: 3rem;
    padding: 2rem 1.5rem;
  }

  .cta-button {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }

  /* --- TOC（サイドナビ）非表示 --- */
  .detail-toc {
    display: none;
  }

  /* --- ブログ記事 --- */
  .post-container {
    padding: 70px 4% 100px;
  }

  .post-title {
    font-size: 1.5rem;
  }

  .post-hero {
    height: 200px;
  }

  /* --- ナビゲーション余白 --- */
  .nav-spacer {
    height: 80px;
  }

  /* --- ギャラリー --- */
  .gallery-nav {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }

  .gallery-dots {
    bottom: 5px;
    gap: 6px;
  }

  .gallery-dot {
    width: 6px;
    height: 6px;
  }

  /* --- ショップ --- */
  .shop-thumbnail {
    height: 130px;
  }

  .shop-title {
    font-size: 0.95rem;
  }

  .shop-price {
    font-size: 1.1rem;
  }
}

/* =========================================
   Responsive Adjustments (Mobile Navigation Safety)
   ========================================= */
@media (max-width: 768px) {

  /* ナビゲーションバーがコンテンツに被るのを防ぐ */
  main,
  .content-wrapper {
    padding-bottom: 120px !important;
  }
}

/* Title Sub-labels (JP) */
.sub-name,
.sub-title {
  display: block;
  font-size: 0.65em;
  opacity: 0.7;
  font-weight: 400;
  margin-top: 4px;
  line-height: 1.4;
  font-family: var(--font-jp);
  letter-spacing: 0.05em;
}

/* Specific Adjustment for Service Menu */
.menu-name .sub-name {
  color: var(--text-color);
  opacity: 0.6;
}

/* Specific Adjustment for Works Card */
.card-title .sub-title {
  color: var(--text-color);
  opacity: 0.6;
}

/* ==================== スキップナビゲーション ==================== */
/* WCAG 2.2 SC 2.4.1 準拠: キーボードユーザーがメインコンテンツへ直接移動可能 */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  padding: 12px 24px;
  background: var(--accent-color);
  color: var(--bg-color);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 8px 8px;
  transition: top 0.2s ease;
}

.skip-link:focus-visible {
  top: 0;
  outline: 2px solid var(--accent-hover);
  outline-offset: 2px;
}

/* ==================== noscriptフォールバック ==================== */
.noscript-notice {
  background: #2d1b69;
  color: #f0f0f0;
  text-align: center;
  padding: 16px 20px;
  font-family: var(--font-jp);
  font-size: 0.9rem;
  line-height: 1.6;
  border-bottom: 2px solid var(--accent-color);
}

/* ==================== prefers-reduced-motion ==================== */
/* 動きの少ない表示を好むユーザー向け: アニメーション・トランジションを抑制 */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==================== 印刷スタイル ==================== */
/* ダークテーマを印刷用に白背景・黒文字へ反転 */
@media print {

  /* 基本: 白背景＋黒テキスト */
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    background: #fff !important;
    font-size: 12pt;
    line-height: 1.5;
  }

  /* 不要要素を非表示 */
  nav,
  .skip-link,
  .noscript-notice,
  #canvas-container,
  #loading-screen,
  .scroll-indicator,
  footer,
  .back-to-top,
  canvas {
    display: none !important;
  }

  /* リンクのURL表示 */
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    font-weight: normal;
    color: #555 !important;
  }

  /* 内部リンク・ナビ系リンクはURL不要 */
  a[href^="#"]::after,
  a[href^="javascript"]::after,
  nav a::after {
    content: "" !important;
  }

  /* 画像の最大幅制限 */
  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }

  /* 見出しの改ページ制御 */
  h1,
  h2,
  h3,
  h4 {
    page-break-after: avoid;
    color: #000 !important;
  }

  /* テーブルの罫線 */
  table,
  th,
  td {
    border: 1px solid #ccc !important;
  }
}