/* ========================================
   Hitasur@ - Front Page CSS
   トップページ専用スタイル
======================================== */

/* ========================================
   リード文+CTAセクション
======================================== */
.lead-cta-section {
  padding: 0 5%;
  background: var(--color-white);
  display: flex;
  justify-content: center;
}

.lead-cta-section__inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.lead-text {
  font-size: clamp(1rem, 2vw, 1.5rem); /* 16px〜24px */
  line-height: var(--lh-body);
  color: var(--color-text);
  margin-bottom: 3.75rem;
  text-align: left;
  text-wrap: balance;
}

/* スマホのみ表示する改行 */
.sp-only {
  display: none;
}

.cta-note {
  font-size: clamp(1rem, 1.5vw, 1.125rem); /* 16px〜18px */
  color: var(--color-text-light);
  text-wrap: balance;
}

/* ========================================
   私たちの覚悟セクション
======================================== */
.kakugo-section {
  padding: 3rem 5%;
  background: var(--color-white);
}

.kakugo-section__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(3rem, 6vw, 4.5rem); /* 48px〜72px */
  font-weight: 400;
  color: var(--color-white);
  -webkit-text-stroke: 1.5px var(--color-black);
  paint-order: stroke fill;
  margin-bottom: 3rem;
  letter-spacing: 0.15em;
  text-align: center;
  text-wrap: balance;
}

.kakugo-box {
  margin-bottom: 6.25rem;
}

.kakugo-box__title {
  font-size: clamp(1.5rem, 2.5vw, 2rem); /* 24px〜32px */
  font-weight: 700;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--color-black);
  text-align: left;
  text-wrap: balance;
}

.kakugo-box__subtitle {
  font-size: clamp(1rem, 2vw, 1.5rem); /* 16px〜24px */
  font-weight: 400; /* 500から変更 - フォント軽量化 */
  line-height: 1.8;
  margin-bottom: 3rem;
  color: var(--color-black);
  text-align: left;
  text-wrap: balance;
}

.kakugo-list {
  list-style: none;
  padding-left: 0;
  margin: 0;  /* Astraテーマのul marginを上書き */
}

.kakugo-list__item {
  font-size: clamp(1rem, 1.5vw, 1.125rem); /* 16px〜18px */
  line-height: 2.5;
  margin-bottom: 0.9375rem;
  color: var(--color-text);
  text-align: left;
  display: flex;
  gap: 0.5em;
  align-items: flex-start;
  text-wrap: balance;  /* 全体にも適用 */
}

.kakugo-tag {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--color-black);
  white-space: nowrap;  /* タグは折り返さない */
}

.kakugo-text {
  flex: 1;
  min-width: 0;  /* flexboxの折り返し問題を解決 */
  line-height: var(--lh-body);
}

.why-box {
  text-align: right;
}

.why-box__title {
  font-size: clamp(1.5rem, 3vw, 2rem); /* 24px〜32px */
  font-weight: 700;
  line-height: 1.8;
  margin-bottom: 1rem;
  color: var(--color-black);
  text-wrap: balance;
}

.why-box__lead {
  font-size: clamp(1rem, 2vw, 1.5rem); /* 16px〜24px */
  font-weight: 400; /* 500から変更 - フォント軽量化 */
  line-height: var(--lh-body);
  margin-bottom: 2rem;
  color: var(--color-text);
  text-align: right;
}

.why-box__text {
  font-size: clamp(1rem, 1.5vw, 1.125rem); /* 16px〜18px */
  line-height: var(--lh-body);
  color: var(--color-text);
}

/* ========================================
   SERVICEセクション
======================================== */
.service-section {
  background: var(--color-black);
  color: var(--color-white);
  padding: 4rem 5%;
}

/* 黒背景セクションでの見出し色を白に上書き */
.service-section h1,
.service-section h2,
.service-section h3 {
  color: var(--color-white);
}

/* 黒背景セクションでのリンク色を白に上書き（ボタンクラスがあれば除外） */
.service-section a:not([class*="btn"]) {
  color: var(--color-white);
}

.service-section a:not([class*="btn"]):hover {
  color: #ccc;
}

.service-section a:not([class*="btn"]):visited {
  color: var(--color-white);
}

.service-inner {
  max-width: 1200px;
  margin: 0 auto;
}

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

.service-title {
  font-size: clamp(3rem, 6vw, 4.5rem); /* 48px〜72px */
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  color: var(--color-white) !important;
}

.service-subtitle {
  font-size: clamp(1rem, 2vw, 1.5rem); /* 16px〜24px */
  font-weight: 400;
  color: var(--color-white) !important;
  opacity: 0.9;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(4, auto); /* 上段(ヘッダー+本文) + 下段(ヘッダー+本文) */
  gap: 0 2rem;
}

.service-card {
  display: grid;
  grid-template-rows: subgrid; /* 親の行を継承 */
  grid-row: span 2; /* ヘッダー行 + 本文行 */
  background: transparent;
  padding: 2rem 0;
  border-top: 3px solid rgba(255, 255, 255, 0.4);
  border-bottom: 3px solid rgba(255, 255, 255, 0.4);
  opacity: 0;
  transform: translateY(30px);
}

/* 4番目以降（2行目）のカードは上線を消す */
.service-card:nth-child(n+4) {
  border-top: none;
}

.service-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start; /* baseline → flex-start */
  margin-bottom: 1rem;
}

.service-card-title {
  font-size: clamp(1.25rem, 3vw, 1.75rem); /* 20px〜28px */
  font-weight: 700;
  color: var(--color-white) !important;
  word-break: keep-all; /* 日本語の途中で改行しない（wbrのみで改行） */
}

.service-card-subtitle {
  font-size: 1rem; /* 16px - 8ptグリッド準拠 */
  font-weight: 400;
  opacity: 0.7;
  color: var(--color-white) !important;
  text-align: right; /* 折り返し時も右揃え */
}

.service-card-description {
  font-size: clamp(1rem, 1.5vw, 1.125rem); /* 16px〜18px */
  line-height: var(--lh-body);
  color: var(--color-white);
}

.service-cta {
  text-align: center;
  margin-top: 2rem;
  padding-top: 0;
}

/* ========================================
   ACHIEVEMENTSセクション（実績）
======================================== */
.achievements-section {
  padding: 3rem 5%;
  background: var(--color-white);
}

.achievements-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.achievements-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.achievements-title {
  font-size: clamp(3rem, 6vw, 4.5rem); /* 48px〜72px */
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  color: var(--color-black);
}

.achievements-subtitle {
  font-size: clamp(1rem, 2vw, 1.5rem); /* 16px〜24px */
  color: var(--color-text);
}

/* 実績カード（ベース定義） */
.achievement-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.achievement-image {
  aspect-ratio: 16/10;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: grayscale(100%) brightness(0.9) contrast(1.1);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.achievement-info {
  padding: 1.5rem;
}

.achievement-title {
  font-size: clamp(1.125rem, 2vw, 1.5rem); /* 18px〜24px */
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--color-black);
}

.achievement-result {
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 1rem;
  line-height: var(--lh-body);
}

.achievement-detail-btn {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  border: 1px solid var(--color-black);
  color: var(--color-black);
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.5px;
  transition: all 0.3s;
  background: var(--color-white);
}

/* ========================================
   ROADMAPセクション
======================================== */
.roadmap-section {
  background: var(--color-white);
  padding: 3rem 5%;
}

.roadmap-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.roadmap-header {
  text-align: center;
  margin-bottom: 2rem;
}

.roadmap-title {
  font-size: clamp(3rem, 6vw, 4.5rem); /* 48px〜72px */
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  color: var(--color-black);
}

.roadmap-subtitle {
  font-size: clamp(1rem, 2vw, 1.5rem); /* 16px〜24px */
  color: var(--color-text);
}

/* タブコンテナ */
.roadmap-tabs {
  border: 1px solid var(--color-black);
  position: relative;
}

.roadmap-tab-buttons {
  display: flex;
  border-bottom: 1px solid var(--color-black);
}

.roadmap-section .roadmap-tab-button {
  flex: 1;
  padding: 1.5rem 1rem;
  background: var(--color-black);
  color: var(--color-white);
  border-right: 1px solid var(--color-black);
  border-radius: 0;
  font-size: clamp(1rem, 2vw, 1.5rem); /* 16px〜24px */
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-ja);
}

.roadmap-section .roadmap-tab-button:last-child {
  border-right: none;
}

.roadmap-section .roadmap-tab-button:hover {
  background: #333;
}

.roadmap-section .roadmap-tab-button.active {
  background: var(--color-white);
  color: var(--color-black);
}

/* タブコンテンツ */
.roadmap-tab-content {
  padding: 3rem 10%;
}

.roadmap-content {
  display: none;
}

.roadmap-content.active {
  display: block;
}

.roadmap-content-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--color-black);
}

.roadmap-divider {
  border: none;
  border-top: 2px solid var(--color-black);
  margin: 0 0 3rem 0;
}

/* コンテンツボディ */
.roadmap-list-container {
  margin-bottom: 3rem;
}

.roadmap-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.roadmap-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
  line-height: var(--lh-body);
  font-size: 1rem;
  color: var(--color-text);
}

.roadmap-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-black);
  font-weight: 700;
}

/* 「得られるもの」ボックス */
.roadmap-result-divider {
  border: none;
  border-top: 2px solid var(--color-black);
  margin: 0 0 2rem 0;
}

.roadmap-result-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-black);
}

.roadmap-result-text {
  list-style: none;
  padding: 0;
  margin: 0 0 0 auto;
  max-width: 50%;
}

.roadmap-result-text li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: var(--lh-body);
  font-size: 1rem; /* 16px */
  color: var(--color-text);
}

.roadmap-result-text li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-black);
  font-weight: 700;
}

/* ========================================
   APPROACHセクション（アコーディオン）
======================================== */
.approach-section {
  background: var(--color-white);
  width: 100%;
  padding-bottom: 1.5rem;
  overflow-x: hidden;
}

/* ヘッダー */
.approach-header {
  padding: 2rem 5% 0;
  border-bottom: 1px solid var(--color-black);
}

.approach-title {
  font-size: clamp(3rem, 6vw, 4.5rem); /* 48px〜72px */
  font-weight: 700;
  padding-bottom: 1rem;
  color: var(--color-black);
}

/* コンテンツエリア */
.approach-content {
  display: flex;
  width: 100%;
  border-bottom: 1px solid var(--color-black);
}

.approach-main {
  flex: 1;
  min-width: 0;
  padding-left: 5%;
  padding-right: 0;
}

/* アコーディオンアイテム */
.approach-item {
  border-bottom: 1px solid var(--color-black);
}

.approach-item:last-child {
  border-bottom: none;
}

/* アイテムヘッダー */
.approach-item-header {
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-black);
}

.approach-goal {
  font-size: 1.125rem;
  color: var(--color-black);
  margin-bottom: 0.5rem;
}

.approach-divider {
  border: none;
  border-top: 1px solid var(--color-black);
  margin: 0.5rem -5vw;
}

.approach-strategy-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-black);
}

/* トリガーボタン */
.approach-section .approach-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1rem;
  background: var(--color-black);
  color: var(--color-white);
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s ease;
  border-radius: 0;
  border: none;
}

.approach-section .approach-trigger:hover {
  opacity: 0.9;
}

.approach-section .approach-trigger svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.approach-section .approach-trigger.is-open svg {
  transform: rotate(180deg);
}

/* アコーディオンコンテンツ */
.approach-details {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.approach-details.is-open {
  max-height: 1000px;
  opacity: 1;
}

/* コンテンツ行 */
.approach-detail-row {
  display: flex;
  border-top: 1px solid var(--color-black);
}

.approach-detail-label {
  flex: 0 0 25%;
  min-width: 0;
  background: var(--color-black);
  color: var(--color-white);
  padding: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  word-wrap: break-word;
}

.approach-detail-text {
  flex: 1;
  min-width: 0;
  background: var(--color-white);
  color: var(--color-black);
  padding: 1rem;
  display: flex;
  align-items: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* 右側サイドバー */
.approach-sidebar {
  flex: 0 0 80px;
  border-left: 1px solid var(--color-black);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.5rem;
}

.approach-sidebar-text {
  writing-mode: vertical-rl;
  font-size: 1.5rem; /* 24px */
  font-weight: 700;
  color: var(--color-black);
  letter-spacing: 0.1em;
  line-height: 1;
}

/* ========================================
   FLOWセクション（7日間の流れ）
======================================== */
.flow-section {
  background: var(--color-black);
  padding: 2rem 5%;
}

/* 黒背景セクションでの見出し色を白に上書き */
.flow-section h1,
.flow-section h2,
.flow-section h3 {
  color: var(--color-white);
}

/* 黒背景セクションでのリンク色を白に上書き（ボタンクラスがあれば除外） */
.flow-section a:not([class*="btn"]) {
  color: var(--color-white);
}

.flow-section a:not([class*="btn"]):hover {
  color: #ccc;
}

.flow-section a:not([class*="btn"]):visited {
  color: var(--color-white);
}

/* ヘッダー */
.flow-header {
  max-width: 1280px;
  margin: 0 auto 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-white);
}

.flow-title {
  font-size: clamp(3rem, 6vw, 4.5rem); /* 48px〜72px */
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.flow-subtitle {
  font-size: clamp(1rem, 2vw, 1.5rem); /* 16px〜24px */
  font-weight: 700; /* 600から変更 - フォント軽量化 */
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.flow-description {
  font-size: clamp(1rem, 1.5vw, 1.125rem); /* 16px〜18px */
  color: #d1d5db;
  line-height: var(--lh-body);
}

/* グリッド */
.flow-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  row-gap: 3rem;
}

/* アイテム */
.flow-item {
  position: relative;
}

.flow-item-label {
  font-size: 0.75rem; /* 12px */
  font-weight: 600;
  color: #9ca3af;
  margin-bottom: 0.5rem;
}

.flow-item-title {
  font-size: 1.5rem; /* 24px 固定 */
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.flow-item-text {
  font-size: 1rem;
  color: #d1d5db;
  line-height: var(--lh-body);
}

/* 矢印コンテナ（右側に配置） */
.flow-arrow-container {
  position: absolute;
  top: 0;
  right: -1.5rem;
  width: 2.5rem;
  height: 100%;
  display: none;
}

/* 縦線 */
.flow-arrow-line {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  background: var(--color-white);
  transform: translateX(-50%);
}

/* 矢印の丸 */
.flow-arrow-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 2.5rem;
  height: 2.5rem;
  background: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.flow-arrow-circle svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--color-black);
}

/* ========================================
   PLANセクション（料金プラン）
======================================== */
.plan-section {
  background: var(--color-white);
  padding: 2rem 5%;
}

/* ヘッダー */
.plan-header {
  text-align: center;
  margin-bottom: 2rem;
}

.plan-title {
  font-size: clamp(3rem, 6vw, 4.5rem); /* 48px〜72px */
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 0.5rem;
}

.plan-subtitle {
  font-size: clamp(1rem, 2vw, 1.5rem); /* 16px〜24px */
  font-weight: 700;
  color: var(--color-black);
}

/* グリッド */
.plan-grid {
  max-width: 1536px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

/* カード */
.plan-card {
  background: var(--color-white);
  border: 1px solid var(--color-text-light);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* 推奨プラン */
.plan-card.recommended {
  border: 4px solid var(--color-black);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  position: relative;
  padding-top: 3rem;
}

.plan-card-badge {
  position: absolute;
  top: -1.25rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-black);
  color: var(--color-white);
  font-size: 0.75rem; /* 12px */
  font-weight: 700;
  padding: 0.5rem 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* カード内容 */
.plan-card-content {
  flex: 1;
}

.plan-card-label {
  font-size: 0.75rem; /* 12px */
  font-weight: 700; /* 600から変更 - フォント軽量化 */
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
  text-align: center;
}

.plan-card-name {
  font-size: clamp(1.5rem, 2.5vw, 2rem); /* 24px〜32px */
  font-weight: 800;
  color: var(--color-black);
  margin-bottom: 0.5rem;
  text-align: center;
}

.plan-card-en {
  font-size: 0.75rem; /* 12px */
  font-weight: 700; /* 600から変更 - フォント軽量化 */
  color: var(--color-text-light);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  text-align: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-black);
}

.plan-card-description {
  font-size: clamp(1rem, 1.5vw, 1.125rem); /* 16px〜18px */
  line-height: var(--lh-body);
  color: var(--color-gray-dark);
}

/* CTAボタン */
.plan-cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* ========================================
   OPTIONセクション（シンプル版）
======================================== */
.option-simple-section {
  background: var(--color-white);
  padding: 4rem 5%;
}

.option-simple-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.option-simple-title {
  font-size: clamp(1rem, 2vw, 1.5rem); /* 16px〜24px */
  font-weight: 400; /* 500から変更 - フォント軽量化 */
  color: var(--color-text);
  margin-bottom: 1rem;
}

.option-simple-examples {
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  color: var(--color-text);
  line-height: var(--lh-body);
  margin-bottom: 2.5rem;
}

.option-simple-examples strong {
  font-weight: 700;
  color: var(--color-black);
}

.option-simple-lead {
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-weight: 400; /* 500から変更 - フォント軽量化 */
  color: var(--color-text);
  line-height: var(--lh-body);
  margin-bottom: 2.5rem;
}

.option-simple-cta {
  text-align: center;
}

/* ========================================
   Q&Aセクション（トップページ専用タブ機能）
   ※アコーディオン共通スタイルはbase.css
======================================== */

/* タブナビゲーション（PC） */
.qa-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-bottom: 1px solid rgba(51, 51, 51, 0.15);
}

.qa-section .qa-tab {
  padding: 1rem;
  text-align: center;
  font-size: clamp(1rem, 2vw, 1.5rem); /* 16px〜24px */
  font-weight: 700; /* 600から変更 - フォント軽量化 */
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: var(--color-white);
  color: var(--color-black);
  border-right: 1px solid rgba(51, 51, 51, 0.15);
}

.qa-section .qa-tab:last-child {
  border-right: none;
}

.qa-section .qa-tab.active {
  background: var(--color-black);
  color: var(--color-white);
}

.qa-section .qa-tab:not(.active):hover {
  background: rgba(51, 51, 51, 0.05);
}

/* ドロップダウン（スマホ用・初期非表示） */
.qa-dropdown {
  display: none;
  position: relative;
  border-bottom: 1px solid rgba(51, 51, 51, 0.15);
}

.qa-dropdown-toggle {
  width: 100%;
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--color-black);
  color: var(--color-white);
  font-weight: 700; /* 600から変更 - フォント軽量化 */
  font-size: 1rem;
  cursor: pointer;
  border: none;
  border-radius: 0;
}

.qa-dropdown-icon {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.3s ease;
}

.qa-dropdown-toggle.open .qa-dropdown-icon {
  transform: rotate(180deg);
}

.qa-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-white);
  border: 1px solid rgba(51, 51, 51, 0.15);
  border-top: none;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.qa-dropdown-menu.open {
  display: block;
}

.qa-dropdown-item {
  width: 100%;
  padding: 1rem 1.25rem;
  text-align: left;
  background: var(--color-white);
  color: var(--color-black);
  font-weight: 400; /* 500から変更 - フォント軽量化 */
  font-size: 1rem; /* 16px */
  cursor: pointer;
  border: none;
  border-bottom: 1px solid rgba(51, 51, 51, 0.1);
  transition: background 0.2s ease;
}

.qa-dropdown-item:last-child {
  border-bottom: none;
}

.qa-dropdown-item:hover {
  background: rgba(51, 51, 51, 0.05);
}

.qa-dropdown-item.active {
  background: rgba(51, 51, 51, 0.1);
  font-weight: 600;
}

/* ========================================
   無料相談セクション（F型変則レイアウト）
======================================== */
.consult-section {
  max-width: 1280px;
  margin: 0 auto;
}

.consult-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
}

/* ========================================
   左側：CTA エリア（黒背景）
======================================== */
.consult-cta-area {
  background: var(--color-black);
  color: var(--color-white);
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* アイコン */
.consult-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 2rem;
}

.consult-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--color-white);
  stroke-width: 1.5;
}

/* メインタイトル */
.consult-main-title {
  font-size: clamp(1.5rem, 3vw, 2rem); /* 24px〜32px */
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1.5rem;
  color: var(--color-white);
}

/* 説明文 */
.consult-main-description {
  font-size: 1rem; /* 16px */
  line-height: var(--lh-body);
  color: var(--color-white);
  margin-bottom: 2.5rem;
}

/* CTAボタン */
.consult-cta {
  margin-top: 2.5rem;
}

.consult-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-white);
  color: var(--color-black);
  font-size: clamp(1.125rem, 2vw, 1.5rem); /* 18px〜24px */
  font-weight: 700;
  padding: 1.375rem 2.5rem;
  text-decoration: none;
  max-width: 500px;
  width: 100%;
  transition: transform 0.2s;
}

.consult-button:hover {
  transform: scale(1.05);
}

/* ホバー時に文字色を虹色グラデに */
.consult-button:hover .consult-button__text,
.consult-button:focus .consult-button__text,
.consult-button:active .consult-button__text {
  background: var(--gradient-rainbow);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.consult-button-arrow {
  width: 1.5rem;
  height: 2px;
  background: var(--color-black);
  position: relative;
  margin-left: 1rem;
  transition: width 0.3s ease;
}

.consult-button-arrow::after {
  content: '';
  position: absolute;
  right: -1px;
  top: -5px;
  width: 12px;
  height: 12px;
  border-top: 2px solid var(--color-black);
  border-right: 2px solid var(--color-black);
  transform: rotate(45deg);
}

/* ホバー時に矢印が伸びる */
.consult-button:hover .consult-button-arrow,
.consult-button:focus .consult-button-arrow,
.consult-button:active .consult-button-arrow {
  width: 3rem;
}

/* 注釈 */
.consult-note {
  font-size: 0.75rem; /* 12px */
  color: rgba(255, 255, 255, 0.85);
  margin-top: 1.5rem;
}

/* ========================================
   右側：特徴リスト（白背景）
======================================== */
.consult-features-area {
  background: var(--color-white);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.consult-feature-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.consult-feature-item:last-child {
  border-bottom: none;
}

/* 番号 */
.consult-feature-number {
  font-family: var(--font-en);
  font-size: 1.5rem; /* 24px */
  font-weight: 700;
  color: #333;
  flex-shrink: 0;
  line-height: 1;
}

.consult-feature-content {
  flex: 1;
}

/* 特徴タイトル（既存フォントサイズを活用） */
.consult-feature-title {
  font-size: 1.25rem; /* 20px */
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

/* 特徴テキスト（既存フォントサイズを活用） */
.consult-feature-text {
  font-size: 1rem; /* 16px */
  line-height: var(--lh-body);
  color: #333;
  padding-left: 1rem;
  border-left: 2px solid rgba(0, 0, 0, 0.1);
}

/* ========================================
   無料相談セクション レスポンシブ
======================================== */
@media (max-width: 768px) {
  .consult-container {
    grid-template-columns: 1fr;
  }

  .consult-cta-area {
    padding: 3rem 1.5rem;
  }

  .consult-features-area {
    padding: 2rem 1.5rem;
  }

  .consult-feature-item {
    gap: 1rem;
  }

  .consult-feature-number {
    font-size: 1.25rem;
  }
}

/* ========================================
   SUBSCRIPTIONセクション（シンプル版）
======================================== */
.subscription-section {
  background: var(--color-black);
  color: var(--color-white);
  padding: 4rem 5%;
}

/* 黒背景セクションでの見出し色を白に上書き */
.subscription-section h2 {
  color: var(--color-white);
}

.subscription-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.subscription-title {
  font-size: clamp(3rem, 6vw, 4.5rem); /* 48px〜72px */
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.subscription-tagline {
  font-size: clamp(1rem, 2vw, 1.5rem); /* 16px〜24px */
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 2rem;
}

.subscription-description {
  font-size: 1rem; /* 16px */
  line-height: var(--lh-body);
  color: var(--color-white);
  margin-bottom: 2.5rem;
}

.subscription-cta {
  text-align: center;
}

/* ========================================
   レスポンシブ - ワイドスクリーン（1367px以上）
======================================== */
@media (max-width: 1920px) {
  /* ベース設定 - 変更なし */
}

/* ========================================
   レスポンシブ - タブレット以上（769px以上）
   西山製麺式：scroll進捗ベースの横スクロール
======================================== */
@media (min-width: 769px) {
  /* ACHIEVEMENTSセクション - 西山製麺式 */
  .achievements-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
  }
  
  .achievements-inner {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: visible; /* hidden → visible: エミュレータでのボタン見切れ対策 */
  }
  
  .achievements-header {
    flex-shrink: 0;
    margin-bottom: 3rem;
  }
  
  .achievements-carousel {
    display: flex;
    gap: 2rem;
    will-change: transform;
  }
  
  .achievement-card {
    flex: 0 0 600px;
    height: auto;
    display: flex;
    flex-direction: column;
  }
  
  .achievement-card:hover {
    border-color: var(--color-black);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  }
  
  .achievement-card:hover .achievement-image {
    filter: grayscale(0%) brightness(1) contrast(1);
  }
  
  .achievement-info {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  
  .achievement-result {
    margin-bottom: 1.5rem;
    flex: 1;
  }
  
  .achievement-detail-btn {
    padding: 0.75rem 1.5rem;
    font-size: clamp(1rem, 1.5vw, 1.125rem); /* 16px〜18px */
    align-self: flex-start;
    margin-top: auto;
  }
  
  .achievement-detail-btn:hover,
  .achievement-detail-btn:active {
    background: var(--color-black);
    color: var(--color-white);
    transform: translateY(-2px);
  }
}

/* ========================================
   レスポンシブ - ワイドスクリーン（1367px以上）
======================================== */
@media (min-width: 1367px) {
  /* ワイドスクリーンでも全幅背景を維持 */
}

/* ========================================
   レスポンシブ - タブレット横（1024px以下）
======================================== */
@media (max-width: 1024px) {
  /* APPROACHセクション */
  .approach-sidebar {
    flex: 0 0 48px;
  }
  
  .approach-sidebar-text {
    font-size: 1rem;
  }
  
  /* PLANセクション - 2カラム + コミットが下に幅100% */
  .plan-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  /* 基本プラン（1番目）: 左上 */
  .plan-card:nth-child(1) {
    order: 1;
  }
  
  /* コミットプラン（2番目）: 下に落ちて幅100% */
  .plan-card:nth-child(2) {
    order: 3;
    grid-column: 1 / -1;
  }
  
  /* イージープラン（3番目）: 右上 */
  .plan-card:nth-child(3) {
    order: 2;
  }
}

/* ========================================
   レスポンシブ - タブレット縦型・モバイル（768px以下）
======================================== */
@media (max-width: 768px) {
  /* リード文+CTA */
  .lead-cta-section {
    padding: 0 5%;
  }
  
  /* 私たちの覚悟セクション */
  .kakugo-section {
    padding: 2.5rem 5%;
  }
  
  .section-title {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
    margin-bottom: 2.5rem;
    letter-spacing: 0.08em;
  }
  
  .kakugo-box {
    margin-bottom: 3.75rem;
  }
  
  /* リストアイテムの左寄せ */
  .kakugo-box__title,
  .kakugo-box__subtitle,
  .kakugo-list__item {
    text-align: left;
  }
  
  .why-box__title,
  .why-box__lead,
  .why-box__text {
    text-align: right;
  }
  

  
  /* スマホのみ改行表示 */
  .sp-only {
    display: inline;
  }
  
  /* SERVICEセクション */
  .service-section {
    padding: 3rem 5%;
  }
  
  .service-header {
    margin-bottom: 2rem;
  }
  
  .service-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 0;
  }
  
  .service-card {
    display: block; /* subgrid解除 */
    grid-row: auto;
    padding: 1.5rem 0;
  }
  
  /* モバイル：2番目以降は上線を消す */
  .service-card:nth-child(n+2) {
    border-top: none;
  }
  
  /* ACHIEVEMENTSセクション */
  .achievements-section {
    padding: 2rem 3%;
  }
  
  .achievements-header {
    padding: 0 2%;
    margin-bottom: 2rem;
  }
  
  .achievements-title {
    /* font-size: PC定義 clamp(3rem, 6vw, 4.5rem) をそのまま継承 */
    letter-spacing: 0.05em;
    word-break: break-word;
  }
  
  .achievements-subtitle {
    font-size: clamp(1rem, 3vw, 1.125rem); /* 16px〜18px */
    word-break: break-word;
  }
  
  .achievements-carousel {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-bottom: 1rem;
  }
  
  .achievement-card {
    flex: none;
    opacity: 0.6;
    transform: scale(0.95);
  }
  
  /* 中央に来たカード */
  .achievement-card.in-center {
    opacity: 1;
    transform: scale(1);
    border-color: var(--color-black);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  }
  
  /* 中央に来たカードの画像 */
  .achievement-card.in-center .achievement-image {
    filter: grayscale(0%) brightness(1) contrast(1);
  }
  
  .achievement-detail-btn {
    transition: all 0.15s ease;
    -webkit-tap-highlight-color: transparent;
  }
  
  /* スマホタップ時の反転（詳細度を上げてテーマ干渉を防止） */
  .achievements-section .achievement-card .achievement-detail-btn:active,
  .achievements-section .achievement-card.in-center .achievement-detail-btn:active {
    background: var(--color-black) !important;
    color: var(--color-white) !important;
    border-color: var(--color-black) !important;
  }
  
  /* APPROACHセクション */
  .approach-header {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .approach-title {
    font-size: 2rem;
  }
  
  .approach-main {
    padding-left: 0;
    padding-right: 0;
  }
  
  .approach-sidebar {
    flex: 0 0 40px;
  }
  
  .approach-item-header {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .approach-divider {
    margin-left: -1rem;
    margin-right: -1rem;
  }
  
  .approach-strategy-title {
    font-size: 1.5rem;
  }
  
  .approach-trigger {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .approach-detail-label {
    font-size: 1rem; /* 16px */
    padding: 0.75rem 0.5rem;
  }
  
  .approach-detail-text {
    font-size: 1rem; /* 16px */
    padding: 0.75rem;
  }
  
  /* FLOWセクション */
  .flow-section {
    padding: 2rem 1rem;
  }
  
  .flow-header {
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
  }
  
  .flow-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .flow-arrow-container {
    display: none;
  }
  
  /* FLOWセクション - タブレット横以上で矢印表示 */
  .flow-item:not(:nth-child(3n)):not(:last-child) .flow-arrow-container {
    display: none;
  }
  
  /* PCタブを非表示、ドロップダウンを表示 */
  .qa-tabs {
    display: none;
  }
  
  .qa-dropdown {
    display: block;
  }

  /* PLANセクション */
  .plan-section {
    padding: 2rem 1rem;
  }
  
  .plan-header {
    margin-bottom: 3rem;
  }
  
  .plan-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  /* orderリセット（通常の縦並びに戻す） */
  .plan-card:nth-child(1),
  .plan-card:nth-child(2),
  .plan-card:nth-child(3) {
    order: unset;
    grid-column: auto;
  }
  
  .plan-card {
    padding: 1.5rem;
  }
  
  .plan-card.recommended {
    padding-top: 2rem;
  }
}

/* FLOWセクション - タブレット横以上で矢印表示 */
@media (min-width: 769px) {
  .flow-item:not(:nth-child(3n)):not(:last-child) .flow-arrow-container {
    display: block;
  }
}

/* ========================================
   レスポンシブ - 小型モバイル（568px以下）
======================================== */
@media (max-width: 568px) {
  /* 私たちの覚悟セクション */
  .kakugo-section {
    padding: 2rem 5%;
  }
  
  /* セクションタイトルのスマホ調整 */
  .section-title {
    font-size: clamp(2rem, 8vw, 3rem);
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
    line-height: 1.3;
  }
  
  /* リストアイテムの左寄せ */
  .kakugo-box__title,
  .kakugo-box__subtitle,
  .kakugo-list__item {
    text-align: left;
  }
  
  .why-box__title,
  .why-box__lead,
  .why-box__text {
    text-align: right;
  }
  
  /* APPROACHセクション */
  .approach-detail-row {
    flex-direction: column;
  }
  
  .approach-detail-label {
    width: 100%;
  }
  
  /* ROADMAPセクション */
  .roadmap-section {
    padding: 2rem 0;
  }
  
  .roadmap-header {
    margin-bottom: 2.5rem;
    padding: 0 3%;
  }
  
  .roadmap-tabs {
    border-left: none;
    border-right: none;
  }
  
  .roadmap-section .roadmap-tab-button {
    padding: 1rem 0.5rem;
    font-size: 1rem; /* 16px */
  }
  
  .roadmap-tab-content {
    padding: 1.5rem 8%;
  }
  
  .roadmap-list-container {
    margin-bottom: 2rem;
  }
  
  .roadmap-result-text {
    max-width: 100%;
    margin-left: 30%;
  }
}

/* ========================================
   レスポンシブ - 超小型モバイル（360px以下）
======================================== */
@media (max-width: 360px) {
  /* 基本的な調整のみ必要に応じて追加 */
}

/* ========================================
   実績カードボタン 虹色ボーダー
======================================== */
.achievement-detail-btn--rainbow {
  position: relative;
  border: none !important;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

/* 静止時の黒ボーダー */
.achievement-detail-btn--rainbow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 1px solid var(--color-black);
  pointer-events: none;
  transition: border-color 0.3s ease;
}

/* ホバー・タップ時に黒ボーダーを消す */
.achievement-detail-btn--rainbow:hover::before,
.achievement-detail-btn--rainbow:focus::before,
.achievement-detail-btn--rainbow:active::before {
  border-color: transparent;
}

/* ホバー・タップ時に背景反転 */
.achievement-detail-btn.achievement-detail-btn--rainbow:hover,
.achievement-detail-btn.achievement-detail-btn--rainbow:focus,
.achievement-detail-btn.achievement-detail-btn--rainbow:active {
  background: var(--color-black);
  color: var(--color-white);
}

/* ホバー・タップで順番に描画 */
.achievement-detail-btn--rainbow:hover .rainbow-border--top,
.achievement-detail-btn--rainbow:focus .rainbow-border--top,
.achievement-detail-btn--rainbow:active .rainbow-border--top {
  width: 100%;
}

.achievement-detail-btn--rainbow:hover .rainbow-border--right,
.achievement-detail-btn--rainbow:focus .rainbow-border--right,
.achievement-detail-btn--rainbow:active .rainbow-border--right {
  height: 100%;
}

.achievement-detail-btn--rainbow:hover .rainbow-border--bottom,
.achievement-detail-btn--rainbow:focus .rainbow-border--bottom,
.achievement-detail-btn--rainbow:active .rainbow-border--bottom {
  width: 100%;
}

.achievement-detail-btn--rainbow:hover .rainbow-border--left,
.achievement-detail-btn--rainbow:focus .rainbow-border--left,
.achievement-detail-btn--rainbow:active .rainbow-border--left {
  height: 100%;
}