:root{--hfs-ink:#18312b;--hfs-green:#286451;--hfs-mint:#dff3e9;--hfs-cream:#fffaf0;--hfs-coral:#e8795b;--hfs-line:#d9e4de}
.hfs-page{background:#fffdf8;color:var(--hfs-ink)}
.hfs-page .site-footer nav{display:flex;gap:1.25rem}.hfs-page .site-footer a{color:inherit;text-decoration:none}
.hfs-product-header{border-bottom:1px solid var(--hfs-line);background:#fff}
.hfs-product-header-inner{display:flex;align-items:center;min-height:64px}
.hfs-product-brand{display:inline-flex;align-items:center;gap:.65rem;color:var(--hfs-ink);font-weight:900;text-decoration:none}
.hfs-product-brand img{border-radius:8px}
.hfs-hero{padding:5.5rem 0 4.5rem;background:var(--hfs-cream);overflow:hidden}
.hfs-hero-grid{display:block;max-width:820px}.hfs-eyebrow{margin:0 0 .7rem;color:var(--hfs-green);font-size:.78rem;font-weight:800;letter-spacing:.15em;text-transform:uppercase}.hfs-hero h1{margin:0;font-size:clamp(2.7rem,6vw,5.7rem);line-height:1.04;letter-spacing:-.055em}.hfs-hero h1 span{color:var(--hfs-green)}.hfs-lead{max-width:38rem;margin:1.5rem 0 2rem;font-size:1.08rem;line-height:1.9;color:#4f625c}.hfs-primary{display:inline-flex;padding:.95rem 1.4rem;border-radius:999px;background:var(--hfs-ink);color:#fff;text-decoration:none;font-weight:800;box-shadow:0 8px 0 #a8cbbd}.hfs-primary:hover{transform:translateY(2px);box-shadow:0 6px 0 #a8cbbd}
.hfs-section{padding:5rem 0}.hfs-soft{background:#eef7f2}.hfs-layout{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(300px,.8fr);gap:2rem;align-items:start}.hfs-panel,.hfs-result{border:1px solid var(--hfs-line);border-radius:24px;background:#fff;padding:clamp(1.3rem,3vw,2.2rem);box-shadow:0 14px 40px rgba(24,49,43,.07)}.hfs-panel-head p{margin:0;color:var(--hfs-coral);font-size:.72rem;font-weight:900;letter-spacing:.15em}.hfs-panel-head h2{margin:.3rem 0 1.25rem;font-size:1.45rem}.hfs-step{margin-top:2.6rem}.hfs-format-grid{display:grid;grid-template-columns:1fr 1fr;gap:.8rem}.hfs-format-grid label,.hfs-settings label{display:flex;justify-content:space-between;align-items:center;gap:.7rem;padding:1rem;border:1px solid var(--hfs-line);border-radius:14px;font-weight:700}.hfs-format-grid small{display:block;margin-top:.2rem;color:#7a8a85;font-weight:500}.hfs-page input{width:5rem;border:1px solid #b9c8c1;border-radius:9px;padding:.55rem;text-align:right;font:inherit;color:var(--hfs-ink);background:#fff}.hfs-page input:focus{outline:3px solid #c7eadb;border-color:var(--hfs-green)}.hfs-settings{display:grid;grid-template-columns:1fr 1fr;gap:.8rem}.hfs-hint,.hfs-caution,.hfs-ad-note{font-size:.82rem;line-height:1.7;color:#697872}.hfs-result{position:sticky;top:1.5rem;background:var(--hfs-ink);color:#fff}.hfs-result-kicker{margin:0;color:#a9d8c5;font-weight:800}.hfs-main-result{display:flex;align-items:baseline;gap:.7rem;margin:1rem 0 0}.hfs-main-result strong{font-size:5rem;line-height:1;color:#f3c56d}.hfs-main-result span{font-size:1.05rem;font-weight:700}.hfs-summary{margin:.4rem 0 1.4rem;color:#c9d8d3}.hfs-result dl{margin:0}.hfs-result dl div{display:flex;justify-content:space-between;padding:.8rem 0;border-top:1px solid rgba(255,255,255,.14)}.hfs-result dd{margin:0;font-weight:800}.hfs-status{margin-top:1rem;padding:.85rem 1rem;border-radius:12px;background:#dff3e9;color:#174739;font-weight:800}.hfs-status.is-warning{background:#ffe1d6;color:#7b2f1d}.hfs-actions{display:grid;grid-template-columns:1fr 1fr;gap:.6rem;margin-top:1rem}.hfs-actions button{border:1px solid rgba(255,255,255,.35);border-radius:10px;padding:.75rem;background:transparent;color:#fff;font:inherit;font-weight:700;cursor:pointer}.hfs-actions button:hover{background:rgba(255,255,255,.1)}.hfs-action-message{min-height:1.3em;margin:.5rem 0 0;color:#f3c56d;font-size:.82rem}.hfs-caution{color:#b9c9c4}
.hfs-section-title{margin:.2rem 0 2rem;font-size:clamp(1.9rem,4vw,3rem)}.hfs-product-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}.hfs-product-grid article{display:flex;flex-direction:column;padding:1.5rem;border-radius:18px;background:#fff;border:1px solid var(--hfs-line)}.hfs-product-grid span{align-self:flex-start;padding:.25rem .55rem;border-radius:99px;background:var(--hfs-mint);font-size:.72rem;font-weight:800}.hfs-product-grid h3{margin:1rem 0 .4rem}.hfs-product-grid p{color:#63736d;line-height:1.7}.hfs-product-grid a,.hfs-comilog a{margin-top:auto;color:var(--hfs-green);font-weight:900}.hfs-info-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem}.hfs-info-grid article{padding:2rem;border:1px solid var(--hfs-line);border-radius:20px;line-height:1.85}.hfs-info-grid h2{margin:.3rem 0 1rem}.hfs-comilog{background:var(--hfs-cream)}.hfs-faq{padding-top:2rem}.hfs-faq details{max-width:850px;border-top:1px solid var(--hfs-line);padding:1.1rem 0}.hfs-faq summary{cursor:pointer;font-weight:800}.hfs-faq details p{color:#5f6f69;line-height:1.8}
@media(max-width:850px){.hfs-layout,.hfs-info-grid{grid-template-columns:1fr}.hfs-result{position:static}.hfs-product-grid{grid-template-columns:1fr}.hfs-hero{padding-top:3.5rem}}
@media(max-width:560px){.hfs-format-grid,.hfs-settings{grid-template-columns:1fr}.hfs-hero h1{font-size:2.8rem}.hfs-actions{grid-template-columns:1fr}}

/* Result wording and labels are intentionally plain so the answer is clear at a glance. */
.hfs-settings small{display:block;margin-right:auto;color:#7a8a85;font-weight:500}
.hfs-shelf-type{margin:1rem 0 .15rem;color:#c9d8d3;font-size:.92rem}
.hfs-main-result{margin:.2rem 0 0}
.hfs-main-result strong{font-size:clamp(2rem,4vw,3rem);line-height:1.2}
.hfs-summary{margin:.7rem 0 1.4rem;color:#fff;line-height:1.65}
.hfs-result dl div{gap:1rem}
.hfs-result dd{text-align:right}
.hfs-status{line-height:1.55}

/* Keep Japanese copy together by meaning, not at arbitrary character positions. */
.hfs-hero h1{font-size:clamp(2.3rem,5vw,4.5rem);line-height:1.12;line-break:strict;text-wrap:balance}
.hfs-hero h1 span{color:inherit}
.hfs-title-line{display:block}
.hfs-title-accent,.hfs-title-tail{display:inline-block;white-space:nowrap}
.hfs-hero h1 .hfs-title-accent{color:var(--hfs-green)}
.hfs-label-copy{min-width:0}
.hfs-settings .hfs-label-copy small{margin-right:0}
.hfs-field{flex:0 0 auto;white-space:nowrap}
.hfs-main-result strong{font-size:clamp(1.75rem,3vw,2.5rem)}
.hfs-main-result strong span{display:block;color:inherit;font-size:inherit;font-weight:inherit;white-space:nowrap}
.hfs-result dl div{display:grid;grid-template-columns:minmax(0,1fr) max-content;align-items:baseline;line-height:1.5}
.hfs-result dd{white-space:nowrap}
.hfs-lead,.hfs-summary,.hfs-status{line-break:strict;overflow-wrap:anywhere;text-wrap:pretty}
.hfs-panel-head h2,.hfs-section-title,.hfs-info-grid h2,.hfs-product-grid h3{line-break:strict;overflow-wrap:anywhere;text-wrap:balance}
@media(max-width:560px){.hfs-title-accent,.hfs-title-tail{display:block}.hfs-settings label{align-items:center}}

/* ComiLog web/app choice and the bottom app prompt. */
.hfs-comilog-actions{display:grid;grid-template-columns:1fr auto;align-items:center;gap:1rem;margin-top:1.4rem}
.hfs-comilog .hfs-comilog-link{display:flex;flex-direction:column;justify-content:center;min-height:76px;margin:0;padding:.8rem 1rem;border:1px solid var(--hfs-line);border-radius:14px;text-decoration:none;line-height:1.35}
.hfs-comilog-link span{font-size:.72rem;font-weight:700;color:#6b7c75}
.hfs-comilog-link strong{margin-top:.2rem;color:var(--hfs-green);font-size:.98rem}
.hfs-google-play-link{display:inline-block;margin-top:0!important;transition:opacity .2s}
.hfs-google-play-link:hover{opacity:.9}
.hfs-google-play-badge{display:block;width:auto;height:56px}
.hfs-comilog-promo[hidden]{display:none!important}
.hfs-comilog-promo{position:fixed;left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom,0px));z-index:150;display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:12px;max-width:480px;min-height:74px;margin:0 auto;padding:10px 42px 10px 12px;border:1px solid rgba(24,49,43,.12);border-radius:18px;background:rgba(255,255,255,.97);box-shadow:0 14px 32px rgba(24,49,43,.22);backdrop-filter:blur(10px)}
.hfs-comilog-promo-icon{width:48px;height:48px;border-radius:12px;object-fit:cover;box-shadow:0 6px 14px rgba(24,49,43,.16)}
.hfs-comilog-promo-copy{min-width:0;display:flex;flex-direction:column;color:var(--hfs-ink);text-decoration:none;line-height:1.35}
.hfs-comilog-promo-copy strong{font-size:.92rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hfs-comilog-promo-copy span{font-size:.7rem;color:#687973}
.hfs-comilog-promo-store{display:inline-block}
.hfs-comilog-promo-store img{display:block;width:auto;height:40px}
.hfs-comilog-promo-close{position:absolute;top:6px;right:6px;bottom:auto;width:32px;height:32px;border:1px solid rgba(24,49,43,.12);border-radius:50%;background:#fff;color:#65766f;font-size:1.15rem;line-height:1;cursor:pointer;box-shadow:0 4px 10px rgba(24,49,43,.14)}
body.has-hfs-comilog-promo .site-footer{padding-bottom:calc(32px + var(--hfs-comilog-promo-height,0px) + env(safe-area-inset-bottom,0px))}
@media(max-width:560px){.hfs-comilog-actions{grid-template-columns:1fr}.hfs-google-play-badge{height:50px}.hfs-comilog-promo{left:10px;right:10px;bottom:calc(10px + env(safe-area-inset-bottom,0px));grid-template-columns:42px minmax(0,1fr) auto;gap:9px;padding:9px 39px 9px 9px}.hfs-comilog-promo-icon{width:42px;height:42px}.hfs-comilog-promo-copy strong{font-size:.82rem}.hfs-comilog-promo-copy span{font-size:.64rem}.hfs-comilog-promo-store img{height:34px}.hfs-comilog-promo-close{top:4px;right:4px}}

/* Shopping links inherit the user's calculated conditions. */
.hfs-shopping-head{display:flex;justify-content:space-between;align-items:end;gap:1.5rem;margin-bottom:.75rem}
.hfs-shopping-head .hfs-section-title{margin-bottom:0}
.hfs-store-picker{display:inline-flex;flex:0 0 auto;padding:4px;border:1px solid var(--hfs-line);border-radius:999px;background:#fff}
.hfs-store-picker button{min-height:40px;padding:0 17px;border:0;border-radius:999px;background:transparent;color:#5e6f69;font:inherit;font-size:.84rem;font-weight:800;cursor:pointer}
.hfs-store-picker button[aria-pressed="true"]{background:var(--hfs-ink);color:#fff;box-shadow:0 4px 12px rgba(24,49,43,.18)}
.hfs-shopping-context{margin:0 0 1.5rem;padding:.9rem 1rem;border-left:4px solid var(--hfs-green);background:rgba(255,255,255,.7);color:#4d615a;line-height:1.7}
.hfs-product-grid article>span{white-space:nowrap}
.hfs-condition-list{display:flex;flex-wrap:wrap;gap:.4rem;margin:.25rem 0 1rem}
.hfs-condition-list b{display:inline-flex;padding:.3rem .55rem;border-radius:999px;background:var(--hfs-cream);color:#53665f;font-size:.7rem;line-height:1.35}
.hfs-query{margin:auto 0 .9rem!important;padding:.75rem;border-radius:10px;background:#f5f8f6;color:#5a6b65!important;line-height:1.5!important}
.hfs-query small,.hfs-query strong{display:block}
.hfs-query small{font-size:.68rem}.hfs-query strong{margin-top:.15rem;color:var(--hfs-ink);font-size:.78rem;overflow-wrap:anywhere}
.hfs-product-grid a[data-shopping-link]{display:flex;align-items:center;justify-content:center;min-height:44px;margin-top:0;padding:.7rem 1rem;border-radius:11px;background:var(--hfs-green);color:#fff;text-align:center;text-decoration:none}
@media(max-width:720px){.hfs-shopping-head{align-items:stretch;flex-direction:column}.hfs-store-picker{align-self:flex-start}.hfs-store-picker button{min-height:38px;padding:0 15px}}
