/* 育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; }
}

/* 年齢層（7つ）：PCは4列、スマホも4列で2段 */
.pf-yn.hg-yn-age { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pf-yn.hg-yn-age .pf-yn__btn { padding-left: 4px; padding-right: 4px; font-size: 14px; }

/* 12タイプの紹介ページ */
.hg-type { max-width: 820px; margin: 0 auto; display: grid; gap: 28px; }
.hg-type__eyebrow { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--t-deep, var(--teal-800)); text-align: center; }
.hg-type__catch { margin: -18px 0 0; font-family: var(--font-round); font-weight: 700; font-size: 28px; line-height: 1.5; text-align: center; word-break: auto-phrase; text-wrap: balance; }
.hg-types__intro { max-width: 820px; margin: 0 auto; }
.hg-type__text p, .hg-type__box p, .hg-type__fam p, .hg-types__intro p { margin: 0 0 12px; font-size: 16px; line-height: 1.95; text-align: justify; line-break: strict; }
.hg-type__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.hg-type__box { border-radius: 22px; padding: 24px 26px; height: 100%; box-sizing: border-box; }
.hg-type__box h3 { margin: 0 0 10px; font-family: var(--font-round); font-size: 17px; }
.hg-type__box.is-good { background: var(--t-soft, var(--mint-100)); }
.hg-type__box.is-good h3 { color: var(--t-deep, var(--teal-800)); }
.hg-type__box.is-care { background: var(--gold-100); }
.hg-type__box.is-care h3 { color: var(--gold-700); }
.hg-type__box p:last-child, .hg-type__fam p:last-child { margin-bottom: 0; }
.hg-type__fam { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px 26px; }
.hg-type__famname { font-weight: 700; color: var(--t-deep, var(--teal-800)); text-align: left !important; }
.hg-type__cta { text-align: center; display: grid; gap: 16px; justify-items: center; padding: 8px 0; }
.hg-type__cta p { margin: 0; text-align: center; text-align-last: center; font-size: 15px; line-height: 1.9; max-width: 560px; word-break: auto-phrase; text-wrap: balance; }
.hg-types { max-width: 1000px; margin: 0 auto; display: grid; gap: 28px; }
.hg-types__title { margin: 0; font-family: var(--font-round); font-size: 24px; text-align: center; }
.hg-tfam__name { margin: 0 0 10px; font-weight: 700; font-size: 15px; color: var(--teal-800); }
.hg-tfam__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.hg-tlink { display: flex; flex-direction: column; gap: 6px; height: 100%; box-sizing: border-box; padding: 16px 18px; border-radius: 18px; text-decoration: none; color: #fff; background: linear-gradient(160deg, var(--t-deep), color-mix(in srgb, var(--t-mid) 70%, var(--t-deep))); box-shadow: var(--shadow-soft); transition: transform .2s ease; }
.hg-tlink:hover { transform: translateY(-2px); color: #fff; }
.hg-tlink.is-current { outline: 3px solid var(--gold-300); outline-offset: 2px; }
.hg-tlink__code { font-family: var(--font-en); font-weight: 700; font-size: 12px; letter-spacing: .14em; opacity: .9; }
.hg-tlink__name { font-family: var(--font-round); font-weight: 700; font-size: 15px; line-height: 1.55; word-break: auto-phrase; text-wrap: balance; }
.hg-tlink__catch { margin-top: auto; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.28); font-size: 12.5px; line-height: 1.6; opacity: .92; word-break: auto-phrase; text-wrap: pretty; }
.hg-types__all { margin: 0; text-align: center; }
.hg-types__all a { color: var(--teal-700); }
@media (max-width: 900px) { .hg-tfam__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .hg-type__grid { grid-template-columns: minmax(0, 1fr); } .hg-type__catch { font-size: 22px; } .hg-tlink__name { font-size: 14px; } }

/* タイプ×6つの視点＝約564万通り */
.hg-combo { max-width: 1000px; margin: 8px auto; box-sizing: border-box; padding: 36px 36px 28px; border-radius: 28px; background: linear-gradient(160deg, var(--mint-100, #E7F3EE), #FAF6F0); border: 1px solid var(--line); display: grid; gap: 18px; }
.hg-combo__title { margin: 0; font-family: var(--font-round); font-weight: 700; font-size: 26px; line-height: 1.5; text-align: center; word-break: auto-phrase; text-wrap: balance; color: var(--ink, #1f2b28); }
.hg-combo__lead { margin: 0 auto; max-width: 760px; font-size: 15.5px; line-height: 1.95; text-align: justify; line-break: strict; }
.hg-combo__eq { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 2.1fr) auto minmax(0, 1.2fr); gap: 12px; align-items: stretch; }
.hg-combo__base, .hg-combo__views, .hg-combo__total { background: #fff; border-radius: 20px; padding: 18px 16px; box-shadow: var(--shadow-soft); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; height: 100%; box-sizing: border-box; }
.hg-combo__k { font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--teal-800, #1F4E45); }
.hg-combo__base b { font-family: var(--font-round); font-size: 26px; line-height: 1.2; color: var(--t-deep, var(--teal-800, #1F4E45)); white-space: nowrap; }
.hg-combo__s { font-size: 12.5px; line-height: 1.5; color: var(--ink, #1f2b28); }
.hg-combo__views ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.hg-combo__views li { font-size: 13px; line-height: 1.4; padding: 6px 10px; border-radius: 999px; background: var(--mint-100, #E7F3EE); color: var(--teal-800, #1F4E45); font-weight: 700; }
.hg-combo__op { align-self: center; font-family: var(--font-round); font-weight: 700; font-size: 28px; color: var(--gold-700, #8A6D1F); }
.hg-combo__total { background: linear-gradient(160deg, var(--night-900), var(--night-700)); }
.hg-combo__total .hg-combo__k { color: var(--gold-300, #E7D29A); }
.hg-combo__total b { font-family: var(--font-script); font-weight: 400; font-size: 54px; line-height: 1.1; color: var(--gold-300, #E7D29A); white-space: nowrap; }
.hg-combo__total b small { font-family: var(--font-round); font-weight: 700; font-size: 15px; color: #fff; margin: 0 2px; }
.hg-combo__note { margin: 0; font-size: 12px; line-height: 1.7; text-align: center; color: var(--ink, #1f2b28); }
@media (max-width: 900px) {
  .hg-combo { padding: 26px 18px 20px; }
  .hg-combo__title { font-size: 21px; }
  .hg-combo__eq { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .hg-combo__op { justify-self: center; line-height: 1; }
}

.hg-combo--type .hg-combo__eq { grid-template-columns: minmax(0, 1fr) auto minmax(0, 2.4fr); }
.hg-combo__band { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 14px; padding: 16px 20px; border-radius: 20px; background: linear-gradient(160deg, var(--night-900), var(--night-700)); color: #fff; text-align: center; }
.hg-combo__band span { font-size: 14px; line-height: 1.7; font-weight: 700; word-break: auto-phrase; }
.hg-combo__band b { font-family: var(--font-script); font-weight: 400; font-size: 44px; line-height: 1.1; color: var(--gold-300); white-space: nowrap; }
.hg-combo__band b small { font-family: var(--font-round); font-weight: 700; font-size: 15px; color: #fff; margin: 0 2px; }
@media (max-width: 900px) { .hg-combo--type .hg-combo__eq { grid-template-columns: minmax(0, 1fr); } }
