:root {
  --blue: #4568d5;
  --navy: #3e5c9a;
  --red: #ce272d;
  --aqua: #94eaec;
  --ink: #222;
  --max: 1200px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  color: var(--ink);
  line-height: 1.8;
  font-size: 18px;
  background: #fff;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: "Noto Serif JP", serif; line-height: 1.4; margin: 0 0 .6em; color: var(--blue); }
h1 { font-size: 48px; }
h2 { font-size: 36px; }
h3 { font-size: 24px; }
p { margin: 0 0 1em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.btn {
  display: inline-block;
  background: #000;
  color: #fff;
  text-decoration: none;
  border: 0;
  border-radius: 5px;
  padding: 12px 28px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .2s;
}
.btn:hover { opacity: .8; }
.btn:disabled { opacity: .4; cursor: not-allowed; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .08);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 80px;
}
.logo {
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}
.nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.nav a { color: var(--ink); text-decoration: none; font-size: 16px; }
.nav a:hover,
.nav a[aria-current="page"] { color: var(--blue); }
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span { display: block; height: 2px; background: var(--ink); margin: 6px 0; }
.mobile-nav {
  display: none;
  position: fixed;
  inset: 80px 0 0 0;
  background: var(--blue);
  padding: 24px;
}
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav a { display: block; color: #fff; text-decoration: none; font-size: 20px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .25); }
body.menu-open .mobile-nav { display: block; }

/* Hero slider */
.hero { position: relative; overflow: hidden; background: #000; }
.slides { display: flex; transition: transform .7s ease; }
.slide { position: relative; min-width: 100%; height: min(80vh, 680px); }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.slide-body {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 72px;
  text-align: center;
  color: #fff;
}
.slide-body h1,
.slide-body h2 { color: #fff; font-size: 64px; }
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: none;
  border: 0;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  padding: 12px 18px;
  opacity: .8;
}
.slider-arrow:hover { opacity: 1; }
.slider-arrow.prev { left: 8px; }
.slider-arrow.next { right: 8px; }
.dots { position: absolute; bottom: 24px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; z-index: 2; }
.dots button { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; padding: 0; }
.dots button[aria-current="true"] { background: #fff; }

/* Sections */
.section { padding: 96px 0; }
.section-title { text-align: center; margin-bottom: 48px; }
.section--aqua { background: var(--aqua); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.card { background: #fff; overflow: hidden; display: flex; flex-direction: column; }
.card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.card-body { padding: 32px; }
.card--blue { background: var(--blue); color: #fff; }
.card--blue h3 { color: #fff; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split img { width: 100%; height: 100%; max-height: 640px; object-fit: cover; }
.split--reverse > :first-child { order: 2; }

.page-head { padding: 72px 0 0; }

/* Company table */
.info dl { margin: 0; }
.info .row { display: grid; grid-template-columns: 9em 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid #e3e3e3; }
.info dt { font-weight: 700; color: var(--navy); }
.info dd { margin: 0; }

/* Form */
.form { max-width: 720px; margin: 0 auto; }
.field { margin-bottom: 24px; }
.field label { display: block; font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.req { color: var(--red); margin-left: 4px; }
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid #bbb;
  border-radius: 4px;
  background: #fff;
}
.field input:focus,
.field textarea:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
.field textarea { min-height: 180px; resize: vertical; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.consent input { width: 20px; height: 20px; margin-top: 4px; flex-shrink: 0; }
.consent label { font-weight: 400; }
.hidden { display: none; }

.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { font-size: 24px; margin-top: 1.6em; }

/* Footer */
.site-footer { background: #f4f4f4; padding: 32px 0; font-size: 14px; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; gap: 24px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--blue); }

@media (max-width: 1280px) {
  h1 { font-size: 36px; }
  h2 { font-size: 24px; }
  h3 { font-size: 18px; }
  body { font-size: 16px; }
  .slide-body h1, .slide-body h2 { font-size: 48px; }
}

@media (max-width: 900px) {
  .nav,
  .header-cta { display: none; }
  .menu-toggle { display: block; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split--reverse > :first-child { order: 0; }
  .section { padding: 64px 0; }
  .slide-body { padding: 0 48px; }
  .slide-body h1, .slide-body h2 { font-size: 40px; }
  .info .row { grid-template-columns: 1fr; gap: 2px; }
}
