@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&display=swap');

:root {
  --primary: #0f5296;
  --primary-dark: #0a3a6e;
  --primary-light: #4a92d9;
  --primary-pale: #eaf2fb;
  --accent: #ff8a1f;
  --accent-dark: #e4740a;
  --bg: #f4f8fb;
  --bg-alt: #ffffff;
  --text: #1c2b3a;
  --text-light: #5c6b7a;
  --border: #dbe6ef;
  --shadow: 0 8px 24px rgba(15, 82, 150, 0.10);
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--primary);
  background: var(--primary-pale);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.section-head h2 {
  font-size: 32px;
  font-weight: 900;
  color: var(--primary-dark);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}
.section-head p { color: var(--text-light); font-size: 15px; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 19px; color: var(--primary-dark); }
.logo-mark {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(145deg, var(--primary-light), var(--primary-dark));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 16px; flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(15,82,150,0.35);
}
.logo-text-sub { display: block; font-size: 10px; font-weight: 500; letter-spacing: 0.08em; color: var(--text-light); }

.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a {
  font-size: 14.5px; font-weight: 500; color: var(--text);
  position: relative; padding: 6px 0;
}
.main-nav a.active, .main-nav a:hover { color: var(--primary); }
.main-nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--primary);
}

.header-cta { display: flex; align-items: center; gap: 14px; }
.tel-link { display: flex; flex-direction: column; align-items: flex-end; font-size: 12px; color: var(--text-light); }
.tel-link strong { font-size: 18px; color: var(--primary-dark); font-weight: 900; line-height: 1.2; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 100px; font-weight: 700; font-size: 14.5px;
  transition: all 0.2s ease; border: none; cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(255,138,31,0.38); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-outline { background: #fff; color: var(--primary); border: 1.5px solid var(--primary-light); }
.btn-outline:hover { background: var(--primary-pale); }
.btn-white { background: #fff; color: var(--primary-dark); }
.btn-white:hover { background: var(--primary-pale); }
.btn-lg { padding: 17px 38px; font-size: 16px; }

.hamburger {
  display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px;
}
.hamburger span { width: 24px; height: 2.5px; background: var(--primary-dark); border-radius: 2px; transition: 0.25s; }
.hamburger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== Hero (TOP) ===== */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(10,40,75,0.92) 10%, rgba(10,58,110,0.72) 55%, rgba(15,82,150,0.45) 100%);
}
.hero-inner { position: relative; z-index: 2; max-width: 620px; padding: 100px 24px; margin: 0 auto; margin-left: max(24px, calc(50% - 560px)); }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.35); padding: 7px 16px; border-radius: 100px; font-size: 13px; margin-bottom: 24px;
}
.hero h1 { font-size: 44px; font-weight: 900; line-height: 1.45; margin-bottom: 20px; letter-spacing: 0.01em; }
.hero h1 span { color: #ffd28a; }
.hero p { font-size: 16px; color: rgba(255,255,255,0.88); margin-bottom: 34px; max-width: 480px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats { display: flex; gap: 36px; margin-top: 56px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-size: 26px; font-weight: 900; color: #fff; }
.hero-stats div span { font-size: 12.5px; color: rgba(255,255,255,0.75); }

/* ===== Page hero (inner pages) ===== */
.page-hero {
  position: relative; color: #fff; padding: 120px 0 60px; text-align: center; overflow: hidden;
}
.page-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.page-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,36,68,0.88), rgba(15,82,150,0.82)); }
.page-hero-inner { position: relative; z-index: 2; }
.page-hero .eyebrow { background: rgba(255,255,255,0.18); color: #fff; }
.page-hero h1 { font-size: 34px; font-weight: 900; margin-bottom: 12px; }
.breadcrumb { font-size: 13px; color: rgba(255,255,255,0.8); margin-top: 18px; }
.breadcrumb a { color: #ffd28a; }

/* ===== Trust bar ===== */
.trust-bar { background: var(--primary-dark); padding: 26px 0; }
.trust-bar .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.trust-item { display: flex; align-items: center; gap: 12px; color: #fff; flex: 1; min-width: 190px; }
.trust-item .icon { width: 42px; height: 42px; border-radius: 10px; background: rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.trust-item strong { display: block; font-size: 14.5px; }
.trust-item span { font-size: 12px; color: rgba(255,255,255,0.7); }

/* ===== Cards / grids ===== */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-alt); border-radius: var(--radius); padding: 32px 26px;
  border: 1px solid var(--border); box-shadow: var(--shadow); transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(15,82,150,0.16); }
.card .icon-box {
  width: 54px; height: 54px; border-radius: 14px; background: var(--primary-pale); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 20px;
}
.card h3 { font-size: 17.5px; font-weight: 700; color: var(--primary-dark); margin-bottom: 10px; }
.card p { font-size: 14px; color: var(--text-light); }
.card .num { font-size: 13px; font-weight: 900; color: var(--primary-light); letter-spacing: 0.08em; }

/* ===== Service split blocks ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.split-text .eyebrow { margin-bottom: 16px; }
.split-text h2 { font-size: 27px; font-weight: 900; color: var(--primary-dark); margin-bottom: 16px; }
.split-text p { color: var(--text-light); margin-bottom: 20px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; font-size: 14.5px; }
.check-list li::before { content: "✓"; color: var(--primary); font-weight: 900; background: var(--primary-pale); width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 12px; }

/* ===== Flow / timeline ===== */
.flow-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: step; }
.flow-item { position: relative; background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 18px 22px; text-align: center; }
.flow-item .step-num {
  width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 900;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; font-size: 14px;
}
.flow-item h4 { font-size: 14.5px; font-weight: 700; margin-bottom: 8px; color: var(--primary-dark); }
.flow-item p { font-size: 12.5px; color: var(--text-light); }
.flow-arrow { position: absolute; right: -22px; top: 44px; color: var(--primary-light); font-size: 18px; }

/* ===== Case cards ===== */
.case-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--bg-alt);
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); margin-bottom: 32px;
}
.case-card.reverse { grid-template-columns: 1fr 1fr; }
.case-card.reverse .case-media { order: 2; }
.case-media { min-height: 300px; background-size: cover; background-position: center; }
.case-body { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.case-tag { display: inline-block; align-self: flex-start; background: var(--primary-pale); color: var(--primary); font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 100px; margin-bottom: 14px; }
.case-body h3 { font-size: 21px; font-weight: 900; color: var(--primary-dark); margin-bottom: 12px; }
.case-body p { color: var(--text-light); font-size: 14.5px; margin-bottom: 18px; }
.case-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 13px; }
.case-meta div { color: var(--text-light); }
.case-meta strong { color: var(--text); display: block; font-size: 11.5px; font-weight: 500; }

/* ===== Voice / testimonials ===== */
.voice-card { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.voice-stars { color: var(--accent); font-size: 14px; margin-bottom: 14px; letter-spacing: 2px; }
.voice-card p { font-size: 14px; color: var(--text); margin-bottom: 20px; }
.voice-person { display: flex; align-items: center; gap: 12px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.voice-person strong { display: block; font-size: 13.5px; }
.voice-person span { font-size: 12px; color: var(--text-light); }

/* ===== CTA banner ===== */
.cta-banner {
  background: linear-gradient(120deg, var(--primary-dark), var(--primary));
  color: #fff; text-align: center; padding: 70px 24px; border-radius: 20px; margin: 0 24px;
}
.cta-banner h2 { font-size: 27px; font-weight: 900; margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.85); margin-bottom: 30px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== Footer ===== */
.site-footer { background: #0a2a4d; color: rgba(255,255,255,0.75); padding: 64px 0 26px; margin-top: 90px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 44px; }
.footer-logo { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 900; font-size: 18px; margin-bottom: 16px; }
.footer-grid p { font-size: 13.5px; line-height: 1.8; }
.footer-grid h4 { color: #fff; font-size: 14px; margin-bottom: 18px; font-weight: 700; }
.footer-grid ul li { margin-bottom: 11px; font-size: 13.5px; }
.footer-grid ul li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px; font-size: 12.5px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ===== Table (company page) ===== */
.info-table { width: 100%; border-collapse: collapse; background: var(--bg-alt); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.info-table tr { border-bottom: 1px solid var(--border); }
.info-table tr:last-child { border-bottom: none; }
.info-table th, .info-table td { text-align: left; padding: 20px 26px; font-size: 14.5px; }
.info-table th { width: 200px; color: var(--primary-dark); background: var(--primary-pale); font-weight: 700; }
.info-table td { color: var(--text); }

/* ===== Contact form ===== */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.3fr; gap: 44px; align-items: flex-start; }
.contact-info-card { background: var(--primary-dark); color: #fff; border-radius: var(--radius); padding: 36px; }
.contact-info-card h3 { font-size: 19px; margin-bottom: 20px; }
.contact-info-row { display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start; }
.contact-info-row .icon { width: 40px; height: 40px; background: rgba(255,255,255,0.14); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-info-row strong { display: block; font-size: 13px; color: rgba(255,255,255,0.7); margin-bottom: 4px; }
.contact-info-row span, .contact-info-row a { font-size: 15.5px; font-weight: 700; }

.form-card { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 38px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.form-group { margin-bottom: 18px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.form-group label .req { color: var(--accent); font-size: 11px; margin-left: 4px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--border); border-radius: 9px; font-size: 14.5px;
  font-family: inherit; background: #fbfdff; transition: border 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary-light); background: #fff; }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 12.5px; color: var(--text-light); margin-top: 14px; }
.form-success { display: none; background: #eaf7ee; border: 1.5px solid #8fd4a3; color: #1f7a3d; padding: 16px 20px; border-radius: 10px; font-size: 14px; margin-bottom: 20px; font-weight: 700; }
.form-success.show { display: block; }

/* ===== FAQ ===== */
.faq-item { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 14px; overflow: hidden; }
.faq-q { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; cursor: pointer; font-weight: 700; font-size: 15px; }
.faq-q .plus { font-size: 20px; color: var(--primary); transition: transform 0.25s; flex-shrink: 0; margin-left: 14px; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a p { padding: 0 24px 20px; color: var(--text-light); font-size: 14px; }

/* ===== Area list ===== */
.area-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.area-grid span { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 8px; padding: 12px; text-align: center; font-size: 13.5px; font-weight: 500; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .flow-list { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split, .case-card, .case-card.reverse, .contact-wrap { grid-template-columns: 1fr; }
  .split-media, .case-card .case-media, .case-card.reverse .case-media { order: 0 !important; }
}

@media (max-width: 720px) {
  .main-nav, .header-cta .tel-link, .header-cta .btn-outline { display: none; }
  .hamburger { display: flex; }
  .header-cta .btn-primary { padding: 11px 18px; font-size: 13px; }
  .logo { font-size: 15px; }
  .logo-text-sub { display: none; }
  .header-inner { padding: 12px 18px; gap: 10px; }
  .hero { min-height: 560px; }
  .hero-inner { margin-left: auto; padding: 70px 20px; }
  .hero h1 { font-size: 30px; }
  .hero-stats { gap: 22px; }
  .section { padding: 60px 0; }
  .section-head h2 { font-size: 25px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .flow-list { grid-template-columns: 1fr 1fr; }
  .flow-arrow { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .area-grid { grid-template-columns: repeat(3, 1fr); }
  .cta-banner { margin: 0 16px; padding: 50px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .info-table th { width: 130px; padding: 16px; font-size: 13px; }
  .info-table td { padding: 16px; font-size: 13.5px; }

  .mobile-nav {
    position: fixed; inset: 0; top: 66px; background: #fff; z-index: 99;
    transform: translateX(100%); transition: transform 0.3s ease; overflow-y: auto;
  }
  .mobile-nav.is-open { transform: translateX(0); }
  .mobile-nav ul { padding: 24px; }
  .mobile-nav li { border-bottom: 1px solid var(--border); }
  .mobile-nav a { display: block; padding: 18px 4px; font-size: 16px; font-weight: 700; }
  .mobile-nav .mnav-cta { padding: 24px 4px 4px; display: flex; flex-direction: column; gap: 12px; }
}

@media (min-width: 721px) { .mobile-nav { display: none; } }
