@charset "UTF-8";

/************************************
** HOME - lead (テキスト主体・エレガントスタイル)
************************************/
.lead {
  text-align: center;
  padding-block: clamp(40px, 5vw, 70px);
  background-color: #faf8f5; /* 柔らかいオフホワイト系背景 */

  .wrap {
    max-width: 900px;
    margin-inline: auto;
    padding-inline: 20px;
  }

  /* メインキャッチコピー */
  .p1 {
    font-size: clamp(20px, 2vw + 12px, 28px);
    font-weight: 700;
    line-height: 1.5;
    color: #333;
    margin-block-end: 20px;
    letter-spacing: 0.05em;

    /* 「女性専用マシンピラティス」の下線グラデーション */
    span {
      display: inline-block;
      color: #b89c7d;
      background: linear-gradient(transparent 70%, #f0e6dc 70%);
    }
  }

  /* 特徴テキスト（ドット区切り） */
  .p2 {
    font-size: clamp(14px, 1vw + 10px, 17px);
    color: #666;
    line-height: 1.8;
    margin: 0;

    span {
      display: inline-block;
      position: relative;

      /* 単語の間のドット「・」をつける */
      &:not(:last-child)::after {
        content: "・";
        margin-inline: 8px;
        color: #c5b5a4;
      }

      /* 「体験レッスン今なら無料」の強調 */
      &.highlight {
        color: #d94b68;
        font-weight: 700;
        /* ピンクの蛍光ペン風マーカー */
        background: linear-gradient(transparent 60%, #fde2e7 60%);
      }
    }
  }
}

/************************************
** news
************************************/
.news {
  padding-bottom: 60px;
  .heading {
    margin-bottom: 60px;
  }
  .items {
    width: 1000px;
    margin: 0 auto;
    margin-bottom: 60px;
    .item {
      display: flex;
      align-items: start;
      border-top: 1px solid #e5e7eb;
      padding-top: 30px;
      padding-bottom: 30px;
      /* 最後のアイテムの下に線を引く（ネスト位置を修正） */
      &:last-child {
        border-bottom: 1px solid #e5e7eb;
      }
      .post-meta {
        display: flex;
        align-items: center;
        width: 33%;
        .post-date {
          margin-right: 32px;
          padding-top: 1px;
          letter-spacing: 0.48px;
          line-height: 1.33;
          width: 130px;
        }
        .category {
          height: 24px;
          margin-right: 20px;
          background: #7d7572;
          color: #fff;
          text-align: center;
          span {
            display: block;
            width: 130px;
            background: var(--main-color); /* デフォルト背景色 */
            font-size: 11px; /* 必要に応じて調整 */
            line-height: 24px; /* 上下中央揃え用 */
          }
          a {
            color: #fff;
          }
        }
      }
      .post-title {
        width: auto;
        padding-top: 5px;
        font-size: 13px;
        letter-spacing: 0.52px;
        line-height: 1.31;
        a {
          color: #222;
        }
      }
    }
  }
  .link {
    text-align: center;
  }
}

/* --- レスポンシブ（スマホ用） --- */
@media screen and (max-width: 480px) {
  .news {
    padding-bottom: 30px;
    .wrap {
      padding: 30px 15px;
    }
    .items {
      width: auto;
      margin-bottom: 30px;
      .item {
        flex-direction: column;
        padding-top: 4%;
        padding-bottom: 6%;
        .post-meta {
          width: 100%;
          justify-content: space-between;
          margin-bottom: 10px;
          .post-date {
            margin-right: 32px;
            padding-top: 1px;
            letter-spacing: 0.48px;
            line-height: 1.33;
          }
          .category {
            margin-right: 0;
          }
        }
      }
    }
    .link a {
      font-size: 16px;
    }
  }
}

/************************************
** Studio Section (★画像高さ揃え & CSS Nesting)
************************************/
#studio {
  overflow: hidden;
  padding: 0 0 60px;

  .js-studio-slider {
    padding: 0 0 40px;
  }
  .studio-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition:
      transform 0.3s ease,
      opacity 0.3s ease;
    height: 100%; /* スライダー枠に合わせる */
    display: flex;
    flex-direction: column;
  }
  .studio-img {
    a {
      display: block;
      position: relative;
      overflow: hidden;
      aspect-ratio: 4 / 3; /* 比率を固定して高さを揃える */
      width: 100%;

      &::after {
        content: "+";
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: rgba(0, 0, 0, 0.6);
        color: #fff;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
      }

      &:hover {
        img {
          transform: scale(1.05);
        }
        &::after {
          opacity: 1;
        }
      }
    }
    img {
      width: 100%;
      height: 100%;
      object-fit: cover; /* サイズ違いをトリミングで吸収 */
      display: block;
      transition: transform 0.5s ease;
    }
  }

  .studio-comment {
    padding: 15px;
    flex-grow: 1; /* テキスト量に左右されず高さを一律にする */
    background: #fff;
  }

  /* プログレスバー */
  .swiper-pagination-progressbar {
    width: 80%;
    margin: 0 100px;
    bottom: 0;
    top: auto;
    background-color: #cccccc;
    height: 10px;

    .swiper-pagination-progressbar-fill {
      background: #636363;
    }
  }

  @media screen and (max-width: 767px) {
    .js-studio-slider {
      padding: 0 0 30px;
    }

    .studio-item {
      height: auto;
    }

    .swiper-pagination-progressbar {
      width: 100%;
      margin: 0;
    }
  }
}
/************************************
** program
************************************/
.program {
  .program-container {
    display: flex;
    gap: 60px;
    .program-nav {
      width: 30%;
      .program-nav__item {
        &:nth-child(7) {
          border-bottom: 2px solid #ccc;
        }
        .program-nav__btn {
          display: block;
          width: 100%;
          font-size: 24px;
          text-align: left;
          background: #fff;
          border: none;
          border-top: 2px solid #ccc;
          padding: 1em 0 1em 1em;
          position: relative;
          transition: all 0.7s ease;
          &::after {
            position: absolute;
            font-family: icomoon !important;
            content: "\e921" !important;
            top: 50%;
            transform: translateY(-50%);
            right: 10px;
          }
          &:hover {
            background: var(--main-color);
          }
        }
      }
    }
  }
  .swiper {
    width: 70%;
  }
}
@media screen and (max-width: 767px) {
  .program {
    .program-container {
      display: block;
      gap: 30px;
      .program-nav {
        width: auto;
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        margin-bottom: 30px;
        .program-nav__item {
          width: 48%;
          &:nth-child(6),
          &:nth-child(7) {
            border-bottom: 1px solid #ccc;
          }
          .program-nav__btn {
            display: block;
            width: 100%;
            font-size: 16px;
            background: transparent;
            border-top: 1px solid #ccc;
            padding: 10px;
          }
        }
      }
    }
    .swiper {
      width: auto;
    }
  }
}

/* ==================================================
   PRICE SECTION (Native CSS Nesting & Modern CSS)
   ================================================== */

/* 1. 初回体験バナー */
.price-trial-box {
  background: color-mix(in srgb, #fff5f7 90%, white);
  border: 2px dashed #e88b9d;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  margin-inline: auto;
  margin-block-end: 35px;
  max-width: 1000px;
  box-sizing: border-box;

  .trial-tag {
    display: inline-block;
    background: #e88b9d;
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    padding: 3px 12px;
    border-radius: 20px;
    margin-block-end: 8px;
  }

  .trial-title {
    font-size: clamp(18px, 2vw + 10px, 22px);
    font-weight: bold;
    margin: 0 0 5px;
    color: #333;

    .highlight {
      color: #d94b68;
      font-size: 1.1em;
    }
  }

  .trial-sub {
    margin: 0;
    font-size: 14px;
    color: #666;
  }
}

/* 2. 料金カードグリッド */
.price-card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-block-end: 30px;
}

.price-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 30px 20px 25px;
  flex: 1 1 300px;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-sizing: border-box;

  /* おすすめプラン強調 */
  &.is-popular {
    border: 2px solid #b89c7d;
    background: #faf8f5;
    
    @media (min-width: 769px) {
      transform: scale(1.02);
    }
  }

  .badge-recommend {
    position: absolute;
    inset-block-start: -14px;
    inset-inline-start: 50%;
    transform: translateX(-50%);
    background: #b89c7d;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 16px;
    border-radius: 20px;
    white-space: nowrap;
  }

  .card-head {
    text-align: center;
    margin-block-end: 15px;

    .plan-target {
      display: block;
      font-size: 12px;
      color: #888;
      margin-block-end: 4px;
    }

    .plan-name {
      font-size: clamp(20px, 1.5vw + 12px, 24px);
      font-weight: bold;
      margin: 0 0 4px;
      color: #222;
    }

    .plan-freq {
      display: block;
      font-size: 13px;
      color: #666;
    }
  }

  .card-price {
    text-align: center;
    padding-block: 15px;
    border-block: 1px dashed #e0e0e0;
    margin-block-end: 20px;

    .price-num {
      font-size: clamp(28px, 2vw + 16px, 34px);
      font-weight: bold;
      color: #111;
      font-family: system-ui, -apple-system, sans-serif;
    }

    .price-unit {
      font-size: 13px;
      color: #555;
      margin-inline-start: 4px;
    }
  }

  .plan-list {
    list-style: none;
    padding: 0;
    margin: 0;

    li {
      position: relative;
      padding-inline-start: 20px;
      font-size: 13px;
      line-height: 1.6;
      color: #444;
      margin-block-end: 8px;

      &::before {
        content: "✔";
        position: absolute;
        inset-inline-start: 0;
        inset-block-start: 0;
        color: #b89c7d;
        font-weight: bold;
      }
    }
  }
}

/* 3. CUSTOM 相互利用 */
.custom-cross-use {
  background: #2b2b2b;
  color: #fff;
  border-radius: 12px;
  padding: 25px 20px;
  text-align: center;
  margin-inline: auto;
  margin-block-end: 30px;
  max-width: 1000px;
  box-sizing: border-box;

  .cross-badge {
    display: inline-block;
    background: #b89c7d;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 3px 12px;
    border-radius: 4px;
    margin-block-end: 10px;
  }

  .cross-title {
    font-size: clamp(16px, 1.2vw + 10px, 20px);
    margin: 0 0 8px;
    color: #fff;
  }

  .cross-price {
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
    color: #ddd;

    .price-add {
      font-size: 1.3em;
      font-weight: bold;
      color: #f3c26b;
    }
  }
}

/* 4. 補足情報ボックス（初期費用 & 都度払い） */
.price-sub-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  max-width: 1000px;
  margin-inline: auto;

  .sub-info-box {
    flex: 1 1 300px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    text-align: center;

    .sub-info-header {
      background: #f7f7f7;
      padding: 10px 15px;
      font-size: 14px;
      font-weight: bold;
      color: #555;
      border-block-end: 1px solid #eee;
    }

    .sub-info-body {
      padding: 15px 20px;

      .sub-info-main {
        font-size: 18px;
        margin: 0 0 5px;
        color: #222;

        strong {
          font-size: 1.1em;
          color: #b89c7d;
        }
      }

      .sub-info-detail {
        font-size: 12px;
        color: #777;
        margin: 0;
      }
    }
  }
}

/* 5. レスポンシブ用ヘルパー */
.sp-only {
  display: block;

  @media (min-width: 769px) {
    display: none;
  }
}
/* ==================================================
   FAQ SECTION (JS不要・CSSのみでフワッと開閉)
   ================================================== */

/* 最新CSS: 高さが auto の要素も滑らかに遷移させる設定 */
:root {
  interpolate-size: allow-keywords;
}

.faq.fw {
  padding-block: clamp(30px, 4vw, 60px);

  .qa {
    max-width: 900px;
    margin-inline: auto;
    margin-block-end: 40px;

    .qa__block {
      list-style: none;
      padding: 0;
      margin: 0;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .qa__item {
      background: #fff;
      border: 1px solid #e5e5e5;
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);

      /* details タグ */
      .qa__details {
        width: 100%;

        /* 質問部分（クリックエリア） */
        .qa__head {
          display: flex;
          align-items: center;
          justify-content: space-between;
          padding: 18px 20px 18px 50px;
          font-size: clamp(15px, 1.2vw + 11px, 17px);
          font-weight: 600;
          color: #333;
          cursor: pointer;
          position: relative;
          line-height: 1.5;
          user-select: none;
          
          /* ブラウザ標準の三角矢印を非表示 */
          list-style: none;
          &::-webkit-details-marker {
            display: none;
          }

          /* Q アイコン */
          &::before {
            content: "Q";
            position: absolute;
            inset-inline-start: 20px;
            inset-block-start: 18px;
            font-size: 18px;
            font-weight: bold;
            color: #b89c7d;
          }

          /* 開閉矢印アイコン */
          &::after {
            content: "";
            display: block;
            flex-shrink: 0;
            width: 8px;
            height: 8px;
            margin-inline-start: 10px;
            border-inline-end: 2px solid #999;
            border-block-end: 2px solid #999;
            transform: rotate(45deg);
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
          }

          &:hover::after {
            border-color: #b89c7d;
          }
        }

        /* 開いている状態のアニメーション指定 */
        &[open] {
          .qa__head {
            color: #b89c7d;

            &::after {
              transform: rotate(-135deg);
              border-color: #b89c7d;
            }
          }

          /* 回答エリアを表示・アニメーション対象に */
          .qa__body {
            opacity: 1;
            transform: translateY(0);
          }
        }

        /* 回答部分（初期状態：閉じている時） */
        .qa__body {
          box-sizing: border-box;
          padding: 10px 20px 20px 50px;
          font-size: clamp(13px, 1vw + 10px, 15px);
          line-height: 1.7;
          color: #555;
          position: relative;
          border-block-start: 1px dashed #eee;

          /* フワッと開くアニメーションの設定 */
          opacity: 0;
          transform: translateY(-8px);
          transition: opacity 0.35s ease, transform 0.35s ease, display 0.35s allow-discrete;

          /* A アイコン */
          &::before {
            content: "A";
            position: absolute;
            inset-inline-start: 20px;
            inset-block-start: 10px;
            font-size: 18px;
            font-weight: bold;
            color: #e88b9d;
          }
        }

        /* 表示開始時の初期値を定義（@starting-style） */
        @starting-style {
          &[open] .qa__body {
            opacity: 0;
            transform: translateY(-8px);
          }
        }
      }
    }
  }

}