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

:root {
  --red: #8C1C1C;
  --red-light: #B22222;
  --red-pale: #f9eded;
  --white: #ffffff;
  --gray: #f5f5f5;
  --text: #222222;
  --text-muted: #666666;
  --border: #e0e0e0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text);
  line-height: 1.8;
  font-weight: 400;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== ヘッダー ===== */
#header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 16px 0;
  transition: all 0.3s;
  background: rgba(255,255,255,0.95);
  border-bottom: 1px solid transparent;
}

#header.scrolled {
  background: white;
  border-bottom-color: var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

nav {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-main {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #222;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--red); }

.nav-cta {
  background: var(--red) !important;
  color: white !important;
  padding: 8px 20px;
  border-radius: 2px;
  font-weight: 500 !important;
}

.nav-cta:hover { background: var(--red-light) !important; }

/* ===== ヒーロー ===== */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg svg,
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(1.1) saturate(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(8, 18, 38, 0.58) 0%,
    rgba(15, 25, 50, 0.38) 50%,
    rgba(8, 18, 38, 0.22) 100%
  );
  z-index: 1;
}

.hero-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 120px 24px 80px;
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.95);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  padding: 6px 18px;
  border-left: 3px solid var(--red-light);
  margin-bottom: 28px;
  font-weight: 500;
  backdrop-filter: blur(4px);
}

#hero h1 {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.55;
  color: white;
  margin-bottom: 20px;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.88);
  margin-bottom: 44px;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

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

/* ===== ボタン ===== */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--red);
  color: white;
}
.btn-primary:hover { background: var(--red-light); }

.btn-outline {
  background: rgba(255,255,255,0.15);
  color: white;
  border: 2px solid rgba(255,255,255,0.85);
  backdrop-filter: blur(4px);
}
.btn-outline:hover { background: white; color: var(--red); }

.btn-outline-red {
  background: transparent;
  color: var(--red);
  border: 1.5px solid var(--red);
  width: 100%;
  text-align: center;
  margin-top: 16px;
}
.btn-outline-red:hover { background: var(--red); color: white; }

/* ===== セクション共通 ===== */
section { padding: 90px 0; }

.section-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.divider-red {
  width: 40px;
  height: 3px;
  background: var(--red);
  margin: 0 auto 48px;
}

.divider-white {
  width: 40px;
  height: 3px;
  background: rgba(255,255,255,0.6);
  margin: 0 auto 48px;
}

.section-lead {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 48px;
  font-size: 0.95rem;
}

/* ===== 三方よし ===== */
#sanpo {
  background: var(--red);
  padding: 32px 0;
}

.sanpo-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

/* ヘッダーロゴ：白背景を透明化 */
.logo-mark {
  background: #ffffff;
  border-radius: 2px;
  line-height: 0;
}
.logo-mark img {
  mix-blend-mode: multiply;
  filter: contrast(2.0) brightness(1.08);
  display: block;
}

/* 経営理念ロゴ：赤茶背景に合わせ、白シルエット */
.sanpo-logo {
  background: var(--red);
  border-radius: 4px;
  padding: 3px;
  line-height: 0;
}
.sanpo-logo img {
  filter: invert(1) saturate(0) contrast(4) brightness(1.8);
  mix-blend-mode: screen;
  display: block;
}

.sanpo-logo svg polygon { stroke: white !important; }
.sanpo-logo svg polygon:last-child { fill: rgba(255,255,255,0.3) !important; }

.sanpo-text h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 1rem;
  color: white;
  margin-bottom: 4px;
  letter-spacing: 0.1em;
}

.sanpo-text p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
}

/* ===== 会社について ===== */
#about { background: var(--gray); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

.about-lead {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.05rem;
  line-height: 2;
  margin-bottom: 20px;
  color: var(--text);
}

.about-text p {
  font-family: 'Noto Serif JP', serif;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 2;
}

.about-text strong { color: var(--red); }

.profile-card {
  background: white;
  border-top: 3px solid var(--red);
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

.profile-icon { margin-bottom: 16px; }

.profile-card h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.profile-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.profile-list {
  list-style: none;
  text-align: left;
}

.profile-list li {
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.profile-list li::before {
  content: '▸ ';
  color: var(--red);
}

.profile-qualifications {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.qualifications-label {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 10px;
  text-align: left;
}

.qualifications-list {
  list-style: none;
  text-align: left;
}

.qualifications-list li {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.qualifications-list li::before {
  content: '■ ';
  color: var(--red);
  font-size: 0.6rem;
  vertical-align: middle;
}

/* ===== サービス ===== */
#services { background: white; }

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

.service-card {
  border: 1px solid var(--border);
  padding: 32px 24px;
  transition: all 0.3s;
}

.service-card:hover {
  border-color: var(--red);
  box-shadow: 0 4px 20px rgba(140,28,28,0.1);
  transform: translateY(-4px);
}

.service-icon {
  margin-bottom: 20px;
}

.service-card h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--red);
}

.service-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 16px;
}

.service-list {
  list-style: none;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.service-list li {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 5px 0;
}

.service-list li::before {
  content: '✓ ';
  color: var(--red);
  font-weight: bold;
}

/* ===== 選ばれる理由 ===== */
#reason { background: var(--gray); }

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

.reason-item {
  background: white;
  padding: 32px 28px;
  border-left: 4px solid var(--red);
}

.reason-num {
  font-family: 'Noto Serif JP', serif;
  font-size: 2rem;
  color: var(--red);
  opacity: 0.3;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1;
}

.reason-item h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.reason-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.9;
}

/* ===== 料金 ===== */
#pricing { background: white; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.pricing-card {
  border: 1px solid var(--border);
  padding: 36px 24px;
  text-align: center;
  position: relative;
  transition: all 0.3s;
}

.pricing-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.pricing-card.featured {
  border-color: var(--red);
  border-width: 2px;
  transform: scale(1.03);
}

.featured-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: white;
  font-size: 0.72rem;
  padding: 4px 16px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.pricing-card h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--text);
}

.price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 4px;
  font-family: 'Noto Serif JP', serif;
}

.price span {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 400;
}

.price-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.pricing-card ul {
  list-style: none;
  text-align: left;
  margin-bottom: 24px;
}

.pricing-card ul li {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
}

.pricing-card ul li::before {
  content: '✓ ';
  color: var(--red);
}

.pricing-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.pricing-card.featured .btn-primary {
  display: block;
  text-align: center;
  margin-top: 16px;
}

/* ===== お問い合わせ ===== */
#contact {
  background: var(--red);
}

#contact .section-title {
  color: white;
}

.contact-lead {
  text-align: center;
  color: rgba(255,255,255,0.9);
  margin-bottom: 48px;
  line-height: 2;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 700px;
  margin: 0 auto;
}

.contact-card {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 36px 24px;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s;
  display: block;
}

.contact-card:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-4px);
}

.contact-icon { margin-bottom: 16px; }

.contact-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
}

.contact-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
  word-break: break-all;
}

.contact-note {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
}

/* ===== ブログ誘導 ===== */
#blog-promo {
  background: #1a0a0a;
  padding: 48px 0;
}

.blog-promo-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.blog-promo-badge {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--red-light);
  border: 1px solid var(--red);
  padding: 3px 12px;
  margin-bottom: 10px;
}

.blog-promo-text h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.4rem;
  color: white;
  margin-bottom: 10px;
  letter-spacing: 0.06em;
}

.blog-promo-text p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.9;
  max-width: 560px;
}

.blog-promo-btn {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 14px 32px;
  background: transparent;
  border: 1.5px solid var(--red);
  color: var(--red-light);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: all 0.25s;
  flex-shrink: 0;
}

.blog-promo-btn:hover {
  background: var(--red);
  color: white;
}

@media (max-width: 768px) {
  .blog-promo-inner { flex-direction: column; align-items: flex-start; }
  .blog-promo-btn { width: 100%; justify-content: center; }
}

/* ===== フッター ===== */
footer {
  background: #1a0a0a;
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Noto Serif JP', serif;
  font-size: 0.95rem;
  color: white;
}

.footer-info {
  text-align: right;
}

.footer-info p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
}

.copyright {
  text-align: center;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
}

/* ===== レスポンシブ ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .reasons-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-info { text-align: center; }
  .hero-deco { display: none; }
  .sanpo-inner { flex-direction: column; text-align: center; }
}
