/* ==========================================================================
   Responsive Styles (Break Point: 768px / 1024px)
   ========================================================================== */

/* タブレット・PC共通の最大幅設定の書き換え */
#about .inner,
#service .inner,
#access .inner,
footer .inner {
  width: 92%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.main_message_box.sp_only {
  display: none;
}

@media screen and (max-width: 1400px) {
  #contact .inner img {
    width: 60%;
    object-fit: cover;
  }
}

/* --- 1024px以下での微調整 (タブレット向け) --- */
@media screen and (max-width: 1024px) {
  /* タブレットではカーテン非表示（PCのみ表示） */
  .splash_overlay {
    display: none !important;
  }

  main {
    overflow-x: hidden;
    width: 100%;
  }

  #hero_trigger,
  #about {
    width: 100%;
    max-width: 100%;
  }

  #about .inner {
    width: 90%;
  }

  #service .inner,
  #access .inner {
    width: 90%;
  }


  .service_bg {
    height: 100%;
  }

  #service .inner {
    margin: 0;
    width: 95%;
  }

  .main_message_box.sp_only {
    display: none;
  }

  .large_txt {
    font-size: 24px;
  }

  .about_contents_txt p {
    font-size: 18px;
  }

  #service .inner {
    padding-right: 50px;
  }

  #service .inner:before {
    height: 100%;
  }

  #service .inner img {
    height: fit-content;
  }

  #service .inner dl div dt,
  #service .inner dl div dd {
    font-size: 14px;
    padding: 5px;
  }

  #service .inner dl div dt {
    width: 100px;
  }

  #access .inner dl div dt {
    width: 80px;
    font-size: 14px;
  }

  #access .inner dl div dd {
    width: calc(100% - 100px);
    font-size: 14px;
  }

  #access .inner {
    margin: 0 auto 100px;
  }

  .access_map_link a,
  .contact_tel a {
    width: 300px;
    height: 60px;
  }

  #contact .inner {
    gap: 30px;
  }

  #contact .inner img {
    width: 45%;
    object-fit: cover;
  }

  .contact_contents_txt {
    width: 45%;
  }

  .pc_only {
    display: flex;
  }

  .main_title {
    font-size: 5vw;
  }
}

/* --- 768px以下のスタイル (スマホ向け) --- */
@media screen and (max-width: 767px) {

  /* ページ内リンク（#about等）でヘッダーと被らないようにする */
  :root {
    --header-height: 80px;
  }

  html {
    scroll-padding-top: calc(var(--header-height) + 12px);
  }

  #about,
  #service,
  #access,
  #contact {
    scroll-margin-top: calc(var(--header-height) + 12px);
  }

  /* アニメーション統合：スマホは固定・Pinなしで自然スクロール */
  #about,
  #service {
    height: auto;
    display: block;
    padding: 70px 5%;
  }

  /* スマホではGSAPでフェードインするため、初期は非表示のまま（baseのopacity:0を維持） */

  .service_bg {
    display: block;
    height: 100%;
    width: 95%;
  }

  .map_img {
    position: relative;
    width: 100%;
    height: 300px;
  }

  /* .access_contents_txt のフェードインはGSAPで行う（初期状態はbaseのまま） */

  #main_header {
    z-index: 1000;
    background: rgba(255, 255, 255, 0.5);
  }

  .main_message_box.sp_only {
    display: flex;
  }

  .pc_only {
    display: none;
  }

  /* ヘッダー */
  #main_header {
    padding: 15px 20px;
  }

  .header_logo img {
    width: 120px;
  }

  .header_tel {
    display: none;
    /* スマホではヘッダーの電話番号を隠す（誤操作防止） */
  }

  /* ヒーロー（メインビジュアル）をスライド表示に */
  .base_bg_container {
    display: none;
  }

  .hero_slider {
    display: flex;
  }

  .hero_container {
    height: 100vh;
  }

  .main_message_box {
    text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.9);
  }

  /* メインタイトル */
  .main_title {
    font-size: 6vw;
    text-align: center;
    line-height: 1.8;
  }

  .main_title span::before {
    width: 70%;
    left: 15%;
    bottom: -50%;
  }

  .line02::before {
    width: 120% !important;
    left: 0 !important;
  }

  .main_title .line02 {
    margin-left: 0;
    margin-top: 10px;
  }

  .inner h3 {
    margin-bottom: 40px;
  }

  .inner h3 .title_jp {
    font-size: 12px;
  }

  .inner h3 .title_pink {
    font-size: 36px;
  }

  .open_date_box {
    width: 90%;
    bottom: 5%;
  }

  .open_date_box_inner {
    flex-direction: column;
    gap: 10px;
  }

  .open_date_box_left {
    width: 100%;
    text-align: center;
  }

  .open_date_box_left h3 {
    font-size: 18px;
    letter-spacing: 0.3em;
  }

  .open_date_box_left h3 span {
    letter-spacing: 0.42em;
  }

  .open_date_box_left p {
    font-size: 12px;
    padding: 0 10px;
    display: inline-block;
  }

  .open_date_box_right {
    width: 100%;
    text-align: center;
  }

  .open_date_box_right p:first-child {
    font-size: 18px;
  }

  .open_date_box_right p:last-child {
    font-size: 42px;
    letter-spacing: 0.42em;
    margin-left: 0.3em;
  }

  .hero_vector {
    bottom: -20px;
  }

  /* Aboutセクション */
  #about {
    margin: 30px 0 0;
    padding: 70px 5% 50px;
  }

  #about .inner {
    padding: 60px 20px 40px;
    width: 100%;
  }

  #about .inner h3 {
    width: 80%;
    font-size: 28px;
    top: -40px;
    padding: 20px 0;
    margin-bottom: 0;
  }

  .large_txt {
    font-size: 20px;
    line-height: 1.6;
  }

  .about_contents_txt {
    font-size: 16px;
    margin-top: 20px;
  }

  .about_contents_txt p {
    margin-bottom: 10px;
    text-align: justify;
    font-size: 16px;
  }

  .about_contents_txt p:first-child {
    text-align: center;
  }

  /* Serviceセクション */
  #service {
    padding: 0;
    margin: 50px 0;
  }

  #service .inner {
    flex-direction: column-reverse;
    /* 縦並び */
    gap: 30px;
    padding: 30px 5%;
  }

  #service .inner img,
  #service .inner div {
    width: 100%;
  }

  #service .inner:before {
    height: 100%;
    /* 背景色を全体に */
    left: -4%;
    width: 108%;
  }

  #service .inner dl div {
    flex-direction: column;
    margin-bottom: 10px;
  }

  #service .inner dl div dt {
    width: 40%;
    font-size: 0.9rem;
  }

  #service .inner dl div dd {
    width: 100%;
    font-size: 0.95rem;
  }

  /* Accessセクション */

  #access {
    margin: 100px 0 100px;
  }

  #access .inner {
    display: flex;
    flex-direction: column;
    margin-bottom: 50px;
    width: 100%;
  }

  .access_contents_txt {
    width: 100%;
    margin-bottom: 30px;
  }

  #access .inner dl div dd {
    width: calc(100% - 100px);
  }

  #access .inner .map_img {
    position: relative;
    /* 絶対配置を解除 */
    width: 100%;
    height: 300px;
    right: auto;
    top: auto;
  }

  .access_map_link a {
    width: 100%;
    /* ボタンを横いっぱいに */
    font-size: 1.2rem;
    height: 50px;
  }

  /* Contactセクション */
  #contact .inner {
    flex-direction: column;
    height: 100%;
  }

  #contact .inner img {
    width: 100%;
    object-fit: cover;
  }

  .contact_contents_txt {
    padding: 40px 20px;
    text-align: center;
    width: 100%;
    text-align: justify;
  }

  .contact_tel a {
    width: 100%;
    height: 50px;
    margin-left: auto;
    margin-right: auto;
  }

  .contact_tel a img {
    width: 30px !important;
  }

  /* Footer */
  footer .inner {
    flex-direction: column;
    gap: 40px;
  }

  footer .inner h2 img {
    width: 150px;
  }

  .footer_tel {
    flex-direction: column;
    gap: 10px;
  }

  footer nav ul {
    gap: 20px;
  }
}