:root {
  --ground: #F7F5F0;
  --paper: #FFFFFF;
  --ink: #222222;
  --sub: #4A4A4A;
  --line: #DDD7CB;
  --accent: #7A2A1D;
  --accent-dark: #5C1F15;
  --dark: #222222;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'IBM Plex Sans JP', sans-serif;
  color: var(--ink);
  background: var(--ground);
  line-height: 1.75;
  font-size: 16px;
  /* 文節（<wbr>）の位置だけで改行する。単語の途中で切れないように */
  word-break: keep-all;
  overflow-wrap: anywhere;
  line-break: strict;
  text-wrap: pretty;
  -webkit-text-size-adjust: 100%;
}
h1, h2, .case-title, .card-title, .step-title { text-wrap: balance; }

p { margin: 0 0 1em; }
h1, h2 { margin: 0; font-weight: 700; line-height: 1.4; }

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* header */
.site-header { border-bottom: 1px solid var(--line); background: var(--ground); }
.header-inner { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.logo { font-size: 20px; font-weight: 700; color: var(--ink); text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; font-size: 15px; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--accent); }

/* buttons */
.btn { display: inline-block; background: var(--accent); color: #FFFFFF !important; text-decoration: none; padding: 16px 28px; font-size: 17px; font-weight: 700; border-radius: 6px; }
.btn:hover { background: var(--accent-dark); }
.btn-small { padding: 9px 16px; font-size: 15px; }
.btn-light { background: #FFFFFF; color: var(--accent) !important; }
.btn-light:hover { background: var(--ground); }

/* hero */
.hero { padding: 48px 0; }
.hero-inner { display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: center; }
.hero-text { flex: 999 1 520px; min-width: 0; }
.hero-photo { flex: 1 1 300px; max-width: 380px; margin: 0 auto; }
.hero-photo img { display: block; width: 100%; height: auto; border-radius: 6px; }
.eyebrow { font-size: 15px; font-weight: 700; color: var(--accent); margin-bottom: 12px; }
.hero h1 { font-size: 44px; margin-bottom: 20px; }
.lead { font-size: 18px; color: #333333; margin-bottom: 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-note { font-size: 14px; color: var(--sub); }

/* stats */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.stats-inner { display: flex; flex-wrap: wrap; gap: 20px 48px; justify-content: center; text-align: center; padding-top: 24px; padding-bottom: 20px; }
.stat-num { font-size: 32px; font-weight: 700; color: var(--accent); margin: 0; line-height: 1.3; }
.stat-org { font-size: 18px; font-weight: 700; margin: 0; padding-top: 8px; }
.stat-label { font-size: 14px; color: var(--sub); margin: 0; }

/* sections */
.section { padding: 52px 0; }
.section-alt { background: var(--paper); }
.section h2 { font-size: 28px; margin-bottom: 24px; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 20px; }
.card-tag { font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 6px; }
.card-title { font-size: 17px; font-weight: 700; margin: 0; }

.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 16px; }
.steps li { counter-increment: step; border-left: 4px solid var(--accent); padding: 4px 0 4px 16px; }
.steps li p:last-child { margin-bottom: 0; }
.step-title { font-weight: 700; font-size: 18px; margin-bottom: 4px; }
.step-title::before { content: counter(step) ". "; color: var(--accent); }

.profile-name { font-size: 20px; font-weight: 700; margin-bottom: 0; }
.profile-role { color: var(--sub); font-size: 15px; }

.closing { background: var(--dark); color: #FFFFFF; text-align: center; padding: 48px 0; }
.closing h2 { font-size: 28px; margin-bottom: 20px; }

.site-footer { padding: 24px 0; font-size: 13px; color: var(--sub); text-align: center; }
.site-footer p { margin: 0; }

/* blog */
.post-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.post-list a { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 16px 20px; color: var(--ink); text-decoration: none; font-weight: 700; }
.post-list a:hover { border-color: var(--accent); }
.article { max-width: 760px; }
.article h1 { font-size: 32px; margin-bottom: 16px; }
.article h2 { font-size: 22px; margin: 32px 0 12px; }
.article-cta { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 24px; margin-top: 32px; }

/* cases */
.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.case { background: var(--ground); border: 1px solid var(--line); border-radius: 6px; padding: 24px; }
.case p:last-child { margin-bottom: 0; }
.case-title { font-size: 19px; font-weight: 700; line-height: 1.5; margin-bottom: 10px; }
.case-note { font-size: 13px; color: var(--sub); margin: 12px 0 0; }

/* assurance */
.assure { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.assure li { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 16px 20px; }
.assure-title { display: block; font-weight: 700; color: var(--accent); }

.footer-kyokai { margin-bottom: 8px !important; }

@media (max-width: 720px) {
  .wrap { padding: 0 22px; }
  /* ヘッダー：名前とLINEボタンだけを一行に */
  .header-inner { flex-wrap: nowrap; padding-top: 10px; padding-bottom: 10px; }
  .logo { font-size: 18px; }
  /* (文字のリンクはメニューの中に出す) */
  /* ファーストビュー */
  .hero { padding: 32px 0 36px; }
  .hero-inner { gap: 28px; }
  .eyebrow { font-size: 14px; margin-bottom: 10px; }
  .hero h1 { font-size: 27px; line-height: 1.45; margin-bottom: 16px; }
  .lead { font-size: 16px; margin-bottom: 24px; }
  .cta-row { gap: 10px; }
  .cta-note { font-size: 13px; line-height: 1.6; }
  .hero-photo { max-width: none; width: 100%; }
  .hero-photo img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 18%; }
  /* 実績：数字二つを横並び、協会は下に一行 */
  .stats-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; padding-top: 22px; padding-bottom: 20px; }
  .stats-inner > div:last-child { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 14px; }
  .stat-num { font-size: 26px; }
  .stat-org { font-size: 16px; padding-top: 0; }
  .stat-label { font-size: 13px; }
  /* 段 */
  .cards, .cases { grid-template-columns: 1fr; gap: 12px; }
  .section { padding: 44px 0; }
  .section h2, .closing h2 { font-size: 22px; margin-bottom: 20px; }
  .card { padding: 18px; }
  .card-title { font-size: 16px; line-height: 1.6; }
  .case { padding: 20px 18px; }
  .case-title { font-size: 17px; }
  .case p, .method-lead, .steps p, .assure li, #profile p { font-size: 15px; line-height: 1.8; }
  .step-title { font-size: 16px; }
  .assure li { padding: 14px 16px; }
  .closing { padding: 44px 0; }
  .btn { display: block; text-align: center; padding: 16px 18px; font-size: 16px; }
  .btn-small { display: inline-block; padding: 8px 14px; font-size: 14px; white-space: nowrap; }
}

.method-lead { margin-bottom: 20px; }
.section-alt .case, .section-alt .card, .section-alt .assure li { background: var(--ground); }
.section:not(.section-alt) .case { background: var(--paper); }
.card-body { font-size: 15px; margin: 10px 0 0; color: var(--sub); }
.closing-note { font-size: 14px; margin-bottom: 16px; opacity: 0.9; }

/* 長い本文は普通に詰めて流す（文節で切ると右端がガタガタになるため）。見出しと短い行だけ文節で改行 */
.case p:not(.card-tag):not(.case-title), .method-lead, .steps li p:not(.step-title), #profile p:not(.profile-name):not(.profile-role), .card-body, .assure li, .article p {
  word-break: normal;
  text-wrap: pretty;
}
.cta-row .btn { width: 100%; }
@media (min-width: 721px) { .cta-row .btn { width: auto; } }

/* かっこ書きを途中で折らない */
.nw { white-space: nowrap; }

/* ハンバーガーメニュー（スマホ） */
.menu-toggle { display: none; }
.sp-only { display: none; }
@media (max-width: 720px) {
  .site-header { position: sticky; top: 0; z-index: 10; }
  .header-inner { position: relative; }
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; margin-right: -10px; padding: 10px; background: none; border: 0; cursor: pointer; }
  .menu-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 1px; transition: transform .2s, opacity .2s; }
  .menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--ground); border-bottom: 1px solid var(--line); box-shadow: 0 8px 16px rgba(0,0,0,.06); padding: 4px 22px 20px; }
  .menu-open .nav { display: flex; }
  .nav a:not(.btn), .nav a.sp-only { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav .btn-small { display: block; margin-top: 16px; padding: 14px; font-size: 16px; text-align: center; }
}
.stat-name { font-size: 16px; font-weight: 700; color: var(--ink); }

/* 図：風水の向きと不動産の南向き */
.muki-fig { margin: 0 0 28px; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 20px 16px 16px; }
.section-alt .muki-fig { background: var(--ground); }
.muki-fig svg { display: block; width: 100%; max-width: 560px; height: auto; margin: 0 auto; font-family: 'IBM Plex Sans JP', sans-serif; }
.muki-fig figcaption { font-size: 15px; font-weight: 700; text-align: center; margin-top: 12px; }

/* 間取りの見どころ */
.step-points { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.step-points li { border: 0; padding: 12px 14px; background: var(--paper); border-radius: 6px; font-size: 15px; line-height: 1.75; counter-increment: none; word-break: normal; }
.section:not(.section-alt) .step-points li { background: var(--ground); }
.point-name { display: block; font-weight: 700; color: var(--accent); }
.section-alt .step-points li { background: var(--ground); }

/* ロゴ：肩書きを小さく添える */
.logo { display: inline-flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.logo-sub { font-size: 13px; font-weight: 500; color: var(--sub); }

/* ブログ（1カラム） */
.article { max-width: 720px; margin: 0 auto; }
.article h1 { font-size: 30px; line-height: 1.5; margin-bottom: 24px; }
.article h2 { font-size: 22px; margin: 40px 0 14px; padding-top: 4px; border-top: 1px solid var(--line); padding-top: 28px; }
.article p, .article li { font-size: 17px; line-height: 1.95; word-break: normal; text-wrap: pretty; }
.article ul, .article ol { padding-left: 1.4em; margin: 0 0 1em; }
.article strong { color: var(--accent-dark); }
.article-meta { font-size: 14px !important; color: var(--sub); margin-bottom: 8px; }
.article-meta a { color: var(--sub); }
.article .muki-fig { margin: 24px 0; }
.article-cta { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 6px; padding: 24px; margin-top: 48px; }
.article-cta p { font-size: 16px; }
.article-cta-claim { font-size: 20px !important; font-weight: 700; line-height: 1.6 !important; word-break: keep-all !important; }
.article-cta .btn { margin-top: 8px; }
.article-cta .cta-note { display: block; margin-top: 10px; margin-bottom: 0; }
.related { margin-top: 40px; }
.related-title { font-weight: 700; margin-bottom: 12px; }
.blog-lead { color: var(--sub); margin-bottom: 24px; }
.post-list .post-date { display: block; font-size: 13px; font-weight: 500; color: var(--sub); margin-bottom: 2px; }
.post-empty { color: var(--sub); }
@media (max-width: 720px) {
  .article h1 { font-size: 24px; }
  .article h2 { font-size: 20px; }
  .article p, .article li { font-size: 16px; line-height: 1.9; }
  .article-cta { padding: 20px 18px; }
  .article-cta-claim { font-size: 18px !important; }
}

/* 記事の最後で横から出るLINEのカード */
.line-slide { position: fixed; right: 16px; bottom: 16px; z-index: 20; width: 320px; max-width: calc(100vw - 32px); background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.15); padding: 20px 20px 18px; transform: translateX(calc(100% + 32px)); transition: transform .45s ease; }
.line-slide.is-open { transform: translateX(0); }
.line-slide-close { position: absolute; top: 6px; right: 8px; width: 32px; height: 32px; border: 0; background: none; font-size: 22px; line-height: 1; color: var(--sub); cursor: pointer; }
.line-slide-title { font-weight: 700; font-size: 17px; line-height: 1.55; margin: 0 24px 8px 0; word-break: keep-all; }
.line-slide-text { font-size: 14px; color: var(--sub); line-height: 1.7; margin-bottom: 12px; }
.line-slide .btn { display: block; text-align: center; padding: 13px; font-size: 16px; }
@media (prefers-reduced-motion: reduce) { .line-slide { transition: none; } }

/* 記事の最後の申し込みカード（見本：中央寄せ・大きな見出し） */
.article-cta { text-align: center; border: 2px solid var(--ink); border-top: 2px solid var(--ink); border-radius: 10px; padding: 32px 28px; background: var(--paper); }
.article-cta p { text-align: center; }
.article-cta-eyebrow { font-size: 14px !important; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.article-cta-claim { font-size: 24px !important; line-height: 1.5 !important; margin-bottom: 16px; }
.article-cta .btn { display: block; width: 100%; padding: 18px; font-size: 18px; margin-top: 16px; }
.article-cta .cta-note { font-size: 13px; color: var(--sub); }
/* 記事の下の帯 */
.end-banner { background: var(--accent); color: #fff; text-align: center; padding: 32px 0; }
.end-banner p { font-size: 18px; font-weight: 700; line-height: 1.6; margin-bottom: 14px; word-break: keep-all; }
.end-banner strong { color: #fff; border-bottom: 2px solid rgba(255,255,255,.6); }
.end-banner .btn { display: inline-block; padding: 12px 28px; }
@media (max-width: 720px) {
  .article-cta { padding: 26px 18px; }
  .article-cta-claim { font-size: 20px !important; }
  .end-banner p { font-size: 16px; }
}
.line-slide { width: 340px; }
.line-slide-title { font-size: 18px; }
.line-slide-note { font-size: 12px; color: var(--sub); text-align: center; margin: 8px 0 0; }
.article-end { height: 1px; }
.article-end + .related, .article .related { margin-top: 48px; }
/* スマホでは、カードが出ても最後の文が隠れないよう下に余白を取る */
/* 下に「この記事を書いた人」があるので、余白は取らない */

/* ブログの下の「この記事を書いた人」 */
.author-box { background: var(--paper); border-top: 1px solid var(--line); padding: 40px 0; }
.author-inner { max-width: 720px; margin: 0 auto; display: flex; gap: 24px; align-items: flex-start; }
.author-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; flex: none; }
.author-text p { font-size: 15px; line-height: 1.85; word-break: normal; }
.author-label { font-size: 13px !important; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.author-name { font-size: 20px !important; font-weight: 700; margin-bottom: 0; line-height: 1.5 !important; }
.author-kana { font-size: 14px; font-weight: 500; color: var(--sub); }
.author-role { color: var(--sub); margin-bottom: 10px; }
.author-link { margin: 0; }
@media (max-width: 720px) {
  .author-inner { flex-direction: column; align-items: center; text-align: center; gap: 14px; }
  .author-photo { width: 104px; height: 104px; }
  .author-text p { text-align: left; }
  .author-label, .author-name, .author-role, .author-link { text-align: center !important; }
}

/* フッターの筆文字 */
.footer-fude { display: block; width: 200px; height: auto; margin: 8px auto 20px; opacity: .9; }
.site-footer { padding: 36px 0 28px; }
/* フッターは紺の帯に白の筆文字 */
:root { --navy: #1E2B45; }
.site-footer { background: var(--navy); color: rgba(255,255,255,.78); padding: 40px 0 32px; }
.site-footer a { color: #fff; }
.footer-fude { opacity: 1; width: 220px; }
/* 書いた人：文節で折る（無理な改行をしない） */
.author-text p.author-bio, .author-text p.author-role { word-break: keep-all; overflow-wrap: anywhere; }
@media (max-width: 720px) { .author-text p.author-bio { text-align: center; } }
@media (max-width: 720px) { .author-text p.author-bio { font-size: 14px; } }
:root { --navy: #121A2B; }
/* 書いた人：スマホも左寄せ。写真と名前を横に並べ、紹介文はその下 */
@media (max-width: 720px) {
  .author-inner { flex-direction: row; flex-wrap: wrap; align-items: center; text-align: left; gap: 14px 16px; }
  .author-photo { width: 84px; height: 84px; }
  .author-text { display: contents; }
  .author-head { flex: 1; min-width: 0; }
  .author-label, .author-name, .author-role, .author-link, .author-text p.author-bio { text-align: left !important; }
  .author-text p.author-bio { flex-basis: 100%; margin: 0; }
}
@media (max-width: 720px) { .author-text p.author-role { font-size: 13px; } }
.latest-more { margin: 16px 0 0; text-align: right; }
.section-alt .post-list a { background: var(--ground); }

/* 記事の下：読ませたい記事（プロフィールの上） */
.picks { padding: 40px 0 8px; }
.picks-inner { max-width: 720px; margin: 0 auto; }
.picks-title { font-size: 20px; font-weight: 700; margin-bottom: 14px; }
.picks .post-list a { line-height: 1.6; }

/* 福満寿徳とは？ */
.page-about h3 { font-size: 18px; margin: 28px 0 10px; color: var(--accent); }
.about-photo { display: block; width: 100%; max-width: 360px; height: auto; border-radius: 6px; margin: 0 auto 28px; }
.about-cta { margin-top: 32px; text-align: center; }
.about-cta .btn { display: inline-block; }
.about-note { display: block; text-align: center; }

/* 本文も単語の途中では折らない（文節の切れ目でだけ改行する） */
.case p:not(.card-tag):not(.case-title), .method-lead, .steps li p:not(.step-title), #profile p:not(.profile-name):not(.profile-role), .card-body, .assure li, .article p, .article li, .step-points li, .author-text p {
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
.case p:not(.card-tag):not(.case-title), .method-lead, .steps li p:not(.step-title), #profile p:not(.profile-name):not(.profile-role), .card-body, .assure li, .article p, .article li, .step-points li, .author-text p, body { text-wrap: wrap; }
h1, h2, .case-title, .card-title, .step-title { text-wrap: balance; }

/* iPhone・Mac はヒラギノ角ゴシック、それ以外（Android・Windows）は IBM Plex Sans JP */
body, .muki-fig svg { font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴシック", 'IBM Plex Sans JP', sans-serif; }
/* フッターの上下を詰める */
.site-footer { padding: 24px 0 20px; }
.footer-fude { margin: 0 auto 10px; width: 180px; }
