/* =========================================================
   Muuta Golf Academy (MGA) - styles.css（統合整理・全文置換用）
   - 競合していた追加CSSを統合（後勝ち事故を排除）
   - Breakpoints:
       PC:    >= 901px（ヒーロー/レイアウトはPCを維持）
       NAV:   <= 900px（ナビだけハンバーガー＋オフキャンバス）
       SP:    <= 768px（画像差替や縦積みなど“スマホ専用”）
   - JSが死んでも白飛びしない “安全な reveal” 設計
   ========================================================= */

/* =========================
   Variables
   ========================= */
:root {
  --navy: #0F1A2B;
  --navy-2: #13233A;
  --gold: #C9A24D;
  --ivory: #F6F1E6;
  --white: #FFFFFF;
  --text: #0E1320;
  --muted: #5E6778;
  --line: rgba(201, 162, 77, 0.25);

  --font-jp: 'Noto Sans JP', sans-serif;
  --font-en: 'Playfair Display', serif;

  --header-h: 72px;
}

/* =========================
   Reset & Base
   ========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-jp);
  color: var(--text);
  line-height: 1.8;
  letter-spacing: 0.02em;
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}

a:hover { opacity: 0.7; }

ul { list-style: none; }

/* =========================
   Typography
   ========================= */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.text-gold { color: var(--gold); }
.text-white { color: var(--white); }
.text-left { text-align: left; }
.text-center { text-align: center; }

/* =========================
   Layout
   ========================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.bg-ivory { background-color: var(--ivory); }
.bg-navy  { background-color: var(--navy); }
.bg-white { background-color: var(--white); }

/* PCの器を少し広げる（全体） */
@media (min-width: 1024px){
  .container { max-width: 1320px; }
}
@media (min-width: 1440px){
  .container { max-width: 1400px; }
}

/* =========================
   Buttons
   ========================= */
.btn {
  display: inline-block;
  padding: 14px 40px;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-gold-solid {
  background-color: var(--gold);
  color: var(--white);
  border: 1px solid var(--gold);
}

.btn-gold-solid:hover {
  background-color: #B58F3D;
  border-color: #B58F3D;
}

/* =========================
   Section Title
   ========================= */
.section-title {
  font-size: 2rem;
  margin-bottom: 50px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-title .en {
  font-family: var(--font-en);
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-title .jp {
  font-size: 1.75rem;
  font-weight: 700;
}

/* =========================================================
   Motion / UI polish（動き用）
   ========================================================= */
header.is-scrolled {
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}
header.is-scrolled .header-logo { height: 38px; }

/* Nav active */
#nav-menu a.is-active {
  color: var(--gold);
  position: relative;
}
#nav-menu a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--gold);
  opacity: 0.9;
}

/* Scroll reveal（共通） */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.reveal.is-inview {
  opacity: 1;
  transform: translateY(0);
}

/* Reduce motion respect */
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; transform: none; opacity: 1; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Header
   ========================================================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  background-color: rgba(255, 255, 255, 0.98);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link { flex: 0 0 auto; }

.header-logo {
  height: 44px;
  width: auto;
  display: block;
}

#nav-menu { flex: 1 1 auto; }

#nav-menu ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

#nav-menu a {
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.header-right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  margin-left: 24px;
}

.header-social {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}

.header-social a {
  font-size: 1.2rem;
  color: var(--navy);
  opacity: 0.65;
}
.header-social a:hover { opacity: 0.7; }

/* Hamburger（デフォルトはPC＝非表示） */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  padding: 0;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--navy);
  transition: all 0.3s;
}

/* =========================================================
   Hero（PC：左=写真/ロゴ 右=テキストパネル）
   ========================================================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  padding-top: var(--header-h);
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/images/hero.webp');
  background-size: cover;
  background-position: 20% 35%;
  z-index: -2;
}

.no-webp .hero-bg {
  background-image: url('assets/images/hero.png');
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(15, 26, 43, 0.15) 0%,
    rgba(15, 26, 43, 0.25) 40%,
    rgba(15, 26, 43, 0.55) 100%
  );
  z-index: -1;
}

/* 右寄せパネル（PCの基準） */
.hero-content {
  width: min(640px, 46vw);
  margin-left: auto;
  margin-right: clamp(20px, 5vw, 72px);
  text-align: left;
  padding: clamp(20px, 3vw, 36px);
  border-radius: 14px;
  background: rgba(15, 26, 43, 0.18);
  backdrop-filter: blur(2px);
  position: relative;
  z-index: 5;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 3.2vw, 3.4rem);
  line-height: 1.18;
  margin-bottom: 18px;
  text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.sub-lead {
  font-size: clamp(1.0rem, 1.2vw, 1.15rem);
  font-weight: 500;
  line-height: 1.9;
  text-shadow: 0 2px 5px rgba(0,0,0,0.3);
  opacity: 0.92;
}

.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--white);
  font-size: 0.8rem;
  font-family: var(--font-en);
  letter-spacing: 0.1em;
  opacity: 0.8;
  z-index: 6;
}

.scroll-arrow {
  margin-top: 8px;
  font-size: 1.2rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(5px); }
  60% { transform: translateY(3px); }
}

/* =========================================================
   Hero Brand Logo (PC only)
   ========================================================= */
@media (min-width: 901px) {
  .hero::before {
    content: "";
    position: absolute;
    left: 25%;
    top: 52%;
    width: clamp(520px, 34vw, 760px);
    height: clamp(520px, 34vw, 760px);
    background-image: url("assets/logos/logo-mark.png");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;

    transform: translate(-50%, -50%) scale(1.10);
    opacity: 0;

    filter:
      drop-shadow(0 22px 55px rgba(0,0,0,0.50))
      drop-shadow(0 0 34px rgba(201, 162, 77, 0.40));

    z-index: 3;
    pointer-events: none;

    animation: heroLogoEmphasis 1200ms cubic-bezier(.2,.9,.2,1) 140ms forwards;
  }

  .hero::after {
    content: "";
    position: absolute;
    left: 0;
    top: var(--header-h);
    width: 50vw;
    height: calc(100% - var(--header-h));
    background: linear-gradient(
      90deg,
      rgba(15, 26, 43, 0.28) 0%,
      rgba(15, 26, 43, 0.14) 55%,
      rgba(15, 26, 43, 0.00) 100%
    );
    z-index: 2;
    pointer-events: none;
  }
}

@keyframes heroLogoEmphasis {
  0% {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 14px)) scale(1.18);
    filter:
      drop-shadow(0 30px 70px rgba(0,0,0,0.55))
      drop-shadow(0 0 0 rgba(201, 162, 77, 0.00));
  }
  60% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.03);
    filter:
      drop-shadow(0 22px 55px rgba(0,0,0,0.50))
      drop-shadow(0 0 34px rgba(201, 162, 77, 0.40));
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.00);
    filter:
      drop-shadow(0 22px 55px rgba(0,0,0,0.50))
      drop-shadow(0 0 34px rgba(201, 162, 77, 0.40));
  }
}

@media (prefers-reduced-motion: reduce) {
  @media (min-width: 901px) {
    .hero::before {
      animation: none;
      opacity: 1;
      transform: translate(-50%, -50%) scale(1);
    }
  }
}

/* =========================================================
   About
   ========================================================= */
.about-container {
  display: flex;
  align-items: center;
  gap: 60px;
}

.about-img { flex: 1; }
.about-img img {
  width: 100%;
  border-radius: 8px;
  display: block;
}

.about-text { flex: 1; }
.about-text .section-title {
  align-items: flex-start;
  margin-bottom: 30px;
}

.feature-list li {
  margin-bottom: 16px;
  padding-left: 1.2em;
  position: relative;
  font-weight: 500;
}
.feature-list li::before {
  content: "•";
  color: var(--gold);
  position: absolute;
  left: 0;
  font-size: 1.2em;
  line-height: 1;
  top: 0.2em;
}

@media (min-width: 1024px){
  .about-container{ gap: 72px; }
  .about-img{ flex: 1.2; }
  .about-text{ flex: 0.8; }
  .about-img img{ border-radius: 12px; }
}

/* =========================================================
   Philosophy
   ========================================================= */
.philosophy-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.lead-text {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 40px;
  line-height: 1.8;
}

.philosophy-visual {
  margin: 40px auto;
  max-width: 600px;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  text-align: left;
}

.philosophy-item {
  background-color: rgba(255,255,255,0.05);
  padding: 30px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
}

.philosophy-item h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 8px;
  display: inline-block;
}

.gold-text { font-weight: 700; }
.small-note {
  font-size: 0.9rem;
  color: var(--gold);
  margin-top: 10px;
}

/* =========================================================
   Structure
   ========================================================= */
.structure-desc {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

.structure-img-wrapper {
  max-width: 700px;
  margin: 0 auto;
}

/* =========================================================
   Lesson
   ========================================================= */
.lesson-layout {
  display: flex;
  align-items: center;
  gap: 40px;
  background-color: var(--white);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.lesson-image { flex: 1; }
.lesson-image img {
  width: 100%;
  border-radius: 14px;
}

.lesson-info { flex: 1; }

.badge {
  display: inline-block;
  background-color: var(--gold);
  color: var(--white);
  padding: 6px 16px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 24px;
  border-radius: 4px;
}

.point-item { margin-bottom: 24px; }
.point-item h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--navy);
}

.key-message {
  font-weight: 700;
  color: var(--navy-2);
  border-top: 1px solid #eee;
  padding-top: 20px;
}

@media (min-width: 1024px){
  #lesson .container,
  #round .container{
    max-width: 1200px !important;
  }

  .lesson-layout{
    display: grid;
    grid-template-columns: minmax(420px, 520px) 1fr;
    gap: 56px;
    padding: 48px 56px;
    align-items: center;
  }
}

/* =========================================================
   Round
   ========================================================= */
#round.section{ background-color: var(--ivory); }

.round-layout {
  background: var(--white);
  padding: 48px 56px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  gap: 40px;
}

.round-image { flex: 1; }
.round-image img {
  width: 100%;
  border-radius: 14px;
}

.round-info { flex: 1; }

.round-features li {
  font-size: 1.1rem;
  margin-bottom: 16px;
  font-weight: 600;
}

.caution-box {
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: center;

  padding: 10px 14px;
  background: rgba(201, 162, 77, 0.10);
  border: 1px solid rgba(201, 162, 77, 0.25);
  border-radius: 10px;
}

.caution-box .icon{
  color: var(--gold);
  font-weight: 700;
}

@media (min-width: 1024px){
  .round-layout{
    display: grid;
    grid-template-columns: minmax(420px, 520px) 1fr;
    gap: 56px;
    align-items: center;
  }

  .round-info{
    position: relative;
    padding-left: 28px;
    padding-top: 10px;
  }

  .round-info::before{
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 4px;
    background: var(--gold);
    border-radius: 4px;
    opacity: 0.9;
  }

  .round-info::after{
    content: "実戦＝判断（コース）";
    display: inline-block;
    margin-bottom: 18px;
    padding: 6px 16px;
    border-radius: 6px;
    background: rgba(201, 162, 77, 0.95);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    position: absolute;
    left: 28px;
    top: -44px;
  }
}

/* =========================================================
   MEC
   ========================================================= */
.mec-top-visual {
  max-width: 800px;
  margin: 0 auto 40px;
}

.section-intro {
  text-align: center;
  font-size: 1.1rem;
  margin: 0 auto 50px;
  max-width: 800px;
}

.mec-features-list {
  display: grid;
  gap: 24px;
  margin-bottom: 60px;
}

.mec-feat-item {
  background: rgba(255,255,255,0.05);
  padding: 24px;
  border-radius: 8px;
  border-left: 4px solid var(--gold);
}

.mec-feat-item h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--ivory);
}

.mec-feat-item p {
  font-size: 0.95rem;
  opacity: 0.9;
  line-height: 1.6;
}

.mec-spot-lesson {
  background-color: rgba(255,255,255,0.1);
  border: 1px solid var(--gold);
  padding: 40px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  border-radius: 8px;
}

.spot-price {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 16px 0;
}

.highlight-text {
  color: var(--gold);
  font-weight: 700;
  margin-top: 16px;
}

/* =========================================================
   Value & Future
   ========================================================= */
.text-content-block {
  max-width: 900px;
  margin: 0 auto;
}

.block-lead {
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--navy);
}

.block-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.col h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

.future-list-text li { margin-bottom: 30px; }
.future-list-text strong {
  font-size: 1.2rem;
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
}
.future-list-text p { color: var(--muted); }

/* =========================================================
   Pricing
   ========================================================= */
.pc-only-table { display: block; }
.sp-only-cards { display: none; }

.price-note {
  text-align: right;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.pricing-table th,
.pricing-table td {
  padding: 16px 12px;
  border: 1px solid #E0E0E0;
  text-align: center;
  font-size: 0.95rem;
}

.pricing-table th {
  background-color: var(--navy);
  color: var(--white);
  font-weight: 500;
}

.pricing-table .plan-name {
  text-align: left;
  background-color: var(--navy-2);
  color: var(--gold);
  font-weight: 700;
}

.table-footnote {
  text-align: center;
  font-size: 0.85rem;
  margin-top: 16px;
  color: var(--muted);
}

.pricing-cta-area {
  text-align: center;
  margin-top: 32px;
}

/* Mobile Pricing Cards */
.pricing-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.price-card {
  background: var(--white);
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.price-card.recommended {
  border: 2px solid var(--gold);
  position: relative;
}

.pc-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--gold);
  color: var(--white);
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 700;
}

.pc-header {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.pc-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
  padding-bottom: 12px;
}

.pc-details dl {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.pc-details dt { color: var(--muted); }
.pc-details dd { font-weight: 500; }

/* =========================================================
   Flow
   ========================================================= */
.flow-steps {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 900px;
  margin: 0 auto;
}

.step-card {
  text-align: center;
  flex: 1;
  padding: 0 20px;
}

.step-label {
  font-family: var(--font-en);
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.step-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--white);
}

.step-card h3 span {
  font-size: 0.85rem;
  font-weight: 400;
}

.step-desc {
  font-size: 0.9rem;
  opacity: 0.7;
}

.step-connector {
  width: 60px;
  height: 1px;
  background-color: var(--gold);
  margin-top: 50px;
  opacity: 0.5;
}

/* =========================================================
   FAQ
   ========================================================= */
.accordion-item { border-bottom: 1px solid #eee; }

.accordion-header {
  width: 100%;
  padding: 24px;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background 0.3s;
}

.accordion-header:hover { background-color: #f9f9f9; }

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background-color: #fafafa;
}

.accordion-content p {
  padding: 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* =========================================================
   Closing
   ========================================================= */
.close-text { margin-bottom: 48px; }
.close-cta  { margin-top: 0; }

/* =========================================================
   Footer
   ========================================================= */
footer {
  padding: 60px 0 40px;
  background-color: var(--navy);
  color: var(--white);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer-logo img {
  filter: brightness(0) invert(1) sepia(1) saturate(3) hue-rotate(5deg) brightness(0.85);
}

.social-links {
  display: flex;
  gap: 24px;
}

.social-links a {
  font-size: 2rem;
  color: var(--white);
  opacity: 0.8;
  transition: opacity 0.3s ease;
}
.social-links a:hover { opacity: 1; }

.copyright {
  opacity: 0.5;
  font-size: 0.8rem;
}

/* =========================================================
   MESSAGE（牟田メッセージ）※ここは“1本化”
   ========================================================= */
#message.section{
  padding: 90px 0;
}

#message .container{
  max-width: 1200px;
}

/* PC: 左=写真 / 右=本文 */
#message .message-layout{
  display: grid;
  grid-template-columns: minmax(420px, 560px) 1fr;
  gap: 56px;
  align-items: center;
}

/* 写真：上に視線を寄せてバランスを安定 */
#message .message-photo{
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

#message .message-photo img,
#message .message-photo picture img{
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 25%;
  display: block;
}

#message .message-body{
  max-width: 640px;
}

#message .message-body p{
  line-height: 2.05;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

/* 署名：右下で終わる（PC） */
#message .message-signature{
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

#message .message-signature img{
  width: clamp(180px, 22vw, 260px);
  height: auto;
  display: block;
}

/* JSが効かない時でも必ず表示（安全設計） */
#message .message-photo,
#message .message-body{
  opacity: 1;
  transform: none;
}

/* JSが有効な時だけ隠して → inviewで出す */
html.js-enabled #message:not(.is-visible) .message-photo,
html.js-enabled #message:not(.is-visible) .message-body{
  opacity: 0;
  transform: translateY(24px);
}

html.js-enabled #message.is-visible .message-photo,
html.js-enabled #message.is-visible .message-body{
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* =========================================================
   Responsive: NAV only (<=900px)
   - “少し狭いPC”でもヒーローはPCのまま
   - ナビだけハンバーガー＋オフキャンバスにする
   ========================================================= */
@media (max-width: 900px) {
  .hamburger{
    display: flex;
    position: relative;
    z-index: 2001;
    pointer-events: auto;
  }

  #nav-menu{
    position: fixed;
    top: var(--header-h);
    right: -100%;
    width: 100%;
    height: calc(100vh - var(--header-h));
    background-color: var(--white);
    display: block;
    transition: right 0.3s ease;
    z-index: 2000;
    border-top: 1px solid #eee;
    pointer-events: auto;
  }

  #nav-menu.open { right: 0; }

  #nav-menu ul {
    flex-direction: column;
    gap: 22px;
    padding-top: 32px;
  }

  #nav-menu a {
    font-size: 1.05rem;
    color: var(--navy);
  }

  .header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 12px;
  }
}

/* =========================================================
   Responsive: SP (<=768px)
   - ここで初めて“スマホ用の見た目”に切り替える
   ========================================================= */
@media (max-width: 768px) {

  /* Hero（SPは画像差替＋中央寄せ） */
  .hero { padding-top: 60px; }

  .hero-bg {
    background-image: url('assets/SP-image/hero-sp.webp');
    background-position: center top;
    opacity: 0.9;
  }

  .no-webp .hero-bg {
    background-image: url('assets/SP-image/hero-sp.png');
  }

  .hero-content {
    position: relative;
    z-index: 10;
    margin-top: 30vh;
    width: min(620px, 86vw);
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    background: rgba(15, 26, 43, 0.22);
  }

  .hero-content h1 {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 18px;
  }

  .sub-lead {
    font-size: 0.95rem;
    line-height: 1.8;
  }

  .pc-only { display: none; }

  /* About / Lesson / Round */
  .about-container {
    flex-direction: column;
    gap: 32px;
  }

  .about-text .section-title {
    align-items: center;
    text-align: center;
  }
  .about-text .section-title.text-left {
    align-items: center;
  }

  .lesson-layout {
    flex-direction: column;
    padding: 30px 20px;
    gap: 24px;
  }

  .round-layout{
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 30px 20px;
  }

  /* 2カラム → 1カラム */
  .philosophy-grid,
  .block-cols {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Pricing */
  .pc-only-table { display: none; }
  .sp-only-cards { display: flex; }

  /* Flow（縦タイムライン） */
  .flow-steps {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-left: 16px;
  }

  .step-card {
    text-align: left;
    padding: 0 0 36px 28px;
    position: relative;
    border-left: 1px solid rgba(201, 162, 77, 0.6);
  }

  .step-card:last-child { border-left: 1px solid transparent; }

  .step-card::before {
    content: "";
    position: absolute;
    left: -5px;
    top: 0;
    width: 10px;
    height: 10px;
    background-color: var(--gold);
    border-radius: 50%;
  }

  .step-connector { display: none; }

  /* MESSAGE：SPは縦積み＋署名は中央 */
  #message.section{
    padding: 70px 0;
  }

  #message .message-layout{
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
  }

  #message .message-body{ max-width: 100%; }

  #message .message-signature{
    justify-content: center;
  }

  #message .message-signature img{
    width: min(240px, 70vw);
  }
}

/* =========================================================
   Voice (お客様の声)
   ========================================================= */
.voice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.voice-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 28px;
  border-left: 4px solid var(--gold);
}

.voice-meta {
  margin-bottom: 14px;
}

.voice-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
  margin-bottom: 4px;
}

.voice-attr {
  font-size: 0.82rem;
  opacity: 0.6;
}

.voice-text {
  font-size: 0.95rem;
  line-height: 1.85;
  opacity: 0.9;
}

/* =========================================================
   Nav Social (mobile menu内SNS)
   ========================================================= */
.nav-social {
  display: none;
}

/* =========================================================
   Button outline variant
   ========================================================= */
.btn-gold-outline {
  background-color: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}

.btn-gold-outline:hover {
  background-color: var(--gold);
  color: var(--white);
}

.close-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.pricing-cta-area .btn {
  margin-top: 16px;
}

/* =========================================================
   SP utility
   ========================================================= */
.sp-only { display: none; }

/* =========================================================
   Pricing table overflow（念のため）
   ========================================================= */
@media (max-width: 768px) {
  .pricing-table-wrapper { overflow-x: auto; }
  .pricing-table { min-width: 900px; }

  .voice-grid {
    grid-template-columns: 1fr;
  }

  .sp-only { display: block; }

  .nav-social {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 24px 0;
    border-top: 1px solid #eee;
    margin-top: 20px;
  }

  .nav-social a {
    font-size: 1.5rem;
    color: var(--navy);
    opacity: 0.7;
  }

  .nav-social a:hover {
    opacity: 1;
  }
}
