* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Hina Mincho", serif;
}

ol {
  list-style: none;
}

main {
  text-align: left;
}

.content {
  margin: 64px auto;
}

/* =============ヘッダー===================== */

header {
  background-color: #001d67;
  height: 100px;
  display: flex;
}

h1 img {
  height: 80px;
  margin: 10px auto;
  padding: 10px 30px;
}

/* ==============================
パンくずリスト
=============================== */

.breadcrumb {
  display: flex;
  flex-wrap: nowrap;
  padding: 20px 30px;
  text-align: left;
}

.breadcrumb li {
  margin-right: 10px;
  font-size: 12px;
}

.breadcrumb a {
  margin-right: 10px;
  color: #00064d;
}

/* -----------------------
ハンバーガーメニュー
------------------------ */

.hamburger {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
  width: 48px;
  height: 48px;
  border: none;
  background: transparent;
  cursor: pointer;
  margin: 20px 30px;
  background-color: rgba(255, 255, 255, 0.5);
}

.hamburger__line {
  position: absolute;
  left: 11px;
  width: 26px;
  height: 2px;
  background-color: #333;
  transition: all 0.4s;
}

.hamburger__line:nth-of-type(1) {
  top: 14px;
}
.hamburger__line:nth-of-type(2) {
  top: 23px;
}
.hamburger__line:nth-of-type(3) {
  top: 32px;
}

/* メニューオープン時 */
.hamburger.active .hamburger__line:nth-of-type(1) {
  transform: translateY(9px) rotate(-45deg);
}
.hamburger.active .hamburger__line:nth-of-type(2) {
  opacity: 0;
}
.hamburger.active .hamburger__line:nth-of-type(3) {
  transform: translateY(-9px) rotate(45deg);
}

/* オフキャンバスのメニュー本体（ハンバーガーで開閉） */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  height: 100vh;
  background-color: #001d67;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.25);
  transform: translateX(-110%);
  transition: transform 0.35s;
  z-index: 90;
  border-radius: 20px;
}

.nav.active {
  transform: translateX(0);
}

/* アコーディオン（2段階） */
.accordion-menu {
  margin: 0;
  padding: 100px 20px 0;
  list-style: none;
}

.nav_item {
  margin: 16px 0;
}

.nav_link,
.nav_sublink,
.nav_sub2link {
  display: block;
  text-decoration: none;
}

.nav_link {
  color: #eee;
  font-weight: 900;
  background-color: #001d67;
  padding: 14px 16px;
  border-radius: 8px;
}

/* 既存の `.nav_list a` を使っていた分を無効化して新クラスに寄せる */
.nav_list a {
  background: none;
  padding: 0;
  border-radius: 0;
}

.has-sub > .dropdownlink {
  position: relative;
}

.has-sub > .dropdownlink::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #eee;
  border-bottom: 2px solid #eee;
  transform: translateY(-60%) rotate(45deg);
  transition: transform 0.25s;
}

.has-sub.open > .dropdownlink::after {
  transform: translateY(-40%) rotate(-135deg);
}

.submenuItems {
  display: none;
  margin: 10px 0 0;
  padding: 0 0 0 14px;
}

.nav_sublink {
  color: #001d67;
  font-weight: 800;
  background: #ffffff;
  padding: 12px 14px;
  border-radius: 8px;
}

.nav_sub {
  margin: 10px 0;
}

/* 2段目 */
.nav_sub2 {
  margin: 10px 0;
}

.nav_sub2link {
  color: #001d67;
  font-weight: 700;
  background: #f2f2f2;
  padding: 10px 14px;
  border-radius: 8px;
}

/* 2段目の矢印は少し薄く */
.nav_sub.has-sub > .dropdownlink::after {
  border-right-color: #001d67;
  border-bottom-color: #001d67;
}

.header_content {
  width: 100%;
  height: 600px;
  background-color: #00064d;
}

/*--------------------------
         スライドショー 
 --------------------------*/

.slider {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  box-shadow: 5px 5px 15px -10px;
}

/* 対応ブラウザでは動的ビューポートを優先 */
@supports (height: 100dvh) {
  .slider {
    height: 100dvh;
    min-height: 100dvh;
  }
}

/* iOS Safari の “100vh問題” 対策 */
@supports (-webkit-touch-callout: none) {
  .slider {
    height: 100svh;
    min-height: 100svh;
  }
}

.slider div {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 10;
  opacity: 0;
  animation-name: slide-fade;
  animation-duration: 30s; /* 30秒に変更 */
  animation-iteration-count: infinite;
  transform: scale(1.5); /* 最初に画像を大きくしておく */
}

@keyframes slide-fade {
  0% {
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 0;
    transform: scale(1); /* ここで画像サイズを1に戻す */
  }
  100% {
    opacity: 0;
    z-index: 0;
  }
}
.slider div:first-of-type {
  background-image: url(../img/a-studio01.webp);
}
.slider div:nth-of-type(2) {
  background-image: url(../img/b-studio01.webp);
  animation-delay: 10s;
}
.slider div:nth-of-type(3) {
  background-image: url(../img/c-studio01.webp);
  animation-delay: 10s;
}
.slider div:last-of-type {
  background-image: url(../img/d-studio01.webp);
  animation-delay: 20s;
}

/* -----------------------
ハンバーガーメニュー
------------------------ */

.hamburger {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
  width: 48px;
  height: 48px;
  border: none;
  background: transparent;
  cursor: pointer;
  margin: 20px 30px;
  background-color: rgba(255, 255, 255, 0.5);
}

.hamburger__line {
  position: absolute;
  left: 11px;
  width: 26px;
  height: 2px;
  background-color: #333;
  transition: all 0.4s;
}

.hamburger__line:nth-of-type(1) {
  top: 14px;
}
.hamburger__line:nth-of-type(2) {
  top: 23px;
}
.hamburger__line:nth-of-type(3) {
  top: 32px;
}

/* メニューオープン時 */
.hamburger.active .hamburger__line:nth-of-type(1) {
  transform: translateY(9px) rotate(-45deg);
}
.hamburger.active .hamburger__line:nth-of-type(2) {
  opacity: 0;
}
.hamburger.active .hamburger__line:nth-of-type(3) {
  transform: translateY(-9px) rotate(45deg);
}

/* オフキャンバスのメニュー本体（ハンバーガーで開閉） */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  height: 100vh;
  background-color: #001d67;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.25);
  transform: translateX(-110%);
  transition: transform 0.35s;
  z-index: 90;
  border-radius: 20px;
}

.nav.active {
  transform: translateX(0);
}

/* アコーディオン（2段階） */
.accordion-menu {
  margin: 0;
  padding: 100px 20px 0;
  list-style: none;
}

.nav_item {
  margin: 16px 0;
}

.nav_link,
.nav_sublink,
.nav_sub2link {
  display: block;
  text-decoration: none;
}

.nav_link {
  color: #eee;
  font-weight: 900;
  background-color: #001d67;
  padding: 14px 16px;
  border-radius: 8px;
}

/* 既存の `.nav_list a` を使っていた分を無効化して新クラスに寄せる */
.nav_list a {
  background: none;
  padding: 0;
  border-radius: 0;
}

.has-sub > .dropdownlink {
  position: relative;
}

.has-sub > .dropdownlink::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #eee;
  border-bottom: 2px solid #eee;
  transform: translateY(-60%) rotate(45deg);
  transition: transform 0.25s;
}

.has-sub.open > .dropdownlink::after {
  transform: translateY(-40%) rotate(-135deg);
}

.submenuItems {
  display: none;
  margin: 10px 0 0;
  padding: 0 0 0 14px;
}

.nav_sublink {
  color: #001d67;
  font-weight: 800;
  background: #ffffff;
  padding: 12px 14px;
  border-radius: 8px;
}

.nav_sub {
  margin: 10px 0;
}

/* 2段目 */
.nav_sub2 {
  margin: 10px 0;
}

.nav_sub2link {
  color: #001d67;
  font-weight: 700;
  background: #f2f2f2;
  padding: 10px 14px;
  border-radius: 8px;
}

/* 2段目の矢印は少し薄く */
.nav_sub.has-sub > .dropdownlink::after {
  border-right-color: #001d67;
  border-bottom-color: #001d67;
}

.header_content {
  width: 100%;
  height: 600px;
  background-color: #00064d;
}

/* -----------------------
      メインコンテンツ     
-------------------------*/

h2 {
  margin: 128px auto;
}

.heading02 {
  position: relative;
  font-size: 26px;
  text-align: center;
  border-bottom: 5px solid #dddddd;
  padding-bottom: 16px;
  margin-bottom: 64px;
}

.heading02::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 5px;
  background-color: #001d67;
}

.content_section {
  display: block;
  margin: 64px auto;
  width: calc(100% - 32px);
  max-width: 800px;
  padding: 0px 25px;
  border-radius: 10px;
  border: 0.5px solid #cecece;
  background-color: #ffffff;
  box-shadow: 5px 5px 20px -10px;
  margin-bottom: 64px;
}

/* ======================
        予約カレンダー
====================== */

.booking_status {
  display: block;
  margin: 32px auto 32px;
  text-align: center;
}

.content_title {
  width: auto;
  font-size: 20px;
  font-weight: 700;
  margin-top: 64px;
  margin-bottom: 32px;
  padding-left: 10px;
  border-left: 5px solid #00064d;
}

.status {
  display: block;
  width: 100%;
  max-width: 920px;
  margin: 32px auto;
  height: 950px;
  border: 0;
}

/* ======================
        注意事項
====================== */

.attention_p {
  font-size: 15px;
  margin-bottom: 32px;
}

.attention_btn {
  display: flex;
  flex-wrap: wrap;
  margin: 20px auto;
  justify-content: center;
}

.attention_btn a {
  width: 100%;
  max-width: 400px;
  text-align: center;
  font-size: 25px;
  color: #00064d;
  margin: 16px 32px;
  padding: 20px 40px;
  border: 3px solid #00064d;
  border-radius: 10px;
  background-color: #ffffff;
}

.attention_content {
  transition-duration: 0.4s;
}
.attention_content:hover {
  transform: scale(1.1);
}

/* ======================
        スタジオ紹介
====================== */

.title_area-2 {
  background-color: #00064d;
  padding: 20px 50px;
  display: flex;
}

.title_area-2 img {
  height: 150px;
  -webkit-filter: drop-shadow(
    0px 3px 10px rgba(92, 92, 92, 0.8)
  ); /* SafariなどのWebkitブラウザ用 */
  filter: drop-shadow(0px 3px 10px rgba(79, 79, 79, 0.5));
}

.sub_title-2 {
  margin-left: 40px;
  font-size: 20px;
  font-weight: 700;
  line-height: 2rem;
  color: #ffffff;
  -webkit-filter: drop-shadow(
    0px 3px 10px rgba(92, 92, 92, 0.8)
  ); /* SafariなどのWebkitブラウザ用 */
  filter: drop-shadow(0px 3px 10px rgba(79, 79, 79, 0.5));
}

.studio_area {
  margin: 0 auto;
  width: 100%;
  max-width: 684px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.studio_items {
  margin: 20px 40px;
  width: 100%;
  max-width: 250px;
  border-radius: 10px;
  background-color: #00064d;
  border: 6px solid #00064d;
  justify-content: center;
  transition-duration: 0.4s;
}

.studio_items:hover {
  transform: scale(1.1);
}

.studio_item img {
  width: 100%;
  max-width: 250px;
  border-radius: 10px;
}

.studio_text {
  width: 100%;
  max-width: 250px;
  background-color: #ffffff;
  border: 2px solid #00064d;
  border-radius: 10px;
}
.s_1 {
  font-size: 40px;
  font-weight: 900;
  color: #00064d;
  text-align: center;
  margin: 20px auto;
}

.s_2 {
  text-align: right;
  padding: 5px;
  color: #00064d;
}

/* ======================
        予約サイト
====================== */

.booking_p {
  font-size: 15px;
  margin-bottom: 32px;
}

.booking_site {
  display: flex;
  flex-wrap: wrap;
  margin: 20px auto;
  justify-content: center;
  transition-duration: 0.4s;
}

.booking_site:hover {
  transform: scale(1.1);
}

.booking_site a {
  width: 100%;
  max-width: 400px;
  text-align: center;
  font-size: 25px;
  color: #00064d;
  margin: 16px 32px;
  padding: 20px 40px;
  border: 3px solid #00064d;
  border-radius: 10px;
  background-color: #ffffff;
}

/* ----------------
      問い合わせ     
-------------------*/

form {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}

input {
  width: 100%;
  padding: 10px;
  margin-bottom: 25px;
  font-size: 16px;
  margin-top: 10px;
}

textarea {
  width: 100%;
  height: 300px;
  padding: 10px;
  margin-bottom: 25px;
  font-size: 16px;
  margin-top: 10px;
}

.contact {
  margin: 64px auto;
  border: 0.5px solid #cecece;
  border-radius: 20px;
  box-shadow: 10px 10px 15px -10px;
  padding: 0px 50px;
}

label span {
  color: #ffffff;
  background-color: #ff0000;
  padding: 1px 2px;
  border-radius: 6px;
  font-size: 10px;
  margin-left: 10px;
}

#submit {
  border-radius: 10px;
  background-color: #00064d;
  border: 1px solid #00064d;
  color: #ffffff;
  transition-duration: 0.4s;
}

#submit:hover {
  transform: scale(1.1);
}

/*--------------------
        マップ 
 --------------------*/

.map_area {
  width: 100%;
  max-width: 650px;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 5px 5px 20px -10px;
}

.access_text {
  width: calc(100% - 32px);
  max-width: 600px;
  display: block;
  margin: 32px auto;
}

.access_title {
  font-size: 20px;
  font-weight: 900;
  text-align: left;
  margin: 20px 0px;
  margin-left: 10px;
  padding-left: 15px;
  border-left: 5px solid #00064d;
}

.access_text p {
  margin-bottom: 10px;
}



@media screen and (max-width: 768px) {
}

@media screen and (max-width: 450px) {
  h1 img {
    height: 50px;
    margin: 20px auto;
    padding: 10px 30px;
  }

  .about_content {
    width: 350px;
  }

  .heading02 {
    font-size: 18px;
  }

  .company_text {
    font-size: 14px;
  }

  .keireki {
    font-size: 16px;
  }

  .profile {
    font-size: 12px;
  }

  .br {
    display: none;
  }

  .about_content li {
    font-size: 12px;
  }
  .sub {
    font-size: 9px;
  }


}

.studio_info {
  width: 100%;
  max-width: 700px;
  margin: 32px auto;
  line-height: 2rem;
  padding: 0 16px;
}

.studio_info li {
  padding-left: 20px;
  border-left: 4px solid#00064d;
  margin-bottom: 16px;
}

.studio_table {
  margin: 64px auto;
}

.studio_tbody {
  border: 1px solid #00064d;
}

.studio_td {
  border: 1px solid #00064d;
  padding: 20px 50px;
}

.studio_IMG img {
  margin: 0 auto;
  height: 400px;
  display: block;
  justify-content: center;
}

/* ----------------------------
スタジオ一覧
------------------------------*/

.studio_box {
  margin: 64px auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
}

.studio_name {
  font-size: 25px;
  font-weight: 900;
  position: relative;
  padding: 1rem 2rem calc(1rem + 10px);
  background: #3496fe;
  color: #ffffff;
}

.studio_name:before {
  position: absolute;
  top: -7px;
  left: -7px;
  width: 100%;
  height: 100%;
  content: "";
  border: 4px solid #000;
}

.studio_box img {
  margin: 0 auto;
  height: 220px;
}

.studio_ul {
  width: 100%;
  max-width: 700px;
  line-height: 2rem;
  margin-left: 0;
}

.not_room {
  color: red;
  font-size: 20px;
  font-weight: 900;
}

.studio_box li {
  margin-top: 10px;
}

.link_li a {
  color: #fff;
  background-color: #00064d;
  padding: 10px;
  border-radius: 10px;
}

.hikaku_table {
  margin: 32px auto;
}

.hikaku_tbody {
  margin: 64px auto;
  border: 2px solid #00064d;
}

.hikaku_th {
  padding: 20px 10px;
  border-right: 2px solid #00064d;
  border-bottom: 2px dashed #00064d;
  background-color: #d3e8ff;
  font-size: 15px;
}

.hikaku_td {
  padding: 20px;
  border-right: 2px solid #00064d;
  border-bottom: 2px dashed #00064d;
  text-align: center;
  font-size: 14px;
  font-weight: 900;
}

.hikaku_th .mute {
  font-size: 10px;
  color: #333;
}

/* =========================
   Mobile adjustments (single breakpoint)
========================= */

@media screen and (max-width: 600px) {
  .title_area {
    top: 90px;
    padding: 16px 18px;
    max-width: 100%;
  }

  .title_area img {
    height: min(260px, 62vw);
  }

  .title_area-2 {
    top: 90px;
    padding: 16px 18px;
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
  }

  .title_area-2 img {
    height: 80px;
  }

  .sub_title {
    margin-left: 0;
    font-size: 16px;
    line-height: 1.6rem;
  }

  .sub_title-2 {
    margin-left: 0;
    font-size: 10px;
    line-height: 1rem;
  }

  .hamburger {
    margin: 12px 12px;
  }

  .content_section {
    padding: 0 14px;
  }

  .contact {
    padding: 0 14px;
  }

  textarea {
    height: 220px;
  }

  .studio_items {
    width: 100%;
    max-width: 250px;
    margin: 12px 10px;
  }

  .studio_IMG img {
    height: auto;
    max-height: 320px;
  }

  .status {
    height: 900px;
  }


  /* =============---=========-
  比較テーブル
  ===============-------======*/

  .hikaku_scroll {
    overflow-x: scroll;
  }

  .hikaku_table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
  }
}

/* ===============================-
タブスイッチ
===================================*/

.tab-switch {
  --tab-color: #dbb6a2;
  display: flex;
  flex-wrap: wrap;
  max-width: 800px;
  margin-inline: auto;
  gap: 5px;
}

/* タブボタン */
.tab-switch label {
  padding: 0.7em 1em;
  background: #eee;
  cursor: pointer;
  order: -1; /* 上に表示 */
  text-align: center;
}

/* ラジオ非表示 */
.tab-switch input {
  display: none;
}

/* コンテンツ非表示 */
.tab-content {
  display: none;
  width: 100%;
  padding: 1.5em 0;
}

/* 選択されたタブ＋コンテンツ表示 */
.tab-switch label:has(:checked) {
  background: var(--tab-color);
  color: #fff;
}
.tab-switch label:has(:checked) + .tab-content {
  display: block;
}
