:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --navy: #1b2a41;
  --navy-soft: #24364f;
  --text: #232b36;
  --text-muted: #5f6b7a;
  --accent: #3e6fa3;
  --accent-dark: #2c5580;
  --accent-soft: #e3edf7;
  --orange: #e0842f;
  --orange-dark: #c56f1e;
  --border: #dde4ec;
  --radius: 10px;
  --font-heading: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
  --font-body: 'Noto Sans JP', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 0.6em;
}

p { margin: 0 0 1em; }

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

img { max-width: 100%; height: auto; }

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

/* Demo banner */
.demo-banner {
  background: var(--navy);
  color: #cdd8e6;
  text-align: center;
  font-size: 0.75rem;
  padding: 6px 12px;
  letter-spacing: 0.02em;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
}

.logo svg { color: var(--accent); flex-shrink: 0; }

.logo small {
  display: block;
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav a { padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--accent-dark); }
.nav a.active { color: var(--accent-dark); border-bottom-color: var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn-cta {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 6px 16px rgba(224, 132, 47, 0.3);
}

.btn-cta:hover { background: var(--orange-dark); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.6);
}

.btn-outline:hover { border-color: #fff; transform: translateY(-2px); }

.btn-navy {
  background: var(--accent);
  color: #fff;
}

.btn-navy:hover { background: var(--accent-dark); transform: translateY(-2px); }

/* Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--navy);
}

/* Hero (home) */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 60%, #2f4864 100%);
  color: #fff;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
  gap: 40px;
  align-items: center;
  padding-top: 84px;
  padding-bottom: 84px;
}

.hero-label {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  padding: 5px 16px;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(1.7rem, 1.1rem + 2.8vw, 2.7rem);
  color: #fff;
  letter-spacing: 0.02em;
}

.hero-title .hi { color: #f0a95c; }

.hero-sub {
  color: #c3cedd;
  font-size: 0.98rem;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.hero-visual img { display: block; width: 100%; }

/* Page header (subpages) */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: #fff;
  padding: 56px 0;
}

.page-header .crumbs {
  font-size: 0.78rem;
  color: #9fb0c5;
  margin-bottom: 8px;
}

.page-header .crumbs a:hover { color: #fff; }

.page-header h1 {
  color: #fff;
  font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.1rem);
  margin: 0;
}

/* Sections */
section { padding: 80px 0; }

.section-label {
  font-family: var(--font-heading);
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  margin: 0 0 10px;
}

.section-title {
  font-size: clamp(1.4rem, 1.1rem + 1.4vw, 1.9rem);
  margin-bottom: 40px;
}

.alt { background: var(--surface); }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.alt .card { background: var(--bg); }

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(27, 42, 65, 0.1);
}

.card-icon {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-radius: 12px;
  margin-bottom: 18px;
}

.card h3 { font-size: 1.05rem; }

.card p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

.card .card-more {
  display: inline-block;
  margin-top: 14px;
  color: var(--accent-dark);
  font-size: 0.85rem;
  font-weight: 700;
}

.card .card-more:hover { text-decoration: underline; }

/* Numbers strip */
.numbers {
  background: var(--navy);
  color: #fff;
  padding: 56px 0;
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  text-align: center;
}

.num-item .num {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: #f0a95c;
  line-height: 1.2;
}

.num-item .num small { font-size: 1rem; margin-left: 2px; }

.num-item p { color: #c3cedd; font-size: 0.85rem; margin: 6px 0 0; }

/* Tables */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.92rem;
}

.spec-table th, .spec-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }

.spec-table th {
  width: 180px;
  background: var(--accent-soft);
  color: var(--navy);
  font-weight: 700;
  white-space: nowrap;
}

/* Flow */
.flow-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
}

.flow-list li { position: relative; }

.flow-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.45;
  margin-bottom: 6px;
}

.flow-list h3 { font-size: 1rem; }
.flow-list p { color: var(--text-muted); font-size: 0.88rem; }

/* News */
.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.news-list li {
  display: grid;
  grid-template-columns: 120px 92px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px 6px;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

.news-date { color: var(--text-muted); font-size: 0.85rem; }

.news-tag {
  display: inline-block;
  text-align: center;
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 0;
}

.news-tag.info { background: #efe7db; color: var(--orange-dark); }

.more-link {
  display: inline-block;
  margin-top: 22px;
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.9rem;
}

.more-link:hover { text-decoration: underline; }

/* Greeting */
.greeting {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: start;
}

.greeting-photo {
  background: var(--accent-soft);
  border-radius: var(--radius);
  aspect-ratio: 3 / 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--accent-dark);
  gap: 10px;
  font-size: 0.78rem;
}

.greeting-sign {
  margin-top: 16px;
  font-size: 0.92rem;
}

.greeting-sign strong { font-size: 1.05rem; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  text-align: center;
  border-radius: 16px;
  padding: 56px 32px;
}

.cta-band h2 { color: #fff; font-size: clamp(1.3rem, 1rem + 1.4vw, 1.7rem); }
.cta-band p { color: rgba(255,255,255,0.88); }
.cta-band .hero-actions { justify-content: center; }
.cta-band .tel {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.cta-band .tel small { display: block; font-size: 0.75rem; font-weight: 400; opacity: 0.85; letter-spacing: 0; }

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  align-items: start;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}

.form-row { margin-bottom: 22px; }

.form-row label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 6px;
}

.req {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-size: 0.66rem;
  border-radius: 3px;
  padding: 1px 6px;
  margin-left: 8px;
  vertical-align: 2px;
}

.form-row input, .form-row textarea, .form-row select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font: inherit;
  background: var(--bg);
  color: var(--text);
}

.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
}

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

.form-success {
  display: none;
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-radius: 6px;
  padding: 14px 18px;
  font-size: 0.9rem;
  margin-top: 18px;
}

.form-success.show { display: block; }

.contact-aside .card { margin-bottom: 20px; }

.contact-aside .tel-big {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin: 4px 0;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: #aab8ca;
  padding: 56px 0 28px;
  font-size: 0.85rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-grid h4 {
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a:hover { color: #fff; }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.footer-logo svg { color: #6f9bc9; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  text-align: center;
  font-size: 0.76rem;
}

.footer-bottom p { margin: 4px 0; }

/* Responsive */
.sp-only { display: none; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 60px; padding-bottom: 60px; }
  .hero-visual { max-width: 340px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .greeting { grid-template-columns: 1fr; }
  .greeting-photo { max-width: 220px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .sp-only { display: inline; }
  .menu-toggle { display: block; }
  .nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 16px;
    display: none;
  }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--border); }
  .nav a.active { border-bottom-color: var(--border); }
  .site-header.nav-open .nav { display: flex; }
  .header-cta { display: none; }
  section { padding: 60px 0; }
  .news-list li { grid-template-columns: 92px 1fr; }
  .news-list li .news-date { grid-column: 1; }
  .news-list li .news-tag { grid-column: 2; justify-self: start; padding: 3px 10px; }
  .news-list li .news-text { grid-column: 1 / -1; }
  .spec-table th { width: 120px; }
  .footer-grid { grid-template-columns: 1fr; }
}
