@import url("common.css");

/* 基本設定 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg);
  color: var(--text-black);
  overflow-x: hidden;
}

/* ヘッダー：ロゴとカウントダウン */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  height: 60px;
  background: var(--white);
}

.logo {
  margin: 0;
  font-size: inherit;
}

.logo img {
  height: 40px;
  width: auto;
}

.countdown {
  font-size: 1.2rem;
  font-weight: bold;
}

#days {
  font-size: 3rem;
  letter-spacing: 2px;
  color: var(--accent-red);
  padding: 0 10px;
}

/* メインコンテンツ（PC：横並び） */
.container {
  display: flex;
  color: var(--white);
  justify-content: space-between;
  align-items: center;
  height: calc(100vh - 60px);
}

.spot {
  position: relative; /* リンクの基準 */
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-size: cover;
  background-position: center;
  height: 100%;
  padding: 0 16px;
}

/* 背景画像（publicフォルダを参照） */
.river {
  background-image: linear-gradient(rgb(0 0 0 / 10%), rgb(0 0 0 / 10%)), url("images/banner/kawa.jpg");
}

.river:hover {
  /* --accent-blue に 43%/72% 透明度 */
  background-image: linear-gradient(#418ad36e, #418ad3b8), url("images/banner/kawa.jpg");
  transition: all 0.3s ease;
}

.mountain {
  background-image: linear-gradient(rgb(0 0 0 / 10%), rgb(0 0 0 / 10%)), url("images/banner/yama.jpg");
  background-position: left center;
}

.mountain:hover {
  /* --accent-green に 37%/72% 透明度 */
  background-image: linear-gradient(#30a0325f, #30a032b8), url("images/banner/yama.jpg");
  background-position: left center;
  transition: all 0.3s ease;
}

.title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: center;
}

.spot.mountain .title {
  align-items: flex-end;
  text-align: right;
}

.title h2 {
  font-size: 6rem;
  font-weight: 500;
  text-align: center;
  margin: 0;
  display: inline-block;
  border-bottom: 4px solid var(--white);
}

/* 予約ボタンはリンクの上に出す */

.bottom-row {
  position: relative;
  z-index: 2;
  display: flex;
}

/* .title h2::after rules removed */

.subtitle {
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 2px;
  padding-top: 10px;
}

.enter-btn {
  display: inline-block;
  width: 100px;
  height: 100px;
  line-height: 100px;
  color: var(--white);
  border: 3px solid var(--white);
  border-radius: 50%;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

/* セクション全体をカバーするリンク */
.enter-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: pointer;
}

.enter-btn:hover {
  background: rgb(255 255 255 / 20%);
  zoom: 1.1;
}

.enter-btn:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 4px;
}

.bottom-row a:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 2px;
}

.middle-row {
  flex-grow: 1;
  display: flex;
  align-items: center;
  text-align: center;
  justify-content: center;
  width: 100%;
  letter-spacing: 2px;
}

.bottom-row a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.info-box {
  padding: 18px;
  background: rgb(65 138 211 / 84%);
  box-shadow: 0 2px 6px rgb(0 0 0 / 40%);
  transition: all 0.3s ease;
}

.info-box:hover {
  font-weight: bold;
  background: var(--accent-blue);
  cursor: pointer;
  transform: scale(1.1);
}

.spot.river .bottom-row {
  justify-content: flex-end;
  padding-bottom: 20px;
}

.spot.mountain .bottom-row {
  justify-content: flex-start;
  padding-bottom: 20px;
}

/* 真ん中のキャッチコピー */
.center-copy {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem;
  font-weight: bold;
  font-family: "Shippori Mincho", YuMincho, "Yu Mincho", serif;
  z-index: 10;
  pointer-events: none;

  /* --- ここから縦書きの設定 --- */
  display: flex;
  flex-direction: column;
  writing-mode: vertical-rl;
  text-orientation: upright;
  letter-spacing: 0.4em;
}

/* 縦書きの時に「特等席」の方だけ位置をずらす指示 */
.center-copy span:last-child {
  padding-top: 8rem;
}

/* --- レスポンシブ（スマホ用） --- */
@media (width <= 768px) {
  .container {
    flex-direction: column;
    height: auto;
    min-height: calc(100vh - 60px);
    position: relative; /* 子要素のabsolute配置の基準 */
  }

  .spot {
    width: 100%;
    min-height: 50vh;
    padding: 16px 16px 0;
  }

  /* タイトルの文字サイズ調整 */
  .title h2 {
    font-size: 3rem; /* 6remから縮小 */
  }

  .subtitle {
    font-size: 1.2rem;
  }

  /* 中央のキャッチコピーを横書き・中央配置に */
  .center-copy {
    position: absolute;
    top: 50%;
    left: 54%;
    transform: translate(-50%, -50%);
    writing-mode: horizontal-tb;
    display: flex;
    flex-direction: column; /* ← row → column に変更（縦積み） */
    align-items: flex-start; /* 左寄せベース */
    gap: 0.3rem;
    font-size: 2rem;
    letter-spacing: 0.3em;
    width: 100%;
    pointer-events: none;
    z-index: 10;
  }

  /* スマホの時は位置のズレをリセットして中央に揃える */
  .center-copy span:last-child {
    padding-top: 0;
    margin-top: 0;
    margin-left: 2em;
  }

  /* 各スポット内のレイアウト調整 */
  .spot.river .title,
  .spot.mountain .title {
    text-align: center;
  }

  .spot.river .bottom-row,
  .spot.mountain .bottom-row {
    justify-content: flex-end; /* ボタン類も中央寄せ */
  }

  .info-box {
    font-size: 12px;
    padding: 10px;
  }

  /* ボタンサイズ調整 */
  .enter-btn {
    width: 80px;
    height: 80px;
    line-height: 80px;
    font-size: 0.9rem;
  }

  /* ヘッダーのスマホ対応 */
  header {
    padding: 5px 15px;
    height: auto;
    min-height: 50px;
  }

  .logo img {
    height: 20px;
    width: auto;
  }

  .countdown {
    font-size: 0.8rem;
  }

  #days {
    font-size: 1.6rem;
    padding: 0 4px;
  }
}
