/* =========================================================
   corp 正本のデザイントークン
   ---------------------------------------------------------
   基準は参考サイト template03（株式会社〇〇建設）の実測値。
   ブラウザの getComputedStyle で拾った実値:
     本文 #333333 ／ 背景 #fdfdfd ／ 濃色帯 #2d2d2d・#2a2d30 ／
     アクセント黄 rgb(241,194,50) = #F1C232 ／ 罫線 #d1d1d1
     フォントは游ゴシック体（明朝ではない）。見出しは weight 700。
   ---------------------------------------------------------
   ★変数名は飲食正本から変えていない★
   assets/css/blocks.css の全セクションが --gold / --text-main 等を参照しており、
   名前を変えると全ブロックのCSSを書き換えることになるため、
   「意味を差し替えて名前は据え置く」方針にしている（--gold＝アクセント色の枠）。
   ========================================================= */
:root {
  --bg-base: #fdfdfd;          /* サイト全体の地色（飲食正本は暗色だった） */
  --bg-paper: #ffffff;         /* カード・パネルの地色 */
  --bg-warm: #f5f5f5;          /* 薄いグレー帯 */
  --bg-dark: #2d2d2d;          /* 濃色セクション（ヒーロー下の帯・フッター） */
  --bg-dark-deep: #2a2d30;
  --ink: #1a1a1a;
  --text-main: #333333;
  --text-sub: #4f4f4f;
  --text-muted: #999999;
  --text-on-dark: #ffffff;
  --text-on-dark-muted: rgba(255, 255, 255, 0.9);
  --gold: #F1C232;             /* ＝アクセント色。template03 の黄 */
  --gold-light: #f7d76a;
  /* ★明るい背景に載せる『文字色としてのアクセント』★
     --gold(#F1C232) は白地に対するコントラスト比が約1.9:1しかなく、文字に使うと読めない。
     template03 も黄は『地色・罫線・バッジの塗り』にしか使っていない。
     白地の上に置くラベル・日付・小見出しはこちらを使うこと（白地に約5:1）。 */
  --gold-ink: #8a6a10;
  --vermilion: #c0392b;
  /* ボタン共通カラートークン（⑫）。ダッシュボード「サイト基本設定」から上書き注入できる。
     塗りボタン=bg/fg/bg-hover、枠線ボタン=outline-fg（枠線＆文字色、hoverでbgが塗られる）。
     template03 の主ボタンは「黄地＋濃い文字」なので fg は暗色のまま。 */
  --fc-btn-bg: var(--gold);
  --fc-btn-fg: #2d2d2d;
  --fc-btn-bg-hover: var(--gold-light);
  --fc-btn-fg-hover: #2d2d2d;
  --fc-btn-border: var(--gold);
  --fc-btn-outline-fg: #2d2d2d;
  --line: #d1d1d1;
  --line-dark: rgba(0, 0, 0, 0.12);
  --shadow-base: 0 10px 30px rgba(0, 0, 0, 0.08);
  /* フォント: template03 はゴシック体。--font-serif は名前こそ serif だが
     「見出し用フォント」の枠として blocks.css 全体から参照されているため、
     中身をゴシックに差し替える（参照側を全部書き換えるより安全）。 */
  --font-heading: "Yu Gothic", "游ゴシック体", YuGothic, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  --font-serif: var(--font-heading);
  --font-sans: "Yu Gothic", "游ゴシック体", YuGothic, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-en: "Montserrat", sans-serif;
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  background: var(--bg-base);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.8;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  writing-mode: horizontal-tb;
  overflow-wrap: break-word;
}
body::before { display: none; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s ease, background .25s ease, border-color .25s ease; }
a:hover { color: var(--gold-ink); }
button { font: inherit; }

.fade-up { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.fade-up.is-visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .24s; }

.section-header, .menu-section-header, .slf-header, .course-list-header, .news-section-header, .job-section-header, .contact-section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2, .menu-main-title, .slf-main-title, .course-list-title, .news-main-title, .job-main-title, .contact-main-title {
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  color: var(--text-main);
  letter-spacing: .12em;
  font-weight: 700;
}
.section-header p, .menu-sub-text, .slf-sub-text, .course-list-desc, .news-sub-text, .job-sub-text, .contact-sub-text {
  margin-top: 14px;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 2;
}

.global-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  min-height: 82px;
  padding: 16px 34px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  background: rgba(255, 255, 255, .95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  transition: min-height .25s ease, padding .25s ease, box-shadow .25s ease;
}
/* スクロールしたら少し低くして影を付ける（JSが .is-scrolled を付け外しする）。
   position: fixed なので、縮んでも下のコンテンツは動かない。 */
.global-header.is-scrolled {
  min-height: 64px;
  padding: 8px 34px;
  border-bottom-color: transparent;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .10);
}
.global-header.is-scrolled .header-logo { font-size: 19px; }
.header-logo {
  font-family: var(--font-heading);
  transition: font-size .25s ease;
  color: var(--text-main);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .14em;
  white-space: nowrap;
}
.header-logo img { max-height: 46px; width: auto; object-fit: contain; }
.desktop-nav { display: flex; justify-content: flex-end; align-items: center; gap: 26px; }
.desktop-nav a {
  color: var(--text-main);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  position: relative;
  white-space: nowrap;
}
.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width .25s ease;
}
.desktop-nav a:hover::after, .desktop-nav a.active::after { width: 100%; }
.header-btns { display: flex; align-items: center; gap: 16px; }
/* 右端のCTA。色はサイト共通のボタン配色（editor の「ボタン配色」）に従う＝ここで固定しない。 */
.btn-header-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 4px;
  border: 1px solid var(--fc-btn-border);
  background: var(--fc-btn-bg);
  color: var(--fc-btn-fg);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  white-space: nowrap;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.btn-header-contact:hover {
  background: var(--fc-btn-bg-hover);
  border-color: var(--fc-btn-bg-hover);
  color: var(--fc-btn-fg-hover);
}
.global-header.is-scrolled .btn-header-contact { min-height: 38px; }
.btn-header-tel { color: var(--text-main); font-weight: 800; font-size: 13px; }
.btn-header-reserve, .course-list-reserve, .slf-reserve-btn, .btn-menu-more, .btn-recruit-link, .btn-job-apply, .btn-submit-contact, .btn-nab-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 4px;
  border: 1px solid var(--fc-btn-border);
  background: var(--fc-btn-bg);
  color: var(--fc-btn-fg);
  font-weight: 800;
  padding: 12px 22px;
  cursor: pointer;
}
.btn-header-reserve:hover, .course-list-reserve:hover, .slf-reserve-btn:hover, .btn-menu-more:hover, .btn-recruit-link:hover, .btn-job-apply:hover, .btn-submit-contact:hover, .btn-nab-back:hover {
  background: var(--fc-btn-bg-hover);
  border-color: var(--fc-btn-bg-hover);
  color: var(--fc-btn-fg-hover);
}
.menu-trigger {
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-main);
  width: 42px;
  height: 42px;
  border-radius: 4px;
}
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(45, 45, 45, .97);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.mobile-nav-overlay.active { opacity: 1; visibility: visible; }
.mobile-nav-overlay a { font-size: 18px; color: var(--text-on-dark); }

.hero-wrapper { width: 100%; height: min(78svh, 760px); min-height: 520px; position: relative; overflow: hidden; background: #0b1112; }
.hero-img-window, .hero-img-window img, .hero-img-window video { width: 100%; height: 100%; object-fit: cover; }
.hero-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16,23,24,.76), rgba(16,23,24,.2) 55%, rgba(16,23,24,.7));
  pointer-events: none;
}

/* 下層ページのヒーロー（hero_page）— 参考サイトの帯。
   写真を活かした横長のバナーに、見出しを左寄せで置く。 */
.page-hero-wrapper {
  position: relative;
  min-height: 340px;
  padding: 130px 20px 60px;   /* 上は固定ヘッダー（82px）を避けるぶん */
  display: flex;
  align-items: center;
  text-align: left;
  color: var(--text-on-dark);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
/* ★暗幕は ::after だけが持つ★
   ブロックは .ph-overlay という div も出しており、以前は両方に同じグラデーションを
   当てていたため **同じ暗幕が2枚重なって** いた（.82 が2枚で実効 .97＝写真がほぼ見えない）。
   ::after ＝ 明るさを落とすグラデーション／.ph-overlay ＝ 網点の質感、と役割を分ける。 */
.page-hero-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.58) 0%, rgba(0,0,0,.34) 42%, rgba(0,0,0,.18) 100%);
}
/* 参考サイトと同じ網点。写真の粗を目立たせず、帯としての質感を出す。 */
.ph-overlay {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0,0,0,.24) 1px, transparent 1px);
  background-size: 4px 4px;
  z-index: 1;
  pointer-events: none;
}
.ph-container { position: relative; z-index: 2; width: 100%; max-width: 1160px; margin: 0 auto; }
.ph-title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(1.7rem, 3.6vw, 2.9rem);
  line-height: 1.4;
  color: var(--text-on-dark);
  letter-spacing: .14em;
  text-shadow: 0 1px 3px rgba(0,0,0,.7), 0 3px 14px rgba(0,0,0,.4);
}
.ph-desc {
  margin: 14px 0 0;
  max-width: 40em;
  color: var(--text-on-dark);
  font-size: 14px;
  line-height: 2;
  text-shadow: 0 1px 3px rgba(0,0,0,.75);
}
@media (max-width: 768px) {
  .page-hero-wrapper { min-height: 240px; padding: 110px 15px 44px; }
  .ph-title { letter-spacing: .08em; }
}

/* ★暗いまま残すセクション★
   ページ全体は明色に反転したが、フッターは template03 と同じく濃色帯のままにする。
   その中の文字は --text-main（#333）ではなく --text-on-dark を使うこと。
   ここを取り違えると「暗背景＋暗文字」で読めなくなる。 */
.global-footer {
  padding: 88px 20px 56px;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  border-top: 3px solid var(--gold);
}
.global-footer .footer-genre,
.global-footer .footer-table td,
.global-footer .payment-icons,
.global-footer .gmap-placeholder { color: var(--text-on-dark-muted); }
.global-footer .footer-tel strong { color: var(--text-on-dark); }
.global-footer .pay-tag { border-color: rgba(255, 255, 255, .28); }
.global-footer .footer-table th, .global-footer .footer-table td { border-bottom-color: rgba(255, 255, 255, .12); }
.global-footer .gmap-wrap { border-color: rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .04); }
/* ★フッターナビはフッターの「下」に置く（template03）★
   マークアップ上は .footer-nav-wrap が .info-grid より前にあるが、
   PHPを触らずに order だけで入れ替える。濃色帯の外に出したいので
   .global-footer 自身に padding-bottom を残さず、ナビ帯が地の色を持つ。 */
.global-footer { display: flex; flex-direction: column; }
/* ★width: 100% が必須★ .global-footer を flex にしたため、.info-grid の
   `margin: 0 auto`（左右auto）が cross軸の stretch を打ち消し、
   中身の最小幅（280px + gap + 308px = 636px）まで縮む。
   幅を明示して初めて max-width と auto マージンが効く。 */
.global-footer .info-grid { order: 1; width: 100%; }
.global-footer .footer-nav-wrap { order: 2; }
.footer-nav-wrap {
  display: block;
  margin: 64px -20px -56px;      /* .global-footer の左右/下パディングを打ち消して全幅にする */
  padding: 26px 20px;
  background: var(--bg-base);
  border-top: 1px solid rgba(255, 255, 255, .10);
}
.footer-nav {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0;
}
/* リンクの間に縦罫線（template03 の「｜」区切り）。両端にも1本ずつ出す。 */
.global-footer .footer-nav-link {
  color: var(--text-main);
  padding: 4px 22px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
  border-left: 1px solid var(--line);
  transition: color .2s;
}
.global-footer .footer-nav-link:last-child { border-right: 1px solid var(--line); }
.global-footer .footer-nav-link:hover { color: var(--gold-ink); }
/* 会社名はフッター本体（.footer-brand）に出ているので、ナビ帯では重複させない。 */
.footer-nav-brand { display: none; }
/* 参考サイト（template03）のフッターは本文セクションより広く、表と地図がほぼ同幅。 */
.info-grid { max-width: 1360px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; align-items: start; }
.footer-brand h2 { font-family: var(--font-heading); color: var(--text-on-dark); font-size: 28px; letter-spacing: .14em; }
.footer-genre { color: var(--text-sub); font-size: 12px; margin-top: 6px; letter-spacing: .1em; }
.footer-table { width: 100%; border-collapse: collapse; margin-top: 28px; }
.footer-table th, .footer-table td { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); text-align: left; vertical-align: top; font-size: 13px; }
.footer-table th { width: 92px; color: var(--gold); }
.footer-table td { color: var(--text-sub); }
.footer-tel strong { color: var(--text-on-dark); font-size: 22px; }
.payment-title { margin: 24px 0 10px; color: var(--gold); font-size: 12px; font-weight: 800; }
.payment-icons { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--text-sub); }
.pay-tag { border: 1px solid var(--line); padding: 3px 8px; border-radius: 4px; font-size: 11px; }
.gmap-wrap { min-height: 360px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-paper); }
.gmap-wrap iframe { width: 100%; height: 100%; min-height: 360px; border: none; filter: grayscale(.15) contrast(.95); }
.gmap-placeholder { min-height: 360px; display: flex; align-items: center; justify-content: center; color: var(--text-sub); }
.footer-copy-text, .footer-copy {
  background: var(--bg-dark-deep);
  color: var(--text-on-dark-muted);
  text-align: center;
  padding: 20px;
  font-size: 11px;
  border-top: 1px solid rgba(255,255,255,.06);
}

/* ★PCでは画面右端の縦型タブ★（template03）
   右端に貼り付け、文字は縦書き（writing-mode）。上下中央に置く。
   タブレット以下は従来どおり（768px以下は下部の横バーへ切り替わる）。 */
.fc-floating-actions {
  position: fixed;
  right: 0;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  z-index: 1800;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.fc-floating-action {
  pointer-events: auto;
  writing-mode: vertical-rl;      /* 縦書き。アイコンは下の指定で正立させる */
  min-width: 46px;
  min-height: 132px;
  padding: 20px 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 6px 0 0 6px;     /* 右端に貼り付くので左側だけ丸める */
  border: 1px solid var(--fc-btn-border);
  border-right: 0;
  background: rgba(45, 45, 45, .94);
  color: var(--text-on-dark);
  box-shadow: -6px 10px 26px rgba(0, 0, 0, .22);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: padding-right .2s, background .2s, color .2s;
}
/* 縦書きの中でアイコンだけ横向きになるのを戻す */
.fc-floating-action i { writing-mode: horizontal-tb; }
.fc-floating-action:hover { padding-right: 6px; }
.fc-floating-action:hover {
  background: var(--fc-btn-bg);
  color: var(--fc-btn-fg);
}
.fc-floating-contact,
.fc-floating-reserve {
  background: var(--fc-btn-bg);
  color: var(--fc-btn-fg);
}
.fc-floating-contact:hover,
.fc-floating-reserve:hover {
  background: var(--fc-btn-bg-hover);
  border-color: var(--fc-btn-bg-hover);
  color: #101718;
}
.fc-floating-line {
  border-color: rgba(6, 199, 85, .75);
}
.fc-floating-instagram {
  border-color: rgba(246, 207, 122, .8);
}

@media (max-width: 992px) {
  .global-header { display: flex; min-height: 68px; padding: 12px 18px; }
  /* ★.is-scrolled は詳細度(0,0,2,0)でこのメディアクエリ(0,0,1,0)に勝つ★
     PC用の `padding: 8px 34px` がスマホにも効いてしまうので、ここで左右を戻す。 */
  .global-header.is-scrolled { min-height: 60px; padding: 8px 18px; }
  .desktop-nav, .header-btns { display: none; }
  .menu-trigger { display: inline-flex; margin-left: auto; }
  .header-logo { font-size: 18px; }
}

@media (max-width: 768px) {
  .hero-wrapper { min-height: 430px; height: 64svh; }
  .info-grid { grid-template-columns: 1fr; }
  /* ナビは折り返す。縦罫線は行の切れ目で不自然に残るので、狭い画面では出さない。 */
  .footer-nav-wrap { margin: 44px -20px -56px; padding: 20px 14px; }
  .footer-nav { gap: 4px 0; }
  .global-footer .footer-nav-link { padding: 6px 12px; font-size: 12px; border-left: 0; }
  .global-footer .footer-nav-link:last-child { border-right: 0; }
  body.has-floating-actions { padding-bottom: 78px; }
  .fc-floating-actions {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    transform: none;
    flex-direction: row;
    gap: 0;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: rgba(8, 16, 17, .94);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(12px);
  }
  .fc-floating-action {
    flex: 1 1 0;
    writing-mode: horizontal-tb;   /* PCの縦書きを解除 */
    min-width: 0;
    min-height: 48px;
    padding: 0 8px;
    flex-direction: column;
    gap: 2px;
    border-radius: 6px;
    border-right: 1px solid var(--fc-btn-border);
    box-shadow: none;
    font-size: 11px;
    letter-spacing: .02em;
    line-height: 1.2;
  }
  .fc-floating-action:hover { padding-right: 8px; }
  .fc-floating-action i {
    font-size: 15px;
  }
}
