/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  color: #3a3a3a;
  line-height: 1.9;
  background: #fafaf7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { max-width: 960px; margin: 0 auto; padding: 0 24px; }

/* ===== Typography ===== */
.section-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.6;
  color: #2c2c2c;
  margin-bottom: 16px;
}
.section-title--center { text-align: center; }
.section-lead {
  font-size: .95rem;
  color: #666;
  line-height: 1.9;
  margin-bottom: 48px;
}
.section-lead--center { text-align: center; }

/* ===== ① Hero ===== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__image-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(250,250,247,.97) 0%,
    rgba(250,250,247,.88) 40%,
    rgba(250,250,247,.4) 70%,
    transparent 100%
  );
}
.hero__content {
  position: relative;
  z-index: 1;
  padding: 60px 5vw;
  max-width: 580px;
}
.hero__label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .15em;
  color: #5a8f5a;
  border: 1px solid #5a8f5a;
  padding: 5px 16px;
  border-radius: 2px;
  margin-bottom: 28px;
}
.hero__title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.7;
  color: #1a1a1a;
  margin-bottom: 28px;
}
.hero__lead {
  font-size: .95rem;
  color: #555;
  line-height: 2.1;
  margin-bottom: 48px;
}
.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #5a8f5a;
  font-size: .85rem;
  font-weight: 500;
  transition: opacity .3s;
}
.hero__scroll:hover { opacity: .7; }
.hero__scroll-arrow {
  animation: bobDown 2s ease-in-out infinite;
}
@keyframes bobDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ===== ② Pillars ===== */
.pillars-section {
  padding: 100px 0;
  background: #fff;
}
.pillars-section__layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: stretch;
}
.pillars-section__image {
  height: 100%;
}
.pillars-section__image img {
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,.08);
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 32px 0 24px;
}
.pillar-card {
  background: #f7f7f4;
  border-radius: 12px;
  padding: 28px 16px;
  text-align: center;
  position: relative;
  transition: transform .3s ease, box-shadow .3s ease;
}
.pillar-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}
.pillar-card__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
}
.pillar-card__icon svg {
  width: 100%;
  height: 100%;
}
.pillar-card h3 {
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.5;
}
.pillar-card p {
  font-size: .78rem;
  color: #888;
  line-height: 1.6;
}
.pillar-card--highlight {
  background: #f0f5ed;
  border: 1.5px solid #a3c9a3;
}
.pillar-card__badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #5a8f5a;
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: 20px;
  white-space: nowrap;
}
.pillars-note {
  font-size: .88rem;
  color: #666;
  padding-left: 16px;
  border-left: 3px solid #a3c9a3;
}

/* ===== ③ Dust ===== */
.dust-section {
  padding: 100px 0;
  background: #fafaf7;
}
.dust-section__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.dust-section__diagram img {
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,.06);
}
.fact-card {
  padding: 28px;
  background: #fff;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
  transition: transform .3s;
}
.fact-card:hover { transform: translateY(-2px); }
.fact-card h3 {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #2c2c2c;
}
.fact-card p {
  font-size: .88rem;
  color: #666;
  line-height: 1.9;
}

/* ===== ④ Research ===== */
.research-section {
  padding: 100px 0;
  background: #fff;
}
.research-section__intro {
  display: grid;
  grid-template-columns: .8fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
}
.research-section__photo {
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,.08);
  max-height: 340px;
  object-fit: cover;
  width: 100%;
}
.research-section__intro-text p {
  font-size: .92rem;
  color: #555;
  line-height: 2;
  margin-top: 16px;
}
.research-overview {
  background: #f7f7f4;
  border-radius: 16px;
  padding: 48px;
}
.research-overview__title {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
  color: #2c2c2c;
}
.research-table {
  width: 100%;
  border-collapse: collapse;
}
.research-table th,
.research-table td {
  padding: 16px 20px;
  text-align: left;
  font-size: .9rem;
  border-bottom: 1px solid #e8e8e4;
  vertical-align: top;
}
.research-table th {
  font-weight: 700;
  color: #5a8f5a;
  width: 120px;
  white-space: nowrap;
}
.research-table td {
  color: #444;
  line-height: 1.8;
}
.research-table tr:last-child th,
.research-table tr:last-child td {
  border-bottom: none;
}

/* ===== ⑤ Results ===== */
.results-section {
  padding: 100px 0;
  background: #f7f7f4;
}
.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 48px;
}
.result-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px 32px;
  box-shadow: 0 4px 20px rgba(0,0,0,.04);
  position: relative;
  transition: transform .3s;
}
.result-card:hover { transform: translateY(-3px); }
.result-card__number {
  width: 36px;
  height: 36px;
  background: #5a8f5a;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: 20px;
}
.result-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #2c2c2c;
}
.result-card p {
  font-size: .88rem;
  color: #666;
  line-height: 1.9;
}
.result-image-area {
  margin: 0 auto 48px;
  max-width: 560px;
}
.result-image {
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,.08);
}
.research-notes {
  background: #fff;
  border-left: 4px solid #c9b87a;
  border-radius: 0 12px 12px 0;
  padding: 36px 40px;
}
.research-notes h3 {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #8a7a4a;
}
.research-notes ul {
  list-style: none;
  padding: 0;
}
.research-notes li {
  font-size: .85rem;
  color: #666;
  line-height: 1.9;
  padding: 6px 0 6px 20px;
  position: relative;
}
.research-notes li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d4c68a;
}
.research-notes li strong {
  color: #5a8f5a;
}

/* ===== ⑥ Kamishibai ===== */
.kamishibai-section {
  padding: 60px 0;
  background: #fafaf7;
}
.kamishibai-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px 36px;
  background: #fff;
  border: 1.5px solid #e4e4de;
  border-radius: 16px;
  transition: all .3s ease;
  cursor: pointer;
  width: 100%;
  text-align: left;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}
.kamishibai-card:hover {
  border-color: #a3c9a3;
  box-shadow: 0 6px 24px rgba(90,143,90,.1);
}
.kamishibai-card__icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}
.kamishibai-card__icon svg {
  width: 100%;
  height: 100%;
}
.kamishibai-card__body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.kamishibai-card__body p {
  font-size: .85rem;
  color: #888;
  line-height: 1.7;
}
.kamishibai-card__arrow {
  margin-left: auto;
  color: #a3c9a3;
  flex-shrink: 0;
  transition: transform .3s;
}
.kamishibai-card:hover .kamishibai-card__arrow {
  transform: translateX(4px);
}

/* ===== ⑦ Closing ===== */
.closing-section {
  position: relative;
  padding: 120px 0 100px;
  overflow: hidden;
}
.closing-section__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.closing-section__bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(6px);
  transform: scale(1.05);
}
.closing-section__bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(250,250,247,.88);
}
.closing-section__content {
  position: relative;
  z-index: 1;
  text-align: center;
}
.closing-section__family {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 40px;
  box-shadow: 0 8px 30px rgba(0,0,0,.1);
}
.closing-section__content .section-title {
  text-align: center;
  margin-bottom: 32px;
}
.closing-section__message {
  font-size: 1rem;
  color: #444;
  line-height: 2.2;
  max-width: 520px;
  margin: 0 auto 48px;
}
.closing-section__link {
  font-size: .82rem;
  color: #999;
}
.closing-section__link a {
  color: #5a8f5a;
  border-bottom: 1px solid #5a8f5a;
  padding-bottom: 1px;
  transition: opacity .3s;
}
.closing-section__link a:hover { opacity: .6; }

/* ===== Footer ===== */
.footer {
  background: #2c2f2c;
  color: #b8b8b0;
  padding: 40px 0 20px;
  font-size: .82rem;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.footer__logo {
  height: 34px;
  width: auto;
  filter: brightness(0) invert(1) opacity(.85);
}
.footer__nav { display: flex; gap: 20px; }
.footer__nav a { color: #b8b8b0; transition: color .3s; }
.footer__nav a:hover { color: #a3c9a3; }
.footer__copyright {
  text-align: center;
  font-size: .72rem;
  color: #6a6d6a;
  border-top: 1px solid #3a3d3a;
  padding-top: 16px;
}

/* ===== Back to Top ===== */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #5a8f5a;
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  opacity: 0;
  visibility: hidden;
  transition: all .3s ease;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-2px); }

/* ===== Scroll Animation ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== PDF Modal & Viewer ===== */
.pdf-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.pdf-modal.active { display: flex; }
.pdf-modal__inner {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: 88vh;
  background: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
  display: flex;
  flex-direction: column;
}
.pdf-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,.5);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s;
}
.pdf-modal__close:hover { background: rgba(0,0,0,.8); }
.pdf-viewer__canvas-area {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  background: #2a2a2a;
}
.pdf-viewer__canvas-area canvas {
  max-width: 100%;
  max-height: 100%;
  display: block;
}
.pdf-viewer__loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: .9rem;
}
.pdf-viewer__loading.hidden { display: none; }
.pdf-viewer__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 14px 0;
  background: #111;
}
.pdf-viewer__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: #ddd;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s;
}
.pdf-viewer__btn:hover { background: rgba(255,255,255,.2); color: #fff; }
.pdf-viewer__btn:disabled { opacity: .3; cursor: default; }
.pdf-viewer__btn:disabled:hover { background: rgba(255,255,255,.1); color: #ddd; }
.pdf-viewer__page {
  color: #aaa;
  font-size: .82rem;
  min-width: 60px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 768px) {
  .pdf-modal { padding: 0; }
  .pdf-modal__inner { max-width: 100%; height: 100vh; border-radius: 0; }
  .pdf-modal__close { top: 8px; right: 8px; }
  .pdf-viewer__controls { padding: 12px 0; gap: 20px; }
  .pdf-viewer__btn { width: 48px; height: 48px; }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section-title { font-size: 1.25rem; }
  .section-lead { font-size: .85rem; margin-bottom: 28px; }
  .section-lead br { display: none; }

  /* Hero */
  .hero { min-height: auto; flex-direction: column; }
  .hero__image-overlay {
    background: linear-gradient(180deg, transparent 0%, rgba(250,250,247,.85) 65%);
  }
  .hero__image-wrapper { position: relative; height: 320px; }
  .hero__image { object-position: 65% center; }
  .hero__content { padding: 28px 20px 48px; max-width: 100%; }
  .hero__title { font-size: 1.35rem; }
  .hero__lead { font-size: .88rem; line-height: 2; margin-bottom: 32px; }
  .hero__lead br { display: none; }

  /* Pillars */
  .pillars-section { padding: 56px 0; }
  .pillars-section__layout { grid-template-columns: 1fr; gap: 28px; }
  .pillars-section__image { order: -1; }
  .pillars-section__image img { max-height: 220px; object-fit: cover; width: 100%; }
  .pillars-grid { grid-template-columns: 1fr; gap: 12px; }
  .pillar-card {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    padding: 20px 16px;
  }
  .pillar-card--highlight { padding-top: 24px; }
  .pillar-card__icon { width: 40px; height: 40px; margin: 0; flex-shrink: 0; }
  .pillar-card__badge {
    top: -8px;
    left: auto;
    right: 12px;
    transform: none;
    font-size: .6rem;
    padding: 2px 10px;
  }
  .pillar-card h3 { font-size: .88rem; }
  .pillar-card h3 br { display: none; }
  .pillar-card p { font-size: .75rem; }
  .pillar-card p br { display: none; }
  .pillars-note { font-size: .82rem; }

  /* Dust */
  .dust-section { padding: 56px 0; }
  .dust-section__layout { grid-template-columns: 1fr; gap: 28px; }
  .dust-section__diagram img { max-width: 100%; margin: 0 auto; }
  .fact-card { padding: 20px; }
  .fact-card h3 { font-size: .9rem; }
  .fact-card p { font-size: .82rem; }

  /* Research */
  .research-section { padding: 56px 0; }
  .research-section__intro { grid-template-columns: 1fr; gap: 20px; }
  .research-section__photo { max-height: 220px; }
  .research-section__intro-text p { font-size: .85rem; }
  .research-overview { padding: 24px 16px; }
  .research-table th,
  .research-table td {
    display: block;
    width: 100%;
    padding: 0;
    font-size: .82rem;
  }
  .research-table th {
    padding-top: 14px;
    padding-bottom: 4px;
    border-bottom: none;
  }
  .research-table td {
    padding-bottom: 14px;
    border-bottom: 1px solid #e8e8e4;
  }
  .research-table tr:last-child td { border-bottom: none; }

  /* Results */
  .results-section { padding: 56px 0; }
  .results-grid { grid-template-columns: 1fr; gap: 16px; }
  .result-card { padding: 24px 20px; }
  .result-card h3 { font-size: .95rem; }
  .result-card p { font-size: .82rem; }
  .result-image-area { margin-bottom: 32px; }
  .research-notes { padding: 24px 20px; }
  .research-notes h3 { font-size: .88rem; }
  .research-notes li { font-size: .8rem; padding-left: 16px; }
  .research-notes li::before { top: 12px; width: 6px; height: 6px; }

  /* Kamishibai */
  .kamishibai-section { padding: 36px 0; }
  .kamishibai-card { padding: 20px 16px; gap: 14px; }
  .kamishibai-card__icon { width: 36px; height: 36px; }
  .kamishibai-card__body h3 { font-size: .9rem; }
  .kamishibai-card__body p { font-size: .78rem; }
  .kamishibai-card__body p br { display: none; }
  .kamishibai-card__arrow { min-width: 20px; }

  /* Closing */
  .closing-section { padding: 64px 0 56px; }
  .closing-section__family { width: 140px; height: 140px; margin-bottom: 28px; }
  .closing-section__content .section-title { margin-bottom: 24px; }
  .closing-section__message {
    font-size: .88rem;
    line-height: 2;
    padding: 0 8px;
  }
  .closing-section__message br { display: none; }
  .closing-section__link { font-size: .78rem; }

  /* Footer */
  .footer { padding: 32px 0 16px; }
  .footer__inner { flex-direction: column; gap: 16px; text-align: center; }
  .footer__logo { height: 24px; }
  .footer__nav { flex-wrap: wrap; justify-content: center; gap: 12px; font-size: .78rem; }
}
