*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #ffffff;
  --bg-alt: #eef1f6;
  --text: #111111;
  --text-sub: #555555;
  --white: #ffffff;
  --primary: #0f3d6e;
  --primary-dark: #0a1e3a;
  --accent: #d4582a;
  --sans: "Noto Sans JP", sans-serif;
  --serif: "Noto Serif JP", serif;
  --en: "Inter", sans-serif;
}
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--text); background: var(--bg); font-size: 16px; line-height: 1.8; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ===== HEADER ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.85); backdrop-filter: blur(12px);
  height: 96px; transition: background 0.3s;
}
.header-inner {
  width: 100%; max-width: 100%; margin: 0;
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; padding: 0 0 0 4%;
}
.logo { display: flex; align-items: center; gap: 14px; }
.logo-mark { height: 60px; width: auto; object-fit: contain; }
.logo-text .logo-name { font-size: 16px; font-weight: 700; letter-spacing: 0.08em; }
.logo-text .logo-sub { font-size: 10px; color: var(--text-sub); letter-spacing: 0.06em; }
.nav { display: flex; align-items: center; gap: 36px; }
.nav a { font-size: 14px; font-weight: 500; letter-spacing: 0.06em; transition: color 0.3s; position: relative; padding-bottom: 6px; }
.nav a::after { content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 2px; background: var(--accent); transition: width 0.3s, left 0.3s; }
.nav a:hover { color: var(--primary); }
.nav a:hover::after { width: 100%; left: 0; }
.nav a.current { color: var(--primary); }
.nav a.current::after { width: 100%; left: 0; }
.header-right { display: flex; align-items: stretch; gap: 0; }
.header-btn {
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  height: 96px; width: 140px; font-size: 16px; font-weight: 500;
  color: var(--white); letter-spacing: 0.08em; transition: opacity 0.3s;
}
.header-btn:hover { opacity: 0.85; }
.header-btn-tel { background: transparent; color: var(--text); width: auto; padding: 0 28px; }
.header-btn-tel .tel-num { font-family: var(--en); font-size: 20px; font-weight: 700; color: var(--text); }
.header-btn-tel .tel-time { font-size: 10px; color: var(--text-sub); }
.header-btn-contact { background: var(--primary); width: 160px; text-align: center; }
.header-btn-contact .btn-en { font-family: var(--en); font-size: 14px; font-weight: 700; letter-spacing: 0.1em; }
.header-btn-contact .btn-jp { font-size: 11px; margin-top: 2px; }

/* ===== PAGE HERO ===== */
.page-hero {
  margin-top: 96px; padding: 80px 0 60px;
  background-color: var(--primary-dark);
  background-image: linear-gradient(135deg, rgba(10,30,58,0.82), rgba(15,61,110,0.78)), url('../img/office-wide.jpg');
  background-size: cover; background-position: center;
  color: var(--white); position: relative; overflow: hidden;
}
.page-hero-inner { width: 90%; max-width: 1430px; margin: 0 auto; position: relative; z-index: 1; }
.page-hero-en {
  font-family: var(--en); font-size: 80px; font-weight: 900;
  color: rgba(255,255,255,0.06); line-height: 1; margin-bottom: -12px;
}
.page-hero h1 { font-size: 36px; font-weight: 900; letter-spacing: 0.06em; }
.breadcrumb { margin-top: 20px; font-size: 13px; color: rgba(255,255,255,0.6); }
.breadcrumb a { color: rgba(255,255,255,0.6); transition: color 0.3s; }
.breadcrumb a:hover { color: var(--white); }

/* ===== SERVICE SECTION ===== */
.svc-section { padding: 120px 0; position: relative; overflow: hidden; }
.svc-section:nth-child(even) { background: var(--bg-alt); }
.svc-inner { width: 90%; max-width: 1430px; margin: 0 auto; }
.svc-watermark {
  position: absolute; top: 20px; right: -40px;
  font-family: var(--en); font-size: 200px; font-weight: 900;
  color: rgba(15,61,110,0.04); line-height: 1; pointer-events: none;
}
.svc-num {
  font-family: var(--en); font-size: 80px; font-weight: 900;
  color: var(--primary); opacity: 0.15; letter-spacing: 0.08em; line-height: 1;
  margin-bottom: -8px;
}
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.svc-grid.reverse { direction: rtl; }
.svc-grid.reverse > * { direction: ltr; }
.svc-photo { overflow: hidden; }
.svc-photo img { width: 100%; height: 400px; object-fit: cover; }
.svc-content h2 { font-size: 28px; font-weight: 900; line-height: 1.6; margin-bottom: 24px; color: var(--primary); }
.svc-content p { font-size: 16px; line-height: 2; margin-bottom: 16px; }
.svc-list { list-style: none; margin-top: 32px; }
.svc-list li {
  font-size: 15px; line-height: 1.8; padding: 12px 0 12px 36px;
  position: relative; border-bottom: 1px solid rgba(0,0,0,0.06);
}
.svc-list li:last-child { border-bottom: none; }
.svc-list li::before {
  content: ''; position: absolute; left: 0; top: 18px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
  background-size: 14px; background-position: center; background-repeat: no-repeat;
}

/* ===== FLOW ===== */
.flow-section { padding: 120px 0; background: var(--bg); }
.flow-inner { width: 90%; max-width: 1000px; margin: 0 auto; }
.flow-head { text-align: center; margin-bottom: 60px; }
.flow-head .sec-en {
  font-family: var(--en); font-size: 80px; font-weight: 700;
  color: var(--primary); opacity: 0.08; line-height: 1; margin-bottom: -16px;
}
.flow-head h2 { font-size: 32px; font-weight: 900; }
.flow-steps { position: relative; }
.flow-step {
  display: flex; gap: 32px; align-items: flex-start; padding: 32px 0;
  position: relative;
}
.flow-step::before {
  content: ''; position: absolute; left: 24px; top: 80px; bottom: -32px;
  width: 2px; background: rgba(15,61,110,0.12);
}
.flow-step:last-child::before { display: none; }
.flow-step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  font-family: var(--en); font-size: 18px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.flow-step-body h4 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.flow-step-body p { font-size: 15px; color: var(--text-sub); line-height: 1.8; }

/* ===== CTA ===== */
.cta {
  padding: 120px 0; text-align: center; color: #ffffff;
  background-color: #0a1e3a;
  background-image: linear-gradient(135deg, rgba(10,30,58,0.92) 0%, rgba(15,61,110,0.88) 100%), url('../img/cta-bg.jpg');
  background-size: cover; background-position: center;
}
.cta-inner { width: 90%; max-width: 1000px; margin: 0 auto; }
.cta-label { font-family: var(--en); font-size: 14px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.cta h2 { font-size: 36px; font-weight: 900; margin-bottom: 16px; letter-spacing: 0.06em; line-height: 1.5; }
.cta-sub { font-size: 16px; opacity: 0.6; margin-bottom: 48px; }
.cta-actions { display: flex; gap: 32px; justify-content: center; align-items: stretch; }
.cta-action-card {
  background: rgba(255,255,255,0.08); backdrop-filter: blur(8px);
  padding: 40px 48px; flex: 1; max-width: 420px;
  border: 1px solid rgba(255,255,255,0.1); transition: background 0.3s;
}
.cta-action-card:hover { background: rgba(255,255,255,0.12); }
.cta-action-icon { margin-bottom: 16px; }
.cta-action-icon svg { width: 36px; height: 36px; }
.cta-action-title { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; margin-bottom: 16px; opacity: 0.7; }
.cta-tel { font-family: var(--en); font-size: 36px; font-weight: 900; letter-spacing: 0.04em; line-height: 1.3; }
.cta-time { font-size: 13px; opacity: 0.4; margin-top: 8px; }
.cta-btn {
  display: inline-block; margin-top: 8px;
  background: var(--accent); color: var(--white);
  font-size: 16px; font-weight: 700; padding: 20px 48px;
  letter-spacing: 0.06em; transition: opacity 0.3s;
}
.cta-btn:hover { opacity: 0.85; }
.cta-btn-sub { font-size: 12px; margin-top: 8px; opacity: 0.5; }

/* ===== FOOTER ===== */
.footer {
  background-color: #0a1e3a;
  background-image: linear-gradient(to top, #0f3d6e, #0a1e3a);
  color: rgba(255,255,255,0.85); padding: 80px 0 40px;
}
.footer-inner {
  width: 90%; max-width: 1430px; margin: 0 auto;
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 48px;
}
.footer-logo .f-name { font-size: 18px; font-weight: 700; color: var(--white); margin-bottom: 8px; letter-spacing: 0.06em; }
.footer-logo .f-tel { font-family: var(--en); font-size: 22px; font-weight: 700; color: var(--white); margin-bottom: 16px; letter-spacing: 0.02em; }
.footer-logo p { font-size: 13px; line-height: 2; }
.footer-logo .f-meta { font-size: 11px; margin-top: 16px; line-height: 1.8; opacity: 0.8; }
.footer-nav h4 { font-size: 14px; color: var(--white); font-weight: 700; margin-bottom: 20px; letter-spacing: 0.06em; }
.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 12px; }
.footer-nav a { font-size: 13px; transition: color 0.3s; }
.footer-nav a:hover { color: var(--white); }
.footer-copy {
  width: 90%; max-width: 1430px; margin: 48px auto 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; padding-top: 24px; color: rgba(255,255,255,0.9);
  border-top: 1px solid rgba(255,255,255,0.15); letter-spacing: 0.04em;
}
.footer-copy-links { display: flex; gap: 16px; }
.footer-copy-links a { color: rgba(255,255,255,0.7); transition: color 0.3s; }
.footer-copy-links a:hover { color: var(--white); }

/* ===== SIDE TAB ===== */
.side-tab { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 90; }
.side-tab a {
  display: flex; align-items: center; gap: 8px;
  writing-mode: vertical-rl; text-orientation: mixed;
  background: var(--primary-dark); color: var(--white);
  padding: 16px 12px; font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em; transition: background 0.3s;
  border-radius: 6px 0 0 6px; box-shadow: -2px 0 12px rgba(0,0,0,0.15);
}
.side-tab a:hover { background: var(--accent); }
.side-tab-img {
  writing-mode: horizontal-tb; width: 36px; height: 36px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0; border: 2px solid rgba(255,255,255,0.5);
}
.side-tab-img img { width: 100%; height: 100%; object-fit: cover; }

/* ===== SCROLL PROGRESS ===== */
.scroll-progress { position: fixed; top: 96px; left: 0; right: 0; height: 3px; z-index: 99; background: rgba(0,0,0,0.05); }
.scroll-progress-bar { height: 100%; width: 0%; background: var(--accent); transition: width 0.1s; }


/* ===== HAMBURGER + MOBILE NAV ===== */
.hamburger { display: none; background: none; border: none; cursor: pointer; width: 28px; height: 20px; position: relative; padding: 0; z-index: 101; margin-right: 20px; }
.hamburger span { display: block; width: 100%; height: 2px; background: var(--text); position: absolute; left: 0; transition: all .3s; }
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }
.hamburger.active span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

.mobile-nav {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.98); z-index: 100;
  flex-direction: column; align-items: center; gap: 0;
  padding-top: 96px; overflow-y: auto;
}
.mobile-nav.active { display: flex; }
.mobile-nav-close {
  position: absolute; top: 20px; right: 20px;
  background: none; border: none; color: #333;
  font-size: 32px; cursor: pointer; line-height: 1; padding: 8px;
  z-index: 101; transition: color 0.2s;
}
.mobile-nav-close:hover { color: var(--accent); }
.mobile-nav-logo { padding: 24px 0 16px; width: 100%; display: flex; justify-content: center; margin-bottom: 16px; }
.mobile-nav-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  width: 90%; max-width: 400px; background: #ffffff;
  border-radius: 12px; overflow: hidden;
}
.mobile-nav-grid a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 24px 8px; background: #ffffff;
  color: #111; font-size: 12px; font-weight: 600;
  letter-spacing: 0.04em; transition: background 0.2s;
}
.mobile-nav-grid a:hover { background: #eef1f6; }
.mobile-nav-grid a svg { width: 24px; height: 24px; stroke: var(--primary); fill: none; stroke-width: 1.5; }
.mobile-nav-grid a.mn-wide { grid-column: span 2; flex-direction: row; gap: 12px; padding: 18px; font-size: 13px; }
.mobile-nav-tel {
  margin-top: 28px; text-align: center;
}
.mobile-nav-tel a {
  font-family: var(--en); font-size: 26px; font-weight: 900; color: #0f3d6e;
  display: block; margin-bottom: 6px; letter-spacing: 0.02em;
}
.mobile-nav-tel .tel-hours { font-size: 11px; color: var(--text-sub); }
.mobile-nav-cta {
  margin-top: 20px; margin-bottom: 32px;
}
.mobile-nav-cta a {
  display: inline-block; background: var(--accent); color: var(--white);
  font-size: 14px; font-weight: 700; padding: 14px 44px; letter-spacing: 0.06em;
  border-radius: 4px; transition: opacity 0.3s;
}
.mobile-nav-cta a:hover { opacity: 0.85; }
/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .nav { display: none; } .hamburger { display: block; }
  .svc-grid { grid-template-columns: 1fr; gap: 40px; }
  .svc-grid.reverse { direction: ltr; }
  .scroll-progress { top: 64px; }
}
@media (max-width: 767px) {
  .header { height: 64px; } .mobile-nav { padding-top: 64px; }
  .header-btn { height: 64px; width: 100px; }
  .header-btn-tel { display: none; } .header-btn-contact { display: none; }
  .page-hero { margin-top: 64px; padding: 60px 0 50px; }
  .page-hero-en { font-size: 48px; }
  .page-hero h1 { font-size: 26px; }
  .svc-section, .flow-section { padding: 60px 0; }
  .svc-content h2 { font-size: 22px; }
  .svc-photo img { height: 240px; }
  .cta-tel { font-size: 32px; }
  .cta-actions { flex-direction: column; align-items: center; }
  .cta-action-card { max-width: 100%; width: 100%; padding: 32px 24px; }
  .footer-inner { grid-template-columns: 1fr; }
  .side-tab { display: none; }
  .scroll-progress { top: 64px; }
  .flow-head .sec-en { font-size: 48px; }
}