:root {
  --home-text: #1c2b47;
  --home-muted: #4e5a69;
  --home-accent: #253e90;
  --home-surface: #fbf8ee;
  --home-line: #dfd9c8;
  --hero-surface: #f2ecdd;
  font-family: -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
  line-height: 1.75;
  color: var(--home-text);
  background: var(--home-surface);
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--home-accent); text-underline-offset: 4px; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--home-accent); outline-offset: 4px; }

.site-header, .site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 16px max(5%, calc((100% - 1300px) / 2));
  background: #fff;
}
.site-header { border-bottom: 1px solid var(--home-line); }
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--home-text);
  font-weight: 700;
  text-decoration: none;
}
.site-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 38px;
  border-radius: 9px;
  background: var(--home-accent);
  color: #fff;
  font: 700 1.55rem/1 Georgia, serif;
}
.site-header nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-header nav a { color: var(--home-text); font-size: .9375rem; text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; }
.site-footer { padding-block: 22px; color: var(--home-muted); font-size: .875rem; }

.home-hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(32px, 5vw, 82px);
  padding: clamp(52px, 8vw, 106px) max(5%, calc((100% - 1200px) / 2));
  background: var(--hero-surface);
}
.home-hero-copy, .home-hero-visual { min-width: 0; }
.home-hero-visual { order: -1; }
.home-hero h1 {
  margin: 0;
  font: 650 clamp(2.35rem, 4.05vw, 4rem)/1.32 'Yu Mincho', 'Hiragino Mincho ProN', serif;
  letter-spacing: -.04em;
}
.home-hero h1 em { display: block; color: var(--home-accent); font-style: normal; }
.home-study-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 15px 15px #ded4be;
}
.opening-status {
  display: inline-block;
  margin: 0 0 15px;
  padding: 3px 12px;
  border: 1px solid #b9c3dd;
  border-radius: 6px;
  background: #e9edf7;
  color: var(--home-accent);
  font-size: .9375rem;
  font-weight: 700;
}
.home-intro { max-width: 35em; margin: 22px 0 14px; color: var(--home-muted); font-size: 1.0625rem; }
.opening-note { margin: 0; color: var(--home-text); font-size: .9375rem; font-weight: 650; }
.home-links { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; margin-top: 20px; }
.home-links > a:not(.btn) { font-size: .9375rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--home-accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.btn:hover { background: #1e3276; }

.home-section {
  max-width: 1240px;
  margin: auto;
  padding: clamp(44px, 6.5vw, 78px) max(5%, 24px);
  border-bottom: 1px solid var(--home-line);
}
.home-section h2 { margin: 0 0 14px; font-size: clamp(1.55rem, 2.7vw, 2.45rem); line-height: 1.35; letter-spacing: -.04em; }
.home-section p { margin: 0; color: var(--home-muted); }
.home-books { display: grid; grid-template-columns: 1.1fr 1fr; gap: 26px 64px; align-items: center; }
.home-book-card {
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--home-line);
  border-left: 4px solid var(--home-accent);
  border-radius: 4px 10px 10px 4px;
  background: #fff;
}
.home-book-card .home-book-label { color: var(--home-accent); font-size: .875rem; font-weight: 650; }
.home-book-card h3 { margin: 6px 0; font-size: clamp(1.12rem, 1.6vw, 1.35rem); line-height: 1.5; }
.home-book-edition { font-size: .875rem; }
.home-book-card .home-links { margin-top: 16px; }

.home-feature {
  display: grid;
  grid-template: 'image copy' auto / minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
}
.home-feature-image-right { grid-template-areas: 'copy image'; }
.home-feature-copy { grid-area: copy; }
.home-feature-copy h2 { font-size: clamp(1.55rem, 2.45vw, 2.25rem); }
.home-feature-copy p + p { margin-top: 14px; }
.home-feature figure { grid-area: image; margin: 0; }
.home-feature img { display: block; width: 100%; height: auto; border-radius: 6px; }
.home-feature figcaption { margin-top: 8px; color: var(--home-muted); font-size: .875rem; }
.home-feature-example { margin-top: 20px; padding: 14px 16px; border-left: 2px solid var(--home-accent); background: var(--hero-surface); }
.home-feature-example h3 { margin: 0 0 5px; font-size: .9375rem; color: var(--home-accent); }

.home-section-heading { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; margin-bottom: 24px; }
.home-section-heading h2 { margin: 0; }
.home-price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.home-price-grid article { padding: clamp(18px, 3vw, 30px); border: 1px solid var(--home-line); border-radius: 12px; background: #fff; }
.home-price-grid h3 { margin: 0 0 9px; font-size: 1.1rem; }
.home-price-grid .home-price { margin: 0 0 4px; color: var(--home-accent); font-size: clamp(1.85rem, 3vw, 2.85rem); font-weight: 720; line-height: 1.4; }
.home-price small { color: var(--home-muted); font-size: .875rem; font-weight: 500; }
.home-questions details { border-top: 1px solid var(--home-line); }
.home-questions summary { padding: 16px 0; cursor: pointer; font-weight: 650; }
.home-questions details p { margin: 0 0 16px 18px; }

@media (max-width: 850px) {
  .home-hero, .home-books { grid-template-columns: minmax(0, 1fr); }
  .home-hero-visual { order: 0; max-width: 560px; }
  .home-study-photo { box-shadow: 9px 9px #ded4be; }
  .home-feature { grid-template: 'copy' 'image' / minmax(0, 1fr); }
}

@media (max-width: 600px) {
  .site-header nav { gap: 8px 16px; }
  .home-hero { padding: 40px 24px; }
  .home-hero h1 { font-size: clamp(1.95rem, 8.6vw, 2.55rem); }
  .home-price-grid { grid-template-columns: minmax(0, 1fr); }
}
