/* ひとりでやらない実家じまい 共通スタイル */
:root{
  --navy:#2b3a2f; --navy-d:#18221b; --gold:#b98a4a; --gold-l:#e6c99a;
  --ink:#1f2622; --muted:#5d6861; --line:#e2e5e0; --bg:#ffffff; --soft:#f5f6f2;
  --wrap:760px; --stamp:#b5452f;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0; background:var(--bg); color:var(--ink);
  font-family:"Noto Sans JP",-apple-system,BlinkMacSystemFont,"Hiragino Sans","Yu Gothic",sans-serif;
  font-size:17px; line-height:1.95; letter-spacing:.01em; overflow-x:hidden;
}
.wrap{max-width:var(--wrap); margin:0 auto; padding:0 20px}
a{color:var(--navy)}
.pr-bar{background:#efe9dc; color:#5a5040; font-size:12.5px; padding:8px 16px; text-align:center; letter-spacing:.02em; line-height:1.6}
header{background:var(--navy); color:#fff}
.hd{display:flex; align-items:center; justify-content:space-between; gap:16px; padding:20px 20px; max-width:var(--wrap); margin:0 auto}
.logo{color:#fff; text-decoration:none; font-family:"Noto Serif JP",serif; font-weight:700; font-size:27px; line-height:1.3; letter-spacing:.04em}
.logo span{color:var(--gold-l)}
.hd-cta{
  color:var(--navy-d); background:var(--gold-l); text-decoration:none;
  font-weight:700; font-size:14px; padding:9px 16px; border-radius:6px; white-space:nowrap;
}
.crumb{font-size:13px; color:var(--muted); padding:14px 0 0}
.crumb a{color:var(--muted)}
article{padding:0 0 8px}
h1{
  font-family:"Noto Serif JP",serif; font-weight:700; color:var(--navy);
  font-size:30px; line-height:1.5; margin:22px 0 10px;
}
.lede{color:var(--muted); font-size:15px; margin:0 0 30px; padding-bottom:24px; border-bottom:1px solid var(--line)}
.upd{font-size:13px; color:var(--muted); margin:-20px 0 28px}
h2{
  font-family:"Noto Serif JP",serif; font-weight:700; color:var(--navy);
  font-size:23px; line-height:1.6; margin:52px 0 16px;
  padding-left:14px; border-left:5px solid var(--gold);
}
h3{font-weight:700; color:var(--navy); font-size:19px; line-height:1.6; margin:36px 0 10px}
p{margin:0 0 20px}
strong{font-weight:700; background:linear-gradient(transparent 62%, rgba(230,201,154,.6) 62%)}
ul,ol{margin:0 0 22px; padding-left:1.4em}
li{margin-bottom:10px}
ol.ask{counter-reset:q; list-style:none; padding-left:0}
ol.ask li{
  counter-increment:q; position:relative; padding:14px 16px 14px 52px;
  background:var(--soft); border-radius:8px; margin-bottom:10px; line-height:1.8;
}
ol.ask li::before{
  content:counter(q); position:absolute; left:14px; top:14px;
  width:26px; height:26px; border-radius:50%; background:var(--navy); color:#fff;
  font-size:14px; font-weight:700; display:flex; align-items:center; justify-content:center;
}
.tbl{width:100%; overflow-x:auto; margin:0 0 24px}
table{width:100%; border-collapse:collapse; font-size:15px; line-height:1.7}
th,td{border:1px solid var(--line); padding:10px 12px; text-align:left; vertical-align:top}
th{background:var(--soft); font-weight:700; color:var(--navy)}
td.num{text-align:right; white-space:nowrap}
tr.total td{font-weight:700; background:#faf7f0}
.cta{
  display:block; text-align:center; text-decoration:none; font-weight:700;
  background:var(--navy); color:#fff; padding:18px 20px; border-radius:10px;
  margin:30px 0; line-height:1.6;
}
.cta.alt{background:#fff; color:var(--navy); border:2px solid var(--navy)}
.cta span{display:block; font-weight:400; font-size:13px; opacity:.85; margin-top:4px}
.box{background:var(--soft); border-radius:10px; padding:20px 22px; margin:0 0 24px}
.box p:last-child,.box ul:last-child{margin-bottom:0}
.warn{border-left:4px solid var(--gold); background:#fbf8f1; padding:16px 18px; border-radius:0 8px 8px 0; margin:0 0 24px}
.warn p:last-child{margin-bottom:0}
.sum{border:1px solid var(--line); border-radius:10px; padding:22px 24px; margin:30px 0}
.sum ul{margin:0; padding-left:1.2em}
.note{font-size:13px; color:var(--muted); line-height:1.85}
.src{font-size:13px; color:var(--muted); line-height:1.85; border-top:1px solid var(--line); margin-top:40px; padding-top:18px}
.src ul{padding-left:1.2em; margin:6px 0 0}
.src li{margin-bottom:4px}
.close{
  font-family:"Noto Serif JP",serif; font-weight:600; color:var(--navy);
  font-size:20px; line-height:1.8; text-align:center; margin:40px 0 10px;
}
/* トップ */
.hero{padding:26px 0 6px}
/* トップの全面写真＋重ねた見出し */
.hero-full{position:relative; height:clamp(460px,56vw,640px); overflow:hidden; background:var(--navy-d); color:#fff}
.hero-full img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center 30%}
.hero-full::after{content:""; position:absolute; inset:0; background:linear-gradient(to top, rgba(16,22,18,.82) 0%, rgba(16,22,18,.45) 34%, rgba(16,22,18,0) 62%)}
.hero-in{position:absolute; left:0; right:0; bottom:0; z-index:1; max-width:var(--wrap); margin:0 auto; padding:0 20px 46px}
.hero-full h1{color:#fff; font-size:44px; line-height:1.45; margin:0; letter-spacing:.04em; text-shadow:0 2px 18px rgba(0,0,0,.45)}
.hero-full .nw{white-space:nowrap}
.hero-full .credit{position:absolute; right:12px; bottom:6px; z-index:1; margin:0; font-size:11px; color:rgba(255,255,255,.75)}
.cards{display:grid; gap:14px; margin:0 0 24px}
.card{display:grid; grid-template-columns:auto 1fr; column-gap:20px; align-items:center; text-decoration:none; color:var(--ink); border:1px solid var(--line); border-radius:10px; padding:18px 20px; background:#fff}
.card:hover{border-color:var(--gold)}
.card b{grid-column:2; display:block; color:var(--navy); font-size:18px; line-height:1.6; margin-bottom:4px}
.card span{grid-column:2; font-size:14.5px; color:var(--muted); line-height:1.75; display:block}
/* はんこ風スタンプ */
.card em{
  grid-column:1; grid-row:1 / span 2; align-self:center;
  width:76px; height:76px; display:flex; align-items:center; justify-content:center;
  font-style:normal; font-family:"Noto Serif JP",serif; font-weight:700; font-size:25px; letter-spacing:.04em;
  color:var(--stamp); border:3px solid var(--stamp); border-radius:12px;
  box-shadow:inset 0 0 0 2px #fff, inset 0 0 0 4px var(--stamp);
  background:#fffaf6; opacity:.92;
}
.card:hover em{transform:scale(1.04)}
.svc{border:1px solid var(--line); border-radius:10px; padding:18px 20px; margin:0 0 16px}
.svc h3{margin:0 0 8px}
.svc ul{margin-bottom:12px}
.svc .links a{display:inline-flex; align-items:center; gap:8px; margin:6px 8px 0 0; padding:9px 14px; border-radius:6px; background:#fff8ec; color:#7a4e1c; border:2px solid var(--gold); text-decoration:none; font-size:14px; font-weight:700; transition:background .15s}
.svc .links a::after{content:"\2197"; font-size:13px; line-height:1}
.svc .links a:hover{background:var(--gold-l)}
.svc .links:empty::before{content:"相談先は、各社の条件を確認したうえで順次掲載します。"; font-size:13px; color:var(--muted)}
footer{background:var(--navy-d); color:#a9b5ab; margin-top:60px; padding:28px 0; font-size:13px}
.ft{display:flex; flex-wrap:wrap; gap:10px 22px; justify-content:space-between; align-items:center}
.ft a{color:#d3dbd4; text-decoration:none; margin-right:18px; display:inline-block}
.ft a:hover{text-decoration:underline}
@media(max-width:600px){
  body{font-size:16px; line-height:1.9}
  h1{font-size:25px}
  .hero-full{height:clamp(440px,118vw,560px)}
  .hero-full img{object-position:55% 12%}
  .hero-full h1{font-size:min(26px,6.5vw); letter-spacing:0}
  .hero-in{padding:0 18px 38px}
  h2{font-size:20px; margin-top:42px}
  h3{font-size:17.5px}
  .hd{padding:13px 16px}
  .logo{font-size:21px}
  .hd-cta{font-size:13px; padding:8px 12px}
  table{font-size:14px}
  th,td{padding:8px 9px}
  .ft{flex-direction:column; align-items:flex-start}
  .card{column-gap:16px; padding:16px}
  .card em{width:62px; height:62px; font-size:21px}
}
/* ページ写真 */
.photo{margin:18px 0 26px}
.photo img{width:100%; height:auto; aspect-ratio:3/2; object-fit:cover; border-radius:10px; display:block; background:var(--soft)}
.photo .msg{font-family:"Noto Serif JP",serif; font-weight:600; color:var(--navy); font-size:19px; line-height:1.7; margin:14px 0 2px}
.photo .credit{font-size:12px; color:var(--muted); margin:0}
.photo .credit a{color:var(--muted)}
@media(max-width:600px){ .photo .msg{font-size:17px} }

/* はんこ（共通） */
.stamp{
  width:76px; height:76px; display:flex; align-items:center; justify-content:center; flex:none;
  font-style:normal; font-family:"Noto Serif JP",serif; font-weight:700; font-size:25px; letter-spacing:.04em;
  color:var(--stamp); border:3px solid var(--stamp); border-radius:12px;
  box-shadow:inset 0 0 0 2px #fff, inset 0 0 0 4px var(--stamp); background:#fffaf6;
}
/* テーマから探す */
.topics{margin:8px 0 26px; padding:18px 18px 8px; border:1px solid var(--line); border-radius:12px; background:var(--soft); scroll-margin-top:12px}
.topics-ttl{margin:0 0 12px; font-weight:700; color:var(--navy); font-size:16px}
.topics-row{display:grid; grid-template-columns:repeat(5,1fr); gap:10px}
.topics-row a{display:flex; flex-direction:column; align-items:center; gap:4px; text-decoration:none; color:var(--muted); font-size:13px; font-weight:700}
.topics-row a:hover .stamp{transform:scale(1.05)}
.topics-row .stamp{width:72px; height:72px; font-size:23px}
.topics .note{margin:10px 0 6px}
.common{margin-bottom:10px}
/* テーマごとの区画 */
.topic{margin:44px 0 0; padding-top:30px; border-top:2px solid var(--line); scroll-margin-top:12px}
.topic-hd{display:flex; align-items:center; gap:18px; margin-bottom:18px}
.topic-hd .num{display:block; font-size:13px; font-weight:700; color:var(--gold); letter-spacing:.1em}
.topic-hd .num::before{content:"テーマ "}
.topic-hd h2{margin:0; padding:0; border:0; font-size:24px}
.read{display:block; text-decoration:none; color:var(--ink); border:1px solid var(--line); border-left:5px solid var(--navy); border-radius:10px; padding:16px 18px; margin:0 0 16px; background:#fff}
.read:hover{border-color:var(--gold); border-left-color:var(--gold)}
.read b{display:block; color:var(--navy); font-size:18px; line-height:1.6}
.read span{display:block; font-size:14.5px; color:var(--muted); line-height:1.75; margin:2px 0 6px}
.read i{display:inline-flex; align-items:center; gap:9px; font-style:normal; font-size:14px; font-weight:700; letter-spacing:.08em; color:#fff; background:var(--navy); padding:7px 8px 7px 14px; border-radius:999px; margin-top:2px; transition:background .15s}
.read i::before{content:""; width:17px; height:17px; flex:none; background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 5.5C4.5 4 8 4 12 6c4-2 7.5-2 10-.5V19c-2.5-1.5-6-1.5-10 .5-4-2-7.5-2-10-.5z'/%3E%3Cpath d='M12 6v13.5'/%3E%3C/svg%3E") no-repeat center/contain}
.read i::after{content:"\203A"; width:22px; height:22px; border-radius:50%; background:var(--gold-l); color:var(--navy-d); display:flex; align-items:center; justify-content:center; font-size:18px; line-height:1; padding-bottom:2px; box-sizing:border-box; transition:transform .15s}
.read:hover i{background:var(--gold)}
.read:hover i::after{transform:translateX(3px)}
.dl{border:1px solid var(--line); border-radius:10px; padding:14px 18px 6px; margin:0 0 16px; background:#fffdf8}
.dl-ttl{margin:0 0 6px; font-weight:700; color:var(--stamp); font-size:14px; letter-spacing:.1em}
.dl dl{margin:0}
.dl dt{font-weight:700; color:var(--navy); font-size:15.5px; margin-top:8px}
.dl dd{margin:2px 0 10px; font-size:15px; line-height:1.8}
.svc h3{font-size:17px}
/* 記事の最後：次のテーマ */
.next{display:flex; align-items:center; gap:14px; text-decoration:none; color:var(--ink); border:2px solid var(--navy); border-radius:12px; padding:14px 18px; margin:34px 0 10px; background:#fff}
.next .stamp{width:60px; height:60px; font-size:20px}
.next small{display:block; font-size:13px; color:var(--muted); font-weight:700}
.next b{display:block; color:var(--navy); font-size:17px; line-height:1.6}
@media(max-width:600px){
  .topics{padding:14px 12px 6px}
  .topics-row{gap:6px}
  .topics-row .stamp{width:54px; height:54px; font-size:18px; border-width:2px}
  .topic-hd{gap:14px}
  .topic-hd .stamp{width:62px; height:62px; font-size:21px}
  .topic-hd h2{font-size:20px}
}

/* 5つのテーマ（流れ） */
.flow{margin:10px 0 30px; scroll-margin-top:12px}
.flow-ttl{margin:0 0 16px; font-family:"Noto Serif JP",serif; font-weight:700; color:var(--navy); font-size:20px}
.flow-ttl small{display:block; font-family:"Noto Sans JP",sans-serif; font-weight:400; font-size:13px; color:var(--muted); margin-top:2px}
.flow-row{list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(5,1fr); position:relative}
.flow-row::before{content:""; position:absolute; left:10%; right:10%; top:36px; border-top:2px dashed #d9c9b0; z-index:0}
.flow-row li{margin:0; position:relative; z-index:1}
.flow-row a{display:flex; flex-direction:column; align-items:center; text-decoration:none; color:var(--ink)}
.flow-row .stamp{width:72px; height:72px; font-size:23px; position:relative; transition:transform .15s}
.flow-row a:hover .stamp{transform:translateY(-3px)}
.flow-row .n{position:relative; top:-12px; width:24px; height:24px; border-radius:50%; background:var(--navy); color:#fff; font-size:13px; font-weight:700; display:flex; align-items:center; justify-content:center; border:2px solid #fff}
.flow-row .lb{margin-top:-4px; font-size:14px; font-weight:700; line-height:1.5; text-align:center; color:var(--navy)}
/* 共通のルール */
.rule{border-radius:12px; background:var(--navy); color:#fff; padding:20px 22px 12px; margin:0 0 10px; scroll-margin-top:12px}
.rule-ttl{margin:0 0 12px; font-weight:700; color:var(--gold-l); font-size:15px; letter-spacing:.04em}
.rule-row{display:grid; grid-template-columns:1fr 1fr; gap:12px}
.rule-item{display:flex; gap:12px; align-items:center; background:rgba(255,255,255,.08); border-radius:10px; padding:12px 14px}
.rule-item b{flex:none; width:36px; height:36px; border-radius:50%; background:var(--gold-l); color:var(--navy-d); display:flex; align-items:center; justify-content:center; font-size:18px}
.rule-item p{margin:0; line-height:1.6; font-size:14.5px; color:#dfe6e0}
.rule-item strong{background:none; color:#fff; font-size:17px}
.rule .note{color:#b9c6bc; margin:10px 0 0}
@media(max-width:600px){
  .flow-row{grid-template-columns:1fr; gap:6px}
  .flow-row::before{left:31px; right:auto; top:30px; bottom:30px; border-top:0; border-left:2px dashed #d9c9b0}
  .flow-row a{flex-direction:row; gap:14px; padding:4px 0}
  .flow-row .stamp{width:62px; height:62px; font-size:20px}
  .flow-row .n{position:absolute; left:46px; top:-4px}
  .flow-row .lb{margin:0; text-align:left; font-size:16px}
  .flow-row .lb br{display:none}
  .rule-row{grid-template-columns:1fr}
}

.ft .sns a{display:inline-block; border:1px solid rgba(255,255,255,.25); border-radius:999px; padding:3px 12px; margin:4px 6px 4px 0; color:#d3dbd4}
.ft .sns a:hover{border-color:var(--gold-l); text-decoration:none}
