
:root{
  --ink:#16313f;
  --blue:#1676a5;
  --blue2:#0e5f88;
  --pale:#eef8fc;
  --line:#d8e5eb;
  --muted:#5e747f;
  --bg:#f7fafb;
  --white:#fff;
  --shadow:0 12px 32px rgba(16,56,80,.08);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans JP","Hiragino Kaku Gothic ProN",Meiryo,sans-serif;color:var(--ink);background:var(--bg);line-height:1.75}
a{color:inherit}
img{max-width:100%;display:block}
.wrap{width:min(1120px,calc(100% - 40px));margin:auto}
header{position:sticky;top:0;z-index:20;background:rgba(255,255,255,.96);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:22px;min-height:74px}
.brand{font-weight:900;text-decoration:none;letter-spacing:.02em}
.brand small{display:block;color:var(--blue);font-size:11px;letter-spacing:.08em}
nav{display:flex;gap:4px;flex-wrap:wrap;justify-content:flex-end}
nav a{padding:11px 12px;border-radius:9px;text-decoration:none;font-size:14px;font-weight:700}
nav a:hover,nav a.active{background:var(--pale);color:var(--blue2)}
.menu-btn{display:none;border:1px solid var(--line);background:#fff;border-radius:9px;padding:8px 12px;font-weight:800}

.hero{background:linear-gradient(135deg,#f7fbfd 0%,#e8f5fb 100%);padding:84px 0 72px;border-bottom:1px solid var(--line)}
.hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:52px;align-items:center}
.eyebrow{color:var(--blue);font-size:13px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
h1{font-size:clamp(38px,5.4vw,70px);line-height:1.18;margin:14px 0 20px;letter-spacing:-.025em}
h2{font-size:clamp(28px,3.5vw,44px);line-height:1.28;margin:10px 0 16px;letter-spacing:-.02em}
h3{line-height:1.4}
.lead{font-size:18px;color:var(--muted);max-width:760px}
.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 20px;border-radius:10px;text-decoration:none;font-weight:900;border:1px solid var(--blue)}
.btn.primary{background:var(--blue);color:white}
.btn.ghost{background:white;color:var(--blue)}
.hero-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:26px;box-shadow:var(--shadow)}
.hero-card .placeholder{min-height:310px;border-radius:14px;background:linear-gradient(135deg,#dcecf3,#f2f8fa);display:flex;align-items:center;justify-content:center;text-align:center;color:#6b8693;font-weight:800;padding:24px}

section{padding:72px 0}
.white{background:#fff}
.section-head{max-width:820px;margin-bottom:34px}
.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:24px}
.card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:25px;box-shadow:0 8px 24px rgba(16,56,80,.04)}
.card .num{font-size:12px;font-weight:900;color:var(--blue);letter-spacing:.08em}
.card p{color:var(--muted);margin-bottom:0}
.stat{background:#fff;border:1px solid var(--line);border-radius:16px;padding:24px;text-align:center}
.stat strong{font-size:36px;display:block;color:var(--blue2);line-height:1.1}
.stat span{font-size:13px;color:var(--muted)}
.link-card{text-decoration:none;display:block;transition:.15s transform,.15s box-shadow}
.link-card:hover{transform:translateY(-2px);box-shadow:var(--shadow)}
.arrow{color:var(--blue);font-weight:900}

.page-hero{padding:64px 0 46px;background:linear-gradient(135deg,#f7fbfd,#edf7fb);border-bottom:1px solid var(--line)}
.page-hero h1{font-size:clamp(34px,4.8vw,56px)}

.notice{background:#fff8e9;border:1px solid #efdfb1;border-radius:12px;padding:16px 18px;color:#685728}
.tech-box{background:var(--pale);border:1px solid #cfe6f0;border-radius:16px;padding:26px}
.placeholder{min-height:220px;border:1px dashed #a9c3cf;border-radius:14px;background:#f2f7f9;display:flex;align-items:center;justify-content:center;color:#78919d;text-align:center;padding:20px}
.steps{display:grid;gap:14px}
.step{display:grid;grid-template-columns:88px 1fr;gap:18px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:20px}
.step b{font-size:13px;color:var(--blue)}
.step h3{margin:0 0 6px}
.step p{margin:0;color:var(--muted)}

.table-wrap{overflow:auto;background:#fff;border:1px solid var(--line);border-radius:14px}
table{width:100%;border-collapse:collapse;min-width:620px}
th,td{padding:16px 18px;border-bottom:1px solid var(--line);text-align:left}
th{background:#f5fafc;font-size:13px;color:#49646f}
td{color:#334e59}

.form{background:#fff;border:1px solid var(--line);border-radius:18px;padding:30px;box-shadow:var(--shadow)}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.field{display:grid;gap:7px}
.field.full{grid-column:1/-1}
label{font-weight:800;font-size:14px}
.req{color:#b64545;font-size:12px}
input,textarea{width:100%;border:1px solid #bfcfd6;border-radius:9px;padding:13px 14px;font:inherit;background:#fff}
textarea{min-height:170px;resize:vertical}
input:focus,textarea:focus{outline:3px solid rgba(22,118,165,.12);border-color:var(--blue)}
.form-note{color:var(--muted);font-size:13px}
.success{display:none;background:#edf8f0;border:1px solid #b9dec2;border-radius:12px;padding:16px;margin-top:18px}

footer{background:#173746;color:#d9e5ea;padding:40px 0;margin-top:40px}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:28px}
footer a{color:#fff}
footer p{margin:5px 0;color:#c8d8df}
.small{font-size:12px;color:#78909b}

@media(max-width:900px){
  .hero-grid,.grid-4,.grid-3,.grid-2,.footer-grid{grid-template-columns:1fr 1fr}
  nav{display:none;position:absolute;top:74px;left:0;right:0;background:#fff;border-bottom:1px solid var(--line);padding:12px 20px}
  nav.open{display:grid}
  .menu-btn{display:block}
}
@media(max-width:640px){
  .wrap{width:min(100% - 28px,1120px)}
  .hero{padding:52px 0}
  .hero-grid,.grid-4,.grid-3,.grid-2,.footer-grid,.form-grid{grid-template-columns:1fr}
  .field.full{grid-column:auto}
  .step{grid-template-columns:1fr}
  section{padding:52px 0}
}

.photo{width:100%;height:auto;border-radius:14px;border:1px solid var(--line);box-shadow:0 8px 24px rgba(16,56,80,.06)}
.hero-photo{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:14px}
.photo-card{overflow:hidden;padding:0}
.photo-card img{width:100%;aspect-ratio:4/3;object-fit:cover}
.photo-card .caption{padding:16px 18px 18px}
.photo-card .caption h3{margin:0 0 5px}
.photo-card .caption p{margin:0;color:var(--muted);font-size:13px}
.diagram{background:#fff;border:1px solid var(--line);border-radius:16px;padding:12px}
.diagram img{width:100%;height:auto;border-radius:10px}
.figure-note{font-size:12px;color:var(--muted);margin-top:8px}
.procedure-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:28px}
@media(max-width:760px){.procedure-gallery{grid-template-columns:1fr}}

.ba-section{margin-top:28px}
.ba-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:22px}
.ba-card{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden;box-shadow:0 8px 24px rgba(16,56,80,.04)}
.ba-card img{width:100%;aspect-ratio:4/3;object-fit:cover;display:block}
.ba-card .body{padding:18px}
.ba-card .kicker{display:inline-block;background:var(--pale);color:var(--blue2);font-size:12px;font-weight:900;padding:5px 10px;border-radius:999px;margin-bottom:8px}
.ba-card h3{margin:0 0 6px}
.ba-card p{margin:0;color:var(--muted);font-size:14px}
.ba-pair-title{margin:0 0 16px;font-size:22px}
@media(max-width:760px){.ba-grid{grid-template-columns:1fr}}


/* Recent works: fixed-height list with internal scrolling */
.records-scroll{
  max-height:360px;
  overflow-y:auto;
  overflow-x:auto;
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  box-shadow:0 8px 24px rgba(16,56,80,.04);
}
.records-table{min-width:760px}
.records-table thead th{
  position:sticky;
  top:0;
  z-index:2;
  background:#edf7fb;
  box-shadow:0 1px 0 var(--line);
}
.records-table tbody tr:last-child td{border-bottom:0}
.text-link{
  color:var(--blue2);
  font-weight:800;
  text-decoration:underline;
  text-underline-offset:3px;
}
.text-link:hover{color:var(--blue)}

/* Keep the first headline phrase together so 「に、」 is not orphaned */
.hero-nowrap{white-space:nowrap}

/* Emphasize the four key features */
.grid-4 .card h3{font-size:24px;line-height:1.45}
.grid-4 .card p{font-size:17px;line-height:1.9}
@media(max-width:760px){
  .grid-4 .card h3{font-size:22px}
  .grid-4 .card p{font-size:16px}
  .hero-nowrap{white-space:normal}
}


/* Keep selected headings on one line on desktop */
.nowrap-desktop{white-space:nowrap}
@media(max-width:900px){
  .nowrap-desktop{white-space:normal}
}

/* Slightly larger figure captions */
.figure-note{font-size:17px;line-height:1.8}

/* Larger copy beneath top-page track record heading */
.track-copy{font-size:18px;line-height:1.9}

/* Final public-release tweak */
.stat span{
  font-size:18px;
  line-height:1.5;
  font-weight:700;
}
@media(max-width:760px){
  .stat span{font-size:17px}
}

/* Contact consent checkbox: prevent the global input width:100% rule from pushing the label text off-screen */
.consent-label{display:flex;gap:10px;align-items:flex-start;font-size:14px;line-height:1.7;color:var(--muted);width:100%}
.consent-label input[type="checkbox"]{width:auto;flex:0 0 auto;margin:5px 0 0;padding:0}
.consent-label > span{flex:1 1 auto;min-width:0;white-space:normal;overflow-wrap:break-word}
.form-status{margin:14px 0 0;font-size:14px}
.form-status.success{color:#0b6b49;font-weight:700}
.form-status.error{color:#a33a3a;font-weight:700}
button[disabled]{opacity:.6;cursor:not-allowed}


/* Contact form: keep submit disabled until all required fields are valid */
#contactForm button[type="submit"][disabled]{
  background:#b9c4ca;
  border-color:#b9c4ca;
  color:#fff;
  opacity:1;
  cursor:not-allowed;
  box-shadow:none;
}
#contactForm button[type="submit"]:not([disabled]){cursor:pointer;}


/* Contact completion state */
.contact-success{
  padding:42px 34px;
  border:1px solid #b9dec2;
  border-radius:22px;
  background:#f2fbf5;
  text-align:center;
}
.contact-success[hidden]{display:none}
.contact-success-icon{
  width:64px;
  height:64px;
  margin:0 auto 18px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#177f59;
  color:#fff;
  font-size:36px;
  font-weight:800;
}
.contact-success h2{
  margin:0 0 14px;
  font-size:clamp(26px,3vw,38px);
}
.contact-success p{
  margin:8px auto;
  max-width:680px;
}
.contact-success-actions{
  margin-top:26px;
  display:flex;
  gap:12px;
  justify-content:center;
  flex-wrap:wrap;
}
@media (max-width:640px){
  .contact-success{padding:32px 20px}
  .contact-success-actions .btn{width:100%}
}

.contact-success h2 span{
  display:block;
  white-space:nowrap;
}
