/* Machikita Lab — warm ivory, sage and quiet serif typography. */
:root {
  --paper:#f8f6f0; --surface:#f1f2eb; --ink:#353b32; --muted:#505b4b;
  --line:#dad8cc; --sage-soft:#eef0e7; --primary:#68735f; --primary-hover:#55614d;
  --warm-soft:#f1e8d6; --focus:#68735f; --radius:10px; --content:1160px;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Hiragino Kaku Gothic ProN",Meiryo,sans-serif;
  color:var(--ink); background:var(--paper); font-synthesis:none;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:32px}
body{margin:0}
main{overflow-x:clip}
a{color:inherit;text-underline-offset:5px}
a:hover{text-decoration-thickness:2px}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--focus);outline-offset:4px}
h1,h2,h3,p{margin-top:0}
h1,h2,h3{font-family:"Yu Mincho","Hiragino Mincho ProN",Georgia,"Times New Roman",serif;font-weight:400;line-height:1.5;letter-spacing:.025em}
p{line-height:1.95}
.wrap{width:min(var(--content),calc(100% - 96px));margin-inline:auto}
.preview-banner{background:var(--surface);border-bottom:1px solid var(--line);color:var(--muted);text-align:center;font-size:12px;padding:6px 16px;line-height:1.7}
.site-header{display:flex;align-items:center;gap:16px;min-height:100px;border-bottom:1px solid var(--line)}
.brand{display:inline-flex;align-items:center;font-family:"Hiragino Maru Gothic ProN","Yu Gothic",Meiryo,sans-serif;font-size:26px;font-weight:500;letter-spacing:.08em;line-height:1.5;text-decoration:none;white-space:nowrap;flex:none}
.site-header nav{display:flex;align-items:center;gap:30px;margin-left:35px;margin-right:auto;font-size:14px;font-weight:550;white-space:nowrap}
.site-header nav a{padding:12px 0;min-height:44px;text-decoration:none;display:flex;align-items:center}
.site-header nav a:hover,.site-header nav a[aria-current]{text-decoration:underline}
.site-header .nav-contact{display:inline-flex;align-items:center;justify-content:center;gap:12px;background:var(--primary);color:var(--paper);border:1px solid var(--primary);border-radius:7px;text-decoration:none;font-size:13px;font-weight:600;padding:11px 16px;min-height:44px;white-space:nowrap}
.site-header .nav-contact:hover{background:var(--primary-hover)}
.language-control{position:relative;display:flex;align-items:center;flex:none;font-size:12px}
.language-control label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.language-icon{position:absolute;left:12px;width:16px;height:16px;pointer-events:none}
.language-control:after{content:"";position:absolute;right:13px;width:5px;height:5px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-2px) rotate(45deg);pointer-events:none}
.language-control select{appearance:none;font:inherit;color:var(--ink);background:transparent;border:1px solid var(--line);border-radius:7px;height:44px;width:156px;padding:0 28px 0 34px;line-height:normal;cursor:pointer}
.language-control select:hover{background:var(--sage-soft)}
.language-control noscript{position:absolute;top:100%;right:0;padding-top:4px}
.hero{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);align-items:center;gap:75px;padding-top:84px;padding-bottom:90px}
.hero{position:relative;isolation:isolate}
.hero:before{content:"";position:absolute;inset:0 calc((min(1160px,100vw - 96px) - 100vw)/2);z-index:-2;background:url('/hero-dappled-light.png') center/cover no-repeat;opacity:.7;pointer-events:none}
.hero:after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,transparent 45%,rgba(248,246,240,.70) 65%,rgba(248,246,240,.55));pointer-events:none}
.eyebrow{font-size:12px;font-weight:700;letter-spacing:.14em;line-height:1.5;color:var(--muted);margin-bottom:23px;display:flex;gap:10px;align-items:center}
.eyebrow>span{color:var(--ink);border-right:1px solid var(--line);padding-right:10px;letter-spacing:.04em}
.hero h1{font-size:clamp(42px,4.9vw,64px);font-weight:400;line-height:1.6;letter-spacing:.015em;margin:0}

.handwritten{display:block;width:min(340px,100%);height:auto;margin:0 0 28px;transform:rotate(-4deg);transform-origin:left center}
.hero-intro{padding-top:35px;min-width:0}
.hero-intro p{font-size:16px;color:var(--muted);line-height:2.1;margin-bottom:29px}
.button{display:inline-flex;align-items:center;justify-content:space-between;gap:24px;background:var(--primary);color:var(--paper);border:1px solid var(--primary);border-radius:7px;padding:14px 22px;min-height:50px;font-family:inherit;font-size:14px;font-weight:600;line-height:1.5;text-decoration:none;cursor:pointer;transition:background .15s}
.button span{font-size:18px;font-weight:400}
.button:hover{background:var(--primary-hover)}
.button.primary{background:var(--primary);border-color:var(--primary);color:var(--paper)}
.button.primary:hover{background:var(--primary-hover);border-color:var(--primary-hover)}
.section{padding-block:32px 80px}
.section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:28px}
.section-heading .eyebrow{margin-bottom:10px}
h2{font-size:29px;margin-bottom:18px}
.section-heading h2{margin:0}
.section-heading>p{font-size:13px;color:var(--muted);margin:0 0 6px}
.service-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.service-card{border:1px solid var(--line);border-radius:var(--radius);padding:22px 28px 0;display:flex;flex-direction:column;background:var(--surface)}
.service-card:first-child{background:var(--sage-soft)}
.card-top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px;margin-bottom:10px}
.status{white-space:nowrap;display:flex;align-items:center;gap:7px;font-size:12px;color:var(--ink)}
.dot{display:inline-block;width:6px;height:6px;background:var(--ink);border-radius:50%;flex:none}
.development{color:var(--muted)}
.service-card h3{font-family:"Segoe UI","Helvetica Neue",Arial,sans-serif;font-size:32px;font-weight:300;line-height:1.2;letter-spacing:.025em;margin:0;min-width:0;max-width:100%}
.service-tagline{font-size:15px;font-weight:400;margin-bottom:10px}
.service-description{font-size:15px;line-height:1.9;color:var(--muted);margin-bottom:18px;flex:1}
.card-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding:12px 0;min-height:54px;font-size:12px;color:var(--muted)}
.card-bottom a{display:flex;align-items:center;gap:17px;font-size:13px;font-weight:650;color:var(--ink);text-decoration:none;min-height:32px}
.card-bottom a:hover{text-decoration:underline}
.about-strip{padding-block:50px 60px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:50px}
.about-strip .eyebrow{margin-bottom:15px}
.about-strip h2{font-size:25px;margin-bottom:13px}
.about-strip p:not(.eyebrow){font-size:15px;color:var(--muted);margin-bottom:0}
.about-actions{display:flex;flex-direction:column;gap:12px;align-items:flex-start;flex:none}
.text-link{display:inline-flex;align-items:center;gap:22px;min-height:44px;font-size:14px;font-weight:600}
.site-footer{border-top:1px solid var(--line);background:var(--surface);padding-top:30px}
.footer-main{display:flex;align-items:center;gap:24px}
.footer-main .brand{font-size:22px}
.footer-main p{font-size:12px;color:var(--muted);margin:0}
.footer-main nav{display:flex;flex-wrap:wrap;gap:22px;margin-left:auto;font-size:12px}
.footer-main nav a{display:flex;align-items:center;min-height:44px;text-decoration:none}
.footer-main nav a:hover{text-decoration:underline}
.footer-bottom{display:flex;flex-wrap:wrap;justify-content:space-between;gap:16px;border-top:1px solid var(--line);margin-top:23px;padding-block:18px;color:var(--muted);font-size:12px;letter-spacing:.08em}
.footer-bottom small{font-size:12px}
.skip-link{position:absolute;top:-80px;left:12px;padding:12px;background:var(--paper);z-index:10}
.skip-link:focus{top:12px}
.subpage{max-width:800px;padding-block:30px 80px;min-height:65vh}
.breadcrumb{display:inline-flex;gap:18px;font-size:12px;margin-bottom:46px;color:var(--muted);text-decoration:none}
.subpage .eyebrow{margin-bottom:16px}
.subpage h1{font-size:42px;margin-bottom:12px}
.page-lead{color:var(--muted);font-size:16px;margin-bottom:40px}
.prose{font-size:15px;line-height:2}
.prose h2{font-size:21px;margin:36px 0 14px}
.prose p{margin-bottom:18px;color:var(--muted)}
.prose a{color:var(--ink)}
.business{margin-top:25px}
.business>div{display:grid;grid-template-columns:145px minmax(0,1fr);gap:24px;border-top:1px solid var(--line);padding:20px 0}
.business dt{color:var(--muted);font-size:13px}
.business dd{margin:0;overflow-wrap:anywhere}
.pending{color:var(--muted);font-size:13px}
.pending-box{background:var(--warm-soft);border:1px solid var(--primary);padding:15px 20px;border-radius:var(--radius);font-size:14px;display:inline-block}
.contact-panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:34px}
.contact-panel h2{font-size:24px}
.contact-panel p{font-size:15px;color:var(--muted)}
.updated{font-size:13px;color:var(--muted)}
.contact-form{margin-top:26px}
.form-field{display:grid;gap:10px;margin-top:24px}
.form-field label{font-size:15px;font-weight:600}
.required-label{font-size:12px;font-weight:500;color:var(--ink);margin-left:8px;background:var(--warm-soft);border-radius:4px;padding:3px 7px}
.form-field input,.form-field select,.form-field textarea{font:inherit;font-size:16px;color:var(--ink);background:var(--paper);width:100%;min-width:0;border:1px solid #a4ad99;border-radius:7px;padding:13px 14px;line-height:1.6}
.form-field textarea{resize:vertical;min-height:160px}
.contact-panel .field-hint{font-size:13px;line-height:1.8;color:var(--muted);margin:0}
.form-consent{display:flex;gap:12px;align-items:flex-start;margin:28px 0 14px;font-size:14px;line-height:1.9;cursor:pointer}
.form-consent input{flex:none;width:20px;height:20px;margin:3px 0 0;accent-color:var(--ink)}
.contact-form .button{margin-top:24px}
.contact-panel .form-destination{margin-top:17px}
.form-honeypot{display:none}
html[lang="en"] .hero h1{line-height:1.18;letter-spacing:-.045em}
html[lang="en"] .card-bottom{flex-wrap:wrap}
html[lang="en"] .about-strip h2{max-width:590px}
@media(max-width:1050px){
  .site-header nav{margin-left:22px;gap:24px}
  .hero{gap:45px;padding-top:65px;padding-bottom:70px}.hero h1{font-size:49px}.hero-intro p{font-size:15px}
  .footer-main{flex-wrap:wrap}.footer-main nav{gap:18px}
}
@media(max-width:780px){
  .wrap{width:calc(100% - 48px)}
  .site-header{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding-block:20px;min-height:0}
  .site-header .brand{grid-column:1;grid-row:1}.language-control{grid-column:2;grid-row:1;justify-self:end}
  .site-header nav{grid-column:1;grid-row:2;margin:0;gap:28px;font-size:13px}
  .site-header .nav-contact{grid-column:2;grid-row:2;justify-self:end;font-size:12px;min-height:40px}
  .hero{gap:35px;grid-template-columns:1fr;padding-top:45px;padding-bottom:60px}
  .hero:before{inset:0 -24px;background-size:auto 100%;background-position:72% center}.hero:after{inset:0 -24px;background:rgba(248,246,240,.45)}
  .hero h1{font-size:clamp(39px,6.4vw,52px)}.hero .eyebrow{margin-bottom:20px}
  .hero-intro{padding-top:0;max-width:580px}.hero-intro p{margin-bottom:24px}
  .section{padding-block:15px 50px}.section-heading{display:block;margin-bottom:24px}
  .section-heading>p{margin:10px 0 0}.service-grid{gap:18px}.service-card{padding:20px 22px 0}
  .card-bottom{flex-wrap:wrap}.about-strip{align-items:flex-start;gap:28px;padding-block:35px 44px}
  .about-strip h2{font-size:23px}.footer-main nav{margin-left:0;width:100%}
}
@media(max-width:540px){
  .site-header nav{grid-column:1/-1;justify-self:start;width:auto;gap:18px;font-size:12px}.site-header .nav-contact{grid-column:1/-1;font-size:12px;padding:10px;gap:8px}
  .wrap{width:calc(100% - 40px)}.brand{font-size:22px;letter-spacing:.04em}
  .hero{padding-top:37px;padding-bottom:48px;gap:30px}.hero h1{font-size:40px;line-height:1.5}
  .hero:before,.hero:after{inset:0 -20px}
  .hero-intro p{font-size:15px}.service-grid{grid-template-columns:1fr}.service-card{padding:20px 22px 0}
  .service-description{font-size:15px}.card-top{margin-bottom:9px}.section-heading h2{font-size:26px}
  .about-strip{flex-direction:column}.about-strip h2{font-size:23px}.about-actions{flex-direction:row;align-items:center;gap:20px;flex-wrap:wrap}
  .about-strip br{display:none}.footer-main{gap:12px 20px}.footer-main nav{gap:18px}.footer-bottom{font-size:12px}
  .subpage{padding-top:20px;padding-bottom:50px}.breadcrumb{margin-bottom:34px}.subpage h1{font-size:30px}.subpage .privacy-title{font-size:25px}
  .page-lead{font-size:15px;margin-bottom:30px}.prose{font-size:15px}.business>div{grid-template-columns:1fr;gap:5px;padding-block:15px}
  .contact-panel{padding:24px}.contact-panel h2{font-size:21px}.contact-panel p{font-size:15px}.desktop-break{display:none}
  html[lang="en"] .hero h1{font-size:46px}html[lang="en"] .about-strip h2{font-size:25px}
}
@media(max-width:380px){.hero h1{font-size:31px}.language-control select{width:140px;padding-inline:26px 24px}.language-icon{left:8px;width:14px}.language-control:after{right:9px}.brand{font-size:18px;letter-spacing:.015em}html[lang="en"] .hero h1{font-size:40px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.button{transition:none}}
