/**
 * Flight専用CSS
 * 読み込み：header-flight.php / wp_head()の直後（現在の登録方法を維持）。
 * 画像：cssフォルダから ../images/ を参照。
 * 各章は基本指定 → 状態指定 → 画面幅別指定の順を基本とする。
 * 既存のカスケードを維持。ヒーローの表示制御は最後に置く。
 * style.css・外部CSS・HTMLのstyle属性はこのファイルの整理対象外。
 * 画面幅の境界値は元のデザインを維持（480 / 639 / 640 / 767 / 768px）。
 *
 * 目次
 * 01. ヘッダー：PC表示時の背景色
 * 02. スマホメニュー：開閉アニメーション・リンク装飾
 * 03. ヒーロー：背景のテクスチャ
 * 04. 紹介文：タブレット以上で中央揃え
 * 05. サービス紹介：タブレット以上の区切り線・余白
 * 06. セクション境界：波のループアニメーション
 * 07. 「こんなところ」：キーワードの配置・見出し
 * 08. アコーディオン式説明部
 * 09. 施設紹介：説明文の中央揃え・スマホ表示
 * 10. 施設紹介カード：見出しの配置
 * 11. スタッフ紹介：全幅バナー・人物の揺れ・スマホ調整
 * 12. 説明文：画面幅に応じた文字揃え
 * 13. 飛行機：画面を横切るアニメーション
 * 14. FAQチャット：基本表示・パネル・スマホ配置・メニュー連動
 * 15. ヒーロー：フォント準備後に文字を一度だけ表示
 * 16. 共通ナビゲーション：アンカー位置・ブログ余白
 */

/* ==========================================================================
   01. ヘッダー：PC表示時の背景色
   ========================================================================== */
@media (min-width: 768px) {
  #flight-site-header {
    background-color: rgba(255, 255, 255, 0.9) !important;
  }
}

/* ==========================================================================
   02. スマホメニュー：開閉アニメーション・リンク装飾
   ========================================================================== */
/* 右からにゅるっと出現 */
@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(110%) scaleX(0.8);
  }

  70% {
    opacity: 1;
    transform: translateX(-2%) scaleX(1.02);
    /* 少し行き過ぎて弾む質感 */
  }

  100% {
    opacity: 1;
    transform: translateX(0) scaleX(1);
  }
}

/* 右側へにゅるっと退場 */
@keyframes slideOutRight {
  0% {
    opacity: 1;
    transform: translateX(0) scaleX(1);
  }

  30% {
    transform: translateX(-1%) scaleX(0.98);
  }

  100% {
    opacity: 0;
    transform: translateX(110%) scaleX(0.8);
  }
}

.animate-slide-in {
  animation: slideInRight 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

.animate-slide-out {
  animation: slideOutRight 0.55s cubic-bezier(0.7, 0, 0.84, 0) forwards !important;
}

/* 全リンク共通の基本スタイル（文字サイズ統一：15px） */
#mobile-menu a.mobile-menu-link {
  display: block !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  padding: 0.875rem 0 !important;
  border-bottom: 2px dashed rgba(255, 215, 0, 0.5) !important;
  text-decoration: none !important;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    text-shadow 0.2s ease !important;
}

#mobile-menu a.mobile-menu-link:hover {
  color: #ffd700 !important;
  border-bottom-color: #ffd700 !important;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.8) !important;
}

/* 見学予約（赤背景） */
#mobile-menu a.runway-red {
  background-color: rgba(216, 40, 28, 0.85) !important;
}

/* Blog（半透明白背景） */
#mobile-menu a.runway-blog {
  background-color: rgba(255, 255, 255, 0.1) !important;
  border-bottom: none !important;
  font-family: "Outfit", sans-serif !important;
}

/* ==========================================================================
   03. ヒーロー：背景のテクスチャ
   ========================================================================== */
.hero-texture {
  position: relative;
  overflow: hidden;
}

.hero-texture::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/texture.webp");
  background-size: 500px auto !important;
  background-repeat: repeat !important;
  background-position: top left !important;
  background-attachment: scroll !important;
  opacity: 0.4;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 1;
}

/* ==========================================================================
   04. 紹介文：タブレット以上で中央揃え
   ========================================================================== */
@media (min-width: 640px) {
  .p-responsive {
    text-align: center !important;
  }
}

/* ==========================================================================
   05. サービス紹介：タブレット以上の区切り線・余白
   ========================================================================== */
@media (min-width: 640px) {
  #service-block {
    border-bottom: none !important;
    padding-bottom: 0 !important;
  }
}

/* ==========================================================================
   06. セクション境界：波のループアニメーション
   ========================================================================== */
@keyframes waveLoop {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-300px);
  }
}

.wave-wrapper {
  position: absolute;
  top: -29px;
  left: 0;
  width: 100%;
  height: 30px;
  overflow: hidden;
  pointer-events: none;
  z-index: 30;
}

.wave-track {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100% + 300px);
  height: 30px;

  background-image: url("data:image/svg+xml,%3Csvg width='300' height='30' viewBox='0 0 300 30' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M 0 0 Q 25 25, 50 0 Q 75 25, 100 0 Q 125 25, 150 0 Q 175 25, 200 0 Q 225 25, 250 0 Q 275 25, 300 0 L 300 30 L 0 30 Z' fill='%23D4E6F1'/%3E%3C/svg%3E");

  background-repeat: repeat-x;
  background-size: 300px 30px;

  animation: waveLoop 6s linear infinite;
  will-change: transform;
}

/* ==========================================================================
   07. 「こんなところ」：キーワードの配置・見出し
   ========================================================================== */
.flight-style-btn-wrap {
  display: flex;
  justify-content: center;
  gap: 12px;
}

@media (max-width: 767px) {
  .flight-style-btn-wrap {
    display: grid;
    grid-template-columns: max-content max-content;
    justify-content: center;
    justify-items: center;
    gap: 12px;
  }
}

.flexible-title {
  text-align: center;
  display: inline-block;
  max-width: 100%;
}

@media (max-width: 768px) {
  .flexible-title {
    text-align: left;
    display: block;
  }
}

/* ==========================================================================
   08. アコーディオン式説明部
   ========================================================================== */
.js-smooth-accordion > summary {
  transition: background-color 0.25s ease;
}

.js-smooth-accordion > summary::marker {
  display: none;
}

/* ==========================================================================
   09. 施設紹介：説明文の中央揃え・スマホ表示
   ========================================================================== */
.flexible-desc {
  text-align: center;
  display: inline-block;
  max-width: 100%;
}

@media (max-width: 768px) {
  .flexible-desc {
    text-align: left;
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
  }
}

/* ==========================================================================
   10. 施設紹介カード：見出しの配置
   ========================================================================== */
.flexible-card-title-wrap {
  text-align: center;
  width: 100%;
}

@media (max-width: 768px) {
  .flexible-card-title-wrap {
    text-align: left;
  }
}

.flexible-card-title {
  display: inline-block;
  text-align: left;
  max-width: 100%;
}

/* ==========================================================================
   11. スタッフ紹介：全幅バナー・人物の揺れ・スマホ調整
   ========================================================================== */
/* PC・基本設定 */
.staff-banner {
  position: relative;
  overflow: hidden;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: 24px;
  margin-bottom: 24px;
}

.staff-banner-inner {
  position: relative;
  width: 100%;
  /* バナーの最大幅を1600pxに制限する。 */
  max-width: 1600px;
  margin: 0 auto;
  overflow: hidden;
}

.staff-banner-bg {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.staff-characters {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 75%;
  margin: 0 auto;
  gap: 8px;
  transform: translateX(-24px);
  pointer-events: none;
}

.staff-character {
  display: flex;
  align-items: flex-end;
  flex-shrink: 0;
}

.staff-character img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.staff-1 {
  width: 12.5%;
}

.staff-2 {
  width: 12.5%;
}

.staff-3 {
  width: 18%;
}

.staff-4 {
  width: 15.5%;
}

.staff-5 {
  width: 14%;
}

@keyframes sway-left {
  0%,
  100% {
    transform: translateX(0) rotate(0deg);
  }

  50% {
    transform: translateX(-3px) rotate(-0.5deg);
  }
}

@keyframes sway-right {
  0%,
  100% {
    transform: translateX(0) rotate(0deg);
  }

  50% {
    transform: translateX(3px) rotate(0.5deg);
  }
}

.staff-1 img {
  animation: sway-left 5.2s ease-in-out infinite;
  transform-origin: bottom center;
}

.staff-2 img {
  animation: sway-right 6.5s ease-in-out infinite;
  animation-delay: -1.2s;
  transform-origin: bottom center;
}

.staff-3 img {
  animation: sway-left 5s ease-in-out infinite;
  animation-delay: -0.5s;
  transform-origin: bottom center;
}

.staff-4 img {
  animation: sway-right 4.3s ease-in-out infinite;
  animation-delay: -2s;
  transform-origin: bottom center;
}

.staff-5 img {
  animation: sway-left 5.6s ease-in-out infinite;
  animation-delay: -0.8s;
  transform-origin: bottom center;
}

.staff-banner-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  padding: 16px;
  text-align: center;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
}

.staff-banner-caption p {
  margin: 0;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.5;
}

@media (max-width: 639px) {
  .staff-banner {
    /* スマホでも画面端から端まで強制的に広げる */
    width: 100vw !important;
    max-width: 100vw !important;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    margin-top: 24px;
    margin-bottom: 24px;
  }

  .staff-banner-inner {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden;
  }

  .staff-banner-bg {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: cover;
  }

  .staff-characters {
    width: 80% !important;
    gap: 2px !important;
    transform: translateX(0) !important;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
  }

  .staff-banner-caption {
    padding: 10px 12px;
  }

  .staff-banner-caption p {
    line-height: 1.45;
  }
}

@media (max-width: 380px) {
  .staff-characters {
    width: 78% !important;
  }
}

/* ==========================================================================
   12. 説明文：画面幅に応じた文字揃え
   ========================================================================== */
/* デフォルト（スマホ）：左揃え */
.custom-align-text {
  text-align: left;
}

/* PC（640px以上）：中央揃え */
@media (min-width: 640px) {
  .custom-align-text {
    text-align: center;
  }
}

/* ==========================================================================
   13. 飛行機：画面を横切るアニメーション
   ========================================================================== */
@keyframes straightFlight {
  0% {
    transform: translateX(-60px) rotate(45deg);
  }

  100% {
    transform: translateX(calc(100vw + 60px)) rotate(45deg);
  }
}

.plane-straight {
  animation: straightFlight 9s linear infinite;
}

/* ==========================================================================
   14. FAQチャット：基本表示・パネル・スマホ配置・メニュー連動
   ========================================================================== */
/* 固定配置と共通設定（PCでは右下）。 */
#flight-faq {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 9999;
  font-family: "Noto Sans JP", sans-serif;
  color: #2a2a2a;
}

#flight-faq * {
  box-sizing: border-box;
}

#flight-faq button {
  cursor: pointer;
}

/* 白いガラス風のお問い合わせボタン。 */
.flight-faq-launch {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  font-size: 14px;
  font-weight: 700;
  color: #d8281c;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.88),
      rgba(255, 255, 255, 0.48) 55%,
      rgba(255, 255, 255, 0.72)
    ),
    rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    inset 1px 1px 1px rgba(255, 255, 255, 0.95),
    inset 0 -2px 4px rgba(120, 120, 120, 0.12),
    0 6px 22px rgba(40, 40, 40, 0.22);
}

.flight-faq-launch:focus-visible,
#flight-faq button:focus-visible,
#flight-faq input:focus-visible,
.flight-faq-panel a:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
}

/* チャットパネル。hidden属性が付いている間は非表示。 */
.flight-faq-panel {
  width: min(380px, calc(100vw - 24px));
  height: min(560px, calc(100dvh - 104px));
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e8ded5;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 15px 45px #2225;
}

.flight-faq-panel[hidden] {
  display: none;
}

.flight-faq-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px;
  background: #d8281c;
  color: #fff;
}

.flight-faq-head strong {
  font-size: 17px;
}

.flight-faq-head small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  margin-top: 2px;
}

.flight-faq-close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 25px;
  line-height: 1;
  padding: 3px 7px;
}

/* 会話ログとメッセージの吹き出し。 */
.flight-faq-log {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: #fdf9f5;
  font-size: 13px;
  line-height: 1.7;
}

.flight-faq-msg {
  max-width: 92%;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 10px 13px;
  border-radius: 14px;
  margin-bottom: 12px;
  background: #fff;
  border: 1px solid #e8ded5;
}

.flight-faq-msg.is-user {
  margin-left: auto;
  background: #fce8e5;
  border-color: #f4ccc7;
}

/* 定型質問：1行に1問ずつ縦に並べる */
.flight-faq-choices {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 6px;
  padding: 10px 14px;
  border-top: 1px solid #e8ded5;
}

.flight-faq-choices button {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d8281c;
  border-radius: 16px;
  background: #fff;
  color: #a51f16;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  white-space: normal;
}

.flight-faq-form {
  display: flex;
  gap: 7px;
  padding: 10px 12px;
  border-top: 1px solid #e8ded5;
}

.flight-faq-form input {
  min-width: 0;
  flex: 1;
  border: 1px solid #c9c2bc;
  border-radius: 10px;
  padding: 9px;
  font-size: 13px;
}

.flight-faq-form button {
  border: 0;
  border-radius: 10px;
  background: #d8281c;
  color: #fff;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
}

.flight-faq-form button:disabled {
  opacity: 0.5;
  cursor: wait;
}

.flight-faq-foot {
  padding: 0 12px 11px;
  font-size: 11px;
  text-align: center;
  color: #686868;
}

.flight-faq-foot a {
  color: #a51f16;
  text-decoration: underline;
  font-weight: 700;
}

.flight-faq-icon {
  display: block;
  width: 18px;
  height: 18px;
  flex: none;
}

/* スマホでは下部の固定TELボタンを避け、メニューの下に縦タブを置く */
@media (max-width: 767px) {
  #flight-faq {
    top: calc(80px + env(safe-area-inset-top));
    bottom: auto;
    right: 0px;
  }

  body.admin-bar #flight-faq {
    top: calc(80px + env(safe-area-inset-top));
  }

  .flight-faq-launch {
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 0.08em;
    gap: 7px;
    min-height: 146px;
    margin: 0;
    padding: 14px 10px;
    border-radius: 16px 0 0 16px;
  }

  .flight-faq-panel {
    width: min(380px, calc(100vw - 12px));
    height: min(
      530px,
      calc(
        100dvh - 160px - env(safe-area-inset-top) - env(safe-area-inset-bottom)
      )
    );
    margin: 0;
    border-radius: 16px 0 0 16px;
  }

  body.admin-bar .flight-faq-panel {
    height: min(
      530px,
      calc(
        100dvh - 160px - env(safe-area-inset-top) - env(safe-area-inset-bottom)
      )
    );
  }

  .flight-faq-launch[aria-expanded="true"] {
    display: none;
  }
}

/* スマホ（767px以下）：メニュー開閉とフロートボタンの移動を連動。
 * 480px以下の縦タブ指定より後に配置する。translateで既存transformを維持。
 * mobile-menu-open は flight.main.js の 02 で切り替える。 */
@media (max-width: 767px) {
  #flight-faq-launch {
    translate: 0 0;
    transition:
      translate 550ms cubic-bezier(0.22, 1, 0.36, 1),
      visibility 550ms;
  }

  body.mobile-menu-open #flight-faq-launch {
    translate: calc(100% + 24px) 0;
    visibility: hidden;
    pointer-events: none;
  }
}

/* ==========================================================================
   15. ヒーロー：フォント準備後に文字を一度だけ表示
   ========================================================================== */
html.flight-hero-font-pending [data-flight-hero-copy],
html.flight-hero-font-pending [data-flight-hero-copy] * {
  visibility: hidden !important;
}

/* 登場アニメーションを重ねない。位置調整用transformは維持する。 */
[data-flight-hero-copy],
[data-flight-hero-copy] * {
  animation: none !important;
}

/* 通信失敗・5秒超過時のみ使用。遅れて届くWebフォントへ切り替えない。 */
html.flight-hero-font-fallback [data-flight-hero-copy],
html.flight-hero-font-fallback [data-flight-hero-copy] * {
  font-family:
    system-ui,
    -apple-system,
    "Meiryo",
    sans-serif !important;
}

/* ==========================================================================
   16. スマホ：FAQボックスの登場アニメーション
   ========================================================================== */
@media (max-width: 767px) {
  .flight-faq-panel:not([hidden]) {
    transform-origin: top right;
    animation: flight-faq-panel-in 550ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  @keyframes flight-faq-panel-in {
    0% {
      opacity: 0;
      transform: translateX(110%) scaleX(0.85);
    }

    75% {
      opacity: 1;
      transform: translateX(-6px) scaleX(1.015);
    }

    100% {
      opacity: 1;
      transform: translateX(0) scaleX(1);
    }
  }
}
/* スマホ：FAQボックスを右へ閉じる */
@media (max-width: 767px) {
  .flight-faq-panel.is-closing:not([hidden]) {
    pointer-events: none;
    animation: flight-faq-panel-out 420ms cubic-bezier(0.55, 0, 0.85, 0.4) both;
  }

  @keyframes flight-faq-panel-out {
    0% {
      opacity: 1;
      transform: translateX(0) scaleX(1);
    }

    100% {
      opacity: 0;
      transform: translateX(110%) scaleX(0.85);
    }
  }
}

/* スワイプ案内・説明文・説明文の点線を非表示 */
.foc .foc-hint,
.foc .foc-footnote {
  display: none !important;
}

/* ======================================================================
   17. スマホ固定フッター
   全幅・中央2分割・ガラス背景・流れるカラーエフェクト
   ====================================================================== */

.flight-mobile-footer {
  display: none;
}

@media (max-width: 767px) {
  /* フッター全体 */
  .flight-mobile-footer {
    position: fixed;
    inset: auto 0 0;
    z-index: 50;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;

    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;

    background: rgba(255, 255, 255, 0.58);

    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);

    box-shadow: 0 -4px 24px rgba(35, 65, 80, 0.12);
  }

  /* ボタン共通 */
  .flight-mobile-footer__link {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-width: 0;
    min-height: calc(58px + env(safe-area-inset-bottom, 0px));

    margin: 0;
    padding: 17px 12px calc(17px + env(safe-area-inset-bottom, 0px));

    border: 0;
    border-radius: 0;

    font-family: "Outfit", sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 24px;
    letter-spacing: 0.15em;
    text-decoration: none;

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);

    transition: color 0.35s ease;
    -webkit-tap-highlight-color: transparent;
  }

  /* 通常時：赤みのあるガラス */
  .flight-mobile-footer__link--tel {
    color: #b92828;
    background:
      linear-gradient(
        165deg,
        rgba(255, 255, 255, 0.58),
        rgba(255, 255, 255, 0.08) 48%,
        rgba(255, 255, 255, 0.2)
      ),
      rgba(248, 113, 113, 0.16);
  }

  /* 通常時：水色のガラス */
  .flight-mobile-footer__link--mail {
    color: #08658d;
    background:
      linear-gradient(
        165deg,
        rgba(255, 255, 255, 0.58),
        rgba(255, 255, 255, 0.08) 48%,
        rgba(255, 255, 255, 0.2)
      ),
      rgba(125, 211, 252, 0.2);
  }

  /* 文字・アイコンは色のレイヤーより手前 */
  .flight-mobile-footer__link > svg,
  .flight-mobile-footer__link > span {
    position: relative;
    z-index: 2;
    color: inherit;
  }

  .flight-mobile-footer__link > svg {
    flex-shrink: 0;
  }

  /* 左から流れてくる色 */
  .flight-mobile-footer__link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;

    transform: translateX(-101%);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .flight-mobile-footer__link--tel::after {
    background: linear-gradient(110deg, #bf302d, #df4943 70%, #ed6b62);
  }

  .flight-mobile-footer__link--mail::after {
    background: linear-gradient(110deg, #08658d, #1686b3 70%, #39a7cc);
  }

  /* 中央の区切り線 */
  .flight-mobile-footer__link--mail::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 3;

    width: 1px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: -1px 0 0 rgba(55, 85, 100, 0.1);
    pointer-events: none;
  }

  /* タッチ中・キーボード操作時 */
  .flight-mobile-footer__link:active,
  .flight-mobile-footer__link:focus-visible {
    color: #fff;
  }

  .flight-mobile-footer__link:active::after,
  .flight-mobile-footer__link:focus-visible::after {
    transform: translateX(0);
  }

  .flight-mobile-footer__link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -4px;
  }

  /* 通常フッターが固定ボタンに隠れないための余白 */
  .flight-mobile-footer + footer {
    padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px));
  }
}

/* マウスが使える端末：ホバーでも反応 */
@media (max-width: 767px) and (hover: hover) {
  .flight-mobile-footer__link:hover {
    color: #fff;
  }

  .flight-mobile-footer__link:hover::after {
    transform: translateX(0);
  }
}
/* Mail：右から左へ色が流れる */
@media (max-width: 767px) {
  .flight-mobile-footer__link--mail::after {
    transform: translateX(101%);
  }

  .flight-mobile-footer__link--mail:active::after,
  .flight-mobile-footer__link--mail:focus-visible::after {
    transform: translateX(0);
  }
}

/* マウスのホバー時 */
@media (max-width: 767px) and (hover: hover) {
  .flight-mobile-footer__link--mail:hover::after {
    transform: translateX(0);
  }
}

/* ==========================================================================
   16. 共通ナビゲーション：アンカー位置・ブログ余白
   ========================================================================== */
/* ======================================================================
   ★ リンクの停止位置はここだけで調整 ★
   数値を大きく → 手前で止まり、画面上の余白が増える
   数値を小さく → さらに下へ進み、画面上の余白が減る
   0px → リンク先の上端を画面の上端に合わせる
   JSでのヘッダー高さ・16pxなどの追加補正は行わない。
   ====================================================================== */
html.flight-anchor-page {
  scroll-padding-top: 0;
}

/* フライトとは：セクション上端（青い部分を隠す） */
.flight-site #about {
  scroll-margin-top: 0px;
}
/* できることは：セクション上端 */
.flight-site #activity {
  scroll-margin-top: 0px;
}
/* こんなところ：セクション上端 */
.flight-site #style {
  scroll-margin-top: 0px;
}
/* 工賃について：HTMLのidを付けた見出し */
.flight-site #wages {
  scroll-margin-top: 80px;
}
/* その他のリンク */
.flight-site #contact {
  scroll-margin-top: 0px;
}
.flight-site #contact-section {
  scroll-margin-top: 0px;
}
.flight-site #blog {
  scroll-margin-top: 0px;
}
.flight-site #main-content {
  scroll-margin-top: 0px;
}
#flight-top.flight-site {
  scroll-margin-top: 0px;
}

/* Tailwindのpy/pt生成順に左右されず、共通ヘッダーと本文の間を空ける。 */
.flight-site .flight-blog-content {
  padding-top: 96px;
}

.flight-site.single-post {
  font-family: "Outfit", sans-serif;
}

/* ==========================================================================
   17. ヘッダーの初期表示とMENUボタン
   Tailwindの実行前から同じ寸法を適用。Webフォントは準備完了時だけ採用。
   ========================================================================== */
#flight-site-header {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 50;
  font-family: Arial, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}
#flight-site-header .flight-header-bar {
  box-sizing: border-box;
  width: 100%;
  max-width: 1280px; /* 最大幅を1280pxに固定 */
  height: 64px;
  margin: 0 auto; /* 左右にオートマージンをとって中央に配置 */
  padding: 0 20px; /* 画面端からロゴやメニューまでの余白 */
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#flight-site-header .flight-header-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
}
#flight-site-header .flight-header-logo {
  font-family: Arial, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 24px;
  color: #d8281c;
}
#flight-site-header .flight-header-tagline {
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
  color: #6b6b6b;
}
#flight-site-header .flight-header-tagline > span {
  display: inline;
}
#flight-site-header .flight-header-nav {
  display: none;
  align-items: center;
  gap: 24px;
}
#flight-site-header .flight-header-nav > a {
  font-family: inherit !important;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}
#flight-site-header .flight-header-nav > a:nth-last-child(-n + 2) {
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
}
#flight-site-header .flight-header-nav > a:nth-last-child(2) {
  padding: 10px 20px;
}
#flight-site-header .flight-header-nav > a:last-child {
  padding: 8px 16px;
}
html.flight-header-font-pending #flight-site-header .flight-header-copy {
  visibility: hidden;
}
html.flight-header-font-ready #flight-site-header {
  font-family: "Noto Sans JP", sans-serif;
}
html.flight-header-font-ready #flight-site-header .flight-header-logo {
  font-family: "Outfit", sans-serif;
}
@media (min-width: 640px) {
  #flight-site-header .flight-header-brand {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }
  #flight-site-header .flight-header-tagline {
    font-size: 12px;
  }
  #flight-site-header .flight-header-tagline > span {
    display: inline;
  }
}
#flight-site-header .flight-menu-toggle {
  box-sizing: border-box;
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 48px;
  height: 52px;
  padding: 2px 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: #012169;
  cursor: pointer;
  appearance: none;
}
#flight-site-header .flight-menu-toggle:focus-visible {
  outline: 2px solid #d8281c;
  outline-offset: 2px;
  border-radius: 4px;
}
.flight-menu-icon {
  position: relative;
  display: block;
  width: 32px;
  height: 32px;
  flex: none;
}
.flight-menu-icon > span {
  position: absolute;
  display: block;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition:
    width 450ms cubic-bezier(0.22, 1, 0.36, 1),
    height 450ms cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 450ms,
    transform 450ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms;
}
.flight-menu-blue {
  width: 32px;
  height: 32px;
  background: #012169;
}
.flight-menu-white {
  width: 22px;
  height: 22px;
  background: #fff;
}
.flight-menu-red {
  width: 12px;
  height: 12px;
  background: #d8281c;
}
#mobile-menu-btn[aria-expanded="true"] .flight-menu-blue {
  height: 4px;
  border-radius: 4px;
  transform: translate(-50%, -50%) rotate(-45deg);
}
#mobile-menu-btn[aria-expanded="true"] .flight-menu-white {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
}
#mobile-menu-btn[aria-expanded="true"] .flight-menu-red {
  width: 32px;
  height: 4px;
  border-radius: 4px;
  transform: translate(-50%, -50%) rotate(45deg);
}
#flight-site-header .flight-menu-label {
  display: block;
  font:
    700 9px/11px Arial,
    sans-serif;
  letter-spacing: 1px;
  text-align: center;
}
@media (min-width: 768px) {
  #flight-site-header .flight-header-nav {
    display: flex;
  }
  #flight-site-header .flight-menu-toggle {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .flight-menu-icon > span {
    transition: none;
  }
}

/* ==========================================================================
   開所日カレンダー：見た目の調整場所
   ==========================================================================

   基本CSS：
   プラグイン内 flight-open-calendar/assets/calendar.css

   見た目を変えるときは、この下に必要なCSSを追加する。
   プラグイン本体の編集やZIPの更新は不要。

   【主な指定先】
   .foc                  全体の幅・背景・余白・枠線
   .foc .foc-title       「開所日カレンダー」の見出し
   .foc .foc-nav p       年月の文字
   .foc .foc-nav button  左右のアロー
   .foc .foc-table th    曜日
   .foc .foc-table td    日付のマス
   .foc .foc-day         日付の数字
   .foc .foc-label       開所・閉所などの文字
   .foc .foc-legend      凡例
   .foc .foc-notes       祝日名・メモ
   .foc .foc-dots        月切り替えの点

   ※開所日や見学受付の設定は、WordPress管理画面で変更する。
   ========================================================================== */

/* この下に、変更したいスタイルを追加 */
/* ==========================================================================
   開所日カレンダー：見た目の調整
   ========================================================================== */

/* 見出しを中央に配置 */
.foc .foc-heading {
  justify-content: center;
}

/* 見出し */
.foc .foc-title {
  font-family: "Yomogi", cursive;
  font-size: 22px;
  font-weight: 400;
  text-align: center;

  -webkit-text-stroke: 0.4px currentColor;
}

/* 開所日カレンダー：矢印の円を消す */
.foc .foc-nav button,
.foc .foc-nav button:hover,
.foc .foc-nav button:active {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}
