/* ===================================
   和温 -WAON- スタイルシート
   100vh ノースクロール 2カラムレイアウト
   =================================== */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  color: #3A3A3A;
  background-color: #E8DDD3;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  height: 100vh;
}

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

ul, ol {
  list-style: none;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, select, textarea, button {
  font-family: inherit;
  font-size: inherit;
}

/* ============================
   ヘッダー (50px)
   ============================ */
.header {
  background: #2D5A3D;
  height: 50px;
  display: flex;
  align-items: center;
}

.header__inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.header__logo-main {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #FDF8F0;
  letter-spacing: 0.12em;
}

.header__logo-sub {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.75rem;
  font-weight: 400;
  color: #D4AF37;
  letter-spacing: 0.15em;
}

.header__tel {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #FDF8F0;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.header__tel:hover {
  color: #D4AF37;
}

/* ============================
   ヒーロー (25vh)
   ============================ */
.hero {
  position: relative;
  height: 25vh;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(45, 90, 61, 0.5) 0%,
    rgba(26, 58, 37, 0.7) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 16px 20px;
  color: #FDF8F0;
}

.hero__catch {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.hero__sub {
  font-size: 0.8rem;
  font-weight: 300;
  opacity: 0.9;
  max-width: 400px;
}

.hero__badge {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 10;
  background: linear-gradient(135deg, #D4AF37, #C4982A);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 8px 20px;
  border-radius: 50px;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.5);
}

/* ============================
   予約空き状況バー (60px)
   ============================ */
.availability-bar {
  background: linear-gradient(135deg, #D4AF37, #C4982A, #D4AF37);
  height: 60px;
  display: flex;
  align-items: center;
}

.availability-bar__inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.availability-bar__main {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.availability-bar__main strong {
  font-size: 1.05rem;
}

.availability-bar__icon {
  margin-right: 4px;
}

.availability-bar__sub {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.65rem;
  margin-top: 2px;
  letter-spacing: 0.02em;
}

/* ============================
   メインコンテンツ (残り高さ全部)
   ============================ */
.main-content {
  display: flex;
  /* 100vh - header(50) - hero(25vh) - availability(60) - footer(46) */
  height: calc(100vh - 50px - 25vh - 60px - 46px);
  overflow: hidden;
}

/* --- 左カラム: AI チャット (30%) --- */
.chat-column {
  width: 30%;
  background: #FDF8F0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #E8DDD3;
}

.chat {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.chat__header {
  background: #2D5A3D;
  color: #FDF8F0;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.chat__header-icon {
  font-size: 1rem;
}

.chat__window {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  background: #FDF8F0;
}

.chat__messages {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat__msg {
  max-width: 90%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.8rem;
  line-height: 1.6;
  animation: msgFadeIn 0.3s ease;
}

@keyframes msgFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat__msg--bot {
  background: #E8DDD3;
  color: #3A3A3A;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

.chat__msg--user {
  background: #2D5A3D;
  color: #FDF8F0;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

.chat__choices {
  padding: 10px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-top: 1px solid #E8DDD3;
  background: #FDF8F0;
  flex-shrink: 0;
}

.chat__choice-btn {
  background: #FDF8F0;
  border: 1.5px solid #D4AF37;
  color: #2D5A3D;
  padding: 7px 12px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 500;
  transition: background 0.3s, color 0.3s;
  white-space: nowrap;
}

.chat__choice-btn:hover {
  background: #D4AF37;
  color: #fff;
}

/* --- 右カラム: 施術タブ (70%) --- */
.tabs-column {
  width: 70%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #FDF8F0;
}

.tabs {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tabs__nav {
  display: flex;
  gap: 2px;
  padding: 8px 16px 0;
  flex-shrink: 0;
  background: #FDF8F0;
}

.tabs__btn {
  flex: 1;
  padding: 8px 8px;
  border-radius: 8px 8px 0 0;
  font-size: 0.78rem;
  font-weight: 500;
  color: #2D5A3D;
  background: #E8DDD3;
  transition: background 0.3s, color 0.3s;
  white-space: nowrap;
  text-align: center;
}

.tabs__btn:hover {
  background: #D4CFC7;
}

.tabs__btn.is-active {
  background: #2D5A3D;
  color: #FDF8F0;
}

/* --- タブパネル --- */
.tabs__panel {
  display: none;
  flex: 1;
  overflow-y: auto;
}

.tabs__panel.is-active {
  display: block;
  animation: tabFadeIn 0.3s ease;
}

@keyframes tabFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --- タブ内 2カラム --- */
.tab-inner {
  display: flex;
  height: 100%;
  padding: 12px 16px;
  gap: 12px;
}

.tab-inner__left {
  width: 45%;
  overflow-y: auto;
}

.tab-inner__right {
  width: 55%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* --- Before/After カード --- */
.ba-card {
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  border-left: 3px solid #D4AF37;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.ba-card__label {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 50px;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.ba-card__label--before {
  background: #E8DDD3;
  color: #666;
}

.ba-card__label--after {
  background: #2D5A3D;
  color: #FDF8F0;
}

.ba-card__text {
  font-size: 0.75rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 6px;
}

.ba-card__arrow {
  text-align: center;
  color: #D4AF37;
  font-size: 0.8rem;
  margin: 4px 0;
}

.ba-card__review {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.8rem;
  color: #2D5A3D;
  font-weight: 700;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed #E8DDD3;
  line-height: 1.5;
}

.ba-card__author {
  font-size: 0.7rem;
  color: #999;
  text-align: right;
  margin-top: 4px;
}

/* --- メニュー・価格（ラジオボタン式） --- */
.menu-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #2D5A3D;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #E8DDD3;
}

.menu-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.menu-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 2px solid #E8DDD3;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
  position: relative;
}

.menu-radio:hover {
  border-color: #D4AF37;
}

.menu-radio input[type="radio"] {
  accent-color: #2D5A3D;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.menu-radio input[type="radio"]:checked + .menu-radio__body,
.menu-radio input[type="radio"]:checked ~ .menu-radio__body {
  color: #2D5A3D;
}

.menu-radio:has(input:checked) {
  border-color: #2D5A3D;
  background: rgba(45, 90, 61, 0.04);
}

.menu-radio__body {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.menu-radio__name {
  font-weight: 700;
  font-size: 0.82rem;
  color: #3A3A3A;
}

.menu-radio__price {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #2D5A3D;
}

.menu-radio__price small {
  font-size: 0.7rem;
  font-weight: 400;
  color: #999;
}

.menu-radio__original {
  font-size: 0.72rem;
  color: #999;
  text-decoration: line-through;
}

/* 人気 No.1 バッジ */
.menu-radio--popular {
  border-color: #D4AF37;
  position: relative;
}

.menu-radio__badge {
  position: absolute;
  top: -8px;
  right: 10px;
  background: linear-gradient(135deg, #D4AF37, #C4982A);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 50px;
}

/* 初回限定 */
.menu-radio--trial {
  border-color: #D4AF37;
  border-width: 3px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.06), rgba(212, 175, 55, 0.02));
}

.menu-form--trial {
  position: relative;
}

.menu-form__note {
  font-size: 0.7rem;
  color: #C4982A;
  text-align: center;
}

/* 予約ボタン */
.reserve-btn {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, #2D5A3D, #1A3A25);
  color: #FDF8F0;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px;
  border-radius: 50px;
  letter-spacing: 0.05em;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 12px rgba(45, 90, 61, 0.25);
  margin-top: auto;
}

.reserve-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45, 90, 61, 0.35);
}

.reserve-btn--trial {
  background: linear-gradient(135deg, #D4AF37, #C4982A);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.35);
}

.reserve-btn--trial:hover {
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.45);
}

/* ============================
   フッターバー (46px)
   ============================ */
.footer-bar {
  height: 46px;
  display: flex;
  background: #fff;
  border-top: 1px solid #E8DDD3;
}

.footer-bar__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  transition: opacity 0.3s;
}

.footer-bar__btn:hover {
  opacity: 0.85;
}

.footer-bar__btn--line {
  background: #06C755;
  color: #fff;
}

.footer-bar__btn--tel {
  background: #2D5A3D;
  color: #FDF8F0;
}

/* ============================
   モバイルAI相談トグルボタン
   ============================ */
.mobile-chat-toggle {
  display: none;
}

/* ============================
   予約モーダル
   ============================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.is-open {
  display: flex;
}

.modal {
  background: #FDF8F0;
  border-radius: 16px;
  padding: 28px 24px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
  animation: modalSlideUp 0.35s ease;
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal__close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 1.6rem;
  color: #999;
  transition: color 0.3s;
  padding: 4px;
  line-height: 1;
}

.modal__close:hover {
  color: #3A3A3A;
}

.modal__title {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #2D5A3D;
  text-align: center;
  margin-bottom: 6px;
}

.modal__selected-menu {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #D4AF37;
  margin-bottom: 12px;
  padding: 6px 12px;
  background: rgba(212, 175, 55, 0.08);
  border-radius: 8px;
}

/* 日付選択 */
.modal__dates {
  margin-bottom: 16px;
}

.modal__dates-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #2D5A3D;
  margin-bottom: 8px;
}

.modal__date-btns {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.modal__date-btn {
  flex: 1;
  padding: 8px 4px;
  border: 2px solid #E8DDD3;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  color: #3A3A3A;
  background: #fff;
  transition: border-color 0.3s, background 0.3s;
}

.modal__date-btn:hover {
  border-color: #D4AF37;
}

.modal__date-btn.is-active {
  border-color: #2D5A3D;
  background: #2D5A3D;
  color: #FDF8F0;
}

.modal__time-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.modal__time-btn {
  padding: 6px 12px;
  border: 1px solid #E8DDD3;
  border-radius: 6px;
  font-size: 0.75rem;
  color: #3A3A3A;
  background: #fff;
  transition: border-color 0.3s, background 0.3s;
}

.modal__time-btn:hover {
  border-color: #D4AF37;
}

.modal__time-btn.is-active {
  border-color: #2D5A3D;
  background: #2D5A3D;
  color: #FDF8F0;
}

.modal__address-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 0.72rem;
  color: #C4982A;
  text-align: center;
  margin-bottom: 12px;
}

.modal__form {
  display: flex;
  flex-direction: column;
}

.form__group {
  margin-bottom: 12px;
}

.form__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: #3A3A3A;
  margin-bottom: 3px;
}

.form__required {
  display: inline-block;
  background: #D4AF37;
  color: #fff;
  font-size: 0.55rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: 3px;
  vertical-align: middle;
}

.form__input,
.form__textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #D8CFBF;
  border-radius: 8px;
  background: #fff;
  font-size: 0.85rem;
  color: #3A3A3A;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-color: #2D5A3D;
  box-shadow: 0 0 0 3px rgba(45, 90, 61, 0.1);
}

.form__textarea {
  resize: vertical;
  min-height: 50px;
}

.form__submit {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, #2D5A3D, #1A3A25);
  color: #FDF8F0;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px;
  border-radius: 50px;
  border: none;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 16px rgba(45, 90, 61, 0.2);
  letter-spacing: 0.08em;
}

.form__submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(45, 90, 61, 0.3);
}

/* ============================
   レスポンシブ: モバイル (768px以下)
   ============================ */
@media (max-width: 768px) {
  body {
    overflow-y: auto;
    height: auto;
  }

  .hero {
    height: 35vh;
  }

  .hero__catch {
    font-size: 1.4rem;
  }

  .hero__badge {
    top: 10px;
    right: 12px;
    font-size: 0.72rem;
    padding: 6px 14px;
  }

  .availability-bar {
    height: auto;
    padding: 10px 16px;
  }

  .availability-bar__main {
    font-size: 0.85rem;
  }

  .main-content {
    display: block;
    height: auto;
    overflow: visible;
  }

  /* AI相談: 折りたたみ式 */
  .chat-column {
    width: 100%;
    border-right: none;
    display: none;
    max-height: 50vh;
  }

  .chat-column.is-open {
    display: flex;
  }

  .mobile-chat-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: fixed;
    bottom: 56px;
    right: 12px;
    z-index: 900;
    background: #2D5A3D;
    color: #FDF8F0;
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(45, 90, 61, 0.3);
  }

  .mobile-chat-toggle__icon {
    font-size: 1rem;
  }

  /* タブ */
  .tabs-column {
    width: 100%;
  }

  .tabs__nav {
    padding: 8px 12px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tabs__nav::-webkit-scrollbar {
    display: none;
  }

  .tabs__btn {
    padding: 8px 12px;
    font-size: 0.75rem;
    flex: 0 0 auto;
  }

  .tabs__panel {
    overflow-y: visible;
  }

  .tab-inner {
    flex-direction: column;
    padding: 10px 12px;
    gap: 10px;
  }

  .tab-inner__left,
  .tab-inner__right {
    width: 100%;
    overflow-y: visible;
  }

  /* フッターバー（固定） */
  .footer-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 950;
    height: 50px;
  }

  .footer-bar__btn {
    font-size: 0.85rem;
  }

  /* モーダル */
  .modal {
    padding: 24px 18px;
    max-height: 85vh;
  }

  .modal__date-btns {
    flex-wrap: wrap;
  }

  .modal__date-btn {
    flex: 0 0 calc(50% - 3px);
  }
}

/* ============================
   デスクトップ微調整
   ============================ */
@media (min-width: 769px) {
  .header__tel {
    font-size: 0.9rem;
  }

  .tabs__btn {
    font-size: 0.82rem;
    padding: 10px 12px;
  }

  /* スクロールバー（WebKit） */
  .chat__window::-webkit-scrollbar,
  .tab-inner__left::-webkit-scrollbar,
  .tab-inner__right::-webkit-scrollbar,
  .tabs__panel::-webkit-scrollbar {
    width: 4px;
  }

  .chat__window::-webkit-scrollbar-track,
  .tab-inner__left::-webkit-scrollbar-track,
  .tab-inner__right::-webkit-scrollbar-track,
  .tabs__panel::-webkit-scrollbar-track {
    background: transparent;
  }

  .chat__window::-webkit-scrollbar-thumb,
  .tab-inner__left::-webkit-scrollbar-thumb,
  .tab-inner__right::-webkit-scrollbar-thumb,
  .tabs__panel::-webkit-scrollbar-thumb {
    background: #D4CFC7;
    border-radius: 4px;
  }
}

/* 大画面 */
@media (min-width: 1200px) {
  .hero__catch {
    font-size: 2.2rem;
  }
}
