:root {
  --bg: #f7f6f2;
  --paper: #ffffff;
  --ink: #1f2428;
  --text: #33383d;
  --muted: #646b70;
  --line: #d9d6ce;
  --line-dark: #2f3630;
  --green: #31473a;
  --sage: #687667;
  --brown: #8b6b45;
  --cream: #efede6;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  line-height: 1.9;
  letter-spacing: 0;
}

a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 48px);
  background: rgba(247, 246, 242, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.brand {
  display: grid;
  gap: 2px;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.28;
  font-weight: 800;
}

.brand span { font-size: 15px; }

.brand small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

.top-nav a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.top-nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.hero-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(28px, 5vw, 58px);
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(44px, 7vw, 82px) clamp(18px, 4vw, 48px) 34px;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brown);
  font-size: 12px;
  font-weight: 800;
}

.hero-copy h1 {
  max-width: 840px;
  margin: 0 0 20px;
  color: var(--ink);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, Georgia, serif;
  font-size: clamp(38px, 5.5vw, 70px);
  font-weight: 600;
  line-height: 1.12;
}

.hero-copy p {
  max-width: 720px;
  margin: 0;
  color: #3c4246;
  font-size: 17px;
  line-height: 2.05;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 16px;
  border-radius: 2px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.primary-button {
  background: var(--green);
  color: #fff;
}

.secondary-button {
  background: transparent;
  color: var(--green);
  border: 1px solid var(--green);
}

.hero-panel {
  display: block;
  align-self: end;
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.hero-panel div {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 10px;
  align-items: baseline;
  padding: 12px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

.hero-panel div:last-child { border-bottom: 0; }

.hero-panel strong {
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 25px;
  font-weight: 600;
  line-height: 1;
}

.hero-panel span {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(30px, 4vw, 48px);
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 48px) 82px;
}

.main-column { min-width: 0; }
.section { margin-top: 46px; }

.section-head {
  display: grid;
  grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--line-dark);
}

.section-head h2 {
  margin: 0;
  color: var(--ink);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, Georgia, serif;
  font-size: 27px;
  font-weight: 600;
  line-height: 1.35;
}

.section-head p {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.feature-grid,
.article-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.article-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.feature-card,
.article-card {
  display: block;
  min-height: 172px;
  padding: 18px;
  background: var(--paper);
  border: 0;
  border-radius: 0;
  text-decoration: none;
  transition: background .15s ease;
}

.feature-card {
  min-height: 205px;
  padding: 22px;
}

.feature-card:hover,
.article-card:hover { background: #fbfaf6; }

.feature-card span:first-child,
.article-card span:first-child {
  display: block;
  margin-bottom: 10px;
  color: var(--brown);
  font-family: Georgia, serif;
  font-size: 12px;
  font-weight: 700;
}

.feature-card small,
.article-card small {
  display: inline;
  padding: 0;
  background: transparent;
  color: var(--sage);
  font-size: 12px;
  font-weight: 800;
}

.feature-card strong,
.article-card strong {
  display: block;
  margin: 7px 0 8px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.55;
}

.feature-card strong { font-size: 19px; }

.feature-card p,
.article-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

.tool-row {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.search-box {
  flex: 1;
  min-height: 46px;
  padding: 11px 13px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  font: inherit;
}

.clear-button {
  min-height: 46px;
  padding: 0 14px;
  background: transparent;
  border: 1px solid var(--green);
  border-radius: 2px;
  color: var(--green);
  font-weight: 800;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}

.theme-chip {
  min-height: 126px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.theme-chip strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 14px;
}

.theme-chip span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.theme-chip.is-active {
  background: var(--green);
  border-color: var(--green);
}

.theme-chip.is-active strong,
.theme-chip.is-active span { color: #fff; }

.article-count {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
}

.empty-state {
  display: none;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
}

.side-column {
  position: relative;
  padding-top: 46px;
}

.side-box {
  margin-bottom: 18px;
  padding: 16px 0 0;
  background: transparent;
  border: 0;
  border-top: 2px solid var(--line-dark);
  border-radius: 0;
}

.side-box:first-child {
  position: sticky;
  top: 82px;
}

.side-box + .side-box { position: static; }

.side-box h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}

.side-box p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

.side-box a,
.side-links a {
  display: block;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.7;
}

.side-links a:first-child { border-top: 0; }

.side-links span {
  display: block;
  color: var(--brown);
  font-family: Georgia, serif;
  font-size: 12px;
  font-weight: 700;
}

.side-box.accent {
  padding: 18px;
  background: var(--green);
  border: 0;
  color: #fff;
}

.side-box.accent h2,
.side-box.accent p,
.side-box.accent a { color: #fff; }

.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 860px) 290px;
  gap: clamp(28px, 4vw, 46px);
  max-width: 1250px;
  margin: 0 auto;
  padding: 48px clamp(18px, 4vw, 48px) 82px;
}

.article-body {
  min-width: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.article-head {
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 2px solid var(--line-dark);
}

.article-head h1 {
  margin: 0 0 18px;
  color: var(--ink);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, Georgia, serif;
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 600;
  line-height: 1.18;
}

.article-head p:last-child {
  max-width: 760px;
  color: var(--muted);
  font-size: 17px;
  line-height: 2;
}

.back-link {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.direct-box {
  margin: 0 0 22px;
  padding: 20px 22px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 2px;
}

.direct-box h2,
.faq-box h2 { margin-top: 0; }

.point-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 22px 0 30px;
  background: var(--line);
  border: 1px solid var(--line);
}

.point-card {
  padding: 15px;
  background: #fff;
  border: 0;
  border-radius: 0;
}

.point-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--brown);
  font-size: 12px;
}

.article-copy {
  padding: clamp(22px, 4vw, 44px);
  background: #fff;
  border: 1px solid var(--line);
}

.article-copy h2 {
  margin-top: 42px;
  padding: 0 0 10px;
  border-left: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, Georgia, serif;
  font-size: 27px;
  font-weight: 600;
  line-height: 1.45;
}

.article-copy h2:first-child { margin-top: 0; }

.article-copy p {
  font-size: 16px;
  line-height: 2.08;
}

.faq-box {
  margin-top: 28px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
}

.faq-box details {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.faq-box summary {
  cursor: pointer;
  font-weight: 900;
}

.article-side {
  position: sticky;
  top: 82px;
  align-self: start;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 32px clamp(18px, 4vw, 48px);
  background: var(--green);
  border-top: 0;
  color: #fff;
  font-size: 13px;
}

.site-footer p {
  margin: 6px 0 0;
  color: #e4e8df;
}

.site-footer nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

@media (max-width: 1080px) {
  .hero-band,
  .content-layout,
  .article-shell { grid-template-columns: 1fr; }

  .hero-panel {
    padding: 18px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .side-column,
  .article-side,
  .side-box:first-child {
    position: static;
    padding-top: 0;
  }

  .feature-grid,
  .article-grid,
  .theme-grid,
  .point-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    padding: 13px 15px;
  }

  .top-nav { display: none; }

  .hero-band { padding: 34px 16px 22px; }

  .hero-copy h1 { font-size: 38px; }

  .content-layout,
  .article-shell {
    padding-left: 15px;
    padding-right: 15px;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .feature-grid,
  .article-grid,
  .theme-grid,
  .point-grid { grid-template-columns: 1fr; }

  .tool-row { display: block; }

  .clear-button {
    width: 100%;
    margin-top: 10px;
  }

  .article-copy,
  .faq-box { padding: 20px 16px; }

  .site-footer { display: block; }
}

/* layout-fix-v4 */
.point-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  background: transparent;
  border: 0;
}
.point-grid > div,
.point-card {
  min-height: 104px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
}
.point-grid span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}
.point-grid strong,
.point-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--brown);
  font-size: 16px;
  line-height: 1.55;
}
@media (max-width: 900px) {
  .point-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .point-grid { grid-template-columns: 1fr; }
}
