:root {
  --blue: #3c93f3;
  --blue-soft: #e5ebfa;
  --bg-soft: #f3f7fb;
  --text: #222;
  --gray: #767676;
  --round: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", sans-serif;
  --body: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: var(--body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* keep rotating images from widening the page */
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { width: min(980px, 100% - 32px); margin-inline: auto; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(6px);
  transition: background .3s, box-shadow .3s;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 84px;
}
.site-header.scrolled { background: rgba(255, 255, 255, .78); box-shadow: 0 2px 16px rgba(30, 80, 140, .1); }
.logo { display: flex; align-items: flex-end; gap: 2px; text-decoration: none; }
.logo b { font-family: var(--round); font-weight: 800; font-size: 40px; line-height: 1; color: var(--blue); letter-spacing: .02em; }
.logo small { font-size: 12px; line-height: 1.4; color: var(--text); }
.nav { display: flex; gap: clamp(20px, 7vw, 90px); }
.nav a { text-decoration: none; color: #555; font-size: 14px; letter-spacing: .04em; }
.nav a:hover, .nav a[aria-current] { color: var(--blue); }

/* headings */
.en-title {
  font-family: var(--round); font-weight: 800; color: var(--blue);
  font-size: clamp(34px, 5vw, 48px); line-height: 1.2; text-align: center; margin: 0;
}
.ja-sub { text-align: center; color: #555; font-size: 14px; margin: 4px 0 0; }
.section { padding: 80px 0; }
.section.soft { background: var(--bg-soft); }

/* hero */
.hero-copy { padding: 48px 0 18px; }
.hero-copy h1 { font-family: var(--round); font-weight: 800; font-size: clamp(22px, 3.2vw, 32px); margin: 0; line-height: 1.3; }
.hero-copy p { margin: 4px 0 0; color: var(--gray); font-size: 13px; }
.slider { position: relative; aspect-ratio: 1031 / 550; overflow: hidden; background: #c7c7c7; }
.slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.slider img.on { opacity: 1; }
.slider button {
  position: absolute; top: 50%; translate: 0 -50%; z-index: 2;
  background: none; border: 0; color: #fff; font-size: 34px; cursor: pointer; padding: 10px 16px;
  text-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.slider .prev { left: 0; } .slider .next { right: 0; }

/* intro */
.intro h2 { font-family: var(--round); font-weight: 800; color: var(--blue); font-size: clamp(30px, 4.6vw, 48px); line-height: 1.32; text-align: center; margin: 0 0 40px; }
.intro .cols { display: grid; grid-template-columns: 1fr 240px; gap: 48px; align-items: center; max-width: 780px; margin-inline: auto; }
.intro .cols p { margin: 0; }
.intro .cols img { aspect-ratio: 1; object-fit: cover; }

/* services */
.services { display: grid; gap: 28px; max-width: 780px; margin: 48px auto 0; }
.svc { background: #fff; padding: 32px 36px 28px; display: grid; grid-template-columns: 200px 1fr; column-gap: 40px; row-gap: 8px; }
.section:not(.soft) .svc { background: var(--bg-soft); }
.svc { transition: transform .3s ease, box-shadow .3s ease; }
@media (hover: hover) {
  .svc:hover { transform: translateY(-6px); box-shadow: 0 12px 28px rgba(30, 80, 140, .12); }
}
.svc h3 { grid-column: 1; font-weight: 700; font-size: 22px; color: #555; margin: 0; text-align: center; }
.svc img { grid-column: 1; aspect-ratio: 1; object-fit: cover; }
.svc .desc { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: #555; }
.svc .desc p { margin: 0; }
.svc .cta { grid-column: 1 / -1; justify-self: center; margin-top: 16px; }

.btn-line {
  display: inline-block; padding: 6px 22px; border: 2px solid var(--blue); border-radius: 50px;
  color: var(--blue); font-size: 12px; font-weight: 700; text-decoration: none; letter-spacing: .05em;
  background: linear-gradient(var(--blue), var(--blue)) left / 0% 100% no-repeat, #fff;
  transition: background-size .35s ease, color .35s ease;
}
.btn-line:hover { background-size: 100% 100%; color: #fff; }
.btn-soft {
  display: inline-block; padding: 10px 40px; border-radius: 60px;
  background: linear-gradient(var(--blue), var(--blue)) left / 0% 100% no-repeat, var(--blue-soft);
  transition: background-size .35s ease, color .35s ease;
  font-family: var(--round); font-weight: 800; font-size: 14px; text-decoration: none; letter-spacing: .04em;
}
.btn-soft:hover { background-size: 100% 100%; color: #fff; }

/* news */
.news-list { max-width: 560px; margin: 32px auto 0; list-style: none; padding: 0; }
.news-list li { padding: 12px 0; border-bottom: 1px solid #dde6f0; font-size: 14px; }
.news-list time { display: block; color: var(--gray); font-size: 12px; }

/* recruit */
.recruit-text { max-width: 560px; margin: 32px auto 32px; }
.center { text-align: center; }

/* vision */
.vision .cols { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center; max-width: 780px; margin: 40px auto 0; }
.vision .cols img { aspect-ratio: 3 / 2; object-fit: cover; }
.vision .cols p { margin: 0; }

/* company */
.company { max-width: 560px; margin: 40px auto 0; border-collapse: collapse; width: 100%; font-size: 14px; }
.company th { text-align: left; font-weight: 700; width: 7em; color: #555; padding: 12px 0; vertical-align: top; }
.company td { padding: 12px 0; }

/* contact */
.contact { max-width: 560px; margin-inline: auto; }
.contact h1 { font-weight: 700; font-size: 26px; text-align: center; margin: 0 0 16px; }
.contact .note { font-size: 13px; text-align: center; color: #555; margin: 0 0 32px; }
.field { margin-bottom: 20px; }
.field > label, .field > .label { display: block; font-size: 14px; margin-bottom: 6px; }
.req::after { content: " *"; color: #e44; }
.field input[type=text], .field input[type=tel], .field input[type=email], .field textarea {
  width: 100%; padding: 10px 12px; font: inherit; font-size: 15px; border: 1px solid #bbb; border-radius: 4px;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: -1px; border-color: var(--blue); }
.radios label { display: block; font-size: 14px; }
.policy { height: 220px; overflow-y: auto; border: 1px solid #ddd; padding: 14px 18px; font-size: 12px; line-height: 1.8; background: #fafafa; }
.policy h3 { font-size: 13px; margin: 14px 0 4px; }
.policy h3:first-child { margin-top: 0; }
.agree { font-size: 14px; margin: 14px 0 28px; }
.submit {
  display: block; width: 200px; margin: 0 auto; padding: 12px; border: 0; border-radius: 60px;
  background: var(--blue); color: #fff; font: inherit; font-weight: 700; cursor: pointer;
}
.submit:disabled { opacity: .5; cursor: default; }
.form-msg { text-align: center; margin-top: 20px; font-size: 14px; }
.form-msg.ok { color: var(--blue); }
.form-msg.ng { color: #d33; }

/* footer */
.site-footer { background: var(--blue); color: #fff; padding: 56px 0 28px; text-align: center; }
.site-footer b { font-family: var(--round); font-weight: 800; font-size: 64px; line-height: 1; letter-spacing: .04em; }
.site-footer small { display: block; margin-top: 24px; font-size: 11px; opacity: .85; }

/* phone */
@media (max-width: 720px) {
  .site-header .wrap { height: auto; padding: 12px 0; flex-direction: column; gap: 8px; }
  .logo b { font-size: 32px; }
  .nav { gap: 24px; }
  .section { padding: 56px 0; }
  .intro .cols, .vision .cols { grid-template-columns: 1fr; gap: 24px; }
  .intro .cols img { max-width: 260px; margin-inline: auto; }
  .svc { grid-template-columns: 1fr; padding: 24px 20px; }
  .svc h3, .svc img, .svc .desc { grid-column: 1; grid-row: auto; }
  .svc img { max-width: 220px; margin: 8px auto; }
}

.hero-img { width: 100%; aspect-ratio: 1031 / 550; object-fit: cover; }

/* entrance animations (anim.js adds .anim-ready / .in) */
.anim-ready [data-anim] { opacity: 0; }
/* 1. headings float up */
.anim-ready [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.22, 1, .36, 1); }
.anim-ready [data-reveal].in { opacity: 1; transform: none; }
.anim-ready [data-anim].in { opacity: 1; }
.anim-ready [data-anim="turn"].in { animation: a-fade .6s cubic-bezier(.47,0,.745,.715) both, a-turn 1s cubic-bezier(.175,.885,.32,1.275) both; transform-origin: 0 100%; }
.anim-ready [data-anim="tilt"].in { animation: a-fade .24s cubic-bezier(.215,.61,.355,1) both, a-tilt 1.2s cubic-bezier(.215,.61,.355,1) both, a-clip .96s cubic-bezier(.215,.61,.355,1) both; transform-origin: 50% 0; }
@keyframes a-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes a-turn { from { transform: rotate(-90deg); } to { transform: none; } }
@keyframes a-tilt { from { transform: perspective(800px) rotateX(-90deg); } to { transform: perspective(800px) rotateX(0); } }
@keyframes a-clip { from { clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); } to { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); } }

/* typewriter subtitle (anim.js) */
.typewriter { min-height: 1.7em; }
/* hide the full sentence until anim.js starts typing, so it doesn't flash */
@media (prefers-reduced-motion: no-preference) {
  .js .typewriter:not(.typing):not(.done) { visibility: hidden; }
}
.typewriter.typing::after { content: "|"; margin-left: 1px; animation: caret .8s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
