/* ================================================
   山崎社会保険労務士事務所 — カスタムデザイン CSS
   ファイル名: yamazaki-design.css
   場所: 使用中のテーマフォルダに置いてください
   ================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #1e6fa5;
  --navy-light: #2d8bc9;
  --gold: #3aab82;
  --gold-light: #5dc4a0;
  --cream: #f0f8ff;
  --white: #ffffff;
  --gray: #6b7280;
  --gray-light: #f0f7fb;
  --text: #1f2937;
  --text-muted: #6b7280;
  --radius: 4px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  color: var(--text);
  background: var(--white);
  line-height: 1.8;
  overflow-x: hidden;
  /* WordPressテーマのスタイルをリセット */
  margin: 0 !important;
  padding: 0 !important;
}

/* テーマのヘッダー・フッターを非表示にする */
.site-header,
.site-footer,
#masthead,
#colophon,
.wp-block-template-part[data-area="header"],
.wp-block-template-part[data-area="footer"] {
  display: none !important;
}

/* テーマの余白をリセット */
.site-content,
.entry-content,
.wp-site-blocks,
main,
#primary,
#content,
.page,
article {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
}

/* ===== HEADER ===== */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  background: rgba(30,111,165,0.97);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 64px;
}

.logo {
  font-family: 'Noto Serif JP', serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--white);
  letter-spacing: 0.05em;
  line-height: 1.4;
}

.logo span {
  display: block;
  font-size: 10px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  color: var(--gold-light);
  letter-spacing: 0.12em;
  margin-top: 2px;
}

nav { display: flex; gap: 32px; align-items: center; }

nav a {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}
nav a:hover { color: var(--gold-light); }

.nav-cta {
  background: var(--gold);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: var(--radius);
  font-weight: 500 !important;
  font-size: 13px;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--gold-light) !important; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 64px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(58,171,130,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 50%, rgba(45,139,201,0.5) 0%, transparent 70%);
}

.hero-lines {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 45%;
  overflow: hidden;
}

.hero-lines::before {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 600px; height: 600px;
  border: 1px solid rgba(58,171,130,0.15);
  border-radius: 50%;
  transform: translateX(30%);
}

.hero-lines::after {
  content: '';
  position: absolute;
  top: 10%; right: 5%;
  width: 400px; height: 400px;
  border: 1px solid rgba(58,171,130,0.08);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 80px;
  max-width: 700px;
  animation: fadeUp 0.9s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-label {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--gold-light);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-label::before {
  content: '';
  display: block;
  width: 32px; height: 1px;
  background: var(--gold);
}

.hero h1 {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  color: var(--white);
  line-height: 1.55;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
}

.hero h1 em { font-style: normal; color: var(--gold-light); }

.hero p {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  line-height: 2;
  margin-bottom: 44px;
  max-width: 540px;
}

.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--white);
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.85);
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 14px;
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: border-color 0.2s, color 0.2s;
}
.btn-secondary:hover { border-color: var(--gold-light); color: var(--gold-light); }

.hero-scroll {
  position: absolute;
  bottom: 40px; left: 80px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.35);
}
.hero-scroll::after {
  content: '';
  display: block;
  width: 40px; height: 1px;
  background: rgba(255,255,255,0.25);
}

/* ===== SECTIONS COMMON ===== */
section { padding: 96px 80px; }

.section-header { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 56px; }

.section-num {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--gold);
  padding-top: 4px;
}

.section-heading {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.45;
  letter-spacing: 0.04em;
}

.section-heading span {
  display: block;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.gold-line { width: 40px; height: 2px; background: var(--gold); margin: 12px 0 0; }

/* ===== REASONS ===== */
.reasons { background: var(--cream); }

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.reason-card {
  background: var(--white);
  border: 1px solid rgba(30,111,165,0.12);
  border-top: 3px solid var(--gold);
  padding: 32px 28px;
  border-radius: var(--radius);
  transition: box-shadow 0.2s, transform 0.2s;
}
.reason-card:hover { box-shadow: 0 8px 24px rgba(30,111,165,0.1); transform: translateY(-2px); }

.reason-icon {
  width: 44px; height: 44px;
  background: #e0f4ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 20px;
}

.reason-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
}

.reason-desc { font-size: 13px; color: var(--text-muted); line-height: 1.85; }

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--gray-light);
}

.service-item {
  background: var(--white);
  padding: 40px 44px;
  position: relative;
  overflow: hidden;
  transition: background 0.2s;
  cursor: default;
}
.service-item:hover { background: #f0f8ff; }

.service-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s ease;
}
.service-item:hover::before { transform: scaleY(1); }

.service-num {
  font-size: 36px;
  font-weight: 300;
  color: rgba(30,111,165,0.15);
  font-family: 'Noto Serif JP', serif;
  line-height: 1;
  margin-bottom: 16px;
}

.service-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
}

.service-desc { font-size: 13px; color: var(--text-muted); line-height: 1.9; margin-bottom: 20px; }

.service-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.stag {
  font-size: 11px;
  padding: 3px 10px;
  border: 1px solid rgba(30,111,165,0.3);
  color: var(--navy);
  border-radius: 20px;
}

/* ===== FLOW ===== */
.flow { background: var(--navy); }
.flow .section-heading { color: var(--white); }
.flow .section-num { color: var(--gold-light); }

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
}

.flow-steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(12.5% + 16px);
  right: calc(12.5% + 16px);
  height: 1px;
  background: rgba(58,171,130,0.3);
}

.flow-step { text-align: center; padding: 0 20px; position: relative; z-index: 1; }

.step-circle {
  width: 72px; height: 72px;
  border: 1px solid rgba(58,171,130,0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  background: var(--navy);
}

.step-num { font-size: 13px; color: var(--gold-light); letter-spacing: 0.08em; }

.step-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
}

.step-desc { font-size: 12px; color: rgba(255,255,255,0.5); line-height: 1.9; }

/* ===== VOICE ===== */
.voices { background: var(--cream); }

.voices-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.voice-card {
  background: var(--white);
  border: 1px solid rgba(30,111,165,0.12);
  border-radius: var(--radius);
  padding: 28px;
}

.voice-quote {
  font-size: 40px;
  line-height: 1;
  color: var(--gold-light);
  opacity: 0.4;
  font-family: Georgia, serif;
  margin-bottom: 12px;
}

.voice-text { font-size: 13px; line-height: 1.9; color: var(--text); margin-bottom: 20px; }

.voice-who {
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--gray-light);
  padding-top: 14px;
}

/* ===== CONTACT ===== */
.contact {
  background: var(--white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info h2 {
  font-family: 'Noto Serif JP', serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.contact-info p.sub { font-size: 13px; color: var(--text-muted); margin-bottom: 36px; letter-spacing: 0.06em; }

.contact-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-light);
}

.contact-icon {
  width: 36px; height: 36px;
  background: #e0f4ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.contact-label { font-size: 11px; letter-spacing: 0.1em; color: var(--gold); margin-bottom: 4px; }
.contact-value { font-size: 14px; color: var(--text); }

.contact-form {
  background: var(--cream);
  border: 1px solid rgba(30,111,165,0.15);
  border-radius: var(--radius);
  padding: 36px;
}

.form-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 24px;
}

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.wpcf7-form input,
.wpcf7-form textarea,
.wpcf7-form select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(30,111,165,0.2);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.wpcf7-form input:focus,
.wpcf7-form textarea:focus { border-color: var(--gold); }

.form-group textarea,
.wpcf7-form textarea { height: 100px; resize: vertical; }

.wpcf7-submit,
.form-submit {
  width: 100%;
  padding: 13px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  font-family: 'Noto Sans JP', sans-serif;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 6px;
}
.wpcf7-submit:hover,
.form-submit:hover { background: var(--navy-light); }

/* ===== FOOTER ===== */
footer {
  background: var(--navy);
  padding: 40px 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

footer .logo { font-size: 13px; }

.footer-copy { font-size: 11px; color: rgba(255,255,255,0.3); letter-spacing: 0.08em; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  header { padding: 0 20px; }
  nav { display: none; }
  section { padding: 64px 24px; }
  .hero-content { padding: 0 24px; }
  .hero-scroll { left: 24px; }
  .services-grid { grid-template-columns: 1fr; }
  .flow-steps { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .flow-steps::before { display: none; }
  .voices-grid { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 12px; text-align: center; padding: 32px 24px; }
}
