/* =============================================
   MIRAICRAFT Architects — Office Site
   ============================================= */
:root {
  --text: #1a1a1a;
  --text-sub: #555;
  --text-muted: #999;
  --white: #fff;
  --gray: #F5F5F3;
  --gray-border: #E5E5E2;
  --accent: #2D3436;
  --accent-light: #636E72;
  --brown: #8B6914;
  --yellow: #FFE600;
  --ease: cubic-bezier(.25,.46,.45,.94);
  --ease-out: cubic-bezier(.22,1,.36,1);
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;font-size:16px;-webkit-text-size-adjust:100%}
body{font-family:'Noto Sans JP',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--text);background:var(--white);line-height:1.8;-webkit-font-smoothing:antialiased;overflow-x:hidden}
a{color:inherit;text-decoration:none}
ul{list-style:none}
img{max-width:100%;height:auto;display:block}
.font-en{font-family:'Cormorant Garamond','Times New Roman',serif}

.o-container{max-width:1100px;margin:0 auto;padding:0 9vw}
@media(min-width:1400px){.o-container{padding:0 80px}}

/* Header */
.o-header{position:fixed;top:0;left:0;right:0;z-index:100;background:rgba(255,255,255,.92);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);transition:transform .4s var(--ease),box-shadow .3s var(--ease)}
.o-header.is-hidden{transform:translateY(-100%)}
.o-header.is-scrolled{box-shadow:0 1px 0 rgba(0,0,0,.06)}
.o-header-inner{display:flex;align-items:center;justify-content:space-between;height:72px;max-width:1300px;margin:0 auto;padding:0 9vw}
@media(min-width:1400px){.o-header-inner{padding:0 80px}}
.o-header-logo{display:flex;align-items:center;gap:10px;z-index:101}
.o-header-logo-mark{display:flex;align-items:center;justify-content:center;width:34px;height:34px;background:var(--accent);border-radius:4px;font-family:'Cormorant Garamond',serif;font-size:18px;font-weight:600;color:var(--white)}
.o-header-logo-text{font-size:14px;font-weight:700;letter-spacing:1.5px;color:var(--text)}
.o-header-logo-text small{font-weight:400;font-size:11px;color:var(--text-sub);letter-spacing:.5px;margin-left:4px}
.o-header-nav-list{display:flex;align-items:center;gap:28px}
.o-header-nav-list a{font-size:11px;font-weight:500;color:var(--text-sub);letter-spacing:1px;transition:color .25s var(--ease)}
.o-header-nav-list a:hover{color:var(--text)}
.o-header-nav-school{border:1px solid var(--gray-border)!important;padding:6px 18px!important;border-radius:100px!important;font-size:11px!important}
.o-header-nav-school:hover{border-color:var(--text)!important;color:var(--text)!important}

.o-header-toggle{display:none;flex-direction:column;gap:5px;background:none;border:none;cursor:pointer;padding:10px;z-index:101}
.o-header-toggle span{width:22px;height:1px;background:var(--text);transition:all .3s var(--ease);display:block}
.o-header-toggle.is-active span:nth-child(1){transform:rotate(45deg) translate(3px,3px)}
.o-header-toggle.is-active span:nth-child(2){opacity:0}
.o-header-toggle.is-active span:nth-child(3){transform:rotate(-45deg) translate(4px,-4px)}

/* Hero — sticky card stacking */
.o-hero{position:sticky;top:0;z-index:0;height:100vh;min-height:600px;display:flex;align-items:center;justify-content:center;background:var(--accent);color:var(--white);text-align:center;overflow:hidden}
.o-hero-content{position:relative;z-index:2;max-width:800px;margin:0 auto;padding:0 24px}
.o-hero-label{font-size:11px;letter-spacing:4px;opacity:.5;margin-bottom:32px;text-transform:uppercase}
.o-hero-title{font-size:clamp(28px,5vw,48px);font-weight:700;line-height:1.4;letter-spacing:2px;margin-bottom:32px}
.o-hero-lead{font-size:16px;font-weight:300;opacity:.7;letter-spacing:3px}

/* Section Common — rounded corners + overlap */
.o-section{padding:120px 0;border-radius:48px 48px 0 0;position:relative;margin-top:-48px;z-index:1;background:var(--white)}
.o-section--gray{background:var(--gray)}
.o-section:first-of-type{margin-top:0}
.o-section-head{text-align:left;margin-bottom:56px}
.o-section-num{display:block;font-size:13px;letter-spacing:3px;color:var(--accent-light);margin-bottom:8px;font-weight:600}
.o-section-title{font-size:clamp(28px,4vw,44px);font-weight:700;color:var(--text);letter-spacing:1px;line-height:1.2;margin-bottom:8px}
.o-section-title .font-en{display:inline}
.o-section-title-jp{font-family:'Noto Sans JP',sans-serif;font-size:14px;font-weight:400;color:var(--text-sub);letter-spacing:1px;margin-left:14px}
.o-section-lead{font-size:14px;color:var(--text-sub);font-weight:300;margin-top:4px}

/* Philosophy */
.o-philosophy{max-width:720px}
.o-philosophy-quote{font-size:clamp(20px,3vw,28px);font-weight:700;line-height:1.9;color:var(--text);margin-bottom:40px;padding-left:24px;border-left:3px solid var(--accent)}
.o-philosophy-text{font-size:14px;color:var(--text-sub);line-height:2.2}

/* Services */
.o-services-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}
.o-service-card{background:var(--white);border-radius:12px;padding:36px 32px}
.o-service-num{font-size:12px;color:var(--text-muted);letter-spacing:2px;display:block;margin-bottom:16px}
.o-service-card h3{font-size:18px;font-weight:700;margin-bottom:12px;letter-spacing:.5px}
.o-service-card p{font-size:13px;color:var(--text-sub);line-height:1.9}

/* Works */
.o-works-coming{text-align:center;padding:80px 0}
.o-works-coming p{font-size:clamp(24px,4vw,48px);font-weight:300;color:var(--gray-border);letter-spacing:4px}

/* Profile */
.o-profile{display:grid;grid-template-columns:280px 1fr;gap:64px;align-items:start}
.o-profile-photo{border-radius:8px;overflow:hidden}
.o-profile-photo img{width:100%;aspect-ratio:3/4;object-fit:cover}
.o-profile-role{font-size:11px;color:var(--accent-light);letter-spacing:2px;margin-bottom:12px;text-transform:uppercase}
.o-profile-name{font-size:26px;font-weight:700;margin-bottom:32px;color:var(--text);line-height:1.4}
.o-profile-name span{display:block;font-size:13px;font-weight:300;color:var(--text-muted);margin-top:6px;letter-spacing:2px}
.o-profile-dl dt{font-size:11px;color:var(--text-muted);letter-spacing:1px;margin-top:20px;font-weight:500}
.o-profile-dl dt:first-child{margin-top:0}
.o-profile-dl dd{font-size:14px;color:var(--text-sub);line-height:1.9;margin-top:4px}

/* Access */
.o-access{max-width:640px}
.o-access-dl dt{font-size:11px;color:var(--text-muted);letter-spacing:1px;margin-top:20px;font-weight:500}
.o-access-dl dt:first-child{margin-top:0}
.o-access-dl dd{font-size:14px;color:var(--text);margin-top:4px}
.o-access-dl a{color:var(--accent-light);transition:color .25s var(--ease)}
.o-access-dl a:hover{color:var(--text)}
.o-access-cta{margin-top:48px;padding-top:32px;border-top:1px solid var(--gray-border)}
.o-access-cta p{font-size:14px;color:var(--text-sub);margin-bottom:20px}

/* Button */
.o-btn{display:inline-flex;align-items:center;justify-content:center;padding:14px 40px;border-radius:100px;font-size:13px;font-weight:500;letter-spacing:1.5px;transition:all .35s var(--ease);cursor:pointer;border:1px solid var(--text);color:var(--text);background:transparent}
.o-btn:hover{background:var(--text);color:var(--white)}
.o-btn--white{border-color:var(--white);color:var(--white)}
.o-btn--white:hover{background:var(--white);color:var(--text)}

/* School Banner */
.o-school-banner{background:var(--yellow);padding:64px 0;border-radius:48px 48px 0 0;position:relative;margin-top:-48px;z-index:1}
.o-school-banner-inner{display:flex;align-items:center;justify-content:space-between;gap:32px}
.o-school-banner-label{font-size:11px;color:var(--brown);letter-spacing:3px;text-transform:uppercase;margin-bottom:8px}
.o-school-banner-inner h3{font-size:20px;font-weight:700;line-height:1.5;color:var(--text)}
.o-school-banner-inner h3 span{font-size:14px;font-weight:300;letter-spacing:2px}

/* Footer */
.o-footer{background:var(--accent);color:var(--white);padding:48px 0;border-radius:48px 48px 0 0;position:relative;margin-top:-48px;z-index:1}
.o-footer-inner{display:flex;align-items:center;justify-content:space-between}
.o-footer-brand{display:flex;align-items:center;gap:10px}
.o-footer-copy{font-size:11px;color:rgba(255,255,255,.3);letter-spacing:1px}

/* Fade-in Animation */
.js-fade{opacity:0;transform:translateY(32px);transition:opacity .8s var(--ease-out),transform .8s var(--ease-out)}
.js-fade.is-visible{opacity:1;transform:translateY(0)}

/* Parallax Performance */
[data-parallax]{will-change:transform}

/* Responsive */
@media(max-width:768px){
  .o-container{padding:0 24px}
  .o-header-inner{height:60px;padding:0 24px}
  .o-header-toggle{display:flex}
  .o-header-nav-list{position:fixed;top:0;left:0;right:0;bottom:0;flex-direction:column;justify-content:center;align-items:center;background:rgba(255,255,255,.98);backdrop-filter:blur(24px);gap:24px;display:none;z-index:100}
  .o-header-nav-list.is-active{display:flex}
  .o-header-nav-list a{font-size:15px!important;letter-spacing:2px!important}

  .o-hero{height:100svh;min-height:480px}
  .o-section{padding:80px 0;border-radius:32px 32px 0 0;margin-top:-32px}
  .o-school-banner{border-radius:32px 32px 0 0;margin-top:-32px}
  .o-footer{border-radius:32px 32px 0 0;margin-top:-32px}
  .o-section-head{margin-bottom:40px}
  .o-section-title-jp{display:block;margin-left:0;margin-top:4px;font-size:12px}

  .o-services-grid{grid-template-columns:1fr;gap:16px}
  .o-service-card{padding:28px 24px}
  .o-profile{grid-template-columns:1fr;gap:36px}
  .o-profile-photo{max-width:240px}
  .o-school-banner-inner{flex-direction:column;text-align:center}
  .o-footer-inner{flex-direction:column;gap:16px;text-align:center}
}
