/* common.css（修正版） */
:root{
  --base:#ffffff;
  --main:#c24a5f;
  --main-dark:#963648;
  --sub:#fbf7f8;
  --accent2:#ffd2da;
  --text:#1f1f1f;
  --muted:#6a6a6a;
  --line:#eee6e8;
  --shadow:0 10px 30px rgba(0,0,0,.08);
  --max:1320px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:"Hiragino Kaku Gothic ProN","Hiragino Sans","Yu Gothic","Meiryo",sans-serif;
  color:var(--text);
  background:var(--base);
  line-height:1.75;
  letter-spacing:.01em;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }

.container{ width:min(var(--max), 96%); margin:0 auto; }
.section{ padding:90px 0; }
.section.-soft{ background:var(--sub); }

/* 花柄（全体）→主張を弱めて上品に */
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  opacity:.12; /* ★ 0.20→0.12 */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='none' stroke='%23d88996' stroke-opacity='0.45' stroke-width='1.15'%3E%3Cpath d='M30 30c7 0 12 7 12 14S37 58 30 58 18 51 18 44s5-14 12-14Z'/%3E%3Cpath d='M58 44c0 7-7 12-14 12S30 51 30 44s7-12 14-12 14 5 14 12Z'/%3E%3Cpath d='M44 58c-7 0-12-7-12-14s5-14 12-14 12 7 12 14-5 14-12 14Z'/%3E%3Cpath d='M16 44c0-7 7-12 14-12s14 5 14 12-7 12-14 12-14-5-14-12Z'/%3E%3Ccircle cx='44' cy='44' r='5.2' fill='%23ffd2da' fill-opacity='0.25' stroke='none'/%3E%3C/g%3E%3C/svg%3E");
  background-size:200px 200px;
  background-repeat:repeat;
  mix-blend-mode:multiply;
  z-index:-1;
}

.eyebrow{
  font-size:.82rem;
  font-weight:900;
  letter-spacing:.18em;
  color:var(--main);
  text-transform:uppercase;
  margin-bottom:10px;
}
.section-title{
  margin:0 0 14px;
  font-size:clamp(1.8rem, 4vw, 2.8rem);
  line-height:1.25;
  color:#2a0d13;
}
.section-lead{
  margin:0;
  color:var(--muted);
  max-width:820px;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:50px;
  padding:0 18px;
  border-radius:999px;
  font-weight:900;
  transition:.25s ease;
  border:1px solid transparent;
  cursor:pointer;
  user-select:none;
  white-space:nowrap;
}
.btn-primary{
  background:var(--main);
  color:#fff;
  box-shadow:var(--shadow);
}
.btn-primary:hover{ background:var(--main-dark); transform:translateY(-1px); }
.btn-outline{
  border-color:rgba(194,74,95,.45);
  color:var(--main-dark);
  background:#fff;
}
.btn-outline:hover{
  background:rgba(194,74,95,.05);
  border-color:rgba(194,74,95,.85);
}

/* Header（1行固定） */
.header{
  position:sticky;
  top:0;
  z-index:1000;
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(238,230,232,.95);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:108px;
  gap:14px;
  flex-wrap:wrap;
  padding-top:12px;
  padding-bottom:10px;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  position:relative;
  padding-left:34px;
  white-space:nowrap;
  flex:0 0 auto;
}
.brand::before{
  content:"";
  position:absolute;
  left:0;
  top:50%;
  width:26px;
  height:26px;
  transform:translateY(-50%);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='none'%3E%3Cpath d='M32 10c6 0 10 6 10 12S38 34 32 34 22 28 22 22 26 10 32 10Z' fill='%23ffd2da'/%3E%3Cpath d='M54 32c0 6-6 10-12 10s-12-4-12-10 6-10 12-10 12 4 12 10Z' fill='%23ffd2da'/%3E%3Cpath d='M32 54c-6 0-10-6-10-12s4-12 10-12 10 6 10 12-4 12-10 12Z' fill='%23ffd2da'/%3E%3Cpath d='M10 32c0-6 6-10 12-10s12 4 12 10-6 10-12 10S10 38 10 32Z' fill='%23ffd2da'/%3E%3Ccircle cx='32' cy='32' r='8' fill='%23c24a5f'/%3E%3C/g%3E%3C/svg%3E")
    center/contain no-repeat;
  opacity:.95;
}
.brand-main{
  font-size:1.06rem;
  font-weight:1000;
  color:#2a0d13;
  letter-spacing:.01em;
}
.nav-wrap{
  flex:1 1 100%;
  min-width:0;
  overflow:hidden;
  order:3;
  border-top:1px solid var(--line);
  padding-top:9px;
}
.nav{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:clamp(14px, 2.4vw, 34px);
  flex-wrap:nowrap;
  white-space:nowrap;
  overflow-x:auto;
  scrollbar-width:none;
}
.nav a[aria-current="page"]{
  color:var(--accent);
  font-weight:700;
}
.nav::-webkit-scrollbar{ display:none; }
.nav a{
  font-size:.92rem;
  font-weight:900;
  color:#2b2b2b;
  position:relative;
  padding:8px 0;
  flex:0 0 auto;
}
.nav a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:4px;
  width:0;
  height:2px;
  background:var(--main);
  transition:.25s ease;
  border-radius:99px;
}
.nav a:hover::after{ width:100%; }

.header-cta{
  display:flex;
  align-items:center;
  gap:10px;
  flex:0 0 auto;
  white-space:nowrap;
}
.tel{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:900;
  color:#2a0d13;
  font-size:.88rem;
}
.tel span{
  color:var(--muted);
  font-weight:800;
  font-size:.84rem;
}
.menu-btn{
  display:none;
  width:46px;
  height:46px;
  border:none;
  border-radius:12px;
  background:var(--main);
  color:#fff;
  font-size:.95rem;
  font-weight:1000;
  cursor:pointer;
  flex:0 0 auto;
}

/* 下層ページ：ページヘッダー */
.page-hero{
  position:relative;
  overflow:hidden;
  padding:46px 0 38px;
  background:
    radial-gradient(circle at top right, rgba(255,210,218,.16), transparent 42%),
    linear-gradient(180deg, rgba(194,74,95,.06), rgba(255,255,255,0));
}
.breadcrumb{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  color:var(--muted);
  font-size:.9rem;
}
.breadcrumb a{ color:var(--muted); }
.breadcrumb .sep{ opacity:.6; }
.page-title{
  margin:10px 0 8px;
  font-size:clamp(1.9rem, 3.6vw, 2.6rem);
  line-height:1.2;
  color:#2a0d13;
  font-weight:1000;
}
.page-lead{
  margin:0;
  color:var(--muted);
  max-width:860px;
}

/* Cards */
.cards{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
}
.card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:22px;
  padding:24px;
  box-shadow:0 6px 20px rgba(10,20,30,.04);
  transition:.25s ease;
  position:relative;
  overflow:hidden;
  min-height:150px;
}
.card::before{
  content:"";
  position:absolute;
  inset:-40px -60px auto auto;
  width:140px;
  height:140px;
  background:radial-gradient(circle, rgba(255,210,218,.45), transparent 60%);
  border-radius:50%;
  opacity:.9;
}
.card:hover{
  transform:translateY(-4px);
  box-shadow:var(--shadow);
  border-color:rgba(194,74,95,.16);
}
.card-tag{
  display:inline-block;
  margin-bottom:12px;
  padding:6px 10px;
  border-radius:999px;
  background:#fff0f3;
  color:var(--main-dark);
  font-size:.78rem;
  font-weight:1000;
  border:1px solid rgba(194,74,95,.12);
  position:relative;
  z-index:1;
}
.card h3{
  margin:0 0 10px;
  font-size:1.08rem;
  line-height:1.5;
  color:#2a0d13;
  position:relative;
  z-index:1;
}
.card p{
  margin:0;
  color:var(--muted);
  font-size:.93rem;
  position:relative;
  z-index:1;
}

/* a.card */
a.card{
  display:block;
  text-decoration:none;
  color:inherit;
}
a.card:focus-visible{
  outline:3px solid rgba(194,74,95,.30);
  outline-offset:4px;
  border-radius:22px;
}

/* 詳細ページ本文 */
.article{
  background:rgba(255,255,255,.92);
  border:1px solid var(--line);
  border-radius:24px;
  padding:30px;
  box-shadow:0 10px 28px rgba(10,20,30,.05);
}
.article h2{
  margin:0 0 12px;
  font-size:1.45rem;
  color:#2a0d13;
}
.article h3{
  margin:26px 0 10px;
  font-size:1.12rem; /* ★ 少し小さくして階層を整える */
  color:#2a0d13;
}
.article p{
  margin:0 0 12px;
  color:#333;
}
.article ul{
  margin:10px 0 0;
  padding-left:18px;
  list-style:disc;
}
.article li{ margin:6px 0; color:#333; }
.story-list{ display:grid; gap:22px; }
.story{ scroll-margin-top:100px; }
.story-note{ margin-top:16px !important; padding:12px 14px; border-radius:12px; background:var(--sub); color:var(--main-dark) !important; font-weight:700; }
.story-profile{ font-size:1.02rem; line-height:1.9; }
.case-disclaimer,.source-box{ margin-top:22px; padding:22px; border:1px solid var(--line); border-radius:18px; background:#fff; }
.case-disclaimer{ background:#fff8f9; }
.case-disclaimer p{ margin:6px 0 0; color:var(--muted); }
.source-box h2{ margin:0 0 10px; font-size:1.15rem; color:#2a0d13; }
.source-list{ display:grid; gap:8px; }
.source-list a{ color:var(--main-dark); text-decoration:underline; text-underline-offset:3px; }

/* 信頼情報・相談ガイド */
.trust-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.trust-card{ position:relative; padding:24px; border:1px solid var(--line); border-radius:20px; background:#fff; box-shadow:var(--shadow-soft); }
.trust-card h3{ margin:8px 0; color:#2a0d13; font-size:1.08rem; }
.trust-card p{ margin:0; color:var(--muted); }
.trust-number{ color:var(--main); font-size:.82rem; font-weight:1000; letter-spacing:.12em; }
.flow-list{ display:grid; gap:14px; margin-top:28px; }
.flow-list li{ display:grid; grid-template-columns:52px 1fr; gap:16px; align-items:start; padding:20px; border:1px solid var(--line); border-radius:18px; background:#fff; }
.flow-list li>span{ display:grid; place-items:center; width:48px; height:48px; border-radius:50%; background:linear-gradient(135deg,var(--main),var(--main-dark)); color:#fff; font-weight:1000; }
.flow-list h3{ margin:0 0 4px; color:#2a0d13; }
.flow-list p{ margin:0; color:var(--muted); }
.fee-box{ padding:26px; border-radius:22px; border:1px solid var(--line); background:linear-gradient(135deg,#fff,#fff8f9); }
.fee-lead{ margin:0 0 20px; }
.fee-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.fee-grid>div{ padding:18px; background:#fff; border:1px solid var(--line); border-radius:16px; }
.fee-grid strong{ color:var(--main-dark); }
.fee-grid p{ margin:6px 0 0; color:var(--muted); font-size:.92rem; }
.notice-text{ margin:18px 0 0; color:var(--muted); font-size:.9rem; }
.price-table-wrap{ margin-top:22px; overflow-x:auto; border:1px solid var(--line); border-radius:20px; background:#fff; box-shadow:var(--shadow-soft); }
.price-table{ width:100%; min-width:720px; border-collapse:collapse; }
.price-table th,.price-table td{ padding:15px 16px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; }
.price-table thead th{ background:#fff1f3; color:#2a0d13; font-size:.9rem; }
.price-table tbody th{ width:31%; color:#2a0d13; font-weight:900; background:#fffafb; }
.price-table tbody td:nth-child(2){ width:43%; color:var(--muted); }
.price-table tbody td:last-child{ white-space:nowrap; color:var(--main-dark); font-weight:900; }
.price-table tbody tr:last-child th,.price-table tbody tr:last-child td{ border-bottom:0; }
.price-notes{ margin-top:22px; padding:22px; border:1px solid var(--line); border-radius:18px; background:#fff; }
.price-notes h3{ margin:0 0 8px; color:#2a0d13; }
.price-notes ul{ padding-left:20px; list-style:disc; color:var(--muted); }
.price-notes li{ margin:6px 0; }
.faq-list{ display:grid; gap:10px; margin-top:24px; }
.faq-list details{ border:1px solid var(--line); border-radius:16px; background:#fff; overflow:hidden; }
.faq-list summary{ cursor:pointer; padding:17px 48px 17px 18px; font-weight:900; color:#2a0d13; position:relative; }
.faq-list summary::after{ content:'＋'; position:absolute; right:18px; color:var(--main); }
.faq-list details[open] summary::after{ content:'−'; }
.faq-list details p{ margin:0; padding:0 18px 18px; color:var(--muted); }
.official-links{ display:flex; flex-wrap:wrap; gap:10px 18px; margin-top:20px; padding:16px 18px; border-radius:16px; background:#fff; border:1px solid var(--line); }
.official-links a{ color:var(--main-dark); text-decoration:underline; text-underline-offset:3px; }

/* 問い合わせフォーム */
.contact-layout{ display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:24px; align-items:start; }
.form-card,.side-card{ border:1px solid var(--line); border-radius:22px; background:#fff; box-shadow:var(--shadow-soft); }
.form-card{ padding:28px; }
.form-notice{ margin-bottom:24px; padding:17px 18px; border-radius:16px; background:#fff8e8; border:1px solid #f0dfb4; }
.form-notice ul{ margin:8px 0 0; padding-left:20px; list-style:disc; }
.form-grid{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.field{ display:grid; gap:7px; }
.field>span,.field legend{ font-weight:900; color:#2a0d13; }
.field em{ margin-left:5px; padding:3px 7px; border-radius:999px; background:var(--main); color:#fff; font-size:.7rem; font-style:normal; }
.field input,.field select,.field textarea{ width:100%; border:1px solid #d9cfd1; border-radius:12px; padding:12px 13px; background:#fff; color:var(--text); font:inherit; }
.field textarea{ resize:vertical; min-height:190px; }
.field input:focus,.field select:focus,.field textarea:focus{ outline:3px solid rgba(194,74,95,.16); border-color:var(--main); }
.field small{ justify-self:end; color:var(--muted); }
.field-wide{ grid-column:1/-1; }
fieldset.field{ border:0; padding:0; margin:0; }
.choice-row{ display:flex; flex-wrap:wrap; gap:10px 22px; padding:10px 0; }
.choice-row label,.consent{ display:flex; align-items:flex-start; gap:8px; }
.choice-row input,.consent input{ width:auto; margin-top:.35em; accent-color:var(--main); }
.consent{ padding:14px; border-radius:12px; background:var(--sub); }
.consent a{ color:var(--main-dark); text-decoration:underline; }
.form-error{ color:#9e1d2f; font-weight:800; }
.form-submit{ margin-top:24px; min-width:240px; }
.contact-side{ display:grid; gap:16px; position:sticky; top:100px; }
.side-card{ padding:20px; }
.side-card h2{ margin:0 0 8px; font-size:1.08rem; color:#2a0d13; }
.side-card p{ margin:0; color:var(--muted); }
.side-card ul{ margin:8px 0; padding-left:20px; list-style:disc; }
.confirm-panel{ scroll-margin-top:100px; }
.confirm-panel h2{ margin-top:0; color:#2a0d13; }
.confirm-panel pre{ white-space:pre-wrap; overflow-wrap:anywhere; padding:18px; border:1px solid var(--line); border-radius:14px; background:var(--sub); font:inherit; }
.confirm-actions{ display:flex; flex-wrap:wrap; gap:10px; }
.setup-message{ padding:14px; border-radius:12px; background:#fff8e8; color:#775c16; }
.policy h2{ margin-top:30px; }
.policy h2:first-child{ margin-top:0; }
.policy-date{ margin-top:30px !important; text-align:right; color:var(--muted) !important; }
.map-pending{ min-height:260px; display:grid; place-content:center; justify-items:center; gap:10px; padding:28px; text-align:center; border:1px dashed rgba(194,74,95,.35); border-radius:18px; background:var(--sub); }
.map-pending strong{ color:#2a0d13; font-size:1.15rem; }
.map-pending p{ margin:0; color:var(--muted); }

/* 黒猫の案内役「ましゃ」 */
.masha-guide{ position:fixed; right:14px; bottom:8px; z-index:900; pointer-events:none; }
.masha-link{ display:flex; align-items:flex-end; gap:8px; pointer-events:auto; filter:drop-shadow(0 12px 16px rgba(31,16,20,.18)); }
.masha-figure{ display:block; width:180px; height:122px; flex:0 0 auto; background-position:center bottom; background-repeat:no-repeat; background-size:contain; transform-origin:center bottom; animation:masha-float 4.8s ease-in-out infinite; }
.masha-bubble{ position:relative; max-width:210px; margin-bottom:44px; padding:11px 13px; border:1px solid rgba(194,74,95,.2); border-radius:16px 16px 4px 16px; background:rgba(255,255,255,.96); color:#4a3338; font-size:.82rem; line-height:1.5; box-shadow:var(--shadow-soft); }
.masha-bubble strong{ display:block; margin-bottom:2px; color:var(--main-dark); font-size:.9rem; }
.masha-bubble span{ display:block; }
.masha-link:hover .masha-bubble{ border-color:rgba(194,74,95,.5); background:#fff8f9; }
@keyframes masha-float{ 0%,100%{ transform:scale(1); } 50%{ transform:translateY(1px) scale(1.015); } }
@media (prefers-reduced-motion:reduce){ .masha-figure{ animation:none; } }
.hero-media{ box-shadow:0 18px 44px rgba(10,20,30,.12) !important; border:1px solid rgba(194,74,95,.14) !important; }
.hero-kicker{ background:rgba(255,255,255,.78) !important; border-color:rgba(194,74,95,.14) !important; }
.hero-card{ box-shadow:0 14px 34px rgba(10,20,30,.08) !important; border-color:rgba(255,210,218,.55) !important; }

@media (max-width:920px){
  .trust-grid,.fee-grid{ grid-template-columns:1fr; }
  .contact-layout{ grid-template-columns:1fr; }
  .contact-side{ position:static; }
  .hero{ padding:20px 0 50px !important; }
  .hero-media{ margin:10px 0 16px !important; border-radius:18px !important; }
  .hero-grid{ grid-template-columns:1fr !important; gap:16px !important; }
  .hero-actions .btn,.cta a.btn{ width:100% !important; }
  .quick-links,.service-grid,.office-grid{ grid-template-columns:1fr !important; }
}
@media (max-width:560px){
  .flow-list li{ grid-template-columns:42px 1fr; padding:16px; gap:12px; }
  .flow-list li>span{ width:40px; height:40px; }
  .form-card{ padding:18px; }
  .form-grid{ grid-template-columns:1fr; gap:16px; }
  .field-wide{ grid-column:auto; }
  .form-submit{ width:100%; min-width:0; }
  .masha-guide{ right:4px; bottom:2px; }
  .masha-figure{ width:116px; height:78px; }
  .masha-bubble{ max-width:145px; margin-bottom:28px; padding:8px 10px; font-size:.7rem; }
  .masha-bubble strong{ font-size:.78rem; }
}

/* ★ 関連カードを “本文内で綺麗に見せる” 専用 */
.related{
  margin-top:10px;
  padding-top:6px;
}
.article .cards{
  margin-top:12px;
}
.article .cards{
  grid-template-columns:repeat(2,1fr); /* ★ 本文内は2列が綺麗 */
}
.article .card{
  min-height:auto;
  padding:20px; /* ★ 少し小さく */
}

/* CTA box */
.cta-box{
  margin-top:22px;
  padding:18px;
  border-radius:18px;
  border:1px solid rgba(194,74,95,.12);
  background:linear-gradient(180deg, #fff, #fff7f8);
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
}

/* Footer */
.footer{
  padding:30px 0 40px;
  border-top:1px solid var(--line);
  background:#fff;
}
.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  flex-wrap:wrap;
}
.footer-nav{
  display:flex;
  flex-wrap:wrap;
  gap:12px 18px;
  color:var(--muted);
  font-size:.92rem;
  font-weight:800;
}
.copyright{
  color:var(--muted);
  font-size:.85rem;
}

/* Responsive */
@media (max-width: 1080px){
  .cards{ grid-template-columns:repeat(2,1fr); }
  .article .cards{ grid-template-columns:1fr; } /* ★ 本文内は1列へ */
}
@media (max-width: 920px){
  .menu-btn{ display:inline-flex; align-items:center; justify-content:center; }
  .header-inner{
    min-height:78px;
    flex-wrap:nowrap;
    padding-top:0;
    padding-bottom:0;
  }
  .header-cta .tel, .header-cta > .btn{ display:none; }

  .nav-wrap{
    position:fixed;
    flex-basis:auto;
    order:initial;
    border-top:0;
    top:78px;
    left:0;
    right:0;
    background:#fff;
    border-bottom:1px solid var(--line);
    padding:14px 4%;
    display:none;
    box-shadow:0 18px 30px rgba(0,0,0,.08);
  }
  .nav-wrap.open{ display:block; }
  .nav{
    display:grid;
    gap:4px;
    overflow:visible;
  }
  .nav a{
    display:block;
    padding:14px 6px;
    border-bottom:1px solid var(--line);
  }
  .cards{ grid-template-columns:1fr; }
}

/* Two-row desktop header; return to the compact menu on smaller screens. */
@media (max-width:920px){
  .header-inner{
    min-height:78px;
    flex-wrap:nowrap;
    padding-top:0;
    padding-bottom:0;
  }
  .nav-wrap{
    flex-basis:auto;
    order:initial;
    border-top:0;
    padding-top:14px;
  }
}

@media (max-width:560px){
  .header-inner{ min-height:72px; }
  .nav-wrap{ top:72px; }
  .nav-wrap{ top:72px; }
}
