/* 第6段：料金・サービスページの写真帯、案内、流れ図、プラン選び */

/* 写真のある固定ページ見出し。画像が未配置でも生成りの地で収める。 */
header.page-hero {
  position: relative;
  isolation: isolate;
  width: 100vw;
  height: clamp(250px, 24vw, 310px);
  margin: 0 calc(50% - 50vw) clamp(30px, 4vw, 52px);
  overflow: hidden;
  color: var(--navy, #1b3a6e);
  background: #f4f1ea;
}
header.page-hero > img.page-hero-img {
  position: absolute;
  z-index: -1;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 70% center;
}
header.page-hero::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, rgba(250, 248, 244, .96) 0%, rgba(250, 248, 244, .84) 36%, rgba(250, 248, 244, .28) 57%, rgba(250, 248, 244, 0) 74%);
}
header.page-hero > .page-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 24px max(24px, calc((100vw - var(--wide, 1120px)) / 2 + 24px));
}
header.page-hero .page-title {
  width: min(700px, 100%);
  margin: 0;
  padding: 0;
  color: var(--navy, #1b3a6e);
  border: 0;
  font-family: var(--mincho, "Shippori Mincho", serif);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 600;
  letter-spacing: .045em;
  line-height: 1.35;
}

/* 帯の直後のあいさつ。既存の会話吹き出しと同じ線・白地を使う。 */
.iemaru-greet,
.hk-doc .iemaru-greet {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 880px;
  margin: -8px 0 clamp(24px, 3vw, 38px);
}
.iemaru-greet .iemaru-greet-img,
.hk-doc .iemaru-greet .iemaru-greet-img {
  display: block;
  flex: 0 0 auto;
  width: clamp(68px, 7vw, 84px);
  height: auto;
  margin: 0;
  object-fit: contain;
}
.iemaru-greet .iemaru-greet-text,
.hk-doc .iemaru-greet .iemaru-greet-text {
  position: relative;
  max-width: min(38em, calc(100vw - 142px));
  margin: 0;
  padding: .75em 1em;
  color: var(--text, #252a33);
  background: #fff;
  border: 1px solid #8ea4c3;
  border-radius: 10px;
  font-size: .94em;
  line-height: 1.65;
}
.iemaru-greet .iemaru-greet-text::before,
.iemaru-greet .iemaru-greet-text::after {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  content: "";
  transform: translateY(-50%) rotate(-45deg);
}
.iemaru-greet .iemaru-greet-text::before {
  left: -6px;
  background: #fff;
  border-top: 1px solid #8ea4c3;
  border-left: 1px solid #8ea4c3;
}
.iemaru-greet .iemaru-greet-text::after { left: -4px; background: #fff; }
.iemaru-greet .iemaru-greet-name,
.hk-doc .iemaru-greet .iemaru-greet-name {
  display: inline-block;
  margin: 0 .45em 0 0;
  padding: .12em .48em;
  color: var(--navy, #1b3a6e);
  background: #eaf4fb;
  border-radius: 999px;
  font-size: .76em;
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1.45;
  vertical-align: .08em;
}

/* 本文中の一言は控えめに。 */
.hk-doc .iemaru-guide.iemaru-hint {
  gap: 10px;
  margin: clamp(20px, 3vw, 30px) 0;
}
.hk-doc .iemaru-guide.iemaru-hint .iemaru-guide-img { width: clamp(56px, 6vw, 64px); }
.hk-doc .iemaru-guide.iemaru-hint .iemaru-guide-text { max-width: min(36em, calc(100vw - 130px)); }

/* PC は横方向の流れ図。data-step ごとに線画アイコンを mask で着色する。 */
.hk-doc .hk-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 18px 12px;
  max-width: 900px;
  margin: 1.1em 0 0;
  padding: 0;
  counter-reset: hk-step;
}
.hk-doc .hk-steps::before { display: none; }
.hk-doc .hk-steps li {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 0;
  border: 0;
  counter-increment: hk-step;
  font-size: .9375rem;
  line-height: 1.7;
  text-align: center;
}
.hk-doc .hk-steps li::before {
  display: block;
  grid-row: auto;
  width: 68px;
  height: 68px;
  margin: 0 0 11px;
  color: transparent;
  content: "";
  background-color: #fff;
  background-image: none;
  border: 1px solid var(--navy, #1b3a6e);
  border-radius: 50%;
  box-shadow: 0 0 0 5px #fff;
}
.hk-doc .hk-steps li:not(:last-child)::after {
  position: absolute;
  z-index: -1;
  top: 34px;
  left: calc(50% + 34px);
  width: calc(100% - 68px + 12px);
  height: 1px;
  content: "";
  background: #9fc0f0;
}
.hk-doc .hk-steps li[data-step]::before {
  background-color: var(--navy, #1b3a6e);
  -webkit-mask: var(--step-icon) center / 37px 37px no-repeat;
  mask: var(--step-icon) center / 37px 37px no-repeat;
  border-color: transparent;
  border-radius: 0;
  box-shadow: none;
}
.hk-doc .hk-steps li[data-step="mail"] { --step-icon: url("/assets/icons/hk-step-mail.svg"); }
.hk-doc .hk-steps li[data-step="calendar"] { --step-icon: url("/assets/icons/hk-step-calendar.svg"); }
.hk-doc .hk-steps li[data-step="talk"] { --step-icon: url("/assets/icons/hk-step-talk.svg"); }
.hk-doc .hk-steps li[data-step="calc"] { --step-icon: url("/assets/icons/hk-step-calc.svg"); }
.hk-doc .hk-steps li[data-step="sign"] { --step-icon: url("/assets/icons/hk-step-sign.svg"); }
.hk-doc .hk-steps li[data-step="card"] { --step-icon: url("/assets/icons/hk-step-card.svg"); }
.hk-doc .hk-steps li[data-step="start"] { --step-icon: url("/assets/icons/hk-step-start.svg"); }
.hk-doc .hk-steps li:not([data-step])::before {
  display: grid;
  place-items: center;
  color: var(--navy, #1b3a6e);
  content: counter(hk-step, decimal-leading-zero);
  font-size: .78rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: .05em;
}
.hk-doc .hk-steps li b,
.hk-doc .hk-steps li span {
  display: block;
  grid-column: auto;
  width: 100%;
  text-align: center;
}
.hk-doc .hk-steps li b { font-weight: 600; }
.hk-doc .hk-steps li span {
  margin-top: 5px;
  color: var(--sub, #5f6168);
  font-size: .8125rem;
  line-height: 1.7;
}
.hk-doc .hk-steps li span:empty { display: none; }

/* 報酬・料金ページのプラン選び。JS を有効にしたときだけ表示される。 */
.hk-doc .pf-sec .plan-finder {
  max-width: 760px;
  min-height: 270px;
  margin: 1.2em 0 0;
  padding: clamp(22px, 4vw, 34px);
  background: #f4f1ea;
  border: 1px solid #e1ddd4;
}
.hk-doc .pf-sec .plan-finder[hidden],
.hk-doc .pf-sec .pf-step[hidden] { display: none; }
.hk-doc .pf-sec .pf-step { min-width: 0; }
.hk-doc .pf-sec .pf-say { display: flex; align-items: center; gap: 14px; }
.hk-doc .pf-sec .pf-say img {
  display: block;
  flex: 0 0 auto;
  width: clamp(70px, 9vw, 88px);
  height: auto;
  margin: 0;
  object-fit: contain;
}
.hk-doc .pf-sec .pf-q {
  position: relative;
  max-width: none;
  margin: 0;
  padding: .78em 1em;
  color: var(--text, #252a33);
  background: #fff;
  border: 1px solid #8ea4c3;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.7;
}
.hk-doc .pf-sec .pf-q::before,
.hk-doc .pf-sec .pf-q::after {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  content: "";
  transform: translateY(-50%) rotate(-45deg);
}
.hk-doc .pf-sec .pf-q::before { left: -6px; background: #fff; border-top: 1px solid #8ea4c3; border-left: 1px solid #8ea4c3; }
.hk-doc .pf-sec .pf-q::after { left: -4px; background: #fff; }
.hk-doc .pf-sec .pf-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 25px 0 0;
}
.hk-doc .pf-sec .pf-opt {
  flex: 1 1 155px;
  min-height: 46px;
  padding: .65em 1em;
  color: var(--navy, #1b3a6e);
  background: #fff;
  border: 1px solid var(--navy, #1b3a6e);
  border-radius: 3px;
  cursor: pointer;
  font: inherit;
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}
.hk-doc .pf-sec .pf-opt:hover { color: #fff; background: var(--navy, #1b3a6e); }
.hk-doc .pf-sec .pf-opt:active { transform: translateY(1px); }
.hk-doc .pf-sec .pf-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 18px;
  align-items: center;
  margin: 23px 0 0;
  padding: 18px 48px 18px 19px;
  color: var(--navy, #1b3a6e);
  background: #fff;
  border: 1px solid var(--navy, #1b3a6e);
  border-radius: 3px;
  line-height: 1.55;
  text-decoration: none;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}
.hk-doc .pf-sec .pf-card::after {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 10px;
  height: 10px;
  content: "";
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.hk-doc .pf-sec .pf-card:hover { color: #fff; background: var(--navy, #1b3a6e); transform: translateY(-2px); }
.hk-doc .pf-sec .pf-card-name { font-size: 1.05rem; font-weight: 600; }
.hk-doc .pf-sec .pf-card-price { color: inherit; font-size: .875rem; }
.hk-doc .pf-sec .pf-card-go { grid-column: 1; color: inherit; font-size: .78rem; }
.hk-doc .pf-sec .pf-back {
  display: inline-block;
  min-height: 44px;
  margin: 16px 0 0;
  padding: .55em .2em;
  color: var(--navy, #1b3a6e);
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  cursor: pointer;
  font: inherit;
  font-size: .875rem;
  line-height: 1.45;
}

@media (prefers-reduced-motion: no-preference) {
  .hk-doc .pf-sec .pf-step:not([hidden]) { animation: hk-plan-fade .24s ease-out both; }
}
@keyframes hk-plan-fade { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

@media (max-width: 600px) {
  header.page-hero {
    height: 190px;
    margin-bottom: 28px;
  }
  header.page-hero > img.page-hero-img { object-position: 68% center; }
  header.page-hero::after { background: linear-gradient(90deg, rgba(250, 248, 244, .94) 0%, rgba(250, 248, 244, .8) 54%, rgba(250, 248, 244, .12) 100%); }
  header.page-hero > .page-hero-inner { padding: 18px 16px; }
  header.page-hero .page-title { font-size: clamp(1.65rem, 7.3vw, 2.15rem); }

  .iemaru-greet,
  .hk-doc .iemaru-greet { gap: 10px; margin: -3px 0 25px; }
  .iemaru-greet .iemaru-greet-img,
  .hk-doc .iemaru-greet .iemaru-greet-img { width: 60px; }
  .iemaru-greet .iemaru-greet-text,
  .hk-doc .iemaru-greet .iemaru-greet-text { max-width: calc(100vw - 102px); padding: .65em .8em; font-size: .88em; }
  .hk-doc .iemaru-guide.iemaru-hint { align-items: flex-start; }
  .hk-doc .iemaru-guide.iemaru-hint .iemaru-guide-img { width: 56px; }
  .hk-doc .iemaru-guide.iemaru-hint .iemaru-guide-text { max-width: calc(100vw - 96px); }

  .hk-doc .hk-steps {
    display: block;
    max-width: 34em;
    margin-top: 1em;
    padding: 0;
  }
  .hk-doc .hk-steps::before { display: none; }
  .hk-doc .hk-steps li {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr);
    column-gap: 14px;
    align-items: start;
    padding: 0 0 24px;
    text-align: left;
  }
  .hk-doc .hk-steps li:last-child { padding-bottom: 0; }
  .hk-doc .hk-steps li::before {
    grid-row: span 2;
    width: 60px;
    height: 60px;
    margin: 0;
  }
  .hk-doc .hk-steps li:not(:last-child)::after {
    top: 60px;
    bottom: 0;
    left: 29px;
    width: 1px;
    height: auto;
  }
  .hk-doc .hk-steps li[data-step]::before { -webkit-mask-size: 33px 33px; mask-size: 33px 33px; }
  .hk-doc .hk-steps li b,
  .hk-doc .hk-steps li span { grid-column: 2; text-align: left; }
  .hk-doc .hk-steps li b { padding-top: 2px; }
  .hk-doc .hk-steps li span { margin-top: 2px; }

  .hk-doc .pf-sec .plan-finder { min-height: 0; margin-top: 1em; padding: 20px 16px; }
  .hk-doc .pf-sec .pf-say { align-items: flex-start; gap: 10px; }
  .hk-doc .pf-sec .pf-say img { width: 62px; }
  .hk-doc .pf-sec .pf-q { padding: .68em .8em; font-size: .94rem; }
  .hk-doc .pf-sec .pf-opts { display: grid; grid-template-columns: 1fr; margin-top: 20px; }
  .hk-doc .pf-sec .pf-opt { width: 100%; }
  .hk-doc .pf-sec .pf-card { margin-top: 18px; padding: 16px 42px 16px 15px; }
}

@media print {
  header.page-hero { width: auto; height: auto; margin: 0 0 1.5em; background: transparent; }
  header.page-hero > img.page-hero-img,
  header.page-hero::after { display: none; }
  header.page-hero > .page-hero-inner { display: block; height: auto; padding: 0; }
  header.page-hero .page-title { color: #000; font-size: 22pt; }
  .hk-doc .pf-sec .plan-finder { min-height: 0; border-color: #000; }
}

/* Claude の点検から（2026-10-24）：長いページ名が写真の主役に重ならないよう幅を抑える／あいさつの下の空きを詰める／流れ図の線を見えるように */
@media (min-width: 681px) {
  header.page-hero .page-title { width: auto; max-width: 46%; font-size: clamp(2rem, 3.4vw, 2.9rem); }
}
.iemaru-greet ~ .hk-doc > section:first-of-type { padding-top: 4px; }
.hk-doc .hk-steps li:not(:last-child)::after { display: block; height: 2px; top: 33px; background: #b9cbe6; } /* page.css の li::after 一括非表示を打ち消す */
@media (max-width: 600px) { .hk-doc .hk-steps li:not(:last-child)::after { top: 60px; height: auto; width: 2px; } }

/* スマホ（440px 以下）の記事カード：画像を左に縦長で置くとサムネの文字が左右で切れるため、画像を上に 16:9 のまま全幅で出す（Ken「スマホでみたときにブログのサムネイルが見切れてる」2026-10-24） */
@media (max-width: 440px) {
  .card-list .card,
  body #hk-top #hk-columns .card { display: block; }
  .card-list .card-thumb img,
  body #hk-top #hk-columns .card-thumb img { height: auto; min-height: 0; }
}
/* アイキャッチは全部 16:9（2026-10-24 実測：公開66本すべて 1.78）。旧WPの 1200×630（1.90）の枠だと上下が切れる */
.card-list .card-thumb img,
body #hk-top #hk-columns .card-thumb img { aspect-ratio: 16 / 9; }
