@charset "UTF-8";
/* =========================================================
   observatory.css
   東六甲展望台ページ固有のスタイル。
   共通パーツ（ヘッダー・フッター・パンくず・ページ見出し・
   見出しラベル・2カラムのセクション）は common.css を参照。
   ========================================================= */

/* =========================================================
   リード文
   ========================================================= */
.p-observatory__intro {
  padding-top: 32px;
}

.p-observatory__lead {
  line-height: 2;
  letter-spacing: 0.54px;
}

/* =========================================================
   展望台の写真（下半分がティールの帯に重なる）
   ========================================================= */
.p-observatory__visual {
  position: relative;
  z-index: 1;
  width: min(1328px, calc(100% - 24px));
  margin: 42px auto 0;
}

/* 横長に切り抜く。位置は Figma 2779:4716 の切り抜き（2026-11-19 の写真差し替え時）に合わせた */
.p-observatory__visual-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1328 / 520;
  object-fit: cover;
  object-position: 50% 28%;
}

/* 雲・木（位置はデザイン 1440px 幅の実測値） */
.p-observatory__cloud,
.p-observatory__tree {
  position: absolute;
  height: auto;
}

.p-observatory__cloud--1 {
  top: -17px;
  right: 45px;
  width: 95px;
}

.p-observatory__cloud--2 {
  top: 39px;
  right: -12px;
  width: 70px;
}

.p-observatory__cloud--3 {
  top: 245px;
  left: -22px;
  width: 70px;
}

.p-observatory__tree--1 {
  right: 198px;
  bottom: -37px;
  width: 29px;
}

.p-observatory__tree--2 {
  right: 158px;
  bottom: -37px;
  width: 29px;
}

/* =========================================================
   東六甲展望台の夜景（ティールの帯）
   ========================================================= */
/* 写真の下 259px が帯に重なる（デザイン実測値） */
.p-observatory__night {
  position: relative;
  margin-top: -259px;
  padding: 390px 0 146px;
  background-color: #3ea1ac;
  overflow: hidden;
}

/* 右下の円弧・左下の車と木（飾り） */
.p-observatory__night-wave {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 701px;
  height: auto;
  pointer-events: none;
}

.p-observatory__night-car {
  position: absolute;
  bottom: 0;
  left: 85px;
  width: 218px;
  height: auto;
  pointer-events: none;
}

.p-observatory__night-inner {
  position: relative;
  z-index: 1;
}

/* ザラザラのノイズ。帯の地・円弧・車の上に重ね、見出しや写真には掛けない
   （Figma も帯のグループの一番上にノイズの面がある）。
   共通の noise.png は中身が透明で模様が出ないため、Figma から書き出した
   noise-texture.png を使っている。素材は軽くするため表示サイズまで縮めており、
   そのぶん模様が平均化されて薄くなるので、不透明度は Figma の 50% ではなく 75%
   （画面での明るさのばらつきが Figma と同じになる値） */
.p-observatory__night::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url(../img/noise-texture.png);
  background-repeat: repeat;
  background-size: 307.2px 307.2px;
  mix-blend-mode: soft-light;
  opacity: 0.75;
  pointer-events: none;
}

.p-observatory__night-head {
  position: relative;
  width: fit-content;
  margin-inline: auto;
  color: #fff;
  text-align: center;
}

.p-observatory__night-sparkle {
  position: absolute;
  top: -41px;
  left: -60px;
  width: 72px;
  height: auto;
}

.p-observatory__night-title {
  font-size: 4.4rem;
  font-weight: 700;
  line-height: 1.4;
}

.p-observatory__night-en {
  display: block;
  margin-top: 5px;
  font-family: "Roboto", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.p-observatory__night-text {
  margin-top: 23px;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 0.48px;
  text-align: center;
}

/* --- 写真ギャラリー --- */
.p-observatory__gallery {
  position: relative;
  margin-top: 28px;
  padding-bottom: 29px;
  background-color: #fff;
  border-radius: 6px;
}

.p-observatory__gallery-main {
  overflow: hidden;
  border-radius: 6px 6px 0 0;
}

/* デザインは 1200 × 480（2.5:1）だが、写真（3:2）を横に約1.7倍引き伸ばして
   入れているため、比率を保つと上下が4割切れて拡大されたように見える。
   ゆがませずに切り落としを減らすため、枠を 16:9 に高くしている（決定済み） */
.p-observatory__gallery-main img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* サムネイルの列の左右に矢印 */
.p-observatory__gallery-nav {
  position: relative;
  margin-top: 19px;
}

.p-observatory__gallery-thumbs {
  /* 枚数に合わせて1列に等分で並べる（2026-11-19 に4枚→5枚。Figma 2787:5281） */
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 10px;
  width: min(1074px, calc(100% - 126px));
  margin-inline: auto;
}

/* 表示中の写真はグレーの枠（PC 6px / SP 4px）。枠は写真の上に重ねず、
   写真を枠の内側に収める（Figma と同じ。重ねると写真の端が欠けて見える）。
   箱の大きさは aspect-ratio で決め、写真は内側いっぱいに置く */
.p-observatory__gallery-thumb {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 261 / 161;
  border: 0 solid #efefef;
  cursor: pointer;
  transition: border-width 0.2s ease;
}

.p-observatory__gallery-thumb.is-current {
  border-width: 6px;
}

.p-observatory__gallery-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* 丸矢印（白丸＋影）。SVG は影のぶん 78px あるので、56px の箱からはみ出させる */
.p-observatory__gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 1;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}

.p-observatory__gallery-arrow img {
  position: absolute;
  top: -12.5%;
  left: -19.64%;
  width: 139.29%;
  max-width: none;
  height: auto;
}

.p-observatory__gallery-arrow--prev {
  left: 37px;
}

.p-observatory__gallery-arrow--next {
  right: 35px;
}

/* =========================================================
   概要・アクセス・ご利用のお願い（左に見出し・右に本文）
   ========================================================= */
/* 本文の幅はこのページだけ 960px（共通は 880px）。
   1199px 以下は縦並びになり flex-basis が高さとして効いてしまうので、PC だけに限る */
@media (min-width: 1200px) {
  .p-observatory__overview .l-sub-section__body,
  .p-observatory__access .l-sub-section__body,
  .p-observatory__request .l-sub-section__body {
    flex-basis: 960px;
  }
}

.p-observatory__overview {
  padding-top: 98px;
}

/* 会社概要の表（company.css の .p-company__table）と同じ組み方。
   項目名の幅だけ違う（150px） */
.p-observatory__table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.p-observatory__table th,
.p-observatory__table td {
  vertical-align: top;
  text-align: left;
  font-size: 1.6rem;
  line-height: 1.6;
}

.p-observatory__table th {
  width: 150px;
  padding: 20px 16px 22px;
  border-bottom: 1px solid #3ea1ac;
  font-weight: 700;
}

.p-observatory__table td {
  padding: 20px 12px 22px 20px;
  border-bottom: 1px solid #d4d4d4;
  font-weight: 500;
}

.p-observatory__table tr:first-child th,
.p-observatory__table tr:first-child td {
  padding-top: 21px;
}

.p-observatory__table tr:first-child th {
  border-top: 1px solid #3ea1ac;
}

.p-observatory__table tr:first-child td {
  border-top: 1px solid #d4d4d4;
}

/* 休憩スペースの写真（Figma 2840:3349・492×318。文字の下 20px） */
.p-observatory__table-img {
  display: block;
  width: 100%;
  max-width: 492px;
  height: auto;
  aspect-ratio: 492 / 318;
  margin-top: 20px;
  object-fit: cover;
}

/* キッチンカーの「こちら」。よくある質問の冒頭の文中リンク（.p-faq__notice a）と同じ見た目 */
.p-observatory__table-link {
  color: #3ea1ac;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

/* --- アクセス --- */
.p-observatory__access {
  padding-top: 98px;
}

.p-observatory__map {
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
}

.p-observatory__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* 徒歩・自転車は来場できない旨の案内 */
.p-observatory__caution {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 16px;
  padding: 28px 24px;
  background-color: rgba(62, 161, 172, 0.08);
  border-radius: 8px;
}

.p-observatory__caution-icon {
  flex: none;
  width: 31px;
  height: 31px;
}

.p-observatory__caution-text {
  flex: 1;
}

.p-observatory__caution-illust {
  flex: none;
  align-self: center;
  width: 187px;
  height: auto;
  /* イラスト（83px）は上下の余白にはみ出して置く（デザインでは箱の上から 15px）。
     はみ出さないと箱が文字2行ぶん（113.6px）より 25px 高くなる */
  margin-block: -12.7px;
}

/* --- ご利用のお願い --- */
.p-observatory__request {
  padding-top: 87px;
  padding-bottom: 100px;
}

/* 1行目を見出しの1行目の高さにそろえる */
.p-observatory__request-list {
  margin-top: 7px;
}

.p-observatory__request-list li {
  position: relative;
  padding-left: 18px;
}

/* 行頭はティールの丸（9px） */
.p-observatory__request-list li::before {
  content: "";
  position: absolute;
  top: calc(0.9em - 4.5px);
  left: 0;
  width: 9px;
  height: 9px;
  background-color: #3ea1ac;
  border-radius: 50%;
}

/* =========================================================
   1199px以下
   ========================================================= */
@media (max-width: 1199px) {
  .p-observatory__overview {
    padding-top: 48px;
  }

  .p-observatory__table th,
  .p-observatory__table td {
    font-size: 1.4rem;
  }

  /* 「駐車スペース」「キッチンカー」（6文字）が 102px に収まるよう、
     右の余白は 4px に詰める（デザインも折り返していない） */
  .p-observatory__table th {
    width: 102px;
    padding: 20px 4px 21px 12px;
    line-height: 1.71;
  }

  .p-observatory__table td {
    padding: 20px 12px 21px 13px;
    line-height: 1.8;
  }

  .p-observatory__access {
    padding-top: 64px;
  }

  .p-observatory__map {
    height: 196px;
  }

  .p-observatory__caution {
    margin-top: 14px;
  }

  .p-observatory__request {
    padding-top: 64px;
    padding-bottom: 92px;
  }

  .p-observatory__request-list {
    margin-top: 0;
  }
}

/* =========================================================
   タブレット（768〜1199px）：メイン写真を 16:9 に
   ========================================================= */
/* 2026-11-25：PC と同じ 1328:520（約2.5:1）のままだと、写真（3:2）の上下が4割近く
   切り落とされ「切り抜かれすぎ」に見えるため、夜景のメイン写真と同じ 16:9 にする。
   帯との重なりは PC と同じく写真の下半分（写真の高さ＝(画面幅 - 24px) × 9/16 の半分） */
@media (min-width: 768px) and (max-width: 1199px) {
  .p-observatory__visual-img {
    aspect-ratio: 16 / 9;
    object-position: 50% 40%;
  }

  .p-observatory__night {
    margin-top: calc((100vw - 24px) * -0.28125);
    padding-top: calc((100vw - 24px) * 0.28125 + 131px);
  }
}

/* =========================================================
   767px以下
   ========================================================= */
@media (max-width: 767px) {
  .p-observatory__intro {
    padding-top: 24px;
  }

  .p-observatory__lead {
    line-height: 1.9;
    letter-spacing: 0.48px;
  }

  .p-observatory__visual {
    margin-top: 40px;
  }

  .p-observatory__visual-img {
    aspect-ratio: 351 / 240;
    object-position: 50% 50%;
  }

  /* SP のデザインには雲・木が無い */
  .p-observatory__cloud,
  .p-observatory__tree {
    display: none;
  }

  .p-observatory__night {
    margin-top: -120px;
    padding: 190px 0 120px;
  }

  .p-observatory__night-wave {
    width: 307px;
  }

  .p-observatory__night-car {
    left: 10px;
    width: 132px;
  }

  .p-observatory__night-sparkle {
    top: -26px;
    left: -43px;
    width: 50px;
  }

  .p-observatory__night-title {
    font-size: 2.8rem;
  }

  .p-observatory__night-en {
    margin-top: 4px;
    font-size: 1.2rem;
    line-height: 1.25;
    letter-spacing: 1.2px;
  }

  .p-observatory__night-text {
    margin-top: 15px;
    font-size: 1.4rem;
    line-height: 1.57;
  }

  /* 写真は画面幅いっぱい（.l-inner の左右 20px を打ち消す） */
  .p-observatory__gallery {
    margin: 26px -20px 0;
    padding-bottom: 13px;
  }

  .p-observatory__gallery-main img {
    aspect-ratio: 375 / 240;
  }

  /* 矢印はメイン写真の右下に重ねる（ギャラリー基準で置く） */
  .p-observatory__gallery-nav {
    position: static;
    margin-top: 9px;
  }

  /* サムネイルは横スクロール（表示中のものを main.js で中央へ寄せる） */
  .p-observatory__gallery-thumbs {
    display: flex;
    gap: 7px;
    width: auto;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .p-observatory__gallery-thumbs::-webkit-scrollbar {
    display: none;
  }

  .p-observatory__gallery-thumbs li {
    flex: none;
    width: 181px;
  }

  .p-observatory__gallery-thumb {
    aspect-ratio: 181 / 111.6;
  }

  .p-observatory__gallery-thumb.is-current {
    border-width: 4px;
  }

  .p-observatory__gallery-arrow {
    top: auto;
    bottom: 151.6px;
    width: 45px;
    height: 45px;
    transform: none;
  }

  .p-observatory__gallery-arrow--prev {
    right: 77px;
    left: auto;
  }

  .p-observatory__gallery-arrow--next {
    right: 22px;
  }

  /* 来場できない旨：アイコン＋文章の下にイラストを中央に */
  .p-observatory__caution {
    flex-wrap: wrap;
  }

  .p-observatory__caution-icon {
    width: 30px;
    height: 30px;
  }

  .p-observatory__caution-text {
    flex-basis: calc(100% - 44px);
    line-height: 2.06;
  }

  .p-observatory__caution-illust {
    width: 171px;
    margin: 2px auto 0;
  }
}

/* =========================================================
   ホバー
   ========================================================= */
@media (hover: hover) and (min-width: 768px) {
  .p-observatory__table-link:hover {
    text-decoration: none;
  }

  .p-observatory__gallery-arrow img {
    transition: transform 0.3s ease;
  }

  .p-observatory__gallery-arrow--prev:hover img {
    transform: translateX(-4px);
  }

  .p-observatory__gallery-arrow--next:hover img {
    transform: translateX(4px);
  }
}
