/*
  まつうらみとし社会保険労務士事務所 — 共通CSS
  表記ルール:
    事務所名 → まつうらみとし社会保険労務士事務所（ひらがな）
    代表者名 → 松浦 巳敏（まつうら みとし）
*/

/* ---- リセット ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ---- デザイントークン ---- */
:root {
  --navy:        #1a2f5e;
  --navy-dark:   #0d1e42;
  --navy-mid:    #2a4a8a;
  --gold:        #c8a96e;
  --gold-light:  #f0ddb0;
  --white:       #ffffff;
  --off-white:   #f5f4f0;
  --light-blue:  #e8eef7;
  --charcoal:    #2d3142;
  --gray:        #6b7280;
  --gray-light:  #e5e7eb;
  --font-serif:  'Noto Serif JP', 'Yu Mincho', '游明朝', serif;
  --font-sans:   'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'メイリオ', sans-serif;
  --fs-hero:    clamp(26px, 6.5vw, 48px);
  --fs-h2:      clamp(20px, 4vw,   32px);
  --fs-h3:      clamp(16px, 2.5vw, 20px);
  --fs-body:    clamp(15px, 1.8vw, 16px);
  --fs-small:   clamp(13px, 1.5vw, 14px);
  --fs-label:   11px;
  --sec-pad:    clamp(60px, 10vw, 96px);
}

html { scroll-behavior: smooth; scroll-padding-top: 118px; }
body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-top: 110px; /* 固定ヘッダー分（全ページ共通） */
}
@media (max-width: 480px) {
  body { padding-top: 76px; } /* スマホはヘッダー76px */
}
img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
/* タッチターゲット最小サイズ（ボタン・ナビのみ。ロゴ・テキストリンクは除外） */
button { min-height: 44px; }
.btn, .sp-fixed-bar, .sp-nav-cta { min-height: 44px; }
ul, ol { list-style: none; }

/* ---- コンテナ ---- */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 32px);
}

/* ---- 共通テキスト ---- */
.section-eyebrow {
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 10px;
  display: block;
}
.section-title {
  font-family: var(--font-serif);
  font-size: var(--fs-h2);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.55;
  margin-bottom: 16px;
}
.section-title--white { color: var(--white); }
.section-lead {
  font-size: var(--fs-body);
  color: var(--gray);
  line-height: 1.95;
  max-width: 640px;
}
.gold-bar { width: 32px; height: 2px; background: var(--gold); margin-bottom: 18px; }

/* ---- ボタン ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 500;
  letter-spacing: 0.05em;
  border-radius: 3px;
  cursor: pointer;
  border: none;
  transition: background .2s, color .2s, transform .15s;
  white-space: nowrap;
}
.btn-gold         { background: var(--gold);    color: var(--navy-dark); }
.btn-gold:hover   { background: var(--gold-light); transform: translateY(-1px); }
.btn-navy         { background: var(--navy);    color: var(--white); }
.btn-navy:hover   { background: var(--navy-mid); transform: translateY(-1px); }
.btn-outline-white  { background: transparent; color: rgba(255,255,255,.8); border: 1.5px solid rgba(255,255,255,.35); }
.btn-outline-white:hover { border-color: var(--gold); color: var(--gold); }
.btn-outline-navy { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

/* ---- ヘッダー ---- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 200; height: 110px;
  background: rgba(13,30,66,.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(200,169,110,.3);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
  padding: 0 clamp(20px,4vw,48px);
  max-width: 1200px; margin: 0 auto;
}
.site-logo {
  display: flex; flex-direction: row; align-items: center;
  gap: 16px; flex-shrink: 0; text-decoration: none;
}
.logo-img {
  flex-shrink: 0;
  height: 64px;
  width: auto;
  display: block;
  max-width: none;
}
.logo-main {
  font-family: var(--font-serif);
  font-size: clamp(14px,2vw,17.5px);
  font-weight: 500; color: var(--white);
  letter-spacing: .06em; white-space: nowrap;
  line-height: 1;
}
.logo-text-group { display: flex; flex-direction: column; gap: 5px; }
.logo-sub { font-size: clamp(9px,1vw,11px); color: rgba(200,169,110,.78); letter-spacing: .14em; white-space: nowrap; line-height: 1; }

.pc-nav {
  display: flex; align-items: center;
  gap: clamp(14px,2.2vw,24px); flex-shrink: 0;
}
.pc-nav a {
  font-size: 13px; color: rgba(255,255,255,.72);
  letter-spacing: .04em; transition: color .2s;
  padding: 4px 0; white-space: nowrap; min-height: unset;
}
.pc-nav a:hover, .pc-nav a.active { color: var(--gold); }
.nav-cta {
  background: var(--gold) !important; color: var(--navy-dark) !important;
  font-weight: 500 !important; padding: 8px 18px !important;
  border-radius: 3px; min-height: 36px !important;
  display: flex !important; align-items: center !important;
}
.nav-cta:hover { background: var(--gold-light) !important; color: var(--navy-dark) !important; }

.hamburger-btn {
  display: none; flex-direction: column; justify-content: center;
  gap: 6px; width: 44px; height: 44px;
  background: none; border: none; cursor: pointer; padding: 10px; flex-shrink: 0;
}
.hamburger-btn span {
  display: block; width: 24px; height: 2px;
  background: rgba(255,255,255,.85); border-radius: 1px;
  transition: all .3s; pointer-events: none;
}
.hamburger-btn.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger-btn.is-open span:nth-child(2) { opacity: 0; }
.hamburger-btn.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.sp-nav {
  display: none; position: fixed;
  top: 68px; left: 0; right: 0; z-index: 199;
  background: var(--navy-dark);
  border-top: 1px solid rgba(200,169,110,.2);
  max-height: 0; overflow: hidden; transition: max-height .35s ease;
}
.sp-nav.is-open { max-height: 460px; }
.sp-nav-inner { padding: 8px 0 16px; }
.sp-nav a {
  display: flex; align-items: center;
  padding: 15px 24px; font-size: 16px;
  color: rgba(255,255,255,.82);
  border-bottom: 1px solid rgba(255,255,255,.06);
  min-height: 52px; transition: background .15s;
}
.sp-nav a:hover { background: rgba(255,255,255,.05); }
.sp-nav-cta {
  display: block !important; margin: 16px 20px 0 !important;
  background: var(--gold); color: var(--navy-dark) !important;
  font-weight: 500; text-align: center;
  border-radius: 3px; border-bottom: none !important;
  font-size: 15px !important;
}

/* ---- ページヒーロー（内部ページ共通） ---- */
.page-hero {
  background: var(--navy-dark);
  padding: 120px 0 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,169,110,.35), transparent);
}
.page-hero-eyebrow { font-size: var(--fs-label); color: rgba(200,169,110,.8); letter-spacing: .2em; margin-bottom: 10px; display: block; }
.page-hero-title {
  font-family: var(--font-serif);
  font-size: var(--fs-h2);
  color: var(--white);
  font-weight: 500;
  line-height: 1.55;
}

/* ---- パンくず ---- */
.breadcrumb {
  background: var(--off-white);
  border-bottom: 1px solid var(--gray-light);
  padding: 10px 0;
}
.breadcrumb ol {
  display: flex; flex-wrap: wrap; gap: 6px;
  align-items: center; font-size: 12px; color: var(--gray);
}
.breadcrumb ol li + li::before { content: '›'; margin-right: 6px; }
.breadcrumb ol a { color: var(--navy); }
.breadcrumb ol a:hover { text-decoration: underline; }

/* ---- 共通CTA帯 ---- */
.cta-band { background: var(--off-white); padding: var(--sec-pad) 0; text-align: center; }
.cta-band-inner { max-width: 580px; margin: 0 auto; padding: 0 clamp(20px,4vw,32px); }
.cta-band-title {
  font-family: var(--font-serif);
  font-size: clamp(20px,3.5vw,28px);
  color: var(--navy); font-weight: 500;
  line-height: 1.7; margin-bottom: 14px;
}
.cta-band-body { font-size: var(--fs-body); color: var(--gray); line-height: 1.95; margin-bottom: 32px; }
.cta-band-btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cta-band-note { margin-top: 16px; font-size: 12px; color: var(--gray); }

/* ---- フッター ---- */
.site-footer {
  background: var(--navy-dark);
  padding: clamp(44px,7vw,64px) 0 24px;
  border-top: 1px solid rgba(200,169,110,.2);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(28px,5vw,48px); margin-bottom: 40px;
}
.footer-office-name { font-family: var(--font-serif); font-size: 14px; color: var(--white); margin-bottom: 5px; }
.footer-rep  { font-size: 12px; color: rgba(200,169,110,.75); margin-bottom: 14px; }
.footer-desc { font-size: 12px; color: rgba(255,255,255,.38); line-height: 1.9; }
.footer-col-head { font-size: var(--fs-label); font-weight: 500; color: var(--gold); letter-spacing: .12em; margin-bottom: 14px; }
.footer-nav-list li + li { margin-top: 10px; }
.footer-nav-list a { font-size: 13px; color: rgba(255,255,255,.52); transition: color .2s; min-height: unset; }
.footer-nav-list a:hover { color: var(--gold); }
.footer-info { font-size: 12px; color: rgba(255,255,255,.42); line-height: 2; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); padding-top: 20px; text-align: center; font-size: 11px; color: rgba(255,255,255,.22); }

/* ---- スマホ固定バー ---- */
.sp-fixed-bar {
  display: none; position: fixed;
  bottom: 0; left: 0; right: 0; z-index: 150;
  background: var(--gold); color: var(--navy-dark);
  text-align: center; padding: 15px 20px;
  font-size: 15px; font-weight: 500; letter-spacing: .05em;
  min-height: 52px;
  padding-bottom: calc(15px + env(safe-area-inset-bottom));
}

/* ---- メディアクエリ ---- */
@media (max-width: 768px) {
  .pc-nav        { display: none; }
  .hamburger-btn { display: flex; }
  .sp-nav        { display: block; }
  .sp-fixed-bar  { display: block; }
  .footer-grid   { grid-template-columns: 1fr; gap: 32px; }
  body           { padding-bottom: calc(52px + env(safe-area-inset-bottom)); }
  .cta-band-btns { flex-direction: column; align-items: center; }
  .cta-band-btns .btn { width: 100%; max-width: 340px; }
  /* ページヒーロー */
  .page-hero { padding: clamp(24px,5vw,36px) 0 clamp(18px,4vw,28px); }
  .page-hero-title { font-size: clamp(20px,5vw,26px); }
  /* セクション見出し */
  .section-title   { font-size: clamp(18px,4vw,22px); }
  .section-eyebrow { margin-bottom: 6px; }
  .gold-bar        { margin-bottom: 12px; }
  /* パンくず */
  .breadcrumb      { padding: 8px 0; }
  .breadcrumb ol   { flex-wrap: wrap; gap: 4px 0; font-size: 11px; }
  /* コンテナの横パディングをスマホ用に縮小 */
  .container       { padding: 0 16px; }
  /* フッター余白 */
  .footer-grid     { gap: 28px; }
  .footer-bottom   { margin-top: 24px; padding-top: 16px; }
  /* 共通CTA帯 */
  .cta-band        { padding: clamp(36px,6vw,52px) 0; }
  .cta-band-title  { font-size: clamp(18px,4vw,22px); margin-bottom: 12px; }
  .cta-band-body   { font-size: 14px; margin-bottom: 24px; }
}

@media (max-width: 480px) {
  .logo-sub { display: none; }
  .site-header { height: 76px; }
  body { padding-top: 76px; }
  .logo-img { height: 42px; width: auto; }
  /* フォーム入力フォントサイズ（iOS自動ズーム防止） */
  input, select, textarea { font-size: 16px !important; }
  /* ボタン全幅化 */
  .btn { min-height: 48px; }
  /* section pad 縮小 */
  :root { --sec-pad: clamp(36px, 8vw, 56px); }
}

@media (min-width: 769px) {
  .hamburger-btn { display: none; }
  .sp-nav        { display: none !important; }
  .sp-fixed-bar  { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
