:root {
  --main: #14294a;
  --main-light: #28456f;
  --accent: #c9962f;
  --white: #ffffff;
  --text: #1c1c1c;
  --text-light: #666666;
  --border: #e3e3e3;
  --bg-soft: #f4f6fa;
  --font-heading: "Oswald", "Noto Sans JP", sans-serif;
  --font-logo: "Yellowtail", cursive;
}

* { 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-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-logo); font-size: 27px; font-weight: 400; color: var(--main); white-space: nowrap; }
.logo-sub { font-size: 10px; color: var(--text-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; letter-spacing: 0.03em; }
.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: 21px; }
  .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(8,16,30,0.85), rgba(20,41,74,0.75)), var(--hero-img);
  background-size: cover; background-position: center;
}
.hero-inner { position: relative; z-index: 2; max-width: 640px; }
.hero-eyebrow { font-family: "Oswald", sans-serif; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: #f6d98a; font-weight: 500; opacity: 1; margin-bottom: 16px; }
.hero-title { font-size: 34px; font-weight: 900; color: var(--white); line-height: 1.5; word-break: keep-all; overflow-wrap: break-word; opacity: 1; margin-bottom: 14px; }
.hero-sub { font-size: 14px; color: rgba(255,255,255,0.85); opacity: 1; margin-bottom: 26px; }
.hero-cta { display: flex; gap: 14px; opacity: 1; margin-bottom: 24px; }
.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.18); color: #fff; font-size: 11px; padding: 5px 14px; border-radius: 20px; }

/* ===== Hook ===== */
.hook-section { background: var(--bg-soft); padding: 44px 0; }
.hook-q { font-size: 16px; font-weight: 700; margin-bottom: 14px; color: var(--main); }
.hook-list { list-style: none; padding: 0; margin: 0; }
.hook-list li { font-size: 13px; color: var(--text); padding: 8px 0 8px 22px; position: relative; border-bottom: 1px dashed var(--border); }
.hook-list li:last-child { border-bottom: none; }
.hook-list li::before { content: "・"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* ===== Category band ===== */
.category-band { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 32px 0; }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.category-grid .cat-en { font-family: "Oswald", sans-serif; font-size: 15px; font-weight: 600; color: var(--main); letter-spacing: 0.05em; }
.category-grid .cat-jp { font-size: 12px; color: var(--text-light); margin-top: 4px; }

/* ===== Appeal grid (REASON cards) ===== */
.appeal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.appeal-card { border-top: 3px solid var(--main); background: var(--white); border: 1px solid var(--border); border-top: 3px solid var(--main); border-radius: 0 0 10px 10px; overflow: hidden; opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.appeal-card.visible { opacity: 1; transform: none; }
.appeal-card img { height: 150px; width: 100%; object-fit: cover; }
.appeal-card-body { padding: 20px; }
.appeal-icon { font-family: "Oswald", sans-serif; color: var(--accent); font-size: 12px; letter-spacing: 0.05em; margin-bottom: 8px; }
.appeal-title { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.appeal-text { font-size: 12px; color: var(--text-light); }


/* ===== Feature grid (numbers) ===== */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 48px 0; text-align: center; }
.feature-num { font-family: "Oswald", sans-serif; font-size: 32px; 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: "Oswald", sans-serif; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); font-weight: 500; margin-bottom: 10px; }
.section-title { font-size: 24px; font-weight: 900; margin-bottom: 20px; word-break: keep-all; overflow-wrap: break-word; }
.section-lead { font-size: 14px; color: var(--text-light); margin-bottom: 32px; max-width: 640px; }

/* ===== Checklist ===== */
.checklist-box { background: var(--bg-soft); border-radius: 12px; padding: 32px; margin-bottom: 40px; }
.checklist-box h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; color: var(--main); }
.checklist-item { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; margin-bottom: 12px; position: relative; padding-left: 30px; }
.checklist-item .ci-mark { position: absolute; left: 0; top: 1px; color: var(--accent); font-weight: 700; }
.checklist-resolve { font-size: 14px; font-weight: 700; color: var(--main); margin-top: 16px; }

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

/* ===== Service cards (text only, used on homepage) ===== */
.service-grid-text { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-text-card { border: 1px solid var(--border); border-radius: 12px; padding: 24px 20px; background: var(--white); }
.service-text-num { font-family: "Oswald", sans-serif; font-size: 22px; font-weight: 600; color: var(--accent); margin-bottom: 10px; }

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

/* ===== Reviews ===== */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review-card { border: 1px solid var(--border); border-radius: 10px; padding: 22px; 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; }

/* ===== News ===== */
.news-list { max-width: 640px; margin: 0 auto; }
.news-item { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.news-date { font-family: "Oswald", sans-serif; color: var(--text-light); flex-shrink: 0; }
.news-title { color: var(--text); }
.news-title a { color: var(--main); font-weight: 500; }

/* ===== Greeting layout ===== */
.greeting-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; margin-bottom: 48px; align-items: center; }
.greeting-grid img { border-radius: 12px; width: 100%; }
@media (max-width: 900px) {
  .greeting-grid { grid-template-columns: 1fr; }
}

/* ===== 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: 150px; color: var(--text-light); font-weight: 700; background: var(--bg-soft); }

/* ===== CTA band ===== */
.cta-section { background: var(--main); padding: 60px 0; text-align: center; }
.cta-eyebrow { font-family: "Oswald", sans-serif; color: #f6d98a; font-size: 13px; letter-spacing: 0.1em; margin-bottom: 10px; }
.cta-title { color: var(--white); font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.cta-sub { color: rgba(255,255,255,0.85); font-size: 13px; 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: 700; 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: 15px; font-weight: 700; margin-bottom: 16px; }
.contact-side p { font-size: 13px; margin-bottom: 10px; }

/* ===== Footer ===== */
.site-footer { background: #0c1a2e; 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-logo); color: var(--white); font-size: 24px; 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) {
  .category-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .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; }
  .service-grid-text { 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: 26px; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 20px; }
  .appeal-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 22px; }
  .hero-cta { flex-direction: column; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .feature-num { font-size: 22px; }
}
@media (max-width: 360px) {
  .feature-grid { grid-template-columns: 1fr; gap: 18px; }
  .feature-num { font-size: 26px; }
  .section-title { font-size: 19px; }
  .hero-title { font-size: 20px; }
}
