/* ===================================================================
   Base Styles & PC Styles
=================================================================== */

/* 基本設定 */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}
body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    overflow-x: hidden;
}

/* =================================================== */
/* ▼▼▼ タイトル画像 共通スタイル ▼▼▼ */
/* =================================================== */
.works-container .section-title-image ,
.data-container .section-title-image.data-title,
.sv-container .section-title-image,
.qa-body-container .section-title-image,
.job-body-container .section-title-image {
    height: 2.92vw; /* PC用の基準となる高さを指定 */
    min-height:1.8rem;
    text-align: center;
}
/* --- 全てのセクションタイトル内の画像スタイル --- */
.section-title-image img {
    height: 100%;
    width: auto;
    display: inline-block;
}
/* --- 各セクションのマージン（個別指定） --- */
.data-container .section-title-image.data-title { margin-bottom: 4rem; }
.sv-container .section-title-image { margin-bottom: 3rem; }
.qa-body-container .section-title-image { margin: 0 auto 3.75rem auto; }
.job-body-container .section-title-image { margin-bottom: 3rem; }

/* --- intro-container --- */
.intro-container {
    max-width: 1920px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    background-image: url('../image/bg/saiyo_main_01A.jpg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    height: 0;
    padding-top: 56.25%;
}
.intro-container .logo {
    position: absolute;
    top: 7.6%;
    left: 4.1%;
    width: 20.8%;
    max-width: 25rem;
    height: auto;
    object-fit: contain;
    z-index: 10;
}

.intro-header,
.main-catchcopy {
    display: none;
}

/* --- movie-container (YouTube) --- */
.movie-container {
    max-width: 1920px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    height: 0;
    padding-top: 37.5%;
    background-image: url('../image/bg/saiyo_main_01B.jpg');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center center;
    overflow: hidden;
}
.movie-container .youtube {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 41.66%;
    max-width: 50rem;
    height: auto;
    aspect-ratio: 16 / 9;
}
.movie-container .youtube iframe,
.movie-container .youtube img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    box-shadow: none;
}
.movie-container .youtube img {
    object-fit: cover;
    cursor: pointer;
    z-index: 2;
}
.movie-container .youtube .play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    background-color: #FF0000;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 3;
}
.movie-container .youtube .play-button-overlay:hover {
    background-color: #CC0000;
}
/* 再生ボタンのアイコン色を */
.movie-container .youtube .play-button-overlay svg {
    width: 60%;
    height: 60%;
    fill: white; /* ← この行が重要です */
}

/* --- works-container (工程タイムライン) --- */
.works-container .works-PC { display: block; width:100%; }
.works-container .works-SP { display: none; }
.works-container {
    max-width: 1920px;
    width: 100%;
    margin: 0 auto;
    height: auto;
    padding: 10rem 2% 8rem;
    box-sizing: border-box;
    background-image: url('../image/bg/saiyo_main_02.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center calc(50% - 1px);
    overflow-x: hidden;
    position: relative;
}
.works-container .section-title-image {
    position: absolute;
    top: 5rem;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    z-index: 5;
}
.works-container .section-title-image img {
    display: block;
}
.works-container .character-for-sp {
    display: none;
}
.character-container {
    position: absolute;
    width: 19.5vw;
    max-width: 374px;
    min-width: 200px;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
}
.character-container .character-image {
    width: 100%;
    height: auto;
    display: block;
}
.character-container.position-left {
    top: -25%;
    right: 126%;
    transform: translateY(20px);
}
.character-container.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.timeline {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}
.line-segment {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 10%;
    max-width: 150px;
    min-width: 100px;
    height: 0;
    background-color: #004098;
    z-index: 0;
    transition: height 0.3s ease, top 0.3s ease;
}
.works-PC .sections {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4.1vw;
}
.works-PC .sections .step {
    position: relative;
    height: auto;
    aspect-ratio: 1 / 1;
    width: 30%;
    min-width: 200px;
    max-width: 386px;
}
.works-PC .sections .step img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease;
    position: relative;
    top: 3vh;
}

.works-PC .sections .step img.pointer{
    cursor: pointer;
    filter: brightness(1);
}

.works-PC .sections .step img.pointer:hover {
    filter: brightness(1.15);
}

.additional-image {
    position: absolute;
    width: 120%;
    max-width: 480px;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
}
.additional-image img {
    width: 100%;
    height: auto;
    display: block;
}
.additional-image.right {
    top: 50%;
    left: 110%;
    transform: translate(20px, -50%);
}
.additional-image.left {
    top: 50%;
    right: 110%;
    transform: translate(-20px, -50%);
}
.additional-image.is-visible {
    opacity: 1;
    transform: translate(0, -50%);
}
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.popup img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    box-shadow: 0 0 25px rgba(0,0,0,0.5);
}
.close-popup {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: white;
    cursor: pointer;
    text-shadow: 0 0 5px black;
}
.loading-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    z-index: 1001;
}
@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* --- data-container --- */
.data-container {
    max-width: 1920px;
    width: 100%;
    margin: 0 auto;
    background-image: url('../image/bg/saiyo_main_03.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center top;
    padding: 5rem 2% 8rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.image-display-area {
    max-width: 74.375rem;
    width: 90%;
    margin: 0 auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0s linear 0.6s;
}
.image-display-area.visible {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}
.image-display-area img {
    display: block;
    width: 100%;
    height: auto;
}

/* --- sv-container (先輩の声) --- */
.sv-container .sv-for-PC { display: block; }
.sv-container .sv-for-mobile { display: none; }
.sv-container {
    max-width: 1920px;
    width: 100%;
    margin: 0 auto;
    background-image: url('../image/bg/saiyo_main_04.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    overflow: hidden;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5rem 2% 6rem;
}
.sv-container .image-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3%;
    width: 100%;
    max-width: 81.5625rem;
    margin: 0 auto;
}
.sv-container .image-pair {
    position: relative;
    cursor: pointer;
    width: 31%;
    max-width: 25rem;
}
.sv-container .image-a,
.sv-container .image-c {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    transition: opacity 0.5s ease-in-out;
}
.sv-container .image-c {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: 1;
}
.sv-container .image-pair:hover .image-a,
.sv-container .image-pair.is-active .image-a {
    opacity: 0;
}
.sv-container .image-pair:hover .image-c,
.sv-container .image-pair.is-active .image-c {
    opacity: 1;
}
.sv-container .button-wrapper {
    position: absolute;
    width: 100%;
    height: 66.66%;
    top: -11.11%;
    left: 0;
    z-index: 10;
    perspective: 1000px;
}
.sv-container .button-flipper {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease;
    transform-style: preserve-3d;
}
.sv-container .image-pair:hover .button-flipper,
.sv-container .image-pair.is-active .button-flipper {
    transform: rotateY(180deg);
}
.sv-container .image-b,
.sv-container .image-d {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
.sv-container .image-d {
    transform: rotateY(180deg);
}
.sv_popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}
.sv_popup-content {
    display: block;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    box-shadow: 0 0 25px rgba(0,0,0,0.5);
}
.sv_popup .close-button {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 30px;
    cursor: pointer;
    transition: color 0.3s;
    text-shadow: 0 0 5px black;
}
.sv_popup .close-button:hover,
.sv-popup .close-button:focus {
    color: #bbb;
}

/* --- qa-body-container (Q&A) --- */
.qa-body-container {
    width: 100%;
    background-color: #f9f9f9;
    position: relative;
    overflow: hidden;
    padding: 5rem 0 7.5rem;
}
.summary_qa-container {
    max-width: 70rem;
    width: 95%;
    margin: 0 auto;
    position: relative;
    box-sizing: border-box;
}
.qa-container {
    border-bottom: 1px solid #ccc;
    padding-bottom: 1em;
    margin-bottom: 1em;
    padding-left: 20px;
    padding-right: 20px;
}
.qa-container:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    margin-bottom: 0.5em;
    font-size: clamp(1rem, 0.9rem + 0.5vw, 1.5rem);
    font-weight: bold;
    text-indent: -1.2em;
    padding-left: 1.2em;
}
.question > div {
    flex-grow: 1;
    margin-right: 1em;
    color: #004098;
}
.toggle-button {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    box-sizing: content-box;
    font-weight: bold;
    border: none;
    flex-shrink: 0;
    cursor: pointer;
    background-color: #004098;
    transition: background-color 0.3s, color 0.3s;
}
.toggle-button.minus {
    background-color: #ffe100;
    color: #004098;
}
.answer {
    display: none;
    padding: 15px 15px 15px 1.2em;
    font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.125rem);
    margin-top: 0.625rem;
    color: #000;
    text-indent: -1.2em;
}

/* --- job-body-container (採用情報) --- */
.job-body-container {
    max-width: 1920px;
    width: 100%;
    margin: 0 auto;
    background-image: url('../image/bg/saiyo_main_06.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #000;
    font-size: 1.125rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5rem 0 8rem;
}
.job-body-container main{
    width: 100%;
    max-width: 62.5rem;
    margin: 0 auto;
}
.job-container {
    max-width: 71.875rem;
    width: 95%;
    margin: 0 auto;
    background-color: #fff;
    padding: 3.125rem 2% 5rem;
    box-sizing: border-box;
}
.job-details-table {
    border-collapse: collapse;
    width: 100%;
    border: none;
}
.job-details-table td {
    padding: 12px 15px;
    vertical-align: top;
    border: none;
}
.job-details-table .detail-label {
    border-right: 1px solid #000;
    padding: 0.625rem 1.25rem;
    width: 15%;
    min-width: 7.1875rem;
}
.job-details-table .first-detail-row .detail-label,
.job-details-table .first-detail-row .detail-content {
    padding-top: 0;
}
.job-details-table .last-detail-row .detail-label,
.job-details-table .last-detail-row .detail-content {
    padding-bottom: 0;
}
.job-details-table .detail-content {
    padding: 10px 0 10px 1.5em;
}
.job-hosoku {
    padding: 4.375rem 0.625rem 1.875rem;
    color: #004098;
    text-align: center;
    font-size: 1.25rem;
    font-weight: bold;
}
.button-area {
    text-align: center;
    padding-top: 1.25rem;
}
.button-3d_1,
.button-3d_2 {
    display: inline-flex;
    width: 25rem;
    height: 6.25rem;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    font-family: sans-serif;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    box-sizing: border-box;
    border-radius: 12px;
    transition: all 0.2s ease;
    user-select: none;
    cursor: pointer;
}
.button-3d_1 {
    background-color: #ffe100;
    color: #004098;
    border-bottom: 10px solid #d4b900;
}
.button-3d_2 {
    background-color: #004098;
    color: #ffffff;
    border-bottom: 10px solid #003175;
}
.button-3d_1:hover,
.button-3d_2:hover {
    transform: translateY(2px);
    border-bottom-width: 8px;
}
.button-3d_1:active,
.button-3d_2:active {
    transform: translateY(4px);
    border-bottom-width: 6px;
}
.no-break-word {
    white-space: nowrap;
}
.br-for-sp {
    display: none;
}
.br-for-pc {
    display: block;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media screen and (max-width: 1500px) {
    .additional-image.right {
        left: 105%;
    }
    .additional-image.left {
        right: 105%;
    }
}


/* ===================================================================
   SP Styles (max-width: 767px)
=================================================================== */

@media screen and (max-width: 767px) {
  body {
      overflow-x: hidden;
  }
  .intro-container,
  .movie-container,
  .works-container,
  .data-container,
  .sv-container,
  .qa-body-container,
  .job-body-container {
      width: 100%;
      height: auto;
      min-height: 0;
      padding-left: 15px;
      padding-right: 15px;
      box-sizing: border-box;
      overflow-x: hidden;
  }

  /* --- 全てのセクションタイトル画像に共通のスタイル (SP) --- */
  .works-container .section-title-image,
  .data-container .section-title-image.data-title,
  .sv-container .section-title-image,
  .qa-body-container .section-title-image,
  .job-body-container .section-title-image {
      height: 1.8rem; /* SP用の基準となる高さを指定 */
      width: auto;
      max-width: none;
      min-width: 0;
      margin-left: auto;
      margin-right: auto;
  }

  /* --- intro-container (SP) --- */
  .intro-container {
    background-image: url('../image/bg/saiyo_main_01A.jpg');
    background-size: contain;
    background-position: center center;
    height: 0;
    padding: 0;
    padding-top: 56.25%; /* PC版のアスペクト比を維持 */
    overflow: hidden; 
  }

  .intro-container .logo {
    top: 7.6%;
    left: 4.1%;
    width: 20.8%;
    max-width: 25rem;
  }

  /* --- movie-container (YouTube SP) --- */
  .movie-container {
    background-image: url('../image/bg/saiyo_main_01B.jpg');
    background-size: 100% 100%;
    background-position: center center;
    min-height: 0; /* SP用のmin-heightをリセット */
    padding-top: 37.5%; /* PC版のアスペクト比を維持 */
    height: 0;
  }
  .movie-container .youtube {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* PC版の中央揃え */
    width: 41.66%;
    max-width: 50rem;
  }
  .movie-container .youtube .play-button-overlay {
      width: 68px;
      height: 48px;
      border-radius: 12px;
  }
  .movie-container .youtube iframe {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      border: none;
  }

  /* --- works-container (SP) --- */
  .works-container .works-PC { display: none; }
  .works-container .works-SP { display: block; }
  .works-container {
      padding-top: 11.75rem; 
      padding-bottom: 0;
  }
  .works-content {
      padding: 0 5%;
  }
  .works-container .section-title-image {
      top: 2.25rem;
      margin-bottom: 0;
  }
  .timeline {
      position: relative;
      margin-top: 3.75rem;
  }
  .works-container .character-for-sp {
      display: block;
      position: absolute;
      top: -9rem; 
      left: 50%;
      transform: translateX(-50%);
      width: 220px;
      height: auto;
      z-index: 1;
  }
  .line-segment {
      width: 50px;
      max-width: none;
      min-width: 0; 
      z-index: 0;
  }
  .works-SP .sections {
      gap: 0;
      position: relative; /* z-indexを有効にするために必要 */
      z-index: 2;
  }
  .works-SP .sections .step {
      display: flex;
      flex-direction: column;
      align-items: center;
      width: 145px;
      margin: 0 auto 2.5rem;
      position: relative;
      height: auto;
      aspect-ratio: auto;
  }
  .works-SP .sections .step img[data-popup-image] {
      width: 145px;
      height: 145px;
      max-width: none;
      position: relative;
      top: 0;
  }
  .additional-image {
      display: none;
  }
  .loading-indicator {
      width: 40px;
      height: 40px;
  }

  /* --- data-container (SP) --- */
  .data-container {
      background-image: url('../image_SP/bg/saiyo_main_SP_03.jpg');
      background-size: cover;
      background-position: top center;
      padding: 2.25rem 15px 2.25rem; 
  }
  .data-container .section-title-image.data-title {
      margin-bottom: 40px;
  }
  .image-display-area {
      width: 90%;
      max-width: 250px;
      margin: 0 auto;
  }

  /* --- sv-container (先輩の声 SP) --- */
  .sv-container .sv-for-PC { display: none; }
  .sv-container .sv-for-mobile { display: block; }
  .sv-container {
      padding: 2.25rem 15px;
      background-image: url('../image_SP/bg/saiyo_main_SP_04.jpg');
      background-size: cover;
      background-position: top center;
      display: block;
  }
  .sv-container .section-title-image {
      margin-bottom: 30px;
  }
 .sv-container .image-container {
    display: flex; /* ← これを追加 */
    flex-direction: column;
    align-items: center;
    gap: 21px;
    padding: 0;
    margin-top: 0;
    width: 100%; /* ← 横幅も念のため指定 */
  }
  .sv-container .image-pair {
      width: 85%;
      max-width: 228px;
      height: auto;
      position: relative;
      margin: 0 auto;
      cursor: pointer;
  }
  .sv-container .image-pair::before {
      content: "";
      display: block;
      padding-top: 135%;
  }
  .sv-container .image-a,
  .sv-container .image-c,
  .sv-container .image-b,
  .sv-container .image-d {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      backface-visibility: hidden;
      transition: opacity 0.3s ease-in-out;
  }
  .sv-container .image-a, .sv-container .image-c { object-fit: contain; }
  .sv-container .image-b, .sv-container .image-d { object-fit: contain; }
  .sv-container .button-wrapper {
      position: absolute;
      width: 100%;
      height: calc(100% * (360 / 540));
      top: -31px;
      left: 0;
      z-index: 3;
      perspective: none;
      transform: none;
  }
  .sv-container .button-flipper,
  .sv-container .image-pair:hover .button-flipper,
  .sv-container .image-pair.is-active .button-flipper {
      transform-style: flat;
      transform: none;
  }
  .sv-container .image-d {
      transform: rotateY(0deg);
  }
.sv-container .image-pair .image-a,
  .sv-container .image-pair .image-b { opacity: 1; }
  .sv-container .image-pair .image-c,
  .sv-container .image-pair .image-d { opacity: 0; }

  /* タップ時(.is-active)の状態：フレーム(a,c)だけを切り替える */
  .sv-container .image-pair.is-active .image-a { opacity: 0; }
  .sv-container .image-pair.is-active .image-c { opacity: 1; }

  .sv_popup-content {
      max-width: 95%;
      max-height: 95%;
  }
   .sv_popup .close-button {
      top: 10px;
      right: 15px;
      font-size: 30px;
  }

  /* --- qa-body-container (Q&A SP) --- */
  .qa-body-container {
      padding: 2.25rem 0;
  }
  .qa-body-container .section-title-image {
      margin-bottom: 30px;
  }
  .summary_qa-container {
      width: 100%;
      padding: 0;
  }
  .qa-container {
      padding-left: 10px;
      padding-right: 10px;
  }

  .toggle-button {
      width: 20px;
      height: 20px;
      font-size: 16px;
      padding: 8px;
  }


  /* --- job-body-container (募集要項 SP) --- */
  .job-body-container {
      display: block;
      padding: 2.25rem 16px;
      position: relative;
  }
  .job-body-container .section-title-image {
    display: block;
    margin-bottom: 30px;
  }
  .job-body-container main {
      padding-top: 0;
  }
  .job-container {
      width: 100%;
      padding: 0 0 30px;
  }
  .job-details-table {
      font-size: 0.9rem;
      width: 100%;
  }
  .job-details-table tr {
      border-bottom: 1px solid #eee;
      display: block;
      margin-bottom: 15px;
      padding-bottom: 15px;
  }
  .job-details-table tr:last-child {
      border-bottom: none;
      margin-bottom: 0;
      padding-bottom: 0;
  }
  .job-details-table .detail-label,
  .job-details-table .detail-content {
      display: block;
      width: 100%;
      box-sizing: border-box;
      border-right: none;
      padding: 5px 0;
  }
  .job-details-table .detail-label {
      font-weight: bold;
      padding-bottom: 2px;
  }
  .job-details-table .detail-content {
      padding-top: 2px;
      padding-left: 0;
  }
  .job-hosoku {
      font-size: 0.95rem;
      padding: 30px 10px;
      line-height: 1.6;
  }
  .button-area {
      padding-top: 10px;
  }
  .button-3d_1, .button-3d_2 {
      width: 90%;
      max-width: 300px;
      height: 50px;
      font-size: 1rem;
      border-bottom-width: 6px;
      margin-bottom: 15px;
  }
  .button-3d_1:last-of-type,
  .button-3d_2:last-of-type {
      margin-bottom: 0;
  }
  .button-3d_1:hover, .button-3d_2:hover,
  .button-3d_1:active, .button-3d_2:active {
      transform: translateY(2px);
      border-bottom-width: 4px;
  }
  .br-for-pc{
    display: none;
  }
  .br-for-sp{
    display: block;
  }
}

/* ===================================================================
   Mobile-Only Styles (max-width: 480px)
=================================================================== */
@media screen and (max-width: 480px) {

  /* --- intro-container (480px以下で適用) --- */
  .intro-container {
      height: 100svh;
      height: 100vh;
      padding: 0;
      background-image: url('../image_SP/bg/saiyo_main_SP_01A.jpg');
      background-repeat: no-repeat;
      background-size: cover;
      background-position: center top;

      display: grid;
      grid-template-rows: auto auto 1fr; 
      grid-template-columns: 1fr;
      justify-items: start; /* 水平方向の配置を「左揃え」に変更 */
      align-content: start; /* 垂直方向の配置を「上から」に維持 */
  }

  /* PC用のロゴは完全に非表示に */
  .intro-container .logo {
      display: none;
  }


  .intro-header {
      grid-row: 1 / 2;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      padding-top: 2.5vh;
      padding-left: 2.5vw;
      gap: 5px; /* ロゴ画像とテキスト画像の間の隙間 */
  }

  /* ロゴ画像のスタイル */
  .intro-container .logo-img {
      width: 135px;
      height: auto;
  }
  .subtitle-img {
      width: 145px; 
      height: auto;
  }


  .intro-container .logo {
      top: 22px;
      left: 18px;
      width: 135px;
      height: auto;
      max-width: none; /* PC用のmax-widthをリセット */
  }

  /* --- movie-container (480px以下で適用) --- */
  .movie-container {
      background-image: url('../image_SP/bg/saiyo_main_SP_01B.jpg');
      min-height: 400px;
      padding: 0;
      height: auto;
  }
  .movie-container .youtube {
      top: 28px;
      left: 50%;
      transform: translateX(-50%);
      width: 85%;
      max-width: 320px;
  }
}

