
:root {
  --navy: #10233f;
  --navy-2: #17365d;
  --blue: #1e4f82;
  --light: #f4f6f8;
  --line: #dfe5ec;
  --text: #1f2933;
  --muted: #68778a;
  --white: #ffffff;
  --red: #d4001a;
  --yellow: #f6bd00;
  --shadow: 0 12px 32px rgba(16, 35, 63, 0.12);
  --radius: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.8;
  background: var(--white);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.section { padding: 72px 0; }
.section.light { background: var(--light); }
.section-title { margin-bottom: 34px; }
.section-kicker { color: var(--blue); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3, h4 { margin: 0 0 16px; line-height: 1.35; color: var(--navy); }
h1 { font-size: clamp(36px, 5vw, 64px); letter-spacing: .04em; }
h2 { font-size: clamp(26px, 3.2vw, 40px); }
h3 { font-size: clamp(20px, 2.2vw, 26px); }
p { margin: 0 0 16px; }
.lead { font-size: clamp(16px, 1.8vw, 19px); color: #344358; }
.note { color: var(--muted); font-size: 14px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.header-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo-link { display: flex; align-items: center; gap: 12px; }
.logo-link img { width: 74px; height: auto; }
.logo-copy strong { display: block; color: var(--navy); font-size: 18px; letter-spacing: .05em; }
.logo-copy span { display: block; color: var(--muted); font-size: 12px; letter-spacing: .08em; }
.global-nav { display: flex; align-items: center; gap: 0; }
.global-nav a {
  display: block;
  padding: 30px 13px;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  border-left: 1px solid transparent;
}
.global-nav a:hover, .global-nav a.is-active { color: var(--red); }
.header-tel {
  border-left: 1px solid var(--line);
  padding-left: 18px;
  white-space: nowrap;
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
}
.header-tel span { display:block; color: var(--muted); font-size: 11px; font-weight: 500; }
.menu-toggle { display: none; background: var(--navy); color: #fff; border: none; width: 44px; height: 44px; border-radius: 6px; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 2px; margin: 5px auto; background: #fff; transition: .2s; }

/* Hero */
.hero {
  min-height: 660px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(16,35,63,.90), rgba(16,35,63,.70), rgba(16,35,63,.32)),
              url('../images/hero.jpg') center/cover no-repeat;
}
.hero.has-video::before { background-image: linear-gradient(90deg, rgba(16,35,63,.90), rgba(16,35,63,.66), rgba(16,35,63,.34)); }
.hero::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 10px; z-index: 2;
  background: linear-gradient(90deg, var(--red), var(--yellow));
}
.hero-content { position: relative; z-index: 3; color: #fff; max-width: 740px; padding: 80px 0; }
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .hero.has-video::before {
    background-image: linear-gradient(90deg, rgba(16,35,63,.90), rgba(16,35,63,.70), rgba(16,35,63,.32)),
                      url('../images/hero.jpg');
    background-position: center; background-size: cover; background-repeat: no-repeat;
  }
}
.hero h1 { color: #fff; text-shadow: 0 4px 20px rgba(0,0,0,.25); }
.hero-lead { font-size: clamp(18px, 2.3vw, 23px); margin: 20px 0 30px; color: rgba(255,255,255,.94); }
.hero-badges { display:flex; flex-wrap: wrap; gap: 10px; margin: 26px 0; }
.badge { padding: 7px 12px; border: 1px solid rgba(255,255,255,.44); color:#fff; border-radius: 999px; font-size: 13px; background: rgba(255,255,255,.08); }
.hero-actions { display:flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap: 10px;
  padding: 13px 24px;
  border-radius: 4px;
  font-weight: 700;
  border: 1px solid var(--navy);
  transition: .2s;
  min-height: 50px;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--blue); border-color: var(--blue); }
.btn-white { background: #fff; color: var(--navy); border-color: #fff; }
.btn-white:hover { background: var(--yellow); border-color: var(--yellow); }
.btn-outline { border-color: var(--line); background: #fff; color: var(--navy); }
.btn-outline:hover { border-color: var(--navy); }

/* Page title */
.page-hero {
  position: relative;
  min-height: 300px;
  display: flex; align-items: center;
  background: var(--navy);
  overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(16,35,63,.9), rgba(16,35,63,.52)), var(--page-image, url('../images/container-work.svg')) center/cover no-repeat;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,.88); font-size: 18px; }
.breadcrumb { background: var(--light); border-bottom:1px solid var(--line); font-size: 13px; color: var(--muted); padding: 12px 0; }
.breadcrumb a { color: var(--navy); font-weight:700; }

/* Components */
.grid { display:grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  background: #fff; border:1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.card-body { padding: 26px; }
.card-media { height: 220px; background: #e8edf3; overflow: hidden; }
.card-media img { width:100%; height:100%; object-fit:cover; }
.service-card h3 { padding-left: 16px; border-left: 5px solid var(--red); }
.feature-number { font-size: 42px; color: rgba(30,79,130,.14); font-weight: 800; line-height: 1; }
.feature-card { padding: 30px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: var(--radius); }
.feature-card:nth-child(2n) { border-top-color: var(--red); }
.feature-card:nth-child(3n) { border-top-color: var(--yellow); }
.two-column { display:grid; grid-template-columns: 1fr 1fr; gap: 42px; align-items: center; }
.photo-frame { border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow); background:#e8edf3; min-height: 300px; }
.photo-frame img { width:100%; height:100%; min-height:300px; object-fit:cover; }
.map-frame { min-height: 360px; }
.map-frame iframe { display:block; width:100%; height:100%; min-height:360px; border:0; }
.cta-band { background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff; padding: 54px 0; }
.cta-band h2 { color:#fff; }
.cta-inner { display:flex; align-items:center; justify-content:space-between; gap: 24px; }
.cta-inner p { color: rgba(255,255,255,.88); margin-bottom:0; }

.info-table { width:100%; border-collapse: collapse; background: #fff; border:1px solid var(--line); }
.info-table th, .info-table td { border-bottom: 1px solid var(--line); padding: 17px 20px; text-align:left; vertical-align: top; }
.info-table th { width: 28%; background: #f3f6f9; color: var(--navy); font-weight:700; }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: none; }
.flow-list { counter-reset: flow; display:grid; gap:18px; }
.flow-item { counter-increment: flow; display:flex; gap:20px; padding:22px; border:1px solid var(--line); background:#fff; border-radius:var(--radius); }
.flow-item::before { content: counter(flow, decimal-leading-zero); flex:0 0 58px; height:58px; border-radius:50%; display:flex; align-items:center; justify-content:center; color:#fff; background:var(--navy); font-weight:800; }

.news-list { border-top:1px solid var(--line); }
.news-list li { list-style:none; margin:0; padding:16px 0; border-bottom:1px solid var(--line); display:flex; gap:18px; }
.news-date { color: var(--muted); font-size: 13px; min-width: 110px; }
.news-title { color: var(--navy); font-weight:700; }

/* Forms */
.form-box { background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding: 30px; box-shadow: var(--shadow); }
.form-grid { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-field.full { grid-column: 1 / -1; }
label { display:block; font-weight:700; color: var(--navy); margin-bottom:7px; }
.required { color:#fff; background:var(--red); border-radius: 2px; padding: 2px 5px; font-size:11px; margin-left:6px; }
input, select, textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  min-height: 48px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}
textarea { min-height: 150px; resize: vertical; }
input[type="file"] { padding: 10px; }
.form-note { background: #f7f9fb; border-left: 4px solid var(--blue); padding: 16px 18px; margin-bottom: 22px; color: #344358; }
.checkbox-row { display:flex; align-items:flex-start; gap:10px; }
.checkbox-row input { width:auto; min-height: auto; margin-top:8px; }

/* Footer */
.footer { background: #0b182b; color: #d9e2ec; }
.footer-main { padding: 52px 0; }
.footer-grid { display:grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 34px; }
.footer-logo { display:flex; align-items:center; gap:14px; margin-bottom:14px; }
.footer-logo img { width: 70px; background:#fff; border-radius:6px; padding:6px; }
.footer h3, .footer h4 { color:#fff; }
.footer a { color: #d9e2ec; }
.footer-nav { display:grid; gap:8px; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.12); padding:16px 0; font-size:12px; color:#aab7c4; text-align:center; }
.back-top { position: fixed; right: 18px; bottom: 18px; background: var(--navy); color:#fff; width:42px; height:42px; display:flex; align-items:center; justify-content:center; border-radius: 50%; box-shadow: var(--shadow); opacity:.94; z-index:40; }

/* Japanese corporate details */
.page-actions { margin-top: 28px; display:flex; flex-wrap:wrap; gap:12px; }
.message-box { border: 1px solid var(--line); background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.philosophy { text-align: center; padding: 42px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.philosophy strong { display:block; font-size: clamp(24px, 3vw, 38px); color: var(--navy); margin-bottom: 16px; }
.accent-line { height: 5px; width: 120px; background: linear-gradient(90deg, var(--red), var(--yellow)); margin: 0 auto 22px; border-radius: 999px; }

/* Movie / showreel */
.movie-frame {
  max-width: 960px; margin: 0 auto; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); background: #000; border: 1px solid var(--line);
}
.movie-frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

@media (max-width: 980px) {
  .header-inner { min-height: 74px; }
  .logo-link img { width: 60px; }
  .logo-copy strong { font-size: 16px; }
  .menu-toggle { display:block; }
  .header-tel { display:none; }
  .global-nav {
    position:absolute; left:0; right:0; top:74px;
    display:none; flex-direction:column; align-items:stretch;
    background:#fff; border-bottom:1px solid var(--line); box-shadow:var(--shadow);
  }
  .global-nav.is-open { display:flex; }
  .global-nav a { padding: 16px 24px; border-top:1px solid var(--line); }
  .hero { min-height: 560px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-column, .cta-inner, .footer-grid { grid-template-columns: 1fr; display:grid; }
  .cta-inner { text-align:left; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 28px, 1120px); }
  .section { padding: 54px 0; }
  .hero { min-height: 520px; }
  .hero-content { padding: 54px 0; }
  .hero-actions, .page-actions { flex-direction: column; }
  .btn { width: 100%; }
  .grid-2, .grid-3, .form-grid { grid-template-columns: 1fr; }
  .card-media { height: 185px; }
  .info-table, .info-table tbody, .info-table tr, .info-table th, .info-table td { display:block; width:100%; }
  .info-table th { border-bottom:0; padding-bottom:8px; }
  .info-table td { padding-top:8px; }
  .flow-item { flex-direction: column; gap: 14px; }
  .news-list li { display:block; }
  .news-date { display:block; margin-bottom:4px; }
  .page-hero { min-height: 240px; }
  .form-box { padding:22px; }
  .footer-main { padding:42px 0; }
}
