/*
Theme Name: TERAS
Version: 0.1.0
Description: TERAS renewal development theme.
Text Domain: teras-development
*/
:root{--ink:#292623;--yellow:#fffdb4;--orange:#ffb334;--line:#bdbbb5;--font:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:30px}body{margin:0;color:var(--ink);background:#fff;font-family:var(--font);font-size:16px;line-height:1.9;-webkit-font-smoothing:antialiased}img{display:block;max-width:100%;height:auto}a{color:inherit;text-underline-offset:4px}a:focus-visible,button:focus-visible{outline:3px solid #8b6100;outline-offset:6px}button{font:inherit}h1,h2,h3,h4,h5,p{margin:0}h1,h2,h3,h4,h5{font-weight:600}a:hover{opacity:.72}.content-width{width:calc(100% - 100px);max-width:1280px;margin-inline:auto}.site-header{max-width:1400px;height:100px;margin:auto;padding:25px 60px;display:flex;align-items:center;justify-content:space-between;gap:50px}.brand{display:block;flex-shrink:0;width:180px}.brand img{width:100%;height:auto}.site-nav{display:flex;align-items:center;gap:70px;font-size:15px}.site-nav a,.site-footer a{text-decoration:none}.menu-toggle{display:none}.skip-link{position:absolute;top:-100px;left:15px;z-index:50;background:#fff;padding:12px}.skip-link:focus{top:10px}.hero{position:relative;max-width:1400px;margin:auto;min-height:0}.hero-art{width:100%}.vertical-copy{position:absolute;display:flex;flex-direction:row-reverse;align-items:flex-start;gap:3px;font-weight:500;line-height:1.5;letter-spacing:.09em}.vertical-copy span{writing-mode:vertical-rl;background:var(--orange);padding:15px 9px;white-space:nowrap}.hero-copy{right:7.6%;top:3.4%;font-size:clamp(20px,3.1vw,43px)}.intro{position:absolute;left:7.8%;top:75.64%;font-size:clamp(10px,1.15vw,16px);line-height:2.6}.services{padding:85px 55px 100px}.service{display:flex;align-items:center;justify-content:space-between;gap:35px;margin-bottom:90px}.service:last-child{margin-bottom:0;flex-direction:row-reverse}.service-copy{border-left:1px solid #aaa;padding-left:24px;width:57%;font-size:16px;line-height:2.3}.service h2{font-size:20px;margin-bottom:20px;letter-spacing:.04em}.service img{width:45%;max-width:570px}.service-project .service-copy{border-left:0;border-right:1px solid #aaa;padding:0 24px 0 0;text-align:right}.service-project img{width:40%}.section{border-top:1px solid var(--line);padding-top:60px;margin-top:0}.section-heading{text-align:center;margin-bottom:75px}.section-heading h2{font-family:Arial,var(--font);font-size:30px;font-weight:700;line-height:1.25}.section-heading h2 span{display:block;font-family:var(--font);font-size:18px;line-height:1.6;font-weight:600}.section-heading>p{font-size:21px;letter-spacing:.04em;margin-top:42px}.member-grid{display:grid;grid-template-columns:1fr 1fr;gap:85px 75px;padding:0 50px 100px}.member-card{background:var(--yellow);border-radius:25px;padding:45px 45px 40px;min-width:0}.member-photo{width:165px;aspect-ratio:1;object-fit:cover;float:right;margin:0 0 24px 24px}.member-copy h3{font-size:24px;letter-spacing:.05em;padding-top:125px;margin-bottom:12px;line-height:1.4}.member-copy p{font-size:16px;line-height:1.85;text-align:justify}.member-lead{grid-column:1/-1;display:grid;grid-template-columns:170px 1fr;gap:30px}.member-lead .member-photo{float:none;margin:0;width:170px}.member-lead .member-copy h3{padding-top:0}.project-list{font-size:13px;line-height:1.9;margin:38px 0 0}.project-list>div{display:grid;grid-template-columns:64px 1fr;gap:8px}.project-list dt{white-space:nowrap}.project-list dd{margin:0;display:flex;justify-content:space-between;gap:18px}.project-list dd span{min-width:47px;flex-shrink:0}.notes{max-width:1400px;margin:auto;border:0;padding-top:0;padding-bottom:100px}.notes .section-heading{padding-top:60px;border-top:1px solid var(--line);margin-bottom:80px}.note-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.note-card>img{width:100%;aspect-ratio:1.4;object-fit:cover}.note-copy{padding:20px 28px}.note-status{font-size:11px;letter-spacing:.12em;color:#706d65}.note-copy h3{font-size:19px;margin:10px 0}.note-copy p{font-size:13px}.overview{padding-bottom:130px}.overview-panel{max-width:810px;margin:auto;background:var(--yellow);border-radius:65px;padding:70px 80px}.overview-panel>h3{text-align:center;font-size:30px;font-weight:500;letter-spacing:.08em;margin-bottom:65px;white-space:nowrap}.company-table{margin:0 0 28px;font-size:16px;line-height:1.65}.company-table>div{border-top:1px solid #aaa98c;display:grid;grid-template-columns:180px 1fr;gap:18px;padding:14px 0}.company-table>div:last-child{border-bottom:1px solid #aaa98c}.company-table dt{font-weight:500}.company-table dd{margin:0}.company-table dd span{display:block}.business-group,.manufacturers{font-size:15px;line-height:1.8}.business-group h4,.manufacturers h4,.manufacturers h5{font-size:inherit;font-weight:500}.business-group ul{margin:0 0 8px;padding-left:1.1em}.manufacturers>div{margin:5px 0 14px}.manufacturers h5:before{content:'・'}.manufacturers p{padding-left:1em}.contact{position:relative;padding-bottom:105px}.contact .section-heading{margin-bottom:50px}.contact-visual{position:relative;max-width:1180px;margin:auto}.contact-visual>img{width:100%}.contact-copy{right:0;top:0;font-size:29px}.contact-link{display:flex;width:fit-content;margin:12px auto 0;text-align:center;align-items:center;flex-direction:column;font-size:18px;gap:25px}.mail-icon{width:80px;height:80px;border:1px solid #333;border-radius:50%;display:grid;place-items:center;font-family:Arial,sans-serif;font-size:50px;line-height:1}.back-top{position:absolute;bottom:120px;left:100px;background:var(--orange);width:100px;height:100px;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:50%;text-decoration:none;font-size:19px;line-height:1.2}.back-top span{font-size:48px;font-weight:300;line-height:1}.site-footer{border-top:1px solid var(--line);display:flex;gap:60px;padding:50px 35px 95px;align-items:flex-start}.site-footer .brand{width:100px}.site-footer nav{display:flex;flex-wrap:wrap;gap:20px 45px;font-size:13px}.site-footer .footer-subnav{margin-top:20px;font-size:12px;gap:30px}
@media(min-width:1401px){.hero-copy{font-size:43px}.intro{font-size:16px}}
@media(max-width:1050px){.site-header{padding-inline:30px;gap:25px;height:80px}.brand{width:140px}.site-nav{gap:28px;font-size:12px}.content-width{width:calc(100% - 60px)}.services{padding:50px 20px 70px}.service-copy{font-size:13px}.service h2{font-size:16px}.member-grid{padding:0 20px 80px;gap:40px}.member-card{padding:30px}.member-copy p{font-size:14px}.member-photo{width:125px}.member-copy h3{font-size:20px;padding-top:95px}.member-lead{grid-template-columns:125px 1fr;gap:20px}.member-lead .member-photo{width:125px}.project-list{font-size:11px}.overview-panel{padding:55px;max-width:750px}.contact-copy{font-size:23px}.back-top{left:30px;width:75px;height:75px}.site-footer nav{gap:20px}}
@media(max-width:760px){html{scroll-padding-top:20px}.content-width{width:calc(100% - 36px)}.site-header{height:78px;padding:20px 22px;position:relative;z-index:5}.brand{width:125px}.menu-toggle{display:flex;align-items:center;gap:10px;border:0;background:none;font-size:11px;letter-spacing:.08em;padding:10px 0}.menu-toggle span{display:block;width:20px;height:12px;border-top:1px solid;border-bottom:1px solid}.site-nav{display:none;position:absolute;top:70px;left:0;right:0;padding:25px;background:#fff;box-shadow:0 10px 15px #00000009;font-size:14px;gap:0}.site-nav.is-open{display:flex;flex-direction:column;align-items:stretch}.site-nav a{padding:13px}.hero{padding-bottom:0}.hero-art{width:100%}.hero-copy{right:7%;top:2%;font-size:clamp(16px,3.7vw,25px);gap:2px}.vertical-copy span{padding:8px 4px}.intro{position:relative;left:auto;top:auto;bottom:auto;width:calc(100% - 52px);margin:24px auto 0;font-size:13px;line-height:2.3}.services{padding:60px 8px}.service,.service:last-child{flex-direction:column;gap:30px;margin-bottom:60px;align-items:stretch}.service-copy{width:100%;font-size:13px;line-height:2.2;padding-left:17px}.service h2{font-size:16px;margin-bottom:15px}.service img,.service-project img{width:78%;align-self:center;max-width:360px}.service-project .service-copy{padding-right:17px}.section{padding-top:40px}.section-heading{margin-bottom:35px}.section-heading h2{font-size:25px}.section-heading h2 span{font-size:14px}.section-heading>p{font-size:15px;margin-top:25px}.member-grid{display:flex;flex-direction:column;gap:28px;padding:0 0 55px}.member-card{padding:25px;border-radius:20px}.member-lead{display:block}.member-photo,.member-lead .member-photo{float:right;width:110px;margin:0 0 20px 20px}.member-copy h3,.member-lead .member-copy h3{padding-top:68px;margin-bottom:24px;font-size:20px}.member-copy p{font-size:14px;line-height:1.95;clear:both}.project-list{font-size:12px;line-height:1.8;margin-top:25px}.project-list>div{grid-template-columns:50px 1fr;gap:7px;margin-bottom:9px}.project-list dd{display:block}.project-list dd span{display:block;font-size:11px;color:#625d43}.notes{padding-bottom:50px}.notes .section-heading{padding-top:40px;margin-bottom:35px}.note-grid{grid-template-columns:1fr;gap:30px;padding:0 18px}.note-card>img{aspect-ratio:1.65}.note-copy{padding:15px 8px}.note-copy h3{font-size:17px;margin:5px 0}.overview{padding-bottom:60px}.overview-panel{padding:34px 23px;border-radius:30px}.overview-panel>h3{font-size:clamp(16px,4vw,23px);margin-bottom:30px;letter-spacing:.02em}.company-table{font-size:13px}.company-table>div{grid-template-columns:85px 1fr;gap:10px;padding:12px 0;overflow-wrap:anywhere}.business-group,.manufacturers{font-size:13px;line-height:1.9}.contact{padding-bottom:100px}.contact .section-heading{margin-bottom:35px}.contact-copy{font-size:clamp(13px,3.2vw,21px);right:0;top:0}.contact-link{font-size:14px;gap:18px;margin-top:28px}.mail-icon{width:55px;height:55px;font-size:33px}.back-top{width:55px;height:55px;font-size:12px;left:4px;bottom:35px}.back-top span{font-size:30px}.site-footer{padding:30px 5px 50px;gap:23px}.site-footer .brand{width:65px}.site-footer nav{gap:12px 18px;font-size:10px}.site-footer .footer-subnav{font-size:10px;gap:12px;margin-top:18px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

.note-preview-label{text-align:center;font-size:12px;color:#706d65;margin-top:30px}
.contact-link{text-decoration:none}.contact-link>span:last-child{text-decoration:underline;text-underline-offset:4px}

/* Member history is collapsed until requested, with native keyboard controls. */
.member-career{margin-top:28px}
.member-career>summary{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:48px;padding:10px 0;border-bottom:1px solid #aaa98c;list-style:none;cursor:pointer;font-size:14px}
.member-career>summary::-webkit-details-marker{display:none}
.member-career>summary:focus-visible{outline:3px solid #8b6100;outline-offset:6px}
.member-career-icon{position:relative;flex:0 0 16px;width:16px;height:16px}
.member-career-icon::before,.member-career-icon::after{content:"";position:absolute;inset:7px 1px;height:1px;background:currentColor}
.member-career-icon::after{transform:rotate(90deg)}
.member-career[open] .member-career-icon::after{display:none}
.member-career .project-list{margin-top:16px;overflow-wrap:anywhere}

/* Motion wrappers preserve the original artwork and final placement. */
.hero-illustration{width:100%}
.hero-illustration svg{display:block;width:100%;height:auto}
.hero-motion-enabled .hero-art [data-motion],
.hero-motion-enabled .hero-copy{opacity:0}
.hero-motion-enabled .hero-art [data-motion].is-visible,
.hero-motion-enabled .hero-copy.is-visible{opacity:1}
@media(prefers-reduced-motion:reduce){
 .hero-motion-enabled .hero-art [data-motion],
 .hero-motion-enabled .hero-copy{opacity:1!important}
}

/* Header enters after the story; navigation waits for the first scroll. */
.hero-motion-enabled .site-header :is(.brand,.menu-toggle,.site-nav){opacity:0;visibility:hidden}
.hero-motion-enabled .site-header :is(.brand,.menu-toggle,.site-nav).is-revealing{visibility:visible}
.hero-motion-enabled .site-header :is(.brand,.menu-toggle,.site-nav).is-visible{opacity:1;visibility:visible}
@media(prefers-reduced-motion:reduce){
 .hero-motion-enabled .site-header :is(.brand,.menu-toggle,.site-nav){opacity:1!important;visibility:visible}
}

/* Intro fades up alongside the headline movement. */
.hero-motion-enabled .hero .intro{opacity:0}
.hero-motion-enabled .hero .intro.is-visible{opacity:1}
@media(prefers-reduced-motion:reduce){.hero-motion-enabled .hero .intro{opacity:1!important}}

/* Shared routes added after the approved homepage baseline. */
.section-link{text-align:center;margin-top:32px}
.pill-link{display:inline-flex;align-items:center;justify-content:center;gap:35px;min-height:44px;padding:5px 30px;border-radius:30px;background:#f1f0ed;text-decoration:none;font-size:14px}
.pill-link span{font-size:24px;line-height:1}
.site-nav a[aria-current="page"]{text-decoration:underline;text-underline-offset:5px}
.note-card>a{display:block;text-decoration:none}.note-card>a>img{width:100%;aspect-ratio:1.4;object-fit:cover}.note-card>a:hover{opacity:1}.note-card>a:hover .note-copy{background:#fffecb}

/* A cloned global header becomes fixed once the original leaves the viewport. */
.site-header--fixed{position:fixed;top:0;left:50%;width:100%;z-index:100;background:#fff;box-shadow:none;transform:translate(-50%,-110%);opacity:0;visibility:hidden;pointer-events:none;transition:transform .3s ease,opacity .3s ease,visibility .3s}
.site-header--fixed.is-fixed-visible{transform:translate(-50%,0);opacity:1;visibility:visible;pointer-events:auto}
.hero-motion-enabled .site-header--fixed :is(.brand,.menu-toggle,.site-nav){opacity:1;visibility:inherit}
@media(prefers-reduced-motion:reduce){.site-header--fixed{transition:none}}

/* Landing navigation follows scroll position independently of motion preferences. */
body.home.has-scroll-header:not(.has-scrolled) .site-header :is(.site-nav,.menu-toggle){opacity:0;visibility:hidden;pointer-events:none}
body.home.has-scroll-header .site-header :is(.site-nav,.menu-toggle){transition:opacity .35s ease,visibility .35s ease}
@media(prefers-reduced-motion:reduce){body.home.has-scroll-header .site-header :is(.site-nav,.menu-toggle){transition:none}}

/* Full-width fixed white strip; desktop content stays within the original 1400px header. */
.site-header--fixed{max-width:none}
@media(min-width:1051px){.site-header--fixed{padding-inline:max(60px,calc((100% - 1280px)/2))}}
