/* ======================================
   shindenmirai front-page.css
   ====================================== */

.hero {
  margin-top: 92px;
  position: relative;
  overflow: hidden;
  background: var(--yellow-light);
}

.hero::before {
  content: '';
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(90deg, rgba(255,244,194,0.95) 0%, rgba(255,244,194,0.85) 35%, rgba(255,244,194,0.4) 60%, transparent 75%);
  z-index: 1;
}

.hero-grid {
  max-width: var(--max-w); margin: 0 auto;
  position: relative; z-index: 2;
  display: flex; align-items: center;
  min-height: 560px;
}

.hero-copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: 60px 24px;
  max-width: 580px;
}

.hero-sub {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 700; color: var(--white);
  background: var(--orange);
  padding: 10px 24px; border-radius: 8px;
  margin-bottom: 28px;
  box-shadow: 0 4px 16px rgba(245,166,35,0.35);
  letter-spacing: 0.06em;
  width: fit-content;
}

.hero-sub::before {
  content: '';
  display: inline-block;
  width: 20px; height: 20px;
  background: var(--white);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E") center/contain no-repeat;
  flex-shrink: 0;
}

.hero-copy h1 {
  font-size: 48px; font-weight: 500;
  line-height: 1.5; color: var(--brown);
  margin-bottom: 28px;
  letter-spacing: 0.1em;
}

.hero-desc {
  font-size: 17px; color: var(--text);
  margin-bottom: 32px; line-height: 1.8;
}

.hero-badges {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 24px;
}

.hero-badge {
  font-size: 15px; font-weight: 600; color: var(--brown);
  background: var(--white); padding: 10px 20px; border-radius: 28px;
  border: 2px solid var(--yellow);
  box-shadow: 0 2px 8px rgba(255,210,52,0.15);
}

.hero-badge .badge-icon { display: none }

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap }

.hero-cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 17px; font-weight: 700;
  padding: 18px 36px; border-radius: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
  letter-spacing: 0.08em;
}

.hero-cta:hover { opacity: 0.9 }

.hero-cta--primary {
  background: var(--orange); color: var(--white); border: none;
  box-shadow: 0 4px 16px rgba(245,166,35,0.25);
}

.hero-cta--primary:hover { box-shadow: 0 6px 24px rgba(245,166,35,0.4) }

.hero-cta--secondary {
  background: var(--white); color: var(--brown);
  border: 2px solid var(--brown);
}

.hero-cta--secondary .tel-num { font-size: 20px; font-weight: 700 }

.hero-slider {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0;
}

.hero-slider img {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-slider img.active { opacity: 1 }

.for-you {
  background: var(--yellow);
  padding: 72px 0;
  position: relative;
}

.for-you-bg, .for-you-overlay { display: none }

.for-you h2 {
  font-size: 38px; font-weight: 700; color: var(--brown);
  text-align: center; margin-bottom: 48px;
  letter-spacing: 0.12em;
  text-shadow: 0 2px 8px rgba(92,61,46,0.08);
}

.for-you-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
}

.for-you-card {
  background: var(--white); border-radius: 16px;
  padding: 32px 16px; text-align: center;
  box-shadow: 0 4px 20px rgba(92,61,46,0.06);
}

.for-you-card .icon {
  width: 56px; height: 56px; margin: 0 auto 14px;
  background: var(--yellow-pale); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

.for-you-card .icon svg { width: 28px; height: 28px; color: var(--orange) }

.for-you-card p {
  font-size: 16px; font-weight: 600; color: var(--brown); line-height: 1.6;
}

.features { background: var(--white); padding-bottom: 0 }

.feature-block {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  align-items: stretch;
}

.feature-block:nth-child(even) .feature-block-img { order: 2 }

.feature-block:nth-child(even) .feature-block-body { order: 1 }

.feature-block-img {
  overflow: hidden; min-height: 380px; position: relative;
  padding: 32px;
}

.feature-block-img img {
  width: 100%; height: 100%; object-fit: cover;
  position: absolute; top: 24px; left: 24px;
  width: calc(100% - 48px); height: calc(100% - 48px);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(92,61,46,0.10);
}

.feature-block-body {
  display: flex; flex-direction: column; justify-content: center;
  padding: 56px 64px;
}

.feature-block:nth-child(odd) .feature-block-img { background: var(--yellow-pale) }

.feature-block:nth-child(even) .feature-block-img { background: var(--white) }

.feature-block:nth-child(odd) .feature-block-body { background: var(--yellow-pale) }

.feature-block:nth-child(even) .feature-block-body { background: var(--white) }

.feature-block:nth-child(3n+1) { grid-template-columns: 55% 1fr }

.feature-block:nth-child(3n+2) { grid-template-columns: 1fr 55% }

.feature-block:nth-child(3n+3) { grid-template-columns: 50% 1fr }

.feature-block-num {
  font-size: 56px; font-weight: 500; color: var(--yellow);
  line-height: 1; margin-bottom: 8px;
  font-style: italic; opacity: 0.7;
}

.feature-block-body h3 {
  font-size: 34px; font-weight: 500; color: var(--brown);
  margin-bottom: 20px; line-height: 1.5;
  padding-bottom: 16px; border-bottom: 2px solid var(--yellow);
  letter-spacing: 0.1em;
}

.feature-block-body p {
  font-size: 16px; color: var(--text-light);
  line-height: 1.8; margin-bottom: 24px;
}

.feature-more {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: var(--orange);
  border-bottom: 2px solid var(--orange);
  padding: 4px 0; transition: gap 0.3s;
  width: fit-content; letter-spacing: 0.1em;
}

.feature-more:hover { gap: 12px }

.feature-more svg { width: 14px; height: 14px }

.policy-compact {
  text-align: center; max-width: 700px; margin: 0 auto;
}

.policy-compact .policy-lead {
  font-size: 18px; color: var(--text); line-height: 2; margin-bottom: 32px;
}

.policy-compact .policy-goal-items {
  display: flex; justify-content: center; gap: 24px; flex-wrap: wrap;
  margin-bottom: 32px;
}

.policy-compact .policy-goal-items span {
  background: var(--white); border: 2px solid var(--green);
  padding: 10px 24px; border-radius: 24px;
  font-size: 15px; font-weight: 700; color: var(--brown);
}

.access-compact {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
}

.access-map { border-radius: 16px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.08) }

.access-map iframe { width: 100%; height: 320px; border: 0; display: block }

.access-info { padding: 8px 0 }

.access-address {
  font-size: 18px; font-weight: 600; color: var(--brown); margin-bottom: 6px;
}

.access-sub {
  font-size: 14px; color: var(--text-light); margin-bottom: 12px;
}

.access-station {
  font-size: 15px; color: var(--text); margin-bottom: 24px;
  padding-left: 20px; border-left: 3px solid var(--yellow);
}

.policy-section {
  background: var(--green-light);
  padding: 80px 0;
  position: relative;
}

.policy-bg, .policy-overlay { display: none }

.policy-section .inner { position: relative }

.policy-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  align-items: start;
}

.policy-image { overflow: hidden; border-radius: 24px }

.policy-image img { width: 100%; aspect-ratio: 4/3; object-fit: cover }

.policy-goal {
  background: var(--white); border-radius: 12px;
  padding: 24px 28px; margin-bottom: 20px;
  border-left: 5px solid var(--green);
}

.policy-goal h3 {
  font-size: 26px; font-weight: 700; color: var(--brown);
  margin-bottom: 16px; letter-spacing: 0.1em;
}

.policy-goal-items { display: flex; gap: 12px; flex-wrap: wrap }

.policy-goal-items span {
  font-size: 16px; font-weight: 700; color: var(--green);
  background: var(--white); padding: 8px 20px; border-radius: 24px;
  border: 2px solid var(--green);
  display: inline-flex; align-items: center; gap: 6px;
}

.policy-goal-items span::before {
  content: ''; display: inline-block; width: 8px; height: 8px;
  background: var(--green); border-radius: 50%; flex-shrink: 0;
}

.policy-list { display: flex; flex-direction: column; gap: 12px }

.policy-item {
  padding: 20px 24px; border-radius: 12px;
  background: var(--white);
  display: flex; align-items: flex-start; gap: 14px;
  box-shadow: 0 2px 8px rgba(92,61,46,0.04);
  transition: transform 0.2s;
}

.policy-item:hover { transform: translateX(4px) }

.policy-item::before {
  content: '';
  display: block; width: 4px; min-height: 100%; border-radius: 2px;
  background: var(--green); flex-shrink: 0;
  align-self: stretch;
}

.policy-item p { font-size: 16px; line-height: 1.8; font-weight: 500 }

.policy-item p strong { color: var(--green); font-weight: 700 }

.message {
  background: var(--yellow); color: var(--brown);
  padding: 120px 0; position: relative;
}

.message-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 420px 1fr; gap: 72px;
  align-items: center; position: relative;
}

.message-photo {
  width: 420px; height: 320px; border-radius: 24px;
  overflow: hidden;
  border: 5px solid #fff;
  box-shadow: 0 12px 40px rgba(92,61,46,0.18), 0 4px 12px rgba(92,61,46,0.12);
  flex-shrink: 0;
  transform: rotate(-1.5deg);
  transition: transform 0.3s ease;
}
.message-photo:hover { transform: rotate(0deg) scale(1.02); }

.message-photo img { width: 100%; height: 100%; object-fit: cover }

.message-content h2 {
  font-size: 38px; font-weight: 700; color: var(--brown);
  margin-bottom: 28px; line-height: 1.55;
  letter-spacing: 0.05em;
}

.message-content p {
  font-size: 17px; color: var(--brown);
  line-height: 1.85; margin-bottom: 28px;
  opacity: 0.85;
}

.message-name {
  font-size: 13px; color: var(--brown-light);
  margin-top: 28px; padding-top: 20px;
  border-top: 1px solid rgba(92,61,46,0.2);
}

.message-name strong {
  display: block; font-size: 17px; color: var(--brown); margin-top: 4px;
  font-weight: 700;
}

.gallery-section {
  padding: 80px 0; background: var(--yellow-pale);
}

.gallery-mosaic {
  display: grid; grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto; gap: 10px;
}

.gallery-mosaic img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 24px;
}

.gallery-mosaic img:nth-child(1) {
  grid-column: span 2; grid-row: span 2; aspect-ratio: 4/3;
}

.gallery-mosaic img:nth-child(2),

.gallery-mosaic img:nth-child(3) { aspect-ratio: 3/2 }

.gallery-mosaic img:nth-child(4),

.gallery-mosaic img:nth-child(5),

.gallery-mosaic img:nth-child(6) { aspect-ratio: 3/2 }

.hero-copy { opacity: 0; transform: translateY(16px); transition: opacity 0.8s ease, transform 0.8s ease }

.hero-copy.visible { opacity: 1; transform: translateY(0) }
