/* AYATA / 症状カード 4画像統合版 2026-11-22
 * 既存の tooplate-style.min.css, heading-layout-fix.css, symptoms-layout.css は変更しない。
 * このCSSは symptoms.html 専用。
 */
.ayata-symptoms-index .ayata-card-stage-group {
  padding: 43px 20px 54px;
  background: #fafafa;
  overflow-x: clip; /* offscreen slide effects must not cause horizontal scroll */
}
/* Old theme globally applies section { padding: 100px 0 } on PC and 30px on phones.
   Reduce the real inter-card space (including inherited section padding) to ~60%. */
.ayata-card-section { max-width: 1170px; margin: 0 auto 22px; padding: 30px 0; }
.ayata-card-section:last-child { margin-bottom: 0; }
.ayata-card-shell {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 465px; border-radius: 6px;
  background: #e9e8f2; box-shadow: 0 15px 35px rgba(36,36,64,.10);
  display: flex; align-items: center;
}
.ayata-card-visual {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center center;
  background-repeat: no-repeat;
}
.ayata-card-visual--low-back {
  background-image:
    linear-gradient(135deg, rgba(106, 57, 177, 0.58) 0%, rgba(136, 92, 201, 0.46) 36%, rgba(183, 158, 226, 0.26) 64%, rgba(228, 224, 246, 0.10) 100%),
    url('../image/low-back-banner.webp');
  background-position: center 50%;
}
.ayata-card-shell--left { justify-content: flex-end; }
.ayata-card-shell--right { justify-content: flex-start; }
.ayata-card-copy {
  position: relative; z-index: 1;
  width: 48%; max-width: 570px;
  padding: 40px clamp(26px, 4.0vw, 56px);
  background: rgba(250, 250, 255, .64);
  color: #333845;
  border-radius: 4px;
  margin: 30px 3.8%;
  box-shadow: 0 0 40px 25px rgba(250, 250, 255, .23);
}
.ayata-card-copy h2 {
  margin: 0 0 16px !important; padding: 0 !important;
  text-align: left !important; color: #363148 !important;
  font-size: clamp(27px, 3vw, 39px); line-height: 1.35;
  letter-spacing: .075em;
}
.ayata-card-copy .ayata-card-lead {
  font-size: clamp(15px, 1.5vw, 18px); font-weight: 600;
  line-height: 1.75; margin: 0 0 15px;
}

.ayata-card-copy .ayata-card-text { font-size: 15px; line-height: 1.9; margin: 0 0 35px; }

.annai .row.anti-letter > .col-xs-12 > p:first-of-type { margin-bottom: 35px; }
.ayata-consult-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 35px;
}
a.boxlink.ayata-consult-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  text-align: center;
  border-radius: 999px !important;
  padding: 12px 20px;
  margin: 0; /* Overrides theme .boxlink margin:auto in the flex container. */
}
.ayata-card-copy a.ayata-card-button {
  display: inline-block; max-width: 100%; text-align: center; font-size: 14px;
  line-height: 1.65; padding: 11px 22px; border-radius: 999px;
}
/* Images are not modified; only the posture background layer is mirrored on desktop. */
.ayata-card-visual--shoulder {
  background-image: url('../image/shoulder-banner.webp');
  background-position: center 50%;
}
.ayata-card-visual--headache {
  background-image: url('../image/headache-banner.webp');
  background-position: center 46%;
}
.ayata-card-visual--posture {
  background-image: url('../image/posture-banner.webp');
  background-position: center 50%;
}

.ayata-card-visual--posture {
  transform: scaleX(-1);
  transform-origin: center center;
}
/* Posture card: text panel left on larger screens; image visual is flipped only on desktop. */
@media (min-width: 768px) {
  .ayata-symptoms-index .ayata-card-section[aria-labelledby="ayata-posture-title"] .ayata-card-shell {
    justify-content: flex-start;
  }
  .ayata-symptoms-index .ayata-card-section[aria-labelledby="ayata-posture-title"] .ayata-card-copy {
    margin-left: 3.8%;
    margin-right: auto;
  }
}
/* Scroll entrance - hidden only on JS-supported browsers, no JS stays visible.
 * Desktop: 165px; mobile: 135px. Mobile duration: 1.35s.
 * Use 3D transform to avoid layout reflow, and avoid first-paint lost transitions.
 */
.ayata-slide-in {
  transition: opacity 1.2s ease, transform 1.2s cubic-bezier(.18,.65,.28,1);
}
.ayata-motion-ready .ayata-slide-in {
  opacity: 0;
  will-change: transform, opacity;
}
.ayata-motion-ready .ayata-slide-in--left { transform: translate3d(-165px,0,0); }
.ayata-motion-ready .ayata-slide-in--right { transform: translate3d(165px,0,0); }
.ayata-motion-ready .ayata-slide-in--visible {
  opacity: 1;
  transform: translate3d(0,0,0);
  will-change: auto;
}
@media (max-width: 900px) {
  .ayata-card-copy { width: 54%; padding: 28px 27px; margin: 22px 2.8%; }
  .ayata-card-shell { min-height: 430px; }
  .ayata-card-copy .ayata-card-text { font-size: 14px; }
}
@media (max-width: 767px) {
  .ayata-symptoms-index .ayata-card-stage-group { padding: 23px 14px 33px; }
  .ayata-card-section { margin-bottom: 11px; padding: 9px 0; }
  .ayata-card-shell { display: flex; flex-direction: column; min-height: auto; align-items: stretch; }
  /* Mobile: shorter letterbox (width:height = 2:1) per the red guide lines.
     Crop the original wide photo instead of shrinking the man. */
  .ayata-symptoms-index .ayata-card-visual {
    position: relative;
    inset: auto;
    z-index: auto;
    width: 100%;
    aspect-ratio: 2 / 1;
    background-position: center center;
  }
  /* At 375px viewport keep the same subject scale as the previous tall frame,
     then shift the crop down so that the lumbar region stays in view. */
  .ayata-symptoms-index .ayata-card-visual--low-back {
    background-size: 170% auto;
    background-position: left 76%;
  }
  /* Crop symptom-specific focal points without editing the approved photos. */
  .ayata-symptoms-index .ayata-card-visual--shoulder {
    background-size: 170% auto;
    background-position: right 50%;
  }
  .ayata-symptoms-index .ayata-card-visual--headache {
    background-size: 160% auto;
    background-position: left 35%;
  }
  .ayata-symptoms-index .ayata-card-visual--posture {
    background-size: 125% auto;
    background-position: left 48%;
    transform: none; /* Restore original orientation on mobile so the woman remains visible. */
  }
  .ayata-card-copy { width: 100%; max-width: none; padding: 26px 24px 30px; margin: 0; border-radius: 0; box-shadow: none; background: #f7f7fb; }
  .ayata-card-copy h2 { font-size: 27px; text-align:left!important; }
  .ayata-card-copy .ayata-card-text { font-size: 14px; margin-bottom: 35px; }
  .ayata-consult-buttons { flex-direction: column; gap: 12px; }
  .ayata-consult-button { width: 100%; min-width: 0; }
  /* Mobile slide: farther (60px -> 135px) and slower (0.75s -> 1.35s). */
  .ayata-symptoms-index .ayata-slide-in { transition-duration: 1.35s; }
  .ayata-motion-ready .ayata-slide-in--left { transform: translate3d(-135px,0,0); }
  .ayata-motion-ready .ayata-slide-in--right { transform: translate3d(135px,0,0); }
  .ayata-motion-ready .ayata-slide-in--visible { transform: translate3d(0,0,0); }
}
@media (prefers-reduced-motion: reduce) {
  .ayata-motion-ready .ayata-slide-in, .ayata-slide-in {
    transition: none !important; transform: none !important; opacity: 1 !important;
  }
}

/* v9: Hero headings follow chirob.html and heading-layout-fix.css.
   Dimming is uniform over the WHOLE hero image (not behind only the text).
   The approved image itself is unchanged. */
.ayata-symptoms-index #home.ayata-symptoms-hero .overlay-2 {
  display: block;
  background: #000;
  opacity: .15;
}
.ayata-symptoms-index #home.ayata-symptoms-hero .sub-home {
  background: none;
  border-radius: 0;
  box-shadow: none;
  /* Keep normal heading-layout-fix.css padding; no extra text-only panel. */
}
/* Intro's H2 uses the exact existing .box-room h2 style, like chirob.html. */
.ayata-symptoms-index .ayata-symptoms-intro {
  padding: 50px 0 24px;
  background: #ffffff;
}
.ayata-symptoms-index .ayata-symptoms-intro p {
  max-width: 850px;
  margin: 18px auto 0;
  text-align: center;
  font-size: 15px;
  line-height: 1.9;
  padding: 0 10px;
}
@media (max-width: 767px) {
  .ayata-symptoms-index .ayata-symptoms-intro {
    padding: 28px 0 14px;
  }
  .ayata-symptoms-index .ayata-symptoms-intro.box-room h2 {
    margin-top: 0; /* Avoid the global mobile +50px on top of intro padding. */
  }
  .ayata-symptoms-index .ayata-symptoms-intro p {
    font-size: 14px;
    padding: 0 12px;
  }
}
