/*
Theme Name: WAC WordPress Theme
Theme URI: https://wacwac.jp
Author: Michikusa (Tominaga)
Description: 株式会社ワック公式サイト wacwac.jp のWordPress専用テーマ。現行静的サイトのデザインをそのまま移植。
Version: 0.1.0
Text Domain: wacwac
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Zen Kaku Gothic New', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  color: #13294a;
  background: var(--sky);
  line-height: 1.8;
  overflow-x: hidden;
}
img { max-width: 100%; }

/* ===== TOKENS ===== */
:root {
  /* legacy names kept so inner pages' inline styles keep working */
  --yellow:      #F5B400;   /* accent: CTA / numbers / key points */
  --yellow-light:#FFF3D1;
  --yellow-mid:  #FFE07A;
  --orange:      #F08A3C;
  --blue:        #2F80C4;   /* 淡い水色系: リンク・枠 */
  --blue-light:  #E9F3FB;
  --blue-mid:    #7FB6E0;
  --green:       #3FB27A;
  --green-light: #EAF7EF;
  --green-mid:   #9BDCBC;
  --navy:        #13294A;   /* main: 見出し / ナビ / フッター / CTA */
  --gray:        #6B829C;
  --bg-section:  #f0f7fd;
  --border:      #e7ebf1;
  --radius-card: 16px;
  --radius-btn:  999px;
  --shadow:      0 6px 20px rgba(19,41,74,0.06);
  --shadow-hover:0 14px 30px rgba(19,41,74,0.10);
  /* new palette */
  --sky:         #eaf4fb;   /* 淡い水色ベース */
  --sky-2:       #f0f7fd;
  --cream:       #FDF5E6;   /* 淡いベージュ パネル */
  --cream-deep:  #f0e6d0;
  --amber:       #F5B400;   /* = accent yellow */
  --amber-deep:  #E0A400;
  --teal:        #37B3A2;
  --ink:         #3A536F;
  --r-pill:      999px;
  --r-hero:      26px;
}

/* ===== UTILITY ===== */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.section-title {
  font-size: 2rem; font-weight: 800; color: var(--navy);
  text-align: center; margin-bottom: 12px; letter-spacing: -.02em;
}
.section-title span {
  /* 黄色いハイライト下線は廃止（位置が不自然なため） */
  display: inline;
}
.section-sub {
  text-align: center; color: var(--ink); font-size: .95rem; font-weight: 500; margin-bottom: 48px;
}
/* 小さい英語ラベル(VOICE/COMPANY等)は使わない方針のため全て非表示 */
.badge-en, .sec-eyebrow2 { display: none !important; }

/* ===== SECTION HEAD (icon + label + title, used on home) ===== */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.sec-head-main { display: flex; align-items: center; gap: 14px; }
.sec-ico {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; box-shadow: var(--shadow); color: var(--blue);
}
.sec-ico svg { width: 26px; height: 26px; }
.sec-titles .sec-eyebrow { font-size: .8rem; font-weight: 700; color: var(--blue); letter-spacing: .04em; }
.sec-titles .sec-title { font-size: 1.85rem; font-weight: 800; color: var(--navy); line-height: 1.2; letter-spacing: -.02em; }
.sec-titles .sec-title .accent { color: var(--blue); }
.sec-head-note { font-size: .92rem; color: var(--ink); max-width: 360px; line-height: 1.7; }

/* small label above content blocks */
.eyebrow-label { font-size: .85rem; font-weight: 800; color: var(--navy); letter-spacing: .02em; margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }
.eyebrow-label::before { content: ""; width: 18px; height: 3px; border-radius: 2px; background: var(--amber); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--radius-btn); font-weight: 800; font-size: 1rem;
  padding: 14px 30px; cursor: pointer; border: none;
  transition: transform .18s, box-shadow .18s, background .18s;
  text-decoration: none; line-height: 1; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-amber  { background: var(--amber); color: var(--navy); }   /* accent yellow, navy text */
.btn-amber:hover { background: var(--amber-deep); }
.btn-yellow { background: var(--amber); color: var(--navy); }
.btn-yellow:hover { background: var(--amber-deep); }
.btn-navy   { background: var(--navy);  color: #fff; }          /* primary navy */
.btn-navy:hover { background: #1d3a63; }
.btn-blue   { background: var(--blue);  color: #fff; }
.btn-blue:hover { background: #2470b0; }
.btn-orange { background: var(--orange); color: #fff; }
.btn-white  { background: #fff; color: var(--navy); border: 1.5px solid var(--border); }
.btn-outline-blue { background: #fff; color: var(--blue); border: 2px solid var(--blue); }
.btn-sm { padding: 11px 22px; font-size: .85rem; }
/* light pill link (すべて見る等) */
.btn-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--blue-light); color: var(--blue);
  border-radius: var(--r-pill); padding: 10px 20px;
  font-size: .82rem; font-weight: 800; text-decoration: none;
  transition: background .18s, transform .18s;
}
.btn-pill:hover { background: #d9ecfa; transform: translateY(-1px); }

/* ===== TAGS ===== */
.tag {
  display: inline-block; border-radius: var(--r-pill); padding: 4px 12px;
  font-size: .72rem; font-weight: 700; margin: 3px 3px 0 0;
}
.tag-yellow { background: var(--amber); color: #fff; }
.tag-blue   { background: var(--blue);  color: #fff; }
.tag-green  { background: var(--green); color: #fff; }
.tag-orange { background: var(--orange); color: #fff; }
.tag-navy   { background: var(--navy);  color: #fff; }

/* ===== DECORATIONS (clouds / balloons / garland) ===== */
.deco { position: absolute; pointer-events: none; z-index: 0; }
.cloud svg { display: block; width: 100%; height: auto; }
.cloud { width: 120px; opacity: .9; filter: drop-shadow(0 6px 10px rgba(19,41,74,.05)); }

/* ===== TOP BAR ===== */
.topbar {
  background: var(--navy); color: #fff; font-size: .82rem; padding: 8px 0;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; }
.topbar-left { opacity: .8; }
.topbar-tel { font-family: 'Poppins', sans-serif; font-size: 1.05rem; font-weight: 800; color: var(--yellow); }
.topbar-tel span { font-size: .75rem; font-weight: 500; color: #fff; opacity: .8; margin-right: 6px; }
.topbar { display: none; }   /* 全ページで非表示（電話はヘッダーに集約・トップと統一） */

/* ===== HEADER ===== */
header {
  position: sticky; top: 0; z-index: 100;
  background: #fff; box-shadow: 0 2px 14px rgba(19,41,74,.06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px; max-width: 1180px; margin: 0 auto; gap: 18px;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.logo-img { height: 46px; width: auto; flex-shrink: 0; display: block; }
.logo-tag { font-size: .72rem; color: var(--gray); font-weight: 700; line-height: 1.4; max-width: 130px; }
.logo-mark {
  font-family: 'Poppins', sans-serif; font-size: 1.9rem; font-weight: 900;
  line-height: 1; color: var(--navy); letter-spacing: .04em;
}
.logo-sub { font-size: .6rem; color: var(--gray); font-weight: 700; margin-top: 4px; letter-spacing: .1em; }
nav { display: flex; gap: 2px; align-items: center; }
.nav-link {
  display: flex; align-items: center; justify-content: center; white-space: nowrap;
  text-decoration: none; padding: 8px 9px; border-radius: 10px;
  font-size: .86rem; font-weight: 700; color: var(--navy); transition: color .2s, background .2s;
}
.nav-link .en { display: none; }      /* single-line clean nav */
.nav-link::after { white-space: nowrap; }   /* labels never wrap */
.nav-link:hover { color: var(--blue); background: var(--blue-light); }
.nav-link.active { color: var(--blue); }
.header-right { display: flex; gap: 14px; align-items: center; flex-shrink: 0; }
.header-tel { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--navy); }
.header-tel .tel-ico {
  width: 30px; height: 30px; border-radius: 50%; background: var(--amber);
  display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0;
}
.header-tel .tel-ico svg { width: 16px; height: 16px; }
.header-tel b { font-family: 'Poppins', sans-serif; font-size: 1.15rem; font-weight: 900; display: block; line-height: 1.1; white-space: nowrap; }
.header-tel small { font-size: .66rem; color: var(--gray); white-space: nowrap; }
.nav-cta { display: flex; gap: 8px; align-items: center; }
.nav-cta .btn { font-size: .82rem; padding: 10px 18px; }

/* ===== FLOATING CTA (folded into header + bottom banner on new design) ===== */
.float-cta { display: none; }
.float-btn {
  writing-mode: vertical-rl; background: #fff; color: var(--blue);
  font-weight: 800; font-size: 1rem; border-radius: 10px; letter-spacing: .04em;
  padding: 28px 15px; cursor: pointer; box-shadow: var(--shadow);
  text-decoration: none; border: 2px solid var(--blue);
  display: flex; align-items: center; justify-content: center;
}
.float-btn.blue { background: var(--amber); color: #fff; border-color: var(--amber); }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: var(--sky-2);
  border-bottom: 1px solid var(--border);
  padding: 44px 0 36px; position: relative; overflow: hidden; text-align: center;
}
.page-hero .page-hero-en { display: none; }
.page-hero .breadcrumb { display: none; }
.page-hero h1 { font-size: 2rem; font-weight: 800; color: var(--navy); position: relative; z-index: 2; margin-bottom: 8px; }
.page-hero p { color: rgba(19,41,74,.7); font-size: .92rem; position: relative; z-index: 2; }
.breadcrumb {
  display: flex; gap: 8px; align-items: center; justify-content: center;
  margin-top: 14px; font-size: .78rem; color: rgba(19,41,74,.5); position: relative; z-index: 2;
}
.breadcrumb a { color: rgba(19,41,74,.65); text-decoration: none; }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb span { opacity: .5; }

/* ===== PAGE HERO — photo variant（写真主役の内ページヒーロー帯） =====
   使い方: <div class="page-hero page-hero--photo" style="--hero-bg:url('images/top/xxx.jpg')"> */
.page-hero--photo { background: var(--navy); border-bottom: none; padding: 88px 0 70px; }
.page-hero--photo::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: var(--hero-bg, none); background-size: cover; background-position: center;
}
.page-hero--photo::after {
  content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(8,19,26,.48);
}
.page-hero--photo h1 { color: #fff; }
.page-hero--photo p { color: rgba(255,255,255,.92); }

/* ===== WAVE DIVIDER (legacy, neutralised) ===== */
.wave-divider { display: none; }

/* ===== CTA BANNER (rounded blue card) ===== */
.cta-banner { padding: 64px 0; background: transparent; position: relative; }
.cta-inner {
  max-width: 1080px; margin: 0 auto; padding: 56px 56px; text-align: left; position: relative;
  background: var(--navy); color: #fff;
  border-radius: 28px; overflow: hidden;
  box-shadow: 0 20px 44px rgba(19,41,74,.22);
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
}
.cta-label { display: inline-block; color: var(--yellow); font-size: .82rem; font-weight: 700; letter-spacing: .04em; margin-bottom: 12px; position: relative; z-index: 2; }
.cta-h2 { font-size: 1.9rem; font-weight: 800; color: #fff; line-height: 1.4; margin-bottom: 14px; letter-spacing: -.01em; position: relative; z-index: 2; }
.cta-desc { color: rgba(255,255,255,.85); font-size: .95rem; margin-bottom: 0; position: relative; z-index: 2; max-width: 540px; }
.cta-actions { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 14px; align-items: stretch; min-width: 280px; }
.cta-btns { display: flex; gap: 14px; justify-content: flex-start; flex-wrap: wrap; }
.cta-tel { color: rgba(255,255,255,.9); font-size: .82rem; display: flex; align-items: center; gap: 10px; }
.cta-tel strong { font-family: 'Poppins', sans-serif; font-size: 1.5rem; font-weight: 900; color: #fff; }
.cta-deco { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

/* ===== FOOTER ===== */
footer { background: var(--navy); color: rgba(255,255,255,.8); position: relative; overflow: hidden; }
footer .container { position: relative; z-index: 2; }
.footer-top {
  padding: 60px 0 40px;
  display: grid; grid-template-columns: 260px repeat(4, 1fr); gap: 36px;
}
.footer-brand .footer-logo-mark {
  font-family: 'Poppins', sans-serif; font-size: 1.7rem; font-weight: 900;
  color: #fff; letter-spacing: .04em; display: block; margin-bottom: 8px;
}
.footer-logo-mark {
  font-family: 'Poppins', sans-serif; font-size: 1.6rem; font-weight: 900;
  color: #fff; display: inline-block; margin-bottom: 10px; letter-spacing: .04em;
}
.footer-tagline { font-size: .8rem; margin-bottom: 16px; color: rgba(255,255,255,.6); }
.footer-tel-num { font-family: 'Poppins', sans-serif; font-size: 1.4rem; font-weight: 900; color: #fff; display: block; margin-bottom: 4px; }
.footer-hours { font-size: .72rem; color: rgba(255,255,255,.5); display: block; margin-bottom: 16px; }
.footer-col h4 {
  font-size: .85rem; font-weight: 800; color: #fff; letter-spacing: .04em;
  padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.14);
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: rgba(255,255,255,.7); text-decoration: none; font-size: .84rem; transition: color .2s; }
.footer-col a:hover { color: var(--amber); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between;
  font-size: .75rem; color: rgba(255,255,255,.45); position: relative; z-index: 2;
}
.footer-bottom a { color: rgba(255,255,255,.45); text-decoration: none; }
.footer-bottom a:hover { color: var(--amber); }
.footer-deco { position: absolute; left: 0; right: 0; top: 0; height: 70px; z-index: 1; pointer-events: none; opacity: .08; }

/* ===== DECORATIVE (legacy dots, neutralised) ===== */
.dots-bg { display: none; }

/* ===== CASE CARDS (shared) ===== */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-card {
  border-radius: var(--radius-card); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow); background: #fff;
  transition: transform .2s, box-shadow .2s; text-decoration: none; display: block;
}
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.case-photo {
  height: 190px; background: var(--blue-light);
  display: flex; align-items: center; justify-content: center;
  font-size: .82rem; color: var(--gray); text-align: center;
  position: relative; overflow: hidden;
}
.case-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-photo.dino    { background: var(--green-light); }
.case-photo.skate   { background: #e0f2fe; }
.case-photo.digital { background: #ede9fe; }
.case-photo.activity{ background: #fce7f3; }
.case-photo.attract { background: var(--yellow-light); }
.case-ribbon {
  position: absolute; top: 12px; left: 12px;
  background: rgba(19,41,74,.78); color: #fff;
  font-size: .68rem; font-weight: 700; padding: 5px 12px; border-radius: var(--r-pill);
}
.case-body { padding: 18px; }
.case-category { font-size: .72rem; font-weight: 700; color: var(--blue); margin-bottom: 4px; }
.case-title { font-size: 1rem; font-weight: 800; color: var(--navy); margin-bottom: 8px; line-height: 1.5; }
.case-meta { display: flex; gap: 12px; font-size: .72rem; color: var(--gray); margin-bottom: 10px; flex-wrap: wrap; }
.case-link { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; font-weight: 700; color: var(--blue); text-decoration: none; }
.case-link::after { content: ' →'; }

/* ===== FILTER BUTTONS ===== */
.filter-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.filter-btn {
  border-radius: var(--r-pill); padding: 8px 20px; font-size: .82rem; font-weight: 700;
  border: 2px solid var(--border); background: #fff; color: var(--gray); cursor: pointer; transition: all .2s;
}
.filter-btn:hover, .filter-btn.active { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background: #fff; border-radius: var(--radius-card); margin-bottom: 12px; border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden; }
.faq-q { display: flex; align-items: center; gap: 14px; padding: 20px 24px; cursor: pointer; font-weight: 700; color: var(--navy); }
.faq-icon { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-family: 'Poppins', sans-serif; font-size: 1rem; font-weight: 900; }
.faq-icon.q { background: var(--amber); color: #fff; }
.faq-icon.a { background: var(--blue-light); color: var(--blue); }
.faq-a { padding: 0 24px 20px 70px; font-size: .9rem; color: var(--gray); display: none; }
.faq-item.open .faq-a { display: block; }
.faq-toggle { margin-left: auto; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; background: var(--blue-light); border-radius: 50%; color: var(--blue); font-size: 1.1rem; transition: transform .2s; flex-shrink: 0; }
.faq-item.open .faq-toggle { transform: rotate(45deg); }

/* ===== NEWS ===== */
.news-item {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 4px; border-bottom: 1px solid var(--border);
  text-decoration: none; transition: background .2s; border-radius: 8px;
}
.news-item:hover { background: var(--sky-2); }
.news-date { font-family: 'Poppins', sans-serif; font-size: .85rem; color: var(--gray); white-space: nowrap; }
.news-title { font-size: .92rem; color: var(--navy); flex: 1; }
.news-item .chev { color: var(--blue); flex-shrink: 0; }

/* ===== RESPONSIVE ===== */
/* hide nav + logo tagline before the header gets cramped (no hamburger design) */
@media (max-width: 1240px) {
  nav { display: none; }
  .logo-tag { display: none; }
}
@media (max-width: 1024px) {
  nav { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-inner { grid-template-columns: 1fr; }
  .logo-tag { display: none; }
}
@media (max-width: 768px) {
  .topbar { display: none; }
  .float-cta { display: none; }
  .section-title { font-size: 1.5rem; }
  .cta-inner { padding: 40px 28px; }
  .cta-h2 { font-size: 1.5rem; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .cases-grid { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 1.6rem; }
  .header-tel small { display: none; }
  /* keep header on one line on phones (buttons no longer wrap): drop the secondary 資料請求 */
  .header-right .btn-outline-blue { display: none; }
  .header-right { gap: 10px; }
}

/* ===== RELATED SITES（系列サイトバナー・wacwac.jp下部準拠） ===== */
.related-sites { padding: 52px 0 84px; background: var(--sky-2); border-top: 1px solid var(--border); }
.related-title { font-size: 1.1rem; font-weight: 800; color: var(--navy); text-align: center; margin-bottom: 24px; }
.related-group { max-width: 1000px; margin: 0 auto 28px; padding: 0 24px; }
.related-group:last-child { margin-bottom: 0; }
.related-group-title { font-size: .86rem; font-weight: 700; color: var(--navy); text-align: center; margin-bottom: 12px; }
.related-banners { display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: flex-start; gap: 12px; }
/* 元サイト（#top_banner_box）と同じ並び：PC・タブレットは横4つ、480px以下で横2つ */
.related-cell { width: calc((100% - 36px) / 4); }
.related-banner { display: block; width: 100%; aspect-ratio: 3 / 1; background: #fff; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; transition: border-color .2s; }
.related-banner:hover { border-color: var(--blue); }
.related-banner img { display: block; width: 100%; height: 100%; object-fit: contain; }
.related-sns { display: flex; justify-content: center; gap: 8px; margin-top: 8px; }
.related-sns-link { display: block; width: 34px; height: 34px; border-radius: 8px; overflow: hidden; transition: opacity .2s; }
.related-sns-link:hover { opacity: .7; }
.related-sns-link img { display: block; width: 100%; height: 100%; object-fit: contain; }
@media(max-width:480px){
  .related-cell { width: calc((100% - 12px) / 2); }
}

/* ===== ジャンル横断ナビ（カテゴリ別・商材ページ下部の共通パーツ） ===== */
.genre-nav { background: var(--bg-section); padding: 56px 0 64px; border-top: 1px solid var(--border); }
.gnav-heading {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin: 0 0 8px; font-size: clamp(1.3rem, 3vw, 1.7rem); font-weight: 900; color: var(--navy);
}
.gnav-heading::before, .gnav-heading::after { content: ""; width: 5px; height: 22px; background: var(--yellow); border-radius: 2px; }
.gnav-heading::before { transform: skewX(16deg); }
.gnav-heading::after  { transform: skewX(-16deg); }
.gnav-sub { text-align: center; color: var(--gray); font-weight: 600; font-size: .92rem; margin: 0 0 30px; }
.gnav-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.gnav-card {
  width: calc((100% - 5 * 14px) / 6); min-width: 132px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 18px 12px; text-decoration: none;
  box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s;
}
a.gnav-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--gc, var(--yellow)); }
.gnav-ic { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }
.gnav-ic svg { width: 36px; height: 36px; }
.gnav-label { font-size: .92rem; font-weight: 800; color: var(--navy); letter-spacing: .02em; text-align: center; line-height: 1.35; }
.gnav-card.is-current { border-color: var(--gc); background: color-mix(in srgb, var(--gc) 8%, #fff); box-shadow: inset 0 0 0 1px var(--gc); cursor: default; }
@media(max-width:980px){ .gnav-card { width: calc((100% - 3 * 14px) / 4); } }
@media(max-width:560px){ .gnav-card { width: calc((100% - 2 * 14px) / 3); min-width: 0; } .gnav-ic svg { width: 30px; height: 30px; } .gnav-label { font-size: .82rem; } }


/* ===== 2026-08-17 追加: スマホ幅でヘッダーが横にはみ出すのを防ぐ（wac-fix-20260817） ===== */
@media (max-width: 480px) {
  .header-inner { padding-left: 14px; padding-right: 14px; gap: 10px; }
  .header-right { gap: 8px; }
  .header-tel b { font-size: 1rem; }
  .header-right .btn-sm { padding: 10px 13px; font-size: .8rem; }
}

/* ===== 2026-08-17 追加: お問い合わせページのサイドバーを追従させ、右側の空白を減らす ===== */
@media (min-width: 1025px) {
  .contact-sidebar { position: sticky; top: 96px; }
}


/* ===== 2026-08-17 追加: スマホ・タブレットのメニュー（wac-menu-20260817） =====
   1240px以下ではヘッダーのナビが非表示になるため、開閉ボタンとメニューを用意する。 */

.nav-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  min-height: 44px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--navy);
  font-family: inherit;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle:hover { background: var(--blue-light); border-color: var(--blue-mid); }

.nav-toggle-bars {
  display: block;
  width: 20px;
  height: 14px;
  position: relative;
}
.nav-toggle-bars span {
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--navy);
  transition: transform .2s, opacity .2s;
}
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 6px; }
.nav-toggle-bars span:nth-child(3) { top: 12px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.site-menu {
  position: fixed;
  top: var(--menu-top, 73px);
  left: 0;
  right: 0;
  max-height: calc(100vh - var(--menu-top, 73px));
  overflow-y: auto;
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  z-index: 120;
}
.site-menu[hidden] { display: none; }

.site-menu-inner { padding: 8px 20px 24px; }

.site-menu-nav { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
.site-menu-nav a {
  display: block;
  padding: 15px 4px;
  border-bottom: 1px solid var(--border);
  color: var(--navy);
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
}
.site-menu-nav a:hover { color: var(--blue); }

.site-menu-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.site-menu-cta .btn { width: 100%; justify-content: center; padding: 14px 16px; font-size: .9rem; }

.site-menu-tel {
  display: block;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  text-align: center;
  text-decoration: none;
  color: var(--navy);
}
.site-menu-tel b {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.2;
}
.site-menu-tel small { display: block; margin-top: 4px; font-size: .72rem; color: var(--gray); }

.site-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(19, 41, 74, .45);
  z-index: 110;
}
.site-menu-overlay[hidden] { display: none; }

body.menu-open { overflow: hidden; }

@media (max-width: 1240px) {
  .nav-toggle { display: inline-flex; }
}

/* 狭い画面では文字ラベルを外してアイコンだけにする（横幅を確保） */
@media (max-width: 480px) {
  .nav-toggle { padding: 8px; }
  .nav-toggle-label { display: none; }
}

/* iPhone SE 等の狭い端末では、ヘッダーの「お問い合わせ」はメニュー内のものに任せる */
@media (max-width: 380px) {
  .header-right .btn-amber { display: none; }
}
