@charset "utf-8";
/* ==========================================================================
   新ヘッダー／フッター（2026.06.01 画面案 A案）専用スタイル
   header-rev1.php / footer-rev1.php とセットで、ページ単位で読み込む。
   すべて .toprh / .toprf 配下にスコープしており、既存 style.css とは干渉しない。
   ========================================================================== */

.toprh,
.toprf {
  --brand: #FBC600;
  --brand-hi: #FFD83A;
  --brand-on: #1a1a1a;
  --text: #1d1d1b;

  font-family: "Noto Sans JP", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.toprh *,
.toprh *::before,
.toprh *::after,
.toprf *,
.toprf *::before,
.toprf *::after { box-sizing: border-box; }

.toprh a,
.toprf a { color: inherit; text-decoration: none; }
.toprh ul,
.toprf ul { margin: 0; padding: 0; list-style: none; }
.toprh img,
.toprf img { max-width: 100%; }

/* ==========================================================================
   ヘッダー
   ========================================================================== */
.toprh {
  background: var(--brand);
  color: var(--text);
  padding: 16px 32px;
  position: relative;
}
.toprh-inner { max-width: 1400px; margin: 0 auto; }

.toprh-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* --- ロゴ --- */
.toprh-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
/* logo_data は管理画面から差し替えられる画像で縦横比が一定しないため、高さ基準で揃える */
.toprh-logo-mascot { height: 56px; width: auto; display: block; }
.toprh-logo-title { width: 150px; height: auto; display: block; }

/* --- 右側ツール（PC） --- */
.toprh-tools { display: flex; align-items: center; gap: 12px; }

.toprh-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #fff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .08);
  transition: transform .15s;
}
.toprh-contact:hover { transform: translateY(-1px); }
.toprh-contact svg { width: 16px; height: 16px; display: block; }

.toprh-search {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 999px;
  padding: 4px 4px 4px 14px;
  width: 280px;
}
.toprh-search input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 12px;
  color: var(--text);
  font-family: inherit;
}
.toprh-search button {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border: none;
  border-radius: 50%;
  background: var(--text);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.toprh-search button svg { width: 16px; height: 16px; display: block; }

/* --- ハンバーガー（SP） --- */
.toprh-burger {
  display: none;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: none;
  border-radius: 10px;
  background: var(--text);
  color: var(--brand);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  font-family: inherit;
}
.toprh-burger svg { width: 22px; height: 22px; display: block; }
.toprh-burger span { font-size: 8px; font-weight: 800; letter-spacing: .1em; }

/* --- グローバルナビ（PC） --- */
.toprh-nav { margin-top: 16px; display: flex; gap: 6px; }
.toprh-nav a {
  flex: 1;
  text-align: center;
  padding: 14px 8px;
  font-size: 15px;
  font-weight: 800;
  border-radius: 6px;
  transition: background .2s;
}
.toprh-nav a:hover { background: rgba(0, 0, 0, .08); }
.toprh-nav a.is-current,
.toprh-nav a.is-current:hover { background: var(--text); color: var(--brand); }

/* ==========================================================================
   SPドロワー
   ========================================================================== */
.toprh-drawer { position: fixed; inset: 0; z-index: 9999; visibility: hidden; }
.toprh-drawer.is-open { visibility: visible; }

.toprh-drawer-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  opacity: 0;
  transition: opacity .25s;
}
.toprh-drawer.is-open .toprh-drawer-scrim { opacity: 1; }

.toprh-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(84vw, 340px);
  background: #fff;
  box-shadow: -4px 0 24px rgba(0, 0, 0, .18);
  transform: translateX(100%);
  transition: transform .25s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 18px 32px;
}
.toprh-drawer.is-open .toprh-drawer-panel { transform: translateX(0); }

.toprh-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid #eee;
}
.toprh-drawer-head b { font-size: 12px; font-weight: 800; letter-spacing: .2em; }
.toprh-drawer-close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: var(--text);
  color: var(--brand);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}
.toprh-drawer .toprh-search { width: 100%; margin-bottom: 18px; border: 1px solid #e5e5e5; }

.toprh-drawer-menu li + li { border-top: 1px dotted #ddd; }
.toprh-drawer-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.toprh-drawer-menu a::after {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 2px solid var(--brand);
  border-right: 2px solid var(--brand);
  transform: rotate(45deg);
}
.toprh-drawer-contact {
  display: block;
  margin-top: 20px;
  padding: 15px;
  text-align: center;
  background: var(--brand);
  color: var(--brand-on);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
}

/* ==========================================================================
   フッター
   ========================================================================== */
.toprf {
  background: var(--brand);
  color: var(--text);
  padding: 64px 40px 32px;
}
.toprf-inner { max-width: 1200px; margin: 0 auto; }

/* --- 上段：ロゴ／住所 --- */
.toprf-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.toprf-logo { display: flex; align-items: center; gap: 14px; }
.toprf-logo-mascot { height: 68px; width: auto; display: block; }
.toprf-logo-title { width: 200px; height: auto; display: block; }
.toprf-address {
  margin: 0;
  font-size: 12px;
  line-height: 1.8;
  color: rgba(0, 0, 0, .65);
}

/* --- メニュー3カラム --- */
.toprf-cols {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  gap: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(0, 0, 0, .2);
}
.toprf-col h4 {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px dotted rgba(0, 0, 0, .35);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .04em;
}
.toprf-col li + li { margin-top: 10px; }
.toprf-col li a { font-size: 14px; font-weight: 500; transition: opacity .15s; }
.toprf-col li a:hover { opacity: .6; }

/* 3列目：見出しなし・太字の独立リンク */
.toprf-standalone li {
  border-bottom: 1px dotted rgba(0, 0, 0, .35);
}
.toprf-standalone li:first-child { border-top: 1px dotted rgba(0, 0, 0, .35); }
.toprf-standalone li + li { margin-top: 0; }
.toprf-standalone a {
  display: block;
  padding: 13px 4px;
  font-size: 15px;
  font-weight: 800;
  transition: opacity .15s;
}
.toprf-standalone a:hover { opacity: .6; }

/* --- 最下段 --- */
.toprf-bottom {
  margin-top: 44px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, .2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11px;
  color: rgba(0, 0, 0, .45);
  letter-spacing: .05em;
}
.toprf-bottom a:hover { opacity: .6; }

/* ==========================================================================
   SP（トップページ本体と同じ 760px で切り替え）
   ========================================================================== */
@media screen and (max-width: 759px) {
  .toprh { padding: 12px 16px; }
  .toprh-logo-mascot { height: 44px; }
  .toprh-logo-title { width: 124px; }
  .toprh-tools { display: none; }
  .toprh-burger { display: inline-flex; }
  .toprh-nav { display: none; }

  .toprf { padding: 40px 20px 24px; }
  .toprf-top { margin-bottom: 28px; }
  .toprf-logo-mascot { height: 54px; }
  .toprf-logo-title { width: 165px; }
  .toprf-address { font-size: 11px; }
  .toprf-cols { grid-template-columns: 1fr; gap: 28px; padding-top: 24px; }
  .toprf-col h4 { font-size: 14px; }
  .toprf-col li a { font-size: 13px; }
  .toprf-col li + li { margin-top: 8px; }
  .toprf-standalone a { padding: 11px 2px; font-size: 14px; }
  .toprf-bottom { margin-top: 28px; font-size: 10px; }
}
