/* ヒヤリノート：手書きノート風スタイル（.hn-wrap 以下に限定） */
.hn-wrap {
	--hn-ink: #26252c;
	--hn-muted: #5e5b66;
	--hn-blue: #1e4fb8;
	--hn-red: #d02a2a;
	--hn-green: #2e7d5b;
	--hn-orange: #b5600a;
	--hn-line: #dce3ec;
	box-sizing: border-box;
	max-width: 1160px;
	margin: 0 auto;
	padding: 24px 20px 64px;
	color: var(--hn-ink);
	font-family: 'Zen Maru Gothic', system-ui, sans-serif;
	font-size: 16px;
	line-height: 1.8;
}
.hn-wrap *, .hn-wrap *::before, .hn-wrap *::after { box-sizing: border-box; }
.hn-wrap p { margin: 0; }
.hn-wrap a { color: var(--hn-blue); }
.hn-wrap a:focus-visible, .hn-wrap button:focus-visible, .hn-wrap input:focus-visible { outline: 3px solid var(--hn-blue); outline-offset: 2px; }

/* 方眼紙・マーカー */
.hn-grid {
	background-color: #fcfcfa;
	background-image: linear-gradient(var(--hn-line) 1px, transparent 1px), linear-gradient(90deg, var(--hn-line) 1px, transparent 1px);
	background-size: 24px 24px;
}
.hn-hand { border-radius: 255px 12px 225px 12px / 12px 225px 12px 255px; }
.hn-my { background: linear-gradient(transparent 50%, #ffe066 50%); }
.hn-mo { background: linear-gradient(transparent 50%, #ffc08a 50%); }
.hn-mg { background: linear-gradient(transparent 45%, #a6eb8f 45%); }
.hn-mb { background: linear-gradient(transparent 50%, #a8e6f2 50%); }
.hn-tag { display: inline-block; padding: 0 10px; border-radius: 999px / 60%; }
.hn-blue { color: var(--hn-blue); font-weight: 600; }
.hn-red { color: var(--hn-red); font-weight: 600; }
.hn-c-blue { color: var(--hn-blue); }
.hn-c-red { color: var(--hn-red); }
.hn-c-orange { color: var(--hn-orange); }
.hn-c-green { color: var(--hn-green); }
.hn-muted { color: var(--hn-muted); }

/* 共通パーツ */
.hn-crumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; font-size: 14px; color: var(--hn-muted); }
.hn-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; line-height: 1.6; }
.hn-no { color: var(--hn-muted); }
.hn-chip { display: inline-block; padding: 2px 10px; font-weight: 700; border-radius: 999px; }
.hn-chip-scene { color: #fff; background: var(--hn-blue); }
.hn-chip-type { color: var(--hn-ink); background: #ffe066; }
.hn-tags a { margin-right: 6px; color: var(--hn-muted); text-decoration: none; }
.hn-tags a:hover { text-decoration: underline; }

/* ノート本体 */
.hn-sheet {
	display: flex;
	flex-direction: column;
	gap: 36px;
	padding: 44px 44px 52px;
	border-radius: 6px;
	box-shadow: 0 14px 40px rgba(38, 37, 44, 0.12);
	font-family: 'Klee One', serif;
	font-size: 17px;
	line-height: 1.9;
}
.hn-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.hn-head-main { display: flex; flex-direction: column; gap: 8px; font-family: 'Zen Maru Gothic', sans-serif; }
.hn-title { margin: 0; font-family: 'Klee One', serif; font-size: clamp(24px, 4vw, 34px); font-weight: 600; line-height: 1.4; }
.hn-insta { font-family: 'Zen Maru Gothic', sans-serif; font-size: 14px; font-weight: 700; }

.hn-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-family: 'Zen Kurenaido', sans-serif; font-size: 17px; }
.hn-flow > span:not([aria-hidden]) { padding: 4px 14px; background: #fff; border: 2px solid var(--hn-ink); border-radius: 8px; }

.hn-row { display: flex; flex-wrap: wrap; gap: 36px; align-items: flex-start; }
.hn-figure { flex: 1 1 360px; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.hn-illust { display: block; width: 100%; height: auto; }
.hn-illust-empty { display: flex; align-items: center; justify-content: center; min-height: 260px; border: 2px dashed #b9c2cf; color: var(--hn-muted); font-family: 'Zen Maru Gothic', sans-serif; font-size: 14px; }
.hn-figure figcaption { font-family: 'Zen Kurenaido', sans-serif; font-size: 14px; color: var(--hn-muted); }
.hn-col { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }

.hn-h { margin: 6px 0 0; font-family: 'Klee One', serif; font-size: 22px; font-weight: 600; line-height: 1.6; }
.hn-li { margin: 0; }
.hn-arrow { padding-left: 20px; font-family: 'Zen Kurenaido', sans-serif; font-size: 18px; color: var(--hn-blue); }
.hn-sub { font-family: 'Zen Kurenaido', sans-serif; color: var(--hn-muted); }

.hn-sec { display: flex; flex-direction: column; gap: 12px; }
.hn-factors { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.hn-box { padding: 16px 20px; border: 2px solid var(--hn-ink); background: rgba(255, 255, 255, 0.7); }
.hn-box-h { font-weight: 600; }

.hn-important-row { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.hn-important { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 24px 32px; border: 3px solid var(--hn-red); background: rgba(255, 255, 255, 0.85); }
.hn-important-h { font-size: 22px; font-weight: 600; color: var(--hn-red); }
.hn-important-main { font-size: 24px; font-weight: 600; line-height: 1.6; }
.hn-important-sub { font-size: 19px; }
.hn-side-note { flex: 0 1 260px; transform: rotate(-4deg); font-family: 'Zen Kurenaido', sans-serif; font-size: 22px; line-height: 1.6; }

.hn-prevent-row { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.hn-prevent { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.hn-sticky { flex: 0 1 300px; min-width: 0; padding: 20px 22px; background: #fff3a8; transform: rotate(2deg); box-shadow: 0 8px 18px rgba(38, 37, 44, 0.12); font-family: 'Zen Kurenaido', sans-serif; font-size: 17px; line-height: 1.8; }
.hn-sticky-h { margin-bottom: 6px !important; font-weight: 700; }

.hn-quiz { display: flex; flex-direction: column; gap: 14px; padding: 24px 28px; border: 2px dashed var(--hn-blue); border-radius: 8px; background: rgba(255, 255, 255, 0.8); }
.hn-quiz-opts { display: flex; flex-direction: column; gap: 10px; }
.hn-quiz-opt {
	min-height: 48px; padding: 12px 18px; text-align: left; cursor: pointer;
	font: inherit; font-size: 17px; line-height: 1.6; color: var(--hn-ink);
	background: #fff; border: 2px solid var(--hn-ink); border-radius: 10px;
}
.hn-quiz-opt.is-correct { background: #e3f6e6; border-color: var(--hn-green); }
.hn-quiz-opt.is-wrong { background: #fde7e7; border-color: var(--hn-red); }
.hn-quiz-result { padding: 14px 18px; background: #fff; border-radius: 8px; }
.hn-quiz-verdict { font-weight: 600; }
.hn-quiz-verdict.is-correct { color: var(--hn-green); }
.hn-quiz-verdict.is-wrong { color: var(--hn-red); }

.hn-history { padding-top: 12px; border-top: 1px dashed #b9c2cf; font-family: 'Zen Maru Gothic', sans-serif; font-size: 14px; color: var(--hn-muted); }
.hn-history-h { font-weight: 700; }
.hn-history ul { margin: 4px 0 0; padding-left: 1.2em; }

/* 会員限定部分 */
.hn-locked { display: flex; flex-direction: column; align-items: center; }
.hn-locked-blur { align-self: stretch; filter: blur(5px); user-select: none; display: flex; flex-direction: column; gap: 8px; }
.hn-locked-box {
	position: relative; z-index: 1; margin-top: -80px;
	width: min(640px, 100%); padding: 28px 32px;
	background: #fff; border: 2px solid var(--hn-ink); border-radius: 14px;
	box-shadow: 0 14px 40px rgba(38, 37, 44, 0.16);
	font-family: 'Zen Maru Gothic', sans-serif; font-size: 15px;
}
.hn-locked-title { margin-bottom: 16px !important; font-size: 20px; font-weight: 700; text-align: center; }

.hn-pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 20px; font-size: 15px; font-weight: 700; }
.hn-pager a { padding: 14px 20px; background: #fff; border: 1px solid #e4e0d5; border-radius: 10px; text-decoration: none; }

/* 一覧 */
.hn-list-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.hn-list-title { margin: 0; font-family: 'Klee One', serif; font-size: clamp(28px, 4vw, 38px); font-weight: 600; line-height: 1.4; }
.hn-list-head p { color: #4a4852; }

.hn-filter { display: flex; flex-direction: column; gap: 18px; padding: 24px 28px; background: #fff; border: 1px solid #e4e0d5; border-radius: 14px; }
.hn-search label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; }
.hn-search-row { display: flex; flex-wrap: wrap; gap: 10px; }
.hn-search input[type="search"] { flex: 1 1 280px; min-width: 0; height: 52px; padding: 0 16px; font: inherit; font-size: 16px; border: 2px solid var(--hn-ink); border-radius: 10px; background: #fff; }
.hn-search button { height: 52px; padding: 0 24px; font: inherit; font-size: 15px; font-weight: 700; color: #fff; background: var(--hn-ink); border: none; border-radius: 10px; cursor: pointer; }
.hn-chips-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hn-chips-label { width: 48px; font-size: 14px; font-weight: 700; }
.hn-chips { flex: 1 1 560px; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hn-fchip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; font-size: 14px; font-weight: 700; color: var(--hn-ink) !important; text-decoration: none; background: #fff; border: 2px solid #cfcac0; border-radius: 999px; }
.hn-fchip.is-on { color: #fff !important; background: var(--hn-ink); border-color: var(--hn-ink); }

.hn-count-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 24px 0 16px; }
.hn-count { font-weight: 700; }
.hn-clear { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; font-size: 14px; border: 2px solid var(--hn-blue); border-radius: 999px; text-decoration: none; }

.hn-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.hn-card { display: flex; flex-direction: column; overflow: hidden; color: var(--hn-ink) !important; text-decoration: none !important; background: #fff; border-radius: 10px; box-shadow: 0 8px 22px rgba(38, 37, 44, 0.1); transition: transform 0.15s; }
.hn-card:hover { transform: translateY(-3px); }
.hn-card-top { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 10px; min-height: 170px; padding: 22px 24px; border-bottom: 1px solid #e4e0d5; background-size: 20px 20px; }
.hn-tape { position: absolute; top: -4px; left: 24px; width: 80px; height: 22px; background: rgba(255, 224, 102, 0.85); transform: rotate(-4deg); }
.hn-new { position: absolute; top: 14px; right: 16px; padding: 2px 10px; font-size: 12px; font-weight: 700; color: #fff; background: var(--hn-red); border-radius: 999px; }
.hn-card-label { font-family: 'Zen Kurenaido', sans-serif; font-size: 15px; color: var(--hn-red); }
.hn-card-key { font-family: 'Klee One', serif; font-size: 21px; font-weight: 600; line-height: 1.5; }
.hn-card-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 22px 20px; }
.hn-card-title { font-size: 18px; font-weight: 700; line-height: 1.5; }
.hn-card-tags { font-size: 13px; color: var(--hn-muted); }

.hn-pagination { margin-top: 32px; text-align: center; }
.hn-pagination .page-numbers { display: inline-block; min-width: 44px; margin: 0 2px; padding: 10px 12px; border-radius: 8px; text-decoration: none; }
.hn-pagination .page-numbers.current { color: #fff; background: var(--hn-ink); }
.hn-empty { padding: 48px 24px; text-align: center; border-radius: 12px; font-family: 'Klee One', serif; font-size: 18px; }

/* 会員バー */
.hn-member-bar { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 13px; color: var(--hn-muted); }
.hn-member-cta { padding: 6px 14px; font-weight: 700; color: #fff !important; text-decoration: none; background: var(--hn-red); border-radius: 999px; }

/* 登録フォーム */
.hn-form-wrap { display: flex; flex-direction: column; gap: 14px; font-family: 'Zen Maru Gothic', sans-serif; }
.hn-form { display: flex; flex-direction: column; gap: 14px; }
.hn-form-row { display: flex; flex-wrap: wrap; gap: 14px; }
.hn-form-row .hn-field { flex: 1 1 200px; min-width: 0; }
.hn-field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.hn-field label { font-size: 14px; font-weight: 700; }
.hn-req { color: var(--hn-red); }
.hn-field input, .hn-field select {
	width: 100%; height: 50px; padding: 0 14px; font: inherit; font-size: 16px; color: var(--hn-ink);
	background: #fff; border: 2px solid var(--hn-ink); border-radius: 10px;
}
.hn-consent { margin: 0; font-size: 14px; }
.hn-consent input { width: 18px; height: 18px; margin-right: 6px; vertical-align: -3px; }
.hn-btn { min-height: 54px; padding: 0 28px; font: inherit; font-size: 16px; font-weight: 700; color: #fff; background: var(--hn-red); border: none; border-radius: 10px; cursor: pointer; }
.hn-btn:hover { filter: brightness(0.95); }
.hn-btn-sub { min-height: 46px; background: var(--hn-ink); align-self: flex-start; }
.hn-note { margin: 0; font-size: 13px; line-height: 1.7; color: var(--hn-muted); }
.hn-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.hn-relogin { font-size: 14px; }
.hn-relogin summary { cursor: pointer; font-weight: 700; color: var(--hn-blue); }
.hn-form-mini { margin-top: 12px; }
.hn-msg { margin: 0; padding: 12px 16px; font-size: 14px; line-height: 1.7; border-radius: 10px; }
.hn-msg-ok { color: #1f5c43; background: #e3f6e6; border: 2px solid var(--hn-green); }
.hn-msg-err { color: #8c1c1c; background: #fde7e7; border: 2px solid var(--hn-red); }
.hn-wrap-inline { padding: 0; }

/* 登録ページ */
.hn-lp { display: flex; flex-direction: column; gap: 56px; }
.hn-lp-hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.hn-lp-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hn-lp-badge { align-self: flex-start; padding: 6px 14px; font-size: 13px; font-weight: 700; color: var(--hn-red); background: #fff; border: 2px solid var(--hn-red); border-radius: 999px; }
.hn-lp-title { margin: 0; font-family: 'Klee One', serif; font-size: clamp(30px, 5vw, 44px); font-weight: 600; line-height: 1.5; }
.hn-lp-lead { color: #4a4852; }
.hn-lp-teaser-wrap { flex: 1 1 380px; min-width: 0; display: flex; justify-content: center; padding-top: 24px; }
.hn-lp-teaser { position: relative; width: 100%; max-width: 440px; padding: 36px 32px; transform: rotate(-2deg); border-radius: 4px; box-shadow: 0 18px 40px rgba(38, 37, 44, 0.14); font-family: 'Klee One', serif; font-size: 17px; line-height: 1.9; overflow: hidden; }
.hn-lp-teaser .hn-tape { left: 50%; margin-left: -40px; }
.hn-lp-teaser-title { margin: 4px 0 8px !important; font-size: 22px; font-weight: 600; }
.hn-lp-teaser-lock { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 16px 28px; text-align: center; font-family: 'Zen Maru Gothic', sans-serif; font-weight: 700; background: linear-gradient(rgba(252,252,250,0), rgba(252,252,250,0.96) 45%); }
.hn-lp-sec { display: flex; flex-direction: column; gap: 24px; }
.hn-lp-h { margin: 0; text-align: center; font-family: 'Klee One', serif; font-size: 30px; font-weight: 600; }
.hn-lp-stickies { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.hn-lp-sticky { padding: 22px; box-shadow: 0 8px 18px rgba(38, 37, 44, 0.1); font-size: 15px; }
.hn-lp-sticky:nth-child(odd) { transform: rotate(-1.2deg); }
.hn-lp-sticky:nth-child(even) { transform: rotate(1.2deg); }
.hn-lp-sticky-h { margin-bottom: 8px !important; font-family: 'Klee One', serif; font-size: 20px; font-weight: 600; }
.hn-lp-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; counter-reset: hn-step; }
.hn-lp-steps li { counter-increment: hn-step; display: flex; flex-direction: column; gap: 6px; padding: 24px; background: #fff; border: 1px solid #e4e0d5; border-radius: 12px; }
.hn-lp-steps li::before { content: counter(hn-step); display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; background: var(--hn-ink); font-weight: 700; }
.hn-lp-steps span { font-size: 14px; color: var(--hn-muted); }
.hn-lp-disclaimer { font-size: 13px; color: var(--hn-muted); }

@media (max-width: 640px) {
	.hn-locked-box { padding: 22px 18px; }
	.hn-lp-teaser { transform: none; }
	.hn-sheet { padding: 28px 18px 36px; gap: 28px; }
	.hn-important { padding: 20px; }
	.hn-important-main { font-size: 21px; }
	.hn-side-note, .hn-sticky { transform: none; }
	.hn-filter { padding: 20px; }
}
