/* ===================================
   温かみのある夜の灯台配色
   - シアン: #91C1E0（柔らかい情報色）
   - オレンジ: #fc813e（推しの色・アクション）
   - イエロー: #f4c542（ポジティブ・メリット）
=================================== */

:root {
  --layout-width: 1200px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --font-serif: "游明朝", "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", "Georgia", serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-brand: "Poppins", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;

  --fz-hero: clamp(42px, 6vw, 64px);
  --fz-h1: clamp(28px, 4vw, 40px);
  --fz-h2: clamp(22px, 3.2vw, 32px);
  --fz-h3: 20px;
  --fz-body: 16.5px;
  --fz-small: 14px;

  --lh-tight: 1.25;
  --lh-normal: 1.8;
  --lh-relaxed: 2;

  --tracking-tight: 0.01em;
  --tracking-wide: 0.02em;

  /* メインブランドカラー */
  --accent: #fc813e;
  --accent-rgb: 252, 129, 62;

  /* シアンを柔らかく温かみのある色に変更 */
  --cyan: #91c1e0;
  --cyan-rgb: 145, 193, 224;

  /* ブルーを少し温かみのあるトーンに */
  --blue: #5b8fb9;

  /* イエローはそのまま（既に良い色） */
  --yellow: #f4c542;
  --yellow-rgb: 244, 197, 66;

  /* テキストカラーをわずかに温かく */
  --text-strong: #f5f5f5;
  --text: #d4dce8;
  --text-muted: #c0cdd9;

  --space-2xs: 8px;
  --space-xs: 12px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 60px;

  --max-w-compact: clamp(280px, 96vw, 37.5rem);
  --max-w-narrow: clamp(280px, 94vw, 46rem);
  --max-w-feature: clamp(300px, 92vw, 52rem);
  --max-w-medium: clamp(300px, 90vw, 56rem);
  --max-w-wide: clamp(320px, 88vw, 60rem);
  --max-w-extended: clamp(320px, 86vw, 70rem);
}

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

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: #0a1628;
  line-height: var(--lh-normal);
  letter-spacing: var(--tracking-tight);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  padding-top: 80px; /* 固定ヘッダー分の余白 */
}

.lead {
  font-size: 18px;
  line-height: var(--lh-relaxed);
  color: var(--text);
}

.lead strong {
  color: var(--text-strong);
  font-weight: 700;
}

@media (max-width: 600px) {
  .lead {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 32px;
  }
}

.layout {
  max-width: var(--layout-width);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 1280px) {
  .layout {
    padding: 0;
  }
}

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

@media (max-width: 600px) {
  .layout {
    padding: 0 10px;
  }
}

/* ==========================================================================
   Section scaffolding
   ========================================================================== */
.section {
  --section-padding-y: clamp(60px, 12vw, 120px);
  --section-padding-top: var(--section-padding-y);
  --section-padding-bottom: var(--section-padding-y);
  position: relative;
  padding-top: var(--section-padding-top);
  padding-bottom: var(--section-padding-bottom);
}

.section--hero {
  --section-padding-top: 0;
  --section-padding-bottom: 0;
  overflow: hidden;
}

.section--final-cta {
  --section-padding-top: clamp(96px, 16vw, 150px);
  --section-padding-bottom: clamp(84px, 14vw, 130px);
  background: linear-gradient(135deg, #2f4562 0%, #1a2f4f 50%, #0f1d35 100%);
  text-align: center;
}

/* ==========================================================================
   Card foundations
   ========================================================================== */
/* カード共通基盤 */
.card,
.service-card,
.reason-item,
.testimonial-card,
.pricing-card,
.benefit-item,
.problem-card--large,
.trust-item {
  --card-padding: 24px;
  --card-radius: 16px;
  --card-border-width: 1px;
  --card-border-color: rgba(var(--cyan-rgb), 0.35);
  --card-bg: linear-gradient(135deg, rgba(26, 47, 79, 0.5), rgba(15, 29, 53, 0.65));
  --card-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
  --card-blur: 12px;
  position: relative;
  padding: var(--card-padding);
  border-radius: var(--card-radius);
  border: var(--card-border-width) solid var(--card-border-color);
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(var(--card-blur));
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* カード共通ホバー効果 */
.card--hover:hover {
  transform: translateY(var(--hover-lift, -8px));
  border-color: rgba(var(--cyan-rgb), var(--hover-border-opacity, 0.6));
  box-shadow: var(--hover-shadow, 0 26px 52px rgba(0, 0, 0, 0.26));
}
/* アイコンフォントは表示ブロックさせない */
@font-face {
  font-family: "Font Awesome 6 Free";
  font-style: normal;
  font-weight: 900;              /* solid 用 */
  font-display: swap;            /* ←これ */
  src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/webfonts/fa-solid-900.woff2") format("woff2");
}
/* ローディング画面 */
#loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #0a1628 0%, #1a2f4f 50%, #0f1d35 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.8s ease-out;
  overflow: hidden;
}

#loading.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loading-butterfly {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateY(60px) scale(0.6);
  opacity: 0;
  animation: butterfly-float 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  filter: drop-shadow(0 0 20px rgba(0, 112, 184, 0.7));
}

.loading-butterfly img {
  width: 80px;
  height: auto;
  display: block;
}

@keyframes butterfly-float {
  0% {
    transform: translate(-50%, -50%) translateY(60px) scale(0.6);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%) translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

/* ヘッダー */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(10px);
  padding: 20px 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  transition: transform 0.3s ease;
}

/* スクロール時にヘッダーを隠す */
header.header-hidden {
  transform: translateY(-100%);
}

nav {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
  text-shadow: 0 0 20px rgba(252, 129, 62, 0.5);
  font-family: var(--font-brand);
  letter-spacing: var(--tracking-wide);
}

nav ul {
  display: flex;
  gap: 40px;
  list-style: none;
}

nav li {
  position: relative;
}

nav a {
  color: var(--text-strong);
  text-decoration: none;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--accent);
}

nav .has-submenu > .submenu-toggle {
  position: relative;
}

nav .has-submenu > .submenu-toggle::after {
  content: "▾";
  display: inline-block;
  margin-left: 8px;
  font-size: 0.9em;
  transform: translateY(-1px);
}

.submenu {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  margin: 0;
  padding: 6px 0;
  display: none;
  background: rgba(10, 22, 40, 0.96);
  border: 0;
  border-radius: 4px;
  box-shadow: none;
  backdrop-filter: blur(8px);
  z-index: 1003;
}

.submenu li {
  border: 0;
}

.submenu li:last-child {
  border: 0;
}

.submenu a {
  display: block;
  padding: 12px 16px;
  white-space: nowrap;
}

@media (min-width: 901px) {
  nav li.has-submenu {
    padding-bottom: 12px;
  }

  nav li.has-submenu:hover > .submenu,
  nav li.has-submenu:focus-within > .submenu {
    display: block;
  }
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 900px) {
  .menu-toggle {
    display: flex;
  }

  nav ul {
    position: absolute;
    top: 60px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    background: rgba(10, 22, 40, 0.98);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    z-index: 1002;
  }

  nav ul.open {
    display: flex;
  }

  nav li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  nav li:last-child {
    border-bottom: none;
  }

  nav a {
    display: block;
    padding: 14px 20px;
  }

  .submenu {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    min-width: 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    box-shadow: none;
    background: rgba(10, 22, 40, 0.92);
  }

  nav li.has-submenu.open > .submenu {
    display: block;
  }

  .submenu a {
    padding: 12px 28px;
  }
}

  /* HERO */
  .hero {
    --hero-bg-color: #0b1528;
    --hero-bg-image: url('../images/noctilia-lighthouse.png');
    --hero-bg-size: cover;
    --hero-bg-attachment: fixed;
    --hero-bg-position-desktop: center 35%;
    --hero-bg-position-tablet: center 45%;
    --hero-bg-position-mobile: center 55%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-color: var(--hero-bg-color);
    background-image: var(--hero-bg-image);
    background-repeat: no-repeat;
    background-size: var(--hero-bg-size);
    background-position: var(--hero-bg-position-desktop);
    background-attachment: var(--hero-bg-attachment);
    isolation: isolate;
  }
  /* === Hero 背景の見せ位置（デバイス別） === */
  @media (max-width: 1024px) {
    .hero { background-position: var(--hero-bg-position-tablet); }
  }
  @media (max-width: 600px) {
    .hero { background-position: var(--hero-bg-position-mobile); }
  }

  .hero::before{
    content:'';
    position:absolute;
    inset:0;
    background: linear-gradient(180deg, rgba(10,22,40,.85) 0%, rgba(10,22,40,.55) 45%, rgba(10,22,40,.75) 100%);
    z-index:0;
  }
  .hero::after{
    content:'';
    position:absolute;
    inset:-10%;
    pointer-events:none;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0) 40%, rgba(0,0,0,.35) 70%, rgba(0,0,0,.6) 100%);
    z-index:0;
  }

  .hero-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index:1;
  }
  .hero-inner.layout {
    max-width: none;
    padding: 0;
  }

  .stars{
    position:absolute;
    inset:0;
    overflow:hidden;
    z-index:1;
    pointer-events:none;
  }

  .star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s infinite;
    opacity:.45;
  }

  @keyframes twinkle {
0%,100%{opacity:.25;} 50%{opacity:.7;}
  }

  .hero-content {
    position: relative;
    z-index: 10;
    max-width: var(--max-w-feature);
    padding: 0 40px;
  }

  .hero h1{
    font-size: var(--fz-hero);
    margin-bottom: 24px;
    color: var(--text-strong);
    letter-spacing: var(--tracking-wide);
    font-family: var(--font-serif);
    font-weight: 600;
    text-shadow:
    0 0 26px rgba(255, 214, 166, 0.25),
    0 0 56px rgba(var(--cyan-rgb), 0.2),
    0 2px 8px rgba(0, 0, 0, 0.45);
  }

  .hero p{
    font-size: 18px;
    margin-bottom: 24px;
    color: var(--text);
    text-shadow: 0 2px 8px rgba(0,0,0,0.45);
  }

  .hero-badge{
    display:inline-block;
    padding:8px 14px;
    border-radius:999px;
    font-size:12px;
    letter-spacing:.15em;
    color: var(--text-strong);
    border:1px solid rgba(var(--cyan-rgb), .5);
    background: rgba(12,24,44,.35);
    backdrop-filter: blur(6px);
    margin-bottom:20px;
  }

  /* CTA行: 主従と余白 */
  .hero .cta-row{
    display:flex; gap:16px; justify-content:center;
    margin-top:24px;
  }

/* 既存のブランド色でOK（ここはそのまま） */
.cta-button.ghost {
  display: inline-block;
  padding: 18px 50px;
  border-radius: 50px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--text-strong);
  text-decoration: none;
  font-size: 18px;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.cta-button.ghost:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

  /* モバイル最適化：縦積み・フル幅・タップしやすい */
  @media (max-width: 600px){
  .hero .cta-row{ flex-direction: column; gap: 10px; }
    .hero .cta-row .cta-button{
      width: 100%; min-height: 48px; line-height: 1.1;
    }
  }

  /* 余白リズム（サブ→価格、価格→CTA） */
.hero .lead{ margin-top:24px; margin-bottom:16px; } /* サブの直下を詰める */

/* PC表示時はより広く */
@media (min-width: 601px) {
  .hero .lead { margin-bottom: 24px; }
  .hero .cta-row { margin-top: 32px; }
}

  .cta-button {
    display: inline-block;
    padding: 18px 50px;
    background: linear-gradient(135deg, var(--accent) 0%, #e56a28 100%);
    color: #0a1628;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(var(--accent-rgb), 0.35);
    font-family: var(--font-sans);
    font-weight: 700;
    letter-spacing: var(--tracking-wide);
  }

  .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(var(--accent-rgb), 0.5);
  }

  /* ストーリーブロック */
  .story {
    background: linear-gradient(180deg, #0a1628 0%, #0f1d35 100%);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
  }

  .story.story--light {
    background: transparent;
    padding: 100px 0;
  }

  .story::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(var(--cyan-rgb), 0.10) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(var(--cyan-rgb), 0.08) 0%, transparent 50%);
    pointer-events: none;
  }

  .story.story--light::before {
    display: none;
  }

  .story-content {
    max-width: var(--max-w-feature);
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 10;
  }

  /* Aboutページのmissionセクション調整 */
  #mission .story-content {
    max-width: var(--max-w-narrow);
  }

  #mission .story-title {
    text-align: left;
  }

  #mission .story-subtitle {
    text-align: center;
    font-size: 20px;
    color: var(--blue);
    margin: 32px 0 24px;
  }

  #mission .story-text {
    text-align: left;
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 24px;
  }

  .story-title {
    font-size: 32px;
    color: var(--blue);
    margin-bottom: 40px;
    font-weight: normal;
    letter-spacing: 0.1em;
    text-shadow: 0 0 20px rgba(0, 112, 184, 0.45);
    position: relative;
    display: inline-block;
  }

  .story.story--light .story-title {
    color: var(--text-strong);
    text-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  }

  .story.story--light .story-text {
    color: var(--text);
  }

  .story-butterfly {
    position: absolute;
    right: -70px;
    top: -15px;
    animation: story-butterfly-flutter 3.5s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
    filter: drop-shadow(0 0 10px rgba(var(--cyan-rgb), 0.45));
  }

  .story-butterfly img {
    width: 35px;
    height: auto;
    display: block;
  }

  @keyframes story-butterfly-flutter {
    0%, 100% {
      transform: translate(0, 0) rotate(0deg) scale(1);
    }
    15% {
      transform: translate(1px, -3px) rotate(1deg) scale(1.01);
    }
    33% {
      transform: translate(2px, -6px) rotate(2deg) scale(1.03);
    }
    50% {
      transform: translate(0, -8px) rotate(-1deg) scale(1.04);
    }
    67% {
      transform: translate(-2px, -6px) rotate(-2deg) scale(1.03);
    }
    85% {
      transform: translate(-1px, -3px) rotate(1deg) scale(1.01);
    }
  }

  .story-text {
    font-size: 20px;
    line-height: 2.2;
    color: var(--text);
    margin-bottom: 30px;
  }

  .story-text:last-child {
    margin-bottom: 0;
  }

  /* セクション共通 */
  section {
    padding: 100px 0;
  }

  h2{
    text-align: center;
    font-size: var(--fz-h2);
    margin-bottom: 60px;
    color: var(--text-strong);
    position: relative;
    font-family: var(--font-serif);
    font-weight: 600;
    letter-spacing: var(--tracking-wide);
    line-height: var(--lh-tight);
    text-shadow: 0 2px 12px rgba(var(--cyan-rgb), 0.15);
  }

  h1, h3{
    font-family: var(--font-serif);
    letter-spacing: var(--tracking-wide);
    line-height: var(--lh-tight);
    color: var(--text-strong);
  }
h1{ font-size: var(--fz-h1); font-weight: 600; }
h3{ font-size: var(--fz-h3); font-weight: 600; }
p{ font-size: var(--fz-body); line-height: var(--lh-normal); color: var(--text); }
small{ font-size: var(--fz-small); line-height: 1.6; opacity: .9; }

/* ===================================
   色の役割分担の明確化
=================================== */

/* --- シアン: 情報・プロセス系（アイコン） --- */
.timeline-dot,
.service-hero-icon i,
.accordion-icon i,
.trust-icon,
.news-more-link {
  color: var(--cyan);
}

/* --- シアン: 見出し --- */
.timeline-card h3,
.principle-item h3 {
  color: var(--cyan);
}

/* --- イエロー: メリット・ポジティブ要素（アイコン） --- */
.benefit-icon i.fa-sun,
.deliverable-icon,
.accordion-note i.fa-lightbulb {
  color: var(--yellow);
}

/* --- イエロー: テキスト・ラベル --- */
.trust-label,
.pricing-title .plan-tag,
.deliverable-title,
.deliverables-inline h3 {
  color: var(--yellow);
}

/* --- オレンジ: アクション・決断 --- */
/* CTAや主要リンクは個別ルールでアクセントを適用 */
  /* h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--cyan);
    margin: 20px auto 0;
    box-shadow: 0 0 10px rgba(var(--cyan-rgb), 0.5);
  } */

  /* サービスカード */

  .service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: var(--max-w-wide);
    margin: 0 auto;
  }
  .service-card {
    --card-padding: 40px;
    --card-radius: 18px;
    --card-border-width: 2px;
    --card-shadow: 0 24px 52px rgba(0, 0, 0, 0.26);
    --card-bg: linear-gradient(135deg, rgba(26, 47, 79, 0.55), rgba(20, 40, 65, 0.7));
    text-align: center;
  }

  .service-card::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px dashed rgba(var(--cyan-rgb), 0.3);
    border-radius: 10px;
    pointer-events: none;
  }

  .service-card::after {
    content: '✦';
    position: absolute;
    top: 15px;
    right: 15px;
    color: rgba(var(--cyan-rgb), 0.4);
    font-size: 20px;
  }

  .service-card.card--hover:hover {
    --hover-lift: -10px;
    --hover-border-opacity: 0.65;
    --hover-shadow: 0 20px 40px rgba(var(--cyan-rgb), 0.25);
  }

  .service-card.card--hover:hover::before {
    border-color: rgba(var(--cyan-rgb), 0.55);
  }

  .service-icon {
    font-size: 48px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(var(--cyan-rgb), 0.4));
    position: relative;
    z-index: 1;
    color: var(--cyan);
  }

  .service-icon i,
  .reason-icon i {
    display: inline-block;
    font-size: inherit;
    color: inherit;
  }

  .service-card h3{
    margin: 0 0 12px;
    padding: 0;
    text-align: center;
    line-height: 1.35;
  }
  .service-card h3 .service-tag{
    display:inline-block;
    padding:8px 14px;
    margin-bottom:10px;
    border-radius:999px;
    border:1px solid rgba(var(--cyan-rgb),0.45);
    background: rgba(26,47,79,0.4);
    color: var(--text-strong);
    font-family: var(--font-sans);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: none; /* Kanjiは大文字化しない */
    text-shadow: 0 0 6px rgba(var(--cyan-rgb),0.45);
  }
  .service-card h3 .service-name{
    display:block;
    margin-top:6px;
    font-family: var(--font-serif);
    font-size: var(--fz-h3);
    font-weight: 600;
    letter-spacing: var(--tracking-wide);
    color: var(--text-strong);
  }

  .service-card p {
    position: relative;
    z-index: 1;
    margin-bottom: 25px;
  }

  .service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    text-decoration: none;
    font-weight: bold;
    padding: 12px 24px;
    border: 1px solid rgba(var(--accent-rgb), 0.4);
    border-radius: 25px;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
    background: rgba(var(--accent-rgb), 0.1);
  }

  .service-link:hover {
    background: rgba(var(--accent-rgb), 0.2);
    border-color: rgba(var(--accent-rgb), 0.8);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(var(--accent-rgb), 0.3);
  }

  .service-link::after {
    content: '→';
    transition: transform 0.3s;
  }

  .service-link:hover::after {
    transform: translateX(5px);
  }

  /* 選ばれる理由 */

  .reason-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
  }

  .reason-item {
    --card-padding: 40px;
    --card-radius: 18px;
    --card-shadow: 0 22px 48px rgba(0, 0, 0, 0.24);
    --card-bg: linear-gradient(135deg, rgba(30, 50, 80, 0.45), rgba(25, 45, 70, 0.6));
    text-align: center;
  }

  .reason-item::before{
    content:''; position:absolute; inset:12px;
    border:1px dashed rgba(var(--cyan-rgb),0); border-radius:10px;
    transition: border-color .2s;
  }
.reason-item.card--hover:hover::before{ border-color: rgba(var(--cyan-rgb),.18); }

  .reason-icon{
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--cyan);
    filter: drop-shadow(0 0 10px rgba(var(--cyan-rgb), 0.4));
    transition: filter 0.2s ease;
  }
  .reason-item.card--hover:hover .reason-icon{
    filter: drop-shadow(0 0 14px rgba(var(--cyan-rgb), 0.5));
  }

.reason-item h3{ letter-spacing: .02em; }

  .reason-item.card--hover:hover {
    --hover-lift: -10px;
    --hover-border-opacity: 0.65;
    --hover-shadow: 0 20px 40px rgba(var(--cyan-rgb), 0.25);
  }

  .reason-item h3 {
    color: var(--cyan);
    margin-bottom: 15px;
    font-size: 22px;
  }

  .reason-item p {
    color: var(--text);
  }

  /* プロフィール */

  .profile-content {
    display: flex;
    gap: 60px;
    align-items: flex-start;
  }
  @media (max-width: 1024px){
  .profile-content { gap: 40px; }
  }

  .profile-image {
    position: relative;
    width: 320px;
    max-width: 100%;
    aspect-ratio: 1 / 1;   /* 正方形を保証 */
    height: auto;          /* 高さは比率で決定 */
    flex: 0 0 auto;        /* 固定幅だが縮みはしない */
    border-radius: 16px;
    overflow: visible;     /* デコ枠がはみ出せるように */
    z-index: 0;            /* スタッキングコンテキストの基準に */
    isolation: isolate;    /* 擬似要素の重なりを安定化 */
  }
  @media (max-width: 1024px){
  .profile-image { width: 280px; }
  }
  @media (max-width: 768px){
  .profile-image { width: 75vw; margin: 0 auto 12px; }
  }

  .profile-photo {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;                 /* clip the image corners */
    box-shadow: 0 12px 36px rgba(0,0,0,.25);
    z-index: 1;                       /* above the frames */
    background: #0f1d35;              /* fallback while image loads */
  }
  .profile-photo img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    display: block;
  }

  .profile-text-inner {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 0;
    align-items: flex-start;
  }
  @media (max-width: 1024px){
  .profile-text-inner { gap: 16px; }
  }
  @media (max-width: 768px){
  .profile-text { width: 100%; }
  }
  .profile-text-inner p {
    line-height: 1.9;
    font-size: 16.5px;
    color: var(--text-muted);
    margin-bottom: 16px;
  }
  .profile-text-inner h3 {
    font-size: 26px;
    font-weight: 700;
    color: var(--blue);
    line-height: 1.5;
    margin-bottom: 20px;
    position: relative;
  }
  .profile-text-inner h3::after {
    content: '';
    display: block;
    width: 80px;
    height: 2px;
    background: var(--accent);
    margin-top: 8px;
    border-radius: 2px;
  }
  .profile-image::before {
    /* small orange frame at top-left */
    content: '';
    position: absolute;
    pointer-events: none;
    box-sizing: border-box;
    border-radius: 14px;
    z-index: -1;                /* 常に背面 */
    top: -12px;
    left: -12px;
    width: 34%;                 /* コンテナ比率で安定 */
    height: 34%;
    border: 3px solid var(--accent);
    filter: drop-shadow(0 3px 10px rgba(var(--accent-rgb), .25));
  }
  .profile-image::after {
    /* cyan frame bottom-right */
    content: '';
    position: absolute;
    pointer-events: none;
    box-sizing: border-box;
    border-radius: 14px;
    z-index: -1;                /* 常に背面 */
    right: -12px;
    bottom: -12px;
    width: 68%;                 /* 比率指定で縦に伸び続けない */
    height: 68%;
    border: 3px solid var(--cyan);
    filter: drop-shadow(0 6px 16px rgba(0,0,0,.2));
  }

  .profile-text {
    flex: 1;
  }

  .profile-text h3{
    font-family: var(--font-serif);
    color: var(--cyan);
    font-size: 24px;
    margin-bottom: 20px;
    letter-spacing: var(--tracking-wide);
    line-height: var(--lh-tight);
  }

  .profile-link {
    display: inline-block;
    color: var(--accent);
    text-decoration: none;
    font-weight: bold;
    padding: 12px 24px;
    border: 1px solid rgba(var(--accent-rgb), 0.4);
    border-radius: 25px;
    transition: all 0.3s;
    background: rgba(var(--accent-rgb), 0.1);
    margin-top: 25px;
    width: auto;
    align-self: flex-start;
    white-space: nowrap;
  }

  .profile-link:hover {
    background: rgba(var(--accent-rgb), 0.2);
    border-color: rgba(var(--accent-rgb), 0.8);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(var(--accent-rgb), 0.3);
  }

  .profile-link::after {
    content: '→';
    transition: transform 0.3s;
  }

  .profile-link:hover::after {
    transform: translateX(5px);
  }

  /* お客様の声 */

  .testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
  }

  .testimonial-card {
    --card-padding: 40px;
    --card-radius: 18px;
    --card-shadow: 0 24px 48px rgba(0, 0, 0, 0.24);
    --card-bg: linear-gradient(135deg, rgba(26, 47, 79, 0.55), rgba(20, 40, 65, 0.7));
  }
  .testimonial-card::before{
    content:'';
    position:absolute;
    inset: 10px;
    border:1px dashed rgba(var(--cyan-rgb), 0.3);
    border-radius: 12px;
    pointer-events:none;
    transition: border-color .28s ease;
  }
  .testimonial-card.card--hover:hover{
    --hover-border-opacity: 0.65;
    --hover-shadow: 0 20px 40px rgba(var(--cyan-rgb), 0.25);
    background: linear-gradient(135deg, rgba(26, 47, 79, 0.6), rgba(15, 29, 53, 0.78));
  }
  .testimonial-card.card--hover:hover::before{
    border-color: rgba(var(--cyan-rgb), .45);
  }

  .testimonial-text {
    color: var(--text);
    line-height: 1.9;
    margin-bottom: 25px;
    font-size: 16px;
  }

  .testimonial-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: var(--text-muted);
  }

  .testimonial-profile {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .testimonial-role {
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text);
  }

  .testimonial-note {
    font-size: 14px;
    color: var(--text-muted);
  }

  .testimonial-pill {
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(var(--cyan-rgb), 0.15);
    border: 1px solid rgba(var(--cyan-rgb), 0.35);
    color: var(--cyan);
    font-size: 13px;
    letter-spacing: 0.05em;
    white-space: nowrap;
    align-self: flex-start;
  }

  /* FAQ */

  /* お知らせ */
  .news-list {
    max-width: var(--max-w-wide);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .news-item {
    display: grid;
    grid-template-columns: 130px 1fr;
    align-items: center;
    gap: 20px;
    padding: 18px 22px;
    background: rgba(26,47,79,0.35);
    border: 1px solid rgba(var(--cyan-rgb),0.35);
    border-radius: 10px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    backdrop-filter: blur(8px);
  }
  .news-item:hover {
    transform: translateY(-3px);
    border-color: rgba(var(--cyan-rgb),0.65);
    box-shadow: 0 10px 24px rgba(var(--cyan-rgb),0.22);
  }
  .news-date {
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }
  .news-link {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
  }
  .news-link:hover {
    color: var(--cyan);
    text-decoration: underline;
  }
  .news-more {
    text-align: center;
    margin-top: 26px;
  }
  .news-more-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid rgba(var(--cyan-rgb),0.5);
    border-radius: 999px;
    text-decoration: none;
    color: var(--cyan);
    background: rgba(var(--cyan-rgb),0.08);
    transition: all 0.3s;
    font-weight: 600;
  }
  .news-more-link:hover {
    background: rgba(var(--cyan-rgb),0.16);
    border-color: rgba(var(--cyan-rgb),0.9);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(var(--cyan-rgb), 0.28);
  }
  .news-more-link::after {
    content: '→';
    transition: transform 0.3s;
  }
  .news-more-link:hover::after {
    transform: translateX(5px);
  }

  @media (max-width: 768px) {
  .news-item { grid-template-columns: 1fr; gap: 8px; }
  .news-date { order: 2; }
  }
  /* === Unified section gradient: services → reasons → profile → testimonials → news → faq === */
  .main-content {
    background: linear-gradient(180deg,
    #0a1628 0%,      /* 深い夜（変更なし） */
    #1a2840 25%,     /* 群青（わずかに明るく） */
    #2d4460 50%,     /* 藍色（温かみ増） */
    #3d5775 75%,     /* 夜明け前（温かみ増） */
    #4a6280 92%,     /* 薄明（温かみ増） */
    #556a7f 100%     /* 明け方（温かみ増） */
    );
  }
  .section--services,
  .section--reasons,
  .section--profile,
  .section--testimonials,
  .section--news,
  .section--faq {
    background: transparent;
  }

  .overview-table {
    width: 100%;
    margin-top: var(--space-md);
    border-collapse: collapse;
    border-spacing: 0;
    background: transparent;
  }

  .overview-table th,
  .overview-table td {
    padding: 18px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .overview-table th {
    width: 30%;
    color: var(--cyan);
    font-size: 15px;
    letter-spacing: 0.06em;
    font-weight: 600;
  }

  .overview-table td {
    color: var(--text-strong);
    line-height: 1.9;
  }

  .overview-table tr:last-child th,
  .overview-table tr:last-child td {
    border-bottom: none;
  }

  .overview-table small {
    display: block;
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 0.92em;
  }

  @media (max-width: 640px) {
    .overview-table,
    .overview-table tbody,
    .overview-table tr {
      display: block;
      width: 100%;
    }

    .overview-table th,
    .overview-table td {
      display: block;
      width: 100%;
      padding: 14px 20px;
      border-bottom: none;
    }

    .overview-table th {
      border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .overview-table tr + tr {
      margin-top: 16px;
      border-top: 1px solid rgba(255, 255, 255, 0.12);
    }
  }

  .faq-item {
    background: rgba(26, 47, 79, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(var(--cyan-rgb), 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
  }

  .faq-item:hover {
    border-color: rgba(var(--cyan-rgb), 0.3);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  }

  .faq-number {
    display: inline-block;
    font-weight: bold;
    color: var(--cyan);
    margin-right: 12px;
    font-size: 1.1em;
  }

  .faq-toggle {
    transition: transform 0.3s ease;
  }

  .faq-item.is-open .faq-toggle {
    transform: rotate(180deg);
  }

  .faq-question {
    padding: 25px;
    cursor: pointer;
    font-weight: bold;
    color: var(--text-strong);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .faq-question-text {
    text-align: left;
    flex: 1;
  }

  .faq-question:hover {
    background: rgba(var(--cyan-rgb), 0.1);
  }

  .faq-answer {
    padding: 0 25px 25px;
    color: var(--text);
  }

  /* Timeline */
  .timeline {
    position: relative;
    margin-top: 40px;
    display: grid;
    gap: 28px;
  }

  .timeline-row {
    position: relative;
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 20px;
    align-items: flex-start;
  }

  .timeline-dot {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(var(--cyan-rgb), 0.95), rgba(var(--cyan-rgb), 0.75));
    color: #0a1628;
    font-weight: 900;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
      0 0 0 3px rgba(255, 255, 255, 0.15),
      0 0 18px rgba(var(--cyan-rgb), 0.45);
    text-shadow: none;
  }

  .timeline-row + .timeline-row .timeline-dot::before {
    content: '';
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 28px;
    background: linear-gradient(180deg, rgba(var(--cyan-rgb), 0.25) 0%, rgba(var(--cyan-rgb), 0.05) 100%);
  }

  .timeline-card {
    --card-padding: 24px;
    --card-radius: 14px;
    --card-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
    --card-bg: linear-gradient(135deg, rgba(26, 47, 79, 0.38), rgba(15, 29, 53, 0.48));
  }

  .timeline-card h3 {
    margin: 0 0 12px;
    font-size: 20px;
    color: var(--cyan);
  }

  .timeline-card p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.8;
  }

  @media (max-width: 768px) {
    .timeline {
      gap: 24px;
    }

    .timeline-row {
      grid-template-columns: 1fr;
      gap: 12px;
    }

    .timeline-dot {
      width: 44px;
      height: 44px;
      margin-bottom: 4px;
    }

    .timeline-row + .timeline-row .timeline-dot::before {
      top: -20px;
      height: 20px;
    }
  }

  /* Final CTA */
  .section--final-cta {
    text-align: center;
  }

  .section--final-cta h2 {
    margin-bottom: 30px;
    font-family: '游明朝', 'Yu Mincho', 'Georgia', serif;
    font-weight: 500;
    color: var(--text-strong);
    text-shadow: 0 0 30px rgba(var(--accent-rgb), 0.2);
  }

  .section--final-cta p {
    font-size: 20px;
    margin-bottom: 40px;
    color: var(--text);
  }

  /* フッター */
footer {
  background: linear-gradient(180deg, #0f2f58 0%, #0f2f58 40%, #2f4562 55%, #5b4c62 70%, #d87a48 85%, #f49c53 100%);
  padding: 60px 0 30px;
  color: var(--text-strong);
}

  .footer-sns {
    text-align: center;
    margin: 10px 0;
  }

  .footer-sns a {
    display: inline-block;
    margin: 0 7px;
    font-size: 18px;
    color: var(--text-strong);
    transition: color 0.1s;
  }

  .footer-sns a:hover {
    color: var(--accent); /* 差し色オレンジ */
  }

  .footer-sns .note-icon {
    width: 28px;
    height: 28px;
    vertical-align: middle;
    transition: filter 0.05s;
  }

  .footer-sns a:hover .note-icon {
    filter: brightness(0) saturate(100%) invert(63%) sepia(88%) saturate(2433%) hue-rotate(353deg) brightness(103%) contrast(101%);
  }

  /* ===== Footer new structure ===== */
  .footer-brand {
    text-align: left;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
  }

  /* Pricing cards */
  .section--pricing {
    --section-padding-top: clamp(72px, 12vw, 120px);
    --section-padding-bottom: clamp(60px, 10vw, 110px);
  }

  .pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 40px;
    max-width: var(--layout-width);
    margin: 0 auto 40px;
  }

  .pricing-card {
    --card-padding: 36px 32px 30px;
    --card-radius: 18px;
    --card-border-color: rgba(var(--accent-rgb), 0.4);
    --card-shadow: 0 20px 40px rgba(var(--accent-rgb), 0.18);
    --card-bg: linear-gradient(135deg, rgba(26, 47, 79, 0.55), rgba(15, 29, 53, 0.7));
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .pricing-card::before {
    content: '';
    position: absolute;
    inset: 12px;
    border-radius: 14px;
    border: 1px dashed rgba(var(--accent-rgb), 0.5);
    opacity: 0.7;
    pointer-events: none;
  }

  .pricing-card.card--hover:hover {
    --hover-lift: -8px;
    border-color: rgba(var(--accent-rgb), 0.65);
    box-shadow: 0 26px 56px rgba(var(--accent-rgb), 0.3);
  }

  .pricing-card.card--hover:hover::before {
    border-color: rgba(var(--accent-rgb), 0.72);
  }

  .pricing-title {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .pricing-title .plan-name {
    font-size: 22px;
    font-family: var(--font-serif);
    color: var(--text-strong);
  }

  .pricing-title .plan-tag {
    font-size: 14px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--yellow);
    font-weight: 700;
    font-family: var(--font-sans);
  }

  .pricing-price {
    font-size: 34px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.04em;
  }

  .pricing-price span {
    font-size: 15px;
    color: var(--text-muted);
    margin-left: 8px;
  }

  .pricing-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
  }

  .pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-muted);
    line-height: 1.6;
  }

  .pricing-features li::before {
    content: '✓';
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.08em;
  }

  .pricing-cta {
    margin-top: auto;
    display: flex;
    justify-content: center;
  }

  .pricing-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent) 0%, #e56a28 100%);
    color: #0a1628;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(var(--accent-rgb), 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }

  .pricing-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(var(--accent-rgb), 0.5);
  }

  .pricing-footnote {
    text-align: left;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.8;
    max-width: var(--max-w-compact);
    margin: 0 auto;
  }

  @media (max-width: 1024px) {
    .pricing-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  @media (max-width: 768px) {
    .pricing-grid {
      grid-template-columns: 1fr;
    }
  }

  .pricing-grid.single-column {
    max-width: var(--max-w-wide);
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    justify-content: center;
  }

  .pricing-grid.single-column .pricing-card {
    width: 100%;
    max-width: var(--max-w-compact);
  }

  .footer-brand h2 {
    font-size: 24px;
    line-height: 1.2;
    font-family: var(--font-brand);
    font-weight: 800;
    color: #ffe0c2;
    margin: 0;
    padding: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    letter-spacing: var(--tracking-wide);
  }

  .footer-brand h2 a {
    color: inherit;
    text-decoration: none;
    display: inline-block;
  }

  .footer-brand h2 a:hover {
    color: var(--accent);
  }

  .footer-brand p {
    color: rgba(255,224,194,0.9);
    font-size: 14px;
    font-style: italic;
    letter-spacing: 0.03em;
    margin: 8px 0 0 0;
    padding: 0;
    line-height: 1.6;
  }

  .footer-top {
    display: grid;
    grid-template-columns: 1.4fr 2.6fr;
    gap: 48px;
    align-items: start;
    margin: 0 0 12px 0;
  }
  @media (max-width: 900px) {
  .footer-brand h2 { font-size: 36px; }
  }
  @media (max-width: 600px) {
  .footer-brand h2 { font-size: 28px; }
  }
  .footer-nav h3 a {
    color: #ffe0c2;
    text-decoration: none;
    display: inline-block;
    line-height: inherit;
  }

  .footer-nav h3 a:hover {
    color: #fff2e0;
  }

  .footer-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 28px;
    margin: 0;
    padding: 0;
    text-align: left;
  }
  .footer-nav > div {
    margin: 0;
    padding: 0;
  }

  .footer-nav h3 {
    color: #ffe0c2;
    font-size: 14px;
    margin: 0 0 10px 0;
    padding: 0;
    line-height: 1.2;
    font-family: var(--font-sans);
    font-weight: 700;
    letter-spacing: var(--tracking-tight);
  }

  .footer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .footer-nav li {
    margin: 0;
    padding: 0;
  }

  .footer-nav a {
    color: var(--text-strong);
    text-decoration: none;
    display: block;
    margin: 0 0 6px 0;
    padding: 0;
    font-size: 14px;
    transition: color 0.2s;
    line-height: 1.6;
  }

  .footer-nav a:hover {
    color: #ffe0c2;
  }

  .footer-legal {
    text-align: center;
    color: #ffe0c2;
    margin: 10px 0 6px;
    font-size: 13px;
  }
  .footer-legal a {
    color: #ffe0c2;
    text-decoration: none;
  }

  .footer-copy {
    text-align: center;
    color: #ffe0c2;
    font-size: 12px;
  }

  /* responsive for footer grid and mobile optimization */
  @media (max-width: 900px) {
    .footer-nav { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
    .footer-top { grid-template-columns: 1fr; gap: 24px; }
    /* Avoid jank from fixed background on mobile */
    .hero { background-attachment: scroll; }
  }

  @media (max-width: 768px){
    .section { --section-padding-y: clamp(48px, 18vw, 80px); }
    .hero h1 { font-size: 36px; }
    .hero p { font-size: 18px; }
    nav ul { gap: 20px; }
    .profile-content { flex-direction: column; }
    .story-title { font-size: 24px; }
    .story-text { font-size: 18px; }
    .service-grid {
      grid-template-columns: 1fr;
    }
  }

  @media (max-width: 600px) {
    .footer-nav { grid-template-columns: 1fr; }
  }

  /* === Reduce Motion: ユーザー設定でアニメ抑制 === */
  @media (prefers-reduced-motion: reduce) {
  .star { animation: none !important; }
  .loading-butterfly { animation: none !important; }
  .trail { animation: none !important; }
  }

  /* セクション区切りのわずかなディムは不要（連続グラデーションへ統合） */
  /* legalページのスタイル調整 */
  .section--legal {
    --section-padding-top: 120px; /* ヘッダーの高さ分を確保 */
    --section-padding-bottom: 80px;
  }

  .legal-page h1 {
    font-size: var(--fz-h1);
    text-align: center;
    margin-bottom: 60px;
  }

  .legal-page h2 {
    font-size: var(--fz-h3);
    color: var(--cyan);
    text-align: left;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(var(--cyan-rgb), 0.3);
  }

  .legal-page p, .legal-page li {
    text-align: left;
    color: var(--text);
    line-height: var(--lh-relaxed);
  }

  .legal-page ul, .legal-page ol {
    padding-left: 1.5em;
  }

  .legal-page li {
    margin-bottom: 10px;
  }
  /* 入れ子リストのインデント調整 */
  .legal-page li ul {
    margin-top: 10px;
  }
  .legal-page .revision-dates {
    margin-top: 60px;
    text-align: right;
    font-size: var(--fz-small);
    color: var(--text-muted);
  }

  /* ===== Noctiliaを支える5つの羅針 ===== */
  .principles {
    position: relative;
    background: transparent;
  }

  .principles h2 {
    margin-bottom: 48px;
  }

  .principle-list {
    display: flex;
    flex-wrap: wrap;
    gap: 36px;
    justify-content: center;
    counter-reset: principle;
  }

  .principle-item {
    position: relative;
    z-index: 0;
    flex: 0 1 calc(33.333% - 24px);
    max-width: 340px;
    padding: 36px 32px 42px;
    border-radius: 18px;
    border: 1px solid rgba(var(--cyan-rgb), 0.25);
    background: linear-gradient(160deg, rgba(26, 47, 79, 0.75) 0%, rgba(22, 38, 62, 0.5) 100%);
    box-shadow: 0 18px 35px rgba(10, 22, 40, 0.4);
    backdrop-filter: blur(12px);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
  }

  .principle-item::before {
    counter-increment: principle;
    content: counter(principle, decimal-leading-zero);
    position: absolute;
    top: 18px;
    right: 28px;
    font-size: 12px;
    letter-spacing: 0.18em;
    color: rgba(var(--cyan-rgb), 0.45);
    font-family: var(--font-sans);
  }

  .principle-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 10%, rgba(var(--cyan-rgb), 0.16), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: -1;
  }

  .principle-item:hover {
    transform: translateY(-8px);
    border-color: rgba(var(--cyan-rgb), 0.55);
    box-shadow: 0 26px 42px rgba(10, 22, 40, 0.55);
  }

  .principle-item:hover::after {
    opacity: 1;
  }

  .principle-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 8px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--text-strong);
    background: radial-gradient(circle at 40% 30%, rgba(var(--cyan-rgb), 0.6), rgba(var(--cyan-rgb), 0.18));
    box-shadow: 0 12px 28px rgba(var(--cyan-rgb), 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .principle-item:hover .principle-icon {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 18px 34px rgba(var(--cyan-rgb), 0.45);
  }

  .principle-item h3 {
    margin: 0;
    font-size: 1.15rem;
    color: var(--cyan);
    letter-spacing: 0.04em;
  }

  .principle-item p {
    margin: 0;
    color: var(--text);
    line-height: 1.85;
    font-size: 0.98rem;
  }

  @media (max-width: 900px) {
    .principle-list {
      gap: 28px;
    }

    .principle-item {
      flex: 0 1 calc(50% - 18px);
      max-width: 420px;
    }
  }

  @media (max-width: 768px) {
    .principles {
      padding: 80px 0;
    }

    .principle-item {
      padding: 28px 24px 34px;
      flex-basis: calc(50% - 18px);
    }

    .principle-item::before {
      right: 24px;
    }
  }

  @media (max-width: 600px) {
    .principle-list {
      gap: 24px;
    }

    .principle-item {
      flex: 1 1 100%;
      max-width: none;
    }
  }

  .section--final-cta .cta-accordion{
    max-width: var(--max-w-compact);
    margin:40px auto 24px; text-align:left;
    padding:16px 20px; border:1px solid rgba(255,255,255,.18);
    border-radius:12px; background:rgba(255,255,255,.04);
    box-shadow:0 2px 12px rgba(0,0,0,.15);
  }
.section--final-cta .cta-accordion:last-child{ margin-bottom:0; }
.section--final-cta .cta-accordion summary{
    display:flex; align-items:center; gap:12px; list-style:none;
    cursor:pointer; color:var(--text-strong); font-weight:700; font-size:1.05rem;
  }
.section--final-cta .cta-accordion summary::-webkit-details-marker{ display:none; }
.section--final-cta .cta-accordion summary::after{
    content:"▼";
    margin-left:auto;
    font-size:.85rem;
    color:rgba(255,255,255,.6);
    transition:transform .2s ease;
  }
.section--final-cta .cta-accordion[open] summary::after{ transform:rotate(-180deg); }
.section--final-cta .cta-accordion summary strong{ font-weight:700; }
.section--final-cta .cta-accordion__content{
    display:grid;
    gap:16px;
    margin-top:12px;
  }
.section--final-cta .cta-accordion__section{
    border-top:1px solid rgba(255,255,255,.18);
    padding-top:12px;
  }
.section--final-cta .cta-accordion__section:first-child{
    border-top:none;
    padding-top:0;
  }
.section--final-cta .cta-accordion__subtitle{
    margin:0 0 8px;
    font-size:1.1rem;
    color:var(--cyan);
    font-weight: 700;
  }
.section--final-cta .cta-accordion .keypoints{
    list-style:disc;
    padding-left:1.25rem;
    line-height:1.7;
    margin:0;
    font-variant-numeric:tabular-nums;
  }
.section--final-cta .cta-accordion .keypoints li{ margin:6px 0; }
  @media (max-width:480px){
  .section--final-cta .cta-accordion{ padding:14px 16px; }
  .section--final-cta .cta-accordion summary{ font-size:1.0rem; }
  }
  /* Tallyフォールバックのトーンを下げる */
  .form-fallback{
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    color: rgba(255,255,255,.66);
  }
  .form-fallback a{
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: .08em;
  }

  /* Font Awesome Brands はブロックさせない */
  @font-face {
    font-family: "Font Awesome 6 Brands";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/webfonts/fa-brands-400.woff2") format("woff2");
  }

  .fa-solid  { font-family: "Font Awesome 6 Free";    font-weight: 900; }
  .fa-brands { font-family: "Font Awesome 6 Brands";  font-weight: 400; }

  /* Large Problem Card */
  .problem-card--large {
    --card-padding: 48px 40px;
    --card-radius: 18px;
    --card-border-width: 2px;
    --card-border-color: rgba(var(--cyan-rgb), 0.45);
    --card-shadow: 0 18px 40px rgba(var(--cyan-rgb), 0.2);
    --card-bg: linear-gradient(135deg, rgba(26, 47, 79, 0.7), rgba(15, 29, 53, 0.85));
  }
  .problem-card--large.card--hover:hover {
    --hover-shadow: 0 24px 50px rgba(var(--cyan-rgb), 0.35);
  }
  .problem-card--large .problem-icon {
    font-size: 56px;
    color: var(--cyan);
    margin-bottom: 24px;
    filter: drop-shadow(0 0 12px rgba(var(--cyan-rgb), 0.5));
  }
  .problem-card--large h3 {
    font-size: 24px;
    color: var(--cyan);
    margin-bottom: 16px;
  }
  .problem-card--large p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text);
  }

  /* Compact Problem Card */
  .problem-card--compact {
    --card-padding: 28px 24px;
    --card-radius: 14px;
    --card-border-color: rgba(var(--cyan-rgb), 0.25);
    --card-bg: rgba(26, 47, 79, 0.4);
    transition: background 0.3s ease, border-color 0.3s ease;
  }
  .problem-card--compact.card--hover:hover {
    border-color: rgba(var(--cyan-rgb), 0.5);
    background: rgba(26, 47, 79, 0.55);
  }
  .problem-card--compact .problem-icon-small {
    font-size: 36px;
    color: rgba(var(--cyan-rgb), 0.75);
    margin-bottom: 12px;
  }
  .problem-card--compact h4 {
    font-size: 18px;
    color: var(--text-strong);
    margin-bottom: 8px;
  }
  .problem-card--compact p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-muted);
  }

  @media (max-width: 768px) {
  .problem-primary { grid-template-columns: 1fr; }
  .problem-secondary { grid-template-columns: 1fr; }
  }

  /* スマホ向け：Problem Card のパディングとサイズ調整 */
  @media (max-width: 600px) {
  /* グリッドレイアウトの調整（ボックスの中央揃え） */
  .problem-primary {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 32px;
  }
  .problem-secondary {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .problem-card--large {
    --card-padding: 24px 20px;
  }
  .problem-card--large .problem-icon {
    font-size: 40px;
    margin-bottom: 16px;
  }
  .problem-card--large h3 {
    font-size: 20px;
    margin-bottom: 12px;
  }
  .problem-card--large p {
    font-size: 15px;
    line-height: 1.7;
  }

  .problem-card--compact {
    --card-padding: 20px 16px;
  }
  .problem-card--compact .problem-icon-small {
    font-size: 30px;
    margin-bottom: 10px;
  }
  .problem-card--compact h4 {
    font-size: 16px;
  }
  .problem-card--compact p {
    font-size: 14px;
  }
  }

  /* 超小型デバイス向け：さらなる最適化（320px対応） */
  @media (max-width: 360px) {
  .problem-card--large {
    --card-padding: 20px 16px;
  }
  .problem-card--compact {
    --card-padding: 16px 12px;
  }
  }

  .benefit-cards {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 32px;
    max-width: var(--max-w-extended);
    margin: 0 auto;
  }
  .benefit-item {
    flex: 1;
    min-width: 0;
    text-align: center;
    --card-padding: 32px 24px;
    --card-border-color: rgba(var(--cyan-rgb), 0.3);
    --card-bg: linear-gradient(135deg, rgba(26, 47, 79, 0.5), rgba(15, 29, 53, 0.65));
  }
  .benefit-item.card--hover:hover {
    --hover-lift: -6px;
    --hover-shadow: none;
  }
  .benefit-icon {
    font-size: 48px;
    margin-bottom: 16px;
    text-align: center;
  }
  .benefit-icon i.fa-sun {
    color: var(--yellow);
    filter: drop-shadow(0 0 12px rgba(var(--yellow-rgb), 0.5));
  }
  .benefit-icon i.fa-person-running {
    color: var(--cyan);
    filter: drop-shadow(0 0 10px rgba(var(--cyan-rgb), 0.4));
  }
  .benefit-icon i.fa-briefcase {
    color: var(--accent);
    filter: drop-shadow(0 0 10px rgba(var(--accent-rgb), 0.4));
  }
  .benefit-item h3 {
    font-size: 20px;
    color: var(--text-strong);
    margin-bottom: 12px;
    text-align: center;
  }
  .benefit-item p {
    font-size: 15px;
    color: var(--text);
    line-height: 1.7;
    text-align: left;
  }

  @media (max-width: 900px) {
  .benefit-cards { flex-direction: column; }
  }

  /* Hero Service Card */
  .service-hero {
    --card-padding: 48px;
    --card-radius: 20px;
    --card-border-width: 2px;
    --card-border-color: rgba(var(--cyan-rgb), 0.5);
    --card-shadow: 0 20px 50px rgba(var(--cyan-rgb), 0.25);
    --card-bg: linear-gradient(135deg, rgba(var(--cyan-rgb), 0.25), rgba(var(--cyan-rgb), 0.08));
  }
  .service-hero::before {
    content: '';
    position: absolute;
    inset: 16px;
    border: 1px dashed rgba(var(--cyan-rgb), 0.4);
    border-radius: 16px;
    pointer-events: none;
  }
  .service-hero-content {
    display: flex;
    align-items: center;
    gap: 32px;
  }
  .service-hero-icon {
    font-size: 80px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 20px rgba(var(--cyan-rgb), 0.6));
  }
  .service-hero-icon i {
    color: var(--cyan);
  }
  .service-hero-text h3 {
    font-size: 28px;
    color: var(--cyan);
    margin-bottom: 16px;
  }
  .service-hero-text p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text);
  }

  @media (max-width: 768px) {
  .service-hero-content { flex-direction: column; text-align: center; }
  }

  .accordion-item {
    background: rgba(26, 47, 79, 0.5);
    border: 1px solid rgba(var(--cyan-rgb), 0.35);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: border-color 0.3s ease;
  }
  .accordion-item:hover {
    border-color: rgba(var(--cyan-rgb), 0.65);
  }
  .accordion-summary {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    color: var(--text-strong);
  }
  .accordion-summary::-webkit-details-marker {
    display: none;
  }
  .accordion-icon {
    font-size: 28px;
    flex-shrink: 0;
    width: 40px;
    text-align: center;
  }
  .accordion-icon i {
    color: var(--cyan);
  }
  .accordion-title {
    flex: 1;
  }
  .accordion-toggle {
    font-size: 14px;
    color: var(--cyan);
    transition: transform 0.3s ease;
  }
  details[open] .accordion-toggle {
    transform: rotate(180deg);
  }
  .accordion-content {
    padding: 0 24px 24px 68px;
    color: var(--text);
    line-height: 1.8;
  }
  .accordion-content ul {
    margin: 12px 0;
    padding-left: 20px;
  }
  .accordion-note {
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(var(--cyan-rgb), 0.08);
    border-radius: 6px;
    font-size: 15px;
  }
  .accordion-note i.fa-lightbulb {
    color: var(--yellow);
    margin-right: 8px;
    filter: drop-shadow(0 0 8px rgba(var(--yellow-rgb), 0.4));
  }
  /* ===================================
  Trust Signals - Temporary/Compact Design
  TODO: Replace with testimonials when customer feedback is available
  =================================== */

  .trust-signals {
    padding: 80px 0;
  }

  .trust-signals h2 {
    margin-bottom: 48px;
  }

  .trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 32px;
    max-width: var(--max-w-extended);
    margin: 0 auto;
  }

  .trust-item {
    --card-padding: 20px;
    --card-radius: 12px;
    --card-border-color: rgba(var(--cyan-rgb), 0.35);
    --card-bg: rgba(26, 47, 79, 0.35);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: transform 0.2s ease, border-color 0.2s ease;
  }

  .trust-item.card--hover:hover {
    --hover-lift: -3px;
    --hover-border-opacity: 0.65;
    --hover-shadow: none;
  }

  .trust-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--cyan);
    background: rgba(var(--cyan-rgb), 0.1);
    border-radius: 8px;
    filter: drop-shadow(0 0 10px rgba(var(--cyan-rgb), 0.35));
  }

  .trust-content {
    flex: 1;
    min-width: 0;
  }

  .trust-label {
    font-size: 18px;
    font-weight: 700;
    color: var(--yellow);
    margin-bottom: 4px;
    line-height: 1.2;
  }

  .trust-item p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
  }

  /* Topページ専用：Benefitスタイルのボックスデザイン */
  body[data-page-key="home"] .trust-item {
    flex-direction: column;
    align-items: center;
    --card-padding: 32px 24px;
    --card-bg: linear-gradient(135deg, rgba(26, 47, 79, 0.5), rgba(15, 29, 53, 0.65));
    --card-border-color: rgba(var(--cyan-rgb), 0.35);
  }

  body[data-page-key="home"] .trust-item.card--hover:hover {
    transform: translateY(-6px);
    border-color: rgba(var(--cyan-rgb), 0.6);
  }

  body[data-page-key="home"] .trust-icon {
    width: auto;
    height: auto;
    font-size: 48px;
    background: none;
    filter: drop-shadow(0 0 12px rgba(var(--cyan-rgb), 0.5));
    margin-bottom: 16px;
  }

  body[data-page-key="home"] .trust-content {
    width: 100%;
  }

  body[data-page-key="home"] .trust-label {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-strong);
    text-align: center;
  }

  body[data-page-key="home"] .trust-item p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
    text-align: left;
  }

  @media (max-width: 900px) {
    .trust-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 20px;
    }
  }

  @media (max-width: 600px) {
    .trust-grid {
      grid-template-columns: 1fr;
      gap: 16px;
    }

    .trust-item {
      padding: 16px;
    }
  }

/* === Component helpers migrated from inline styles === */
.hero--short {
  min-height: 50vh;
}

.problem-primary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 32px;
  margin-bottom: 48px;
}

.problem-secondary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 20px;
}

.problem-secondary h4 {
  color: var(--cyan);
}

.deliverables-inline {
  margin-top: 60px;
  padding: 32px;
  background: rgba(var(--yellow-rgb), 0.08);
  border: 1px solid rgba(var(--yellow-rgb), 0.4);
  border-radius: 16px;
}
.deliverables-inline h3 {
  color: var(--yellow);
  text-shadow: 0 0 12px rgba(var(--yellow-rgb), 0.3);
}

.deliverables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 24px;
}

.deliverable-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.deliverable-icon {
  font-size: 32px;
  color: var(--yellow);
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(var(--yellow-rgb), 0.35));
}

.deliverable-title {
  margin: 0 0 6px;
  font-size: 17px;
  color: var(--yellow);
}

.deliverable-text {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
}

.options {
  text-align: center;
}

.options h3 {
  color: var(--cyan);
}

.legal-links {
  margin-top: 40px;
  font-size: 14px;
  text-align: center;
}

.legal-links a {
  color: var(--text-muted);
  margin: 0 10px;
}

.accordion-list {
  max-width: var(--max-w-medium);
  margin: 0 auto;
}

.checklist {
  text-align: left;
  list-style: none;
  padding-left: 0;
  max-width: var(--max-w-compact);
  margin: 30px auto;
}

.checklist .fa-solid {
  color: var(--cyan);
  margin-right: 10px;
}

.link-cloud {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 24px;
}

.reason-item--compact {
  padding: 25px;
}

.section--contact {
  --section-padding-top: 120px;
  --section-padding-bottom: 80px;
}

.story-title--xl {
  font-size: var(--fz-h1);
}

.profile-subtitle {
  font-size: 16px;
  color: var(--text-muted);
}

.profile-role {
  font-weight: bold;
  color: var(--text);
}

.cta-centered {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.lead--centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.lead-highlight {
  font-weight: 700;
  color: var(--text-strong);
  border-top: 1px solid rgba(var(--cyan-rgb), 0.3);
  border-bottom: 1px solid rgba(var(--cyan-rgb), 0.3);
  padding: 20px 0;
  margin-top: 30px;
}

#tally-form-embed {
  width: 100%;
  margin: 50px 0;
}

.mr-8 {
  margin-right: 8px;
}

/* === Utility helpers === */
.text-center {
  text-align: center;
}

.text-accent {
  color: var(--accent);
}

.text-muted {
  color: var(--text-muted);
}

.content-width,
.content-width-wide,
.content-width-feature,
.content-width-narrow,
.content-width-compact,
.content-width-extended {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.content-width {
  max-width: var(--max-w-medium);
}

.content-width-feature {
  max-width: var(--max-w-feature);
}

.content-width-narrow {
  max-width: var(--max-w-narrow);
}

.content-width-compact {
  max-width: var(--max-w-compact);
}

.content-width-wide {
  max-width: var(--max-w-wide);
}

.content-width-extended {
  max-width: var(--max-w-extended);
}

.mt-30 {
  margin-top: 30px;
}

.mt-50 {
  margin-top: 50px;
}

.mt-60 {
  margin-top: 60px;
}

.mb-24 {
  margin-bottom: 24px;
}

.mb-40 {
  margin-bottom: 40px;
}

.mb-48 {
  margin-bottom: 48px;
}

/* ==========================================================================
   スマホ向け包括的レスポンシブ対応（600px以下）
   ========================================================================== */
@media (max-width: 600px) {
  /* カード共通パディングの最適化 */
  .card,
  .service-card,
  .reason-item,
  .pricing-card,
  .benefit-item,
  .trust-item {
    --card-padding: 16px;
  }

  /* Testimonial Card の特別調整（バランス重視） */
  .testimonial-card {
    --card-padding: 28px 24px;
  }
  .testimonial-text {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
  }
  .testimonial-grid {
    gap: 24px;
  }

  /* Accordion のスマホ最適化 */
  .accordion-summary {
    padding: 16px 20px;
    gap: 12px;
  }
  .accordion-icon {
    font-size: 24px;
    width: 36px;
  }
  .accordion-content {
    padding: 0 20px 20px 56px;
    font-size: 15px;
  }
  .accordion-content ul {
    padding-left: 16px;
  }

  /* Trust Grid のスマホ対応 */
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .trust-item {
    --card-padding: 16px;
  }
  .trust-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  .trust-label {
    font-size: 16px;
  }

  /* ホームページのTrust Item（縦型レイアウト）もスマホ最適化 */
  body[data-page-key="home"] .trust-item {
    --card-padding: 24px 20px;
  }
  body[data-page-key="home"] .trust-icon {
    font-size: 40px;
  }

  /* Benefit Item のスマホ最適化 */
  .benefit-item {
    --card-padding: 24px 20px;
  }
  .benefit-icon {
    font-size: 40px;
  }
  .benefit-item h3 {
    font-size: 18px;
  }
  .benefit-item p {
    font-size: 14px;
    line-height: 1.6;
  }

  /* Service Hero のスマホ最適化 */
  .service-hero {
    --card-padding: 32px 20px;
  }
  .service-hero-icon {
    font-size: 60px;
  }
  .service-hero-text h3 {
    font-size: 24px;
  }
  .service-hero-text p {
    font-size: 15px;
  }

  /* Reason Item のスマホ最適化 */
  .reason-item--compact {
    padding: 20px 16px;
  }

  /* CTA ボタンのスマホ最適化 */
  .cta-centered {
    flex-direction: column;
    gap: 12px;
  }
  .cta-centered .cta-button {
    width: 100%;
  }

  /* Hero Content のスマホ最適化 */
  .hero-content {
    padding: 0 20px;
  }

  /* Pricing Card のスマホ最適化 */
  .pricing-card {
    --card-padding: 24px 20px;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* FAQ のスマホ最適化 */
  .faq-question {
    padding: 20px;
    font-size: 16px;
  }
  .faq-answer {
    padding: 0 20px 20px;
    font-size: 15px;
  }

  /* Story セクションのスマホ最適化 */
  .story-title {
    font-size: 24px;
    margin-bottom: 24px;
  }
  .story-text {
    font-size: 16px;
    line-height: 1.7;
  }

  /* Service Card のスマホ最適化（ホームページ用） */
  .service-card {
    --card-padding: 28px 24px;
  }
  .service-grid {
    gap: 24px;
  }

  /* Reason Item のアイコンサイズ調整 */
  .reason-icon {
    font-size: 40px;
    margin-bottom: 16px;
  }
  .reason-item h3 {
    font-size: 20px;
    margin-bottom: 12px;
  }

  /* Deliverables（成果物）のスマホ最適化 */
  .deliverables-inline {
    padding: 24px 20px;
    margin-top: 40px;
  }
  .deliverables-grid {
    gap: 20px;
  }
  .deliverable-icon {
    font-size: 28px;
  }
  .deliverable-title {
    font-size: 16px;
  }
  .deliverable-text {
    font-size: 14px;
  }
}

/* ==========================================================================
   超小型デバイス向け包括的レスポンシブ対応（360px以下）
   ========================================================================== */
@media (max-width: 360px) {
  /* レイアウトパディングの最小化 */
  .layout {
    padding: 0 8px;
  }

  /* カード共通パディングの最適化 */
  .card,
  .service-card,
  .reason-item,
  .pricing-card,
  .benefit-item,
  .trust-item {
    --card-padding: 12px;
  }

  /* Testimonial Card の特別調整（超小型デバイス） */
  .testimonial-card {
    --card-padding: 24px 20px;
  }
  .testimonial-text {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
  }
  .testimonial-grid {
    gap: 20px;
  }

  /* Hero Content のさらなる最適化 */
  .hero-content {
    padding: 0 16px;
  }

  /* Pricing Card の最適化 */
  .pricing-card {
    --card-padding: 20px 16px;
  }

  /* Service Card の最適化 */
  .service-card {
    --card-padding: 24px 16px;
  }

  /* Benefit Item の最適化 */
  .benefit-item {
    --card-padding: 20px 16px;
  }
  .benefit-item h3 {
    font-size: 16px;
  }
  .benefit-item p {
    font-size: 13px;
    line-height: 1.6;
  }

  /* Service Hero の最適化 */
  .service-hero {
    --card-padding: 28px 16px;
  }

  /* Accordion のさらなる最適化 */
  .accordion-summary {
    padding: 14px 16px;
    gap: 10px;
  }
  .accordion-content {
    padding: 0 16px 16px 48px;
  }

  /* FAQ のさらなる最適化 */
  .faq-question {
    padding: 16px;
  }
  .faq-answer {
    padding: 0 16px 16px;
  }

  /* Deliverables（成果物）の超小型デバイス最適化 */
  .deliverables-inline {
    padding: 20px 16px;
    margin-top: 32px;
  }
  .deliverables-grid {
    gap: 16px;
  }
  .deliverable-icon {
    font-size: 24px;
  }
  .deliverable-title {
    font-size: 15px;
  }
  .deliverable-text {
    font-size: 13px;
  }
}
