:root {
  --main: #1a3fcc;
  --main-light: #3d5fe0;
  --accent: #c9962f;
  --white: #ffffff;
  --text: #1c1c1c;
  --text-light: #666666;
  --border: #e3e3e3;
  --bg-soft: #f5f7fc;
  --font-heading: "Oswald", "Noto Sans JP", sans-serif;
}

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

html, body { overflow-x: hidden; max-width: 100%; }

body {
  font-family: "Noto Sans JP", sans-serif;
  color: var(--text);
  line-height: 1.8;
  padding-bottom: 0;
  padding-top: 88px;
}

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

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

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 600;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
}
.logo-link { display: flex; flex-direction: column; min-width: 0; flex-shrink: 1; overflow: hidden; }
.logo-main {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  color: var(--main);
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.logo-sub {
  font-size: 10px;
  color: var(--text-light);
  white-space: nowrap;
  letter-spacing: 0.03em;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.header-right { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.header-nav { display: flex; align-items: center; gap: 22px; }
.header-nav a {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.header-nav a:hover { color: var(--main); }
.header-tel {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 500;
  color: var(--main);
  white-space: nowrap;
}
.header-divider { width: 1px; height: 22px; background: var(--border); }
.header-cta {
  font-size: 14px;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--white);
  white-space: nowrap;
}
.header-cta:hover { opacity: 0.9; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  z-index: 700;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--text);
  transition: 0.3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: flex;
  position: fixed;
  top: 72px;
  right: 0;
  width: 260px;
  height: calc(100% - 72px);
  background: var(--white);
  z-index: 500;
  padding: 30px;
  flex-direction: column;
  gap: 22px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  pointer-events: none;
  box-shadow: -2px 0 12px rgba(0,0,0,0.08);
}
.mobile-menu.active { transform: translateX(0); pointer-events: auto; }
.mobile-menu a { font-size: 15px; font-weight: 500; }
.mobile-menu .mm-tel {
  font-family: var(--font-heading);
  color: var(--main);
  font-size: 16px;
}
.mobile-menu .mm-cta {
  background: var(--accent);
  color: var(--white);
  text-align: center;
  padding: 12px;
  border-radius: 6px;
  font-weight: 500;
}

.menu-overlay {
  display: block;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 400;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.menu-overlay.active { opacity: 1; pointer-events: auto; }

@media (max-width: 900px) {
  .header-nav, .header-divider, .header-cta, .header-tel { display: none; }
  .hamburger { display: flex; flex-shrink: 0; }
  .header-inner { height: 72px; padding: 0 24px; }
  body { padding-top: 72px; }
}
@media (max-width: 380px) {
  .header-inner { padding: 0 16px; }
  .logo-main { font-size: 18px; }
  .logo-sub { font-size: 8px; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--main), var(--main-light));
  padding: 90px 0 70px;
  overflow: hidden;
}
.hero-photo {
  background-image: linear-gradient(135deg, rgba(15,25,90,0.82), rgba(26,63,204,0.72)), var(--hero-img);
  background-size: cover;
  background-position: center;
}
.hero-inner { position: relative; z-index: 2; max-width: 640px; }
.hero-eyebrow {
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  opacity: 1;
  margin-bottom: 16px;
}
.hero-title {
  font-size: 40px;
  font-weight: 900;
  color: var(--white);
  line-height: 1.4;
  word-break: keep-all;
  overflow-wrap: break-word;
  opacity: 1;
  margin-bottom: 18px;
}
.hero-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.9);
  opacity: 1;
  margin-bottom: 28px;
}
.hero-cta { display: flex; gap: 14px; opacity: 1; margin-bottom: 26px; }
.btn-accent {
  background: var(--accent);
  color: var(--white);
  padding: 15px 28px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 14px;
  border: none;
  cursor: pointer;
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--white);
  color: var(--white);
  padding: 15px 28px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 14px;
}
.hero-tags { display: flex; gap: 8px; flex-wrap: wrap; opacity: 1; }
.hero-tags span {
  background: rgba(255,255,255,0.15);
  color: #f6d98a;
  font-size: 11px;
  padding: 5px 14px;
  border-radius: 20px;
}

/* ===== Empathy hook (top page) ===== */
.hook-section { background: var(--bg-soft); padding: 44px 0; text-align: center; }
.hook-q { font-size: 18px; font-weight: 500; margin-bottom: 10px; }
.hook-a { font-size: 14px; color: var(--text-light); }

/* ===== Feature grid (stat band) ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 48px 0;
  text-align: center;
}
.feature-num {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 600;
  color: var(--main);
}
.feature-num .gold { color: var(--accent); }
.feature-label { font-size: 13px; color: var(--text-light); margin-top: 4px; }

/* ===== Section common ===== */
.section { padding: 64px 0; }
.section-eyebrow {
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 10px;
}
.section-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.section-lead { font-size: 15px; color: var(--text-light); margin-bottom: 32px; max-width: 640px; }

/* ===== Checklist (service page) ===== */
.checklist-box {
  background: var(--bg-soft);
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 40px;
}
.checklist-box h3 { font-size: 17px; font-weight: 700; margin-bottom: 16px; }
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  margin-bottom: 12px;
}
.checklist-resolve {
  font-size: 14px;
  font-weight: 500;
  color: var(--main);
  margin-top: 16px;
}

/* ===== Appeal grid ===== */
.appeal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.appeal-card {
  border-top: 3px solid var(--main);
  background: var(--white);
  border-radius: 0 0 10px 10px;
  padding: 26px 22px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.appeal-card.visible { opacity: 1; transform: none; }
.appeal-icon {
  font-family: var(--font-heading);
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.appeal-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.appeal-text { font-size: 13px; color: var(--text-light); }

/* ===== Service cards with photo ===== */
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.service-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.service-card img { height: 180px; width: 100%; object-fit: cover; }
.service-card-body { padding: 20px; }
.service-card-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.service-card-text { font-size: 13px; color: var(--text-light); }

/* ===== Price table ===== */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 40px; }
.price-table { min-width: 560px; width: 100%; border-collapse: collapse; }
.price-table th, .price-table td {
  border: 1px solid var(--border);
  padding: 14px 18px;
  font-size: 14px;
  text-align: left;
}
.price-table th { background: var(--bg-soft); font-weight: 500; }

/* ===== Reviews ===== */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.review-card.visible { opacity: 1; transform: none; }
.review-stars { color: var(--accent); font-size: 14px; margin-bottom: 10px; }
.review-text { font-size: 13px; color: var(--text); margin-bottom: 14px; }
.review-name { font-size: 12px; color: var(--text-light); text-align: right; }
.review-more-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-light);
  margin-top: 28px;
}

/* ===== About table ===== */
.about-table { width: 100%; border-collapse: collapse; margin-bottom: 40px; }
.about-table th, .about-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 14px;
}
.about-table th { width: 160px; color: var(--text-light); font-weight: 500; background: var(--bg-soft); }
.about-map { border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.about-map iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ===== CTA band ===== */
.cta-section { background: var(--main); padding: 64px 0; text-align: center; }
.cta-eyebrow {
  font-family: var(--font-heading);
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.cta-title { color: var(--white); font-size: 24px; font-weight: 700; margin-bottom: 12px; }
.cta-sub { color: rgba(255,255,255,0.85); font-size: 14px; margin-bottom: 26px; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== Contact form ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-form label { display: block; font-size: 13px; font-weight: 500; margin: 18px 0 6px; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.btn-full { width: 100%; margin-top: 24px; border: none; cursor: pointer; }
.form-success { text-align: center; padding: 60px 20px; }
.contact-side { background: var(--bg-soft); border-radius: 12px; padding: 28px; }
.contact-side h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.contact-side p { font-size: 14px; margin-bottom: 10px; }
.line-badge {
  display: inline-block;
  margin-top: 14px;
  background: #06c755;
  color: var(--white);
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
}

/* ===== Footer ===== */
.site-footer { background: #14142a; color: rgba(255,255,255,0.7); padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo {
  font-family: var(--font-heading);
  color: var(--white);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}
.footer-grid h4 { color: var(--white); font-size: 13px; margin-bottom: 16px; letter-spacing: 0.05em; }
.footer-grid li { font-size: 13px; margin-bottom: 10px; }
.footer-grid p { font-size: 13px; margin-bottom: 6px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

/* ===== Mobile fixed CTA ===== */
.mobile-fixed-cta { display: none; }
@media (max-width: 900px) {
  .mobile-fixed-cta {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 550;
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
  }
  .mobile-fixed-cta a {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px; padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
    font-size: 11px; color: var(--text);
  }
  .mobile-fixed-cta a:first-child { background: var(--main); color: #fff; }
  .mobile-fixed-cta .cta-icon { font-size: 18px; line-height: 1; }
  body { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .appeal-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .about-table, .about-table tbody, .about-table tr,
  .about-table th, .about-table td { display: block; width: 100%; }
  .about-table th { font-size: 12px; padding: 8px 14px; border-bottom: none; }
  .about-table td { padding: 12px 14px; }
  .hero-title { font-size: 30px; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 20px; }
  .appeal-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 26px; }
  .hero-cta { flex-direction: column; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .feature-num { font-size: 24px; }
}
@media (max-width: 360px) {
  .feature-grid { grid-template-columns: 1fr; gap: 18px; }
  .feature-num { font-size: 28px; }
  .section-title { font-size: 21px; }
  .hero-title { font-size: 23px; }
}
