:root {
  --green: #00af4c;
  --orange: #f90;
  --ink: #333;
  --gray: #eff3f7;
  --pale: #f6f8f7;
  --line: #d9d9d9;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
/* width/height属性は縦横比の予約に使い、表示サイズはCSSで決めます。 */
img { display: block; max-width: 100%; height: auto; }
button { color: inherit; }
:focus-visible { outline: 3px solid #f90; outline-offset: 5px; }
[hidden] { display: none !important; }
.wrap { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.wide { width: min(1320px, calc(100% - 40px)); margin-inline: auto; }
.center { text-align: center; }
.green { color: var(--green); }
.orange { color: var(--orange); }
.small { font-size: 12px; line-height: 1.7; }
.section { padding: 140px 0; }
.section-title { margin-bottom: 50px; text-align: center; }
.section-title h2 { color: var(--green); font-size: 36px; font-weight: 800; }
/* 見出し上のリード文は、淡い緑で塗った四角い吹き出し。
   inline-block で文字幅に合わせて縮み、親の text-align:center で中央に載ります。 */
.section-title p {
  position: relative;
  display: inline-block;
  margin-bottom: 14px;
  padding: 10px 24px;
  background: #eaf8ee;
  font-weight: 700;
  font-style: italic;
}
/* 下向きのしっぽ。45度回した正方形の半分を下へはみ出させています。 */
.section-title p::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 14px;
  height: 14px;
  background: #eaf8ee;
  transform: translateX(-50%) rotate(45deg);
}
.section-title small { display: block; font: 900 12px/1.8 Arial, sans-serif; }
.lead { max-width: 760px; margin: 0 auto 50px; text-align: center; font-size: 18px; font-weight: 700; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: min(640px, 100%);
  min-height: 82px;
  padding: 18px 24px;
  border: 0;
  border-radius: 100px;
  background: var(--orange);
  box-shadow: 0 3px 0 #ff6a00;
  color: #fff;
  font-size: 27px;
  font-weight: 900;
  line-height: 1.5;
  text-align: center;
  transition: background .2s;
}
.btn:hover { background: #e68a00; }
.btn img { width: 36px; height: 36px; object-fit: contain; }
.motif { position: relative; width: 113px; height: 106px; margin: 0 auto 25px; }
.motif img { position: absolute; object-fit: contain; }
.motif .top { top: 0; left: 2px; width: 109px; height: 39px; transform: rotate(180deg); }
.motif .bottom { bottom: 0; left: 0; width: 113px; height: 59px; }

/* ヘッダー */
.site-header { background: #fff; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 80px;
}
.logo { display: block; width: 300px; flex-shrink: 0; }
.logo img { width: 300px; height: 45px; object-fit: contain; }
.header-actions { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.header-nav { display: flex; align-items: center; gap: 20px; font-size: 14px; font-weight: 700; }
/* ハンバーガーとLINEボタンはSP専用。 */
.nav-toggle, .header-line { display: none; }
.header-phone { text-align: right; flex-shrink: 0; }
.header-phone a { color: var(--orange); font: 700 35px/1.2 Arial, sans-serif; }
.header-phone small { display: block; font-size: 12px; }

/* メインビジュアル */
.sp-only { display: none; }
.hero { background: var(--pale); overflow: hidden; }
.hero-inner { position: relative; min-height: 677px; padding-top: 54px; padding-bottom: 25px; }
.hero-gallery {
  position: absolute;
  top: 0;
  bottom: 0;
  right: -40px;
  width: 48.2%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  overflow: hidden;
}

.gallery-column img { width: 100%; height: 198px; object-fit: cover; flex-shrink: 0; }
.hero-copy { position: relative; z-index: 1; width: 640px; max-width: 53%; }
.hero-catch {
  width: 930px;
  max-width: calc(100vw - 70px);
  margin: 0 0 26px;
  color: var(--green);
  font-size: 56px;
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: -.02em;
}
.hero-catch span {
  background: #fff;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: 0 5px;
}
.hero-intro { position: relative; min-height: 190px; margin: 0 0 30px; }
.hero-intro::before {
  content: "";
  position: absolute;
  top: 69px;
  bottom: 10px;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 8px;
}
.representative {
  position: absolute;
  left: 80px;
  top: 0;
  width: 148px;
  height: 183px;
  object-fit: cover;
}
.hero-book { position: absolute; left: 27px; top: 25px; width: 61px; height: 89px; object-fit: cover; }
.hero-ranking { position: absolute; z-index: 2; left: 5px; top: 112px; width: 105px; height: 84px; object-fit: contain; }
/* index-visual.html：Amazonバッジを外した版は、本を少し大きくして下げ、白いカードの中央に置きます。影で白地から浮かせます。 */
.hero-intro--no-ranking .hero-book { left: 15px; top: 55px; width: 76px; height: 112px; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .3)); }
/* 名前ラベルは人物の右下。left に人物写真の右端（left + width）を指定し、ラベル幅ぶん左へ戻して右端をそろえます。 */
.representative-name {
  position: absolute;
  z-index: 3;
  left: 228px;
  translate: -100% 0;
  bottom: -2px;
  padding: 1px 6px;
  background: var(--green);
  color: #fff;
  font-size: 12px;
}
.hero-intro h1 { position: relative; margin-left: 239px; padding-top: 78px; font-size: 20px; font-weight: inherit; line-height: 1.5; word-break: auto-phrase; }
/* 「サイト -」の途中で改行しない（行頭にハイフンだけ残らないように）。 */
.hero-intro h1 .nowrap { white-space: nowrap; }
.hero-description { margin-top: 20px; font-size: 12px; line-height: 1.6; }

/* 写真の連続スクロール：速度は --gallery-duration で変更 */
.hero-gallery { --gallery-gap: 13px; --gallery-duration: 32s; }
.gallery-column { height: 100%; min-width: 0; overflow: hidden; }
.gallery-track {
  display: flex;
  flex-direction: column;
  width: 100%;
  animation: gallery-scroll var(--gallery-duration) linear infinite;
  will-change: transform;
}
.gallery-set {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: var(--gallery-gap);
  padding-bottom: var(--gallery-gap);
}
.gallery-column:first-child .gallery-track { animation-direction: reverse; }
@keyframes gallery-scroll {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}
@keyframes gallery-scroll-horizontal {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* サービス紹介・3つの基準 */
/* 装飾（.motif）を外した分だけ、背景の切り替え位置も上へ詰めています。 */
.reason { padding-top: 66px; background: linear-gradient(#fff 132px, var(--gray) 132px); }
.reason-box { position: relative; z-index: 1; padding: 40px 24px; background: #fff; border-radius: 15px; text-align: center; }
.reason-box::after {
  content: "";
  position: absolute;
  top: calc(100% - 1px);
  left: 50%;
  transform: translateX(-50%);
  border-inline: 18px solid transparent;
  border-top: 20px solid #fff;
}
.reason-box h2 { font-size: 42px; color: var(--green); font-weight: 900; margin-bottom: 20px; }
.reason-box p { font-size: 18px; font-weight: 700; line-height: 1.8; }
.criteria { padding: 70px 0 140px; background: var(--gray); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { background: #fff; border-radius: 15px; overflow: hidden; box-shadow: 0 0 8px #0000000d; }
.card-photo { width: 100%; height: 200px; object-fit: cover; }
.card-tag { background: var(--green); color: #fff; padding: 6px; text-align: center; font-weight: 900; letter-spacing: .06em; }
.card-body { padding: 30px 20px; }
.card h3 { color: var(--green); font-size: 20px; font-weight: 900; text-align: center; margin-bottom: 20px; }
.card p { font-size: 16px; line-height: 1.6; }
.criteria-message { margin-top: 40px; padding: 10px; color: var(--green); background: white; border: 1px solid var(--green); font-size: 24px; font-weight: 700; text-align: center; }
/* 以下2つ（.criteria-link / .fee-summary）は index-visual.html でのみ使用。 */
.criteria-link { margin-top: 16px; text-align: center; font-size: 16px; font-weight: 700; }
.criteria-link a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }

/* お悩み一覧 */
.concerns { padding-top: 140px; }
.concern-body { background: var(--gray); margin-top: 80px; padding: 0 0 140px; }
.concern-grid { position: relative; top: -40px; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.concern-icon { width: 60px; height: 60px; margin: 0 auto 10px; border-radius: 50%; background: var(--green); display: grid; place-items: center; }
.concern-icon img { width: 32px; height: 35px; object-fit: contain; }
.concern-column:last-child .concern-icon { background: var(--orange); }
.concern-column h3 { margin-bottom: 15px; font-size: 24px; text-align: center; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 15px; }
.checklist li { display: flex; align-items: center; gap: 10px; padding: 10px; background: #fff; border-radius: 15px; font-weight: 700; }
.checkmark { width: 30px; height: 30px; padding: 5px; background: var(--pale); border-radius: 3px; flex-shrink: 0; }
.checkmark img { width: 100%; height: 100%; object-fit: contain; }
.concern-cta p { font-size: 20px; font-weight: 700; margin-bottom: 10px; }

/* 4つの探し方・写真背景 */
.comparison, .company {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.section-background {
  position: absolute;
  z-index: 0;
  inset: -24px;

  width: calc(100% + 48px);
  height: calc(100% + 48px);
  max-width: none;
  object-fit: cover;
  object-position: center;
  filter: blur(16px);
  pointer-events: none;
}
/* 背景は文字より後ろへ。比較写真は元デザインと同じ拡大率で配置。 */
.comparison > .wrap, .company > .wrap { position: relative; z-index: 1; }
/* 見出しが暗いスーツに重なって読みづらいため、写真を左へ送って
   明るい窓側を中央に置いています。object-position は、画面が細く
   なって左右がトリミングされる場合にも右（明るい側）を残す指定。 */
.comparison .section-background {
  inset: -2.5% auto auto -93%;
  width: 197%;
  height: 106%;
  object-position: 100% center;
}
.company .section-background { filter: grayscale(1) blur(8px); }
/* 写真の上に乗る見出しは、白いハローで背景から浮かせます。 */
.comparison .section-title h2 { text-shadow: 0 0 8px #fff, 0 0 16px #fff, 0 0 26px #fff; }
.table-panel {
  padding: 50px;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 0 15px #0000000d;
}
.table-scroll { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  line-height: 1.7;
  font-size: 14px;
}
th, td {
  border-bottom: 1px solid #d9d9d9;
  padding: 18px 12px;
  text-align: center;
}
thead th { font-weight: 800; }
tbody th { text-align: left; font-weight: 700; }
.table-panel .table-scroll { padding-top: 25px; }
.comparison-table {
  min-width: 1020px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 16px;
}
.comparison-table th,
.comparison-table td {
  border: 0;
  padding: 17px 8px;
  height: 64px;
  border-bottom: 2px solid #fff;
  border-right: 2px solid #fff;
}
.comparison-table thead th {
  position: relative;
  height: 73px;
  padding: 14px 8px;
  border-bottom: 0;
  border-right: 0;
  vertical-align: middle;
}
.comparison-table th:first-child { width: 24%; }
.comparison-table th:last-child { width: 21%; }
.comparison-table tbody th {
  background: #fafafa;
  font-size: 15px;
}
.comparison-table tbody th::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  margin-right: 10px;
  background: var(--green);
  vertical-align: -2px;
}
.comparison-table tbody tr:nth-child(1) td { background: #f6f8f7; }
.comparison-table tbody tr:nth-child(2) td { background: #f1f1f1; }
.comparison-table tbody tr:nth-child(3) td { background: #ededed; }
.comparison-table tbody tr:nth-child(4) td { background: #e6e6e6; }
.comparison-table tbody tr:nth-child(5) td { background: #dfdfdf; }
.comparison-table .recommended {
  color: var(--ink);
  font-weight: 700;
  border-left: 3px solid var(--green);
  border-right: 3px solid var(--green);
  font-size: 16px;
}
.comparison-table .recommended strong { color: var(--green); }
.comparison-table thead .recommended {
  border-top: 3px solid var(--green);
  background: #fff;
  color: var(--green);
  font-size: 18px;
}
.comparison-table tbody tr:nth-child(1) .recommended { background: #fdfffd; }
.comparison-table tbody tr:nth-child(2) .recommended { background: #f6fff6; }
.comparison-table tbody tr:nth-child(3) .recommended { background: #ebffeb; }
.comparison-table tbody tr:nth-child(4) .recommended { background: #e2ffe2; }
.comparison-table tbody tr:nth-child(5) .recommended {
  background: #d5ffd5;
  border-bottom: 3px solid var(--green);
}
.table-number {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font: 700 18px Arial, sans-serif;
}
.table-bow {
  display: block;
  width: 35px;
  height: 12px;
  object-fit: contain;
  margin: 5px auto 0;
}
.comparison-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}
.comparison-tip {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  padding: 9px 11px;
  border-radius: 50%;
  background: var(--green);
}
.comparison-tip img { width: 100%; height: 100%; object-fit: contain; }
.comparison-foot { text-align: left; font-size: 24px; font-weight: 700; }
.comparison-foot .green,
.comparison-foot .orange { text-decoration: underline; text-underline-offset: 4px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* 紹介の流れ */
/* HTMLは1〜6の順。PCは縦に流して左列1・2・3／右列4・5・6にします。 */
.service-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;
  gap: 20px 45px;
  margin-bottom: 50px;
}
.service-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--green);
  font-size: 18px;
  font-weight: 700;
}
/* 各列の最終行（3・6番目）の下には線を引きません。 */
.service-item:nth-child(3), .service-item:nth-child(6) { padding-bottom: 0; border-bottom: 0; }
.number { display: inline-grid; place-items: center; width: 40px; height: 40px; background: var(--green); color: #fff; border-radius: 50%; flex-shrink: 0; }
.flow-panel { background: var(--pale); border-radius: 30px; padding: 30px 25px 40px; }
.flow-panel h3 { text-align: center; font-size: 28px; margin-bottom: 30px; }
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.flow-item { background: #fff; border-radius: 50%; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--green); }
.flow-item small { font: 700 12px/1.5 Arial, sans-serif; background: #eaf8ee; padding: 2px 8px; border-radius: 5px; }
.flow-item h4 { margin: 5px 0 10px; font-size: 24px; }
.flow-item img { width: 82%; height: 112px; object-fit: contain; }

/* お問い合わせへの案内 */
.cta { padding: 30px 0 50px; background: var(--green); color: #fff; text-align: center; }
.cta .motif { transform: scale(.85); margin-bottom: 5px; }
.cta h2 { font-size: 36px; }
.cta-caption { font: 900 12px/1.8 Arial, sans-serif; margin-top: 5px; }
.cta-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; max-width: 1042px; margin: 25px auto 0; }
.cta-actions .btn { width: 100%; }
.cta-actions small { display: block; margin-top: 20px; font-weight: 800; font-size: 18px; }

/* ご利用者様のお声・よくあるご質問 */
.voices { background: var(--gray); }
.accordion-panel { display: flow-root; }
.voice { transition: background-color .25s, color .25s; margin-bottom: 20px; overflow: hidden; background: var(--green); color: #fff; border-radius: 15px; }
.voice[open] { background: #fff; color: var(--ink); }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
.voice summary { display: flex; align-items: center; gap: 25px; min-height: 150px; padding: 25px 30px; }
.voice summary > .image-fallback > img { width: 100px; height: 100px; object-fit: cover; border-radius: 50%; flex-shrink: 0; }
.voice summary strong { display: block; font-size: 26px; }
.voice-meta { font-size: 16px; }
.voice summary::after { content: "+"; margin-left: auto; font-size: 48px; font-weight: 300; flex-shrink: 0; }
.voice[open] summary::after { content: "−"; color: var(--green); }
.voice-body { border-top: 1px solid #d9d9d9; padding: 30px; font-size: 16px; line-height: 1.6; }
.voice-body h3 { font-size: 18px; color: var(--green); margin-bottom: 5px; }
.voice-body p + h3 { margin-top: 20px; }
/* 5件目以降を開くボタン。script.js が hidden を外して表示します。 */
.voice-more-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(400px, 100%);
  min-height: 60px;
  margin: 10px auto 0;
  padding: 12px 24px;
  border: 2px solid var(--green);
  border-radius: 100px;
  background: #fff;
  color: var(--green);
  font-size: 18px;
  font-weight: 700;
  transition: background .2s, color .2s;
}
.voice-more-button:hover { background: var(--green); color: #fff; }
.faq { max-width: 800px; margin-inline: auto; }
.faq details { border-bottom: 1px solid #dbdbdb; }
.faq summary { display: flex; align-items: center; gap: 10px; min-height: 79px; padding: 16px 0; font-weight: 700; font-size: 18px; }
/* 設問はh3（指示書§2-4）。見た目はsummaryの文字設定をそのまま使います。 */
.faq-question { margin: 0; font: inherit; }
.faq summary::before { content: "Q"; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: #fff; flex-shrink: 0; }
.faq summary::after { content: "+"; color: var(--green); margin-left: auto; font-size: 26px; }
.faq details[open] summary::after { content: "−"; }
.faq-answer { padding: 5px 15px 25px 50px; color: var(--ink); font-size: 18px; }
/* 顧問料の相場表（お断りセクション内）への案内リンク。 */
.faq-answer a { color: var(--green); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* 運営会社・メディア掲載 */
.company { background: var(--gray); padding-bottom: 95px; }
.company-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 45px; align-items: start; }
.company-dl { display: grid; grid-template-columns: 88px 1fr; margin: 0; font-size: 14px; line-height: 1.8; }
.company-dl dt { padding: 15px; background: var(--green); color: white; font-weight: 700; border-bottom: 1px solid #ffffff88; }
.company-dl dd { margin: 0; padding: 10px 20px; background: white; border-bottom: 1px solid #d9d9d9; }
.books h3 { margin-bottom: 20px; font-size: 20px; color: var(--green); text-align: center; }
.book-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.book-grid figure { margin: 0; text-align: center; }
.book-grid img { position: relative; z-index: 1; width: 150px; height: 225px; margin: auto; object-fit: contain; }
.book-grid figcaption { position: relative; margin-top: -55px; padding: 40px 20px 20px; background: #fff; font-size: 14px; }
.book-ranking { display: block; padding: 2px 5px; margin-bottom: 10px; background: var(--green); color: #fff; font-size: 16px; font-weight: 700; }
.book-grid figcaption p { text-align: left; line-height: 1.8; }
.media { margin-top: 60px; padding: 20px 30px; border-radius: 15px; background: white; text-align: center; }
.media h3 { color: var(--green); font-size: 24px; }
.media-logos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 10px; }
.media-logos img { width: 100%; height: 90px; object-fit: contain; }

/* お断りするケース */
.notice-section { padding: 60px 0 100px; background: #ccc; }
.notice { border: 3px solid #333; border-radius: 15px; background: white; padding: 50px; text-align: center; }
.warning-icon { width: 96px; height: 85px; object-fit: contain; margin: 0 auto 20px; }
.notice h2 { display: inline-block; padding: 10px; background: #000; color: white; font-size: 34px; margin-bottom: 15px; }
.notice-item { padding: 25px 0; border-bottom: 1px solid #bbb; }
.notice-item h3 { font-size: 24px; font-weight: 900; margin-bottom: 10px; }
.notice-heading-icon {
  display: inline-block;
  width: 30px;
  height: 30px;
  margin-right: 10px;
  vertical-align: -.2em;
  object-fit: contain;
}
.notice-item h3 span { color: #dd1f2e; }
.fee-heading { margin-top: 40px; font-size: 16px; font-weight: 700; color: var(--ink); }
.fee-note { margin-top: 12px; font-size: 13px; line-height: 1.7; }
.fee-summary { margin-top: 8px; font-size: 15px; font-weight: 700; line-height: 1.7; }
.price-table { min-width: 570px; margin-top: 15px; }
.price-table th, .price-table td { padding: 10px; border: 1px solid #ccc; }
/* caption を入れると見出し行の下に1pxの隙間が出るため、行グループとして並べます（見た目は従来どおり）。 */
.price-table thead { display: table-row-group; background: #f6f8f7; }
.price-table tbody tr:nth-child(odd) { background: #f6f8f7; }

/* LINE・メールフォーム */
.contact-section { padding: 65px 0 90px; background: var(--green); }
.contact-panel { padding: 50px 45px 70px; border-radius: 15px; background: white; }
.contact-panel .section-title h2 { font-size: 32px; }
.results { text-align: center; font-size: 20px; }
.results strong { color: var(--orange); }
/* 件数・日付は本番でDBから取得する旨の注記。 */
.results-note { margin-top: 4px; color: #777; font-size: 12px; text-align: center; }
.team-photo { width: min(900px, 100%); height: auto; aspect-ratio: 900 / 288; object-fit: cover; margin: 15px auto 20px; }
.contact-lead { text-align: center; color: var(--green); font-size: 25px; font-weight: 700; margin-bottom: 35px; }
.line-box { background: #e7f8f0; padding-bottom: 30px; text-align: center; border-radius: 10px; overflow: hidden; }
.line-box > h3 { background: var(--green); color: white; padding: 15px; font-size: 27px; }
.line-flow { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 4px; padding: 40px 30px 20px; }
.line-step small { display: inline-block; padding: 2px 7px; border: 2px solid var(--green); font: 900 12px/1.2 Arial, sans-serif; color: var(--green); }
.line-step h4 { margin: 4px 0 10px; min-height: 36px; display: grid; place-items: center; font-size: clamp(18px, 1.7vw, 24px); color: var(--green); }
.line-step img { width: 110px; height: 115px; object-fit: contain; margin: auto; }
.line-illustration {
  position: relative;
  display: grid;
  place-items: center;
  height: 167px;
  background: #fff;
}
/* STEP間の進行方向を示す三角形。 */
.line-step:not(:last-child) .line-illustration::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 50%;
  right: -13px;
  transform: translateY(-50%);
  border-block: 12px solid transparent;
  border-left: 20px solid var(--green);
}
.line-illustration img { max-width: calc(100% - 25px); }
.line-button { width: min(570px, calc(100% - 30px)); border: 2px solid #06c755; background: #fff; color: #06a848; box-shadow: none; font-size: 20px; }
/* .btn の橙ホバーを打ち消します。 */
.line-button:hover { background: #fff; }
.mail-heading { margin-top: 70px; }
.form-intro { font-size: 14px; margin-bottom: 40px; }
.form-intro p + p { margin-top: 5px; }
#contact-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.form-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; margin-bottom: 30px; }
.form-label { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 10px; font-weight: 700; padding-top: 10px; }
.badge { display: inline-block; font-size: 12px; line-height: 22px; height: 22px; background: #808080; color: white; padding: 0 8px; border-radius: 3px; font-weight: 500; }
.badge.required { background: var(--orange); }
input:not([type="radio"]):not([type="checkbox"]), select, textarea {
  width: 100%;
  max-width: 600px;
  min-height: 48px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
}
input[type="radio"], input[type="checkbox"] { width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--green); }
textarea { min-height: 142px; resize: vertical; max-width: none; }
.options { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 8px; }
.options.vertical { flex-direction: column; align-items: flex-start; }
.options label { display: inline-flex; align-items: center; gap: 7px; }
.form-row select { width: min(300px,100%); }
.form-actions { text-align: center; margin-top: 55px; }
.form-status { margin-top: 15px; color: var(--green); text-align: center; }

/* フッター */
.footer { padding-top: 30px; }
.footer-main { display: flex; justify-content: space-between; gap: 35px; padding-bottom: 40px; }
.footer-logo img { width: 343px; height: 51px; object-fit: contain; }
.footer-phone { color: var(--orange); font: 700 32px/1.5 Arial, sans-serif; }
.footer-nav { display: flex; flex-wrap: wrap; align-content: start; gap: 14px 30px; max-width: 600px; }
.footer-nav a { font-size: 14px; }
.copyright { padding: 18px 20px; background: var(--pale); text-align: center; font-size: 12px; }

@media (min-width: 701px) and (max-width: 1399px) {
  .hero-gallery { right: -20px; }
}

/* ナビ項目数が多いため、狭い画面では文字と間隔を詰めて1行に収めます。 */
@media (max-width: 1250px) {
  .header-nav { gap: 12px; font-size: 13px; }
}

/* タブレット */
@media (max-width: 1150px) {
  .gallery-track { width: max-content; flex-direction: row; animation-name: gallery-scroll-horizontal; }
  .gallery-set { flex-direction: row; padding-bottom: 0; padding-right: var(--gallery-gap); }
  .header-nav { display: none; }
  .hero-gallery { right: -20px; }
  .hero-catch { font-size: clamp(35px, 4vw, 52px); width: 900px; }
  .hero-copy { max-width: 58%; }
  .hero-intro h1 { margin-left: 190px; font-size: 17px; }
  .representative { left: 40px; }
  .hero-book { left: 0; width: 50px; height: 76px; }
  .hero-ranking { left: -15px; top: 99px; width: 90px; height: 72px; }
  .representative-name { left: 188px; }
  .btn { font-size: 22px; }
  .reason-box h2 { font-size: 34px; }
  .reason-box p { font-size: 16px; }
  .concern-column h3 { font-size: 19px; }
  .checklist li { font-size: 14px; }
  .flow-item h4 { font-size: 20px; }
  .flow-item img { height: 85px; }
  .cta h2 { font-size: 28px; }
  .voice summary strong { font-size: 22px; }
  .company-grid { grid-template-columns: 1fr; }
  .books { max-width: 600px; margin: auto; }
}

/* タブレットのFV：本文と写真を上下に分けて読みやすさを確保。 */
@media (min-width: 701px) and (max-width: 1150px) {
  .header-inner { min-height: 80px; }
  .logo, .logo img { width: 260px; }
  .header-phone a { font-size: 30px; }
  .hero-inner { display: flex; flex-direction: column; min-height: 0; padding: 36px 0 0; }
  .hero-copy { width: 100%; max-width: 760px; margin-inline: auto; }
  .hero-catch { width: 100%; max-width: none; font-size: clamp(32px, 3.6vw, 42px); margin-bottom: 24px; }
  .hero-intro { min-height: 200px; margin-bottom: 24px; }
  .representative { left: 80px; }
  .hero-book { left: 27px; width: 61px; height: 89px; }
  .hero-ranking { left: 5px; top: 112px; width: 105px; height: 84px; }
  .representative-name { left: 228px; }
  .hero-intro h1 { margin-left: 250px; padding-top: 85px; padding-right: 20px; font-size: 20px; }
  .hero-copy > .btn { display: flex; width: 100%; min-height: 74px; font-size: 24px; }
  .hero-description { font-size: 14px; line-height: 1.7; }
  .hero-gallery { --gallery-gap: 8px; --gallery-duration: 25s; position: relative; inset: auto; width: 100%; height: 320px; margin-top: 32px; grid-template-columns: 1fr; grid-template-rows: repeat(2, 156px); gap: 8px; }
  .gallery-column img { width: 31vw; height: 156px; }
}

/* スマートフォン */
@media (max-width: 700px) {
  .wrap, .wide { width: calc(100% - 32px); }
  .section { padding: 65px 0; }
  .section-title { margin-bottom: 30px; }
  .section-title h2 { font-size: 25px; }
  .section-title p { font-size: 12px; line-height: 1.5; }
  .lead { font-size: 16px; margin-bottom: 35px; }
  .btn { min-height: 60px; font-size: 18px; padding: 15px 18px; gap: 10px; }
  .btn img { width: 25px; height: 25px; }
  /* Figma「SP」（幅440px）のFV。700px以下だけに適用します。 */
  /* SPヘッダーは2段。1段目=ロゴ＋ハンバーガー、2段目=電話番号＋LINEボタン。
     .header-actions を display:contents にして、中の nav / 電話番号も
     .header-inner のグリッドに直接並べています。 */
  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 12px;
    row-gap: 8px;
    min-height: 0;
    padding: 10px 0;
  }
  .header-actions { display: contents; }
  .logo { grid-row: 1; grid-column: 1; }
  /* 列幅はLINEボタン側で決まるので、右端に寄せます。 */
  .nav-toggle { grid-row: 1; grid-column: 2; justify-self: end; }
  .header-phone { grid-row: 2; grid-column: 1; text-align: left; }
  .header-line { grid-row: 2; grid-column: 2; }
  .logo, .logo img { width: min(180px, 41vw); }
  .logo img { height: 30px; }
  .header-phone a { font-size: clamp(16px, 5vw, 22px); }
  .header-phone small { font-size: 9px; line-height: 1.4; }

  .nav-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: none;
  }
  .nav-toggle-bars,
  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    display: block;
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
    transition: transform .2s, top .2s, background-color .2s;
  }
  .nav-toggle-bars { position: relative; }
  .nav-toggle-bars::before,
  .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -7px; }
  .nav-toggle-bars::after { top: 7px; }
  /* 開いている間は×印に。 */
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

  .header-line {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    padding: 6px 14px;
    border: 1px solid #06c755;
    border-radius: 6px;
    background: #06a848;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
  }
  .header-line img { width: 18px; height: 18px; object-fit: contain; }

  /* 開いたときだけ3段目に全幅で差し込みます。 */
  .site-header.nav-open .header-nav {
    display: grid;
    grid-row: 3;
    grid-column: 1 / -1;
    gap: 0;
    margin-top: 2px;
    border-top: 1px solid var(--line);
    font-size: 15px;
  }
  .site-header.nav-open .header-nav a { padding: 13px 2px; border-bottom: 1px solid var(--line); }
  .hero { background: var(--gray); }
  .hero-inner { width: 100%; display: flex; flex-direction: column; min-height: 0; padding: 34px 0 0; }
  .hero-copy { width: calc(100% - 48px); max-width: none; margin-inline: auto; }
  .hero-catch { width: 100%; max-width: none; font-size: clamp(25px, 8.64vw, 38px); line-height: 1.38; margin-bottom: 32px; letter-spacing: -.025em; }
  .sp-only { display: initial; }
  /* SPの人物・書籍・Amazonマークは一回り小さくして左へ寄せ、その分キャッチの幅を広げています。
     人物は白い枠の左へ少しはみ出させています。 */
  .hero-intro { min-height: min(172px, 39vw); margin-bottom: 28px; }
  .hero-intro::before { top: min(30px, 6.8vw); bottom: 0; }
  .representative { left: max(-10px, -2.3vw); top: min(15px, 3.4vw); width: min(128px, 29vw); height: min(157px, 35.7vw); }
  .hero-book { z-index: 1; left: min(104px, 23.6vw); top: min(15px, 3.4vw); width: min(66px, 15vw); height: min(97px, 22vw); object-fit: contain; }
  .hero-ranking { left: min(95px, 21.6vw); top: min(106px, 24.1vw); width: min(85px, 19.3vw); height: min(68px, 15.5vw); }
  /* SPの名前ラベルは人物の左下（人物の下端より少し下）。 */
  .representative-name { z-index: 2; left: 0; translate: none; top: min(156px, 35.5vw); bottom: auto; font-size: clamp(8px, 2.3vw, 10px); }
  /* キャッチは書籍・Amazonマークの右端から20px離します。 */
  .hero-intro h1 { margin-left: calc(min(180px, 40.9vw) + 20px); padding: min(50px, 11.4vw) 8px 12px 0; font-size: clamp(11px, 3.64vw, 16px); line-height: 1.6; }
  /* index-visual.html：SPもPCと同じく左に本、右に人物。本は人物の後ろに置きます。 */
  .hero-intro--no-ranking .hero-book { z-index: auto; left: min(2px, .5vw); top: min(40px, 9.1vw); width: min(66px, 15vw); height: min(97px, 22vw); }
  .hero-intro--no-ranking .representative { left: min(58px, 13.2vw); }
  .hero-intro--no-ranking .representative-name { left: min(58px, 13.2vw); }
  .hero-intro--no-ranking h1 { margin-left: calc(min(186px, 42.3vw) + 20px); }
  .hero-copy > .btn { width: 100%; min-height: 74px; padding-inline: 10px; font-size: clamp(14px, 4.1vw, 18px); }
  .hero-description { margin-top: 24px; font-size: 12px; line-height: 1.6; }
  /* SPでは写真を2段の横スクロールに切り替えます。 */
  .hero-gallery { --gallery-gap: 6px; --gallery-duration: 25s; position: relative; inset: auto; width: 100%; height: 186px; margin-top: 28px; grid-template-columns: 1fr; grid-template-rows: repeat(2, 90px); gap: 6px; }
  .gallery-column img { width: clamp(136px, 31vw, 217px); height: 90px; }

  .reason { padding-top: 40px; background: linear-gradient(#fff 54px, var(--gray) 54px); }
  .motif { transform: scale(.8); margin-bottom: 10px; }
  .cta .motif { transform: scale(.68); }
  .reason-box { padding: 28px 18px; }
  .reason-box h2 { font-size: 27px; }
  .reason-box p { text-align: left; font-size: 15px; }
  .criteria { padding: 50px 0 65px; }
  .cards { grid-template-columns: 1fr; gap: 25px; }
  .card-photo { height: auto; aspect-ratio: 1.8; }
  .card-body { padding: 25px 22px; }
  .criteria-message { margin-top: 25px; font-size: 18px; padding: 14px; }
  .concerns { padding-top: 65px; }
  .concern-body { margin-top: 65px; padding-bottom: 60px; }
  .concern-grid { grid-template-columns: 1fr; gap: 35px; }
  .concern-column h3 { font-size: 20px; }
  .checklist { gap: 10px; }
  .checklist li { font-size: 15px; }
  .concern-cta p { font-size: 16px; }
  .table-panel { padding: 20px 12px; }
  .comparison-foot { font-size: 18px; }
  .comparison-footer { gap: 12px; align-items: flex-start; }
  .comparison-tip { width: 40px; height: 40px; padding: 7px 9px; }
  /* SPは1カラム。上から1〜6の順に読めるよう行方向に戻します。 */
  .service-list { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; gap: 18px; }
  .service-item { font-size: 16px; }
  /* 1列なので3番目は途中。線を引き直し、最後の6番目だけ外します。 */
  .service-item:nth-child(3) { padding-bottom: 18px; border-bottom: 2px solid var(--green); }
  .number { width: 32px; height: 32px; }
  .flow-panel { padding: 25px 15px; border-radius: 20px; }
  .flow-panel h3 { font-size: 21px; }
  .flow { grid-template-columns: 1fr 1fr; gap: 12px; }
  .flow-item { border-radius: 20px; padding: 15px 5px; aspect-ratio: auto; }
  .flow-item h4 { font-size: 18px; }
  .flow-item img { height: 90px; }
  .cta { padding-bottom: 35px; }
  .cta h2 { font-size: 23px; }
  .cta-actions { grid-template-columns: 1fr; gap: 20px; }
  .cta-actions small { font-size: 14px; margin-top: 10px; }
  .voice summary { min-height: 100px; padding: 18px; gap: 12px; }
  .voice summary > .image-fallback > img { width: 55px; height: 55px; }
  .voice summary strong { font-size: 17px; }
  .voice-meta { font-size: 12px; }
  .voice summary::after { font-size: 28px; }
  .voice-body { padding: 22px 18px; font-size: 15px; }
  .voice-more-button { min-height: 52px; font-size: 16px; }
  .faq summary { font-size: 16px; }
  .faq summary::before { width: 30px; height: 30px; }
  .faq-answer { padding-left: 40px; font-size: 16px; }
  .company-dl { grid-template-columns: 75px 1fr; font-size: 13px; }
  .company-dl dt { padding: 12px; }
  .company-dl dd { padding: 12px; }
  .book-grid img { width: 130px; height: 190px; }
  .book-grid figcaption { padding: 35px 10px 15px; }
  .book-ranking { font-size: 13px; }
  .media { padding: 20px 15px; margin-top: 35px; }
  .media-logos { grid-template-columns: repeat(2, 1fr); }
  .media-logos img { height: 65px; }
  .media-logos > .image-fallback:last-child > img { grid-column: 1 / -1; width: 50%; justify-self: center; }
  .notice-section { padding: 35px 0; }
  .notice { padding: 25px 15px; border-width: 2px; }
  .warning-icon { width: 68px; height: 61px; }
  .notice h2 { font-size: 22px; }
  .notice-item h3 { font-size: 19px; }
  .notice-heading-icon { width: 24px; height: 24px; margin-right: 7px; }
  .notice-item p { font-size: 14px; }
  .contact-section { padding: 35px 0; }
  .contact-panel { padding: 30px 18px 40px; }
  .contact-panel .section-title h2 { font-size: 24px; }
  .results { font-size: 16px; }
  .contact-lead { font-size: 18px; }
  .line-box > h3 { font-size: 20px; }
  .line-flow { grid-template-columns: repeat(2, 1fr); gap: 25px 10px; padding: 25px 10px; }
  .line-step h4 { font-size: 17px; min-height: 51px; }
  .line-illustration { height: 145px; }
  .line-step:nth-child(2) .line-illustration::after { display: none; }
  .line-step:not(:last-child) .line-illustration::after { right: -14px; border-block-width: 9px; border-left-width: 15px; }
  .line-step img { width: 90px; height: 95px; }
  .line-button { font-size: 17px; }
  .mail-heading { margin-top: 50px; }
  .form-row { grid-template-columns: 1fr; gap: 10px; margin-bottom: 25px; }
  .form-label { padding-top: 0; }
  .form-intro { font-size: 13px; }
  .options { gap: 10px 15px; font-size: 14px; }
  .form-actions { margin-top: 35px; }
  .footer-main { flex-direction: column; }
  .footer-logo img { width: 280px; height: 42px; }
  .footer-nav { gap: 15px 25px; }
}


/* SPの下部追従CTA。実際の高さは script.js で本文の余白に反映。 */
.mobile-contact { display: none; }
@media (max-width: 700px) {
  :root { --mobile-contact-height: calc(136px + env(safe-area-inset-bottom, 0px)); }
  html { scroll-padding-bottom: calc(var(--mobile-contact-height) + 20px); }
  body { padding-bottom: var(--mobile-contact-height); }
  .hero-copy > .btn { display: none; }
  .mobile-contact {
    display: block;
    position: fixed;
    z-index: 100;
    inset: auto 0 0;
    padding: 12px max(12px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
    background: #fff;
    box-shadow: 0 -3px 16px #00000014;
    /* 初期は画面外。FVを過ぎたら script.js が .is-visible を付けます。 */
    transform: translateY(110%);
    opacity: 0;
    pointer-events: none;
    transition: transform .3s ease, opacity .3s ease;
  }
  .mobile-contact.is-visible { transform: none; opacity: 1; pointer-events: auto; }
  .mobile-contact-inner { max-width: 520px; margin-inline: auto; }
  .mobile-contact-options { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin-bottom: 8px; }
  .mobile-contact-options a { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px 4px; border-radius: 8px; font-size: 14px; font-weight: 700; line-height: 1.5; text-align: center; }
  .mobile-contact-phone { border: 0; color: #fff; background: #9e3e46; }
  .mobile-contact-line { border: 1px solid #06c755; color: #fff; background: #06a848; }
  .mobile-contact .mobile-contact-main { width: 100%; min-height: 56px; padding: 12px 8px; border-radius: 8px; font-size: 18px; box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .voice, .voice-more-button, .mobile-contact { transition: none; }
  .gallery-track { animation: none; transform: none; }
}

/* WebP / PNG・JPEG切替用のpictureは既存画像の配置を変えない。 */
picture.image-fallback { display: contents; }

picture.image-fallback > source { display: none; }
