/* ==========================================================================
   wf-autocreator 共通スタイル
   ここに書くのは「全ページ共通の枠」だけ。
   セクションのデザインは各カスタムHTMLブロック側に書く。
   ========================================================================== */

:root {
  --ac-black: #0a0a0c;
  --ac-red: #d81319;
  --ac-red-hover: #ef1a21;
  --ac-yellow: #ffc400;
  --ac-light: #f2f2f3;
  --ac-header-h: 66px;
}

/* --- リセット --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--ac-black);
  color: #fff;
  line-height: 1.9;
  font-size: 15.5px;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; border-radius: 0; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- 全幅化(ブロックテーマの余白を消す) --- */
.wp-site-blocks { margin: 0; padding: 0; }
.wp-site-blocks > * { margin-block: 0; }
.ac-main { margin: 0; padding: 0; max-width: none; }
.ac-main > * { margin-block: 0; max-width: none; }
h1.wp-block-post-title { display: none; }

/* セクション間のアンカー位置を固定ヘッダー分ずらす */
.ac-main section[id] { scroll-margin-top: var(--ac-header-h); }

/* ==========================================================================
   固定ヘッダー
   ========================================================================== */

.ac-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 11px 14px;
  color: #fff;
  transition: background .3s, box-shadow .3s, padding .3s;
}

.ac-header-logo {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: .06em;
  line-height: 1.2;
}

.ac-header-logo small {
  display: block;
  font-family: 'Figtree', sans-serif;
  font-weight: 800;
  font-size: 10px;
  letter-spacing: .22em;
  color: var(--ac-yellow);
  margin-top: 2px;
}

/* 狭い画面ではナビと電話ボタンをハンバーガーの中に入れる（1080px以上で横並びに戻す） */
.ac-header-nav { display: none; }

.ac-header-nav a:hover { color: var(--ac-yellow); }

.ac-header-tel {
  margin-left: auto;
  display: none;
  align-items: center;
  background: var(--ac-red);
  color: #fff;
  font-family: 'Figtree', sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .02em;
  padding: 8px 12px;
  border-radius: 2px;
  border-bottom: 2px solid var(--ac-yellow);
  transition: background .2s;
}

.ac-header-tel:hover { background: var(--ac-red-hover); }

/* --- ハンバーガーボタン（1080px未満） --- */
.ac-menu-btn {
  margin-left: auto;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: var(--ac-red);
  color: #fff;
  border: none;
  border-bottom: 2px solid var(--ac-yellow);
  border-radius: 2px;
  padding: 8px 12px 6px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.ac-menu-bars { display: block; width: 20px; }

.ac-menu-bars i {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform .2s ease, opacity .2s ease;
}

.ac-menu-bars i + i { margin-top: 4px; }

.ac-menu-btn-text {
  font-family: 'Figtree', sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1;
}

.ac-menu-btn[aria-expanded="true"] .ac-menu-bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.ac-menu-btn[aria-expanded="true"] .ac-menu-bars i:nth-child(2) { opacity: 0; }
.ac-menu-btn[aria-expanded="true"] .ac-menu-bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --- メニューパネル --- */
.ac-menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(8, 8, 10, .97);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.ac-menu[hidden] { display: none; }

.ac-menu-inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 26px;
  padding: 92px 20px 36px;
  box-sizing: border-box;
}

.ac-menu-nav {
  display: grid;
  gap: 1px;
  background: rgba(255, 255, 255, .16);
  border-top: 1px solid rgba(255, 255, 255, .16);
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.ac-menu-nav a {
  position: relative;
  display: block;
  background: #0a0a0c;
  color: #fff;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: .04em;
  white-space: nowrap;
  padding: 16px 34px 16px 14px;
}

.ac-menu-nav a::after {
  content: '\203A';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Figtree', sans-serif;
  font-weight: 900;
  font-size: 18px;
  color: var(--ac-yellow);
}

.ac-menu-tel { text-align: center; }

.ac-menu-tel-label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--ac-yellow);
  white-space: nowrap;
}

.ac-menu-tel-label--sub { margin-top: 18px; }

.ac-menu-tel-num {
  display: inline-block;
  margin-top: 4px;
  font-family: 'Figtree', sans-serif;
  font-weight: 900;
  font-size: clamp(30px, 9vw, 38px);
  line-height: 1.1;
  letter-spacing: .02em;
  color: #fff;
  border-bottom: 4px solid var(--ac-red);
  padding-bottom: 4px;
  white-space: nowrap;
}

.ac-menu-tel-hours {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.8;
  color: rgba(255, 255, 255, .72);
}

.ac-menu-tel-sub {
  display: inline-block;
  margin-top: 3px;
  font-family: 'Figtree', sans-serif;
  font-weight: 900;
  font-size: 20px;
  color: #fff;
  border-bottom: 3px solid var(--ac-red);
  white-space: nowrap;
}

/* メニューを開いている間は、ヘッダーを最前面に上げてボタンを押せるようにし、
   下部の固定CTAは隠す */
body.ac-menu-open .ac-header { z-index: 60; background: rgba(8, 8, 10, .97); }
body.ac-menu-open .ac-float { display: none; }

.ac-header.is-scrolled {
  background: rgba(8, 8, 10, .94);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .1);
  backdrop-filter: blur(10px);
}

/* 420px以上は元のサイズに戻す（詰めが必要なのは320px前後だけ） */
@media (min-width: 420px) {
  .ac-header { gap: 18px; padding: 13px 18px; }
  .ac-header-logo { font-size: 17px; }
  .ac-header-tel { font-size: 14px; padding: 9px 16px; }
}

/* 1080px以上はロゴ・ナビ・電話を1行に収める（ナビ4項目） */
@media (min-width: 1080px) {
  .ac-header { padding: 15px 22px; gap: 18px; }
  .ac-header-logo { font-size: 19px; }
  .ac-menu-btn { display: none; }
  .ac-menu { display: none !important; }
  .ac-header-nav {
    display: flex;
    margin-left: auto;
    gap: 15px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
  }
  .ac-header-tel { display: flex; margin-left: 0; font-size: 15px; padding: 11px 18px; }
  .ac-header.is-scrolled { padding: 10px 22px; }
}

@media (min-width: 1280px) {
  .ac-header { padding: 15px 30px; gap: 28px; }
  .ac-header-nav { gap: 20px; font-size: 13.5px; }
  .ac-header-tel { font-size: 16px; padding: 11px 22px; }
  .ac-header.is-scrolled { padding: 10px 30px; }
}

/* ==========================================================================
   フッター
   ========================================================================== */

.ac-footer {
  background: #000;
  color: #fff;
  padding: 60px 0 32px;
  border-top: 4px solid var(--ac-red);
}

.ac-footer-container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

.ac-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.ac-footer-logo {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: .05em;
  margin-bottom: 14px;
}

.ac-footer-logo small {
  display: block;
  font-family: 'Figtree', sans-serif;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--ac-yellow);
  margin-top: 3px;
}

.ac-footer p,
.ac-footer li { font-size: 13px; line-height: 2.05; color: rgba(255, 255, 255, .76); }

.ac-footer-tel-label {
  font-size: 11.5px;
  color: var(--ac-yellow);
  letter-spacing: .1em;
  font-weight: 700;
}

.ac-footer-tel {
  font-family: 'Figtree', sans-serif;
  font-weight: 900;
  font-size: 25px;
  color: #fff;
  letter-spacing: .02em;
  display: inline-block;
  margin: 4px 0 2px;
}

.ac-footer h4 {
  font-family: 'Figtree', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  color: var(--ac-red);
  margin-bottom: 12px;
}

.ac-footer a:hover { color: var(--ac-yellow); }

.ac-footer-bar {
  border-top: 1px solid rgba(255, 255, 255, .14);
  padding-top: 20px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, .46);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

@media (min-width: 900px) {
  .ac-footer { padding: 96px 0 36px; }
  .ac-footer-container { padding: 0 28px; }
  .ac-footer-grid { grid-template-columns: 1.35fr 1fr 1fr; gap: 44px; margin-bottom: 48px; }
}

/* ==========================================================================
   モバイル固定CTA
   ========================================================================== */

.ac-float { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; box-shadow: 0 -4px 18px rgba(0, 0, 0, .4); }
.ac-float a { flex: 1; text-align: center; padding: 15px 8px; font-weight: 700; font-size: 14px; letter-spacing: .04em; }
.ac-float-tel { background: var(--ac-red); color: #fff; }
.ac-float-sub { background: var(--ac-yellow); color: var(--ac-black); }

body { padding-bottom: 54px; }

@media (min-width: 961px) {
  .ac-float { display: none; }
  body { padding-bottom: 0; }
}

/* 撮影モード(?shot=1)。固定要素を外し、全体を1枚に収める時にFVが伸びないよう高さを固定 */
body.ac-shot .ac-header { position: absolute; }
body.ac-shot .ac-float { display: none; }
body.ac-shot { padding-bottom: 0; }
body.ac-shot .hero-section { height: 760px; min-height: 0; }
