/* =========================================================
   さつまいも商會「ともだち部」
   共通 shell は site-shell-v2.css を利用し、このファイルは本文固有のみ。
   ========================================================= */

.tomodachi-page {
  --site-font-sans: "Sawarabi Gothic", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --site-font-serif: "Zen Old Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;

  --tomo-orange: #b64f2f;
  --tomo-orange-dark: #8f3a22;
  --tomo-orange-soft: #f9e6dd;
  --tomo-yellow: #f2c85b;
  --tomo-yellow-soft: #fff6d7;
  --tomo-green: #88a95a;
  --tomo-green-soft: #edf4df;
  --tomo-sky: #78afc6;
  --tomo-sky-soft: #e6f2f6;
  --tomo-lavender: #9b83b5;
  --tomo-lavender-soft: #f0eaf5;
  --tomo-brand: #8a2f45;
  --tomo-ink: #33251f;
  --tomo-muted: #6f615a;
  --tomo-bg: #fffaf4;
  --tomo-cream: #fff5e8;
  --tomo-white: #fff;
  --tomo-border: #ead9cc;
  --tomo-shadow: 0 18px 44px rgba(99, 61, 42, 0.11);
  --tomo-shadow-soft: 0 9px 26px rgba(99, 61, 42, 0.08);
  --tomo-radius: 24px;
  --tomo-radius-sm: 15px;

  font-family: var(--site-font-sans);
  background: var(--tomo-bg);
}

.tomodachi-page .site-v2-brand,
.tomodachi-page .site-v2-footer__brand {
  font-family: var(--site-font-serif);
}

.tomodachi-page .site-v2-header {
  border-bottom-color: rgba(182, 79, 47, 0.12);
}

.tomodachi-main {
  overflow: clip;
  color: var(--tomo-ink);
  background:
    radial-gradient(circle at 92% 7%, rgba(242, 200, 91, 0.16), transparent 18rem),
    var(--tomo-bg);
}

.tomodachi-container {
  width: min(calc(100% - 40px), 1140px);
  margin-inline: auto;
}

.tomodachi-section {
  padding: clamp(68px, 8vw, 108px) 0;
}

.tomodachi-section--cream {
  background: var(--tomo-cream);
}

.tomodachi-section--warm {
  background:
    linear-gradient(135deg, rgba(255, 246, 215, 0.8), rgba(249, 230, 221, 0.72)),
    #fff9f2;
}

.tomodachi-preview-note {
  position: relative;
  z-index: 3;
  padding: 9px 16px;
  border-bottom: 1px solid #ddc67c;
  color: #5b4713;
  background: #fff2bd;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.tomodachi-kicker {
  margin: 0 0 8px;
  color: var(--tomo-orange-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.tomodachi-section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.tomodachi-section-head--events {
  display: flex;
  align-items: end;
  justify-content: space-between;
  max-width: none;
  gap: 28px;
}

.tomodachi-section-head--center {
  margin-inline: auto;
  text-align: center;
}

.tomodachi-section-head h2,
.tomodachi-about h2,
.tomodachi-targets h2,
.tomodachi-faq h2,
.tomodachi-operator h2,
.tomodachi-final h2 {
  margin: 0;
  color: var(--tomo-ink);
  font-family: var(--site-font-sans);
  font-size: clamp(30px, 4.6vw, 48px);
  line-height: 1.28;
  letter-spacing: 0.02em;
}

.tomodachi-section-head > p:last-child,
.tomodachi-faq__intro > p:last-child {
  margin: 13px 0 0;
  color: var(--tomo-muted);
}

/* Hero */
.tomodachi-hero {
  position: relative;
  padding: clamp(54px, 6vw, 82px) 0 clamp(60px, 7vw, 92px);
  overflow: hidden;
  background:
    radial-gradient(circle at 7% 18%, rgba(124, 185, 209, 0.32), transparent 19rem),
    radial-gradient(circle at 91% 12%, rgba(246, 207, 101, 0.46), transparent 22rem),
    radial-gradient(circle at 85% 90%, rgba(155, 190, 104, 0.27), transparent 23rem),
    linear-gradient(135deg, #fffdf8 0%, #fff7e9 48%, #fffaf4 100%);
  background-size: 118% 118%;
  animation: tomoHeroWash 12s ease-in-out infinite alternate;
}

.tomodachi-hero::before,
.tomodachi-hero::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.tomodachi-hero::before {
  top: -120px;
  left: -95px;
  width: 300px;
  height: 300px;
  border: 48px solid rgba(246, 207, 101, 0.42);
  border-radius: 50%;
  transform: rotate(-18deg);
  animation: tomoHeroRing 11s ease-in-out infinite alternate;
}

.tomodachi-hero::after {
  right: -80px;
  bottom: -120px;
  width: 330px;
  height: 330px;
  border-radius: 44% 56% 63% 37% / 47% 44% 56% 53%;
  background: rgba(142, 49, 80, 0.1);
  transform: rotate(18deg);
  animation: tomoHeroBlob 10s ease-in-out -2s infinite alternate;
}

.tomodachi-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.07fr) minmax(430px, 0.93fr);
  align-items: center;
  gap: clamp(38px, 5vw, 76px);
}

.tomodachi-hero__copy {
  position: relative;
  z-index: 6;
}

.tomodachi-hero__brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--tomo-muted);
  font-size: 14px;
  font-weight: 700;
}

.tomodachi-hero__brand strong {
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff;
  background: var(--tomo-brand);
  box-shadow: 0 7px 16px rgba(138, 47, 69, 0.17);
  font-weight: 700;
}

.tomodachi-hero__catch {
  margin: 0 0 12px;
  color: #a43e24;
  font-family: var(--site-font-serif);
  font-size: clamp(22px, 2.35vw, 31px);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.tomodachi-hero h1 {
  margin: 0;
  color: var(--tomo-ink);
  font-family: var(--site-font-serif);
  font-size: clamp(44px, 4.4vw, 56px);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: 0.02em;
}

.tomodachi-hero__title-line {
  display: block;
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
}

.tomodachi-hero__title-line--accent {
  position: relative;
  z-index: 0;
  margin-top: 0.04em;
}

.tomodachi-hero__title-line--accent::after {
  position: absolute;
  right: -0.04em;
  bottom: 0.04em;
  left: -0.04em;
  z-index: -1;
  height: 0.28em;
  border-radius: 999px;
  background: #f7d36e;
  content: "";
  transform: rotate(-1.2deg);
}

.tomodachi-hero__lead {
  max-width: 630px;
  margin: 25px 0 0;
  color: #544740;
  font-size: clamp(16px, 1.55vw, 18px);
  line-height: 1.95;
}

.tomodachi-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 29px;
}

.tomodachi-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--site-font-sans);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.tomodachi-hero__actions .tomodachi-button--primary {
  min-height: 58px;
  padding-inline: 27px;
  font-size: 16px;
}

.tomodachi-button--primary {
  position: relative;
  overflow: hidden;
  color: #fff !important;
  background: #c4512e;
  box-shadow: 0 10px 22px rgba(182, 79, 47, 0.25);
}

.tomodachi-button--primary::after {
  position: absolute;
  top: -35%;
  left: -45%;
  width: 34%;
  height: 170%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.46), transparent);
  content: "";
  transform: rotate(18deg);
  animation: tomoButtonShine 5.8s ease-in-out infinite;
  pointer-events: none;
}

.tomodachi-button--primary:hover {
  background: var(--tomo-orange-dark);
  box-shadow: 0 14px 30px rgba(143, 58, 34, 0.28);
  transform: translateY(-3px);
}

.tomodachi-button--sub,
.tomodachi-button--outline {
  border-color: #d7c3b6;
  color: var(--tomo-ink);
  background: rgba(255, 255, 255, 0.9);
}

.tomodachi-button--sub:hover,
.tomodachi-button--outline:hover {
  border-color: var(--tomo-orange);
  background: var(--tomo-orange-soft);
  transform: translateY(-2px);
}

.tomodachi-button--disabled {
  color: #857a73;
  background: #eee9e4;
  cursor: default;
}

.tomodachi-button--light {
  color: var(--tomo-orange-dark);
  background: #fff;
  box-shadow: 0 8px 20px rgba(78, 42, 27, 0.18);
}

.tomodachi-button--light:hover { transform: translateY(-2px); }

.tomodachi-hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 20px 0 0;
  padding: 0;
  color: #5f514a;
  font-size: 12px;
  list-style: none;
}

.tomodachi-hero__trust li {
  padding: 6px 10px;
  border: 1px solid rgba(155, 190, 104, 0.48);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.tomodachi-hero__trust li::before {
  margin-right: 6px;
  color: var(--tomo-green);
  content: "●";
  font-size: 8px;
}

.tomodachi-hero__visual {
  position: relative;
  z-index: 2;
  min-height: 570px;
  isolation: isolate;
  transform: translate3d(var(--tomo-parallax-x, 0px), calc(var(--tomo-parallax-y, 0px) + var(--tomo-scroll-shift, 0px)), 0);
  transition: transform 180ms ease-out;
  will-change: transform;
}

.tomodachi-hero__visual::before {
  position: absolute;
  top: 72px;
  right: 4px;
  bottom: 40px;
  left: 20px;
  z-index: -2;
  border-radius: 42% 58% 52% 48% / 53% 44% 56% 47%;
  background: linear-gradient(145deg, #ffd998, #f7cfc2 52%, #d9edcf);
  box-shadow: 0 26px 60px rgba(99, 61, 42, 0.13);
  content: "";
  transform: rotate(-3deg);
  animation: tomoVisualBlob 9s ease-in-out infinite alternate;
}

.tomodachi-hero-scene {
  position: absolute;
  overflow: hidden;
  margin: 0;
  border: 7px solid #fff;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(71, 44, 31, 0.18);
  transition: transform 250ms ease, box-shadow 250ms ease;
}

.tomodachi-hero-scene img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tomodachi-hero-scene--main {
  top: 92px;
  left: 0;
  z-index: 2;
  width: 72%;
  aspect-ratio: 1.18 / 1;
  transform: rotate(-4deg);
  animation: tomoFloatMain 7.4s ease-in-out infinite;
}

.tomodachi-hero-scene--walk {
  top: 12px;
  right: 0;
  z-index: 4;
  width: 48%;
  aspect-ratio: 1.45 / 1;
  transform: rotate(5deg);
  animation: tomoFloatWalk 6.5s ease-in-out -1.1s infinite;
}

.tomodachi-hero-scene--play {
  right: 2px;
  bottom: 4px;
  z-index: 5;
  width: 51%;
  aspect-ratio: 1.42 / 1;
  transform: rotate(-4deg);
  animation: tomoFloatPlay 8s ease-in-out -2.6s infinite;
}

.tomodachi-hero-scene:hover {
  animation-play-state: paused;
  box-shadow: 0 24px 54px rgba(71, 44, 31, 0.22);
  transform: rotate(0deg) translateY(-5px);
}

.tomodachi-hero__visual-note {
  position: absolute;
  top: 302px;
  right: -8px;
  z-index: 7;
  margin: 0;
  padding: 13px 18px;
  border: 4px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: var(--tomo-brand);
  box-shadow: 0 10px 24px rgba(138, 47, 69, 0.24);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  transform: rotate(4deg);
  animation: tomoNoteBob 5.4s ease-in-out -1s infinite;
}

.tomodachi-hero__visual-burst {
  position: absolute;
  left: 6px;
  bottom: 6px;
  z-index: 8;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  margin: 0;
  border: 5px solid #fff;
  border-radius: 50%;
  color: #51351e;
  background: var(--tomo-yellow);
  box-shadow: 0 12px 26px rgba(89, 58, 34, 0.15);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  transform: rotate(-8deg);
  animation: tomoBurst 7.5s ease-in-out infinite;
}

.tomodachi-hero__mobile-visual { display: none; }

/* Motion band: 未確定イベント名を並べず、「休日が動き出す」感覚だけを見せる。 */
.tomodachi-motion-band {
  position: relative;
  z-index: 8;
  overflow: hidden;
  min-height: clamp(78px, 8vw, 112px);
  border-block: 1px solid rgba(255,255,255,.42);
  background: linear-gradient(100deg, #f4bd3d 0%, #ef744b 28%, #d34f78 52%, #8b68c2 73%, #50a9c7 100%);
  background-size: 220% 220%;
  box-shadow: 0 18px 46px rgba(119, 62, 62, .16);
  animation: tomoBandGradient 9s ease-in-out infinite alternate;
  isolation: isolate;
}

.tomodachi-motion-band::before,
.tomodachi-motion-band::after {
  position: absolute;
  z-index: -1;
  width: 190px;
  height: 190px;
  border: 28px solid rgba(255,255,255,.18);
  border-radius: 50%;
  content: "";
}

.tomodachi-motion-band::before { top: -125px; left: 12%; animation: tomoBandOrbit 10s ease-in-out infinite alternate; }
.tomodachi-motion-band::after { right: 8%; bottom: -135px; animation: tomoBandOrbit 12s ease-in-out -3s infinite alternate-reverse; }

.tomodachi-motion-band__glow {
  position: absolute;
  inset: -80% -10%;
  z-index: -2;
  background: radial-gradient(circle at 45% 50%, rgba(255,255,255,.34), transparent 28%);
  animation: tomoBandGlow 8s ease-in-out infinite alternate;
}

.tomodachi-motion-band__track {
  display: flex;
  align-items: center;
  width: max-content;
  min-width: 200%;
  min-height: inherit;
  color: #fff;
  filter: drop-shadow(0 2px 0 rgba(95,43,54,.12));
  animation: tomoMarquee 24s linear infinite;
  will-change: transform;
}

.tomodachi-motion-band__group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: clamp(26px, 4vw, 62px);
  min-width: 100vw;
  padding: 18px clamp(28px, 5vw, 78px);
  white-space: nowrap;
}

.tomodachi-motion-band__group strong {
  font-family: var(--site-font-serif);
  font-size: clamp(25px, 3.2vw, 46px);
  line-height: 1.15;
  letter-spacing: .035em;
}

.tomodachi-motion-band__group span {
  position: relative;
  font-size: clamp(14px, 1.65vw, 20px);
  font-weight: 700;
  letter-spacing: .06em;
}

.tomodachi-motion-band__group span::before {
  display: inline-block;
  width: .52em;
  height: .52em;
  margin-right: clamp(14px, 2vw, 28px);
  border: 2px solid rgba(255,255,255,.88);
  content: "";
  transform: rotate(45deg) translateY(-.08em);
}

.tomodachi-motion-band__spark {
  position: absolute;
  z-index: 2;
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: rgba(255,255,255,.86);
  pointer-events: none;
}
.tomodachi-motion-band__spark--1 { top: 16%; left: 5%; animation: tomoSpark 4.8s ease-in-out infinite; }
.tomodachi-motion-band__spark--2 { right: 28%; bottom: 13%; width: 8px; height: 8px; animation: tomoSpark 5.6s ease-in-out -1.3s infinite; }
.tomodachi-motion-band__spark--3 { top: 20%; right: 7%; width: 16px; height: 16px; border-radius: 50%; animation: tomoSpark 6.1s ease-in-out -2.2s infinite; }

/* Events */
.tomodachi-events {
  position: relative;
  background: #fff;
}

.tomodachi-event-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
  max-width: 440px;
}

.tomodachi-event-filters button,
.tomodachi-event-filters a {
  text-decoration: none;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid var(--tomo-border);
  border-radius: 999px;
  color: var(--tomo-muted);
  background: #fff;
  font-weight: 700;
  cursor: pointer;
}

.tomodachi-event-filters button:hover,
.tomodachi-event-filters button.is-active,
.tomodachi-event-filters a:hover,
.tomodachi-event-filters a.is-active {
  border-color: var(--tomo-orange);
  color: var(--tomo-orange-dark);
  background: var(--tomo-orange-soft);
}

.tomodachi-event-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.tomodachi-event-card {
  overflow: hidden;
  min-width: 0;
  border: 1px solid #eaded5;
  border-radius: var(--tomo-radius);
  background: #fff;
  box-shadow: var(--tomo-shadow-soft);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.tomodachi-event-card:hover {
  box-shadow: var(--tomo-shadow);
  transform: translateY(-5px);
}

.tomodachi-event-card[hidden] {
  display: none !important;
}

.tomodachi-event-card__visual {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f3eee9;
}

.tomodachi-event-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tomodachi-event-card__visual.is-placeholder {
  background: #f6eee6;
}

.tomodachi-event-card__illustration {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.015);
  transition: transform 300ms ease;
}

.tomodachi-event-card:hover .tomodachi-event-card__illustration {
  transform: scale(1.055);
}

.tomodachi-event-card__image-note {
  position: absolute;
  right: 12px;
  bottom: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #66584f;
  background: rgba(255, 255, 255, 0.82);
  font-size: 10px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.tomodachi-event-card__category {
  position: absolute;
  top: 13px;
  left: 13px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(51, 37, 31, 0.82);
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.tomodachi-event-card__body {
  padding: 20px;
}

.tomodachi-event-card__topline {
  display: grid;
  grid-template-columns: 66px 1fr;
  align-items: start;
  gap: 15px;
}

.tomodachi-date-badge {
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 84px;
  border: 1px solid #ead6c7;
  border-radius: 15px;
  color: var(--tomo-orange-dark);
  background: #fff9f4;
  line-height: 1.05;
}

.tomodachi-date-badge span {
  font-size: 11px;
  font-weight: 700;
}

.tomodachi-date-badge strong {
  font-size: 31px;
}

.tomodachi-event-card__headline h3 {
  margin: 8px 0 0;
  font-size: 20px;
  line-height: 1.45;
}

.tomodachi-status {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.tomodachi-status.is-open { color: #315622; background: #e8f2dc; }
.tomodachi-status.is-few { color: #764d0d; background: #fff0c4; }
.tomodachi-status.is-full,
.tomodachi-status.is-closed,
.tomodachi-status.is-ended { color: #6d5f58; background: #eee9e5; }

.tomodachi-event-card__description {
  margin: 17px 0;
  color: var(--tomo-muted);
  line-height: 1.75;
}

.tomodachi-event-meta {
  display: grid;
  margin: 0;
  border-top: 1px solid #eee5df;
}

.tomodachi-event-meta > div {
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 9px;
  padding: 9px 0;
  border-bottom: 1px solid #eee5df;
}

.tomodachi-event-meta dt {
  color: #897970;
  font-size: 12px;
  font-weight: 700;
}

.tomodachi-event-meta dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
}

.tomodachi-target-badge {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.target-all { color: #355725; background: var(--tomo-green-soft); }
.target-gay { color: #5a3d72; background: var(--tomo-lavender-soft); }
.target-lgbtq { color: #365c69; background: var(--tomo-sky-soft); }
.target-age { color: #764d0d; background: var(--tomo-yellow-soft); }
.target-first { color: #8b3a27; background: var(--tomo-orange-soft); }

.tomodachi-event-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 18px;
}

.tomodachi-event-card__actions .tomodachi-button {
  width: 100%;
  padding-inline: 12px;
}

.tomodachi-empty {
  max-width: 760px;
  margin-inline: auto;
  padding: 38px clamp(22px, 4vw, 48px);
  border: 1px dashed #d9c4b6;
  border-radius: var(--tomo-radius);
  background: #fffaf5;
  text-align: center;
}

.tomodachi-empty__mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  color: var(--tomo-orange-dark);
  background: var(--tomo-yellow-soft);
  font-size: 27px;
}

.tomodachi-empty h3 { margin: 0; font-size: 24px; }
.tomodachi-empty p { color: var(--tomo-muted); }
.tomodachi-empty a { color: var(--tomo-orange-dark); font-weight: 700; }
.tomodachi-filter-empty { margin: 24px 0 0; text-align: center; color: var(--tomo-muted); }

/* About */
.tomodachi-about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  align-items: center;
  gap: clamp(40px, 7vw, 90px);
}

.tomodachi-about__copy p:not(.tomodachi-kicker) {
  max-width: 690px;
  color: var(--tomo-muted);
  font-size: 17px;
  line-height: 2;
}

.tomodachi-about__copy strong { color: var(--tomo-ink); }

.tomodachi-about__copy .tomodachi-large-copy {
  margin-top: 24px;
  color: var(--tomo-ink);
  font-size: clamp(20px, 2.4vw, 27px);
  font-weight: 700;
  line-height: 1.75;
}

.tomodachi-about__note {
  padding: 30px;
  border: 1px solid #dccfc6;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--tomo-shadow-soft);
  transform: rotate(1deg);
}

.tomodachi-about__note-title {
  margin: 0 0 18px;
  color: var(--tomo-brand);
  font-size: 19px;
  font-weight: 700;
}

.tomodachi-about__note p { margin: 12px 0; }
.tomodachi-about__note strong { color: var(--tomo-orange-dark); }
.tomodachi-about__note-small { padding-top: 13px; border-top: 1px solid #eee3dc; color: var(--tomo-muted); font-size: 13px; }

/* Fit */
.tomodachi-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tomodachi-check-grid li {
  position: relative;
  min-height: 72px;
  padding: 20px 20px 20px 58px;
  border: 1px solid rgba(220, 194, 174, 0.72);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  font-weight: 700;
}

.tomodachi-check-grid li::before {
  position: absolute;
  top: 19px;
  left: 20px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #fff;
  background: var(--tomo-green);
  content: "✓";
  font-size: 13px;
}

/* Activities */
.tomodachi-activity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.tomodachi-activity-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) minmax(0, 1.1fr);
  overflow: hidden;
  min-height: 280px;
  border: 1px solid #eadfd7;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--tomo-shadow-soft);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.tomodachi-activity-card:hover {
  box-shadow: var(--tomo-shadow);
  transform: translateY(-6px) rotate(-0.3deg);
}

.tomodachi-activity-card__visual {
  min-height: 100%;
  overflow: hidden;
  background: #f7eee5;
}

.tomodachi-activity-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.tomodachi-activity-card:hover .tomodachi-activity-card__visual img { transform: scale(1.045); }

.tomodachi-activity-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
}

.tomodachi-activity-card h3 {
  margin: 0 0 9px;
  font-size: 27px;
}

.tomodachi-activity-card p {
  margin: 0;
  color: var(--tomo-muted);
  line-height: 1.7;
}

.tomodachi-activity-card small {
  display: block;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #eee4de;
  color: #81736b;
  line-height: 1.6;
}

/* First time */
.tomodachi-first__layout {
  display: grid;
  grid-template-columns: minmax(360px, .92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(34px, 6vw, 78px);
}

.tomodachi-first__visual {
  position: relative;
  min-width: 0;
  transform: rotate(-1.1deg);
}

.tomodachi-first__visual::before {
  position: absolute;
  top: -28px;
  right: -24px;
  z-index: 0;
  width: 116px;
  height: 116px;
  border: 20px solid rgba(124,185,209,.28);
  border-radius: 50%;
  content: "";
  animation: tomoFirstRing 8s ease-in-out infinite alternate;
}

.tomodachi-first__visual img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  border: 7px solid #fff;
  border-radius: 34px;
  background: #fff;
  box-shadow: 0 24px 54px rgba(81,52,37,.16);
  animation: tomoFirstFloat 7.5s ease-in-out infinite;
}

.tomodachi-first__float {
  position: absolute;
  z-index: 3;
  padding: 10px 15px;
  border: 3px solid #fff;
  border-radius: 999px;
  color: #fff;
  box-shadow: 0 12px 24px rgba(70,43,34,.16);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.tomodachi-first__float--one {
  top: 9%;
  left: -4%;
  background: #8e3150;
  transform: rotate(-5deg);
  animation: tomoBadgeFloat 5.6s ease-in-out -1s infinite;
}

.tomodachi-first__float--two {
  right: -3%;
  bottom: 12%;
  color: #382a23;
  background: #f6cf65;
  transform: rotate(4deg);
  animation: tomoBadgeFloat 6.4s ease-in-out -2.1s infinite reverse;
}

.tomodachi-first__content .tomodachi-section-head { margin-bottom: 24px; }

.tomodachi-safety-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.tomodachi-safety-grid > div {
  display: grid;
  grid-template-columns: 36px 1fr;
  grid-template-areas: "num title" "num text";
  align-items: start;
  gap: 2px 11px;
  padding: 17px;
  border: 1px solid rgba(223,205,192,.72);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.tomodachi-safety-grid > div:hover {
  box-shadow: 0 12px 26px rgba(94,60,41,.08);
  transform: translateY(-3px);
}

.tomodachi-safety-grid span {
  grid-area: num;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  background: var(--tomo-brand);
  font-size: 11px;
  font-weight: 700;
}

.tomodachi-safety-grid strong { grid-area: title; padding-top: 2px; font-size: 15px; }
.tomodachi-safety-grid p { grid-area: text; margin: 2px 0 0; color: var(--tomo-muted); font-size: 12px; line-height: 1.6; }

/* Targets */
.tomodachi-targets__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: center;
  gap: 50px;
}

.tomodachi-targets__grid > div:first-child > p:last-child { max-width: 650px; color: var(--tomo-muted); font-size: 17px; line-height: 1.9; }

.tomodachi-target-examples {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  gap: 10px;
  min-height: 210px;
  padding: 28px;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--tomo-shadow-soft);
}

.tomodachi-target-examples .tomodachi-target-badge { min-height: 38px; padding: 7px 12px; font-size: 13px; }

/* Flow */
.tomodachi-flow__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

.tomodachi-flow__heading h2 {
  margin: 0;
  color: var(--tomo-ink);
  font-size: clamp(30px, 4.6vw, 48px);
  line-height: 1.28;
}

.tomodachi-flow__heading p:last-child {
  margin: 12px 0 0;
  color: var(--tomo-muted);
}

.tomodachi-flow__heading > span {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid rgba(142,49,80,.2);
  border-radius: 999px;
  color: #8e3150;
  background: rgba(255,255,255,.68);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .11em;
}

.tomodachi-flow-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.tomodachi-flow-list li {
  position: relative;
  min-height: 240px;
  padding: 20px;
  border: 1px solid rgba(231,218,209,.82);
  border-radius: 22px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 12px 28px rgba(75,52,38,.07);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.tomodachi-flow-list li:hover {
  transform: translateY(-5px);
  border-color: rgba(201,79,42,.28);
  box-shadow: 0 18px 34px rgba(75,52,38,.11);
}

.tomodachi-flow-list li:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -22px;
  z-index: 3;
  width: 28px;
  height: 28px;
  border: 3px solid var(--tomo-cream);
  border-radius: 50%;
  color: var(--tomo-orange-dark);
  background: var(--tomo-yellow);
  content: "→";
  font-size: 14px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(75,52,38,.12);
  transform: translateY(-50%);
  animation: tomoFlowArrow 1.9s ease-in-out infinite;
}

.tomodachi-flow-step {
  display: block;
  color: var(--tomo-orange);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
}

.tomodachi-flow-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-top: 14px;
  border-radius: 22px;
  color: var(--tomo-ink);
  background: linear-gradient(145deg, rgba(242,200,91,.34), rgba(255,255,255,.96));
}

.tomodachi-flow-list li:nth-child(2) .tomodachi-flow-icon { background: linear-gradient(145deg, rgba(152,190,101,.28), rgba(255,255,255,.96)); }
.tomodachi-flow-list li:nth-child(3) .tomodachi-flow-icon { background: linear-gradient(145deg, rgba(119,184,211,.28), rgba(255,255,255,.96)); }
.tomodachi-flow-list li:nth-child(4) .tomodachi-flow-icon { background: linear-gradient(145deg, rgba(216,78,120,.2), rgba(255,255,255,.96)); }

.tomodachi-flow-icon svg {
  width: 48px;
  height: 48px;
  fill: none;
  stroke: currentColor;
  stroke-width: 4.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tomodachi-flow-list strong {
  display: block;
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.55;
}

.tomodachi-flow-list p {
  margin: 8px 0 0;
  color: var(--tomo-muted);
  font-size: 12px;
  line-height: 1.7;
}

.tomodachi-flow-list [data-reveal]:nth-child(2) { transition-delay: 80ms; }
.tomodachi-flow-list [data-reveal]:nth-child(3) { transition-delay: 150ms; }
.tomodachi-flow-list [data-reveal]:nth-child(4) { transition-delay: 220ms; }

.tomodachi-center-action { margin-top: 32px; text-align: center; }

@keyframes tomoFlowArrow {
  0%, 100% { transform: translate(-2px,-50%); }
  50% { transform: translate(3px,-50%); }
}

/* FAQ */
.tomodachi-faq__layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: clamp(36px, 7vw, 84px);
}

.tomodachi-faq__intro { position: sticky; top: calc(var(--site-header-height) + 30px); }
.tomodachi-faq__items { display: grid; gap: 10px; }

.tomodachi-faq details {
  border: 1px solid #e7dad1;
  border-radius: 17px;
  background: #fff;
}

.tomodachi-faq summary {
  position: relative;
  padding: 18px 54px 18px 20px;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.tomodachi-faq summary::-webkit-details-marker { display: none; }
.tomodachi-faq summary::after {
  position: absolute;
  top: 50%;
  right: 20px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: var(--tomo-orange-dark);
  background: var(--tomo-orange-soft);
  content: "+";
  line-height: 24px;
  text-align: center;
  transform: translateY(-50%);
}
.tomodachi-faq details[open] summary::after { content: "−"; }
.tomodachi-faq details p { margin: 0; padding: 0 20px 20px; color: var(--tomo-muted); line-height: 1.85; }

/* Operator / final */
.tomodachi-operator { padding-top: 30px; }
.tomodachi-operator__card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  align-items: end;
  gap: 36px;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid #e4d4ca;
  border-radius: 32px;
  background: #fff;
  box-shadow: var(--tomo-shadow-soft);
}

.tomodachi-operator h2 { font-size: clamp(25px, 3.3vw, 37px); }
.tomodachi-operator__card p:not(.tomodachi-kicker) { max-width: 760px; color: var(--tomo-muted); line-height: 1.9; }
.tomodachi-operator__card strong { color: var(--tomo-ink); }
.tomodachi-operator__links { display: grid; gap: 10px; min-width: 240px; }
.tomodachi-operator__links a { padding: 12px 15px; border-bottom: 1px solid #e5d8d0; color: var(--tomo-orange-dark); font-weight: 700; text-decoration: none; }
.tomodachi-operator__links a:hover { background: var(--tomo-orange-soft); }

.tomodachi-final {
  position: relative;
  overflow: hidden;
  padding: clamp(58px, 7vw, 88px) 0;
  color: #fff;
  background:
    radial-gradient(circle at 12% 15%, rgba(242, 200, 91, 0.34), transparent 20rem),
    radial-gradient(circle at 87% 80%, rgba(120, 175, 198, 0.28), transparent 20rem),
    linear-gradient(118deg, #a33c2d 0%, #8e3150 52%, #625b9c 100%);
}

.tomodachi-final::after {
  position: absolute;
  right: -120px;
  bottom: -170px;
  width: 360px;
  height: 360px;
  border: 44px solid rgba(255,255,255,.08);
  border-radius: 50%;
  content: "";
  animation: tomoFinalRing 10s ease-in-out infinite alternate;
}

.tomodachi-final__layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, .94fr);
  align-items: center;
  gap: clamp(36px, 6vw, 74px);
}

.tomodachi-final__visual {
  transform: rotate(-1.4deg);
}

.tomodachi-final__visual img {
  display: block;
  width: 100%;
  border: 7px solid rgba(255,255,255,.96);
  border-radius: 34px;
  background: #fff;
  box-shadow: 0 28px 62px rgba(49,28,38,.3);
  animation: tomoFinalFloat 8s ease-in-out infinite;
}

.tomodachi-final__inner { text-align: left; }
.tomodachi-final p { margin: 0 0 12px; font-family: var(--site-font-serif); font-size: clamp(19px, 2.2vw, 27px); font-weight: 700; }
.tomodachi-final h2 { margin: 0; color: #fff; font-size: clamp(39px, 5vw, 62px); line-height: 1.22; }
.tomodachi-final__note { display: block; margin: 16px 0 25px; color: rgba(255,255,255,.84); font-size: 14px; font-weight: 700; }
.tomodachi-sp-only { display: none; }

/* Reveal */
.js .tomodachi-page [data-reveal] {
  opacity: 0;
  filter: blur(7px);
  transform: translateY(34px) scale(.985);
  transition: opacity 680ms cubic-bezier(.2,.75,.25,1), transform 680ms cubic-bezier(.2,.75,.25,1), filter 680ms ease;
}

.js .tomodachi-page [data-reveal].is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
}

.tomodachi-event-grid [data-reveal]:nth-child(2),
.tomodachi-activity-grid [data-reveal]:nth-child(2),
.tomodachi-safety-grid [data-reveal]:nth-child(2) { transition-delay: 80ms; }
.tomodachi-event-grid [data-reveal]:nth-child(3),
.tomodachi-activity-grid [data-reveal]:nth-child(3),
.tomodachi-safety-grid [data-reveal]:nth-child(3) { transition-delay: 150ms; }
.tomodachi-activity-grid [data-reveal]:nth-child(4),
.tomodachi-safety-grid [data-reveal]:nth-child(4) { transition-delay: 210ms; }


/* =========================================================
   Motion system
   「ともだち部」は他部門より明確に動的。ただし情報の可読性を優先する。
   ========================================================= */
@keyframes tomoHeroWash {
  0% { background-position: 0% 42%; }
  100% { background-position: 100% 58%; }
}
@keyframes tomoHeroRing {
  0% { transform: translate3d(0,0,0) rotate(-18deg) scale(1); }
  100% { transform: translate3d(28px,20px,0) rotate(16deg) scale(1.08); }
}
@keyframes tomoHeroBlob {
  0% { border-radius: 44% 56% 63% 37% / 47% 44% 56% 53%; transform: translate3d(0,0,0) rotate(18deg); }
  100% { border-radius: 58% 42% 38% 62% / 42% 58% 44% 56%; transform: translate3d(-24px,-18px,0) rotate(2deg) scale(1.08); }
}
@keyframes tomoVisualBlob {
  0% { border-radius: 42% 58% 52% 48% / 53% 44% 56% 47%; transform: rotate(-3deg) scale(1); }
  100% { border-radius: 55% 45% 40% 60% / 43% 58% 42% 57%; transform: rotate(2deg) scale(1.025); }
}
@keyframes tomoFloatMain {
  0%,100% { transform: translate3d(0,0,0) rotate(-4deg); }
  50% { transform: translate3d(5px,-13px,0) rotate(-1.5deg); }
}
@keyframes tomoFloatWalk {
  0%,100% { transform: translate3d(0,0,0) rotate(5deg); }
  50% { transform: translate3d(-8px,11px,0) rotate(1deg); }
}
@keyframes tomoFloatPlay {
  0%,100% { transform: translate3d(0,0,0) rotate(-4deg); }
  50% { transform: translate3d(8px,-9px,0) rotate(-6deg); }
}
@keyframes tomoNoteBob {
  0%,100% { transform: translate3d(0,0,0) rotate(4deg); }
  50% { transform: translate3d(-5px,-9px,0) rotate(1deg); }
}
@keyframes tomoBurst {
  0%,100% { transform: rotate(-8deg) scale(1); }
  45% { transform: rotate(4deg) scale(1.06); }
  55% { transform: rotate(1deg) scale(1.03); }
}
@keyframes tomoButtonShine {
  0%,62% { left: -45%; opacity: 0; }
  68% { opacity: 1; }
  82% { left: 125%; opacity: .8; }
  100% { left: 125%; opacity: 0; }
}
@keyframes tomoBandGradient {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
@keyframes tomoMarquee {
  from { transform: translate3d(0,0,0); }
  to { transform: translate3d(-50%,0,0); }
}
@keyframes tomoBandOrbit {
  from { transform: translate3d(0,0,0) rotate(0deg); }
  to { transform: translate3d(36px,22px,0) rotate(28deg); }
}
@keyframes tomoBandGlow {
  from { transform: translate3d(-12%,0,0) scale(.9); opacity: .65; }
  to { transform: translate3d(16%,0,0) scale(1.15); opacity: 1; }
}
@keyframes tomoSpark {
  0%,100% { transform: translate3d(0,0,0) rotate(0deg) scale(.8); opacity: .5; }
  50% { transform: translate3d(7px,-10px,0) rotate(90deg) scale(1.25); opacity: 1; }
}

@keyframes tomoFirstFloat {
  0%,100% { transform: translate3d(0,0,0) rotate(0deg); }
  50% { transform: translate3d(0,-9px,0) rotate(.35deg); }
}
@keyframes tomoFirstRing {
  from { transform: translate3d(0,0,0) rotate(0deg); }
  to { transform: translate3d(-18px,13px,0) rotate(18deg); }
}
@keyframes tomoBadgeFloat {
  0%,100% { translate: 0 0; }
  50% { translate: 0 -9px; }
}
@keyframes tomoFlowGlow {
  from { transform: translate3d(-6%,4%,0) scale(.92); opacity: .55; }
  to { transform: translate3d(8%,-4%,0) scale(1.08); opacity: 1; }
}
@keyframes tomoFinalFloat {
  0%,100% { transform: translate3d(0,0,0) rotate(0deg); }
  50% { transform: translate3d(0,-10px,0) rotate(.4deg); }
}
@keyframes tomoFinalRing {
  from { transform: translate3d(0,0,0) rotate(0deg); }
  to { transform: translate3d(-24px,-18px,0) rotate(22deg); }
}

/* 初期表示は上から順にテンポよく。 */
@media (prefers-reduced-motion: no-preference) {
  .tomodachi-hero__brand { animation: tomoIntroUp .56s .05s both cubic-bezier(.2,.8,.2,1); }
  .tomodachi-hero__catch { animation: tomoIntroUp .6s .12s both cubic-bezier(.2,.8,.2,1); }
  .tomodachi-hero__title-line:first-child { animation: tomoIntroTitle .7s .2s both cubic-bezier(.16,.84,.24,1); }
  .tomodachi-hero__title-line--accent { animation: tomoIntroTitle .72s .31s both cubic-bezier(.16,.84,.24,1); }
  .tomodachi-hero__lead { animation: tomoIntroUp .62s .42s both cubic-bezier(.2,.8,.2,1); }
  .tomodachi-hero__actions { animation: tomoIntroUp .62s .5s both cubic-bezier(.2,.8,.2,1); }
  .tomodachi-hero__trust { animation: tomoIntroUp .62s .58s both cubic-bezier(.2,.8,.2,1); }
}
@keyframes tomoIntroUp {
  from { opacity: 0; transform: translate3d(0,22px,0); }
  to { opacity: 1; transform: translate3d(0,0,0); }
}
@keyframes tomoIntroTitle {
  from { opacity: 0; transform: translate3d(-18px,18px,0) rotate(-1.5deg); }
  to { opacity: 1; transform: translate3d(0,0,0) rotate(0); }
}

@media (max-width: 1080px) {
  .tomodachi-hero__inner { grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.95fr); gap: 28px; }
  .tomodachi-hero__visual { min-height: 510px; }
  .tomodachi-hero__visual-note { top: 270px; }
  .tomodachi-hero h1 { font-size: clamp(41px, 4.35vw, 56px); }
}

@media (max-width: 980px) {
  .tomodachi-event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tomodachi-first__layout { grid-template-columns: minmax(300px, .82fr) minmax(0, 1.18fr); gap: 30px; }
  .tomodachi-safety-grid { grid-template-columns: 1fr; }
  .tomodachi-flow-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tomodachi-flow-list li:nth-child(2)::after { display: none; }
  .tomodachi-operator__card { grid-template-columns: 1fr; align-items: start; }
  .tomodachi-operator__links { min-width: 0; }
  .tomodachi-activity-card { grid-template-columns: 1fr; }
  .tomodachi-activity-card__visual { aspect-ratio: 16 / 9; min-height: 0; }
}

@media (max-width: 920px) {
  .tomodachi-container { width: min(calc(100% - 34px), 1140px); }
  .tomodachi-section { padding: 64px 0; }
  .tomodachi-section-head--events { display: block; }
  .tomodachi-event-filters { justify-content: flex-start; max-width: none; margin-top: 20px; }

  .tomodachi-hero { padding: 40px 0 50px; }
  .tomodachi-hero::before { top: -150px; left: -150px; }
  .tomodachi-hero__inner { grid-template-columns: 1fr; gap: 0; }
  .tomodachi-hero__visual { display: none; }
  .tomodachi-hero__mobile-visual {
    display: block;
    overflow: hidden;
    width: min(100%, 600px);
    margin: 24px 0 0;
    border: 6px solid #fff;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 16px 36px rgba(76, 48, 33, 0.16);
    transform: rotate(-1.2deg);
  }
  .tomodachi-hero__mobile-visual img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
  .tomodachi-hero__lead br { display: none; }
  .tomodachi-hero h1 { font-size: clamp(39px, 6.4vw, 54px); }

  .tomodachi-about__grid,
  .tomodachi-first__layout,
  .tomodachi-targets__grid,
  .tomodachi-faq__layout,
  .tomodachi-final__layout { grid-template-columns: 1fr; gap: 34px; }
  .tomodachi-first__visual { width: min(100%, 680px); margin-inline: auto; }
  .tomodachi-first__content .tomodachi-section-head { max-width: 760px; }
  .tomodachi-final__visual { width: min(100%, 680px); margin-inline: auto; }
  .tomodachi-final__inner { max-width: 680px; text-align: center; margin-inline: auto; }
  .tomodachi-faq__intro { position: static; }
}

@media (max-width: 640px) {
  .tomodachi-container { width: min(calc(100% - 28px), 1140px); }
  .tomodachi-section { padding: 54px 0; }
  .tomodachi-section-head { margin-bottom: 26px; }
  .tomodachi-section-head h2,
  .tomodachi-about h2,
  .tomodachi-targets h2,
  .tomodachi-faq h2 { font-size: 30px; }

  .tomodachi-hero { padding-top: 30px; }
  .tomodachi-hero__brand { margin-bottom: 12px; font-size: 13px; }
  .tomodachi-hero__catch { margin-bottom: 8px; font-size: clamp(18px, 5.2vw, 21px); letter-spacing: 0.05em; }
  .tomodachi-hero h1 { font-size: clamp(28px, 8.9vw, 40px); line-height: 1.27; letter-spacing: 0.01em; }
  .tomodachi-hero__title-line--accent { margin-top: 0.08em; }
  .tomodachi-hero__mobile-visual { margin-top: 18px; border-width: 5px; border-radius: 22px; }
  .tomodachi-hero__lead { margin-top: 18px; font-size: 14px; line-height: 1.8; }
  .tomodachi-hero__actions { display: grid; grid-template-columns: 1fr; margin-top: 20px; }
  .tomodachi-hero__actions .tomodachi-button { width: 100%; min-height: 54px; }
  .tomodachi-hero__actions .tomodachi-button--primary { min-height: 58px; }
  .tomodachi-hero__trust { gap: 7px; font-size: 11px; }
  .tomodachi-hero__trust li { padding: 5px 8px; }
  .tomodachi-motion-band { min-height: 82px; }
  .tomodachi-motion-band__track { animation-duration: 18s; }
  .tomodachi-motion-band__group { gap: 28px; padding: 14px 24px; }
  .tomodachi-motion-band__group strong { font-size: clamp(24px, 7vw, 32px); }
  .tomodachi-motion-band__group span { font-size: 13px; }

  .tomodachi-event-grid { grid-template-columns: 1fr; gap: 18px; }
  .tomodachi-event-card:hover { transform: none; }
  .tomodachi-event-card__body { padding: 18px; }
  .tomodachi-event-card__actions { grid-template-columns: 1fr; }
  .tomodachi-event-filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: -14px; padding: 0 14px 5px; scrollbar-width: thin; }
  .tomodachi-event-filters button,
.tomodachi-event-filters a { flex: 0 0 auto; }

  .tomodachi-check-grid,
  .tomodachi-activity-grid,
  .tomodachi-safety-grid,
  .tomodachi-flow-list { grid-template-columns: 1fr; }
  .tomodachi-first__visual img,
  .tomodachi-flow__visual,
  .tomodachi-final__visual img { border-width: 5px; border-radius: 24px; }
  .tomodachi-first__float { padding: 8px 11px; font-size: 11px; }
  .tomodachi-first__float--one { left: 1%; }
  .tomodachi-first__float--two { right: 1%; }
  .tomodachi-flow__heading { display: block; margin-bottom: 20px; }
  .tomodachi-flow__heading > span { display: inline-flex; margin-top: 13px; font-size: 10px; }
  .tomodachi-flow__visual { margin-bottom: 18px; }
  .tomodachi-final { padding: 52px 0 58px; }
  .tomodachi-final__layout { gap: 28px; }
  .tomodachi-final h2 { font-size: clamp(38px, 12vw, 52px); }
  .tomodachi-final__note { margin-bottom: 22px; }
  .tomodachi-check-grid li { min-height: 64px; padding: 17px 17px 17px 53px; }
  .tomodachi-check-grid li::before { top: 16px; left: 17px; }
  .tomodachi-activity-card { grid-template-columns: minmax(125px, 0.78fr) minmax(0, 1.22fr); min-height: 190px; border-radius: 22px; }
  .tomodachi-activity-card__visual { aspect-ratio: auto; min-height: 100%; }
  .tomodachi-activity-card__body { padding: 19px; }
  .tomodachi-activity-card h3 { font-size: 23px; }
  .tomodachi-activity-card p { font-size: 13px; }
  .tomodachi-activity-card small { margin-top: 12px; padding-top: 10px; font-size: 11px; }
  .tomodachi-flow-list li { min-height: 0; }
  .tomodachi-flow-list li::after { display: none !important; }
  .tomodachi-flow-list strong { margin-top: 15px; }

  .tomodachi-about__note { padding: 22px; transform: none; }
  .tomodachi-target-examples { min-height: 0; padding: 22px; }
  .tomodachi-operator__card { width: min(calc(100% - 28px), 1140px); padding: 24px; border-radius: 24px; }
  .tomodachi-sp-only { display: inline; }
}

@media (max-width: 360px) {
  .tomodachi-hero h1 { font-size: 28px; }
  .tomodachi-activity-card { grid-template-columns: 1fr; }
  .tomodachi-activity-card__visual { aspect-ratio: 16 / 9; }
}

@media (prefers-reduced-motion: reduce) {
  .tomodachi-flow-list li:not(:last-child)::after { animation: none !important; }
  .tomodachi-page *,
  .tomodachi-page *::before,
  .tomodachi-page *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }

  .tomodachi-page [data-reveal],
  .tomodachi-hero-scene,
  .tomodachi-event-card,
  .tomodachi-button,
  .tomodachi-activity-card {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    transition: none !important;
  }

  .tomodachi-motion-band__track {
    width: 100%;
    min-width: 100%;
    transform: none !important;
  }
  .tomodachi-motion-band__group[aria-hidden="true"] { display: none; }
  .tomodachi-motion-band__group { min-width: 100%; justify-content: center; flex-wrap: wrap; white-space: normal; }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .tomodachi-motion-band:hover .tomodachi-motion-band__track {
    animation-play-state: paused;
  }
}

/* =========================================================
   V5: broken visual fallback / target-label cleanup / CTA fix
   ========================================================= */

/* 新規ビジュアルはPNGで配信し、SVGのMIME・配信設定に依存しない。 */
.tomodachi-first__visual img,
.tomodachi-flow__visual img,
.tomodachi-final__visual img {
  object-fit: cover;
}

/* 対象ラベルは色面を乱立させず、「白ラベル＋識別ドット」で統一。 */
.tomodachi-target-examples .tomodachi-target-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(73, 52, 43, .12);
  color: var(--tomo-ink);
  background: #fff;
  box-shadow: 0 6px 14px rgba(78, 52, 37, .06);
}
.tomodachi-target-examples .tomodachi-target-badge::before {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: var(--tomo-brand);
  content: "";
}
.tomodachi-target-examples .target-all::before { background: var(--tomo-green); }
.tomodachi-target-examples .target-gay::before { background: var(--tomo-lavender); }
.tomodachi-target-examples .target-lgbtq::before { background: var(--tomo-sky); }
.tomodachi-target-examples .target-age::before { background: var(--tomo-yellow); }
.tomodachi-target-examples .target-first::before { background: #d26a4a; }

/* 最終CTAは共通aタグの色指定に負けないよう、文字色を確定する。 */
.tomodachi-final .tomodachi-button--light,
.tomodachi-final .tomodachi-button--light:link,
.tomodachi-final .tomodachi-button--light:visited {
  color: #7b301f !important;
  background: #fff !important;
  border-color: rgba(255,255,255,.98) !important;
  opacity: 1 !important;
  visibility: visible !important;
  font-size: 15px !important;
  text-indent: 0 !important;
}
.tomodachi-final .tomodachi-button--light span {
  color: inherit !important;
  opacity: 1 !important;
}
.tomodachi-final .tomodachi-button--light:hover,
.tomodachi-final .tomodachi-button--light:focus-visible {
  color: #652617 !important;
  background: #fff7e9 !important;
}

/* V5.1: final lead copy — avoid orphaned Japanese line breaks */
.tomodachi-final__lead {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: .35em;
  white-space: nowrap;
  font-size: clamp(18px, 1.75vw, 24px) !important;
}
.tomodachi-final__lead span { display: inline; }

@media (max-width: 920px) {
  .tomodachi-final__lead {
    display: block;
    white-space: normal;
  }
  .tomodachi-final__lead span { display: block; }
}

/* =========================================================
   V5.2: Japanese phrase wrapping / final copy line control
   ========================================================= */

/*
 * 日本語本文が語の途中で不自然に孤立しにくいよう、
 * 対応ブラウザでは文節単位の折返しを優先する。
 * 非対応環境では strict + pretty/balance をフォールバックにする。
 */
.tomodachi-page :where(h1, h2, h3, p, li, summary, dt, dd, small) {
  line-break: strict;
  overflow-wrap: normal;
  text-wrap: pretty;
}

.tomodachi-page :where(h1, h2, h3) {
  text-wrap: balance;
}

@supports (word-break: auto-phrase) {
  .tomodachi-page :where(h1, h2, h3, p, li, summary, dt, dd, small) {
    word-break: auto-phrase;
  }
}

/* 指定箇所は画面幅に依存させず意味単位で改行する。 */
.tomodachi-copy-line {
  display: block;
}

/* ウェルカム概要への導線。カード全体の静かな見た目は維持する。 */
.tomodachi-about__welcome-link,
.tomodachi-about__welcome-link:link,
.tomodachi-about__welcome-link:visited {
  color: var(--tomo-orange-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}

.tomodachi-about__welcome-link:hover,
.tomodachi-about__welcome-link:focus-visible {
  color: var(--tomo-brand);
  text-decoration-thickness: 2px;
}
/* V8: public navigation between TOP / event list / detail */
.tomodachi-activity-card{color:inherit;text-decoration:none}.tomodachi-activity-card:focus-visible{outline:4px solid rgba(238,160,52,.55);outline-offset:4px}.tomodachi-events-all-link{margin-top:1.5rem}
.tomodachi-target-examples a.tomodachi-target-badge{text-decoration:none}.tomodachi-target-examples a.tomodachi-target-badge:hover{transform:translateY(-2px)}
