:root {
  --cream: #FFF6E7;
  --cream-dark: #F5E8CE;
  --red: #E8432E;
  --red-dark: #C2331F;
  --mustard: #F2B705;
  --turquoise: #2E9E97;
  --navy: #1C2541;
  --pink: #F2789F;
  --font-display: 'Bungee', sans-serif;
  --font-body: 'Work Sans', sans-serif;
}

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

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--navy);
  line-height: 1.7;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== NAV ===== */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 3px solid var(--navy);
}

nav.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: 1120px;
  margin: 0 auto;
}

.logo {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--navy);
  letter-spacing: 0.5px;
}
.logo span { color: var(--red); }

.nav-links {
  display: flex;
  gap: 36px;
  font-weight: 600;
  font-size: 15px;
}

.nav-links li a { position: relative; padding: 4px 0; }
.nav-links li a:hover, .nav-links li a.active { color: var(--red); }

.nav-cta {
  background: var(--navy);
  color: var(--cream) !important;
  padding: 10px 24px;
  border-radius: 40px;
  font-weight: 700;
  font-size: 14px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.nav-cta:hover { background: var(--red); transform: translateY(-2px); }

.nav-toggle { display: none; }

/* ===== PAGE HERO (下層ページ共通) ===== */
.page-hero {
  position: relative;
  padding: 90px 32px 70px;
  text-align: center;
  overflow: hidden;
}

.page-hero .kicker {
  display: inline-block;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 12px;
  padding: 8px 20px;
  border-radius: 40px;
  margin-bottom: 24px;
  transform: rotate(-3deg);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.25;
  color: var(--navy);
  margin-bottom: 20px;
}

.page-hero p {
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto;
  color: #3A4360;
  font-weight: 500;
}

/* ===== HERO (トップページ) ===== */
.hero {
  position: relative;
  padding: 100px 32px 120px;
  text-align: center;
  overflow: hidden;
  background: var(--cream);
}

.sunburst {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1400px;
  height: 1400px;
  transform: translate(-50%, -48%);
  background: repeating-conic-gradient(var(--mustard) 0deg 9deg, transparent 9deg 18deg);
  opacity: 0.35;
  border-radius: 50%;
  z-index: 0;
  animation: spin 90s linear infinite;
}

@keyframes spin {
  from { transform: translate(-50%, -48%) rotate(0deg); }
  to { transform: translate(-50%, -48%) rotate(360deg); }
}

.hero-inner { position: relative; z-index: 2; }

.hero-eyebrow-badge {
  display: inline-block;
  background: var(--navy);
  color: var(--cream);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 20px;
  border-radius: 40px;
  margin-bottom: 28px;
  transform: rotate(-3deg);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 9vw, 108px);
  line-height: 1.05;
  color: var(--navy);
  text-shadow: 6px 6px 0 var(--mustard);
  margin-bottom: 28px;
}
.hero h1 .accent { color: var(--red); text-shadow: 6px 6px 0 var(--turquoise); }

.hero p {
  font-size: 19px;
  max-width: 560px;
  margin: 0 auto 40px;
  color: var(--navy);
  font-weight: 500;
}

.hero-buttons, .page-hero-buttons {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  background: var(--red);
  color: var(--cream);
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 50px;
  font-size: 16px;
  border: 3px solid var(--navy);
  box-shadow: 5px 5px 0 var(--navy);
  transition: all 0.15s ease;
  cursor: pointer;
}
.btn-primary:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--navy); }

.btn-secondary {
  display: inline-block;
  background: var(--cream);
  color: var(--navy);
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 50px;
  font-size: 16px;
  border: 3px solid var(--navy);
  transition: all 0.15s ease;
}
.btn-secondary:hover { background: var(--navy); color: var(--cream); }

/* ===== MESSAGE (トップ用ティザー) ===== */
.message-teaser {
  background: var(--navy);
  color: var(--cream);
  padding: 90px 32px;
}
.message-teaser .wrap {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: center;
}
.message-label {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--mustard);
  margin-bottom: 18px;
}
.message-teaser h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.4;
  margin-bottom: 24px;
}
.message-teaser p { font-size: 16px; color: #D8DEEA; margin-bottom: 24px; }
a.readmore { font-weight: 700; color: var(--mustard); border-bottom: 2px solid var(--mustard); padding-bottom: 2px; }
a.readmore.on-light { color: var(--navy); border-bottom-color: var(--navy); }

.message-badge {
  justify-self: start;
  background: var(--red);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 14px;
  padding: 20px;
  border-radius: 50%;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: rotate(-8deg);
  line-height: 1.3;
}

/* ===== SERVICE ===== */
.service { padding: 100px 32px; }

.section-head { text-align: center; margin-bottom: 64px; }
.section-head .kicker-text {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--red);
  margin-bottom: 14px;
  display: block;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  color: var(--navy);
}

.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

.service-card {
  border: 3px solid var(--navy);
  border-radius: 20px;
  padding: 36px;
  position: relative;
  transition: transform 0.15s ease;
}
.service-card:hover { transform: translateY(-6px); }
.service-card.tone-red { background: #FDE3DE; }
.service-card.tone-mustard { background: #FCEFC0; }
.service-card.tone-turquoise { background: #D9EFEC; }
.service-card.tone-pink { background: #FBDCE6; }

.service-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  padding: 6px 16px;
  border-radius: 30px;
  background: var(--navy);
  color: var(--cream);
  margin-bottom: 20px;
}
.service-card h3 { font-size: 21px; font-weight: 800; margin-bottom: 12px; color: var(--navy); }
.service-card p { font-size: 15px; color: #3A4360; }

/* サービス詳細ページ用の大きいセクション */
.service-detail {
  padding: 70px 32px;
  border-bottom: 3px dashed rgba(28,37,65,0.15);
}
.service-detail:last-of-type { border-bottom: none; }
.service-detail .wrap { max-width: 860px; }
.service-detail h2 { font-family: var(--font-display); font-size: clamp(24px,3.6vw,32px); margin-bottom: 18px; color: var(--navy); }
.service-detail p { font-size: 16px; color: #3A4360; max-width: 700px; }

/* ===== ABOUT ===== */
.about-band {
  background: var(--turquoise);
  padding: 90px 32px;
  color: var(--cream);
}
.about-band .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.about-band h2 { font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 24px; }

.about-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; }
.about-facts div { border-top: 2px solid rgba(255,255,255,0.5); padding-top: 10px; }
.about-facts .label { font-size: 12px; font-weight: 700; opacity: 0.8; margin-bottom: 4px; }
.about-facts .value { font-size: 16px; font-weight: 700; }

/* 会社概要ページ用テーブル */
.fact-table { width: 100%; border-collapse: collapse; margin: 40px 0; }
.fact-table th, .fact-table td {
  text-align: left;
  padding: 18px 20px;
  border-bottom: 2px solid rgba(28,37,65,0.15);
  font-size: 15px;
}
.fact-table th { width: 180px; color: var(--red); font-weight: 800; }
.fact-table td { color: var(--navy); font-weight: 600; }

/* ===== PROSE (本文) ===== */
.prose { max-width: 760px; margin: 0 auto; padding: 70px 32px 100px; }
.prose h2 {
  font-family: var(--font-display);
  font-size: 24px;
  margin: 44px 0 16px;
  color: var(--navy);
}
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 20px; font-size: 16px; color: #3A4360; }
.prose ul { margin: 0 0 24px 22px; list-style: disc; }
.prose li { margin-bottom: 8px; font-size: 16px; color: #3A4360; }

/* ===== CTA ===== */
.cta {
  text-align: center;
  padding: 110px 32px;
  background: var(--mustard);
}
.cta h2 { font-family: var(--font-display); font-size: clamp(30px, 5vw, 50px); color: var(--navy); margin-bottom: 20px; }
.cta p { font-size: 17px; color: var(--navy); margin-bottom: 36px; }

/* ===== CONTACT FORM ===== */
.form-wrap { max-width: 640px; margin: 0 auto; padding: 70px 32px 110px; }
.form-group { margin-bottom: 26px; }
.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--navy);
}
.required-badge {
  background: var(--red);
  color: var(--cream);
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 20px;
  margin-left: 8px;
  font-weight: 700;
  vertical-align: middle;
}
.form-group input[type=text],
.form-group input[type=email],
.form-group input[type=tel],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 3px solid var(--navy);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 15px;
  background: #fff;
  color: var(--navy);
}
.form-group textarea { min-height: 160px; resize: vertical; }
.char-count { font-size: 12px; color: #7A8199; text-align: right; margin-top: 6px; }
.form-error {
  background: #FDE3DE;
  border: 2px solid var(--red);
  color: var(--red-dark);
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 26px;
  font-size: 14px;
  font-weight: 600;
}
.field-error { color: var(--red-dark); font-size: 13px; margin-top: 6px; font-weight: 600; }
.form-submit { text-align: center; margin-top: 12px; }
.form-submit .btn-primary { width: 100%; border: none; font-size: 17px; }
.recaptcha-note { font-size: 12px; color: #7A8199; text-align: center; margin-top: 16px; }
.recaptcha-note a { text-decoration: underline; }

/* ===== THANKS ===== */
.thanks-wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 110px 32px 140px;
  text-align: center;
}
.thanks-badge {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--turquoise);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  transform: rotate(-6deg);
}
.thanks-wrap h1 { font-family: var(--font-display); font-size: 30px; margin-bottom: 20px; color: var(--navy); }
.thanks-wrap p { font-size: 16px; color: #3A4360; margin-bottom: 36px; }

/* ===== FOOTER ===== */
footer.site-footer { background: var(--navy); color: var(--cream); padding: 56px 32px 32px; }
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; margin-bottom: 40px; }
.footer-logo { font-family: var(--font-display); font-size: 18px; }
.footer-logo span { color: var(--mustard); }
.footer-links { display: flex; gap: 32px; font-size: 14px; font-weight: 600; flex-wrap: wrap; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 24px;
  font-size: 13px;
  color: #9AA3BE;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .message-teaser .wrap, .about-band .wrap { grid-template-columns: 1fr; }
  .message-badge { justify-self: center; margin-bottom: 20px; }
  .service-grid { grid-template-columns: 1fr; }
  .about-facts { grid-template-columns: 1fr; }
  .fact-table th { width: 120px; }
}

@media (prefers-reduced-motion: reduce) {
  .sunburst { animation: none; }
}

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}
