/*
 * Men's Pilates renewal
 * Minimal, editorial design with Studio I'll's gold as a restrained accent.
 */

:root {
  --mens-ink: #171717;
  --mens-muted: #66635f;
  --mens-line: #d8d4ce;
  --mens-paper: #ffffff;
  --mens-warm: #f5f3ef;
  --mens-gold: #9b7440;
  --mens-scroll-progress: 0;
  --mens-scroll-shift: 0px;
  --mens-scroll-shift-reverse: 0px;
  --mens-scroll-shift-soft: 0px;
  --mens-scroll-turn: 0deg;
  --mens-scroll-turn-soft: 0deg;
}

body {
  color: var(--mens-ink);
  background: var(--mens-paper);
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
}

body::selection {
  color: #fff;
  background: var(--mens-ink);
}

.scroll-geometry {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  mix-blend-mode: multiply;
}

body > section,
body > .ban,
body > footer {
  position: relative;
  z-index: 1;
}

.scroll-geometry span {
  position: absolute;
  display: block;
  will-change: transform;
}

.scroll-geometry__circle {
  top: 16vh;
  left: -150px;
  width: 310px;
  aspect-ratio: 1;
  border: 1px solid rgba(155, 116, 64, 0.18);
  border-radius: 50%;
  transform: translate3d(0, var(--mens-scroll-shift), 0) rotate(var(--mens-scroll-turn));
}

.scroll-geometry__circle::before,
.scroll-geometry__circle::after {
  position: absolute;
  content: "";
}

.scroll-geometry__circle::before {
  inset: 52px;
  border: 1px solid rgba(23, 23, 23, 0.08);
  border-radius: 50%;
}

.scroll-geometry__circle::after {
  top: 50%;
  left: -24px;
  width: calc(100% + 48px);
  height: 1px;
  background: rgba(23, 23, 23, 0.09);
}

.scroll-geometry__diamond {
  top: 58vh;
  right: -82px;
  width: 190px;
  aspect-ratio: 1;
  border: 1px solid rgba(23, 23, 23, 0.1);
  transform: translate3d(0, var(--mens-scroll-shift-reverse), 0)
    rotate(calc(45deg - var(--mens-scroll-turn)));
}

.scroll-geometry__grid {
  top: 34vh;
  right: 3vw;
  width: 110px;
  height: 110px;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(155, 116, 64, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155, 116, 64, 0.12) 1px, transparent 1px);
  background-size: 22px 22px;
  transform: translate3d(0, var(--mens-scroll-shift-soft), 0)
    rotate(var(--mens-scroll-turn-soft));
}

.scroll-geometry__progress {
  top: 18%;
  right: 14px;
  width: 1px;
  height: 64%;
  background: linear-gradient(to bottom, var(--mens-gold), rgba(155, 116, 64, 0.2));
  transform: scaleY(var(--mens-scroll-progress));
  transform-origin: top;
}

.scroll-geometry::after {
  position: absolute;
  top: 18%;
  right: 14px;
  width: 1px;
  height: 64%;
  background: rgba(23, 23, 23, 0.08);
  content: "";
}

header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(23, 23, 23, 0.12);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.header-container {
  max-width: 1320px;
  min-height: 76px;
  padding: 8px 32px;
}

.nav-links a {
  color: var(--mens-ink);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.nav-links a:hover {
  color: var(--mens-gold);
}

.btn-reserve,
.mens-quick-guide__button--primary,
.cta-btn-large {
  color: #fff;
  background: #f44646;
  border: 1px solid #f44646;
  border-radius: 2px;
  box-shadow: none;
  letter-spacing: 0.06em;
}

.btn-reserve:hover,
.mens-quick-guide__button--primary:hover,
.cta-btn-large:hover {
  color: #fff;
  background: #d93b3b;
  border-color: #d93b3b;
  box-shadow: none;
  transform: none;
}

.hero {
  min-height: 720px;
  color: var(--mens-ink);
}

.hero::before {
  background-position: center 32%;
  animation-duration: 1.4s;
}

.hero::after {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.12), transparent 65%);
}

.hero-content {
  width: min(760px, calc(100% - 48px));
  padding: 30px 58px 34px;
  color: var(--mens-ink);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(7px);
}

.hero-content h2 {
  margin-bottom: 12px;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(2rem, 3.4vw, 3.35rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-shadow: none;
}

.hero-content p {
  margin-bottom: 26px;
  color: #3f3d3a;
  font-family: "Noto Serif JP", serif;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-shadow: none;
}

.hero-content .btn-reserve {
  padding: 13px 34px !important;
  border-radius: 2px !important;
  font-size: 0.9rem !important;
}

section {
  padding-top: 108px;
  padding-bottom: 108px;
}

.container {
  max-width: 1080px;
}

.section-title,
.trial-flow__title,
.concept-title,
.cta-section h2 {
  color: var(--mens-ink);
  font-family: "Noto Serif JP", serif;
  font-weight: 400;
  letter-spacing: 0.1em;
  line-break: strict;
  text-wrap: balance;
}

.benefit-card h3,
.mens-case__content h3,
.trial-flow__heading {
  line-break: strict;
  text-wrap: balance;
}

@supports (word-break: auto-phrase) {
  .section-title,
  .trial-flow__title,
  .concept-title,
  .cta-section h2,
  .benefit-card h3,
  .mens-case__content h3,
  .trial-flow__heading {
    word-break: auto-phrase;
  }
}

.section-title {
  margin-bottom: 64px;
  font-size: clamp(1.75rem, 3vw, 2.55rem);
}

.section-title::after {
  width: 34px;
  height: 1px;
  margin-top: 22px;
  background: var(--mens-gold);
}

.mens-quick-guide {
  padding: 78px 24px 84px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--mens-line);
}

.mens-quick-guide .container {
  max-width: 920px;
}

.mens-quick-guide__eyebrow {
  color: var(--mens-gold);
  font-family: "Noto Serif JP", serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.22em;
}

.mens-quick-guide__title {
  margin-bottom: 42px;
  color: var(--mens-ink);
  font-family: "Noto Serif JP", serif;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  font-weight: 400;
  letter-spacing: 0.08em;
}

.mens-quick-guide__facts {
  column-gap: 64px;
}

.mens-quick-guide__facts li {
  padding: 20px 0;
  border-color: var(--mens-line);
}

.mens-quick-guide__facts strong {
  color: var(--mens-ink);
  font-family: "Noto Serif JP", serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.mens-quick-guide__facts span {
  color: var(--mens-muted);
}

.mens-quick-guide__button {
  min-height: 52px;
  border-radius: 2px;
  font-size: 0.88rem;
}

.mens-quick-guide__button--line {
  color: #2d5c43;
  border-bottom-color: #2d5c43;
}

.mens-movie-section {
  padding: 100px 20px;
  background: var(--mens-ink);
}

.movie {
  max-width: 390px;
}

.ban {
  max-width: 880px;
  margin: 96px auto;
  padding: 0 20px;
}

.ban img {
  transition: opacity 0.35s ease;
}

.ban:hover img {
  opacity: 0.9;
}

.concept-section {
  position: relative;
  padding: 120px 24px;
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid var(--mens-line);
}

.concept-wrapper {
  max-width: 1080px;
  gap: 84px;
}

.concept-catch {
  color: var(--mens-gold);
  font-family: "Noto Serif JP", serif;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.14em;
}

.concept-title {
  margin-bottom: 34px;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  line-height: 1.55;
}

.concept-text {
  color: #45423e;
  font-size: 0.93rem;
  line-height: 2.2;
}

.concept-image {
  border-radius: 0;
}

.concept-image:hover img {
  transform: none;
}

.bg-gray,
.trial-flow,
#instructors,
#faq {
  background: rgba(245, 243, 239, 0.94);
}

.benefit-grid {
  gap: 42px;
}

.benefit-card {
  padding: 0 0 30px;
  background: transparent;
  border-bottom: 1px solid var(--mens-line);
  border-radius: 0;
  box-shadow: none;
}

.benefit-card:hover {
  transform: none;
}

.benefit-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 28px;
  object-fit: cover;
}

.benefit-card h3 {
  color: var(--mens-ink);
  font-family: "Noto Serif JP", serif;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.benefit-card p {
  color: var(--mens-muted);
  font-size: 0.88rem;
  line-height: 1.9;
}

.voice-grid {
  gap: 0;
  border-top: 1px solid var(--mens-line);
}

.voice-card {
  padding: 38px 42px;
  background: transparent;
  border-bottom: 1px solid var(--mens-line);
  border-radius: 0;
  box-shadow: none;
}

.voice-quote {
  color: var(--mens-ink);
  font-family: "Noto Serif JP", serif;
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.8;
}

.mens-case {
  padding: 118px 24px;
  background: rgba(255, 255, 255, 0.94);
}

.mens-case__inner {
  max-width: 1080px;
}

.mens-case__item {
  gap: 72px;
  padding: 54px 0;
  border-top: 1px solid var(--mens-line);
}

.mens-case__img {
  border-radius: 0;
}

.mens-case__content h3 {
  color: var(--mens-ink);
  font-family: "Noto Serif JP", serif;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.mens-case__content p {
  color: var(--mens-muted);
  line-height: 2;
}

.trial-flow {
  padding: 118px 24px;
}

.trial-flow__item,
.trial-flow__item:nth-child(even) {
  background: transparent;
  border-top: 1px solid var(--mens-line);
  border-radius: 0;
  box-shadow: none;
}

.trial-flow__step {
  padding: 0;
  color: var(--mens-gold);
  background: transparent;
  border-radius: 0;
  font-family: "Noto Serif JP", serif;
  font-weight: 400;
  letter-spacing: 0.16em;
}

.trial-flow__heading {
  color: var(--mens-ink);
  font-family: "Noto Serif JP", serif;
  font-weight: 500;
}

.trial-flow__text {
  color: var(--mens-muted);
}

.instructor-grid {
  gap: 26px;
}

.instructor-card {
  text-align: left;
}

.instructor-card img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 20px;
  object-fit: contain;
  border: 0;
  border-radius: 0;
}

.instructor-name {
  margin-top: 18px;
  color: var(--mens-ink);
  font-family: "Noto Serif JP", serif;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.pricing-table {
  color: var(--mens-ink);
  border: 1px solid var(--mens-line);
  border-radius: 0;
  box-shadow: none;
}

.pricing-table th {
  color: #fff;
  background: var(--mens-ink);
  font-weight: 400;
  letter-spacing: 0.06em;
}

.pricing-table th,
.pricing-table td {
  padding: 20px 18px;
  border-color: var(--mens-line);
}

.price-highlight {
  color: var(--mens-gold);
}

.faq-list {
  border-top: 1px solid var(--mens-line);
}

.faq-item {
  margin: 0;
  background: transparent;
  border-bottom: 1px solid var(--mens-line);
  border-radius: 0;
  box-shadow: none;
}

.faq-item details {
  padding: 24px 4px;
}

.faq-item summary {
  color: var(--mens-ink);
  font-family: "Noto Serif JP", serif;
  font-weight: 500;
}

.faq-item summary::after {
  color: var(--mens-gold);
  font-weight: 400;
}

.faq-answer {
  color: var(--mens-muted);
  line-height: 2;
}

.access {
  padding: 118px 24px;
  background: rgba(255, 255, 255, 0.94);
}

.access-wrap {
  gap: 56px;
}

.address {
  color: var(--mens-muted);
  font-family: "Noto Serif JP", serif;
  line-height: 2;
}

.cta-section {
  padding: 124px 24px;
  background-color: var(--mens-ink);
  background-blend-mode: multiply;
  filter: none;
}

.cta-section h2 {
  color: #fff;
  font-size: clamp(1rem, 3vw, 2.7rem);
  line-height: 1.7;
}

.cta-btn-large {
  margin-top: 34px;
  padding: 15px 48px;
  color: #fff;
  background: #f44646;
  border-color: #f44646;
  border-radius: 2px;
  font-size: 1rem;
}

.cta-btn-large:hover {
  color: #fff;
  background: #d93b3b;
  border-color: #d93b3b;
}

footer {
  color: #aaa;
  background: #111;
  border-top: 1px solid #333;
  letter-spacing: 0.08em;
}

.floating-cta {
  display: none;
}

@media (max-width: 768px) {
  .scroll-geometry__circle {
    top: 24vh;
    left: -126px;
    width: 210px;
    opacity: 0.75;
  }

  .scroll-geometry__diamond {
    top: 68vh;
    right: -70px;
    width: 126px;
  }

  .scroll-geometry__grid {
    display: none;
  }

  .scroll-geometry__progress,
  .scroll-geometry::after {
    right: 5px;
  }

  .header-container {
    min-height: 60px;
    padding: 4px 18px;
  }

  .hero {
    height: auto;
    min-height: 0;
    margin-top: 60px;
    padding-top: 0;
    aspect-ratio: 9 / 16;
  }

  .hero-content {
    display: none;
  }

  .hero-video {
    object-fit: cover;
    filter: grayscale(0.2) contrast(1.03);
  }

  section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .mens-quick-guide {
    padding: 58px 20px 64px;
  }

  .mens-quick-guide__title {
    margin-bottom: 32px;
    font-size: 1.55rem;
    line-height: 1.65;
  }

  .section-title,
  .trial-flow__title {
    font-size: clamp(1.35rem, 6vw, 1.65rem);
    line-height: 1.55;
    letter-spacing: 0.06em;
  }

  .concept-title {
    font-size: clamp(1.4rem, 6.4vw, 1.7rem);
    line-height: 1.65;
    letter-spacing: 0.06em;
  }

  .mens-quick-guide__facts li {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 17px 0;
  }

  .mens-quick-guide__actions {
    margin-top: 30px;
  }

  .ban {
    margin: 64px auto;
  }

  .concept-section,
  .mens-case,
  .trial-flow,
  .access {
    padding: 78px 20px;
  }

  .concept-wrapper {
    gap: 48px;
  }

  .concept-content {
    text-align: left;
  }

  .concept-text {
    font-size: 0.9rem;
    line-height: 2.05;
  }

  .benefit-grid {
    gap: 52px;
  }

  .voice-card {
    padding: 30px 4px;
  }

  .mens-case__item,
  .mens-case__item:nth-child(even) {
    gap: 32px;
    padding: 40px 0;
  }

  .trial-flow__item,
  .trial-flow__item:nth-child(even) {
    margin: 0;
  }

  .trial-flow__content {
    padding: 28px 4px 42px;
  }

  .instructor-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .pricing-table th,
  .pricing-table td {
    padding: 16px 14px;
  }

  .access-wrap {
    gap: 32px;
  }

  .cta-section {
    padding: 88px 22px 110px;
  }

  .floating-cta {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9999;
    display: flex;
    width: 100%;
    max-width: none;
    padding: 0;
    color: #fff;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
    opacity: 0;
    pointer-events: none;
    transform: translateY(100%);
    transition: opacity 0.35s ease, transform 0.35s ease;
  }

  .floating-cta.is-show {
    bottom: 0;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .floating-cta a {
    display: flex;
    width: 50%;
    min-height: 60px;
    padding: 15px 8px calc(15px + env(safe-area-inset-bottom));
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #fff;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
    text-align: center;
  }

  .floating-cta__reserve {
    background: #f44646;
  }

  .floating-cta__line {
    background: #00b900;
  }

  .floating-cta img {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    margin: 0;
    object-fit: contain;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-geometry {
    display: none;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
