/* ==========================================================================
   サービス一覧 / サービス詳細
   column-pages.css の後に読み込む。既存の .section .section-title
   .ruled-heading .button .media .faq .note は再利用し、再定義しない。
   ========================================================================== */

/* --------------------------------------------------------------------------
   共通
   -------------------------------------------------------------------------- */

.subpage .service-lead {
  max-width: 720px;
  margin: 0 auto 26px;
  color: var(--green);
  font-size: 15px;
  line-height: 1.8;
  text-align: center;
}

/* --------------------------------------------------------------------------
   サービス詳細：ヒーロー
   H1は .page-hero が持つため、ここは h2（キャッチコピー）。
   -------------------------------------------------------------------------- */

.subpage .service-hero {
  padding: 8px 15px 0;
}

.subpage .service-hero__inner {
  max-width: 900px;
  margin: 0 auto;
}

.subpage .service-hero__media {
  width: 100%;
  margin-bottom: 22px;
  aspect-ratio: 16/9;
  border-radius: 5px;
}

.subpage .service-hero__catch {
  margin: 0 0 14px;
  color: var(--green);
  font: 700 20px/1.5 var(--serif);
  letter-spacing: .03em;
}

.subpage .service-hero__lead {
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.9;
}

.subpage .service-hero__actions {
  display: grid;
  gap: 12px;
}

.subpage .service-hero__button {
  width: 100%;
  min-height: 48px;
  font-size: 14px;
}

.subpage .service-hero__note {
  margin: 14px 0 0;
  color: #666;
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}

/* --------------------------------------------------------------------------
   サービス詳細：目次
   -------------------------------------------------------------------------- */

.subpage .service-toc {
  max-width: 720px;
  margin: 32px auto 0;
  padding: 0 15px;
}

.subpage .service-toc__panel {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
}

.subpage .service-toc__summary {
  min-height: 52px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 48px;
  color: var(--green);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

.subpage .service-toc__summary::-webkit-details-marker {
  display: none;
}

.subpage .service-toc__marker {
  width: 20px;
  height: 20px;
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
}

.subpage .service-toc__marker::before,
.subpage .service-toc__marker::after {
  content: "";
  width: 19px;
  height: 2px;
  position: absolute;
  left: 1px;
  top: 9px;
  background: var(--gold-dark);
}

.subpage .service-toc__marker::after {
  transform: rotate(90deg);
  transition: .2s;
}

.subpage .service-toc__panel[open] .service-toc__marker::after {
  transform: rotate(0);
}

.subpage .service-toc__list {
  margin: 0;
  padding: 0 16px 14px;
  list-style: none;
}

.subpage .service-toc__item {
  border-top: 1px dashed var(--line);
}

.subpage .service-toc__link {
  min-height: 44px;
  position: relative;
  display: flex;
  align-items: center;
  padding: 6px 0 6px 16px;
  font-size: 15px;
  line-height: 1.6;
}

.subpage .service-toc__link::before {
  content: "";
  width: 5px;
  height: 5px;
  position: absolute;
  left: 0;
  top: 50%;
  margin-top: -2px;
  border-radius: 50%;
  background: var(--gold);
}

.subpage .service-toc__link:hover,
.subpage .service-toc__link:focus-visible {
  color: var(--green);
}

/* --------------------------------------------------------------------------
   サービス詳細：こんなお悩みはありませんか
   -------------------------------------------------------------------------- */

.subpage .service-worries {
  position: relative;
  padding-bottom: 0;
  background: linear-gradient(to bottom, #fff 0%, #fff 18%, var(--pale) 82%);
  overflow: hidden;
}

.subpage .service-worries__title {
  margin: 0 0 14px;
  color: var(--ink);
  font: 700 clamp(20px, 5.867vw, 24px)/1.55 var(--serif);
  text-align: center;
}

.subpage .service-worries__keyword {
  color: var(--gold);
  font-style: normal;
}

.subpage .service-worries__rule {
  width: 24px;
  height: 1px;
  margin: 0 auto 32px;
  background: var(--gold);
}

.subpage .service-worries__list {
  max-width: 560px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
}

.subpage .service-worries__item {
  display: flex;
}

.subpage .service-worries__item:nth-child(odd) {
  justify-content: flex-start;
}

.subpage .service-worries__item:nth-child(even) {
  justify-content: flex-end;
}

.subpage .service-worries__pill {
  max-width: 88%;
  padding: 14px 22px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.7;
  text-align: left;
}

.subpage .service-worries__media {
  width: 100%;
  max-width: 420px;
  height: 220px;
  margin: 40px auto 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 20%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 20%);
}

/* --------------------------------------------------------------------------
   サービス詳細：確認できること／お受けできないこと
   -------------------------------------------------------------------------- */

.subpage .service-scope__cols {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.subpage .service-scope__block {
  min-width: 0;
  padding: 18px 16px;
  border-radius: 5px;
  background: #fff;
}

.subpage .service-scope__block--can {
  border: 2px solid var(--green);
}

.subpage .service-scope__block--cannot {
  border: 2px solid #c9c9c9;
}

.subpage .service-scope__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 700;
}

.subpage .service-scope__block--can .service-scope__title {
  color: var(--green);
}

.subpage .service-scope__block--cannot .service-scope__title {
  color: #666;
}

.subpage .service-scope__icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  display: block;
}

.subpage .service-scope__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.subpage .service-scope__item {
  position: relative;
  padding-left: 15px;
  font-size: 15px;
  line-height: 1.75;
}

.subpage .service-scope__item + .service-scope__item {
  margin-top: 10px;
}

.subpage .service-scope__item::before {
  content: "";
  width: 6px;
  height: 6px;
  position: absolute;
  left: 0;
  top: .72em;
  border-radius: 50%;
}

.subpage .service-scope__block--can .service-scope__item::before {
  background: var(--green);
}

.subpage .service-scope__block--cannot .service-scope__item::before {
  background: #aaa;
}

.subpage .service-scope__legal {
  max-width: 900px;
  margin: 18px auto 0;
  padding: 12px 14px;
  border-left: 4px solid var(--gold);
  border-radius: 0 4px 4px 0;
  background: #fff;
  font-size: 13px;
  line-height: 1.8;
}

/* --------------------------------------------------------------------------
   サービス詳細：調査の流れ
   -------------------------------------------------------------------------- */

.subpage .service-flow__list {
  max-width: 840px;
  margin: 30px auto 0;
  padding: 0;
  list-style: none;
}

.subpage .service-flow__item {
  position: relative;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 0 12px;
  padding-bottom: 28px;
}

.subpage .service-flow__item:not(:last-child)::before {
  content: "";
  width: 1px;
  position: absolute;
  left: 25px;
  top: 58px;
  bottom: 0;
  background: var(--gold);
}

.subpage .service-flow__num {
  width: 50px;
  height: 50px;
  padding-top: 8px;
  border-radius: 50%;
  color: #fff;
  background: var(--gold);
  font: 600 20px/1 var(--serif);
  text-align: center;
}

.subpage .service-flow__num small {
  display: block;
  font-size: 11px;
  font-weight: 400;
}

.subpage .service-flow__body {
  min-width: 0;
}

.subpage .service-flow__title {
  margin: 0 0 6px;
  color: var(--green);
  font-size: 18px;
  line-height: 1.5;
}

.subpage .service-flow__description {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
}

.subpage .service-flow__media {
  width: 100%;
  grid-column: 2 / -1;
  margin-top: 14px;
  aspect-ratio: 3/2;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   サービス詳細：料金の目安
   横スクロールさせず2列に収める。
   -------------------------------------------------------------------------- */

.subpage .service-price__panel {
  max-width: 760px;
  margin: 0 auto;
}

.subpage .service-price__table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 14px;
  line-height: 1.7;
}

.subpage .service-price__head {
  padding: 9px 10px;
  border: 1px solid #ccc;
  background: #d5f1cd;
  font-weight: 700;
  text-align: left;
}

.subpage .service-price__cell {
  padding: 10px;
  border: 1px solid #ccc;
  text-align: left;
  vertical-align: top;
}

.subpage .service-price__cell--plan {
  width: 40%;
  background: #fbfbf6;
  font-weight: 700;
}

.subpage .service-price__amount {
  display: block;
  color: var(--gold-dark);
  font-weight: 700;
}

.subpage .service-price__remark {
  display: block;
  margin-top: 5px;
  color: #666;
  font-size: 12px;
  line-height: 1.7;
}

.subpage .service-price__note {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.8;
}

.subpage .service-price__actions {
  margin-top: 22px;
  display: flex;
  justify-content: center;
}

.subpage .service-price__actions .button {
  width: min(300px, 100%);
  min-height: 48px;
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   サービス詳細：調査事例
   -------------------------------------------------------------------------- */

.subpage .service-cases__grid {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  gap: 26px;
}

.subpage .service-cases__card {
  min-width: 0;
  padding: 26px 16px 20px;
  border-radius: 5px;
  background: #fff;
  box-shadow: var(--shadow);
}

.subpage .service-cases__num {
  display: table;
  margin: -18px auto 10px;
  padding: 3px 14px;
  border-radius: 20px;
  color: #fff;
  background: var(--gold);
  font-size: 11px;
}

.subpage .service-cases__title {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
}

.subpage .service-cases__dl {
  margin: 0;
}

.subpage .service-cases__term {
  position: relative;
  margin-top: 14px;
  padding-left: 12px;
  font-size: 14px;
  font-weight: 700;
}

.subpage .service-cases__term::before {
  content: "";
  width: 4px;
  height: 1em;
  position: absolute;
  left: 0;
  top: .3em;
  background: var(--gold);
}

.subpage .service-cases__description {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.8;
}

/* --------------------------------------------------------------------------
   サービス詳細：よくあるご質問
   トップ用 .faq の min-height は下層の短いFAQでは余白過多になるため解除する。
   -------------------------------------------------------------------------- */

.subpage .service-faq {
  min-height: 0;
}

/* --------------------------------------------------------------------------
   サービス詳細：関連コラム
   -------------------------------------------------------------------------- */

.subpage .service-related__grid {
  max-width: 1120px;
  margin: 0 auto;
}

.subpage .service-related__actions {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

.subpage .service-related__actions .button {
  min-height: 48px;
}

/* --------------------------------------------------------------------------
   サービス詳細：調査のポイント（サービス固有の独自セクション）
   文言は inc/service-data.php の features キー（オーナー支給・無改変）。
   -------------------------------------------------------------------------- */

.subpage .service-features__blocks {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.subpage .service-features__block {
  min-width: 0;
}

.subpage .service-features__block > :last-child {
  margin-bottom: 0;
}

.subpage .service-features__heading {
  margin: 0 0 16px;
  padding-left: 12px;
  border-left: 4px solid var(--gold);
  color: var(--green);
  font-size: 18px;
  line-height: 1.6;
  font-weight: 700;
}

.subpage .service-features__paragraph {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.9;
}

.subpage .service-features__emphasis {
  margin: 0 0 14px;
  padding: 12px 16px;
  border-radius: 4px;
  background: var(--pale);
  color: var(--green);
  font: 700 16px/1.8 var(--serif);
  text-align: center;
}

.subpage .service-features__list-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--green);
  font-size: 15px;
  line-height: 1.5;
  font-weight: 700;
}

.subpage .service-features__list-label::before {
  content: "";
  width: 14px;
  height: 1px;
  flex: 0 0 auto;
  background: var(--gold);
}

.subpage .service-features__list {
  margin: 0 0 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--cream);
  list-style: none;
}

.subpage .service-features__item {
  position: relative;
  padding-left: 15px;
  font-size: 15px;
  line-height: 1.75;
}

.subpage .service-features__item + .service-features__item {
  margin-top: 8px;
}

.subpage .service-features__item::before {
  content: "";
  width: 6px;
  height: 6px;
  position: absolute;
  left: 0;
  top: .72em;
  border-radius: 50%;
  background: var(--gold);
}

.subpage .service-features__scenes {
  margin: 0 0 14px;
  display: grid;
  gap: 12px;
}

.subpage .service-features__scene {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--cream);
}

.subpage .service-features__scene-title {
  margin: 0 0 6px;
  color: var(--green);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 700;
}

.subpage .service-features__scene-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
}

.subpage .service-features__note {
  margin: 0 0 14px;
  color: #666;
  font-size: 13px;
  line-height: 1.8;
}

/* --------------------------------------------------------------------------
   768px以上
   -------------------------------------------------------------------------- */

@media (min-width: 768px) {
  .subpage .service-hero__catch {
    font-size: 24px;
  }

  .subpage .service-hero__actions {
    grid-template-columns: repeat(2, minmax(0, 240px));
    justify-content: center;
  }

  .subpage .service-scope__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .subpage .service-cases__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .subpage .service-price__table {
    font-size: 15px;
  }

  .subpage .service-features__scenes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

/* --------------------------------------------------------------------------
   1024px以上
   -------------------------------------------------------------------------- */

@media (min-width: 1024px) {
  .subpage .service-lead {
    font-size: 18px;
  }

  .subpage .service-hero {
    padding-top: 20px;
  }

  .subpage .service-hero__catch {
    font-size: 26px;
  }

  .subpage .service-hero__lead {
    font-size: 18px;
  }

  .subpage .service-toc {
    margin-top: 44px;
    padding: 0;
  }

  .subpage .service-toc__summary {
    font-size: 18px;
  }

  .subpage .service-toc__link {
    font-size: 16px;
  }

  .subpage .service-worries__title {
    font-size: 26px;
  }

  .subpage .service-worries__list {
    max-width: 640px;
  }

  .subpage .service-worries__pill {
    max-width: 76%;
    font-size: 16px;
  }

  .subpage .service-worries__media {
    max-width: 480px;
    height: 260px;
    margin-top: 56px;
  }

  .subpage .service-scope__block {
    padding: 24px 24px 26px;
  }

  .subpage .service-scope__item {
    font-size: 18px;
  }

  .subpage .service-flow__item {
    grid-template-columns: 62px minmax(0, 1fr) 260px;
    gap: 0 20px;
    padding-bottom: 34px;
  }

  .subpage .service-flow__media {
    grid-column: auto;
    margin-top: 0;
    align-self: start;
  }

  .subpage .service-flow__description {
    font-size: 18px;
  }

  .subpage .service-price__note {
    font-size: 14px;
  }

  .subpage .service-cases__title {
    font-size: 17px;
  }

  .subpage .service-cases__description {
    font-size: 18px;
  }

  .subpage .service-features__blocks {
    max-width: 840px;
    gap: 56px;
  }

  .subpage .service-features__heading {
    font-size: 20px;
  }

  .subpage .service-features__paragraph {
    font-size: 18px;
  }

  .subpage .service-features__emphasis {
    font-size: 18px;
  }

  .subpage .service-features__list {
    padding: 20px 24px;
  }

  .subpage .service-features__item {
    font-size: 18px;
  }

  .subpage .service-features__scene {
    padding: 18px 20px;
  }

  .subpage .service-features__scene-title {
    font-size: 16px;
  }

  .subpage .service-features__scene-text {
    font-size: 18px;
  }
}
