@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@700&display=swap');

/* ===== CSS変数 ===== */
:root {
  --primary: #1d5fb9;
  --primary-deep: #123c78;
  --navy: #14273f;
  --gold: #b39355;
  --bg: #fbfbf9;
  --surface: #ffffff;
  --text: #232b35;
  --text-sub: #5c6673;
  --border: #dde3ea;
  --header-h: 72px;
  --font-serif: "游ゴシック体", "Yu Gothic", YuGothic, sans-serif;
  --font-sans: "游ゴシック体", "Yu Gothic", YuGothic, sans-serif;
}

/* ===== リセット・ベース ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.9;
  letter-spacing: 0.02em;
  font-feature-settings: "palt";
}
img { max-width: 100%; display: block; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ===== ヘッダー ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 100; display: flex; align-items: center;
  transition: box-shadow 0.3s;
}
.header.is-scrolled { box-shadow: 0 2px 12px rgba(20,39,63,0.08); }
.header-inner {
  width: 100%; max-width: 1120px; margin: 0 auto;
  padding: 0 20px; display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
}
.brand-group { display: flex; align-items: center; gap: 18px; min-width: 0; }
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--text); min-width: 0;
}
.brand-logo {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary-deep); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-weight: 700; font-size: 15px;
  flex-shrink: 0; letter-spacing: 0.05em;
}
.brand-text { line-height: 1.35; }
.brand-tag { display: block; font-size: 11px; color: var(--text-sub); letter-spacing: 0.08em; font-weight: 800; }
.brand-name {
  font-family: 'M PLUS Rounded 1c', var(--font-serif); font-size: 24px; font-weight: 700;
  letter-spacing: 0.08em; color: var(--primary);
}
.header-tel {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--primary-deep);
  padding: 7px 16px 7px 12px;
  border: 1.5px solid var(--primary); border-radius: 999px;
  background: rgba(29,95,185,0.05); flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.header-tel:hover {
  background: rgba(29,95,185,0.1); border-color: var(--primary-deep);
  box-shadow: 0 2px 10px rgba(29,95,185,0.2);
}
.header-tel svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--primary); }
.header-tel-text { display: flex; flex-direction: column; line-height: 1.2; }
.header-tel small { font-size: 9px; letter-spacing: 0.14em; color: var(--primary); font-weight: 700; }
.header-tel-num {
  font-family: var(--font-serif); font-size: 17px;
  font-weight: 700; letter-spacing: 0.06em; color: var(--primary-deep);
}

/* ===== ナビゲーション ===== */
.gnav { display: flex; gap: 6px; }
.gnav a {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-width: 84px; padding: 12px 24px;
  font-size: 13px; font-weight: 700; text-decoration: none;
  border-radius: 4px; line-height: 1.35; text-align: center;
  letter-spacing: 0.06em;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}
.gnav a small { font-size: 9px; font-weight: 500; letter-spacing: 0.14em; opacity: 0.75; }
.gnav a.nav-cta { background: var(--primary); color: #fff; }
.gnav a.nav-cta:hover { background: var(--primary-deep); box-shadow: 0 3px 10px rgba(29,95,185,0.3); }
.gnav a.nav-plain { color: var(--navy); border: 1px solid var(--border); background: var(--surface); }
.gnav a.nav-plain:hover { border-color: var(--primary); color: var(--primary); }
.gnav a.nav-plain.is-current { border-color: var(--primary-deep); color: var(--primary-deep); background: rgba(18,60,120,0.06); }

/* ===== セクション共通見出し ===== */
.sec-head { text-align: center; margin-bottom: 30px; }
.sec-head-en {
  display: block; font-size: 9px; letter-spacing: 0.22em;
  color: var(--gold); margin-bottom: 3px;
}
.sec-head-ja {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3.4vw, 28px); font-weight: 700;
  letter-spacing: 0.12em; color: var(--navy);
}

/* ===== フッター ===== */
.footer {
  background: #0e1c30;
  color: rgba(255,255,255,0.75);
  padding: 48px 20px 0; font-size: 13px;
}
.footer-inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; justify-content: space-between;
  gap: 32px; flex-wrap: wrap; padding-bottom: 40px;
}
.footer-brand .brand-name { color: #fff; }
.footer-brand p { margin-top: 10px; line-height: 1.8; }
.footer-nav { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 8px; }
.footer-nav a { color: rgba(255,255,255,0.75); text-decoration: none; transition: color 0.2s; }
.footer-nav a:hover { color: #fff; }
.footer-copy {
  border-top: 1px solid rgba(255,255,255,0.12);
  text-align: center; font-size: 11px; letter-spacing: 0.1em;
  padding: 18px 0 calc(18px + env(safe-area-inset-bottom));
  color: rgba(255,255,255,0.5);
}

/* ===== フローティングCTA ===== */
.float-cta {
  position: fixed; right: 20px; bottom: 24px;
  z-index: 90; display: flex; flex-direction: column; gap: 10px;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity 0.4s, transform 0.4s;
}
.float-cta.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.float-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 20px; border-radius: 999px;
  font-size: 16px; font-weight: 700; text-decoration: none;
  letter-spacing: 0.04em; line-height: 1.3;
  box-shadow: 0 6px 20px rgba(20,39,63,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}
.float-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(20,39,63,0.4); }
.float-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.float-btn--tel { background: #fff; color: var(--primary-deep); border: 1px solid var(--primary-deep); padding: 8px 20px 14px 20px;}
.float-btn--consult { background: var(--primary); color: #fff; }
.float-btn--tel .float-sub {
  display: block; font-size: 10px; font-weight: 500;
  color: var(--text-sub); letter-spacing: 0.04em;
}
.float-free {
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.14em; color: var(--primary);
}
.float-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 90; background: rgba(255,255,255,0.97);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(20,39,63,0.12);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); gap: 8px;
}
.float-bar a {
  flex: 1; display: flex; align-items: center; justify-content: center;
  gap: 6px; padding: 12px 6px; font-size: 13px; font-weight: 700;
  text-decoration: none; border-radius: 6px; letter-spacing: 0.03em;
}
.float-bar svg { width: 16px; height: 16px; }
.float-bar .bar-tel { background: #fff; color: var(--primary-deep); border: 1.5px solid var(--primary-deep); }
.float-bar .bar-consult { background: var(--primary); color: #fff; }

/* ===== Googleマップ ===== */
.map-placeholder {
  overflow: hidden;
  margin-top: 40px;
}
.map-placeholder iframe {
  width: 100%;
  height: 400px;
  border: 0;
  display: block;
}

/* ===== スクロール表示 ===== */
.reveal { opacity: 0; }
.reveal.is-visible { animation: heroFadeUp 0.6s ease-out forwards; }

/* ===== ヒーローアニメーション（共通） ===== */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ===== スマホ共通 ===== */
@media (max-width: 767px) {
  :root { --header-h: 80px; }
  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 6px 12px 4px;
  }
  .brand-group {
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
  }
  .brand-tag { display: none; line-height: 0; }
  .brand-logo { width: 28px; height: 28px; font-size: 11px; }
  .brand-name { font-size: 18px; letter-spacing: 0.04em; }
  .header-tel {
    padding: 4px 10px 4px 8px;
    border-radius: 6px;
    gap: 5px;
  }
  .header-tel svg { width: 13px; height: 13px; }
  .header-tel small { display: none; }
  .header-tel-num { font-size: 14px; }
  .gnav { gap: 3px; }
  .gnav a { flex: 1; min-width: 0; padding: 5px 2px; font-size: 11px; white-space: nowrap; }
  .gnav a small { display: none; }
  .footer-inner { flex-direction: column; gap: 24px; }
  .float-cta { display: none; }
  .float-bar { display: flex; }
  body { padding-bottom: 64px; }
  .map-placeholder iframe { height: 240px; }
}

/* ===== SNS ===== */
.sns {
  max-width: 1120px; margin: 88px auto 0; padding: 0 20px;
}
.sns-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 24px; margin-top: 36px;
}
.sns-card {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 36px 32px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 4px;
  text-decoration: none;
  transition: box-shadow 0.3s, transform 0.3s;
}
.sns-card:hover {
  box-shadow: 0 12px 28px rgba(20,39,63,0.12);
  transform: translateY(-4px);
}
.sns-icon-wrap {
  width: 52px; height: 52px; border-radius: 12px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
}
.sns-card--note .sns-icon-wrap { background: #41c9b4; color: #fff; font-size: 28px; }
.sns-card--line .sns-icon-wrap { background: #06C755; color: #fff; font-size: 30px; }
.sns-service {
  font-size: 11px; letter-spacing: 0.14em; font-weight: 700;
  color: var(--text-sub); margin-bottom: 6px;
}
.sns-title {
  font-family: var(--font-serif);
  font-size: 20px; font-weight: 700; color: var(--navy);
  letter-spacing: 0.06em; margin-bottom: 12px;
}
.sns-title::after {
  content: ""; display: block; width: 28px; height: 2px;
  background: var(--gold); margin-top: 8px;
}
.sns-desc {
  font-size: 13px; color: var(--text-sub); line-height: 1.85;
  flex: 1; margin-bottom: 24px;
}
.sns-btn {
  padding: 10px 22px; border-radius: 999px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em; color: #fff;
}
.sns-card--note .sns-btn { background: #41c9b4; }
.sns-card--line .sns-btn { background: #06C755; }
@media (max-width: 767px) {
  .sns { margin-top: 64px; }
  .sns-grid { grid-template-columns: 1fr; gap: 16px; }
  .sns-card { padding: 24px 20px; }
}
