/*
Theme Name: 琉球Styleちゅら
Theme URI: https://ryukyuu-style_static.php74.ropes.co.jp/
Author: ropes
Description: 琉球Styleちゅら オリジナルWordPressテーマ
Version: 1.0.0
*/

/* ===========================
   CSS カスタムプロパティ
=========================== */
:root {
  --color-red: #c23333;
  --color-dark-red: #981c1c;
  --color-green: #30981c;
  --color-yellow: #f5df64;
  --color-white: #ffffff;
  --color-black: #000000;
  --color-gray-light: #dddddd;
  --color-gray-border: #585858;
  --color-gray-dot: #d9d9d9;

  --font-en: "Homemade Apple", cursive;
  --font-ja: "Shippori Mincho", serif;
  --font-sans: "Noto Sans JP", sans-serif;
}

@media (min-width: 768px) {
  :root {
    --page-width: 1366px;
    --header-height: 144px;
  }
}

/* ===========================
   リセット・ベース
=========================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-ja);
  font-size: 16px;
  line-height: 2em;
  color: var(--color-black);
  background-color: #f8f4ec;
  background-image: url("images/bg-texture.png");
  background-repeat: repeat;
  background-size: 400px 400px;
  margin: 0 auto;
  overflow-x: hidden;
  padding-bottom: 64px;
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ===========================
   SP / PC 表示切替
=========================== */
.logo-pc {
  display: none;
}

.logo-sp {
  display: block;
}

.sp {
  display: block;
}

.pc {
  display: none;
}

.pc-header-nav {
  display: none;
}

.btn-booking-header {
  display: none;
}

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

  .pc {
    display: block;
  }

  .logo-sp {
    display: none;
  }

  .logo-pc {
    display: block;
  }
}

/* ===========================
   ヘッダー
=========================== */
.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 80px;
  z-index: 100;
  background-image: url("images/bg-texture.png");
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 8px 8px 8px;
  height: 100%;
}

.header-logo img {
  width: 135px;
  height: 48px;
  object-fit: contain;
}

.hamburger-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.hamburger-btn img {
  width: 32px;
  height: 32px;
}

@media (min-width: 768px) {
  .site-header {
    height: 80px;
    background: transparent;
  }

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 0 20px;
    height: 100%;
    gap: 0;
  }

  .header-logo {
    width: 168px;
    display: block;
    margin-right: 30px;
  }

  .header-logo img {
    width: 168px;
    height: 60px;
  }

  .pc-header-nav {
    display: flex;
    align-items: center;
    gap: min(4.39238653vw, 60px);
  }

  .pc-nav ul {
    display: flex;
    align-items: center;
    gap: 10px 30px;
    flex-wrap: wrap;
  }

  .pc-nav ul li a {
    font-family: var(--font-ja);
    font-weight: 700;
    font-size: clamp(0.875rem, 1.1713030747vw, 1rem);
    line-height: 1.25;
    color: var(--color-black);
  }

  .pc-nav ul li a:hover {
    opacity: 0.7;
  }

  .btn-booking-header {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 80px;
    background: var(--color-dark-red);
    color: var(--color-white);
    font-family: var(--font-ja);
    font-weight: 700;
    font-size: 16px;
    line-height: 1.25em;
    text-align: center;
  }

  .hamburger-btn {
    display: none;
  }
}

/* ===========================
   ハンバーガーメニューオーバーレイ
=========================== */
.nav-overlay {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: var(--page-width);
  height: 100vh;
  background: var(--color-white);
  z-index: 300;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.nav-overlay.is-open {
  right: 0;
}

.nav-overlay-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 25px 0;
}

.nav-overlay-top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 20px;
  margin-bottom: 100px;
}

.nav-logo img {
  width: 135px;
  height: 48px;
  object-fit: contain;
}

.nav-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.close-icon {
  position: relative;
  display: block;
  width: 24px;
  height: 24px;
}

.close-icon::before,
.close-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 24px;
  height: 3px;
  background: var(--color-black);
  border-radius: 5px;
}

.close-icon::before {
  transform: translateY(-50%) rotate(45deg);
}

.close-icon::after {
  transform: translateY(-50%) rotate(-45deg);
}

.global-nav {
  display: flex;
  align-items: center;
  justify-content: center;
}

.global-nav ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.global-nav ul li a {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.25;
  color: var(--color-black);
}

.nav-bottom {
  padding: 110px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nav-sns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.nav-sns-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.nav-cta-wrap {
  display: flex;
  gap: 8px;
  width: 100%;
}

.btn-web-booking {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 8px 16px;
  background: var(--color-dark-red);
  color: var(--color-white);
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.43em;
  text-align: center;
  height: 64px;
}

.btn-phone-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  padding: 8px 16px;
  background: var(--color-green);
  color: var(--color-white);
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.43em;
  height: 64px;
}

.btn-phone-nav img {
  width: 24px;
  height: 24px;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  height: 32px;
  background: #fff;
  border: 1px solid var(--color-gray-border);
  cursor: pointer;
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.25em;
  color: var(--color-black);
  flex-shrink: 0;
}

.lang-btn img {
  width: min(1.4641288433vw, 20px);
  height: min(1.4641288433vw, 20px);
  transition: transform 0.2s ease;
}

/* 言語ドロップダウン */
.lang-dropdown-wrap {
  position: relative;
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--color-gray-border);
  border-top: none;
  list-style: none;
  padding: 4px 0 8px;
  margin: 0;
  min-width: 100%;
  z-index: 200;
}

.lang-dropdown-wrap.is-open .lang-dropdown {
  display: block;
}

.lang-dropdown-wrap.is-open .lang-btn {
  border-bottom-color: transparent;
}

.lang-dropdown-wrap.is-open .lang-btn img {
  transform: rotate(180deg);
}

.lang-dropdown li a {
  display: block;
  padding: 6px 16px;
  font-family: var(--font-ja);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-black);
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
}

.lang-dropdown li a:hover {
  background: #f5f5f5;
}

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

/* ===========================
   固定ボトムバー（SP用）
=========================== */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--page-width);
  height: 64px;
  display: flex;
  align-items: stretch;
  z-index: 200;
}

.bottom-bar-lang,
.bottom-bar .gt_selector {
  flex: 1;
  appearance: none;
  -webkit-appearance: none;
  background: var(--color-white) url("images/icon-arrow-lang.svg") no-repeat
    right 10px center / 14px 14px;
  border: none;
  border: 1px solid #585858;
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 16px;
  color: var(--color-black);
  cursor: pointer;
  padding: 0 28px 0 12px;
  margin: 0 16px;
  height: 32px;
  align-self: center;
  outline: none;
}

.bottom-bar-btn {
  width: 104px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--color-white);
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
}

.bottom-bar-btn img {
  width: 24px;
  height: 24px;
}

.bottom-bar-phone {
  background: var(--color-green);
}

.bottom-bar-booking {
  background: var(--color-dark-red);
}

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

/* ===========================
   オーバーレイ背景（スクロール防止用）
=========================== */
body.nav-open {
  overflow: hidden;
}

/* ===========================
   共通コンポーネント
=========================== */

/* 英語セクションラベル */
.section-en {
  font-family: var(--font-en);
  font-weight: 400;
  font-size: 40px;
  line-height: 2em;
  color: var(--color-gray-light);
  text-align: center;
}

.section-en-left {
  text-align: left;
}

/* 日本語セクションタイトル（左寄せ） */
.section-ja {
  font-family: var(--font-ja);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2em;
  color: var(--color-black);
  text-align: left;
}

/* 日本語セクションタイトル（中央寄せ） */
.section-ja-center {
  font-family: var(--font-ja);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2em;
  color: var(--color-black);
  text-align: center;
}

.section-heading {
  text-align: center;
  margin-bottom: 24px;
}

/* プライマリボタン */
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 256px;
  height: 56px;
  background: var(--color-red);
  color: var(--color-white);
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.25em;
  margin: 0 auto;
  transition:
    background 0.3s ease,
    color 0.3s ease;
}

.btn-primary:hover {
  background: #e0e0e0;
  color: #272727;
}

.btn-primary img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}

.btn-primary:hover img {
  filter: brightness(0) invert(1) brightness(0.153);
}

.btn-primary--wide {
  width: 100%;
  max-width: 256px;
}

/* スモールボタン */
.btn-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  padding: 4px 16px;
  background: var(--color-white);
  border: 1px solid var(--color-gray-border);
  border-radius: 12px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12px;
  line-height: 1.33em;
  color: var(--color-black);
  white-space: nowrap;
}

/* ===========================
   フッター
=========================== */
footer {
  background: var(--color-yellow);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 64px 0 40px;
}

.footer-col-info {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo-wrap {
  margin-bottom: 24px;
}

.footer-logo-wrap img {
  width: 180px;
  height: 60px;
  object-fit: contain;
}

.footer-address {
  font-family: var(--font-ja);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
  color: var(--color-black);
  text-align: center;
  margin-bottom: 8px;
}

.footer-icons {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-icons .nav-sns-icon {
  width: 24px;
  height: 24px;
  transition: opacity 0.3s ease;
}

.footer-phone-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
}

.footer-phone-row img {
  width: 16px;
  height: 16px;
}

.footer-phone-text {
  font-family: var(--font-ja);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  color: var(--color-black);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
  padding: 0;
}

.footer-nav-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  flex: unset;
  width: 100%;
}

.footer-nav-col + .footer-nav-col {
  margin-top: 15px;
}

.footer-nav-col li a {
  font-family: var(--font-ja);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  color: var(--color-black);
  transition: opacity 0.3s ease;
}

.footer-cta {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 260px;
}

.footer-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 260px;
  height: 60px;
  background: var(--color-white);
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.25em;
  color: var(--color-black);
  text-align: center;
  transition: opacity 0.3s ease;
}

.copyright {
  background-color: #f8f4ec;
  background-image: url("images/bg-texture.png");
  background-repeat: repeat;
  font-family: var(--font-ja);
  font-weight: 500;
  font-size: 12px;
  line-height: 1;
  color: var(--color-black);
  text-align: center;
  padding: 10px 0;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: clamp(2.5rem, -0.833rem + 6.94vw, 7.5rem);
    padding: min(4.6852122987vw, 64px) min(9.0043923865vw, 123px);
    max-width: var(--page-width);
    margin: 0 auto;
  }

  .footer-col-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: min(19.0336749634vw, 260px);
    flex: 0 0 50%;
  }

  .footer-logo-wrap {
    margin-bottom: 30px;
  }

  .footer-logo-wrap img {
    width: 182px;
    height: 60px;
  }

  .footer-nav {
    max-width: min(26.3543191801vw, 360px);
    flex: 0 0 50%;
    flex-direction: row;
    align-items: flex-start;
    padding: 0;
    gap: 24px;
  }

  .footer-address {
    text-align: left;
  }

  .footer-nav-col {
    flex: 1;
    align-items: flex-start;
  }

  .footer-nav-col + .footer-nav-col {
    margin-top: 0;
  }

  .footer-cta {
    width: min(19.0336749634vw, 260px);
  }

  .footer-cta-btn {
    max-width: min(19.0336749634vw, 260px);
    width: 100%;
  }

  .footer-icons .nav-sns-icon:hover {
    opacity: 0.7;
  }

  .footer-nav-col li a:hover {
    opacity: 0.7;
  }

  .footer-cta-btn:hover {
    opacity: 0.7;
  }

  .copyright {
    padding: 10px 0;
    text-align: center;
  }

  /* フロートSNSバナー */
  .float-sns {
    position: fixed;
    right: min(2.196193265vw, 30px);
    bottom: min(2.196193265vw, 30px);
    display: flex;
    flex-direction: column;
    gap: min(1.1713030747vw, 16px);
    z-index: 100;
  }

  .float-sns-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(3.513909224vw, 48px);
    height: min(3.513909224vw, 48px);
    transition: opacity 0.3s ease;
  }

  .float-sns-link:hover {
    opacity: 0.7;
  }

  .float-sns-link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}

.lang-dropdown-wrap {
  width: 142px;
  position: relative;
}

.lang-dropdown-wrap .gt_selector {
  width: 100%;
  height: 35px;
  padding: 6px 28px 8px 14px;
  font-family: "Times New Roman", serif;
  font-size: 18px;
  font-weight: 600;
  color: #000;
  background: #fff;
  border: 1px solid #999;
  border-radius: 0;
  outline: none;
  cursor: pointer;

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

/* 右上の矢印 */
.lang-dropdown-wrap::after {
  content: "";
  position: absolute;
  top: 16px;
  right: 22px;
  width: 8px;
  height: 8px;
  border-top: 1px solid #000;
  border-right: 1px solid #000;
  transform: rotate(134deg) translateY(50%);
  pointer-events: none;
  transition: transform 0.2s ease;
}

/* セレクトボックス展開時に矢印を上向きに回転 */
.lang-dropdown-wrap:focus-within::after {
  transform: rotate(-45deg);
}

/* optionの見た目 */
.lang-dropdown-wrap .gt_selector option {
  font-family: "Times New Roman", serif;
  font-size: 15px;
  font-weight: 600;
  color: #000;
  background: #fff;
  text-align: center;
  padding: 8px 0;
}
.bottom-bar .gtranslate_wrapper {
  width: calc(100% - 204px);
  display: flex;
  align-items: center;
}
.bottom-bar .gt_selector {
  width: 80%;
}
