/* デザインの改善（塩野さん承認済みの箇所だけ。2026-10-22 承認） */

/* 1. スクロールしたときに、ヘッダーの後ろに本文が透けて見えないようにする。
      これまでの半透明の黒（rgba(0,0,0,.8)）は、トップの写真の上ではほぼ黒、白い背景の上では濃い灰色に見えていた。
      その間の色で、サイトの中で使っている黒（「PAGE TOP」ボタンと同じ #1e1e1e）にした。 */
.p-header {
  background: #1e1e1e;
}

/* 2. スマホでは、「PAGE TOP」とAIチャットのボタンを画面の下の帯の中に置き、本文やボタンに重ならないようにする。
      帯の高さの分だけページの下に余白をとるので、ページの最後まで隠れずに読める。 */
.c-sp-dock {
  display: none;
}
@media screen and (max-width: 767px) {
  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }
  /* 白い帯は画面を狭くするのでやめた（2026-11-02 塩野さん）。ボタンは帯なしで画面の下に浮かせる */
  .c-sp-dock {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(64px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.12);
    z-index: 9993;
    pointer-events: none;
  }
  /* チャットのボタンを、帯より手前に表示する */
  #chatcata-widget-host {
    z-index: 9995 !important; /* 帯（9993）・PAGE TOP（9994）より手前、メニュー（9996）より奥 */
  }
  .c-page-top {
    left: 12px;
    right: auto;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    width: 52px;
    height: 52px;
    gap: 2px;
    padding: 6px;
  }
  .c-page-top:before {
    width: 16px;
  }
  .c-page-top__text {
    font-size: 0.45rem;
  }
}

/* 3. 取材申し込みの「取材希望日時」を、カレンダーと時刻の選択にした（2026-10-23 承認）。
      スマホでも選びやすいよう、ブラウザ標準の日付・時刻の入力欄を使う。
      入力欄の色・枠・角丸は main.css の指定がそのまま効くので、ここでは並べ方だけ決める。 */
.p-contact-form__datetime {
  display: grid;
  gap: 8px;
}
.p-contact-form__datetime-times {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}
.p-contact-form__datetime-sep {
  text-align: center;
}
/* iOS・Android で、標準の日付／時刻の入力欄が高さを失わないようにする（destyle.css の appearance:none への対応） */
.p-contact-form input[type="date"],
.p-contact-form input[type="time"] {
  -webkit-appearance: none;
  appearance: none;
  min-height: 42px;
}
/* 休館日の注釈は、スマホでは日付欄のすぐ下、パソコンでは日付と時刻の下の行に置く */
.p-contact-form__datetime-note {
  display: block;
}
@media screen and (min-width: 768px) {
  .p-contact-form__datetime {
    grid-template-columns: minmax(0, 240px) minmax(0, 300px) minmax(0, 1fr);
    align-items: center;
    gap: 12px 20px;
  }
  .p-contact-form__datetime-date {
    grid-area: 1 / 1;
  }
  .p-contact-form__datetime-times {
    grid-area: 1 / 2;
  }
  .p-contact-form__datetime-note {
    grid-area: 2 / 1 / auto / -1;
  }
}

/* 4. 発行日・放送日：日付の横に「未定」のチェックを置く（2026-10-23 承認） */
.p-contact-form__datetime-undecided-box > label {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.p-contact-form__datetime--undecided {
  grid-template-columns: minmax(0, 1fr) auto;
}
.p-contact-form__datetime--undecided .p-contact-form__datetime-date {
  grid-area: 1 / 1;
}
.p-contact-form__datetime--undecided .p-contact-form__datetime-undecided-box {
  grid-area: 1 / 2;
}
.p-contact-form__datetime--undecided .p-contact-form__datetime-times {
  grid-area: 2 / 1 / auto / -1;
}
@media screen and (min-width: 768px) {
  .p-contact-form__datetime--undecided {
    grid-template-columns: minmax(0, 240px) auto minmax(0, 300px) minmax(0, 1fr);
  }
  .p-contact-form__datetime--undecided .p-contact-form__datetime-times {
    grid-area: 1 / 3;
  }
}
/* 使えなくした入力欄は、薄く見せる */
.p-contact-form input:disabled {
  opacity: 0.5;
}

/* 5. トップのファーストビューの背景画像を、チラシ表紙の絵（串本町からロケットが打ち上がる）に差し替えた（2026-10-24 承認）。
      パソコンは 16:9 に切り、上の黒い部分を落としてロケットと発射地点（串本）が入るようにした。
      これまでは「想いは、宇宙へ」が背景画像に焼き込まれていたが、切り方が変わると位置がずれるため、
      文字だけを別の画像（mv-copy.webp）にして、今までとまったく同じ位置に重ねている。 */
.p-mv__copy {
  position: absolute;
  left: 71.8%;
  bottom: 14.4%;
  width: 23.2%;
  height: auto;
  z-index: 6;
}
@media screen and (max-width: 959px) {
  .p-mv__copy {
    left: 4.9%;
    top: 17.9%;
    bottom: auto;
    width: 48.6%;
  }
}

/* 6. （削除）ヘッダーの所在地の一文は、ファーストビューのコピーの下に移した（2026-10-25 塩野さんの指示。renewal-top.css の .r-fv__place） */

/* 7. 言語の切り替え：略号（EN・KOなど）をやめ、日本語名のプルダウンに。言語は6つ（2026-10-25 塩野さんの指示。トルコ語は必須） */
.r-lang { align-items: center; display: flex; flex-shrink: 0; gap: 6px; margin-left: 14px; }
.r-lang__icon {
  background: currentColor;
  color: #fff;
  display: inline-block;
  height: 18px;
  width: 18px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20M12 2a15 15 0 0 1 0 20M12 2a15 15 0 0 0 0 20'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20M12 2a15 15 0 0 1 0 20M12 2a15 15 0 0 0 0 20'/%3E%3C/svg%3E") center / contain no-repeat;
}
.r-lang__label { color: #fff; font-size: 0.7rem; font-weight: 700; white-space: nowrap; }
.r-lang__select {
  appearance: none;
  -webkit-appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M0 0h10L5 6z' fill='%23003867'/%3E%3C/svg%3E") right 8px center / 9px 6px no-repeat;
  border: 1px solid #c9d3dd;
  border-radius: 3px;
  color: #1e1e1e;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 7px 26px 7px 10px;
}
.r-lang__select:focus-visible { outline: 2px solid var(--c-sky, #43bfef); outline-offset: 2px; }
/* パソコンのヘッダー：ナビの右端に、ナビの文字と高さを合わせて置く */
.p-header__nav .r-lang { align-self: center; transform: translateY(-4px); }
/* スマホのメニュー：ロゴの下に置く */
.p-sp-nav .r-lang { justify-content: center; margin: 12px 0 4px; }
.p-sp-nav .r-lang__select { font-size: 0.8rem; padding: 9px 30px 9px 12px; }
/* パソコンのヘッダーでは「Language」の文字を省く（地球のマークと「言語を選択」で分かる）。
   翻訳するとナビの文字数が増えるので、2段にならないよう余白を残しておく */
@media screen and (min-width: 960px) {
  .p-header__nav .r-lang__label { display: none; }
  .p-header__nav .r-lang { margin-left: 8px; }
}
/* 1499px までは地球のマークだけにし、マークを押すと言語の一覧が開く。
   英語・トルコ語に翻訳するとナビの文字数が2割ほど増えるので、ここで幅を空けておく */
@media screen and (min-width: 960px) and (max-width: 1499px) {
  .p-header__nav .r-lang { position: relative; }
  .p-header__nav .r-lang__icon { height: 22px; width: 22px; }
  .p-header__nav .r-lang__select { cursor: pointer; height: 100%; inset: 0; opacity: 0; padding: 0; position: absolute; width: 100%; }
}


/* ================================================================
   8. ヘッダーメニュー：団体のお客様を目立つボタンに（2026-10-25）
   ================================================================ */
.p-nav__item--cta { margin-left: 8px; }
.p-nav__item--cta .p-nav__name { align-items: center; background: #e8383d; border-radius: 4px; color: #fff; font-weight: 700; height: auto; margin-bottom: 4px; padding: 8px 14px; }
.p-nav__item--cta .p-nav__name:hover { background: #c92a30; opacity: 1; }
.p-sp-nav__item--cta .p-sp-nav__name { background: #e8383d; border-radius: 4px; color: #fff !important; font-weight: 700; justify-content: center; margin-top: 12px; padding-left: 12px; padding-right: 12px; text-align: center; }

/* 項目が9つに増え、パソコンでナビが2段に崩れていたので、左右の余白を 16px→13px にする。
   この3pxで、いちばん苦しい「1500px以上・日本語」で必要1051px→997pxとなり、
   使える1043pxに46pxの余裕ができる（960pxや、文字数が増える英語・トルコ語でも1段） */
@media screen and (min-width: 960px) {
  .p-header__nav .p-nav > .p-nav__item > .p-nav__name { padding-left: 13px; padding-right: 13px; }
}
/* 960〜1099px はナビの文字がもともと12pxに縮むが、それでも9項目は入りきらないので
   左右の余白をさらに詰める（必要803px→695px、使える幅は960pxのとき750px） */
@media screen and (min-width: 960px) and (max-width: 1099px) {
  .p-header__nav .p-nav > .p-nav__item > .p-nav__name { padding-left: 7px; padding-right: 7px; }
}

/* 8. フッターの一番下に、施設の署名を1段だけ置く（2026-10-29 塩野さんの指示）。
      営業時間・住所・メール・電話の大きなアイコンの帯はやめた。
      文字は背景（#1e1e1e）の上で読める明るさにしてある。 */
.p-footer-sign {
  align-items: center;
  border-top: 1px solid hsla(0, 0%, 100%, 0.25);
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  justify-content: space-between;
  margin-top: 64px;
  padding-top: 32px;
  text-align: left;
}
.p-footer-sign__id {
  align-items: center;
  display: flex;
  gap: 16px;
}
.p-footer-sign__logo {
  height: auto;
  width: 140px;
}
.p-footer-sign__name {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.5;
}
.p-footer-sign__info {
  color: #fff;
  font-size: 0.85rem;
  line-height: 1.9;
}
.p-footer-sign__link {
  color: #fff;
  text-decoration: underline;
}
.p-footer-sign__note {
  color: hsla(0, 0%, 100%, 0.85);
  font-size: 0.72rem;
  line-height: 1.7;
  margin-top: 6px;
}
@media screen and (min-width: 768px) {
  .p-footer-sign__info {
    text-align: right;
  }
  /* パソコンでは電話番号を押しても何も起きないようにする（今までのサイトと同じ） */
  .p-footer-sign__tel {
    pointer-events: none;
  }
}
@media screen and (max-width: 767px) {
  .p-footer-sign {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    margin-top: 48px;
    padding-top: 24px;
  }
  .p-footer-sign__info {
    font-size: 0.8rem;
  }
  .p-footer-sign__logo {
    width: 104px;
  }
  /* 施設名が2行に折れないようにする */
  .p-footer-sign__name {
    font-size: 0.85rem;
  }
}

/* 9. 下層ページの縦の余白を詰める（2026-10-29 塩野さんの指示）。
      これまでは セクション間150px・上下150px で、1画面に文字が少ししか入らなかった。
      /renewal/design/ の決まり（余白は4の倍数・最大128px、スマホは80px）に合わせて、
      ページごとではなく共通のCSSでまとめて詰める。
      下の余白に足している 4.78614vw は、波の区切りが上に重なる分（もとのまま）。 */
.p-page__contents {
	gap: 96px;
	padding: 96px 0 calc(96px + 4.78614vw);
}
.p-container {
	row-gap: 32px;
}
.p-section__subsection-area {
	gap: 64px;
}
.p-section__subsection-area--gap100 {
	gap: 72px;
}
.p-subsection__title {
	padding-bottom: 28px;
}
.p-top-section {
	padding: 96px 0;
}
/* 上の指定だけでは足りない。元のCSSには、何番目の帯かで上下の余白を変える指定（150px・200px、
   一部は !important）があるので、同じ形で上書きする */
.p-page__contents:nth-child(even of .p-page__contents) {
	padding-bottom: 96px;
}
.p-page__contents:nth-child(odd of .p-page__contents):not(:nth-child(1 of .p-page__contents)) {
	padding-top: calc(96px + 4.78614vw);
}
.p-page__contents:last-of-type {
	padding-bottom: calc(96px + 4.78614vw) !important;
}
.p-page__contents:last-of-type.large-bottom {
	padding-bottom: calc(120px + 4.78614vw) !important;
}
@media screen and (max-width: 767px) {
	.p-page__contents {
		gap: 56px;
		padding: 56px 0 calc(56px + 4.78614vw);
	}
	.p-page__contents:nth-child(even of .p-page__contents) {
		padding-bottom: 56px;
	}
	.p-page__contents:nth-child(odd of .p-page__contents):not(:nth-child(1 of .p-page__contents)) {
		padding-top: calc(56px + 4.78614vw);
	}
	.p-page__contents:last-of-type {
		padding-bottom: calc(56px + 4.78614vw) !important;
	}
	.p-page__contents:last-of-type.large-bottom {
		padding-bottom: calc(72px + 4.78614vw) !important;
	}
	.p-container {
		row-gap: 24px;
	}
	.p-section__subsection-area,
	.p-section__subsection-area--gap100 {
		gap: 40px;
	}
	.p-subsection__title {
		padding-bottom: 20px;
	}
	.p-top-section {
		padding: 64px 0;
	}
}

/* 10. フッターのページ一覧の文字を、黒い背景の上で読める明るさにする
      （2026-10-29 塩野さんの指示）。これまでは灰色で読みにくかった。 */
.p-footer-cnav__link,
.p-footer-nav__name,
.p-footer-nav__name--no-link {
	color: #fff;
}
.p-footer-cnav__link {
	opacity: 1;
}
.p-footer-cnav__link:hover {
	text-decoration: underline;
}

/* 11. Sora-Miruとは：名前の由来のボタンを、説明文のすぐ下で見落とされない大きさにする
      （2026-10-29 塩野さんの指示）。フロア構成の帯を外したぶん、このボタンが主役になる。 */
.about-sora-miru .p-top-about__button {
	font-size: 1rem;
	margin-top: 24px;
	min-height: 56px;
	padding: 14px 32px;
}

/* 12. Sora-Miruとは：フロア紹介のリンクの下に、営業時間・料金（主）とアクセスのボタンを並べる
      （2026-10-29 塩野さんの指示）。スマホでは縦に並べ、押しやすい高さにする。 */
.about-sora-miru .p-about-links {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	justify-content: center;
	margin-top: 24px;
}
/* 「フロアごとの紹介はこちら」も含め、この帯のボタンは同じ大きさにそろえる */
.about-sora-miru .p-page__contents--bg-light-blue .p-button {
	font-size: 1rem;
	min-height: 56px;
	padding: 14px 32px;
}
/* 「アクセス」は副のボタン：紺の文字＋白い面（押すと紺に反転する） */
.about-sora-miru .p-about-links__sub {
	color: #003867;
	font-weight: 700;
}
.about-sora-miru .p-about-links__sub:before {
	transform: scaleX(0);
}
.about-sora-miru .p-about-links__sub:hover {
	color: #fff;
}
.about-sora-miru .p-about-links__sub:hover:before {
	transform: scale(1);
}
@media screen and (max-width: 767px) {
	.about-sora-miru .p-about-links {
		align-items: stretch;
		flex-direction: column;
	}
	.about-sora-miru .p-about-links .p-button {
		width: 100%;
	}
}

/* --------------------------------------------------
   13. イベント一覧の写真を切り取らない
   チラシは縦長のものが多く、これまでは枠（265:220）に合わせて
   まわりを切り落としていたため、真ん中だけが大きく見えていた。
   枠の大きさはそのままに、写真は元の縦横比のまま全体を入れる。
-------------------------------------------------- */
.p-event-list__image {
	object-fit: contain;
}
/* 余白は帯と同じ色にして、写真が浮いて見えないようにする */
.p-event-list__image-wrapper {
	background: #fff;
}
