/* newborn.html ページ固有スタイル（HTML内<style>から移設） */

/* ==========================================================================
        ニューボーンフォト・リニューアル追加CSS（カード・Q&A・共通化）
        ========================================================================== */

     /* ページ全体のはみ出し・右側空白防止 */
     html, body {
       overflow-x: hidden;
     }

     /* セットプラン・カードレイアウトセクション */
     .nb-plan-section {
       padding: 60px 20px;
       background-color: #fcfbfa; /* 統一感のある優しいニュアンス背景 */
     }
     .nb-plan-section .section-title {
       text-align: center;
       font-size: 1.8rem;
       color: #4a4643;
       margin-bottom: 40px;
       position: relative;
       font-weight: bold;
     }
     .nb-plan-section .section-title::after {
       content: '';
       display: block;
       width: 40px;
       height: 2px;
       background-color: #d4c4b7;
       margin: 15px auto 0;
     }
     .nb-card-grid {
       display: flex;
       flex-wrap: wrap;
       gap: 30px;
       max-width: 1100px;
       width: 100%;
       margin: 0 auto;
       justify-content: center;
       box-sizing: border-box;
     }
     .nb-card {
       background: #fff;
       border-radius: 12px;
       box-shadow: 0 4px 15px rgba(165, 155, 145, 0.12);
       overflow: hidden;
       width: calc(33.333% - 20px);
       max-width: 100%;
       box-sizing: border-box;
       min-width: 0;
       display: flex;
       flex-direction: column;
       transition: transform 0.3s ease, box-shadow 0.3s ease;
     }
     .nb-card:hover {
       transform: translateY(-5px);
       box-shadow: 0 8px 25px rgba(165, 155, 145, 0.22);
     }

/* ==========================================================================
        Splide カード内表示カスタマイズ（矢印なし・サムネイル修正版）
        ========================================================================== */
        .nb-card-slider-wrap {
       width: 100%;
       padding: 10px 10px 0 10px;
       background: #fff;
       box-sizing: border-box;
     }

     .nb-card .splide {
       margin: 0 0 15px 0 !important;
       position: relative;
       max-width: 100%;
       box-sizing: border-box;
     }

     .nb-card .splide__slide img {
       width: 100%;
       max-width: 100%;
       height: 220px;
       object-fit: cover;
       border-radius: 6px;
       display: block;
     }

     /* サムネイル（ドットインジケーター）を画像化して並べる */
     .nb-card .splide__pagination {
       position: relative;
       bottom: auto;
       margin: 10px 0 0 0 !important;
       padding: 0;
       display: flex;
       justify-content: center;
       gap: 6px;
     }

     .nb-card .splide__pagination li {
       display: inline-block;
       margin: 0 !important;
       width: 50px;
       height: 35px;
     }

     /* ページネーションのボタンをサムネイル画像に置き換える指定 */
     .nb-card .splide__pagination__page {
       width: 100% !important;
       height: 100% !important;
       border-radius: 3px !important;
       border: 2px solid transparent !important;
       margin: 0 !important;
       padding: 0 !important;
       background-size: cover !important;
       background-position: center !important;
       background-repeat: no-repeat !important;
       opacity: 0.6;
       transition: border-color 0.2s, opacity 0.2s;
     }

     /* アクティブなサムネイルのハイライト */
     .nb-card .splide__pagination__page.is-active {
       opacity: 1 !important;
       border-color: #c5a059 !important;
       transform: none !important;
     }
     /* カード内テキストコンテンツ */
     .nb-card-content {
       padding: 24px;
       display: flex;
       flex-direction: column;
       flex-grow: 1;
       min-width: 0;
       box-sizing: border-box;
     }
     .nb-card-title {
       font-size: 1.35rem;
       color: #333;
       margin: 0 0 12px 0;
       font-weight: bold;
       display: flex;
       justify-content: space-between;
       align-items: baseline;
       border-bottom: 2px solid #f3ece7;
       padding-bottom: 8px;
     }
     .nb-card-title em {
       font-style: normal;
       color: #b86f52; /* 気品ある価格カラー */
       font-size: 1.45rem;
     }
     .nb-card-features {
       list-style: none;
       padding: 0;
       margin: 0 0 16px 0;
       background: #faf8f6;
       padding: 10px 14px;
       border-radius: 6px;
     }
     .nb-card-features li {
       font-size: 0.88rem;
       color: #666;
       margin-bottom: 6px;
       padding-left: 18px;
       position: relative;
     }
     .nb-card-features li:last-child {
       margin-bottom: 0;
     }
     .nb-card-features li::before {
       content: '✓';
       position: absolute;
       left: 0;
       color: #b86f52;
       font-weight: bold;
     }
     .nb-card-text {
       font-size: 0.88rem;
       color: #555;
       line-height: 1.6;
       margin: 0 0 12px 0;
     }
     .nb-card-sub {
       font-size: 1rem;
       color: #555;
       font-weight: bold;
       margin: 4px 0 8px 0;
       color: #b86f52;
     }
     .nb-card-detail-btn {
       display: inline-block;
       margin-top: auto;
       padding: 10px 18px;
       background-color: #f5ac3c;
       color: #fff;
       text-decoration: none;
       border-radius: 6px;
       font-size: 0.88rem;
       font-weight: bold;
       text-align: center;
       transition: background-color 0.2s ease;
     }
     .nb-card-detail-btn:hover {
       background-color: #e09935;
       color: #fff;
     }

     /* プレゼント特典カード（横型から統一） */
     .nb-card.gift-card {
       width: 100%;
       max-width: 1100px;
       margin-top: 15px;
       background: #fffcf7;
       border: 1px solid #f3ece7;
     }
     .nb-card.gift-card .nb-card-title {
       color: #b86f52;
       border-bottom-color: #ebdcd3;
     }
     .nb-card.gift-card .gift-img-box {
       width: 100%;
       height: 240px;
       overflow: hidden;
     }
     .nb-card.gift-card .gift-img-box img {
       width: 100%;
       height: 100%;
       object-fit: cover;
     }

     /* 七五三サイトに合わせた洗練されたQ&Aデザイン */
     .question-section {
       background-color: #fff;
       padding: 60px 20px;
     }
     .question-section .qa-container {
       max-width: 900px;
       margin: 0 auto;
     }
     .question-section h2 {
       text-align: center;
       font-size: 1.8rem;
       color: #4a4643;
       margin-bottom: 40px;
       font-weight: bold;
     }
     .question-section dl {
       margin: 0;
     }
     .question-section dt {
       position: relative;
       font-size: 1.05rem;
       font-weight: bold;
       color: #333;
       background-color: #f9f6f3;
       padding: 16px 20px 16px 55px;
       border-radius: 8px;
       margin-top: 20px;
       line-height: 1.5;
     }
     .question-section dt::before {
       content: "Q";
       position: absolute;
       left: 20px;
       top: 50%;
       transform: translateY(-50%);
       font-size: 1.4rem;
       font-weight: bold;
       color: #b86f52;
       font-family: 'Helvetica Neue', Arial, sans-serif;
     }
     .question-section dd {
       position: relative;
       font-size: 0.95rem;
       color: #555;
       line-height: 1.7;
       margin: 0;
       padding: 15px 20px 15px 55px;
     }
     .question-section dd::before {
       content: "A";
       position: absolute;
       left: 20px;
       top: 13px;
       font-size: 1.4rem;
       font-weight: bold;
       color: #a89484;
       font-family: 'Helvetica Neue', Arial, sans-serif;
     }

     /* スタジオ・ご自宅出張の料金セクション：縦型写真を中央に配置 */
     .media-block.is-detail.is-reverse .photo {
       display: flex;
       justify-content: center;
       align-items: center;
       text-align: center;
     }
     .media-block.is-detail.is-reverse .photo img {
       display: block;
       width: auto;
       max-width: 100%;
       height: auto;
       max-height: min(50vh, 420px);
       margin-left: auto;
       margin-right: auto;
       object-fit: contain;
     }

/* ==========================================================================
   Responsive（992px以上=PC横長 / 991px以下=2列 / 767px以下=1列）
   ========================================================================== */
@media (min-width: 992px) {
  .nb-card.nb-card-wide {
    width: calc(66.666% - 20px);
    flex-direction: row;
    align-self: center;
  }
  .nb-card.nb-card-wide .nb-card-slider-wrap {
    width: 48%;
    flex-shrink: 0;
    padding: 15px 0 15px 15px;
  }
  .nb-card.nb-card-wide .nb-card-content {
    width: 52%;
    flex: 1;
    min-width: 0;
    justify-content: center;
    padding: 20px 24px 24px 16px;
  }
  .nb-card.nb-card-wide .flexslider .slides img,
  .nb-card.nb-card-wide .splide__slide img {
    height: 260px;
  }
}

@media (min-width: 768px) {
  .media-block.is-detail.is-reverse .photo {
    justify-content: center;
    align-items: center;
  }
  .media-block.is-detail.is-reverse .photo img {
    max-height: min(50vh, 480px);
  }
}

@media (max-width: 991px) {
  .nb-card {
    width: calc(50% - 15px);
  }
  .nb-card.nb-card-wide {
    width: calc(50% - 15px);
    flex-direction: column;
  }
}

@media (max-width: 767px) {
  .nb-plan-section,
  .question-section {
    padding: 40px 15px;
  }
  .nb-card-grid {
    gap: 25px;
  }
  .nb-card {
    width: 100% !important;
  }
  .nb-card .flexslider .slides img {
    height: 200px !important;
  }
  .question-section dt {
    font-size: 0.95rem;
    padding-left: 45px;
  }
  .question-section dt::before {
    left: 15px;
  }
  .question-section dd {
    font-size: 0.9rem;
    padding-left: 45px;
  }
  .question-section dd::before {
    left: 15px;
  }
  .media-block.is-detail.is-reverse .photo {
    min-height: auto;
    padding: 0 20px 24px;
  }
  .media-block.is-detail.is-reverse .photo img {
    max-height: 360px;
  }
}
