/*
Theme Name: ケラマ観光
Theme URI: https://kerama-kanko_static.php74.ropes.co.jp/
Author: ropes
Description: 株式会社ケラマ観光 オリジナルWordPressテーマ
Version: 1.0.0
*/

/* スムーズにスクロールさせる設定（ページ全体に適用） */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 60px;
}

@media (min-width: 768px) {
  html {
    scroll-padding-top: 80px;
  }
}

/*---------------------------------
ヘッダー
---------------------------------*/

/* --- ヘッダー本体 --- */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.header_inner {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 0 0 min(4.2666666667vw, 16px);
}

/* --- ヘッダータイトル --- */

.header_title_box {
  flex: 1;
  min-width: 0;
}

.header_title {
  font-size: var(--fs-16);
  font-weight: 800;
  font-family: var(--sub-font);
  text-decoration: none;
  line-height: 1.2;

  /* グラデーションテキストの設定（順番が重要）*/
  background: var(--bg_gd-color);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --- 言語セレクター --- */

.header_lang {
  position: relative;
  margin-right: min(2.1333333333vw, 8px);
}

.header_lang_btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: min(2.1333333333vw, 8px) min(2.6666666667vw, 10px);
  border: 1px solid #3a3e40;
  border-radius: 4px;
  background: #fff;
  font-size: var(--fs-13);
  font-weight: 500;
  color: var(--text-color);
  cursor: pointer;
  white-space: nowrap;
}

.header_lang_arrow {
  display: block;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid #3a3e40;
  border-bottom: 1.5px solid #3a3e40;
  transform: rotate(45deg);
  margin-top: -3px;
  transition:
    transform 0.25s ease,
    margin-top 0.25s ease;
}

.header_lang.is-open .header_lang_arrow {
  transform: rotate(-135deg);
  margin-top: 3px;
}

.header_lang_list {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 4px 9px rgba(0, 0, 0, 0.1);
  z-index: 2001;
  min-width: 105px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.25s ease;
}

.header_lang.is-open .header_lang_list {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.header_lang_item {
  border-top: 1px solid #3a3e40;
}

.header_lang_item:first-child {
  border-top: none;
}

.header_lang_item--label {
  padding: min(2.6666666667vw, 10px) min(1.3333333333vw, 5px);
  font-size: var(--fs-12);
  font-weight: 400;
  background: #dfdfdf;
  color: var(--text-color);
  text-align: center;
}

.header_lang_item a {
  display: block;
  padding: min(2.4vw, 9px) 0;
  font-size: var(--fs-13);
  font-weight: 400;
  color: #303030;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s ease;
}

/* --- ご予約ボタン（SP非表示） --- */

.header_reserve-btn {
  display: none;
}

/* --- ハンバーガーボタン --- */

.mobile_menu_btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: min(16vw, 60px);
  height: min(16vw, 60px);
  flex-shrink: 0;
  background: #fff;
  border: none;
  cursor: pointer;
  padding: 0;
}

.mobile_menu_btn__lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
}

.mobile_menu_btn__lines span {
  display: block;
  width: 27px;
  height: 3px;
  background: var(--main-color);
  border-radius: 10px;
}

.mobile_menu_btn__text {
  font-size: var(--fs-10);
  font-weight: 800;
  color: var(--main-color);
  font-family: var(--sub-font);
  letter-spacing: 0.05em;
  line-height: 1;
}

/*---------------------------------
メニュー（ポップアップ）
---------------------------------*/

.pop-up_menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  z-index: 2000;
  display: flex;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(100%);
  transition:
    transform 0.45s ease,
    visibility 0s linear 0.45s;
  background: url("images/common/pop-up_menu_bg_sp.jpg") center / cover
    no-repeat;
}

.pop-up_menu.menu-open {
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
  transition:
    transform 0.45s ease,
    visibility 0s linear;
}

/* --- 左パネル（ナビ） --- */

.pop-up_menu__panel {
  flex: 0 0 75%;
  display: flex;
  flex-direction: column;
  padding: 30px 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 2px 0 10px 0 rgba(0, 0, 0, 0.25);
  overflow-y: auto;
}

/* --- 右パネル（画像） --- */

.pop-up_menu__image {
  flex: 0 0 35%;
  overflow: hidden;
}

.pop-up_menu__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- メニュー内ロゴ --- */

.pop-up_menu__site-name {
  margin-bottom: 80px;
}

.pop-up_menu__site-name a {
  font-size: var(--fs-20);
  font-weight: 800;
  line-height: 1;
  font-family: var(--sub-font);
  background: var(--bg_gd-color);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --- 閉じるボタン --- */

.close-button {
  position: fixed;
  top: min(2.1333333333vw, 8px);
  right: min(2.1333333333vw, 8px);
  width: min(8.5333333333vw, 32px);
  height: min(8.5333333333vw, 32px);
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2100;
}

/* --- ナビリスト --- */

.menu-nav__box {
  flex: 1;
}

.menu-nav__list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.menu-nav__link {
  display: block;
  font-size: var(--fs-18);
  font-weight: bold;
  font-family: var(--sub-font);
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

/*---------------------------------
ヘッダー（PC）
---------------------------------*/

@media (min-width: 768px) {
  /* --- ヘッダー本体 --- */

  header {
    height: 80px;
  }

  .header_inner {
    padding: 0 0 0 min(2.196193265vw, 30px);
  }

  /* --- タイトル --- */

  .header_title {
    font-size: var(--fs-20);
  }

  /* --- 言語セレクター --- */

  .header_lang {
    margin-right: 0;
  }

  .header_lang_btn {
    font-size: var(--fs-16);
    padding: min(0.5856515373vw, 8px) min(1.0248901903vw, 14px);
  }

  .header_lang_list {
    min-width: 120px;
  }

  .header_lang_item--label {
    font-size: var(--fs-14);
  }

  .header_lang_item a:hover {
    background: var(--main-color);
    color: #fff;
  }

  /* --- ご予約ボタン（PC表示） --- */

  .header_reserve-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: clamp(5rem, 3.31rem + 3.52vw, 6.25rem);
    height: 80px;
    flex-shrink: 0;
    background: #0f2044;
    color: #fff;
    text-decoration: none;
    margin-left: 20px;
    position: relative;
    overflow: hidden;
  }

  .header_reserve-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--bg_gd-color);
    opacity: 0;
    transition: opacity 0.2s ease;
  }

  .header_reserve-btn:hover::after {
    opacity: 1;
  }

  .header_reserve-icon {
    width: 29px;
    height: 29px;
    position: relative;
    z-index: 1;
  }

  .header_reserve-btn span {
    font-size: var(--fs-14);
    font-weight: 700;
    font-family: var(--sub-font);
    letter-spacing: 0.05em;
    line-height: 1;
    position: relative;
    z-index: 1;
  }

  /* --- ハンバーガーボタン --- */

  .mobile_menu_btn {
    width: clamp(5rem, 3.31rem + 3.52vw, 6.25rem);
    height: 80px;
  }

  .mobile_menu_btn__lines span {
    width: 31px;
    position: relative;
    overflow: hidden;
  }

  .mobile_menu_btn__lines span::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--bg_gd-color);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.2s ease;
  }

  .mobile_menu_btn__text {
    background: var(--bg_gd-color);
    -webkit-background-clip: text;
    background-clip: text;
    color: var(--main-color);
    transition: color 0.2s ease;
  }

  .mobile_menu_btn:hover .mobile_menu_btn__lines span::after {
    opacity: 1;
  }

  .mobile_menu_btn:hover .mobile_menu_btn__text {
    color: transparent;
  }

  .close-button {
    position: fixed;
    top: 20px;
    right: 30px;
    width: 34px;
    height: 34px;
  }

  /* --- PC メニューパネル --- */

  .pop-up_menu {
    background-image: url("images/common/pop-up_menu_bg.jpg");
    transform: translateX(0) translateY(0);
    opacity: 0;
    transition:
      opacity 0.35s ease,
      transform 0.35s ease,
      visibility 0s linear 0.35s;
  }

  .pop-up_menu.menu-open {
    transform: translateX(0) translateY(0);
    opacity: 1;
    transition:
      opacity 0.35s ease,
      transform 0.35s ease,
      visibility 0s linear;
  }

  .pop-up_menu__panel {
    flex: 0 0 30%;
    padding: clamp(1.25rem, -1.042rem + 4.77vw, 4.688rem);
  }

  .pop-up_menu__site-name a {
    font-size: var(--fs-20);
    text-align: left;
    display: block;
  }

  .menu-nav__list {
    gap: clamp(2.5rem, -3.664rem + 7.22vw, 5rem);
  }

  .menu-nav__link {
    background: var(--bg_gd-color);
    -webkit-background-clip: text;
    background-clip: text;
  }

  .menu-nav__link:hover {
    color: transparent;
  }

  /* --- 翻訳時 --- */

  html[class*="translated"] .header_reserve-btn span {
    font-size: var(--fs-10);
  }
}

/*---------------------------------
フッター
---------------------------------*/

.footer {
  background: #f6f6f6;
  padding: min(8vw, 30px) min(5.3333333333vw, 20px) min(16vw, 60px);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  max-width: 1020px;
  margin: 0 auto;
}

/* --- 会社情報 --- */

.footer-heading {
  text-align: center;
  margin-bottom: min(2.6666666667vw, 10px);
}

.footer_title {
  font-size: var(--fs-20);
  font-weight: 800;
  font-family: var(--sub-font);
  background: var(--bg_gd-color);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-decoration: none;
}

.footer-address {
  font-size: var(--fs-12);
  color: var(--text-color);
  line-height: 1.7;
  text-align: center;
  margin-bottom: 16px;
}

.footer-address p a {
  font-size: var(--fs-12);
  color: var(--text-color);
}

.footer-sns-list {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: min(10.6666666667vw, 40px);
}

.footer-sns {
  display: inline-block;
}

.footer-sns__icon {
  width: min(7.4666666667vw, 28px);
  height: min(7.4666666667vw, 28px);
  display: block;
}

/* --- ナビ --- */

.footer-nav__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(4, auto);
  grid-auto-flow: column;
  gap: 40px 25px;
  margin-bottom: 20px;
}

.footer-nav__item a {
  font-size: var(--fs-14);
  font-weight: 500;
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

/* --- コピーライト --- */

.footer-copyright {
  text-align: center;
  font-size: var(--fs-12);
  color: var(--text-color);
}

/* --- PC --- */

@media (min-width: 768px) {
  .footer {
    padding: min(2.9282576867vw, 40px) min(1.4641288433vw, 20px) 0;
  }

  .footer-inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: min(5.8565153734vw, 80px);
    gap: min(4.39238653vw, 60px);
  }

  .footer-info {
    flex: 0 0 auto;
  }

  .footer-heading {
    margin-bottom: min(1.1713030747vw, 16px);
  }

  .footer_title {
    text-align: left;
    display: block;
  }

  .footer-address {
    text-align: left;
    margin-bottom: min(1.4641288433vw, 20px);
  }

  .footer-sns-list {
    justify-content: flex-start;
  }

  .footer-sns-list li a {
    transition: opacity 0.35s;
  }

  .footer-sns-list li a:hover {
    opacity: 0.7;
  }

  .footer-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: min(2.9282576867vw, 40px);
  }

  .footer-nav__list {
    grid-template-columns: 1fr 1fr;
    gap: min(2.9282576867vw, 40px) min(5.8565153734vw, 80px);
    margin-bottom: 0;
  }

  .footer-nav__item a {
    background: var(--bg_gd-color);
    -webkit-background-clip: text;
    background-clip: text;
  }

  .footer-nav__item a:hover {
    color: transparent;
  }

  /* --- ご予約ボタン（PC） --- */

  .footer-reserve-btn.pc_in {
    display: flex;
  }

  .footer-reserve-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: clamp(12.5rem, 10.092rem + 5.02vw, 14.375rem);
    width: 100%;
    padding: 14px 20px;
    background: var(--main-color);
    color: #fff;
    text-decoration: none;
    border-radius: 40px;
    font-size: var(--fs-16);
    font-weight: 400;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.38);
  }

  .footer-reserve-btn__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease;
  }

  .footer-reserve-btn__icon::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 0;
  }

  .footer-reserve-btn__icon img {
    display: block;
    width: 15px;
    height: auto;
    position: relative;
    z-index: 1;
  }

  /* ホバー時 */

  .footer-reserve-btn:hover span {
    font-weight: bold;
  }

  .footer-reserve-btn:hover .footer-reserve-btn__icon {
    transform: translateX(5px);
  }

  .footer-reserve-btn:hover .footer-reserve-btn__icon::before {
    opacity: 1;
  }
}

/*---------------------------------
フロートバナー（SP）
---------------------------------*/

.float-banner {
  position: fixed;
  bottom: -1px;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: min(13.3333333333vw, 50px);
  z-index: 900;
  background: var(--main-color);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.float-banner.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.float-banner__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #fff;
  text-decoration: none;
}

.float-banner__icon {
  width: 26px;
  height: auto;
  flex-shrink: 0;
}

.float-banner__text {
  font-size: var(--fs-16);
  font-weight: 800;
  font-family: var(--sub-font);
}

@media (min-width: 768px) {
  .float-banner {
    display: none;
  }
}

/* =========================
   GTranslate 言語切替
   ========================= */
.header_lang {
  position: relative;
  display: inline-block;
  width: 132px;
}

/* select本体 */
.header_lang .gt_selector {
  width: 100%;
  height: 35px;
  padding: 0 38px 0 14px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  color: #1d3f8f;
  background: #fff;
  border: 1.5px solid #1d3f8f;
  border-radius: 6px;
  box-sizing: border-box;
  cursor: pointer;
  outline: none;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* IEの矢印消し */
.header_lang .gt_selector::-ms-expand {
  display: none;
}

/* 右の矢印 */
.header_lang::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid #1d3f8f;
  border-bottom: 1.5px solid #1d3f8f;
  transform: translateY(-60%) rotate(45deg);
  pointer-events: none;
  transition: transform 0.2s ease;
}

.header_lang.is-open::after {
  transform: translateY(-40%) rotate(225deg);
}

/* 開いた一覧の基本色 */
.header_lang .gt_selector option {
  background: #fff;
  color: #333;
}

/* 先頭の Select Language だけグレー */
.header_lang .gt_selector option:first-child {
  background: #d9d9d9;
  color: #555;
}

/* 繁體中文 と English の下に線を入れる */
.header_lang .gt_selector option[value="ja|zh-TW"],
.header_lang .gt_selector option[value="ja|en"] {
  border-bottom: 1px solid #303030;
}
