/* 家族が亡くなったあとの手続きとデジタル遺品ガイド（digital-ihin.com）
   色はマレリークのリニューアル（青）にそろえ、ご相談のボタンだけマレリークのオレンジ */
:root {
  --ink: #23303a; --sub: #56636d; --line: #d9e3e8; --bg: #ffffff; --tint: #EFF7FA;
  --main: #245A78; --main-d: #1b4560; --cta: #b04e00; --cta-d: #8a3c00; --line-g: #06C755;
  --warn: #fff7e6; --warn-l: #f0c36d;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.9 "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif; }
a { color: var(--main); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* 頭 */
.hd { border-top: 5px solid var(--main); background: #fff; border-bottom: 1px solid var(--line); }
.hd-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.logo { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; line-height: 1.4; }
.logo-main { font-weight: 700; font-size: 20px; color: var(--main-d); }
.logo-sub { font-size: 13px; color: var(--sub); }
.hd-tel { text-decoration: none; color: var(--cta); font-weight: 700; font-size: 24px; line-height: 1.2; text-align: right; white-space: nowrap; }
.hd-tel small { display: block; font-size: 12px; color: var(--sub); font-weight: 400; }
.gnav { background: var(--main); }
.gnav ul { list-style: none; display: flex; margin: 0 auto; }
.gnav li { flex: 1; }
.gnav a { display: block; color: #fff; text-decoration: none; text-align: center; padding: 10px 4px; font-size: 15px; font-weight: 700; }
.gnav a:hover, .gnav a[aria-current] { background: var(--main-d); }
.menu { display: none; }

/* 現在地 */
.bc ol { list-style: none; margin: 0 auto; padding: 8px 16px; max-width: 1040px; font-size: 13px; color: var(--sub); display: flex; flex-wrap: wrap; }
.bc li + li::before { content: "›"; margin: 0 6px; }
.bc a { color: var(--sub); }

/* 本文 */
.main { padding-top: 12px; padding-bottom: 40px; }
h1 { font-size: 28px; line-height: 1.5; color: var(--main-d); margin: 8px 0 12px; }
h2 { font-size: 22px; line-height: 1.5; margin: 40px 0 12px; padding: 8px 12px; background: var(--tint); border-left: 6px solid var(--main); }
h3 { font-size: 19px; line-height: 1.5; margin: 28px 0 8px; padding-bottom: 4px; border-bottom: 2px solid var(--line); }
.lead { font-size: 18px; color: var(--sub); }
.post, .rel, .pager { max-width: 780px; margin-left: auto; margin-right: auto; }
.post .cat { margin: 0; font-size: 14px; }
.post .cat a { background: var(--tint); padding: 2px 10px; border-radius: 99px; text-decoration: none; }
.post .date { color: var(--sub); font-size: 14px; margin: 0 0 12px; }
.body p { margin: 0 0 1.1em; }
.body img { display: block; margin: 12px auto; max-width: min(100%, 560px); border-radius: 6px; }
.body figure { margin: 16px auto; text-align: center; }
.body figcaption { font-size: 14px; color: var(--sub); }
.body strong { background: linear-gradient(transparent 62%, #ffe58a 62%); }
.body h2 strong, .body h3 strong { background: none; }
.tbl { overflow-x: auto; margin: 16px 0; }
table { border-collapse: collapse; width: 100%; font-size: 16px; }
th, td { border: 1px solid var(--line); padding: 8px 10px; vertical-align: top; text-align: left; }
th { background: var(--tint); }
.note { background: var(--warn); border: 1px solid var(--warn-l); border-radius: 8px; padding: 10px 14px; font-size: 15px; }
.note.ok { background: #eef8ef; border-color: #9cd3a4; }
.update { background: #f3f8fd; border: 1px solid #9fc3e6; border-radius: 8px; padding: 10px 14px 4px; margin: 12px 0 20px; font-size: 15px; }
.update-h { font-weight: bold; color: var(--main, #1d5fa8); margin: 0 0 6px; }
.update ul { margin: 0 0 8px; padding-left: 1.3em; }
.update li { margin: 0 0 6px; line-height: 1.7; }
.yt { display: block; position: relative; max-width: 480px; margin: 16px auto; text-decoration: none; }
.yt img { display: block; margin: 0; max-width: 100%; }
.yt span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: #c00; color: #fff; padding: 8px 16px; border-radius: 8px; font-weight: 700; }

/* 一覧 */
.list, .guide, .sitemap { padding-left: 0; list-style: none; }
.list li { border-bottom: 1px solid var(--line); padding: 10px 0; display: flex; justify-content: space-between; gap: 12px; }
.list .d { color: var(--sub); font-size: 13px; white-space: nowrap; }
.guide { counter-reset: g; }
.guide li { counter-increment: g; border-bottom: 1px solid var(--line); padding: 10px 0 10px 44px; position: relative; }
.guide li::before { content: counter(g); position: absolute; left: 0; top: 10px; width: 32px; height: 32px; border-radius: 50%; background: var(--main); color: #fff; font-weight: 700; text-align: center; line-height: 32px; }
.sitemap li { padding: 4px 0; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; }
.pager a { flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; text-decoration: none; font-weight: 700; }
.pager .next { text-align: right; }
.pager a span { display: block; font-weight: 400; font-size: 14px; color: var(--ink); }

/* トップ */
.hero { background: linear-gradient(135deg, var(--tint), #fff); border-radius: 12px; padding: 24px 20px; margin: 8px 0 24px; }
.hero h1 { margin-top: 0; }
.hero p { margin: 0; }
.deadline td:first-child { font-weight: 700; color: var(--main-d); white-space: nowrap; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 16px 0; }
.cards a { display: block; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; text-decoration: none; color: var(--ink); background: #fff; }
.cards a:hover { border-color: var(--main); }
.cards b { display: block; color: var(--main-d); font-size: 18px; margin-bottom: 4px; }
.cards span { font-size: 15px; color: var(--sub); line-height: 1.7; display: block; }
.box { border: 1px solid var(--line); border-radius: 10px; padding: 4px 18px; margin: 16px 0; }
.check { list-style: none; padding-left: 0; }
.check li { padding: 6px 0 6px 34px; position: relative; border-bottom: 1px dashed var(--line); }
.check li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 18px; height: 18px; border: 2px solid var(--main); border-radius: 3px; }
.check small { display: block; color: var(--sub); }
dl.faq dt { font-weight: 700; margin-top: 20px; padding-left: 34px; position: relative; color: var(--main-d); }
dl.faq dt::before { content: "Q"; position: absolute; left: 0; top: 0; width: 26px; height: 26px; line-height: 26px; text-align: center; border-radius: 50%; background: var(--main); color: #fff; font-size: 14px; }
dl.faq dd { margin: 6px 0 0; padding: 0 0 12px 34px; border-bottom: 1px solid var(--line); }
.print-btn { font: inherit; font-weight: 700; background: var(--main); color: #fff; border: 0; border-radius: 8px; padding: 10px 20px; cursor: pointer; }

/* ご相談 */
.consult { background: var(--tint); border-top: 1px solid var(--line); padding: 28px 0; }
.consult-h { font-size: 22px; font-weight: 700; color: var(--main-d); margin: 0 0 6px; text-align: center; }
.consult-t { text-align: center; margin: 0 0 16px; }
.consult-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn { display: block; min-width: 260px; text-align: center; text-decoration: none; color: #fff; font-weight: 700; font-size: 22px; line-height: 1.3; border-radius: 10px; padding: 10px 16px; }
.btn small { display: block; font-size: 13px; font-weight: 400; }
.btn-tel { background: var(--cta); }
.btn-tel:hover { background: var(--cta-d); }
.btn-line { background: var(--line-g); }
.btn-web { background: var(--main); }
.consult-n { text-align: center; font-size: 15px; margin: 14px 0 0; }

/* 足 */
.ft { background: var(--main-d); color: #fff; padding: 28px 0 80px; font-size: 15px; }
.ft a { color: #fff; }
.ft-in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 20px; }
.ft-name { font-weight: 700; margin: 0 0 6px; }
.ft address { font-style: normal; line-height: 1.8; }
.ft ul { list-style: none; padding: 0; margin: 0; }
.ft li { padding: 2px 0; }
.copy { text-align: center; font-size: 13px; opacity: .8; margin: 20px 0 0; }
.spbar { display: none; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .logo-main { font-size: 16px; }
  .logo-sub { font-size: 12px; }
  .hd-tel { display: none; }
  .gnav { display: none; }
  .hd { position: relative; }
  .hd-in { padding-right: 70px; }
  .menu { display: block; position: absolute; right: 8px; top: 12px; }
  .menu summary { list-style: none; cursor: pointer; font-size: 26px; line-height: 1; text-align: center; color: var(--main-d); width: 54px; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu summary span { display: block; font-size: 10px; }
  .menu ul { position: absolute; right: 0; top: 52px; z-index: 10; background: #fff; border: 1px solid var(--line); border-radius: 8px; list-style: none; margin: 0; padding: 4px 0; width: 240px; box-shadow: 0 6px 20px rgba(0,0,0,.15); }
  .menu a { display: block; padding: 10px 16px; text-decoration: none; font-weight: 700; }
  h1 { font-size: 23px; }
  h2 { font-size: 19px; }
  h3 { font-size: 17px; }
  .cards { grid-template-columns: 1fr; }
  table { font-size: 15px; }
  th, td { padding: 6px 6px; }
  .deadline td:first-child { white-space: normal; width: 5.5em; }
  .list li { flex-direction: column; gap: 0; }
  .pager { flex-direction: column; }
  .btn { min-width: 0; width: 100%; font-size: 20px; }
  .ft-in { grid-template-columns: 1fr; }
  .spbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; }
  .spbar a { flex: 1; text-align: center; color: #fff; text-decoration: none; font-weight: 700; padding: 6px 0 4px; line-height: 1.3; }
  .spbar small { display: block; font-size: 10px; font-weight: 400; }
  .sp-tel { background: var(--cta); }
  .sp-line { background: var(--line-g); }
  .sp-web { background: var(--main); }
}

@page { size: A4; margin: 14mm 14mm; }
@media print {
  .hd-tel, .gnav, .menu, .bc, .consult, .ft, .spbar, .print-btn, .noprint { display: none !important; }
  body { font-size: 12pt; line-height: 1.6; }
  .hd { border: 0; }
  h2 { background: none; border-left: 4px solid #000; margin-top: 16px; break-after: avoid; }
  .check li { break-inside: avoid; padding: 3px 0 3px 30px; }
  .check li::before { top: 6px; }
  h1 { margin: 8px 0; } .lead { font-size: 11pt; margin: 4px 0; }
}
