/* ============================================================
   イロドリ株式会社 AI導入事例 紹介サイト v2 (2026-08-15 作り直し)
   公式サイト iro-dori.biz のブランドに合わせた白ベース・カラフル設計
   純CSS・外部依存なし・ライトモード専用
   分類色5色は dataviz バリデータ検証済み:
     効率化 #2a78d6 / 提案力 #b3202c / 開拓 #d97706
     分析 #0f8a5f / 小ワザ #7c3aed
   ============================================================ */

:root {
  /* ブランド (公式サイトのロゴ・CTAから採色) */
  --i-blue: #2aa5da;
  --i-blue-deep: #1b7fb0;
  --i-green: #7dc242;
  --i-green-deep: #55972b;
  --i-yellow: #ffc93c;
  --i-orange: #f7941d;
  --i-orange-deep: #e07b00;

  /* サーフェス・テキスト */
  --bg: #ffffff;
  --bg-alt: #f5f8fa;
  --bg-green: #f4f9ee;
  --card: #ffffff;
  --ink: #26343f;
  --ink-strong: #1c2f3d;
  --ink-2: #55636e;
  --ink-3: #8494a0;
  --line: #e4eaee;
  --dark: #16394e;
  --dark-2: #0e2534;

  /* 分類色 (マーク用・検証済み) */
  --c-eff: #2a78d6;   /* 効率化: 青 */
  --c-prop: #b3202c;  /* 提案力: 赤 */
  --c-dev: #d97706;   /* 開拓: 橙 */
  --c-ana: #0f8a5f;   /* 分析: 緑 */
  --c-tips: #7c3aed;  /* 小ワザ: 紫 */

  --c-eff-2: #174a8c;
  --c-prop-2: #7a121b;
  --c-dev-2: #9a4e00;
  --c-ana-2: #0a5c40;
  --c-tips-2: #4c1d95;

  --c-eff-text: #1a5fb4;
  --c-prop-text: #a01d28;
  --c-dev-text: #92400e;
  --c-ana-text: #0b6b4a;
  --c-tips-text: #6d28d9;

  --c-eff-tint: #e8f1fc;
  --c-prop-tint: #fbeaec;
  --c-dev-tint: #fdf0dd;
  --c-ana-tint: #e4f4ed;
  --c-tips-tint: #f1eafd;

  --serif: "Hiragino Mincho ProN", "Yu Mincho", "BIZ UDPMincho", "Noto Serif JP", serif;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(28, 47, 61, .05), 0 6px 18px rgba(28, 47, 61, .07);
  --shadow-lg: 0 2px 4px rgba(28, 47, 61, .07), 0 14px 34px rgba(28, 47, 61, .12);
  --maxw: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI",
    Meiryo, "Noto Sans JP", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}

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

section[hidden] { display: none !important; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

section { padding: 76px 0; }

.section-head { text-align: center; margin-bottom: 44px; }

/* 公式サイト風: 緑グラデの丸ラベル */
.section-label {
  display: inline-block;
  background: linear-gradient(135deg, var(--i-green), var(--i-green-deep));
  color: #fff;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-indent: .28em;
  border-radius: 999px;
  padding: 6px 24px;
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 1.1rem + 1.7vw, 2.1rem);
  font-weight: 700;
  color: var(--ink-strong);
  line-height: 1.5;
  letter-spacing: .04em;
}

.section-lead {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: .98rem;
}

/* ---------------- ボタン ---------------- */

.btn {
  display: inline-block;
  border-radius: 999px;
  padding: 14px 34px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.btn:hover { transform: translateY(-2px); filter: brightness(1.04); }

/* 公式サイトのお問い合わせボタンと同系の黄→橙グラデ */
.btn-primary {
  background: linear-gradient(135deg, var(--i-yellow), var(--i-orange));
  color: #3a2506;
  box-shadow: 0 6px 18px rgba(247, 148, 29, .38);
}

.btn-outline {
  background: #fff;
  color: var(--i-blue-deep);
  border: 2px solid var(--i-blue);
}
.btn-outline:hover { background: #f2fafe; }

.btn-ghost-dark {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, .6);
}
.btn-ghost-dark:hover { border-color: #fff; }

/* ---------------- トップバー ---------------- */

.topbar { background: #fff; border-bottom: 1px solid var(--line); }

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
}

.brand { display: flex; align-items: baseline; gap: .7em; }

.brand-name {
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--ink-strong);
  letter-spacing: .05em;
}

.brand-sub { font-size: .78rem; color: var(--ink-3); font-weight: 600; }

.topbar-link {
  font-size: .85rem;
  font-weight: 700;
  color: var(--i-blue-deep);
  text-decoration: none;
  white-space: nowrap;
}
.topbar-link:hover { text-decoration: underline; }

/* ---------------- Hero (白ベース+カラフルな色玉) ---------------- */

.hero {
  position: relative;
  overflow: hidden;
  background: #fff;
  padding: 0 0 100px;
  text-align: center;
}

.hero-inner { position: relative; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  background: var(--bg-green);
  border: 1px solid #cfe6b6;
  color: var(--i-green-deep);
  border-radius: 999px;
  padding: 8px 20px;
  font-size: .92rem;
  font-weight: 700;
  margin-bottom: 26px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, .95rem + 2.6vw, 2.5rem);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: .03em;
  color: var(--ink-strong);
  max-width: 30em;
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-visual {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1672 / 941; /* 読み込み前から高さを確保 → スマホでスクロール位置が飛ぶバグの根治 */
  margin: 0 0 56px;
}

/* 横長PCでファーストビューが画面を占領しすぎないよう「幅」で上限をかける。
   高さで切る (object-fit: cover) と画像の下が切れてしまうため、幅を絞って
   結果的に高さが 80vh を超えないようにする。これなら絵は一切欠けない。
   1.7768 = 1672/941 (画像のアスペクト比)。スマホは従来どおり全幅。 */
@media (min-width: 1100px) {
  .hero-visual {
    max-width: min(1400px, calc(80vh * 1.7768));
    margin-left: auto;
    margin-right: auto;
  }
}

/* 蛍光マーカー風ハイライト */
.hero h1 .hl {
  background: linear-gradient(transparent 62%, var(--i-yellow) 62%);
  padding: 0 .06em;
}

.hero-sub {
  margin: 22px auto 0;
  font-size: clamp(1rem, .92rem + .5vw, 1.2rem);
  font-weight: 600;
  color: var(--ink-2);
  max-width: 30em;
}

.hero-byline { margin-top: 14px; font-size: .85rem; color: var(--ink-3); }

.hero-cta { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-video-link {
  display: inline-block;
  margin-top: 18px;
  font-size: .88rem;
  font-weight: 700;
  color: var(--i-blue-deep);
  text-decoration: none;
}
.hero-video-link:hover { text-decoration: underline; }

/* ---------------- セミナー告知帯 ---------------- */

.seminar-band {
  background: linear-gradient(135deg, var(--i-yellow), var(--i-orange));
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* 数秒おきに光が走る (視線誘導・派手すぎない程度) */
.seminar-band::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  left: -80px;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .55), transparent);
  animation: band-shine 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes band-shine {
  0%, 72% { left: -80px; }
  88%, 100% { left: 110%; }
}

@media (prefers-reduced-motion: reduce) {
  .seminar-band::after { animation: none; }
}

.seminar-band a {
  display: block;
  padding: 13px 10px;
  color: #3a2506;
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
}

.seminar-band a:hover { text-decoration: underline; }

/* 事例セクション末尾の「他にもある」注記 */
.cases-more {
  margin-top: 30px;
  text-align: center;
  font-size: .92rem;
  color: var(--ink-2);
  line-height: 2;
}

.cases-more a { color: var(--i-blue-deep); font-weight: 700; }

/* 塗装会社らしいペイントストライプ (分類5色) */
.paint-stripe {
  height: 6px;
  background: linear-gradient(90deg,
    var(--c-eff) 0 20%, var(--c-prop) 20% 40%, var(--c-dev) 40% 60%,
    var(--c-ana) 60% 80%, var(--c-tips) 80% 100%);
}

/* ---------------- 数字ハイライト ---------------- */

.stats { padding: 58px 0; background: var(--bg-alt); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--stat-color, var(--i-blue));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 18px 18px;
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease;
}

.stat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.stat-label { font-size: .85rem; font-weight: 600; color: var(--ink-2); }

.stat-value {
  margin-top: 6px;
  font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.6rem);
  font-weight: 800;
  color: var(--ink-strong);
  line-height: 1.2;
}

.stat-value .unit {
  font-size: .5em;
  font-weight: 700;
  margin-left: .1em;
  color: var(--ink-2);
}

.stat-note { margin-top: 4px; font-size: .78rem; color: var(--ink-3); }

/* ---------------- 漫画ギャラリー ---------------- */

.manga { background: var(--bg); }

.manga-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  max-width: 920px;
  margin: 0 auto;
}

.manga-item { margin: 0; }

.manga-title-banner {
  display: block;
  margin-bottom: 10px;
  padding: 13px 16px;
  background: linear-gradient(135deg, var(--dark) 0%, var(--i-blue-deep) 100%);
  color: #fff;
  text-align: center;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .02em;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.manga-item a.manga-frame {
  display: block;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}

.manga-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 760 / 1350; /* 読み込み前から高さを予約。
     これが無いと4枚で約2,500px分のレイアウトシフトが起き、
     スクロール位置の復元が動画セクションにずれ込む (2026-08-20 修正) */
  display: block;
  background: #fff;
}

.manga-item a.manga-frame:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* ---------------- 事例ギャラリー ---------------- */

.cases { background: var(--bg-alt); }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: .92rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.filter-btn .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dot, var(--ink-strong));
  flex: none;
}

.filter-btn:hover { border-color: var(--i-green-deep); }

.filter-btn[aria-pressed="true"] {
  background: var(--ink-strong);
  border-color: var(--ink-strong);
  color: #fff;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.case-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}

.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.case-card.is-hidden { display: none; }

/* 事例ビジュアル: 分類色グラデ + アイコン + 事例番号。
   実スクリーンショット (assets/img/caseNN.png) を置くと img が上に被さる */
.case-visual {
  position: relative;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.case-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  transition: transform .4s ease;
}

/* ホバーで写真がじわっと寄る (写真が入っているカードだけ効く) */
.case-card:hover .case-visual img { transform: scale(1.05); }

/* 番号バッジは画像の「下」に置く。上に置くと主人公の顔に重なるため (2026-08-20 修正)。
   下端は空や机など情報の少ない領域なので顔を邪魔しない。 */
.case-visual:has(img) .case-num {
  top: auto;
  bottom: 8px;
}

/* 下端をわずかに暗く落としてバッジの可読性を担保。
   :has(img) で「写真が入っているカードだけ」に限定 (グラデ+アイコンのカードは濁らせない) */
.case-visual:has(img)::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(to top, rgba(12, 22, 34, .38), transparent);
  z-index: 2;
  pointer-events: none;
}

.case-icon { font-size: 2.6rem; line-height: 1; z-index: 1; }

.case-num {
  position: absolute;
  top: 10px;
  left: 12px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  z-index: 3; /* 写真 (z-index:2) より前に出す。以前は 1 で画像に隠れていた */
  color: #fff;
  background: rgba(20, 32, 46, .62);
  backdrop-filter: blur(3px);
  border-radius: 999px;
  padding: 4px 11px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}

.cat-eff  .case-visual { background: linear-gradient(135deg, var(--c-eff),  var(--c-eff-2)); }
.cat-prop .case-visual { background: linear-gradient(135deg, var(--c-prop), var(--c-prop-2)); }
.cat-dev  .case-visual { background: linear-gradient(135deg, var(--c-dev),  var(--c-dev-2)); }
.cat-ana  .case-visual { background: linear-gradient(135deg, var(--c-ana),  var(--c-ana-2)); }
.cat-tips .case-visual { background: linear-gradient(135deg, var(--c-tips), var(--c-tips-2)); }

.case-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.case-badge {
  align-self: flex-start;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  border-radius: 999px;
  padding: 3px 12px;
}

.cat-eff  .case-badge { background: var(--c-eff-tint);  color: var(--c-eff-text); }
.cat-prop .case-badge { background: var(--c-prop-tint); color: var(--c-prop-text); }
.cat-dev  .case-badge { background: var(--c-dev-tint);  color: var(--c-dev-text); }
.cat-ana  .case-badge { background: var(--c-ana-tint);  color: var(--c-ana-text); }
.cat-tips .case-badge { background: var(--c-tips-tint); color: var(--c-tips-text); }

.case-title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
}

.case-metric {
  font-size: clamp(1.12rem, 1rem + .42vw, 1.4rem);
  font-weight: 800;
  color: var(--ink-strong);
  line-height: 1.35;
  margin-top: 2px;
  text-wrap: balance; /* 「手転記 → 数 / 分」のような不格好な折り返しを防ぐ */
}

.case-note {
  font-size: .84rem;
  color: var(--ink-2);
  margin-top: auto;
  padding-top: 4px;
}

/* ---------------- Before / After ---------------- */

.deep { background: var(--bg); }

.deep-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.deep-block + .deep-block { margin-top: 28px; }

.deep-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 18px;
}

.deep-num {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  color: #fff;
  background: var(--ink-strong);
  border-radius: 6px;
  padding: 3px 10px;
}

.deep-title { font-size: 1.15rem; font-weight: 800; color: var(--ink-strong); }

.ba-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: stretch;
}

.ba-col { border-radius: 12px; padding: 18px 20px; }

.ba-col h4 {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  margin-bottom: 8px;
}

.ba-before { background: #f1f3f5; border: 1px solid var(--line); }
.ba-before h4 { color: var(--ink-3); }
.ba-before p { color: var(--ink-2); font-size: .92rem; }

.ba-after { background: var(--bg-green); border: 1px solid #d5e8c0; }
.ba-after h4 { color: var(--i-green-deep); }
.ba-after p { font-size: .92rem; }

.ba-after .ba-metric {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink-strong);
  margin-bottom: 4px;
}

.ba-arrow {
  align-self: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--i-orange);
}

/* ---------------- 動画 (YouTube埋め込み / 縦型動画) ---------------- */

.video-sec { background: var(--bg-alt); }

.video-frame {
  max-width: 820px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--dark-2);
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.shorts-sec { background: var(--bg-alt); }

.shorts-wrap { display: flex; justify-content: center; }

.shorts-player {
  width: min(360px, 80vw);
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  background: #000;
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

/* ---------------- 作り方3ステップ ---------------- */

.howto { background: var(--bg); }

.steps {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 28px;
}

.step-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0 0 24px;
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease;
}

.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* カード間をつなぐ矢印: PCは横 (3列のとき)、スマホは縦 (1列のとき) */
@media (min-width: 901px) {
  .step-card:not(:last-child)::after {
    content: "→";
    position: absolute;
    top: 44%;
    right: -24px;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--i-blue);
    z-index: 3;
  }
}

@media (max-width: 900px) {
  .steps { gap: 34px; }
  .step-card:not(:last-child)::after {
    content: "↓";
    position: absolute;
    left: 50%;
    bottom: -31px;
    transform: translateX(-50%);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--i-blue);
    z-index: 3;
  }
}

/* ビジュアル枠: assets/img/step1〜3.png を置くと写真に、無ければグラデ+アイコン */
.step-visual {
  position: relative;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--i-blue), var(--i-blue-deep));
  margin-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden; /* 画像の角丸クリップはここで行う (.step-card だと連結矢印まで切れる) */
}

.step-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}

.step-visual .step-icon {
  font-size: 3rem;
  line-height: 1;
  z-index: 1;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .18));
  margin: 0;
}

/* 番号: ビジュアルの下辺に半分重なるバッジ */
.step-no {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--i-yellow), var(--i-orange));
  color: #3a2506;
  font-weight: 800;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -24px auto 12px;
  position: relative;
  z-index: 3;
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .16);
}

.step-card h3 { font-size: 1.1rem; font-weight: 800; color: var(--ink-strong); margin-bottom: 6px; padding: 0 20px; }
.step-card p { font-size: .88rem; color: var(--ink-2); padding: 0 20px; }

.howto-callout {
  margin: 32px auto 0;
  max-width: 640px;
  text-align: center;
  background: linear-gradient(135deg, var(--i-green), var(--i-green-deep));
  color: #fff;
  border-radius: var(--radius);
  padding: 22px 26px;
  font-size: clamp(1.05rem, 1rem + .5vw, 1.3rem);
  font-weight: 800;
  box-shadow: var(--shadow-lg);
}

.howto-callout .mic { margin-right: .4em; }

/* ---------------- よくある質問 ---------------- */

.faq { background: var(--bg-alt); }

.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }

.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 18px 20px;
  font-weight: 700;
  color: var(--ink-strong);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-q {
  flex: none;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--i-green), var(--i-green-deep));
  border-radius: 8px;
  width: 1.9em;
  height: 1.9em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  transform: translateY(.2em);
}

.faq-item summary::after {
  content: "+";
  margin-left: auto;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--i-green-deep);
  transition: transform .2s ease;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 0 20px 18px;
  color: var(--ink-2);
  font-size: .93rem;
}

.faq-a .faq-q {
  background: linear-gradient(135deg, var(--i-yellow), var(--i-orange));
  color: #3a2506;
}

/* ---------------- セミナー案内 ---------------- */

.seminar {
  background:
    radial-gradient(700px 360px at 90% -10%, rgba(125, 194, 66, .25), transparent 60%),
    radial-gradient(600px 320px at -5% 110%, rgba(42, 165, 218, .25), transparent 60%),
    linear-gradient(150deg, #1c3a4e 0%, var(--dark) 55%, var(--dark-2) 100%);
  color: #fff;
  text-align: center;
}

.seminar .section-title { color: #fff; }

.seminar .section-label {
  background: linear-gradient(135deg, var(--i-yellow), var(--i-orange));
  color: #3a2506;
}

.seminar-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 24px 0 8px;
}

.seminar-chip {
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  padding: 7px 18px;
  font-size: .92rem;
  font-weight: 700;
}

.seminar p.desc { max-width: 36em; margin: 14px auto 0; opacity: .92; font-size: .95rem; }

.seminar-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 820px;
  margin: 30px auto 0;
  text-align: left;
}

.seminar-card {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.seminar-card h3 {
  font-size: .95rem;
  font-weight: 800;
  color: var(--i-yellow);
  margin-bottom: 10px;
  letter-spacing: .05em;
}

.seminar-card ul { list-style: none; }

.seminar-card li {
  position: relative;
  padding-left: 1.5em;
  font-size: .92rem;
  opacity: .95;
}

.seminar-card li + li { margin-top: 8px; }

.seminar-card li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--i-green);
  font-weight: 800;
}

.seminar .btn { margin-top: 30px; }

.seminar-note { margin-top: 14px; font-size: .82rem; opacity: .75; }

/* スケジュール・会場 (セミナー案内内) */

.seminar-schedule, .seminar-venue {
  max-width: 640px;
  margin: 22px auto 0;
  padding: 22px 24px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius);
  text-align: left;
}

.seminar-schedule h3, .seminar-venue h3 {
  font-size: .95rem;
  font-weight: 800;
  color: var(--i-yellow);
  margin-bottom: 14px;
  letter-spacing: .05em;
}

.schedule-rows { display: flex; flex-direction: column; gap: 10px; }

.schedule-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 10px;
}

.schedule-num {
  flex-shrink: 0;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  background: var(--i-yellow);
  color: #3a2506;
  font-weight: 800;
  font-size: .82rem;
  border-radius: 50%;
}

.schedule-time {
  flex-shrink: 0;
  font-weight: 800;
  font-size: .95rem;
  color: #fff;
  min-width: 108px;
}

.schedule-label { font-size: .88rem; opacity: .9; }

.schedule-note { margin-top: 12px; font-size: .8rem; opacity: .8; line-height: 1.7; }

.venue-name { font-weight: 800; font-size: .95rem; margin-bottom: 6px; }

.venue-address { font-size: .85rem; opacity: .85; line-height: 1.7; margin-bottom: 14px; }

.venue-map {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
}

.venue-map iframe {
  display: block;
  width: 100%;
  height: 260px;
  border: 0;
  filter: grayscale(.15) contrast(1.05);
}

/* お申し込みフォーム (mizuno-plan.com の問い合わせフォームに合わせた白カード) */

.seminar-form-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 16px 44px rgba(6, 16, 26, .38);
  padding: 40px;
  max-width: 640px;
  margin: 34px auto 0;
  text-align: left;
}

.seminar-form-head {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink-strong);
  text-align: center;
  margin-bottom: 22px;
}

.seminar-form-fallback {
  margin-top: 18px;
  font-size: .82rem;
  color: var(--ink-2);
  text-align: center;
}

.seminar-form-fallback a { color: var(--i-blue-deep); font-weight: 700; }

/* 申込フォーム本体 */

.sf-group { margin-bottom: 18px; }

.sf-label {
  display: block;
  font-size: .85rem;
  font-weight: 700;
  color: var(--ink-strong);
  margin-bottom: 7px;
}

.sf-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  font-size: .68rem;
  font-weight: 700;
  border-radius: 999px;
  vertical-align: 1px;
}
.sf-badge.req { background: var(--i-orange-deep); color: #fff; }
.sf-badge.opt { background: var(--bg-alt); color: var(--ink-3); border: 1px solid var(--line); }

.sf-input, .sf-textarea {
  width: 100%;
  padding: 11px 14px;
  font: inherit;
  font-size: .92rem;
  color: var(--ink);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  transition: border-color .15s ease, background .15s ease;
}
.sf-input:focus, .sf-textarea:focus { border-color: var(--i-blue); background: #fff; }
.sf-textarea { resize: vertical; min-height: 80px; }

.sf-checks {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sf-check {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: .88rem;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.sf-check:hover { border-color: var(--i-blue); }
.sf-check input { width: 17px; height: 17px; accent-color: var(--i-blue-deep); flex-shrink: 0; }

.sf-submit {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 15px;
  font-size: 1rem;
  font-weight: 800;
  color: #3a2506;
  background: linear-gradient(135deg, var(--i-yellow), var(--i-orange));
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(247, 148, 29, .38);
  transition: transform .15s ease, filter .15s ease, opacity .15s ease;
}
.sf-submit:hover { transform: translateY(-2px); filter: brightness(1.04); }
.sf-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.seminar-form-success {
  display: none;
  text-align: center;
  padding: 12px 4px 4px;
}
.seminar-form-success.show { display: block; }
.seminar-form-success-icon {
  width: 52px; height: 52px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--i-green);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.seminar-form-success h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ink-strong);
  margin-bottom: 10px;
}
.seminar-form-success p { font-size: .88rem; color: var(--ink-2); }

/* ---------------- 会社概要 ---------------- */

.company { background: var(--bg); }

.company-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: start;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
}

.company-table th,
.company-table td {
  text-align: left;
  padding: 13px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.company-table th {
  width: 8.5em;
  color: var(--ink-2);
  font-weight: 600;
  white-space: nowrap;
}

.company-table a { color: var(--i-blue-deep); font-weight: 600; }

.contact-card {
  background: var(--bg-green);
  border: 1px solid #d5e8c0;
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
}

.contact-card h3 { color: var(--ink-strong); font-size: 1.05rem; margin-bottom: 8px; }
.contact-card p { font-size: .88rem; color: var(--ink-2); margin-bottom: 16px; }

.contact-tel {
  display: block;
  margin-top: 14px;
  font-size: .88rem;
  color: var(--ink-2);
}

.contact-tel a {
  color: var(--ink-strong);
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
}

/* ---------------- フッター ---------------- */

.footer {
  background: var(--dark-2);
  color: rgba(255, 255, 255, .85);
  text-align: center;
  padding: 30px 20px;
  font-size: .85rem;
}

.footer .built {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  font-weight: 700;
  color: #fff;
}

.footer .links { margin-top: 8px; }
.footer .links a { color: rgba(255, 255, 255, .8); }

.footer .copyright { margin-top: 8px; font-size: .78rem; opacity: .65; }

/* ---------------- スクロール出現 (JSなしでも表示される) ---------------- */

.reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .5s ease, transform .5s ease;
  }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

/* ---------------- レスポンシブ ---------------- */

@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .company-grid { grid-template-columns: 1fr; }
  .seminar-cols { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  section { padding: 54px 0; }
  .hero { padding: 0 0 64px; }
  .hero-visual { margin-bottom: 40px; }
  .manga-grid { grid-template-columns: 1fr; gap: 30px; }
  .deep-block { padding: 20px; }
  .ba-grid { grid-template-columns: 1fr; }
  .ba-arrow { transform: rotate(90deg); justify-self: center; }
  .case-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .case-icon { font-size: 2.1rem; }
  .brand { flex-direction: column; gap: 0; }
  .seminar-form-card { padding: 26px 18px; border-radius: 14px; }
}

@media (max-width: 430px) {
  .case-grid { grid-template-columns: 1fr; }
  .stats-grid { gap: 10px; }
}

/* ---------------- スマホ用 固定CTA ---------------- */

.sticky-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, .12);
  transition: transform .25s ease, opacity .25s ease;
}

.sticky-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  background: linear-gradient(135deg, var(--i-yellow), var(--i-orange));
  color: #3a2506;
  font-weight: 800;
  font-size: .95rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 13px 18px;
  box-shadow: 0 6px 18px rgba(247, 148, 29, .38);
}

.sticky-cta-sub {
  font-size: .8rem;
  font-weight: 700;
  opacity: .85;
}

.sticky-cta.is-hidden {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 720px) {
  .sticky-cta { display: block; }
  body { padding-bottom: 76px; } /* CTAでフッターが隠れないよう余白 */
}
