/* 育me縁 新サイト（hagukumien.com）共通の見た目。デザインシステムの bundle.css の上に足す分だけ */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-sans); }
a { color: var(--teal-700); }
a:hover { color: var(--teal-800); }
[hidden] { display: none !important; }

/* 日本語の折り返し：本文は両端そろえ、見出しと中央そろえの短い文は文節で折り返す */
.pf-rsec__body p, .pf-callout__body p, .pf-callout__body, .hg-item__body p, .hg-card p, .pf-safety__text, .pf-session__text, .pf-door__lead, .pf-door__how { text-align: justify; line-break: strict; overflow-wrap: anywhere; }
.hg-card.is-center p { text-align: center; }
.hg h1, .hg h2, .hg h3, .pf-typehero__catch, .pf-session__title, .pf-door__title, .hg .is-center { word-break: auto-phrase; text-wrap: balance; }
.hg .is-center, .hg .is-center p { text-align: center; }

/* ヘッダー（ロゴの画像つき） */
.hg-header .pf-logo { flex-direction: row; align-items: center; gap: 10px; }
.hg-header .pf-logo img { width: 40px; height: 40px; flex: none; }
.hg-header .pf-logo > span { display: flex; flex-direction: column; }
.hg-header--slim { padding: 12px 0; }
@media (max-width: 640px) {
  .hg-header .pf-logo__sub { display: none; }
  .hg-header .pf-logo__main { font-size: 13px !important; letter-spacing: .02em !important; }
  .hg-header .pf-logo img { width: 32px; height: 32px; }
  .hg-header .pf-header__in { gap: 10px; }
  .hg-header .pf-btn { padding-left: 14px; padding-right: 14px; font-size: 13px; }
  .hg-header .pf-btn svg { display: none; }
}
.hg-footer .pf-logo { flex-direction: row; align-items: center; gap: 10px; }
.hg-footer .pf-logo img { width: 40px; height: 40px; flex: none; }
.hg-footer .pf-logo > span { display: flex; flex-direction: column; }

/* ── 回答画面 ── */
.hg-answer { max-width: var(--width-answer); margin: 0 auto; padding: 8px 16px 64px; box-sizing: border-box; }
.hg-progress-wrap { position: sticky; top: 0; z-index: 30; background: rgba(250, 246, 240, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.hg-progress-wrap .pf-progress { max-width: var(--width-answer); margin: 0 auto; padding: 6px 20px 4px; box-sizing: border-box; }
.hg-card { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); padding: 32px 28px; display: grid; gap: 18px; }
.hg-card > * { margin: 0; }
.hg-eyebrow { font-family: var(--font-script); font-size: 34px; line-height: 1.1; color: var(--gold-700); }
.hg-card h1, .hg-card h2 { font-family: var(--font-round); font-weight: 700; font-size: 26px; line-height: 1.5; margin: 0; }
.hg-card p { font-size: 16px; line-height: 1.9; }
.hg-card .hg-small { font-size: 14px; line-height: 1.8; }
.hg-card .pf-btn { width: 100%; }
.hg-choice__label { font-weight: 700; font-size: 15px; margin-bottom: 8px; display: block; }
.hg-choice__help { font-size: 13px; line-height: 1.7; margin-top: 8px; }
.pf-yn.hg-yn3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pf-yn.hg-yn3 .pf-yn__btn { padding-left: 6px; padding-right: 6px; font-size: 15px; }
.hg-err { color: var(--rose-700); font-size: 14px; font-weight: 700; min-height: 1em; }
.hg-hint { margin: 16px 4px 0; font-size: 13px; line-height: 1.7; text-align: center; }
.hg-spin { width: 44px; height: 44px; margin: 4px auto; border-radius: 50%; border: 3px solid var(--mint-200); border-top-color: var(--teal-600); animation: hg-spin 1s linear infinite; }
@keyframes hg-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hg-spin { animation-duration: 3s; } }
@media (max-width: 640px) { .hg-card { padding: 26px 20px; } .hg-card h1, .hg-card h2 { font-size: 22px; } }

/* ── 結果ページ ── */
@media (max-width: 640px) { .hg .pf-typehero__name { font-size: 24px; line-height: 1.55; } }
.hg .pf-typehero__code { position: relative; z-index: 3; }
.hg .pf-typehero__art img { width: 86%; height: 86%; border-radius: 50%; object-fit: cover; object-position: 50% 18%; }
.hg-result { padding: 8px 0 24px; }
.hg-result__in { max-width: 760px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
.hg-result .pf-rsec { margin-top: 56px; }
.hg-result .pf-rsec:first-child { margin-top: 24px; }

/* 目次（タイプの色） */
.hg-toc { margin: 8px 0 0; background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); padding: 20px 22px; border-top: 4px solid var(--t-mid, var(--teal-500)); }
.hg-toc__title { font-family: var(--font-round); font-weight: 700; font-size: 16px; margin: 0 0 10px; color: var(--t-deep, var(--teal-800)); }
.hg-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.hg-toc a { display: flex; gap: 12px; align-items: baseline; padding: 7px 4px; text-decoration: none; color: var(--ink); font-size: 15px; line-height: 1.6; border-radius: 8px; }
.hg-toc a:hover { background: var(--t-soft, var(--mint-100)); }
.hg-toc a span:first-child { font-family: var(--font-script); font-weight: 400; font-size: 22px; line-height: 1; color: var(--t-mid, var(--teal-500)); min-width: 1.6em; }

/* 「■」の行 → 小見出し（タイプの色） */
.pf-rsec__body .hg-sub { font-family: var(--font-round); font-weight: 700; font-size: 19px; line-height: 1.6; margin: 34px 0 10px; padding-left: 14px; border-left: 4px solid var(--t-mid, var(--teal-500)); color: var(--t-deep, var(--teal-800)); text-align: left; }
.pf-rsec__body > .hg-sub:first-child, .hg-item__body > .hg-sub:first-child { margin-top: 4px; }
.pf-rsec__body .hg-sub + p { margin-top: 0; }

/* 考え方のくせ・心の深いところの前提：1つずつの箱 */
.hg-item { margin-top: 24px; border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-soft); overflow: hidden; }
.hg-item:first-child { margin-top: 4px; }
.hg-item__head { display: flex; align-items: center; gap: 10px; padding: 14px 20px; background: var(--t-soft, var(--mint-100)); color: var(--t-deep, var(--teal-800)); font-family: var(--font-round); font-weight: 700; font-size: 18px; line-height: 1.5; margin: 0; }
/* 番号の丸：筆記体の数字は字の形が上に寄るので、高さを決めて上の余白を足し、字の上下のすき間が同じになるようにする（2026-11-28 実測：上6.75px・下6.25px） */
.hg-item__head i { font-style: normal; font-family: var(--font-script); font-size: 20px; line-height: 1; letter-spacing: 0; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; height: 28px; padding: 6px 12px 0; border-radius: var(--radius-pill); background: var(--t-mid, var(--teal-500)); color: #fff; flex: none; }
.hg-item__body { padding: 18px 20px 22px; }
.hg-item__body p + p { margin-top: 1em; }
.hg-item__body .hg-sub { font-size: 17px; margin-top: 24px; }

/* 気をつけたいこと（別枠）・持ち味：セクションの中で間をあける */
.pf-rsec__body .pf-callout { margin: 24px 0 0; }
.pf-rsec__body .pf-callout + p, .pf-rsec__body .pf-callout + .hg-sub { margin-top: 28px; }
.pf-rsec__body .pf-callout__body p + p { margin-top: .8em; }
.pf-rsec__body .pf-safety { margin: 4px 0 24px; }

/* タイプの色をセクションにも */
.pf-t .pf-rsec__script { color: var(--t-mid); }
.pf-t .pf-rsec__title { color: var(--ink); }

.hg-result__after { display: grid; gap: 20px; margin-top: 56px; }
.hg-note { font-size: 13px; line-height: 1.8; }

/* 印刷（PDFで保存） */
@media print {
  .hg-header, .hg-footer, .pf-share, .pf-session, .hg-toc, .hg-noprint { display: none !important; }
  .pf-fade, .pf-callout, .pf-rsec__num { opacity: 1 !important; transform: none !important; }
  .pf-typehero { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ── お問い合わせ ── */
.hg-form { max-width: 640px; margin: 0 auto; background: var(--surface); border-radius: 28px; padding: 36px 40px; box-shadow: var(--shadow-soft); display: grid; gap: 22px; box-sizing: border-box; }
.hg-form label.hg-f { display: grid; gap: 8px; font-size: 15px; font-weight: 700; }
.hg-form input[type=text], .hg-form input[type=email], .hg-form select, .hg-form textarea { box-sizing: border-box; width: 100%; height: 48px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; font: inherit; font-size: 16px; font-weight: 400; background: #fff; color: var(--ink); }
.hg-form textarea { height: auto; padding: 12px 14px; line-height: 1.8; }
.hg-form input:focus, .hg-form select:focus, .hg-form textarea:focus { outline: none; border-color: var(--teal-600); box-shadow: 0 0 0 4px var(--mint-100); }
.hg-form label.hg-f > span:first-child { display: flex; align-items: center; flex-wrap: wrap; gap: 0; }
.hg-form .hg-req { display: inline-block; margin-left: 8px; font-size: 11px; padding: 1px 8px; border-radius: 999px; background: var(--rose-100); color: var(--rose-700); vertical-align: 2px; }
.hg-form .hg-opt { display: inline-block; margin-left: 8px; font-size: 11px; padding: 1px 8px; border-radius: 999px; background: var(--mint-100); color: var(--teal-800); vertical-align: 2px; }
.hg-form .hg-help { font-size: 13px; font-weight: 400; line-height: 1.7; }
.hg-form .hg-linked { background: var(--t-soft, var(--mint-100)); border-radius: 12px; padding: 12px 16px; font-size: 14px; line-height: 1.7; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.hg-form .hg-linked button { border: 0; background: none; color: var(--teal-700); text-decoration: underline; font: inherit; font-size: 13px; cursor: pointer; flex: none; }
.hg-form .pf-btn { justify-self: center; border: 0; cursor: pointer; }
.hg-trap { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) { .hg-form { padding: 26px 20px; border-radius: 22px; } }

/* 質問文は長いものがあるので、ふつうの折り返し・左そろえ */
.hg .pf-qcard__q { text-align: left; word-break: normal; line-break: strict; text-wrap: pretty; }

/* 結果をとっておく：シェア先・手でコピーする欄 */
.hg-sharebox { margin-top: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 16px 18px; display: grid; gap: 12px; }
.hg-sharebox p { margin: 0; font-size: 14px; line-height: 1.8; }
.hg-sharebox__links { display: flex; flex-wrap: wrap; gap: 8px; }
.hg-sharebox__links .pf-btn { min-height: 44px; }
.hg-sharebox__url { box-sizing: border-box; width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font: inherit; font-size: 14px; color: var(--ink); background: var(--paper); }

/* 羽：水彩の白い羽の絵に差し替え（デザインシステムの仕組みを使う） */
.hg, .pf-root { --pf-feather-img-on: block; --pf-feather-svg: none; }
.pf-feather::before { background-image: url(img/feather-1.webp); }
.pf-feather:nth-of-type(2n)::before { background-image: url(img/feather-2.webp); }
.pf-feather:nth-of-type(3n)::before { background-image: url(img/feather-3.webp); }

/* 特商法・プライバシーポリシー */
.hg-legal { max-width: 820px; margin: 0 auto; background: var(--surface); border-radius: 28px; padding: 40px 44px; box-shadow: var(--shadow-soft); box-sizing: border-box; font-size: 15px; line-height: 1.9; }
.hg-legal a { color: var(--teal-700); text-decoration: underline; text-underline-offset: 3px; }
.hg-legal__dl { margin: 0; display: grid; grid-template-columns: 12em minmax(0, 1fr); }
.hg-legal__dl dt, .hg-legal__dl dd { margin: 0; padding: 16px 0; border-bottom: 1px solid var(--line); }
.hg-legal__dl dt { font-weight: 700; color: var(--teal-800); padding-right: 16px; }
.hg-legal__dl > :nth-last-child(-n+2) { border-bottom: 0; }
.hg-legal__note { font-size: 13px; color: var(--ink-sub); }
.hg-legal__sec + .hg-legal__sec { margin-top: 28px; }
.hg-legal__sec h2 { margin: 0 0 10px; font-family: var(--font-round); font-weight: 700; font-size: 18px; color: var(--teal-800); }
.hg-legal__sec p { margin: 0 0 10px; }
.hg-legal__sec ul { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; }
.hg-legal :where(p, li, dd) { text-align: left; }
@media (max-width: 640px) {
  .hg-legal { padding: 26px 20px; border-radius: 22px; font-size: 14.5px; }
  .hg-legal__dl { grid-template-columns: minmax(0, 1fr); }
  .hg-legal__dl dt { padding: 16px 0 2px; border-bottom: 0; }
  .hg-legal__dl dd { padding: 0 0 16px; }
}
