/* トップページ専用スタイル */
.sp-only { display: none; }
@media (max-width: 640px) { .sp-only { display: inline; } }

/* ---------- ヒーロー ---------- */
.hero {
  position: relative; isolation: isolate; color: #fff; background: #111;
  min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden;
}
.hero__slides { position: absolute; inset: 0; z-index: -3; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero__shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(10, 14, 20, .82) 0%, rgba(10, 14, 20, .55) 50%, rgba(10, 14, 20, .25) 100%),
    linear-gradient(0deg, rgba(10, 14, 20, .65) 0%, rgba(10, 14, 20, 0) 40%);
}
.hero__inner { flex: 1; display: flex; align-items: flex-end; padding: calc(var(--header-h) + 48px) 0 36px; }
.hero__text { max-width: 720px; }
.hero__label { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .28em; padding: 5px 14px; background: var(--red); border-radius: 999px; margin-bottom: 20px; }
.hero__title { color: #fff; font-size: clamp(34px, 6.6vw, 72px); line-height: 1.28; letter-spacing: .03em; text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.hero__lead { margin-top: 22px; font-size: clamp(15px, 1.7vw, 18px); line-height: 2; max-width: 36em; color: #f1f4f7; }
.hero__cta { margin-top: 30px; }
.hero__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: max(22px, env(safe-area-inset-bottom)); }
.hero__controls { display: flex; align-items: center; gap: 18px; min-width: 0; flex-wrap: wrap; }
.hero__caption { font-size: 13px; letter-spacing: .06em; color: #e7ecf1; min-width: 0; }
.hero__dots { display: flex; gap: 2px; }
.hero__dot { width: 44px; height: 44px; display: grid; place-items: center; }
.hero__dot::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .5); border: 1.5px solid rgba(255, 255, 255, .85); transition: transform .3s, background-color .3s; }
.hero__dot[aria-current="true"]::before { background: #fff; transform: scale(1.35); }
.hero__dot:hover::before { background: #fff; }
.hero__dot:focus-visible { outline-color: #fff; }

.hero__rings { position: absolute; z-index: -1; right: clamp(-120px, -4vw, -20px); top: 22%; width: clamp(220px, 34vw, 460px); aspect-ratio: 1; pointer-events: none; }
.hero__rings span { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .28); opacity: 0; }
.hero__rings span:nth-child(1) { opacity: .35; }

@media (prefers-reduced-motion: no-preference) {
  html:not([data-motion="off"]) .hero__slide.is-active img { animation: slowZoom 9s ease-out both; }
  html:not([data-motion="off"]) .hero__rings span { animation: pulseRing 6s ease-out infinite; }
  html:not([data-motion="off"]) .hero__rings span:nth-child(2) { animation-delay: 2s; }
  html:not([data-motion="off"]) .hero__rings span:nth-child(3) { animation-delay: 4s; }
  html:not([data-motion="off"]) .hero__label, html:not([data-motion="off"]) .hero__title, html:not([data-motion="off"]) .hero__lead, html:not([data-motion="off"]) .hero__cta { animation: heroIn .9s var(--ease) both; }
  html:not([data-motion="off"]) .hero__title { animation-delay: .12s; }
  html:not([data-motion="off"]) .hero__lead { animation-delay: .24s; }
  html:not([data-motion="off"]) .hero__cta { animation-delay: .36s; }
}
@keyframes heroIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (max-width: 640px) {
  .hero__inner { padding-top: calc(var(--header-h) + 28px); padding-bottom: 20px; }
  .hero__label { font-size: 12px; margin-bottom: 14px; }
  .hero__lead { margin-top: 16px; line-height: 1.9; }
  .hero__cta { margin-top: 22px; }
  .hero__shade { background: linear-gradient(0deg, rgba(10, 14, 20, .88) 0%, rgba(10, 14, 20, .6) 55%, rgba(10, 14, 20, .38) 100%); }
  .hero__bar { flex-wrap: wrap; }
  .hero__caption { flex: 1 1 100%; }
}

/* ---------- 目的から探す（事業領域と同じ、色面のタイル） ---------- */
.guide__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.guide__tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; min-height: 260px; height: 100%; padding: 28px 28px 26px; color: #fff; overflow: hidden; isolation: isolate; transition: filter .3s; }
.guide__tile--navy { background: #1d2b3a; }
.guide__tile--red { background: var(--red); }
.guide__tile--green { background: #1a3020; }
.guide__tile--slate { background: #3a4048; }
.guide__ghost { position: absolute; top: 20px; left: 14px; z-index: -1; font-size: clamp(30px, 3.4vw, 48px); font-weight: 700; letter-spacing: .04em; color: rgba(255, 255, 255, .11); white-space: nowrap; transition: transform .6s var(--ease); }
.guide__tile:hover .guide__ghost { transform: translateX(10px); }
.guide__tile:hover { filter: brightness(1.12); }
.guide__title { font-size: clamp(19px, 1.9vw, 23px); font-weight: 700; line-height: 1.45; }
.guide__text { font-size: 13.5px; line-height: 1.8; color: rgba(255, 255, 255, .82); max-width: 18em; }
.guide__go { position: absolute; right: 22px; top: 22px; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .22); display: grid; place-items: center; transition: transform .3s var(--ease), background-color .3s; }
.guide__tile:hover .guide__go { transform: translateX(4px); background: rgba(255, 255, 255, .45); }
.guide__tile:focus-visible { outline-color: #fff; outline-offset: -6px; }
@media (max-width: 960px) { .guide__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .guide__tile { min-height: 210px; } }
@media (max-width: 520px) { .guide__grid { grid-template-columns: 1fr; } .guide__tile { min-height: 150px; padding: 24px 22px; } .guide__ghost { font-size: 32px; } }

/* ---------- お知らせ ---------- */
.news-grid { display: grid; gap: clamp(28px, 4vw, 56px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.news-col__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.news-col__head h3 { font-size: 19px; }
.news-col__head .link-arrow { font-size: 14px; }

/* ---------- 私たちについて ---------- */
.about__side { display: grid; gap: 26px; }
.about__side .figure img { aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow-sm); }
.mini-history { display: grid; gap: 0; border-left: 2px solid #e1d3d6; padding-left: 0; }
.mini-history li { display: grid; grid-template-columns: 7.2em 1fr; gap: 12px; padding: 10px 0 10px 18px; position: relative; border-bottom: 1px dashed var(--line); font-size: 15px; line-height: 1.7; }
.mini-history li:last-child { border-bottom: 0; }
.mini-history li::before { content: ""; position: absolute; left: -9px; top: 1.1em; width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 3px solid var(--red); }
.mini-history b { color: var(--red-dark); font-variant-numeric: tabular-nums; }
@media (max-width: 480px) { .mini-history li { grid-template-columns: 1fr; gap: 0; } }

/* ---------- 事業領域（左右2分割のブロック） ---------- */
.biz { background: #f4f4f6; }
.biz__head { text-align: center; padding: clamp(56px, 8vw, 90px) var(--gutter) 0; }
.biz__head h2 { margin-top: 8px; }
.biz__rule { display: block; width: 48px; height: 3px; background: var(--red); margin: 18px auto 0; border-radius: 2px; }
.biz-block { display: flex; min-height: 480px; margin-top: 48px; overflow: hidden; position: relative; }
.biz-block--flip { flex-direction: row-reverse; }
.biz-block__color { flex: 0 0 50%; position: relative; z-index: 2; padding: 60px 50px 60px max(60px, calc((100vw - var(--container)) / 2)); display: flex; flex-direction: column; justify-content: flex-end; color: #fff; }
.biz-block--flip .biz-block__color { padding: 60px max(60px, calc((100vw - var(--container)) / 2)) 60px 50px; }
.biz-block__color { overflow: hidden; }
.biz-block--navy .biz-block__color { background: #1d2b3a; }
.biz-block--red .biz-block__color { background: var(--red); }
.biz-block--green .biz-block__color { background: #1a3020; }
.biz-block__ghost { position: absolute; top: 34px; left: 0; width: 200%; z-index: -1; font-size: clamp(32px, 4.1vw, 60px); font-weight: 700; letter-spacing: .03em; line-height: 1.1; white-space: nowrap; color: rgba(255, 255, 255, .11); padding-left: 24px; user-select: none; pointer-events: none; }
.biz-block--flip .biz-block__ghost { left: auto; right: 0; text-align: right; padding-left: 0; padding-right: 24px; }
.biz-block__sub { font-size: 13px; font-weight: 700; letter-spacing: .12em; color: rgba(255, 255, 255, .78); margin-bottom: 8px; }
.biz-block h3 { color: #fff; font-size: clamp(21px, 2.4vw, 26px); line-height: 1.45; margin-bottom: 16px; }
.biz-block__color > p:not(.biz-block__sub) { font-size: 15px; line-height: 1.95; color: rgba(255, 255, 255, .88); margin-bottom: 28px; max-width: 30em; }
.biz-link { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-size: 14px; font-weight: 700; width: fit-content; min-height: 44px; }
.biz-link .arrow-circle { width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .25); display: grid; place-items: center; transition: background-color .25s, transform .25s var(--ease); }
.biz-link:hover .arrow-circle { background: rgba(255, 255, 255, .5); transform: translateX(4px); }
.biz-link:focus-visible { outline-color: #fff; }
.biz-block__photo { flex: 0 0 50%; position: relative; overflow: hidden; background: #222; }
.biz-block__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.biz-block:hover .biz-block__photo img { transform: scale(1.04); }
@media (prefers-reduced-motion: no-preference) {
  html:not([data-motion="off"]) .biz-block__ghost { animation: ghostDrift 18s ease-in-out infinite alternate; }
}
@keyframes ghostDrift { from { transform: translateX(0); } to { transform: translateX(-3%); } }
@media (max-width: 800px) {
  .biz-block, .biz-block--flip { flex-direction: column; min-height: 0; margin-top: 36px; }
  .biz-block__color, .biz-block--flip .biz-block__color { flex: none; padding: 52px 28px 40px; }
  .biz-block__photo { flex: none; height: 260px; }
  .biz-block__ghost { font-size: 30px; top: 16px; }
  .biz-block--flip .biz-block__ghost { right: auto; left: 0; text-align: left; padding-left: 24px; padding-right: 0; }
}

/* ---------- こども食堂 ---------- */
.kodomo { background: linear-gradient(135deg, #a64200 0%, #c05206 55%, #b04a02 100%); color: #fff; padding-block: clamp(56px, 8vw, 96px); position: relative; overflow: hidden; }
.kodomo::before { content: ""; position: absolute; width: 520px; aspect-ratio: 1; right: -140px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 70%); pointer-events: none; }
.kodomo__inner { display: grid; grid-template-columns: 240px 1fr 220px; gap: clamp(24px, 4vw, 56px); align-items: center; position: relative; }
.kodomo__date { text-align: center; display: grid; gap: 8px; padding: 24px 12px; border: 2px solid rgba(255, 255, 255, .6); border-radius: 24px; background: rgba(255, 255, 255, .1); }
.kodomo__monthly { font-size: 13px; font-weight: 700; letter-spacing: .24em; }
.kodomo__big { font-size: clamp(48px, 6vw, 68px); font-weight: 700; line-height: 1.1; font-feature-settings: "palt"; display: flex; align-items: baseline; justify-content: center; gap: 4px; flex-wrap: wrap; }
.kodomo__big small { font-size: 22px; letter-spacing: .06em; }
.kodomo__time { font-weight: 700; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.kodomo__body > * + * { margin-top: 14px; }
.kodomo__status { font-size: 14px; font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.kodomo__tag { background: #fff; color: var(--orange); font-size: 14px; padding: 4px 16px; }
.kodomo h2 { color: #fff; font-size: clamp(28px, 4vw, 40px); }
.kodomo__tagline { font-size: clamp(16px, 2vw, 19px); font-weight: 700; }
.kodomo__pills { display: flex; flex-wrap: wrap; gap: 8px; }
.kodomo__pills li { border: 1.5px solid rgba(255, 255, 255, .75); background: rgba(255, 255, 255, .14); border-radius: 999px; padding: 4px 16px; font-size: 14px; font-weight: 700; }
.kodomo__body p { max-width: 38em; }
.kodomo__logo img { border-radius: 24px; box-shadow: 0 16px 40px rgba(0, 0, 0, .28); width: 100%; max-width: 240px; margin-inline: auto; background: #fff; }
@media (prefers-reduced-motion: no-preference) {
  html:not([data-motion="off"]) .kodomo__logo img { animation: floatY 7s ease-in-out infinite; }
  html:not([data-motion="off"]) .kodomo::before { animation: drift 14s ease-in-out infinite; }
}
@media (max-width: 960px) {
  .kodomo__inner { grid-template-columns: 1fr; }
  .kodomo__date { grid-template-columns: auto auto; justify-content: center; align-items: center; gap: 4px 18px; padding: 16px 20px; }
  .kodomo__monthly { grid-column: 1 / -1; }
  .kodomo__big { font-size: 44px; }
  .kodomo__logo { order: -1; }
  .kodomo__logo img { max-width: 160px; margin-inline: 0; }
}

/* ---------- 社員 ---------- */
.staff-list--home { max-width: 900px; margin-inline: auto; }

/* ---------- SDGs ／ 採用 ---------- */
.duo-card { display: flex; flex-direction: column; gap: 12px; padding: 0 0 30px; overflow: hidden; }
.duo-card > *:not(.duo-card__media) { margin-inline: clamp(22px, 3vw, 32px); }
.duo-card h2 { font-size: clamp(21px, 2.4vw, 26px); }
.duo-card p:not(.eyebrow) { flex: 1; }
.duo-card .btn, .duo-card .btn-row { align-self: flex-start; margin-top: 8px; }
.duo-card__media { aspect-ratio: 16 / 9; overflow: hidden; margin-bottom: 8px; }
.duo-card__media img { width: 100%; height: 100%; object-fit: cover; }
.duo-card__media--sdgs { background: #f4f6f8; display: grid; place-items: center; }
.duo-card__media--sdgs img { width: min(60%, 320px); height: auto; object-fit: contain; }

/* ---------- もっと知る ---------- */
.more-links { border-top: 1px solid var(--line); }
.more-links a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 6px; min-height: 64px; border-bottom: 1px solid var(--line); font-weight: 500; color: var(--ink); transition: color .2s, padding .25s var(--ease), background-color .2s; }
.more-links a:hover { color: var(--red-dark); padding-left: 16px; background: var(--surface); }
.more-links a span:last-child { color: var(--red); font-size: 20px; }
