* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f6faf8;
  color: #10243a;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 64px);
  border-bottom: 1px solid #d9e7e1;
  background: rgba(255, 255, 255, .98);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: #071d3c;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: linear-gradient(135deg, #5a986c, #075fb5);
  color: #fff;
  font-size: 22px;
  font-weight: 950;
}

.brand b,
.brand small {
  display: block;
}

.brand b {
  font-size: 20px;
  line-height: 1.2;
}

.brand small {
  margin-top: 2px;
  color: #637589;
  font-size: 13px;
  font-weight: 800;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.site-nav a {
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid #ccded7;
  border-radius: 999px;
  background: #fff;
  color: #113555;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(350px, .82fr);
  gap: 28px;
  max-width: 1540px;
  margin: 0 auto;
  padding: clamp(34px, 5vw, 76px) clamp(18px, 4vw, 58px) 34px;
  background:
    radial-gradient(circle at 72% 28%, rgba(90, 152, 108, .14) 0 13%, transparent 14%),
    linear-gradient(112deg, #ffffff 0 54%, #edf7f1 54% 78%, #eef6ff 78%);
}

.hero::after {
  content: "";
  position: absolute;
  right: clamp(360px, 30vw, 470px);
  top: 104px;
  width: 300px;
  height: 270px;
  border: 4px solid rgba(7, 95, 181, .22);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(90, 152, 108, .14) 0 18%, transparent 18% 82%, rgba(90, 152, 108, .14) 82%),
    linear-gradient(#f8fbff, #ffffff);
  box-shadow:
    inset 0 34px 0 rgba(7, 95, 181, .08),
    0 18px 32px rgba(12, 50, 74, .08);
  opacity: .78;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.breadcrumb {
  margin-bottom: 20px;
  color: #61758a;
  font-size: 14px;
  font-weight: 800;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 9px 14px;
  border-radius: 999px;
  background: #e7f4eb;
  color: #347947;
  font-size: 15px;
  font-weight: 950;
}

h1 {
  max-width: 900px;
  margin-bottom: 16px;
  color: #071d3c;
  font-size: clamp(44px, 5.4vw, 84px);
  line-height: 1.08;
}

.lead {
  max-width: 850px;
  margin-bottom: 24px;
  color: #203b55;
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 760;
  line-height: 1.75;
}

.branch-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 880px;
}

.branch-card {
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 10px 16px;
  min-height: 164px;
  padding: 20px;
  border: 2px solid #5a986c;
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 16px 34px rgba(13, 60, 104, .1);
  text-decoration: none;
}

.branch-buy {
  border-color: #0b70c9;
}

.branch-card::after {
  content: "詳しく見る";
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  background: #5a986c;
  color: #fff;
  font-size: 16px;
  font-weight: 950;
}

.branch-buy::after {
  background: #0b70c9;
}

.branch-icon {
  grid-row: span 3;
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: #e7f4eb;
  color: #347947;
  font-size: 26px;
  font-weight: 950;
}

.branch-buy .branch-icon {
  background: #e8f3ff;
  color: #0b70c9;
}

.branch-label {
  color: #347947;
  font-size: 28px;
  font-weight: 950;
}

.branch-buy .branch-label {
  color: #0b70c9;
}

.branch-card b {
  color: #132a42;
  font-size: 19px;
}

.branch-card small {
  color: #506478;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.6;
}

.today-panel,
.topic-card,
.table-section,
.tool-bridge,
.sources-section,
.related-section {
  border: 1px solid #d6e6df;
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 16px 34px rgba(13, 60, 104, .08);
}

.today-panel {
  position: relative;
  z-index: 1;
  padding: 20px;
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, #5a986c, #0b70c9);
  color: #fff;
}

.panel-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, .72);
  border-radius: 50%;
  font-size: 22px;
  font-weight: 950;
}

.panel-head h2 {
  margin: 0;
  font-size: 28px;
}

.today-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.today-list li {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 11px 0;
  border-bottom: 1px solid #dbe9e3;
  color: #18314b;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.5;
}

.today-list span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #5a986c;
  color: #fff;
  font-weight: 950;
}

.quick-answer,
.topic-grid,
.table-section,
.mistake-section,
.tool-bridge,
.related-section,
.sources-section {
  max-width: 1280px;
  margin: 28px auto 0;
  padding-inline: clamp(18px, 4vw, 36px);
}

.quick-answer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.quick-answer article {
  padding: 24px;
  border-radius: 8px;
  background: #071d3c;
  color: #fff;
}

.quick-answer span,
.section-head p,
.tool-kicker,
.mistake-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  color: #5a986c;
  font-size: 15px;
  font-weight: 950;
}

.quick-answer span {
  color: #b4e4c0;
}

.quick-answer h2 {
  margin-bottom: 12px;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.35;
}

.quick-answer p,
.topic-card p,
.mistake-section p,
.tool-bridge p {
  color: inherit;
  font-size: 17px;
  line-height: 1.9;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.topic-card {
  padding: 22px;
}

.topic-card span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  background: #e7f4eb;
  color: #347947;
  font-size: 20px;
  font-weight: 950;
}

.topic-card h2 {
  margin: 14px 0 10px;
  color: #071d3c;
  font-size: 25px;
  line-height: 1.38;
}

.topic-card p {
  color: #314b62;
}

.table-section,
.related-section,
.sources-section {
  padding: 24px;
}

.section-head h2 {
  margin-bottom: 16px;
  color: #092541;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.32;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid #d6e6df;
  border-radius: 8px;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  padding: 16px;
  border-bottom: 1px solid #d6e6df;
  text-align: left;
  vertical-align: top;
  font-size: 16px;
  line-height: 1.65;
}

thead th {
  background: #e9f5ee;
  color: #07375b;
  font-size: 15px;
  font-weight: 950;
}

tbody th {
  color: #347947;
  font-weight: 950;
}

.mistake-section {
  display: grid;
  grid-template-columns: minmax(0, .58fr) minmax(0, 1fr);
  gap: 20px;
  padding-top: 28px;
  padding-bottom: 28px;
  border-radius: 8px;
  background: #fff;
}

.mistake-kicker {
  color: #d65045;
}

.mistake-section h2 {
  color: #d65045;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.24;
}

.mistake-section > div:first-child {
  padding: 24px;
}

.mistake-section > div:first-child p {
  color: #354b61;
}

.mistake-grid {
  display: grid;
  gap: 14px;
}

.mistake-grid article {
  padding: 18px;
  border: 2px solid #f1b4ac;
  border-radius: 8px;
  background: #fff8f6;
}

.mistake-grid b {
  color: #c93c35;
  font-size: 22px;
}

.mistake-grid p {
  margin: 8px 0 0;
  color: #493433;
  font-size: 16px;
}

.tool-bridge {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .62fr);
  gap: 22px;
  padding: 26px;
  background: linear-gradient(135deg, #071d3c, #0b70c9);
  color: #fff;
}

.tool-bridge h2 {
  margin-bottom: 10px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.3;
}

.tool-bridge p {
  margin-bottom: 0;
  color: #dcecff;
}

.tool-links {
  display: grid;
  gap: 12px;
}

.tool-links a {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 8px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 17px;
  font-weight: 950;
  text-decoration: none;
}

.related-grid,
.source-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.source-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.related-grid a,
.source-list a {
  display: flex;
  min-height: 58px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid #d4e4dc;
  border-radius: 8px;
  background: #f8fcfa;
  color: #063556;
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 42px;
  padding: 34px 18px 46px;
  color: #52687b;
}

.site-footer a {
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 1080px) {
  .hero,
  .quick-answer,
  .mistake-section,
  .tool-bridge {
    grid-template-columns: 1fr;
  }

  .hero::after {
    opacity: .12;
    right: 42px;
  }

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

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .brand b {
    font-size: 17px;
  }

  .brand small {
    display: none;
  }

  .site-nav a {
    font-size: 13px;
  }

  h1 {
    font-size: 39px;
  }

  .lead {
    font-size: 18px;
  }

  .branch-cards,
  .topic-grid,
  .related-grid,
  .source-list {
    grid-template-columns: 1fr;
  }

  .branch-card {
    grid-template-columns: 54px 1fr;
    min-height: 150px;
    padding: 16px;
  }

  .branch-icon {
    width: 54px;
    height: 54px;
  }

  .branch-label {
    font-size: 24px;
  }

  .quick-answer article,
  .topic-card,
  .table-section,
  .mistake-section > div:first-child,
  .tool-bridge,
  .related-section,
  .sources-section {
    padding: 18px;
  }

  .quick-answer h2,
  .section-head h2 {
    font-size: 27px;
  }

  table {
    min-width: 680px;
  }
}
