/* 相続聞き書き人 佐伯 鉄 — 和モダン スタイル */
:root {
  --white:      #FAFAF8;
  --cream:      #F0EDE5;
  --cream-dark: #E4DFD3;
  --sumi:       #2C2C2C;
  --sumi-mid:   #4A4A4A;
  --sumi-light: #6E6E6E;
  --ai:         #1B3050;
  --ai-mid:     #2A4870;
  --ai-light:   #3D6494;
  --border:     #D4CDBF;
  --accent:     #8B6914;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: "游ゴシック", "Yu Gothic", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", sans-serif;
  background: var(--cream);
  color: var(--sumi);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ai); text-decoration: none; }
a:hover { color: var(--ai-mid); text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* ===== LAYOUT ===== */
.container { max-width: 720px; margin: 0 auto; padding: 0 20px; }
.container--wide { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* ===== HEADER ===== */
.site-header {
  background: var(--ai);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.site-header__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.site-logo {
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--white) !important;
  text-decoration: none !important;
  line-height: 1.3;
}
.site-logo span { display: block; font-size: .65rem; font-weight: 400; opacity: .75; letter-spacing: .05em; }

.site-nav { display: flex; gap: 0; }
.site-nav a {
  display: block;
  padding: 0 14px;
  height: 56px;
  line-height: 56px;
  font-size: .8rem;
  color: rgba(255,255,255,.85) !important;
  letter-spacing: .05em;
  text-decoration: none !important;
  transition: background .15s, color .15s;
}
.site-nav a:hover { background: rgba(255,255,255,.12); color: #fff !important; }

@media (max-width: 640px) {
  .site-nav a { padding: 0 10px; font-size: .72rem; }
  .site-logo { font-size: .78rem; }
}
@media (max-width: 480px) {
  .site-nav a[data-hide-sm] { display: none; }
}

/* ===== HERO ===== */
.hero {
  background: var(--ai);
  padding: 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero.jpg');
  background-size: cover;
  background-position: center 30%;
  opacity: .5;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(27,48,80,.45) 0%,
    rgba(27,48,80,.72) 50%,
    rgba(27,48,80,.92) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 1;
  padding: 72px 20px 60px;
  width: 100%;
}
.hero__label {
  font-size: .72rem;
  letter-spacing: .2em;
  color: rgba(255,255,255,.6);
  margin-bottom: 14px;
}
.hero__title {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.5;
  letter-spacing: .05em;
  margin-bottom: 18px;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.hero__sub {
  font-size: .92rem;
  color: rgba(255,255,255,.8);
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.9;
  text-shadow: 0 1px 6px rgba(0,0,0,.3);
}
.hero__cta {
  display: inline-block;
  background: var(--white);
  color: var(--ai) !important;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 13px 32px;
  border-radius: 2px;
  text-decoration: none !important;
  transition: background .15s, transform .1s;
  position: relative;
}
.hero__cta:hover { background: var(--cream); transform: translateY(-1px); }

/* ===== SECTION ===== */
.section { padding: 48px 0; }
.section + .section { border-top: 1px solid var(--border); }
.section--cream { background: var(--cream); }
.section--white { background: var(--white); }

.section__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ai);
  letter-spacing: .06em;
  margin-bottom: 28px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ai);
}
.section__title--center { text-align: center; }

/* ===== CARD GRID ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  transition: box-shadow .15s, transform .15s;
  display: flex;
  flex-direction: column;
}
.card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.12); transform: translateY(-3px); }

.card__thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  background: var(--cream-dark);
}
.card__thumb--placeholder {
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, var(--ai) 0%, var(--ai-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.card__thumb--placeholder::after {
  content: attr(data-label);
  font-size: .68rem;
  letter-spacing: .15em;
  color: rgba(255,255,255,.5);
  font-weight: 700;
}
.card__body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card__cat {
  font-size: .68rem;
  letter-spacing: .15em;
  color: var(--ai-light);
  margin-bottom: 8px;
  font-weight: 700;
}
.card__title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--sumi);
  line-height: 1.55;
  margin-bottom: 12px;
  flex: 1;
}
.card__title a { color: var(--sumi) !important; text-decoration: none !important; }
.card__title a:hover { color: var(--ai) !important; }
.card__date { font-size: .72rem; color: var(--sumi-light); margin-bottom: 10px; }
.card__excerpt { font-size: .8rem; color: var(--sumi-mid); line-height: 1.7; margin-bottom: 16px; }
.card__link {
  font-size: .78rem;
  font-weight: 700;
  color: var(--ai);
  letter-spacing: .05em;
}
.card__link::after { content: " →"; }

/* ===== FEATURE LIST ===== */
.feature-list { list-style: none; }
.feature-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
  padding-left: 20px;
  position: relative;
}
.feature-list li::before {
  content: "▍";
  position: absolute;
  left: 0;
  color: var(--ai);
  font-size: .7rem;
  top: 16px;
}

/* ===== DISCLAIMER BOX ===== */
.disclaimer-box {
  background: var(--cream-dark);
  border-left: 3px solid var(--sumi-light);
  padding: 16px 20px;
  font-size: .8rem;
  color: var(--sumi-mid);
  line-height: 1.75;
  margin: 28px 0;
  border-radius: 0 2px 2px 0;
}

/* ===== ARTICLE PAGE ===== */
.article-header {
  background: var(--ai);
  padding: 0;
  text-align: left;
  position: relative;
  overflow: hidden;
}
.article-header__bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero.jpg');
  background-size: cover;
  background-position: center 40%;
  opacity: .25;
}
.article-header__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(27,48,80,.9) 0%, rgba(27,48,80,.65) 100%);
}
.article-header__inner {
  position: relative;
  z-index: 1;
  padding: 40px 20px 36px;
  max-width: 720px;
  margin: 0 auto;
}
.article-header .container { max-width: 720px; }
.article__cat {
  font-size: .68rem;
  letter-spacing: .18em;
  color: rgba(255,255,255,.6);
  margin-bottom: 10px;
}
.article__title {
  font-size: clamp(1.25rem, 4vw, 1.65rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.5;
  letter-spacing: .03em;
  margin-bottom: 14px;
}
.article__meta {
  font-size: .75rem;
  color: rgba(255,255,255,.55);
}

.article-body {
  padding: 40px 0 56px;
}
.article-body .container { max-width: 720px; }

.article-body h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ai);
  margin: 36px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--cream-dark);
  letter-spacing: .04em;
}
.article-body h3 {
  font-size: .98rem;
  font-weight: 700;
  color: var(--sumi);
  margin: 26px 0 10px;
}
.article-body p {
  font-size: .9rem;
  margin-bottom: 18px;
  color: var(--sumi-mid);
}
.article-body p:first-child { font-size: .95rem; color: var(--sumi); }
.article-body ul, .article-body ol {
  padding-left: 22px;
  margin-bottom: 18px;
}
.article-body li { font-size: .88rem; margin-bottom: 8px; color: var(--sumi-mid); }
.article-body strong { color: var(--sumi); font-weight: 700; }

.article-body .note-box {
  background: rgba(27,48,80,.06);
  border: 1px solid rgba(27,48,80,.15);
  border-radius: 3px;
  padding: 18px 20px;
  font-size: .82rem;
  color: var(--sumi-mid);
  margin: 24px 0;
}
.article-body .note-box p { font-size: .82rem; color: var(--sumi-mid); }

/* ===== AUTHOR BOX ===== */
.author-box {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 22px 22px;
  margin: 36px 0;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.author-box__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--cream-dark);
}
.author-box__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.author-box__name { font-size: .88rem; font-weight: 700; color: var(--sumi); margin-bottom: 4px; }
.author-box__desc { font-size: .78rem; color: var(--sumi-mid); line-height: 1.7; }

/* ===== BREADCRUMB ===== */
.breadcrumb {
  font-size: .72rem;
  color: var(--sumi-light);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.breadcrumb a { color: var(--sumi-light); }
.breadcrumb span { margin: 0 6px; }

/* ===== RELATED ===== */
.related { padding: 36px 0; border-top: 1px solid var(--border); }
.related__title { font-size: .88rem; font-weight: 700; color: var(--sumi-mid); margin-bottom: 16px; letter-spacing: .06em; }
.related-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.related-item {
  background: var(--cream);
  border: 1px solid var(--border);
  padding: 14px 16px;
  border-radius: 2px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--sumi) !important;
  text-decoration: none !important;
  line-height: 1.5;
  transition: background .12s;
}
.related-item:hover { background: var(--cream-dark); color: var(--ai) !important; }
@media (max-width: 480px) { .related-list { grid-template-columns: 1fr; } }

/* ===== TOPIC LIST ===== */
.topic-list { list-style: none; }
.topic-list li {
  border-bottom: 1px solid var(--border);
}
.topic-list a {
  display: flex;
  align-items: baseline;
  padding: 16px 4px;
  font-size: .9rem;
  color: var(--sumi) !important;
  text-decoration: none !important;
  gap: 12px;
  transition: background .1s;
}
.topic-list a:hover { background: var(--white); color: var(--ai) !important; padding-left: 8px; }
.topic-list__num { font-size: .68rem; color: var(--sumi-light); flex-shrink: 0; width: 24px; }
.topic-list__cat { font-size: .68rem; letter-spacing: .1em; color: var(--ai-light); flex-shrink: 0; }
.topic-list__date { font-size: .7rem; color: var(--sumi-light); margin-left: auto; flex-shrink: 0; }

/* ===== SNS BANNER ===== */
.sns-banner {
  background: var(--ai);
  padding: 32px 20px;
  text-align: center;
}
.sns-banner__text {
  font-size: .85rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 16px;
}
.sns-banner__links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.sns-btn {
  display: inline-block;
  border: 1px solid rgba(255,255,255,.4);
  color: rgba(255,255,255,.9) !important;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 9px 22px;
  border-radius: 2px;
  text-decoration: none !important;
  transition: background .12s;
}
.sns-btn:hover { background: rgba(255,255,255,.12); }

/* ===== ABOUT / STATIC PAGES ===== */
.page-header {
  background: var(--ai);
  padding: 36px 20px 32px;
}
.page-header__title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .06em;
}

.static-body {
  padding: 40px 0 64px;
  background: var(--white);
}
.static-body .container { max-width: 720px; }
.static-body h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ai);
  margin: 32px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.static-body h3 { font-size: .95rem; font-weight: 700; color: var(--sumi); margin: 22px 0 8px; }
.static-body p { font-size: .88rem; margin-bottom: 14px; color: var(--sumi-mid); line-height: 1.85; }
.static-body ul, .static-body ol { padding-left: 20px; margin-bottom: 14px; }
.static-body li { font-size: .85rem; margin-bottom: 8px; color: var(--sumi-mid); }
.static-body table { width: 100%; border-collapse: collapse; font-size: .82rem; margin: 16px 0 24px; }
.static-body th, .static-body td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.static-body th { background: var(--cream); font-weight: 700; color: var(--sumi); }

/* ===== FORM ===== */
.contact-form { max-width: 560px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: .8rem; font-weight: 700; color: var(--sumi); margin-bottom: 6px; }
.form-group label .req { color: #b00; font-size: .7rem; margin-left: 4px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 10px 12px;
  font-size: .88rem;
  color: var(--sumi);
  font-family: inherit;
  transition: border-color .12s;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--ai-light);
  background: var(--white);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.btn-submit {
  background: var(--ai);
  color: var(--white);
  border: none;
  padding: 13px 36px;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .06em;
  border-radius: 2px;
  cursor: pointer;
  font-family: inherit;
  transition: background .12s;
}
.btn-submit:hover { background: var(--ai-mid); }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--sumi);
  padding: 36px 20px 24px;
  text-align: center;
}
.site-footer__logo {
  font-size: .88rem;
  font-weight: 700;
  color: rgba(255,255,255,.85);
  letter-spacing: .06em;
  margin-bottom: 14px;
}
.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 0;
  margin-bottom: 20px;
}
.site-footer__nav a {
  font-size: .72rem;
  color: rgba(255,255,255,.55);
  padding: 2px 10px;
  border-right: 1px solid rgba(255,255,255,.15);
}
.site-footer__nav a:last-child { border-right: none; }
.site-footer__nav a:hover { color: rgba(255,255,255,.85); }
.site-footer__copy {
  font-size: .68rem;
  color: rgba(255,255,255,.35);
  letter-spacing: .05em;
}

/* ===== UTILITIES ===== */
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.text-center { text-align: center; }
.text-small { font-size: .8rem; color: var(--sumi-light); }

@media (max-width: 600px) {
  .section { padding: 36px 0; }
  .hero { padding: 40px 20px 36px; }
  .card-grid { grid-template-columns: 1fr; }
  .author-box { flex-direction: column; }
}
