/*
  style_home.css
  Home page only styles based on styles_new.css.

  Usage:
  Load this file AFTER /style.css on index_old.php:
  <link rel="stylesheet" href="/style.css">
  <link rel="stylesheet" href="/style_home.css">

  The rules are scoped to body.index-page so they do not unintentionally
  change About, History, Map, footer, or the existing PHP header styles.
*/

:root {
  --home-ink: #1f2527;
  --home-muted: #6d6f6a;
  --home-cream: #f7f3ea;
  --home-paper: #fffdf7;
  --home-stone: #d9d1c3;
  --home-blue: #243f63;
  --home-blue-soft: #e8eef5;
  --home-wine: #8f1717;
  --home-gold: #b79355;
  --home-shadow: 0 24px 70px rgba(28, 34, 38, 0.12);
  --home-max: 1160px;
}

html {
  scroll-behavior: smooth;
}

body.index-page {
  color: var(--home-ink);
  background: var(--home-paper);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.75;
}

body.index-page main {
  color: var(--home-ink);
  background: var(--home-paper);
}

body.index-page main *,
body.index-page main *::before,
body.index-page main *::after {
  box-sizing: border-box;
}

body.index-page main a {
  color: inherit;
  text-decoration: none;
}

body.index-page main img {
  display: block;
  max-width: 100%;
}

/* Keep anchor jumps below the fixed legacy header. */
body.index-page main section[id] {
  scroll-margin-top: 120px;
}

/* ============================
   Home hero
============================ */

body.index-page main .hero {
  min-height: 82vh;
  display: grid;
  place-items: center;
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(247, 243, 234, 0.2), rgba(247, 243, 234, 0.45)),
    radial-gradient(circle at 16% 18%, rgba(183, 147, 85, 0.24), transparent 28%),
    radial-gradient(circle at 82% 26%, rgba(36, 63, 99, 0.22), transparent 26%),
    linear-gradient(135deg, #f8f4eb 0%, #e7dfd1 48%, #fdfbf4 100%);
}

body.index-page main .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(36, 63, 99, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(36, 63, 99, 0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 75%);
  pointer-events: none;
}

body.index-page main .hero-card {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.76);
  box-shadow: var(--home-shadow);
  padding: clamp(38px, 7vw, 88px);
  text-align: center;
}

body.index-page main .eyebrow {
  color: var(--home-wine);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 760;
  font-size: 0.78rem;
  margin: 0 0 16px;
  padding: 0;
}

body.index-page main h1,
body.index-page main h2,
body.index-page main h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 1.06;
  margin: 0;
  padding: 0;
  color: #20272a;
}

body.index-page main h1 {
  font-family: "Cinzel", Georgia, serif;
  font-weight: 400;
  letter-spacing: 0.08em;
  font-size: clamp(2.6rem, 7vw, 6.8rem);
}

body.index-page main .hero h1 span {
  display: block;
  font-size: clamp(1.5rem, 4.5vw, 4.2rem);
}

body.index-page main .lead {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  color: #4b5051;
  max-width: 820px;
  margin: 24px auto 0;
  padding: 0;
  line-height: 1.35;
}

body.index-page main .hero-actions {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

body.index-page main .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--home-blue);
  background: var(--home-blue);
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 650;
  line-height: 1;
  box-shadow: 0 10px 28px rgba(36, 63, 99, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

body.index-page main .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(36, 63, 99, 0.22);
}

body.index-page main .btn.secondary {
  background: transparent;
  color: var(--home-blue);
  box-shadow: none;
}

/* ============================
   Home sections
============================ */

body.index-page main .section {
  max-width: none;
  margin: 0;
  padding: clamp(72px, 9vw, 120px) 24px;
  background: var(--home-paper);
  border-radius: 0;
  box-shadow: none;
}

body.index-page main .section.alt {
  background: var(--home-cream);
}

body.index-page main .section.blue {
  background: var(--home-blue);
  color: #fff;
}

body.index-page main .section.blue h2,
body.index-page main .section.blue h3,
body.index-page main .section.blue p {
  color: #fff;
}

body.index-page main .container {
  max-width: var(--home-max);
  margin: 0 auto;
  padding: 0;
}

body.index-page main .narrow {
  max-width: 820px;
  margin: 0 auto;
}

body.index-page main .section-head {
  display: grid;
  gap: 14px;
  margin-bottom: 38px;
}

body.index-page main .section-head.center {
  text-align: center;
  justify-items: center;
}

body.index-page main .section-head h2 {
  font-size: clamp(2.25rem, 5vw, 4.8rem);
}

body.index-page main .section-head p {
  max-width: 840px;
  color: var(--home-muted);
  font-size: 1.08rem;
  margin: 0;
  padding: 0;
}

body.index-page main p {
  padding: 0;
}

body.index-page main .grid-2,
body.index-page main .grid-3,
body.index-page main .grid-4 {
  display: grid;
  gap: 22px;
}

body.index-page main .grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
}

body.index-page main .grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.index-page main .grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.index-page main .card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(36, 63, 99, 0.12);
  border-radius: 0;
  padding: 28px;
  box-shadow: 0 18px 50px rgba(28, 34, 38, 0.07);
}

body.index-page main .card h3 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--home-blue);
}

body.index-page main .card p {
  margin: 0;
  padding: 0;
  color: #555b5d;
}

body.index-page main .commitment {
  border-top: 4px solid var(--home-blue);
  min-height: 210px;
}

body.index-page main .stat-panel {
  background: #fff;
  border-left: 5px solid var(--home-wine);
  padding: 28px;
  box-shadow: var(--home-shadow);
}

body.index-page main .stat-panel strong {
  display: block;
  color: var(--home-wine);
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 1;
}

body.index-page main .stat-panel p {
  margin: 16px 0 0;
  padding: 0;
  color: #4d5355;
}

body.index-page main .bullets {
  margin: 0;
  padding-left: 20px;
  color: #4d5355;
}

body.index-page main .bullets li + li {
  margin-top: 10px;
}

body.index-page main .pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  margin: 26px 0 0;
  list-style: none;
}

body.index-page main .pill-list li {
  border: 1px solid rgba(143, 23, 23, 0.24);
  background: rgba(143, 23, 23, 0.06);
  color: #6d1212;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 650;
}
body.index-page main .experience-card .stripe {
  height: 112px;
  background-color: var(--home-stone);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

body.index-page main .experience-card .stripe-learn {
  background-image: url("/images/pilgrimage/learn.jpg");
}

body.index-page main .experience-card .stripe-visit {
  background-image: url("/images/pilgrimage/visit.jpg");
}

body.index-page main .experience-card .stripe-encounter {
  background-image: url("/images/pilgrimage/encounter.jpg");
}

body.index-page main .experience-card .stripe-pray {
  background-image: url("/images/pilgrimage/pray.jpg");
}

body.index-page main .quote-band {
  border-top: 1px solid var(--home-stone);
  border-bottom: 1px solid var(--home-stone);
  padding: 30px 0;
  text-align: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.15;
  color: var(--home-max);
  font-weight: 700;
}

body.index-page main .flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  align-items: stretch;
  margin-top: 34px;
}

body.index-page main .flow-step {
  background: #fff;
  border: 1px solid rgba(36, 63, 99, 0.13);
  padding: 22px 16px;
  text-align: center;
  min-height: 128px;
  display: grid;
  place-items: center;
  font-weight: 750;
  color: var(--home-blue);
}

body.index-page main .flow-step.wine {
  color: var(--home-wine);
}

/* ============================
   Home contact strip
============================ */

body.index-page main .contact-strip {
  background: #1f2527;
  color: #fff;
  padding: 56px 24px;
}

body.index-page main .contact-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

body.index-page main .contact-strip h2 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

body.index-page main .contact-strip p {
  margin: 8px 0 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.76);
}

/* ============================
   Reveal animation for script_new.js
============================ */

body.index-page main .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

body.index-page main .reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  body.index-page main .btn,
  body.index-page main .reveal {
    transition: none;
  }

  body.index-page main .btn:hover {
    transform: none;
  }
}

/* ============================
   Responsive
============================ */

@media (max-width: 860px) {
  body.index-page main .grid-2,
  body.index-page main .grid-3,
  body.index-page main .grid-4,
  body.index-page main .flow {
    grid-template-columns: 1fr;
  }

  body.index-page main .hero {
    min-height: 72vh;
  }

  body.index-page main .hero-card {
    padding: 34px 22px;
  }

  body.index-page main .contact-strip .container {
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  body.index-page main .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  body.index-page main .btn {
    width: 100%;
  }

  body.index-page main .section,
  body.index-page main .contact-strip {
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* ============================
   Mobile pilgrimage cards
   Make images larger on mobile
============================ */

@media (max-width: 860px) {
  body.index-page main #pilgrimage .grid-4 {
    gap: 20px;
  }

  body.index-page main #pilgrimage .experience-card {
    padding: 22px;
  }

  body.index-page main #pilgrimage .experience-card .stripe {
    height: clamp(190px, 52vw, 260px);
    background-size: cover;
    background-position: center;
  }

  body.index-page main #pilgrimage .experience-card .body {
    padding-top: 16px;
  }

  body.index-page main #pilgrimage .experience-card h3 {
    font-size: clamp(1.85rem, 8vw, 2.45rem);
    margin-bottom: 6px;
  }

  body.index-page main #pilgrimage .experience-card p {
    font-size: 0.96rem;
    line-height: 1.65;
  }
}

@media (max-width: 860px) {
  body.index-page main #pilgrimage .experience-card .stripe-learn {
    background-position: center center;
  }

  body.index-page main #pilgrimage .experience-card .stripe-visit {
    background-position: center center;
  }

  body.index-page main #pilgrimage .experience-card .stripe-encounter {
    background-position: center center;
  }

  body.index-page main #pilgrimage .experience-card .stripe-pray {
    background-position: center bottom;
  }
}

/* ======================================
   Giving Back section redesign
====================================== */

.giving-back-section .section-head {
  margin-bottom: 34px;
}

.giving-board {
  padding: clamp(24px, 3vw, 40px);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.98), rgba(248, 244, 235, 0.96));
  border: 1px solid rgba(36, 63, 99, 0.10);
  box-shadow: 0 24px 64px rgba(28, 34, 38, 0.10);
}

.giving-board__intro {
  max-width: 760px;
  margin: 0 auto 26px;
  text-align: center;
}

.giving-board__kicker {
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wine);
}

.giving-board__intro h3 {
  margin: 0 0 12px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.08;
  color: var(--ink);
}

.giving-board__intro p {
  margin: 0;
  color: #5b615f;
  line-height: 1.8;
}

.giving-diagram-wrap {
  overflow-x: auto;
  margin-top: 10px;
  padding-bottom: 8px;
}

.giving-diagram {
  display: block;
  width: 100%;
  min-width: 980px;
  height: auto;
}



.giving-diagram .node {
  stroke-width: 1.5;
}

.giving-diagram .node--pilgrims {
  fill: #294f7d;
  stroke: rgba(41, 79, 125, 0.25);
}

.giving-diagram .node--business {
  fill: #d89a45;
  stroke: rgba(216, 154, 69, 0.26);
}

.giving-diagram .node--church {
  fill: #8f1717;
  stroke: rgba(143, 23, 23, 0.25);
}

.giving-diagram .node--experience {
  fill: #eef3f9;
  stroke: #cad7e6;
}

.giving-diagram .node--preserved {
  fill: #f5f8fc;
  stroke: #c8d7e9;
}

.giving-diagram .node-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 32px;
  font-weight: 700;
}

.giving-diagram .node-title--light {
  fill: #fffdf8;
}

.giving-diagram .node-title--dark {
  fill: #1f2527;
}

.giving-points {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.giving-point {
  padding: 20px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(36, 63, 99, 0.10);
  box-shadow: 0 12px 28px rgba(28, 34, 38, 0.06);
}

.giving-point h4 {
  margin: 0 0 10px;
  font-family: "Cinzel", Georgia, serif;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--ink);
}

.giving-point p {
  margin: 0;
  color: #5b615f;
  line-height: 1.75;
}

.giving-closing {
  margin: 26px auto 0;
  max-width: 860px;
  text-align: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.7rem, 2.7vw, 2.6rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--wine);
}

@media (max-width: 900px) {
  .giving-points {
    grid-template-columns: 1fr;
  }

  .giving-board {
    padding: 22px 18px;
  }
}

@media (max-width: 767px) {
  .giving-board__intro h3 {
    font-size: 2rem;
  }

  .giving-closing {
    font-size: 1.8rem;
  }
}

.giving-diagram .connector {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 7;
  vector-effect: non-scaling-stroke;
}

.giving-diagram .connector--gold {
  stroke: #d7b163;
}

.giving-diagram .connector--blue {
  stroke: #9eb9dc;
}

.giving-diagram .flow-arrow {
  opacity: 0.95;
}

.giving-diagram .flow-arrow--gold {
  fill: #d7b163;
}

.giving-diagram .flow-arrow--blue {
  fill: #9eb9dc;
}

.giving-diagram .flow-label {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 19px;
  font-weight: 700;
  fill: #5e554a;
  letter-spacing: 0.01em;
}

.giving-diagram .node-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* ======================================
   Additional quiet photos
   Our Vision / Why Goto / Our Invitation
====================================== */

/* Our Vision: thin photo band under the 3 cards */
body.index-page main .vision-photo-band {
  margin: clamp(24px, 3vw, 38px) auto 0;
  max-width: 1040px;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(36, 63, 99, 0.12);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 46px rgba(28, 34, 38, 0.09);
}

body.index-page main .vision-photo-band img {
  width: 100%;
  height: clamp(150px, 18vw, 220px);
  object-fit: cover;
  object-position: center;
  filter: saturate(0.86) contrast(0.96) brightness(1.03);
}

/* Why Goto: vertical quiet image near the stat panel */
body.index-page main .why-goto-side {
  display: grid;
  gap: 18px;
}

body.index-page main .why-goto-photo {
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(36, 63, 99, 0.12);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 46px rgba(28, 34, 38, 0.09);
}

body.index-page main .why-goto-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.84) contrast(0.96) brightness(1.02);
}

body.index-page main .why-goto-side .stat-panel {
  width: 100%;
}

/* Our Invitation: horizontal image inside the right card */
body.index-page main .invitation-card {
  padding: 0;
  overflow: hidden;
}

body.index-page main .invitation-photo {
  margin: 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(36, 63, 99, 0.10);
}

body.index-page main .invitation-photo img {
  width: 100%;
  aspect-ratio: 16 / 7;
  height: auto;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.86) contrast(0.96) brightness(1.03);
}

body.index-page main .invitation-card__body {
  padding: 28px;
}

/* Mobile adjustment */
@media (max-width: 860px) {
  body.index-page main .vision-photo-band img {
    height: clamp(170px, 48vw, 260px);
  }

  body.index-page main .why-goto-photo img {
    aspect-ratio: 16 / 9;
  }

  body.index-page main .invitation-photo img {
    aspect-ratio: 16 / 9;
  }
}

/* ======================================
   Why Goto: photo attached to stat panel
====================================== */

body.index-page main .why-goto-side {
  position: relative;
  display: grid;
  grid-template-columns: clamp(150px, 36%, 230px) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;

  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(36, 63, 99, 0.12);
  box-shadow: var(--home-shadow);
}

/* もともと stat-panel の左にあった赤い帯を、写真側の左端へ移動 */
body.index-page main .why-goto-side::before {
  content: "";
  position: absolute;
  z-index: 3;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--home-wine);
}

/* 写真はパネルと同じ高さになる */
body.index-page main .why-goto-photo {
  margin: 0;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  border-radius: 0;
  border: none;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
}

/* 画像を枠いっぱいに敷く */
body.index-page main .why-goto-photo img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.84) contrast(0.96) brightness(1.02);
}

/* stat-panel 側は単独カードではなく、右側の本文領域として扱う */
body.index-page main .why-goto-side .stat-panel {
  height: 100%;
  width: 100%;
  border-left: none;
  box-shadow: none;
  padding: clamp(22px, 3vw, 34px);
  background: rgba(255, 255, 255, 0.96);
}

/* 中の pill が窮屈になりすぎないよう調整 */
body.index-page main .why-goto-side .pill-list {
  margin-top: 22px;
}

/* タブレット以下でも横並びを維持しつつ、写真幅と余白を少し抑える */
@media (max-width: 860px) {
  body.index-page main .why-goto-side {
    grid-template-columns: clamp(120px, 34%, 190px) minmax(0, 1fr);
  }

  body.index-page main .why-goto-side .stat-panel {
    padding: 22px;
  }

  body.index-page main .why-goto-side .stat-panel strong {
    font-size: clamp(2.4rem, 10vw, 4rem);
  }
}

/* かなり狭いスマホでも崩さず、写真を細めに残す */
@media (max-width: 520px) {
  body.index-page main .why-goto-side {
    grid-template-columns: 112px minmax(0, 1fr);
    border-radius: 20px;
  }

  body.index-page main .why-goto-side .stat-panel {
    padding: 20px 18px;
  }

  body.index-page main .why-goto-side .pill-list {
    gap: 8px;
  }

  body.index-page main .why-goto-side .pill-list li {
    padding: 7px 10px;
    font-size: 0.86rem;
  }
}

/* ======================================
   Beyond routes: photo attached to card
====================================== */

body.index-page main .beyond-side {
  position: relative;
  display: grid;
  grid-template-columns: clamp(150px, 34%, 230px) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;

  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(36, 63, 99, 0.12);
  box-shadow: 0 24px 70px rgba(28, 34, 38, 0.12);
}

/* 左端に細いアクセントラインを置く */
body.index-page main .beyond-side::before {
  content: "";
  position: absolute;
  z-index: 3;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--home-wine);
}

/* 左側の縦写真 */
body.index-page main .beyond-photo {
  margin: 0;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  border-radius: 0;
  border: none;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
}

body.index-page main .beyond-photo img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.84) contrast(0.96) brightness(1.02);
}

/* 右側カードは、独立カードではなく一体化した本文領域にする */
body.index-page main .beyond-card {
  height: 100%;
  width: 100%;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.96);
  padding: clamp(24px, 3vw, 34px);
}

/* 既存の .card h3 の余白と合わせる */
body.index-page main .beyond-card h3 {
  margin-bottom: 14px;
}

/* タブレット以下でも、写真とカードの横並びは維持 */
@media (max-width: 860px) {
  body.index-page main .beyond-side {
    grid-template-columns: clamp(120px, 34%, 190px) minmax(0, 1fr);
  }

  body.index-page main .beyond-card {
    padding: 22px;
  }
}

/* 狭いスマホでも崩れないように写真幅を固定気味にする */
@media (max-width: 520px) {
  body.index-page main .beyond-side {
    grid-template-columns: 112px minmax(0, 1fr);
    border-radius: 20px;
  }

  body.index-page main .beyond-card {
    padding: 20px 18px;
  }

  body.index-page main .beyond-card h3 {
    font-size: clamp(1.55rem, 7vw, 2rem);
  }

  body.index-page main .beyond-card .bullets {
    font-size: 0.9rem;
    line-height: 1.6;
  }
}