/* --- 変数定義（ここで色を一括管理） --- */
:root {
  /* Poniuのブランドカラー（紫〜青） */
  --primary-gradient: linear-gradient(135deg, #6366F1 0%, #A855F7 100%);
  --primary-color: #6366F1;
  
  /* ベースカラー（白背景・Linearライクな文字色） */
  --bg-color: #FFFFFF;
  --text-main: #111827; /* ほぼ黒に近いグレー */
  --text-sub: #6B7280;  /* 読みやすいグレー */
  --border-color: #E5E7EB;
  
  /* フォント */
  --font-family: 'Inter', 'Noto Sans JP', sans-serif;
}

/* --- リセット & 基本設定 --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased; /* 文字を綺麗に見せる */
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- ヘッダー --- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.8); /* すりガラス効果 */
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  height: 64px;
  display: flex;
  align-items: center;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-icon {
  background: var(--primary-gradient);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.nav {
  display: flex;
  gap: 32px;
}
.nav a {
  font-size: 0.9rem;
  color: var(--text-sub);
  font-weight: 500;
}
.nav a:hover { color: var(--text-main); }

.header-actions { display: flex; gap: 16px; align-items: center; }

/* --- ボタン --- */
.btn {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: var(--text-main); /* Linearっぽい黒ボタン */
  color: white;
}
.btn-primary:hover {
  background: #333;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.btn-secondary {
  color: var(--text-sub);
}
.btn-secondary:hover { color: var(--text-main); }

/* --- ヒーローセクション --- */
.hero {
  padding-top: 120px;
  padding-bottom: 80px;
  text-align: center;
  overflow: hidden; /* 光のエフェクトがはみ出さないように */
}

.badge {
  display: inline-block;
  background: #F3F4F6;
  color: var(--text-sub);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-bottom: 24px;
  border: 1px solid var(--border-color);
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

/* グラデーションテキスト */
.text-gradient {
  background: var(--primary-gradient);
  background-clip: text;          /* ← これを追加 */
-webkit-background-clip: text;  /* ← 元のやつも残す */
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-sub);
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 80px;
}
.btn-large {
  padding: 12px 32px;
  font-size: 1rem;
  border-radius: 50px; /* 丸みのあるボタン */
}
.btn-text {
  color: var(--text-sub);
  padding: 12px 16px;
}
.btn-text:hover { color: var(--primary-color); }

/* --- ビジュアルエリア（動画・画像） --- */
.hero-visual {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.video-container {
  aspect-ratio: 16 / 9;
  background: #F9FAFB;
  border-radius: 12px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1); /* 浮いているような影 */
  border: 1px solid rgba(0,0,0,0.05);
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.placeholder-overlay {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-sub);
  background: #f3f4f6;
}

/* 後ろでボワッと光るエフェクト */
.glow-effect {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: var(--primary-gradient);
  opacity: 0.15;
  filter: blur(80px);
  z-index: 1;
  border-radius: 50%;
}

/* --- 次のステップ用プレースホルダー --- */
.features-placeholder {
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FAFAFA;
  color: var(--text-sub);
  border-top: 1px dashed var(--border-color);
}

.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-sub);
  font-size: 0.9rem;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .hero-title { font-size: 2.5rem; }
  .nav { display: none; } /* 簡易的に非表示 */
}
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 枠にきれいにフィット */
  display: block;
}
/* 日報再現カードのスタイル */
/* 日報再現カードのスタイル（更新版） */
/* --- style.css の .report-card 部分を以下に差し替え --- */

.report-card {
  background-color: #ffffff;
  max-width: 600px;
  margin: 40px auto 0;
  padding: 30px;
  border-radius: 24px;
  /* 初期の影 */
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  /* 初期の傾き */
  transform: rotate(-1.5deg);
  text-align: left;
  /* マウスを乗せた指の形にする */
  cursor: pointer;
  /* 変化を滑らかにする（0.3秒かけて変化） */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* マウスが乗った時（ホバー時）のスタイル */
.report-card:hover {
  /* 傾きを維持したまま、1.03倍に拡大 */
  transform: rotate(-1.5deg) scale(1.03);
  /* 影を濃く、広くして浮遊感を強調 */
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.report-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: #333;
  margin-top: 0;
  margin-bottom: 15px;
}

.report-input {
  width: 100%;
  min-height: 160px;
  padding: 15px;
  border: 1.5px solid #e0e6ed;
  border-radius: 16px;
  background-color: #fff;
  box-sizing: border-box;
  resize: none;
  outline: none;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #333;
  font-family: inherit; /* 親要素のフォントを引き継ぐ */
}

.report-input::placeholder {
  color: #a0aec0;
}
/* --- style.css に追加・修正 --- */

/* 1. 位置合わせのための親枠 */
.input-wrapper {
  position: relative; /* 子要素の基準点にする */
  width: 100%;
}

/* 2. 既存のtextarea（少し調整） */
.report-input {
  width: 100%;
  min-height: 160px;
  padding: 15px; /* ここのパディングと同じ位置にカーソルを置く */
  border: 1.5px solid #e0e6ed;
  border-radius: 16px;
  background-color: #fff;
  box-sizing: border-box;
  resize: none;
  outline: none;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #333;
  font-family: inherit;
  
  /* 本物のカーソルの色も青くしておく */
  caret-color: #5E6AD2; 
}

/* 3. ニセモノの点滅カーソル（Linear風） */
.typing-cursor {
  position: absolute;
  /* textareaのpaddingと同じ位置に配置 */
  top: 18px; 
  left: 18px;
  
  width: 2px;       /* 棒の太さ */
  height: 1.2rem;   /* 棒の高さ（文字サイズに合わせる） */
  background-color: #5E6AD2; /* Linearっぽい青紫色 */
  
  /* 点滅アニメーション */
  animation: blink 1s step-end infinite;
  
  /* マウス操作を邪魔しない */
  pointer-events: none; 
}

/* 実際に入力しようとしてフォーカスしたら、ニセモノは消す */
.report-input:focus + .typing-cursor {
  display: none;
}

/* --- アニメーション定義 --- */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
/* --- Bento Grid Section --- */
.features-section {
  padding: 80px 0;
  background-color: #fcfcfc; /* 背景と少し差をつける */
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3列 */
  gap: 24px;
}

/* スマホ対応：縦1列に */
@media (max-width: 768px) {
  .features-grid {
      grid-template-columns: 1fr;
  }
}

/* カード共通スタイル */
.bento-card {
  background: #fff;
  border: 1px solid #eef2f6;
  border-radius: 20px;
  padding: 24px;
  padding-bottom: 0; /* 下部は画像エリアにするため */
  display: flex;
  flex-direction: column;
  overflow: hidden; /* はみ出した装飾をカット */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 320px; /* 高さを揃える */
}

.bento-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

.bento-text h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #1a202c;
}

.bento-text p {
  font-size: 0.85rem;
  color: #718096;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* ビジュアルエリア共通 */
.bento-visual {
  flex-grow: 1;
  background: #f8fafc; /* 薄いグレーの背景 */
  border-top: 1px solid #edf2f7;
  border-radius: 12px 12px 0 0;
  position: relative;
  padding: 20px;
}


/* --- Floating Tags Style (新しいデザイン) --- */

/* ビジュアルエリアの共通設定（タグを配置するために必要） */
.bento-visual {
  flex-grow: 1;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%); /* 背景に少し奥行きを */
  border-top: 1px solid #edf2f7;
  border-radius: 12px 12px 0 0;
  position: relative;
  padding: 20px;
  overflow: hidden; /* はみ出したタグを隠す */
}

/* 浮遊するタグの共通スタイル */
.float-tag {
  position: absolute;
  background: #ffffff;
  padding: 10px 18px;
  border-radius: 50px; /* 丸みのあるピル型 */
  font-size: 0.85rem;
  font-weight: bold;
  color: #4a5568;
  
  /* 浮かび上がらせる影 */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08), 
              0 2px 6px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.8);
  
  /* 滑らかに動かす準備 */
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: default;
  white-space: nowrap; /* 文字が折り返されないように */
}

/* マウスが乗ったら、さらにふわっと浮く */
.bento-card:hover .float-tag {
  transform: translateY(-5px) scale(1.05) !important; /* !importantで個別の回転を維持しつつ浮かす */
  box-shadow: 0 12px 25px rgba(94, 106, 210, 0.15); /* 影に少し色をつける */
  color: #5E6AD2; /* 文字色もブランドカラーに */
}


/* --- 各タグの配置と傾き --- */

/* Card 1: リクエスト */
.tag-strict {
  top: 30%;
  left: 15%;
  transform: rotate(-6deg);
}
.tag-praise {
  bottom: 25%;
  right: 15%;
  transform: rotate(4deg);
}

/* Card 2: セクション指示内の追加タグの配置 */

/* 既存の学び・予定の位置を微調整 */
.tag-learn {
    top: 15%;
    right: 15%;
    transform: rotate(5deg);
}
.tag-plan {
    bottom: 15%;
    right: 10%;
    transform: rotate(-4deg);
}

/* 追加の3つをバランスよく配置 */
.tag-work {
    top: 20%;
    left: 10%;
    transform: rotate(-6deg);
    background-color: #f8fafc; /* 少し色を変えて変化をつけてもOK */
}

.tag-result {
    top: 50%;
    left: 20%;
    transform: rotate(3deg);
    z-index: 2; /* 重なり順の調整 */
}

.tag-issue {
    bottom: 25%;
    left: 5%;
    transform: rotate(-8deg);
}

/* Card 3: 口調（3つ配置） */
.tag-polite {
  top: 20%;
  left: 10%;
  transform: rotate(-8deg);
}
.tag-casual {
  top: 45%;
  right: 10%;
  transform: rotate(6deg);
}
.tag-presen {
  bottom: 15%;
  left: 25%;
  transform: rotate(-3deg);
}
.auto-save-status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 0.75rem;
  color: #718096; /* 控えめなグレー */
}

/* 小さなチェックアイコンの代わり */
.auto-save-status::before {
  content: '✓';
  font-weight: bold;
  color: #48bb78; /* 安心感のある緑 */
}
/* --- 新しく追加したタグの配置（カード2） --- */

/* 既存のタグ位置調整 */
.tag-learn { top: 15%; right: 15%; transform: rotate(5deg); }
.tag-plan  { bottom: 15%; right: 10%; transform: rotate(-4deg); }

/* 新しいタグの配置 */
.tag-work {
    top: 20%;
    left: 10%;
    transform: rotate(-6deg);
    background-color: #f8fafc;
}
.tag-result {
    top: 50%;
    left: 20%;
    transform: rotate(3deg);
    z-index: 2; /* 手前に表示 */
}
.tag-issue {
    bottom: 25%;
    left: 5%;
    transform: rotate(-8deg);
}


/* --- 自動保存メッセージのスタイル --- */
.auto-save-note {
    text-align: center;
    color: #a0aec0;
    font-size: 0.8rem;
    margin-top: 30px;
}
/* --- 生成デモセクション --- */
.demo-generator-section {
  padding: 0 0 80px 0; /* 上の余白はなくし、下だけ残す */
  background-color: transparent; /* 背景色を透明に（ヒーローの上に重ねるため） */
  text-align: center;

  /* ★ここがポイント：上に100px引っ張り上げて重ねる */
  margin-top: -40px;
  
  /* ヒーローセクションより手前に表示する */
  position: relative;
  z-index: 2;
}

.demo-caption {
  color: #64748b;
  margin-bottom: 20px;
  font-weight: 500;
}

/* ボタンを押したときのクリック感 */
.btn:active {
  transform: scale(0.96);
}

/* 生成結果エリア（最初は非表示） */
.generated-card-wrapper {
  margin-top: 40px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  display: none; /* JSでblockにします */
}

.generated-card-wrapper.visible {
  opacity: 1;
  transform: translateY(0);
  display: block;
}

/* 結果カードのスタイル調整 */
.result-card {
  margin: 0 auto; /* 中央寄せ */
  background: white;
  min-height: 200px;
  text-align: left; /* テキストは左揃え */
  border: 1px solid #e2e8f0;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  /* 元は30pxでした。20pxくらいに詰めるとスッキリします */
  padding: 20px 24px !important; 
    
  /* ついでに最小の高さも少し小さくして、無駄な空白が出ないように調整 */
  min-height: 150px;
}

.result-card .report-title {
  margin-bottom: 15px; /* 元は15pxでした */
  font-size: 1rem;     /* 文字サイズも少し控えめにするとバランスが良いです */
}

.result-content {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
  white-space: pre-wrap; /* 改行をそのまま表示する設定 */
  font-family: inherit;
}

/* 末尾で点滅し続けるカーソル */
.typing-cursor-end {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background-color: #5E6AD2;
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
/* --- タイトルと本文の間の余白を狭める --- */
/* --- タイトルと本文の間の余白を狭める --- */
.result-card .report-title {
  /* 元の設定(15px)を上書きして、かなり狭くします */
  margin-bottom: 0px !important;
}
/* --- Modern Feature Section (白背景バージョン) --- */
.modern-feature-section {
  padding: 100px 0;
  background-color: #ffffff; /* 背景を白に */
  color: #1a202c; /* 文字を濃いグレー（ほぼ黒）に */
}

.modern-header {
  margin-bottom: 60px;
  max-width: 600px;
  
  /* ★ここを追加・修正：ブロック自体を中央に配置 */
  margin-left: auto;
  margin-right: auto;
  
  /* ★ここを追加：中の文字を中央揃え */
  text-align: center;
}
.modern-header h2 {
  font-size: 3.0rem;
  margin-bottom: 20px;
  letter-spacing: -0.05em;
  color: #111;
}
.modern-header p {
  color: #6b7280; /* 説明文は少し薄いグレー */
  line-height: 1.6;
}

.modern-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 768px) {
  .modern-grid { grid-template-columns: 1fr; }
}

/* カードスタイル（白背景用） */
.modern-card {
  background-color: #ffffff;
  border: 1px solid #e5e7eb; /* 薄いグレーの枠線 */
  border-radius: 16px;
  height: 360px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02); /* ほんのり影をつける */
}

/* ホバー時の挙動 */
.modern-card:hover {
  border-color: #cbd5e1; /* 枠線を少し濃く */
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08); /* 影をふんわり強調 */
}

/* --- ビジュアルエリア（CSSアートの色反転） --- */
.card-bg {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  opacity: 0.8; transition: 0.5s;
  background: radial-gradient(circle at center, #f9fafb 0%, #ffffff 70%); /* 背景にうっすらグラデ */
}
.modern-card:hover .card-bg {
  opacity: 0.5;
  transform: scale(0.95);
}

/* Visual 1: Time (Clock) - 白背景用 */
.time-circle {
  width: 120px; height: 120px;
  border: 2px solid #e2e8f0; /* 薄いグレー */
  border-radius: 50%;
  position: relative;
  background: #fff;
}
.time-hand {
  position: absolute; width: 50px; height: 2px;
  background: #1a202c; /* 針は黒 */
  top: 50%; left: 50%; transform-origin: left center;
  animation: spin 4s linear infinite;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Visual 2: Prompt - 白背景用 */
.prompt-line { height: 6px; background: #e2e8f0; margin-bottom: 12px; border-radius: 3px; }
.w-long { width: 140px; } .w-short { width: 80px; }
.prompt-cursor {
  width: 8px; height: 16px;
  background: #5E6AD2; /* ブランドカラー */
  animation: blink 1s infinite;
}

/* Visual 3: Text - 白背景用 */
.blur-text {
  width: 100px; height: 10px;
  background: #e2e8f0;
  filter: blur(4px); margin-bottom: 20px;
}
.sharp-text {
  font-size: 1.5rem; font-weight: bold;
  color: #1a202c; /* 文字は黒 */
  letter-spacing: 2px;
}


/* --- コンテンツとボタン --- */
.card-content {
  position: absolute; bottom: 0; left: 0; width: 100%; padding: 24px;
  background: linear-gradient(to top, #ffffff 60%, transparent 100%); /* 下の方を白くボカす */
}

.card-footer { display: flex; justify-content: space-between; align-items: center; }

.card-footer h3 {
  font-size: 1rem; margin: 0; max-width: 80%; line-height: 1.5;
  color: #111; font-weight: 600;
}

/* ＋ボタン（白背景用） */
.plus-btn {
  width: 32px; height: 32px;
  background: #f3f4f6; /* 薄いグレーの背景 */
  border-radius: 50%; position: relative;
  transition: 0.3s;
}
.plus-btn::before, .plus-btn::after {
  content: ''; position: absolute;
  background: #1a202c; /* プラスマークは黒 */
  top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.plus-btn::before { width: 12px; height: 1.5px; } .plus-btn::after { width: 1.5px; height: 12px; }

/* ホバー時の＋ボタン */
.modern-card:hover .plus-btn {
  background: #1a202c; /* 背景が黒に */
  transform: rotate(90deg);
}
.modern-card:hover .plus-btn::before,
.modern-card:hover .plus-btn::after {
  background: #fff; /* マークが白に反転 */
}


/* --- Modal Styles (ポップアップ) --- */
/* ポップアップ自体は「暗転して浮き出る」演出がかっこいいので、あえてダークトーンのままにするのがおすすめです */
/* もしポップアップの中も白くしたい場合はお知らせください */

/* --- Modal Styles (1カラム・中央配置への修正版) --- */

.modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex; justify-content: center; align-items: center;
  opacity: 0; visibility: hidden;
  transition: all 0.3s ease;
}
.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-window {
  background: #ffffff;
  width: 90%; 
  max-width: 600px; /* ★幅を少し狭くして読みやすくしました */
  border-radius: 20px;
  position: relative; overflow: hidden;
  transform: scale(0.95); transition: 0.3s ease;
  box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}
.modal-overlay.active .modal-window { transform: scale(1); }

.modal-close {
  position: absolute; top: 20px; right: 20px;
  background: #f3f4f6; color: #111; border: none;
  width: 36px; height: 36px; border-radius: 50%;
  font-size: 1.5rem; cursor: pointer; z-index: 10;
  transition: 0.2s;
}
.modal-close:hover { background: #e5e7eb; }

/* ★ここが修正ポイント */
.modal-body { 
  display: block; /* 横並び（flex）を解除 */
  min-height: auto; /* 高さは内容なりに */
}

/* ★左側の画像エリアを完全に隠す */
.modal-visual {
  display: none; 
}

/* ★テキストエリアを全体に広げて中央揃えにする */
.modal-text-content {
  padding: 60px 40px;
  text-align: center; /* 文字を真ん中に */
}

.modal-text-content h2 { 
  font-size: 1.8rem; 
  margin-bottom: 24px; 
  color: #111; 
}

.modal-text-content p { 
  color: #4b5563; 
  line-height: 1.8; 
  margin-bottom: 16px; 
  font-size: 1rem; 
}
/* --- Modal Comparison Table Style --- */

.modal-title-main {
  font-size: 1.6rem;
  margin-bottom: 10px;
  color: #111;
}
.modal-subtitle {
  font-size: 0.95rem;
  color: #6b7280;
  margin-bottom: 30px;
}

/* 3カラムのグリッドテーブル */
.comparison-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr; /* 左ラベルを少し広めに */
  gap: 2px; /* 格子線の太さ代わり */
  background-color: #e5e7eb; /* 隙間の色（枠線の色になる） */
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 30px;
  font-size: 0.9rem;
}

/* ヘッダーセルのスタイル */
.grid-header {
  padding: 12px;
  font-weight: bold;
  text-align: center;
  background-color: #f9fafb;
  color: #374151;
}
.header-poniu {
  background-color: #5E6AD2; /* ブランドカラー */
  color: #fff;
  font-size: 1.1rem;
}
.header-old {
  background-color: #6b7280;
  color: #fff;
}
.header-label { background-color: #fff; } /* 左上の空欄 */

/* 通常セルのスタイル */
.grid-cell {
  padding: 12px 8px;
  text-align: center;
  background-color: #fff;
  display: flex; align-items: center; justify-content: center;
  color: #374151;
}
.label-cell {
  justify-content: flex-start; /* 左寄せ */
  padding-left: 16px;
  font-weight: bold;
  background-color: #fcfcfc;
  color: #4b5563;
}
.poniu-cell {
  background-color: #f5f3ff; /* 薄い紫の背景 */
  color: #5E6AD2;
  font-weight: bold;
  font-size: 1.05rem;
}
.unit { font-size: 0.75rem; font-weight: normal; margin-left: 2px; }

/* インパクトボックス（結果強調） */
.impact-box {
  background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
  color: #fff;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}
.impact-text {
  font-size: 1.2rem;
  margin-bottom: 5px !important;
  color: #fff !important;
}
.highlight-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fbbf24; /* 金色っぽい黄色で強調 */
  margin: 0 8px;
  line-height: 1;
}
.impact-sub {
  font-size: 0.9rem;
  opacity: 0.9;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 8px;
  margin-top: 8px;
  display: inline-block;
}

/* メリットリスト */
.benefits-section p {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 12px !important;
}
.benefits-list {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}
.benefit-item {
  background-color: #fff;
  border: 1px solid #e5e7eb;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: bold;
  color: #374151;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* スマホ対応 */
@media (max-width: 600px) {
  .comparison-grid { font-size: 0.8rem; }
  .grid-cell { padding: 8px 4px; }
  .benefits-list { flex-direction: column; gap: 8px; }
}
/* --- Modal 2: Prompt Comparison Styles --- */

/* 比較エリア全体 */
.prompt-comparison {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

.prompt-box {
  flex: 1;
  padding: 20px;
  border-radius: 16px;
  position: relative;
  min-height: 180px;
}

.box-label {
  font-size: 0.75rem;
  font-weight: bold;
  color: #94a3b8;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* 従来の方法（ごちゃごちゃ感） */
.old-way {
  background-color: #f1f5f9;
  border: 1px dashed #cbd5e1;
}
.p-line {
  font-size: 0.8rem;
  color: #64748b;
  background: #fff;
  padding: 6px 10px;
  margin-bottom: 8px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  opacity: 0.8;
}
.repeat-icon {
  text-align: center;
  background: transparent;
  border: none;
  font-weight: bold;
  color: #ef4444; /* 警告・面倒なイメージ */
}

/* 矢印 */
.arrow-divider {
  font-weight: bold;
  color: #cbd5e1;
  font-style: italic;
}

/* Poniuの方法（スッキリ・自動感） */
.poniu-way {
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  border: 1px solid #ddd6fe;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.poniu-label { color: #5E6AD2; }

.auto-tags {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.auto-tag {
  background: #fff;
  color: #5E6AD2;
  font-size: 0.85rem;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(94, 106, 210, 0.1);
  text-align: center;
  animation: pulse-light 2s infinite;
}

@keyframes pulse-light {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.02); opacity: 0.9; }
}

.apply-animation p {
  margin-top: 15px !important;
  font-size: 0.75rem;
  color: #7c3aed;
  font-weight: bold;
}

/* 3つの柱（横並び説明） */
.features-list-horizontal {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
  border-top: 1px solid #f1f5f9;
  padding-top: 30px;
}
.f-item { text-align: center; }
.f-icon { font-size: 1.5rem; display: block; margin-bottom: 10px; }
.f-item h4 { font-size: 0.95rem; margin-bottom: 8px; color: #334155; }
.f-item p { font-size: 0.8rem; color: #64748b; line-height: 1.4; }

.final-message {
  background-color: #f8fafc;
  padding: 20px;
  border-radius: 12px;
  font-weight: 500;
}

/* スマホ対応 */
@media (max-width: 600px) {
  .prompt-comparison { flex-direction: column; }
  .features-list-horizontal { grid-template-columns: 1fr; }
}
/* --- Modal 3: Verbalization Visual Styles --- */

.translation-visual {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #f8fafc;
  padding: 20px;
  border-radius: 16px;
  margin-bottom: 30px;
  position: relative;
}

.visual-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 45%;
}

.col-label {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 10px;
  font-weight: bold;
}
.label-highlight { color: #5E6AD2; }

/* 左側：メモ（曖昧） */
.memo-bubble {
  background: #fff;
  border: 2px dashed #cbd5e1;
  color: #64748b;
  padding: 15px;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.6;
  width: 100%;
  min-height: 120px;
  position: relative;
}
.bullet { color: #cbd5e1; margin-right: 4px; }
.vague-status {
  margin-top: 8px;
  font-size: 0.75rem;
  color: #94a3b8;
}

/* 中央：矢印とAI */
.visual-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 10%;
  position: relative;
}
.arrow-line {
  width: 100%;
  height: 2px;
  background: #e2e8f0;
  position: absolute;
  top: 50%;
  z-index: 1;
}
.ai-brain-icon {
  font-size: 1.5rem;
  background: #fff;
  padding: 5px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  z-index: 2;
  animation: pulse 2s infinite;
}

/* 右側：レポート（明確） */
.report-paper {
  background: #fff;
  border: 1px solid #e2e8f0;
  padding: 15px;
  border-radius: 4px; /* 紙っぽく角を少し鋭角に */
  width: 100%;
  min-height: 120px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  font-size: 0.85rem;
  position: relative;
  /* 右側を少し浮かせる演出 */
  transform: rotate(1deg);
  border-left: 3px solid #5E6AD2; /* アクセント */
}
.title-line {
  font-weight: bold;
  font-size: 0.75rem;
  color: #5E6AD2;
  margin-bottom: 4px;
  display: inline-block;
  background: #f5f3ff;
  padding: 2px 6px;
  border-radius: 4px;
}
.report-text {
  font-size: 0.8rem;
  color: #334155;
  margin-bottom: 12px;
  line-height: 1.5;
}
.marker {
  background: linear-gradient(transparent 60%, #fef08a 60%); /* マーカー風 */
  font-weight: bold;
  color: #111;
}
.clear-status {
  margin-top: 8px;
  font-size: 0.75rem;
  color: #5E6AD2;
  font-weight: bold;
}

/* 3つの価値リスト */
.value-triad {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.value-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding: 10px;
  border-radius: 8px;
  transition: background 0.2s;
}
.value-item:hover {
  background: #f8fafc;
}
.v-icon {
  font-size: 1.4rem;
  background: #fff;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}
.v-text {
  display: flex;
  flex-direction: column;
}
.v-text strong {
  font-size: 0.95rem;
  color: #1e293b;
  margin-bottom: 4px;
}
.v-text span {
  font-size: 0.85rem;
  color: #64748b;
}

/* スマホ対応 */
@media (max-width: 600px) {
  .translation-visual { flex-direction: column; gap: 20px; }
  .visual-col { max-width: 100%; width: 100%; }
  .visual-arrow { transform: rotate(90deg); margin: 10px 0; }
  .report-paper { transform: rotate(0deg); }
}
/* --- ToDo Showcase Section --- */

.todo-showcase-section {
  padding: 120px 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  overflow: hidden; /* はみ出した装飾を隠す */
}

.todo-showcase-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

/* 左側：テキスト */
.todo-text-content {
  flex: 1;
  max-width: 500px;
}

.feature-badge {
  display: inline-block;
  background: #eff6ff;
  color: #5E6AD2;
  font-size: 0.8rem;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
  border: 1px solid #dbeafe;
}

.section-title {
  font-size: 2.5rem;
  line-height: 1.2;
  font-weight: 700;
  color: #111;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.section-desc {
  color: #64748b;
  line-height: 1.8;
  margin-bottom: 32px;
}

.feature-check-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.feature-check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: #334155;
}
.check-icon {
  color: #fff;
  background: #5E6AD2;
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}


/* 右側：ビジュアル */
.todo-visual-content {
  flex: 1;
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 背景：読み取られる日報（抽象表現） */
.bg-report-layer {
  position: absolute;
  width: 300px;
  height: 380px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 30px;
  transform: perspective(1000px) rotateY(10deg) rotateX(5deg) scale(0.9) translateX(-40px);
  opacity: 0.6;
  z-index: 1;
  box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.line { height: 8px; background: #e2e8f0; border-radius: 4px; margin-bottom: 16px; }
.l-long { width: 100%; }
.l-medium { width: 70%; }
.l-short { width: 40%; }

/* 光るスキャンライン */
.highlight-zone {
  position: absolute;
  top: 30%; left: 0;
  width: 100%; height: 40px;
  background: linear-gradient(90deg, transparent, rgba(94, 106, 210, 0.1), transparent);
  border-top: 1px solid rgba(94, 106, 210, 0.3);
  border-bottom: 1px solid rgba(94, 106, 210, 0.3);
  animation: scan 3s ease-in-out infinite;
}
@keyframes scan {
  0%, 100% { top: 20%; opacity: 0; }
  50% { top: 60%; opacity: 1; }
}


/* 手前：ToDoカード */
.ui-todo-card {
  position: relative;
  z-index: 2;
  width: 320px;
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.12);
  border: 1px solid #eef2f6;
  transform: perspective(1000px) rotateY(-5deg);
  transition: transform 0.3s ease;
}
.ui-todo-card:hover {
  transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

.ui-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 15px;
}
.ui-title { font-weight: bold; color: #1e293b; }
.ui-count { 
  background: #f1f5f9; color: #64748b; 
  padding: 2px 8px; border-radius: 10px; font-size: 0.8rem; font-weight: bold;
}

.ui-list { display: flex; flex-direction: column; gap: 12px; }

.ui-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px;
  border-radius: 8px;
  transition: background 0.2s;
}
.ui-item:hover { background: #f8fafc; }

.ui-checkbox {
  width: 18px; height: 18px;
  border: 2px solid #cbd5e1;
  border-radius: 5px;
  margin-top: 2px;
}

.ui-task-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 4px;
}
.ui-task-meta {
  font-size: 0.75rem;
  color: #94a3b8;
}

/* アニメーション：タスクが順番に現れる */
.item-1 { animation: slideIn 0.5s ease-out forwards; }
.item-2 { animation: slideIn 0.5s ease-out 0.2s forwards; opacity: 0; transform: translateX(10px); }
.item-3 { animation: slideIn 0.5s ease-out 0.4s forwards; opacity: 0; transform: translateX(10px); }

@keyframes slideIn {
  to { opacity: 1; transform: translateX(0); }
}

.ai-generated-badge {
  margin-top: 20px;
  text-align: center;
  font-size: 0.75rem;
  color: #5E6AD2;
  font-weight: bold;
  background: #f5f3ff;
  padding: 8px;
  border-radius: 8px;
}

/* スマホ対応 */
@media (max-width: 900px) {
  .todo-showcase-wrapper {
      flex-direction: column;
      text-align: center;
  }
  .todo-text-content { max-width: 100%; }
  .feature-check-list { align-items: center; } /* リストを中央寄せ */
  
  .todo-visual-content { height: 350px; }
  .bg-report-layer { display: none; /* スマホでは複雑になるので背景を消す */ }
  .ui-todo-card { transform: none; width: 100%; max-width: 320px; }
}
/* --- ToDo Live Demo Section --- */

.todo-live-demo-section {
  padding: 100px 0;
  background: #f8fafc;
  text-align: center;
}

.todo-demo-header {
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.badge-feature {
  display: inline-block;
  background: #e0e7ff;
  color: #5E6AD2;
  font-size: 0.8rem;
  font-weight: bold;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.todo-demo-header h2 { font-size: 3rem; margin-bottom: 16px; color: #111; }
.todo-demo-header p { color: #64748b; }


/* デモウィンドウ（PC画面風） */
.todo-demo-window {
  max-width: 700px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
  overflow: hidden;
  text-align: left;
  position: relative;
}

/* 上：入力エリア */
.todo-demo-input-area {
  padding: 30px;
  border-bottom: 1px solid #f1f5f9;
  min-height: 200px;
  background: #fff;
}
.window-label {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-bottom: 10px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.typing-area {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #334155;
  white-space: pre-wrap;
}

/* 下：出力エリア */
.todo-demo-output-area {
  padding: 20px 30px;
  background: #f8fafc; /* 背景色を少し変えてエリアを区別 */
  min-height: 180px;
}
.extraction-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #5E6AD2;
  font-weight: bold;
  margin-bottom: 16px;
}
.sparkle-icon { animation: spinSparkle 2s infinite linear; }

/* 生成されるカード */
.demo-todo-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  padding: 12px 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
  margin-bottom: 10px;
  
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
}
.demo-todo-card.show {
  opacity: 1;
  transform: translateY(0);
}

.demo-check {
  width: 16px; height: 16px;
  border: 2px solid #cbd5e1;
  border-radius: 4px;
}
.demo-text { font-size: 0.9rem; font-weight: 500; color: #334155; }

/* アニメーション用エフェクト */
.demo-highlight {
  background-color: rgba(94, 106, 210, 0.2);
  color: #5E6AD2;
  font-weight: bold;
  border-radius: 2px;
  padding: 0 2px;
  transition: 0.3s;
}

.demo-particle {
  position: fixed;
  width: 8px; height: 8px;
  background: #5E6AD2;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  box-shadow: 0 0 10px #5E6AD2;
  transition: top 0.6s ease-in, left 0.6s ease-in, transform 0.6s ease-in, opacity 0.6s;
}
/* --- Past Reports Section --- */
.past-reports-section {
  padding: 120px 0;
  background-color: #ffffff;
}

.section-header-center {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 80px;
}
.title-large {
  font-size: 2.8rem;
  font-weight: 800;
  color: #111;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.desc-text {
  color: #64748b;
  line-height: 1.8;
  font-size: 1.05rem;
}

.history-feature-wrapper {
  display: flex;
  align-items: center;
  gap: 80px;
}

/* --- 左側：ダッシュボードビジュアル --- */
.history-dashboard-visual {
  flex: 1.2;
  position: relative;
  padding: 20px;
}

/* アプリウィンドウ本体 */
.app-window {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  position: relative;
  z-index: 2;
}

/* ウィンドウヘッダー */
.app-header-bar {
  background: #f8fafc;
  padding: 16px 24px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 20px;
}
.window-dots {
  display: flex;
  gap: 6px;
}
.window-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
}

/* 検索バー風デザイン */
.search-input-styled {
  flex: 1;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #334155;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02) inset;
}
.search-placeholder {
  color: #111;
  position: relative;
}
/* カーソルの点滅演出 */
.search-placeholder::after {
  content: '';
  display: inline-block;
  width: 1px; height: 1em;
  background: #5E6AD2;
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1s infinite;
}

/* リストエリア */
.report-list-container {
  background: #fff;
  min-height: 250px;
}

.list-header {
  display: grid;
  grid-template-columns: 100px 1fr 150px;
  padding: 12px 24px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: bold;
  text-transform: uppercase;
}

.report-row {
  display: grid;
  grid-template-columns: 100px 1fr 150px;
  padding: 16px 24px;
  align-items: center;
  border-bottom: 1px solid #f8fafc;
  transition: 0.2s;
  position: relative;
  cursor: default;
}
.report-row:hover { background: #f8fafc; }

.col-date { font-size: 0.85rem; color: #64748b; font-variant-numeric: tabular-nums; }
.col-title { font-size: 0.9rem; color: #334155; display: flex; align-items: center; gap: 8px; }
.report-icon { opacity: 0.7; }

/* タグのデザイン */
.col-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  font-size: 0.7rem;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 600;
}
.tag-project { background: #e0e7ff; color: #4338ca; } /* 青紫系 */
.tag-type { background: #f1f5f9; color: #475569; }    /* グレー系 */
.tag-tech { background: #ffedd5; color: #c2410c; }    /* オレンジ系 */

/* アクティブな行（検索ヒット）の強調 */
.active-row {
  background: #f5f3ff; /* 薄いブランドカラー */
}
.active-row::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px; background: #5E6AD2;
}

/* 新機能バッジ */
.new-badge {
  font-size: 0.65rem;
  background: linear-gradient(135deg, #6366F1, #A855F7);
  color: #fff;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: bold;
}

/* 詳細ボタン（ホバー時） */
.row-action-overlay {
  position: absolute;
  right: 24px;
  opacity: 0;
  transition: 0.2s;
}
.report-row:hover .row-action-overlay { opacity: 1; }
.btn-sm {
  background: #fff; border: 1px solid #cbd5e1;
  padding: 4px 12px; border-radius: 4px;
  font-size: 0.75rem; color: #334155; cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* 検索ステータスバー */
.search-status {
  padding: 10px 24px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  font-size: 0.8rem;
  color: #64748b;
  text-align: right;
}
.highlight-text { font-weight: bold; color: #334155; }
.count { color: #5E6AD2; font-weight: bold; }

/* 背景の装飾レイヤー */
.bg-calendar-layer {
  position: absolute;
  top: 40px; right: -20px; bottom: -20px; left: 40px;
  background: #f1f5f9;
  border-radius: 16px;
  z-index: 1;
  border: 1px solid #e2e8f0;
}


/* --- 右側：テキストコンテンツ（修正版） --- */
.history-text-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px; /* ブロック間の余白 */
}

/* ブロック全体を横並びレイアウトに */
.feature-block {
  display: flex;
  align-items: flex-start; /* アイコンを上揃えに */
  gap: 20px; /* アイコンと文字の間隔 */
}

/* アイコンボックス */
.icon-box {
  width: 48px; height: 48px;
  background: #f8fafc;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0; /* 画面が狭くなってもアイコンを潰さない */
  
  /* 位置の微調整（少しだけ下げる） */
  margin-top: 4px; 
}
.color-purple { background: #f5f3ff; color: #5E6AD2; }


/* テキストエリア */
/* --- style.css --- */

.feature-text-body {
  flex: 1;
  
  /* ★ここを追加：テキストを左揃えにする */
  text-align: left;
}

.feature-block h3 {
  font-size: 1.2rem;
  margin-bottom: 8px; /* タイトル下の余白を詰める */
  color: #111;
  font-weight: 700;
  line-height: 1.4;
}

.feature-block p {
  color: #64748b;
  line-height: 1.7;
  font-size: 0.95rem;
  margin: 0; /* 無駄な余白を消す */
}


/* アップデートバッジ周りの調整 */
.title-with-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap; /* 画面が狭い時に折り返す */
}
.title-with-badge h3 { margin-bottom: 0; }

.update-badge {
  font-size: 0.7rem;
  font-weight: bold;
  color: #5E6AD2;
  border: 1px solid #5E6AD2;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  background: #fff;
}

/* スマホ対応 */
@media (max-width: 900px) {
  .history-feature-wrapper { flex-direction: column; gap: 50px; }
  .history-dashboard-visual { width: 100%; padding: 0; }
  .bg-calendar-layer { display: none; }
  .report-list-container { min-width: 600px; /* 横スクロールさせる */ }
  .app-window { overflow-x: auto; }
}
/* --- Roadmap Section --- */
.roadmap-section {
  padding: 100px 0 140px;
  background: #f8fafc;
}

.roadmap-label {
  font-size: 0.8rem;
  font-weight: 800;
  color: #5E6AD2;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 16px;
}

.roadmap-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr; /* 真ん中（Phase 2）を少し広く */
  gap: 24px;
  align-items: start;
}

/* カード共通 */
.roadmap-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 30px;
  position: relative;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
  transition: transform 0.3s;
}
.roadmap-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

/* フェーズバッジ */
.phase-badge {
  position: absolute;
  top: 20px; right: 20px;
  font-size: 0.75rem;
  font-weight: bold;
  color: #94a3b8;
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: 12px;
}
.badge-purple {
  background: #f5f3ff;
  color: #5E6AD2;
}

.card-body h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: #1e293b;
  font-weight: 700;
}
.card-desc {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Phase 1: ビジュアル */
.visual-todo {
  height: 100px;
  background: #f8fafc;
  border-radius: 12px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
}
.mini-todo-item {
  display: flex; gap: 8px; align-items: center;
  background: #fff; padding: 8px 12px; border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  width: 80%;
}
.check-box { width: 12px; height: 12px; border: 2px solid #cbd5e1; border-radius: 3px; }
.line { width: 60%; height: 6px; background: #e2e8f0; border-radius: 3px; }
.short { width: 40%; }
.float-icon {
  position: absolute; top: -10px; right: 20px;
  background: #5E6AD2; color: #fff;
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; box-shadow: 0 4px 10px rgba(94, 106, 210, 0.3);
}

/* Phase 2: 自動タグ付け（強調） */
.featured-card {
  border-color: #c7d2fe;
  box-shadow: 0 10px 40px rgba(94, 106, 210, 0.08);
  background: linear-gradient(to bottom, #fff, #fafaff);
}
.highlight-title {
  font-size: 1.6rem !important;
  background: linear-gradient(135deg, #111, #444);
  background-clip: text;          /* ← これを追加 */
-webkit-background-clip: text;  /* ← 元のやつも残す */
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.benefit-list {
  display: flex; flex-direction: column; gap: 16px;
  margin: 24px 0;
  padding: 0;
}
.benefit-list li {
  display: flex; gap: 12px; align-items: flex-start;
}
.benefit-icon {
  background: #fff; color: #5E6AD2;
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.benefit-text { display: flex; flex-direction: column; }
.benefit-text strong { font-size: 0.95rem; color: #334155; }
.benefit-text span { font-size: 0.8rem; color: #64748b; line-height: 1.5; }

/* Phase 3: リスト詰め込み */
.future-features-list {
  text-align: left;
  background: #f8fafc;
  padding: 20px;
  border-radius: 12px;
  font-size: 0.85rem;
}
.ff-category {
  font-weight: 800; color: #475569;
  font-size: 0.75rem; margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 4px;
  margin-top: 12px;
}
.ff-category:first-child { margin-top: 0; }

.future-features-list ul {
  list-style: none; padding: 0; margin: 0;
}
.future-features-list li {
  position: relative; padding-left: 12px;
  margin-bottom: 4px; color: #64748b;
}
.future-features-list li::before {
  content: '•'; position: absolute; left: 0; color: #cbd5e1;
}

.disclaimer {
  font-size: 0.7rem; color: #94a3b8; margin-top: 20px;
  line-height: 1.4;
}

/* ステータスタグ */
.status-tag {
  display: inline-block;
  font-size: 0.7rem; font-weight: bold;
  padding: 4px 12px; border-radius: 20px;
}
.available { background: #dcfce7; color: #166534; }
.coming-soon { background: #e0e7ff; color: #4338ca; }

/* スマホ対応 */
@media (max-width: 900px) {
  .roadmap-grid { grid-template-columns: 1fr; }
  .featured-card { order: -1; /* スマホではPhase 2を一番上に見せてもいいかも（お好みで） */ }
}
/* --- Manager Promo Section --- */
.manager-promo-section {
  padding: 100px 0;
  background: #fff;
  border-top: 1px solid #e2e8f0;
}

.target-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: bold;
  color: #64748b;
  border: 1px solid #cbd5e1;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 16px;
  letter-spacing: 0.1em;
}

.manager-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 50px;
}

/* 共通カードスタイル */
.manager-card {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s;
}
.manager-card:hover { transform: translateY(-5px); }


/* --- カード1：コスト削減 (ダークテーマ) --- */
.cost-card {
  background: #1e293b; /* 濃いネイビー */
  color: #fff;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(30, 41, 59, 0.3);
  border: 1px solid #334155;
}

.cost-header h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #fff;
}
.cost-header p {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* コスト比較テーブル */
.cost-comparison-box {
  border: 1px solid #475569;
  border-radius: 12px;
  overflow: hidden;
}

.cost-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  border-bottom: 1px solid #334155;
}
.header-row {
  background: #334155;
  font-weight: bold;
  font-size: 0.85rem;
  color: #cbd5e1;
}
.c-col {
  padding: 12px 10px;
  text-align: center;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
}
.label-col {
  justify-content: flex-start;
  text-align: left;
  color: #94a3b8;
  padding-left: 15px;
  font-size: 0.85rem;
}
.sm { font-size: 0.7rem; margin-left: 2px; opacity: 0.7; }
.highlight { color: #8E9AF3; font-weight: bold; }

/* インパクトエリア (ここが一番重要) */
.cost-impact-area {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  padding: 20px;
  text-align: center;
  border-top: 1px solid #fbbf24; /* 金色のライン */
}
.impact-label {
  font-size: 0.8rem;
  color: #fbbf24; /* ゴールド */
  margin-bottom: 5px;
  font-weight: bold;
}
.impact-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
}
.yen { font-size: 1.2rem; margin-right: 4px; color: #fbbf24; }
.up { font-size: 1rem; margin-left: 8px; color: #fbbf24; }
.impact-sub { font-size: 0.8rem; color: #94a3b8; }


/* --- カード2：導入簡単 (ライトテーマ) --- */
.easy-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.easy-content { text-align: center; }

.icon-circle {
  width: 60px; height: 60px;
  background: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.easy-card h3 {
  font-size: 1.5rem;
  color: #1e293b;
  margin-bottom: 16px;
  line-height: 1.3;
}

.easy-card p {
  color: #64748b;
  line-height: 1.8;
  margin-bottom: 40px;
  font-size: 0.95rem;
}

/* 3ステップビジュアル */
.simple-step-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  border: 1px dashed #cbd5e1;
}
.step-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.step-num {
  background: #e2e8f0; color: #64748b;
  width: 20px; height: 20px; border-radius: 50%;
  font-size: 0.7rem; font-weight: bold;
  display: flex; align-items: center; justify-content: center;
}
.step-text { font-size: 0.75rem; font-weight: bold; color: #334155; }
.step-arrow { color: #cbd5e1; font-size: 1.2rem; }
.done .step-icon { font-size: 1.2rem; }
.done .step-text { color: #5E6AD2; }

/* CTA周り */
.manager-cta-wrapper {
  text-align: center;
  margin-top: 40px;
}
.trial-note {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 12px;
}

/* スマホ対応 */
@media (max-width: 800px) {
  .manager-card-grid { grid-template-columns: 1fr; }
  .cost-comparison-box { font-size: 0.9rem; }
  .impact-value { font-size: 1.8rem; }
}
/* --- Pricing Section --- */
.pricing-section {
  padding: 100px 0;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
}

/* キャンペーンバナー */
.campaign-banner {
  background: linear-gradient(135deg, #5E6AD2 0%, #4338ca 100%);
  color: #fff;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px; /* カードとの距離 */
  position: relative;
  box-shadow: 0 10px 30px rgba(94, 106, 210, 0.3);
  overflow: hidden;
}

.campaign-badge {
  background: #fbbf24;
  color: #111;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 10px;
}

.campaign-text h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: #fff;
}
.highlight-yellow {
  color: #fbbf24;
  text-decoration: underline;
  text-decoration-thickness: 4px;
  text-underline-offset: 4px;
}
.campaign-date {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* キラキラ装飾 */
.sparkle { position: absolute; color: #fbbf24; font-size: 1.5rem; animation: pulse 2s infinite; }
.s-1 { top: 20px; left: 40px; }
.s-2 { bottom: 20px; right: 40px; animation-delay: 1s; }


/* 料金カードグリッド */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto 40px;
  align-items: stretch; /* 高さを揃える */
}

.pricing-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  transition: 0.3s;
  position: relative;
}
.pricing-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transform: translateY(-5px);
}

/* おすすめプラン（真ん中）の強調 */
.featured-plan {
  border: 2px solid #5E6AD2;
  background: #fdfcff;
  box-shadow: 0 10px 40px rgba(94, 106, 210, 0.1);
  z-index: 1; /* 他より手前に */
}
.recommend-badge {
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  background: #5E6AD2; color: #fff;
  font-size: 0.75rem; font-weight: bold;
  padding: 4px 12px; border-radius: 20px;
}

/* プラン内容スタイル */
.plan-name { font-size: 1.4rem; font-weight: 700; color: #1e293b; margin-bottom: 4px; }
.plan-target { font-size: 0.8rem; color: #64748b; min-height: 1.2em; margin-bottom: 20px; }

.plan-price {
  display: flex; align-items: baseline; justify-content: center;
  margin-bottom: 10px;
  color: #111;
}
.currency { font-size: 1.2rem; font-weight: bold; margin-right: 4px; }
.amount { font-size: 2.8rem; font-weight: 800; line-height: 1; }
.unit { font-size: 0.9rem; color: #64748b; font-weight: normal; margin-left: 4px; }

.plan-condition {
  text-align: center;
  font-size: 0.9rem;
  color: #334155;
  margin-bottom: 8px;
  background: #f1f5f9;
  padding: 6px;
  border-radius: 6px;
}
.plan-condition .bold { font-weight: bold; }

.save-text {
  text-align: center;
  font-size: 0.8rem;
  color: #ef4444; /* 赤文字でお得感 */
  font-weight: bold;
  margin-bottom: 20px;
  height: 1.2em; /* 空欄でも高さ確保 */
}

/* ボタン */
.btn-block {
  display: block; width: 100%; text-align: center;
  margin-bottom: 30px;
}
.btn-outline {
  border: 1px solid #cbd5e1;
  color: #334155;
  background: #fff;
  font-weight: bold;
  padding: 12px 24px;
  border-radius: 8px;
  transition: 0.2s;
}
.btn-outline:hover { background: #f8fafc; border-color: #94a3b8; }

/* 機能リスト */
.plan-features {
  list-style: none; padding: 0; margin: 0;
  text-align: left;
  font-size: 0.9rem;
  color: #475569;
}
.plan-features li {
  margin-bottom: 12px;
  padding-left: 4px;
}
.plan-features strong { color: #1e293b; }

.pricing-note {
  text-align: center;
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 20px;
}

/* スマホ対応 */
@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
  .featured-plan { order: -1; /* スマホではおすすめを一番上に */ }
}
/* 全体の枠組み */
.faq-section {
  max-width: 800px; /* 横幅はお好みで調整してください */
  margin: 0 auto;
  padding: 40px 20px;
  font-family: sans-serif;
}

.faq-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 40px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 20px;
}

/* 個別の質問アイテム */
.faq-item {
  border-bottom: 1px solid #ddd;
  margin-bottom: 0;
}

/* 質問部分（クリックエリア） */
.faq-question {
  list-style: none; /* デフォルトの三角アイコンを消す */
  cursor: pointer;
  padding: 20px 0;
  font-weight: bold;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

/* Safariなど一部ブラウザ向けのアイコン消去対応 */
.faq-question::-webkit-details-marker {
  display: none;
}

/* 右側のプラスアイコンを作る */
.faq-icon {
  position: relative;
  width: 12px;
  height: 12px;
  display: block;
  flex-shrink: 0; /* 幅が狭くなってもアイコンを潰さない */
  margin-left: 10px;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background-color: #333;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease; /* くるっと回るアニメーション */
}

/* 横棒 */
.faq-icon::before {
  width: 100%;
  height: 2px;
}

/* 縦棒 */
.faq-icon::after {
  width: 2px;
  height: 100%;
}

/* 開いている時（open属性がある時）の動き */
details[open] .faq-icon::before {
  transform: translate(-50%, -50%) rotate(45deg); /* 斜めにする */
}
details[open] .faq-icon::after {
  transform: translate(-50%, -50%) rotate(45deg); /* 斜めにして×にする */
}

/* 回答部分 */
.faq-answer {
  padding-bottom: 20px;
  color: #555;
  line-height: 1.6;
  font-size: 15px;
}
/* ページ全体を滑らかにスクロールさせる */
html {
  scroll-behavior: smooth;
}

/* 各セクションへの移動位置を調整 */
/* ヘッダーが固定(fixed)の場合、これがないと見出しが隠れてしまいます */
section {
  scroll-margin-top: 100px; /* ヘッダーの高さに合わせて数値を調整してください */
}
/* --- Contact Section --- */
.contact-section {
  padding: 100px 0;
  background-color: #fff; /* 背景色 */
}

.form-wrapper {
  max-width: 640px; /* フォームの横幅を程よく制限 */
  margin: 0 auto;   /* 中央寄せ */
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

/* 埋め込んだGoogleフォームをスマホ対応させる */
.form-wrapper iframe {
  width: 100% !important; /* 横幅いっぱいに */
  border: none;
}
/* バッジを最前面に持ってくる */
.badge {
  position: relative;
  z-index: 10;
  cursor: pointer; /* 強制的に指マークにする */
}
/* ロゴ画像のサイズ調整 */
.custom-logo {
  height: 40px; /* ヘッダーの高さに合わせて調整してください */
  width: auto;  /* 横幅は自動 */
  margin-right: 10px; /* 「Poniu」の文字との隙間 */
  vertical-align: middle; /* 文字と高さを合わせる */
  border-radius: 8px; /* 角を少し丸くする場合（お好みで） */
}

/* もし「Poniu」という文字も消してロゴだけにしたい場合は、
   HTMLの "Poniu" という文字を削除してください */
   
   /* ヒーローエリアのボタンを強制的に最前面にする */
.hero-btns,
.badge {
  position: relative;
  z-index: 100; /* 数字を大きくして一番手前にする */
  cursor: pointer; /* 確実に指マークにする */
}
/* お問い合わせボタンのスタイル */
.contact-btn {
  display: inline-block;
  background-color: #4A90E2; /* Poniuのテーマカラーに合わせて変更してください */
  color: #ffffff;
  padding: 12px 32px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px; /* 角丸の調整 */
  transition: background-color 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* マウスを乗せた時の動き */
.contact-btn:hover {
  background-color: #357ABD; /* ホバー時の少し濃い色 */
  transform: translateY(-2px); /* 少し浮き上がる演出 */
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
/* 全体の枠：高さを抑えた横長バー */
.length-control-bar {
  background: #ffffff;
  border-radius: 20px; /* 少し丸みを抑えてスッキリさせる */
  padding: 24px 32px; /* 上下の余白を減らしました */
  margin-top: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border: 1px solid rgba(0,0,0,0.02); /* うっすら境界線 */
}

/* 左側：テキストエリア */
.length-info {
  flex: 1; /* 余白を埋める */
}

.length-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.length-header h3 {
  font-size: 1.1rem;
  font-weight: bold;
  color: #333;
  margin: 0;
}

/* 「目安設定」バッジ */
.badge {
  background-color: #f0f2f5;
  color: #666;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: normal;
}

.description {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

.description small {
  display: inline-block;
  color: #999;
  font-size: 0.8rem;
  margin-left: 8px;
}

/* 右側：入力エリア全体 */
.length-input-area {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: #f8f9fa; /* 薄いグレーの背景でエリア化 */
  padding: 12px 24px;
  border-radius: 50px; /* カプセル型にする */
}

.input-label {
  font-weight: bold;
  color: #555;
  font-size: 0.95rem;
  cursor: pointer;
}

/* 数字入力欄のデザイン */
.counter-wrapper input {
  width: 80px;
  padding: 8px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: bold;
  color: #333;
  outline: none;
  background: #fff;
  transition: all 0.2s;
}

.counter-wrapper input:focus {
  border-color: #aaa; /* フォーカス時に少し濃く */
  box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}

.unit {
  font-weight: bold;
  color: #555;
  font-size: 0.95rem;
}

/* スマホ対応（768px以下） */
@media (max-width: 768px) {
  .length-control-bar {
    flex-direction: column; /* 縦積みに変更 */
    align-items: flex-start;
    padding: 20px;
    gap: 20px;
  }
  
  .length-input-area {
    width: 100%;
    justify-content: center; /* 中央寄せ */
    box-sizing: border-box;
  }
  
  .description small {
    display: block; /* スマホでは改行して注釈を表示 */
    margin-left: 0;
    margin-top: 4px;
  }
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  
  /* ▼▼ これを追加してください ▼▼ */
  margin-top: 80px; 
  /* ▲▲ 60px〜100pxの間で調整すると良い感じです ▲▲ */
}
/* --- 4枚目のカード（文字数）専用 --- */

/* ビジュアルエリアの背景色など（他のカードと合わせる） */
.visual-length {
  background-color: #f4f6f8; /* 他のカードの背景色に合わせて調整してください */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* 中央に浮かぶ入力カプセル */
.length-capsule {
  background: #ffffff;
  padding: 12px 24px;
  border-radius: 50px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08); /* 他のタグと同じような影 */
  display: flex;
  align-items: center;
  gap: 12px;
  transform: rotate(-2deg); /* ほんの少し傾けて「手書きメモ感」や「動き」を出す */
  transition: transform 0.3s ease;
}

/* ホバー時に傾きを直す（インタラクティブ感） */
.length-capsule:hover {
  transform: rotate(0deg) scale(1.05);
}

/* アイコン */
.length-capsule .icon {
  font-size: 1.2rem;
}

/* 数字入力欄 */
.length-capsule input {
  width: 60px;
  border: none;
  background: transparent;
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
  text-align: center;
  outline: none;
  border-bottom: 2px solid #eee; /* 入力欄の下線 */
}

.length-capsule input:focus {
  border-bottom-color: #8da1b5; /* フォーカス時の色 */
}

.length-capsule .unit {
  font-size: 0.9rem;
  font-weight: bold;
  color: #666;
}

/* 下の小さな注釈 */
.length-note {
  font-size: 0.75rem;
  color: #999;
  margin-top: 12px;
  font-weight: 500;
}
/* --- 薄い区切り線 --- */
.section-divider {
  width: 100%;                /* 横幅いっぱい */
  height: 1px;                /* 線の太さ */
  background-color: #eaecf0;  /* ★ポイント：真っ黒ではなく薄いブルーグレー */
  margin-top: 80px;           /* 上の要素（ボタンなど）との距離 */
  margin-bottom: -50px;        /* 下の要素との距離 */
  border: none;
}
/* --- セクション用タグ（枠線スタイル） --- */
.section-tag {
  display: inline-block;       /* 文字の長さに合わせて枠を作る */
  padding: 6px 16px;           /* 内側の余白（上下、左右） */
  border: 1px solid #9fb3c8;   /* 枠線の色（落ち着いたブルーグレー） */
  border-radius: 6px;          /* 角の丸み（少しだけ丸く） */
  
  color: #62728a;              /* 文字色（枠線より少し濃くすると読みやすい） */
  font-size: 0.8rem;           /* 文字サイズ（小さめに） */
  font-weight: 700;            /* 太字 */
  letter-spacing: 0.1em;       /* 文字の間隔を少し広げる（高級感が出る） */
  text-transform: uppercase;   /* 小文字で書いても自動で大文字にする */
  background-color: #ffffff;   /* 背景色 */
}
/* スマホサイズ（768px以下）のみ適用 */
@media screen and (max-width: 768px) {
  
  .modern-grid {
    display: flex;              /* 横並びにする */
    overflow-x: auto;           /* 横スクロールを許可 */
    gap: 16px;                  /* カード間の隙間 */
    padding-bottom: 20px;       /* スクロールバーとの余白 */
    
    /* スクロールを滑らかにする設定 */
    -webkit-overflow-scrolling: touch; 
    scroll-snap-type: x mandatory; /* スナップ（吸着）を有効にする */
  }

  .modern-card {
    /* カードの幅を固定（画面幅の85%にして、次のカードを少しチラ見せする） */
    flex: 0 0 85%; 
    width: 85%;
    
    /* カードの中央でスナップさせる */
    scroll-snap-align: center;
  }
}
/* スマホサイズ（768px以下）のみ適用 */
@media screen and (max-width: 768px) {

  /* コンテナ（枠）の設定 */
  .roadmap-grid {
      display: flex;              /* 横並びにする */
      overflow-x: auto;           /* 横スクロール許可 */
      gap: 16px;                  /* カード間の隙間 */
      padding: 0 20px 30px 20px;  /* 左右と下の余白（下はスクロールバー用） */
      
      /* スクロールを滑らかに吸着させる */
      -webkit-overflow-scrolling: touch;
      scroll-snap-type: x mandatory;
  }

  /* カード個別の設定 */
  .roadmap-card {
      /* 画面幅の85%にして、次のカードを少し見せる */
      flex: 0 0 85%;
      width: 85%;
      
      /* カードの中心で止まるようにする */
      scroll-snap-align: center;
      
      /* カードの高さが不揃いでも見た目を整える */
      height: auto; 
  }
}
@media screen and (max-width: 768px) {
  /* ...中略... */

  .roadmap-card {
      flex: 0 0 85%;
      width: 85%;
      scroll-snap-align: center;
      height: auto;
      
      /* ↓ これを追加してください！ */
      order: 0 !important;
  }
}
/* スマホ（幅768px以下）の時だけ適用 */
@media screen and (max-width: 768px) {
  .hero-title {
      font-size: 30px;
  }
}
/* スマホ（幅768px以下）の時だけ適用 */
@media screen and (max-width: 768px) {
    .title-large {
        font-size: 30px;
    }
}