@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/

/* 2026-10-02 クライアント提示のサイト（chatgpt.site版）をそのまま写したCSS。
   元: data/ref-site/style.css。手で直さず build-copy.py を流し直すこと。 */
@charset "UTF-8";
@font-face{font-family:YamagiSerif;src:url('https://yamagi.net/wp-content/uploads/2026/10/yamagi-serif.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:YamagiSans;src:url('https://yamagi.net/wp-content/uploads/2026/10/yamagi-sans.woff2') format('woff2');font-weight:400 700;font-display:swap}
:root{--ink:#294036;--forest:#294036;--deep:#1e342b;--muted:#617166;--paper:#f6f5ef;--wash:#e9ede6;--line:#d2d9cf;--serif:YamagiSerif,'Yu Mincho',serif;--sans:YamagiSans,-apple-system,BlinkMacSystemFont,'Hiragino Kaku Gothic ProN',sans-serif}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:30px}body{margin:0;color:var(--ink);background:var(--paper);font:400 15px/1.95 var(--sans);-webkit-font-smoothing:antialiased}body.dialog-open{overflow:hidden}img{display:block;width:100%;height:auto}a{color:inherit;text-decoration:none}button{font:inherit;color:inherit;cursor:pointer}button,a,summary{-webkit-tap-highlight-color:transparent}a:focus-visible,button:focus-visible,summary:focus-visible{outline:2px solid #66846c;outline-offset:5px}h1,h2,h3,p{overflow-wrap:break-word}h1,h2,h3{font-family:var(--serif);font-weight:400}h2{font-size:clamp(32px,3.5vw,52px);line-height:1.6;letter-spacing:.045em;margin:0}h3{font-size:25px;line-height:1.6;margin:0 0 13px}p{margin:0 0 20px}.wrap{width:min(100% - 112px,1200px);margin-inline:auto}.section{padding-block:110px}.eyebrow{font-size:10px;font-weight:500;letter-spacing:.18em;line-height:1.6;color:var(--muted);margin:0 0 24px}.skip{position:absolute;z-index:200;top:-100px;left:12px;padding:10px;background:white}.skip:focus{top:10px}
.site-header{height:96px;padding-inline:4.1%;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #2940360a;position:relative;z-index:50;background:var(--paper)}.brand{display:block;width:158px;flex-shrink:0}.brand img{mix-blend-mode:multiply}.desktop-nav{display:flex;align-items:center;gap:29px;font-size:12px}.desktop-nav>a:not(.button){padding:10px 0;border-bottom:1px solid transparent}.desktop-nav a[aria-current=page],.desktop-nav>a:not(.button):hover{border-color:var(--forest)}.desktop-nav .button{min-height:44px;padding:10px 18px;margin-left:8px;gap:24px}.button{display:inline-flex;align-items:center;justify-content:space-between;gap:35px;min-height:55px;padding:15px 24px;font-size:13px;letter-spacing:.03em;line-height:1.6;background:var(--forest);border:1px solid var(--forest);color:white;transition:background .2s}.button:hover{background:#3a5645}.text-link{display:inline-flex;align-items:center;justify-content:space-between;gap:42px;border-bottom:1px solid currentColor;padding:12px 0 9px;min-height:44px;font-size:13px;line-height:1.65;transition:gap .2s}.text-link:hover{gap:50px}.menu-toggle,.mobile-nav{display:none}
.hero{height:min(820px,calc(100svh - 96px));min-height:630px;position:relative;isolation:isolate;overflow:hidden;background:#405548;color:white}.hero-image,.hero-image img,.hero-shade{position:absolute;inset:0;width:100%;height:100%}.hero-image img{object-fit:cover;object-position:58% 53%}.hero-shade{background:linear-gradient(90deg,#0d241d91 0%,#152e1f30 65%,transparent),linear-gradient(0deg,#11271c32,transparent 50%)}.hero-copy{position:relative;top:50%;transform:translateY(-48%);z-index:2}.hero-copy .eyebrow{color:#ecf0e6;letter-spacing:.22em;margin-bottom:21px}.hero h1{font-size:clamp(60px,6.3vw,96px);line-height:1.47;letter-spacing:.065em;margin:0 0 24px}.hero-copy>p:not(.eyebrow){font-size:15px;line-height:2.1;letter-spacing:.055em;margin-bottom:22px}.hero-copy .text-link{font-size:12px}.hero-side{position:absolute;right:35px;bottom:42px;writing-mode:vertical-rl;font-size:10px;letter-spacing:.17em}.hero-scroll{position:absolute;bottom:30px;left:max(56px,calc((100vw - 1200px)/2));font-size:9px;letter-spacing:.18em;display:flex;align-items:center;gap:20px}.hero-scroll span{font-size:19px}
.idea{display:grid;grid-template-columns:1fr 1fr;gap:80px;align-items:center}.idea-copy{max-width:485px}.idea-copy .intro-sentence{font-family:var(--serif);font-size:25px;line-height:1.8;color:var(--ink);margin-bottom:23px}.idea-copy p{color:var(--muted)}.section-head{margin-bottom:50px}.section-head>div>p:not(.eyebrow){max-width:550px;color:var(--muted);margin:21px 0 0}.section-head.row{display:flex;align-items:end;justify-content:space-between;gap:35px}.section-head .text-link{flex-shrink:0;margin-bottom:6px}.approach{border-top:1px solid var(--line)}.approach>.section-head>div{display:grid;grid-template-columns:1fr 1fr;gap:0 80px;align-items:end}.approach>.section-head .eyebrow{grid-column:1/-1}.approach>.section-head>div>p:not(.eyebrow){margin-bottom:9px}.approach-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;margin-bottom:26px}.step-photo{aspect-ratio:1.2;overflow:hidden}.step-photo img{height:100%;object-fit:cover}.step-number{font-size:10px;color:var(--muted);letter-spacing:.15em;margin:24px 0 12px}.approach article p:last-child{font-size:14px;color:var(--muted);line-height:2}.selected,.forest-stages,.questions,.profile{background:var(--wash)}
.selected-grid,.cards-grid{display:grid;grid-template-columns:1fr 1fr;gap:57px 34px}.work-card{display:block}.work-image{aspect-ratio:1.43;overflow:hidden;background:#dbe2d6}.work-image img{height:100%;object-fit:cover;transition:transform .5s}.work-card:hover img{transform:scale(1.025)}.work-meta{display:flex;justify-content:space-between;gap:15px;margin:20px 0 6px;font-size:11px;color:#53685a;line-height:1.8}.slash{padding:0 6px}.work-card h3{font-size:25px;margin:0 0 12px}.work-card>p{font-size:13px;color:var(--muted);max-width:500px;line-height:1.95;margin:0}.tree-teaser{display:grid;grid-template-columns:1.08fr .92fr;gap:9%;align-items:center}.teaser-image{height:470px}.teaser-image img{height:100%;object-fit:cover;object-position:50% 43%}.tree-teaser h2{margin-bottom:25px}.tree-teaser>div:last-child>p:not(.eyebrow){color:var(--muted);max-width:360px}.question-layout{display:grid;grid-template-columns:.85fr 1.15fr;gap:9%}.question-layout .section-head{margin-bottom:0}.question-layout .section-head h2{font-size:38px}.faq-list{border-top:1px solid #c3cec2}.faq-list details{border-bottom:1px solid #c3cec2}.faq-list summary{list-style:none;display:flex;justify-content:space-between;align-items:center;gap:20px;cursor:pointer;font-size:14px;padding:23px 0}.faq-list summary::-webkit-details-marker{display:none}.faq-list summary i{width:15px;height:15px;position:relative;flex-shrink:0}.faq-list summary i:before,.faq-list summary i:after{content:'';position:absolute;background:var(--ink);height:1px;width:13px;top:7px;left:1px}.faq-list summary i:after{transform:rotate(90deg)}.faq-list details[open] summary i:after{transform:rotate(0)}.faq-list details>div{padding:0 30px 22px 0}.faq-list p{font-size:13px;line-height:2;color:var(--muted);margin:0}
.footer{background:var(--deep);color:#f3f4ec}.footer-contact{padding-block:90px;display:flex;justify-content:space-between;align-items:center;gap:50px;border-bottom:1px solid #ffffff2b}.footer .eyebrow{color:#b7c5b5}.footer-contact p:not(.eyebrow){font-size:14px;color:#d0d9cb;margin:22px 0 0}.footer-actions{width:300px;max-width:100%;display:flex;flex-direction:column;align-items:center}.footer-actions .button{background:var(--paper);color:var(--deep);width:100%;border-color:var(--paper);margin-bottom:25px}.telephone{font-size:24px;letter-spacing:.07em}.footer-actions small{color:#bccaba;font-size:11px;margin-top:2px}.footer-bottom{display:grid;grid-template-columns:96px 1fr 1fr auto;gap:42px;align-items:center;padding-block:46px}.footer-logo{display:block;width:96px;background:var(--paper);padding:6px}.footer-logo img{mix-blend-mode:multiply}.footer-bottom p{font-size:11px;margin:4px 0;color:#bccaba}.footer-bottom p:first-child{color:#f3f4ec;font-size:13px}.footer-bottom nav{display:grid;grid-template-columns:1fr 1fr;gap:9px 24px;font-size:11px;color:#d0d9cb}.footer-bottom small{font-size:10px;color:#b8c8b7;align-self:end}
.page-intro{padding-block:80px 65px}.page-intro .eyebrow{margin-bottom:18px}.page-intro h1{font-size:clamp(42px,5.3vw,70px);line-height:1.5;letter-spacing:.045em;margin:0 0 22px}.lead{color:var(--muted);max-width:720px;font-size:15px;line-height:2.2;margin:0}.wide-image{height:min(45vw,540px);overflow:hidden}.wide-image img{height:100%;object-fit:cover}.editorial{display:grid;grid-template-columns:1fr 1fr;gap:80px}.prose{max-width:590px;line-height:2.2;color:var(--muted);padding-top:42px}.prose p{margin:0 0 26px}.prose h3{color:var(--ink);font-size:23px;margin-top:8px}.stage{display:grid;grid-template-columns:1.1fr .9fr;gap:9%;align-items:center;margin-top:70px}.stage.reverse .stage-image{order:2}.stage-image{height:390px}.stage-image img{height:100%;object-fit:cover}.stage-text h3{font-size:31px;line-height:1.65;margin-bottom:24px}.stage-text p:not(.eyebrow){color:var(--muted);font-size:14px}.stage-text .eyebrow{margin-bottom:15px}.condition-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:30px}.condition-grid article{border-top:1px solid #b9c8b7;padding-top:22px}.condition-grid article>span{font-size:11px;color:var(--muted);letter-spacing:.15em}.condition-grid h3{font-size:25px;margin:20px 0 14px}.condition-grid p{font-size:13px;line-height:2;color:var(--muted);margin:0}.split-links{display:grid;grid-template-columns:1fr 1fr;gap:70px;align-items:center}.split-links .section-head{margin-bottom:20px}.split-links img{aspect-ratio:1.2;object-fit:cover}.works-list{padding-top:0}.filter-row{display:flex;flex-wrap:wrap;gap:11px}.filter{background:transparent;border:1px solid #aabaaa;padding:10px 18px;min-height:44px;font-size:12px}.filter.active,.filter:hover{background:var(--forest);color:white}.filter-result{font-size:11px;color:var(--muted);margin:20px 0 33px}.cards-grid>[hidden]{display:none}
.tree-intro{display:grid;grid-template-columns:1.1fr .9fr;gap:8%;align-items:center}.tree-intro img{aspect-ratio:1.25;object-fit:cover}.tree-intro h2{font-size:36px;margin-bottom:25px}.tree-intro p{color:var(--muted);font-size:14px}.tree-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:50px 28px}.tree-photo{aspect-ratio:1.4;overflow:hidden}.tree-photo img{height:100%;object-fit:cover}.tree-grid .eyebrow{margin:20px 0 9px;font-size:10px;letter-spacing:.08em}.tree-grid h2{font-size:26px;margin-bottom:13px}.tree-grid article>p:last-child{font-size:13px;color:var(--muted);margin:0}.note{font-size:12px;color:var(--muted);margin-top:40px}.message{display:grid;grid-template-columns:1fr 1.08fr;gap:8%;align-items:start;padding-bottom:30px}.message-photo{position:sticky;top:35px}.message-photo img{aspect-ratio:4/5;object-fit:cover;object-position:66% center}.message-photo>p{font-size:10px;color:var(--muted);margin-top:12px}.message-text h2{font-size:36px;margin-bottom:34px}.message-text>p:not(.eyebrow):not(.signature){font-size:14px;line-height:2.25;color:#4c5f51;margin-bottom:27px}.signature{display:flex;flex-direction:column;align-items:flex-end;gap:9px;font-size:23px;font-family:var(--serif);margin-top:34px}.signature small{font:11px var(--sans)}.nursery{display:grid;grid-template-columns:1.1fr .9fr;gap:8%;align-items:center}.nursery img{aspect-ratio:1.4;object-fit:cover}.nursery h2{font-size:36px;margin-bottom:24px}.nursery>div:last-child>p:not(.eyebrow){font-size:14px;color:var(--muted)}.profile dl{max-width:900px;margin:0}.profile dl>div{display:grid;grid-template-columns:170px 1fr;border-top:1px solid #c2cebf;padding:23px 0}.profile dl>div:last-child{border-bottom:1px solid #c2cebf}.profile dt{font-size:12px;color:var(--muted)}.profile dd{margin:0;font-size:14px;overflow-wrap:anywhere}.profile dd a{text-decoration:underline;text-underline-offset:4px}
.contact-layout{padding-top:0;display:grid;grid-template-columns:1fr 1fr;gap:8%;align-items:center}.contact-image{height:550px}.contact-image img{height:100%;object-fit:cover;object-position:40% center}.contact-options h2{font-size:38px;margin-bottom:22px}.contact-options>p:not(.eyebrow){font-size:14px;color:var(--muted)}.contact-options>.button{margin-top:12px;min-width:270px}.contact-detail{font-size:12px!important;margin:18px 0 10px}.contact-detail a{text-decoration:underline;text-underline-offset:4px}.copy-email{border:0;border-bottom:1px solid var(--line);background:none;font-size:12px;padding:10px 0;min-height:44px}.contact-options #copy-status{font-size:11px;min-height:20px;margin:5px 0}.contact-phone{border-top:1px solid var(--line);padding-top:20px;display:flex;flex-direction:column;align-items:start}.contact-phone small{font-size:11px;color:var(--muted)}.contact-phone a{font-size:25px;letter-spacing:.04em;margin-block:6px}.contact-phone p{font-size:11px;margin:0}
.back-link{display:inline-block;font-size:12px;margin-bottom:40px;border-bottom:1px solid var(--line);padding-bottom:8px}.case-intro h1{font-size:clamp(35px,4.3vw,58px)}.case-intro .eyebrow{letter-spacing:.04em}.case-gallery{display:grid;grid-template-columns:1fr 1fr;gap:42px 26px;align-items:start}.case-gallery figure{margin:0;min-width:0}.case-gallery figure:first-child{grid-column:1/-1}.case-gallery figure:first-child>a{background:#e8eae1;display:block}.case-gallery figure:first-child img{max-height:720px;object-fit:contain;width:100%;height:auto}.case-gallery a{position:relative;display:block}.case-gallery img{max-height:620px;object-fit:contain}.case-gallery figcaption{font-size:11px;line-height:1.7;color:var(--muted);margin-top:12px}.zoom-label{position:absolute;bottom:14px;right:14px;background:#f6f5eff0;color:var(--ink);width:32px;height:32px;display:grid;place-items:center;font-size:21px;border-radius:50%}.case-outro{max-width:760px;text-align:center}.case-outro h2{font-size:35px;margin-bottom:25px}.case-outro>p:not(.eyebrow){color:var(--muted);font-size:14px}.related .work-card>p{display:none}dialog{border:0;background:#13231ef5;color:white;max-width:100vw;max-height:100svh;width:100vw;height:100svh;padding:65px 24px 20px;margin:0}dialog::backdrop{background:#14271cf5}dialog[open]{display:flex;flex-direction:column;align-items:center;justify-content:center}dialog>img{width:100%;height:calc(100svh - 180px);object-fit:contain;min-height:0}dialog>p{font-size:12px;margin:15px 0 8px;text-align:center}.dialog-close{position:absolute;right:24px;top:14px;background:none;border:1px solid #ffffff70;color:white;min-height:44px;padding:8px 16px;font-size:13px}.gallery-controls{display:flex;align-items:center;gap:30px}.gallery-controls button{min-width:44px;min-height:44px;background:none;color:white;border:1px solid #ffffff70}.gallery-controls span{font-size:12px}
@media(max-width:1050px){.wrap{width:calc(100% - 72px)}.desktop-nav{gap:18px;font-size:11px}.brand{width:140px}.desktop-nav .button{padding-inline:13px;gap:15px}.section{padding-block:90px}.footer-bottom{gap:25px}.condition-grid{grid-template-columns:1fr 1fr;row-gap:35px}.hero-scroll{left:36px}}
@media(max-width:760px){body{font-size:14px}.wrap{width:calc(100% - 44px);max-width:560px}.section{padding-block:70px}.site-header{height:78px;padding-inline:19px}.brand{width:132px}.desktop-nav{display:none}.menu-toggle{display:flex;flex-direction:column;gap:7px;align-items:center;justify-content:center;width:46px;height:46px;background:none;border:0}.menu-toggle span{width:25px;height:1px;background:var(--ink);transition:transform .2s}.menu-toggle[aria-expanded=true] span:first-child{transform:translateY(4px) rotate(45deg)}.menu-toggle[aria-expanded=true] span:last-child{transform:translateY(-4px) rotate(-45deg)}.mobile-nav:not([hidden]){display:flex;position:absolute;top:78px;left:0;right:0;background:var(--paper);padding:16px 24px 26px;z-index:40;flex-direction:column;box-shadow:0 18px 22px #172c2320;max-height:calc(100svh - 78px);overflow-y:auto}.mobile-nav>a:not(.button){padding:12px 0;border-bottom:1px solid var(--line);min-height:48px}.mobile-nav>a[aria-current=page]{font-weight:700}.mobile-nav .button{margin-top:21px}.hero{height:calc(100svh - 78px);min-height:565px;max-height:780px}.hero-image img{object-position:58% center}.hero-shade{background:linear-gradient(0deg,#0c251edb 0%,#14312240 62%,#1c3a2810 100%)}.hero-copy{position:absolute;left:24px;right:24px;bottom:79px;top:auto;transform:none;width:auto;max-width:none}.hero-copy .eyebrow{font-size:9px;margin-bottom:21px}.hero h1{font-size:clamp(48px,13vw,70px);line-height:1.48;letter-spacing:.07em;margin:0 0 20px}.hero-copy>p:not(.eyebrow){font-size:12px;line-height:2.15;letter-spacing:0;margin-bottom:15px}.hero-copy .text-link{font-size:12px}.hero-side{display:none}.hero-scroll{left:24px;bottom:24px;font-size:8px}.eyebrow{font-size:9px;margin-bottom:18px}h2{font-size:33px;line-height:1.65;letter-spacing:.025em}h3{font-size:24px}.idea{display:block}.idea-copy{margin-top:30px}.idea-copy .intro-sentence{font-size:22px;line-height:1.85}.idea-copy>p:not(.intro-sentence){font-size:14px;line-height:2}.section-head{margin-bottom:34px}.section-head.row{display:block}.section-head.row .text-link{margin-top:20px}.section-head>div>p:not(.eyebrow){font-size:13px;line-height:2;margin-top:19px}.approach>.section-head>div{display:block}.approach-grid{display:block;margin-bottom:0}.approach article{margin-bottom:34px}.step-photo{aspect-ratio:1.55}.step-number{margin:19px 0 9px;font-size:9px}.approach article h3{font-size:24px;margin-bottom:9px}.approach article p:last-child{font-size:13px;margin-bottom:0}.selected-grid,.cards-grid{grid-template-columns:1fr;gap:39px}.work-image{aspect-ratio:1.4}.work-meta{font-size:10px;margin-top:15px}.work-card h3{font-size:23px;margin-bottom:9px}.work-card>p{font-size:12px;line-height:1.95}.slash{padding-inline:3px}.tree-teaser{display:block}.teaser-image{height:320px;margin-bottom:33px}.tree-teaser h2{margin-bottom:20px}.tree-teaser>div:last-child>p:not(.eyebrow){font-size:13px}.question-layout{display:block}.question-layout .section-head{margin-bottom:32px}.question-layout .section-head h2{font-size:32px}.faq-list summary{font-size:13px;line-height:1.8;padding:21px 0;gap:18px;min-height:68px}.faq-list details>div{padding-right:15px}.faq-list p{font-size:12px;line-height:2}.footer-contact{display:block;padding-block:65px}.footer-contact h2{font-size:36px}.footer-contact p:not(.eyebrow){font-size:12px;line-height:2;margin-top:20px}.footer-actions{width:100%;align-items:start;margin-top:29px}.footer-actions .button{max-width:350px;margin-bottom:25px}.telephone{font-size:25px}.footer-bottom{grid-template-columns:84px 1fr;gap:28px 24px;padding-block:35px}.footer-logo{width:84px}.footer-bottom nav{grid-column:1/-1;gap:13px 24px}.footer-bottom small{grid-column:1/-1}.footer-bottom p{font-size:10px;overflow-wrap:anywhere}
.page-intro{padding-block:49px 40px}.page-intro h1{font-size:39px;margin-bottom:19px;line-height:1.5}.lead{font-size:13px;line-height:2.05}.wide-image{height:280px}.wide-image img{object-position:55% center}.editorial{display:block}.prose{padding-top:25px;font-size:14px;line-height:2.2}.prose p{margin-bottom:24px}.stage{display:block;margin-top:45px}.stage-image{height:255px}.stage-text{margin-top:23px}.stage-text h3{font-size:26px;margin-bottom:15px}.stage-text p:not(.eyebrow){font-size:13px;margin:0}.stage-text .eyebrow{font-size:9px;margin-bottom:13px}.condition-grid{gap:28px 19px}.condition-grid article{padding-top:17px}.condition-grid h3{font-size:21px;margin:13px 0 12px}.condition-grid p{font-size:12px;line-height:1.9}.split-links{display:flex;flex-direction:column-reverse;gap:30px}.split-links>div{width:100%}.split-links .section-head{margin-bottom:13px}.split-links img{aspect-ratio:1.35}.works-list{padding-top:0}.filter-row{gap:9px}.filter{font-size:11px;padding:9px 13px}.filter-result{margin:18px 0 27px}.tree-intro{display:block}.tree-intro>div:last-child{margin-top:30px}.tree-intro h2{font-size:30px;margin-bottom:18px}.tree-intro p{font-size:13px}.tree-grid{grid-template-columns:1fr 1fr;gap:33px 18px}.tree-grid h2{font-size:21px}.tree-grid .eyebrow{font-size:9px;margin:15px 0 9px}.tree-grid article>p:last-child{font-size:12px;line-height:1.95}.tree-photo{aspect-ratio:1}.note{font-size:11px;line-height:1.9}.message{display:block}.message-photo{position:static;margin-bottom:36px}.message-photo img{aspect-ratio:1.18;object-position:65% center}.message-photo>p{font-size:9px}.message-text h2{font-size:30px;margin-bottom:27px}.message-text>p:not(.eyebrow):not(.signature){font-size:14px;line-height:2.2}.signature{font-size:23px}.nursery{display:block;padding-top:50px}.nursery>div:last-child{margin-top:30px}.nursery h2{font-size:30px;margin-bottom:20px}.nursery>div:last-child>p:not(.eyebrow){font-size:13px}.profile dl>div{grid-template-columns:80px 1fr;gap:13px;padding:20px 0}.profile dt{font-size:11px}.profile dd{font-size:12px;line-height:1.95}.contact-layout{display:block;padding-top:0}.contact-image{height:290px;margin-bottom:35px}.contact-image img{object-position:50% center}.contact-options h2{font-size:32px}.contact-options>p:not(.eyebrow){font-size:13px}.contact-options>.button{min-width:0;width:100%}.contact-phone a{font-size:25px}.back-link{margin-bottom:30px;font-size:11px}.case-intro h1{font-size:32px;line-height:1.55}.case-intro .eyebrow{font-size:10px;letter-spacing:.02em}.case-gallery{display:block}.case-gallery figure{margin-bottom:28px}.case-gallery figure:first-child img,.case-gallery img{max-height:none;object-fit:contain;width:100%;height:auto}.case-gallery figcaption{font-size:10px;margin-top:9px}.case-outro{text-align:left}.case-outro h2{font-size:28px;line-height:1.65}.case-outro>p:not(.eyebrow){font-size:13px}.related{grid-template-columns:1fr 1fr;gap:17px}.related .work-image{aspect-ratio:1}.related .work-meta{font-size:9px}.related .work-meta .slash{display:none}.related .work-meta>span:first-child{max-width:120px}.related .work-card h3{font-size:18px}.related .work-meta>span:last-child{display:none}dialog{padding:63px 12px 15px}.dialog-close{right:14px}.gallery-controls{gap:26px}}
@media(max-width:360px){.wrap{width:calc(100% - 36px)}.hero-copy{left:20px;right:20px}.hero h1{font-size:45px}.hero-copy>p:not(.eyebrow){font-size:11px}.hero{min-height:550px}.condition-grid,.tree-grid{gap:30px 16px}.condition-grid h3,.tree-grid h2{font-size:19px}.page-intro h1{font-size:35px}.case-intro h1{font-size:29px}.message-text h2{font-size:28px}}
.case-gallery figure:first-child img.photo-IMG_2190{width:min(100%,680px);margin-inline:auto;aspect-ratio:1;object-fit:cover;object-position:50% 8%;height:auto;max-height:none}
@media(max-width:760px){.work-card>p,.faq-list p,.condition-grid p,.tree-grid article>p:last-child{font-size:13px}.case-gallery .photo-IMG_2190{aspect-ratio:1;object-fit:cover;object-position:50% 8%;height:auto}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important;animation:none!important}}

/* Match all process frames; crop the high-resolution source around both installers.
   Crop coordinates in the 2048 x 1366 source: x=670, y=600, width=730, height=547.5. */
.forest-stages .stage{grid-template-columns:1fr 1fr}
.forest-stages .stage-image{position:relative;overflow:hidden;height:auto;aspect-ratio:4/3}
.stage-image > .photo-stage-select{object-position:60% center}
.stage-image > .photo-stage-sekou-hq{position:absolute;width:280.548%;max-width:none;height:auto;left:-91.781%;top:-109.589%}
/* Shift the home-page frame toward the work while preserving its scale and height. */
.step-photo .photo-proc-sekou{object-position:left center}
.work-scene picture{display:block;height:100%}
/* Mobile crop from the full original: x=300, y=440, width=1080, height=696.774.
   Preserve the 1.55 frame and the tree's full height; leave the tank outside. */
@media(max-width:760px){
  .step-photo.work-scene{position:relative}
  .work-scene .photo-proc-sekou{position:absolute;width:189.62963%;max-width:none;height:auto;aspect-ratio:2048/1366;left:-27.77778%;top:-63.148148%}
}


/* ── スマホの改行（2026-10-02 Jingi 追記）────────────────────────
   <wbr> を置いた見出しは、そこでだけ折る。keep-all 単体では最悪の位置で割れる。
   投稿のタイトルは印を置けないので、幅に追従する文字サイズで1行に収める。 */
h1, h2, h3 { word-break: keep-all; overflow-wrap: break-word; }

/* text-wrap: pretty は使わない（2026-10-03 に入れて、同日外した）。
   最終行が「す。」だけになる泣き別れは消えたが、Safari は段落全体の行の長さを均すので、
   下の「言葉単位で折る」と組み合わさると行が早めに切れ、右側が空いた行が7割に増えた
   （375px・本文105行中73行が幅85%未満）。言葉単位で折れば「ます。」は前と離れないので、
   pretty が無くても泣き別れは出ない（外して26%・泣き別れ0を実測）。 */
/* ひとかたまりで折り返させたい語（本文側で <span class="u-nobr"> を付ける） */
.u-nobr { white-space: nowrap; }

/* スマホ本文の改行は、参考サイトと同じ「文字で折る」（2026-10-03 河添さん判断・3案からA）。
   「言葉で折る」（auto-phrase / BudouX）も試したが、単語は割れない代わりに行の右が空き、
   Safari で読みにくかった。最後の行が「す。」だけになるのは、functions.php に埋め込んだ
   小さなスクリプト（impl/wp/linebreak/）がその段落だけ直す。 */

/* スマホだけで効かせる改行（見出しの <br class="u-brsp">）と、
   改行スクリプトが文の区切りに入れる改行（br.yg-sb）は、PCでは出さない。2026-10-05 */
@media (min-width: 761px) {
  br.u-brsp, br.yg-sb { display: none; }
}

/* グリッドの列が中身の長さで押し広げられないようにする（2026-10-05 木の図鑑のスマホ2列がずれた） */
.tree-grid > *, .approach-grid > *, .condition-grid > *, .works-grid > * { min-width: 0; }

/* スクロールで浮かび上がる動き（2026-10-05 追加・functions.php の reveal スクリプトと対）。
   <html class="yg-anim"> のときだけ隠す。JS が動かなければ最初から見える */
.yg-anim .yg-rv {
  opacity: 0; transform: translateY(18px);
  transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--yg-d, 0s);
}
.yg-anim .yg-rv.is-shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .yg-anim .yg-rv { opacity: 1; transform: none; transition: none; }
}

/* 「木と人が過ごす場所」の下の写真（2026-10-05 追加）。ほかの写真と同じく角丸・影なし */
.life-image { margin: clamp(32px, 5vw, 64px) 0 0; }
.life-image img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }

/* 施工事例の題名がスマホで「エアポートホテル熊 / 本」と1文字だけ落ちる（375px・参考サイトも同じ）。
   題名は1つの言葉なので言葉単位の改行では割れ目が無い。文字を少しだけ縮めて1行に収める。
   参考は 32px（360px以下は29px）。ここでは「32px か画面幅の8% の小さい方」＝375pxで30px・390pxで31px。 */
@media (max-width: 760px) {
  .case-intro h1 { font-size: min(32px, 8vw); }
}
/* 画面の広いときは参考サイトの寸法のまま。狭いときだけ縮める
   （2026-10-02 修正。前はPCでも44pxに縮めていて、参考の58pxと違っていた） */
/* 2026-10-03: スマホでカード題名と事例見出しを縮める指定は外した。
   参考サイトの値（カード 23px・事例見出し 32px）でも全件1行に収まり、
   縮めた分だけ参考サイトとずれていた（390px幅で画素差29%）。 */

/* お問い合わせフォーム（Contact Form 7）。参考サイトに無いので、同じ手触りで足した。
   入力欄は16px（iPhoneで拡大されない最小値）。ボタンは .button と同じ見た目。 */
.contact-form .wpcf7 { margin-top: 2rem; max-width: 46rem; }
.contact-form .wpcf7 p { margin: 0 0 1.4rem; }
.contact-form label { display: block; font-size: .82rem; letter-spacing: .08em; margin-bottom: .5rem; }
.contact-form input[type=text], .contact-form input[type=email], .contact-form input[type=tel],
.contact-form select, .contact-form textarea {
  width: 100%; font: inherit; font-size: max(16px, 1rem); line-height: 1.7;
  padding: .85rem 1rem; border: 1px solid rgba(23, 52, 33, .28); border-radius: 2px;
  background: #fff; color: inherit;
}
.contact-form textarea { min-height: 11rem; resize: vertical; }
.contact-form input:focus-visible, .contact-form textarea:focus-visible, .contact-form select:focus-visible {
  outline: 2px solid #405548; outline-offset: 2px;
}
.contact-form input[type=submit] {
  font: inherit; letter-spacing: .08em; cursor: pointer; min-height: 48px;
  padding: .9rem 2.4rem; border: 0; border-radius: 2px; background: #2f4030; color: #fff;
}
.contact-form input[type=submit]:hover { background: #405548; }
.contact-form .wpcf7-not-valid-tip { color: #7b3f3f; font-size: .85rem; }
.contact-form .wpcf7-response-output { margin: 1.5rem 0 0; padding: 1rem; border: 1px solid rgba(23,52,33,.3); }
