:root {
  --ink: #26303a;
  --muted: #5f6873;
  --navy: #1f2d3d;
  --accent: #b8975a;
  --bg: #f7f5f0;
  --paper: #ffffff;
  --line: #e3ddd1;
  --soft: #f1ebde;
  --serif: "Noto Serif JP", serif;
  --sans: "Noto Sans JP", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.9; }
a { color: var(--navy); }
h1, h2, h3, .hero-lead, .notice { word-break: auto-phrase; }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* ヘッダー */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.logo-mark { width: 40px; height: 40px; flex: none; }
.brand-name { display: block; font-family: var(--serif); font-weight: 700; font-size: 21px; line-height: 1.3; }
.brand-org { display: block; font-size: 12px; color: var(--muted); line-height: 1.4; }
.nav { display: flex; gap: 22px; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--ink); font-size: 15px; }
.nav a:hover { color: var(--accent); }

/* トップ */
/* 写真は使わず、紺のグラデーション+屋根の線で */
.hero { position: relative; overflow: hidden; color: #fff; padding: clamp(56px, 8vw, 96px) 0;
  background: linear-gradient(135deg, #0b2545 0%, #1f2d3d 55%, #2f4a66 100%); }
.hero::before { content: ""; position: absolute; right: -40px; bottom: -10px; width: min(560px, 60vw); aspect-ratio: 2 / 1; opacity: .16;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 100'%3E%3Cg fill='none' stroke='%23fff' stroke-width='1.6'%3E%3Cpath d='M10 60 50 25l40 35M18 53v40h64V53M40 93V70h20v23'/%3E%3Cpath d='M95 66 130 36l35 30M102 60v33h56V60M122 93V76h16v17'/%3E%3Cpath d='M0 93h200'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; }
.hero .wrap { position: relative; width: 100%; }
.hero-org, .hero h1, .hero-lead, .hero-text { text-shadow: 0 1px 8px rgba(0,0,0,.25); }
.hero-org { margin: 0; font-size: 14px; letter-spacing: .1em; color: #e2cfa6; }
.hero h1 { margin: 6px 0 4px; font-family: var(--serif); font-size: clamp(30px, 6vw, 46px); line-height: 1.35; }
.hero-lead { margin: 0 0 18px; font-family: var(--serif); font-size: clamp(17px, 3vw, 21px); color: #f3ead8; }
.hero-text { margin: 0 0 26px; color: #e8edf3; font-size: 16px; }
/* 枠の幅はタイトル(h1)の幅で決め、ほかの文はその幅の中で折り返す。ボタンはその幅の中央 */
.hero-box { width: fit-content; max-width: 100%; }
.hero-box > :not(h1) { width: 0; min-width: 100%; }
.hero-btn { margin: 0; text-align: center; }
.btn { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; padding: 12px 30px; border-radius: 999px; font-weight: 700; border: 0; font-size: 16px; font-family: var(--sans); cursor: pointer; }
.btn:hover { filter: brightness(1.08); }

.notice { display: block; margin: 28px 0 0; padding: 16px 20px; background: #fbf6ea; border: 1px solid #e2cfa6; border-left: 5px solid var(--accent); border-radius: 6px; text-decoration: none; color: var(--ink); font-weight: 700; }
.notice-label { display: inline-block; margin-right: 10px; padding: 1px 10px; background: var(--accent); color: #fff; font-size: 12px; border-radius: 3px; vertical-align: 2px; }

.section { margin: 48px 0; }
.section-title { font-family: var(--serif); font-size: 24px; color: var(--navy); margin: 0 0 20px; padding-bottom: 8px; border-bottom: 2px solid var(--line); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px; text-decoration: none; color: var(--ink); transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 6px 20px rgba(31,45,61,.12); transform: translateY(-2px); }
.card h3 { font-family: var(--serif); font-size: 19px; line-height: 1.55; margin: 8px 0; color: var(--navy); }
.card p { margin: 0 0 12px; font-size: 14px; color: var(--muted); line-height: 1.75; flex: 1; }
.card time { font-size: 13px; color: var(--muted); }
.cat { display: inline-block; align-self: flex-start; font-size: 12px; padding: 1px 10px; border-radius: 999px; background: var(--soft); color: #7a5f2c; }
.more { text-align: right; }
.topic-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.topic-list a { display: block; padding: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; text-align: center; text-decoration: none; font-weight: 700; color: var(--navy); }
.about-box { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 28px; }
.about-box .section-title { border: 0; padding: 0; }

/* 運営者アイコン(プロフィールの顔イラストに合わせる) */
.about-box { display: flex; gap: 24px; align-items: flex-start; }
.about-icon { flex: none; width: 96px; height: 96px; border-radius: 50%; }
.about-box p { margin: 0 0 10px; }
.author { display: flex; gap: 16px; align-items: flex-start; }
.author-icon { flex: none; width: 72px; height: 72px; border-radius: 50%; }
.profile-head { text-align: center; margin: 0 0 28px; }
.profile-head img { width: 150px; height: 150px; border-radius: 50%; }
.profile-head p { margin: 8px 0 0; font-size: 19px; }
.links h2 { margin-top: 36px; }
.links ul { list-style: none; padding: 0; }
.links li { margin: 0 0 10px; padding: 12px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
blockquote { margin: 24px 0; padding: 16px 20px; background: var(--paper); border-left: 4px solid var(--line); color: var(--muted); font-size: 15px; }
blockquote cite { display: block; margin-top: 8px; font-style: normal; font-size: 13px; }

/* 記事・固定ページ */
.page-title { font-family: var(--serif); font-size: clamp(26px, 5vw, 32px); color: var(--navy); margin: 40px 0 24px; line-height: 1.45; }
.article { padding-top: 24px; padding-bottom: 40px; }
.article h1 { font-family: var(--serif); font-size: clamp(25px, 5vw, 32px); color: var(--navy); line-height: 1.5; margin: 10px 0 8px; }
.crumbs { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.crumbs a { color: var(--muted); }
.meta { font-size: 14px; color: var(--muted); margin: 0 0 28px; }
.prose h2 { font-family: var(--serif); font-size: 22px; color: var(--navy); margin: 44px 0 14px; padding: 6px 0 6px 14px; border-left: 5px solid var(--accent); line-height: 1.5; }
.prose h3 { font-size: 18px; margin: 30px 0 10px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: 6px 0; }
.note { font-size: 14px; color: var(--muted); }
.author { margin: 48px 0 24px; padding: 20px 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; font-size: 15px; line-height: 1.8; }
.author p { margin: 0; }
.author-label { font-size: 13px; color: var(--accent); font-weight: 700; margin-bottom: 6px !important; }
.back { margin-bottom: 40px; }
table.info { width: 100%; border-collapse: collapse; background: var(--paper); font-size: 15px; }
table.info th, table.info td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; }
table.info th { width: 30%; background: var(--soft); font-weight: 700; }

/* フォーム */
.contact-form { display: grid; gap: 18px; margin: 28px 0 56px; padding: 26px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.contact-form label { display: grid; gap: 6px; font-weight: 700; font-size: 15px; }
.contact-form input[type=text], .contact-form input[type=email], .contact-form textarea { width: 100%; min-width: 0; padding: 10px 12px; font-size: 16px; font-family: var(--sans); border: 1px solid #c3cfda; border-radius: 6px; background: #fff; }
.contact-form .check { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.contact-form .btn { justify-self: center; padding: 12px 48px; }
.req { margin-left: 8px; font-size: 11px; color: #fff; background: #b4483b; padding: 1px 6px; border-radius: 3px; vertical-align: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* フッター */
.site-footer { margin-top: 64px; background: #0b2545; color: #dfe6ee; font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 36px; padding-bottom: 20px; }
.footer-inner p { margin: 0; }
.footer-name { font-family: var(--serif); font-size: 18px; color: #fff; }
.footer-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-nav a { color: #dfe6ee; }
.copy { text-align: center; margin: 0; padding: 12px 0 20px; font-size: 12px; color: #aab7c6; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { gap: 14px; }
  .nav a { font-size: 14px; }
  .hero::before { width: 70vw; right: -30px; opacity: .12; }
  .about-box, .contact-form { padding: 20px; }
  .about-box { flex-direction: column; align-items: center; }
  /* サイト名(14字)がスマホでも1行に収まるように */
  .brand-name { font-size: 18px; }
  .brand-org { font-size: 11px; }
  .hero-org { font-size: 12px; letter-spacing: .04em; }
  .about-icon { width: 80px; height: 80px; }
  .author-icon { width: 56px; height: 56px; }
  table.info th { width: 34%; }
}

/* 住まいとお金のノートの追加分 */
.btn-ghost { background: transparent; border: 1px solid #e2cfa6; color: #fff; margin-left: 8px; }
.hero-btn .btn { margin-top: 6px; }
.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.tool { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 10px; text-decoration: none; color: var(--ink); transition: box-shadow .2s, transform .2s; }
.tool:hover { box-shadow: 0 6px 20px rgba(31,45,61,.12); transform: translateY(-2px); }
.tool strong { font-family: var(--serif); color: var(--navy); font-size: 17px; line-height: 1.5; }
.tool span { font-size: 14px; color: var(--muted); line-height: 1.7; }
.wide { max-width: 1000px; }
.footer-banner { display: inline-block; margin-top: 14px; }
.footer-banner img { display: block; width: 300px; max-width: 100%; border-radius: 6px; }
.prose h3 { font-family: var(--serif); color: var(--navy); }
.prose h3.style3b, .prose h2.style2a { font-size: 21px; margin: 40px 0 14px; padding: 6px 0 6px 14px; border-left: 5px solid var(--accent); }
.prose h4 { font-size: 17px; margin: 24px 0 8px; color: var(--navy); }
.prose table { width: 100%; border-collapse: collapse; background: var(--paper); font-size: 15px; margin: 20px 0; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; vertical-align: top; }
.prose th { background: var(--soft); }
.prose figure { margin: 24px 0; }
.prose figcaption { font-size: 13px; color: var(--muted); text-align: center; }
.prose iframe { max-width: 100%; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignright { float: right; margin: 0 0 12px 16px; }
.alignleft { float: left; margin: 0 16px 12px 0; }

/* サイト名が短いので、枠はタイトル幅ではなく固定幅に */
.hero-box { width: min(620px, 100%); }
.hero-box > :not(h1) { width: auto; min-width: 0; }
.hero-btn { text-align: left; }


/* ===== kikuchi-eiji.com(FP菊池英司)の追加分 2026-11-11 ===== */
.logo-face { width: 44px; height: 44px; flex: none; border-radius: 50%; }
@media (max-width: 640px) { .btn-ghost { margin-left: 0; } .logo-face { width: 38px; height: 38px; } }
/* 旧WordPress(TCDの見出し・装飾)の class */
.prose h3.custom_h3 { font-size: 21px; margin: 40px 0 14px; padding: 6px 0 6px 14px; border-left: 5px solid var(--accent); line-height: 1.5; }
.prose h4.custom_h4, .prose h4.style4b { font-size: 18px; margin: 28px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line); color: var(--navy); }
.prose h5.custom_h5 { font-size: 16px; margin: 22px 0 8px; color: var(--navy); }
.prose h3.style3b { font-size: 21px; }
.prose .line-yellow, .prose .tcdce-marker { background: linear-gradient(transparent 60%, #f6e3a6 60%); }
.prose .box001, .prose .well3, .prose .bgc1 { margin: 20px 0; padding: 16px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.prose .wp-caption { max-width: 100%; }
.prose .wp-caption-text { font-size: 13px; color: var(--muted); text-align: center; }
.prose img { border-radius: 4px; }
/* サービスの案内(トップ) */
.services .tool small { font-size: 13px; color: #7a5f2c; font-weight: 700; }
.lp-page { padding-top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.related-sites { margin-top: 10px; font-size: 13px; }
.related-sites a { color: #dfe6ee; }
/* 静的版のフォーム(旧Contact Form 7と同じ見た目のまま) */
.svf-static .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.svf-static .svf-turnstile { margin: 12px 0; }
.thanks-box { margin: 24px 0 56px; padding: 28px; background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 10px; }
