/*
Theme Name: QTW — QUIET TOKYO WORKS
Author: QUIET TOKYO WORKS
Description: QTW公式サイト。カスタマイザーで素材・文章・リンク・赤文字指定を編集できます。
Version: 1.0.4
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: qtw
*/
:root{color-scheme:light;--black:#000;--white:#fff}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#000;color:#171717;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif}a{color:inherit;text-decoration:none}button,input{font:inherit}button{cursor:pointer}button,a,input{-webkit-tap-highlight-color:transparent}button{border:0;background:none;color:inherit}a:focus-visible,button:focus-visible,input:focus-visible{outline:2px solid currentColor;outline-offset:7px}button svg,a svg{width:32px;height:32px;fill:none;stroke:currentColor;stroke-width:1.4}.symbols{position:absolute;width:0;height:0;overflow:hidden}.sr-only,.skip{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.skip:focus{position:fixed;z-index:100;width:auto;height:auto;clip-path:none;padding:20px;background:white;color:black}h1,h2,p{margin:0}.hero{height:100svh;min-height:640px;position:relative;isolation:isolate;overflow:hidden;color:white;background:#242424}.hero video{width:100%;height:100%;object-fit:cover;position:absolute;inset:0;z-index:-3;filter:grayscale(1)}.hero-shade{position:absolute;inset:0;background:linear-gradient(transparent 35%,rgba(0,0,0,.32));z-index:-2}.hero-actions{position:absolute;right:2.6%;top:4%;display:flex;gap:32px;align-items:center}.hero-actions a,.hero-actions button{display:grid;place-items:center;width:44px;height:44px;padding:5px}.hero-logo{position:absolute;top:12.5%;left:50%;transform:translateX(-50%);width:24%;max-width:430px}.logo-qtw{display:block;position:relative;aspect-ratio:2.85;overflow:hidden;mix-blend-mode:screen}.logo-qtw img{position:absolute;max-width:none;width:114.5%;height:auto;left:-7.8%;top:-110.4%}.hero-logo{mix-blend-mode:screen}.hero-copy{position:absolute;bottom:8%;left:50%;transform:translateX(-50%);width:70%;text-align:center}.concept-lead{font-family:Georgia,"Times New Roman",serif;font-size:clamp(17px,1.65vw,28px);letter-spacing:.1em;margin-bottom:24px}.concept-mark{display:block;width:73%;margin:0 auto;aspect-ratio:29.3;position:relative;overflow:hidden;mix-blend-mode:screen}.concept-mark img{position:absolute;width:120.2%;height:auto;max-width:none;left:-7%;top:-457%}.hero-jp{font-family:"Yu Mincho",YuMincho,"Hiragino Mincho ProN",serif;font-size:clamp(16px,1.55vw,26px);letter-spacing:.15em;margin:30px 0 24px}.cta{display:flex;align-items:center;justify-content:center;width:clamp(240px,21vw,380px);height:64px;letter-spacing:.07em;font-size:18px;transition:background .2s,color .2s}.hero-cta{width:52%;height:88px;border:1px solid white;margin:auto;font:clamp(17px,1.3vw,23px) Georgia,serif;letter-spacing:.27em;gap:20px}.hero-cta:hover{background:#fff;color:#000}.video-toggle{position:absolute;left:22px;bottom:22px;color:white;width:42px;height:42px;font-size:16px;opacity:.75}.story{height:auto;background:white;position:relative}.story-stage{height:100svh;min-height:650px;position:relative;top:0;display:grid;grid-template-columns:44% 56%;overflow:hidden}.story-photo{height:100%;background:white;overflow:hidden}.story-photo img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 55%}.story-body{padding:clamp(60px,9vh,110px) 5.8vw 50px 6vw;align-self:center}.eyebrow{font-size:11px;font-weight:400;letter-spacing:.32em;color:#777;margin-bottom:55px}.story-text{font-size:clamp(25px,2.8vw,48px);line-height:1.4;letter-spacing:-.04em}.story-text p+p{margin-top:1.15em}.reveal-word{position:relative;display:inline-block;color:#c8c8c8}.reveal-word::after{content:attr(data-word);position:absolute;inset:0;color:#171717;clip-path:inset(0 calc(100% - var(--reveal,0%)) 0 0);white-space:nowrap}.collection{position:relative;isolation:isolate;height:100svh;min-height:620px;color:white;overflow:hidden}.collection-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:72% center;z-index:-1}.collection-heading{position:absolute;left:5.7%;right:3.7%;top:47%;display:flex;align-items:center;justify-content:space-between}.wordmark{display:block;position:relative;aspect-ratio:13.7;overflow:hidden;mix-blend-mode:screen}.wordmark img{position:absolute;width:124.5%;max-width:none;height:auto;left:-12.7%;top:-493%}.collection-heading .wordmark{width:40%}.collection-heading p{font-size:clamp(22px,2.3vw,40px);font-weight:300;letter-spacing:.02em}.shop-cta{position:absolute;bottom:7%;left:50%;transform:translateX(-50%);background:white;color:#111}.shop-cta:hover{background:#111;color:white}.discover{height:100svh;min-height:650px;position:relative;isolation:isolate;overflow:hidden;color:white}.discover>img{position:absolute;inset:0;z-index:-1;width:100%;height:100%;object-fit:cover}.discover h2{position:absolute;inset:0;font-family:Didot,"Bodoni 72","Times New Roman",serif;font-weight:400;line-height:.8;text-align:center;display:flex;flex-direction:column;justify-content:space-between;padding:4.8vh 1.5vw 3.7vh}.discover h2 span:first-child{font-size:23vw;letter-spacing:-.045em}.discover h2 span:last-child{font-size:20vw;letter-spacing:-.05em}.discover-cta{position:absolute;bottom:10.3%;left:50%;transform:translateX(-50%);background:black;color:white}.discover-cta:hover{background:white;color:black}.comparison{height:100svh;min-height:600px;position:relative;overflow:hidden;background:white;isolation:isolate;--split:50%}.compare-panel{position:absolute;inset:0;overflow:hidden}.compare-panel img{position:absolute;width:50%;height:100%;object-fit:cover;object-position:center 59%}.white-panel{background:#fff}.white-panel img{left:0}.black-panel{background:#000;color:white;clip-path:inset(0 0 0 var(--split))}.black-panel img{right:0}.compare-top,.compare-bottom{position:absolute;font-size:12px;letter-spacing:.35em;line-height:1.6;z-index:1}.compare-top{top:32px}.compare-bottom{bottom:35px}.left{left:2.4%}.right{right:2.4%}.difference-copy{position:absolute;bottom:8%;left:0;width:100%;text-align:center;font-size:23px;letter-spacing:.12em;color:white;mix-blend-mode:difference;pointer-events:none;z-index:4}.slider-line{position:absolute;top:0;bottom:0;left:var(--split);width:1px;background:#a0a0a0;pointer-events:none;z-index:5}.slider-handle{position:absolute;top:50%;left:var(--split);transform:translate(-50%,-50%);width:56px;height:56px;display:flex;align-items:center;justify-content:center;gap:10px;border:1.5px solid white;border-radius:50%;color:white;mix-blend-mode:difference;font-size:29px;pointer-events:none;z-index:6}#comparison-range{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:ew-resize;z-index:7;touch-action:pan-y}.comparison:focus-within .slider-handle{outline:3px solid white;outline-offset:6px}footer{background:black;color:white;padding:150px 2% 65px}.footer-row{display:flex;align-items:center;justify-content:space-between;margin:0 1.2% 65px}.footer-row nav{display:flex;align-items:center;gap:clamp(25px,5vw,95px)}.footer-row nav a,.footer-row nav button{font-size:12px;letter-spacing:.3em;padding:10px 0}.footer-row nav a:hover,.footer-row nav button:hover{opacity:.6}.footer-social{display:flex;align-items:center;gap:25px}.footer-social button,.footer-social a{padding:6px;display:flex}.divider{height:25px;width:1px;background:#ddd}.footer-wordmark{width:100%}dialog{border:1px solid #888;padding:65px 50px;max-width:520px;width:calc(100% - 40px);background:#fff;color:#171717}dialog::backdrop{background:#0009}dialog h2{font-size:30px;font-weight:400;letter-spacing:.15em;margin-bottom:30px}dialog p{font-size:14px;line-height:1.9}dialog .eyebrow{font-size:10px;margin-bottom:30px}dialog .dialog-note{margin-top:15px;color:#666}dialog .cta{background:#000;color:white;margin-top:25px;width:100%;font-size:14px}.dialog-close{position:absolute;right:15px;top:10px;width:40px;height:40px;font-size:30px;font-weight:200}
@media(min-width:1600px){.story-body{padding-right:4vw}.story-text{font-size:2.7vw}}
@media(max-width:800px){.hero{min-height:600px}.hero video{object-position:58% center}.hero-actions{top:20px;right:18px;gap:15px}.hero-actions svg{width:26px;height:26px}.hero-logo{width:47%;top:17%}.hero-copy{width:90%;bottom:11%}.concept-lead{font-size:16px;margin-bottom:27px}.concept-mark{width:100%}.hero-jp{font-size:15px;letter-spacing:.1em;margin:28px 0}.hero-cta{height:60px;width:85%;font-size:16px}.story{height:auto}.story-stage{min-height:700px;grid-template-columns:1fr;grid-template-rows:36% 64%}.story-photo img{object-fit:contain;object-position:center;transform:scale(1.35)}.story-body{padding:25px 7vw 30px;align-self:center}.eyebrow{font-size:9px;margin-bottom:26px}.story-text{font-size:clamp(21px,4.6vw,32px);line-height:1.45;letter-spacing:-.035em}.story-text p+p{margin-top:.9em}.collection{height:100svh;min-height:650px}.collection-photo{object-position:76% center}.collection-heading{top:10%;left:7%;right:7%;display:block}.collection-heading .wordmark{width:88%}.collection-heading p{font-size:24px;margin-top:25px}.shop-cta{height:56px;bottom:7%;width:66%}.discover{height:85svh;min-height:570px}.discover>img{object-position:50% center}.discover h2{padding:5vh 2vw 12vh}.discover h2 span:first-child{font-size:30vw}.discover h2 span:last-child{font-size:24vw}.discover-cta{bottom:7%;height:54px;width:60%;font-size:15px}.comparison{height:85svh;min-height:560px}.compare-panel img{object-fit:contain;width:78%;height:90%;top:4%}.white-panel img{left:-14%}.black-panel img{right:-14%}.compare-top,.compare-bottom{font-size:8px;letter-spacing:.16em;max-width:42%}.compare-top{top:22px}.compare-bottom{bottom:25px}.left{left:5%}.right{right:5%;text-align:right}.difference-copy{font-size:16px;letter-spacing:.06em;bottom:13%}.slider-handle{width:48px;height:48px}.footer-row{margin-bottom:50px;gap:25px;align-items:flex-start}.footer-row nav{display:grid;grid-template-columns:1fr 1fr;gap:17px 25px}.footer-row nav a,.footer-row nav button{font-size:9px;letter-spacing:.2em;text-align:left}.footer-social{gap:10px}.footer-social svg{width:23px;height:23px}.divider{height:20px}footer{padding:75px 5% 45px}.footer-wordmark{width:100%}.video-toggle{left:12px;bottom:12px}dialog{padding:55px 25px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important}.reveal-word{color:#171717}.reveal-word::after{clip-path:none}.story{height:auto}.story-stage{position:relative}}
/* Keep the supplied white artwork transparent over the film. */
.hero-copy{mix-blend-mode:screen}.concept-mark img{top:-540%}
.concept-mark img{width:113.5%;left:-6.8%;top:-510%}.wordmark{aspect-ratio:13}.wordmark img{top:-468%}
.reveal-word::after{content:none}.reveal-ink{position:absolute;inset:0;color:#171717;clip-path:inset(0 calc(100% - var(--reveal,0%)) 0 0);white-space:nowrap}
@media(prefers-reduced-motion:reduce){.reveal-ink{clip-path:none}}
.white-panel .comparison-twin{left:auto;right:0}.black-panel .comparison-twin{right:auto;left:0}
@media(max-width:800px){.white-panel .comparison-twin{right:-14%}.black-panel .comparison-twin{left:-14%}}
@media(max-width:800px){.collection{height:85svh;min-height:650px;background:#898989}.collection-photo{top:auto;bottom:0;height:80%;object-position:85% center}.collection-heading{top:6%}.collection-heading p{margin-top:18px;font-size:21px}.shop-cta{bottom:5%}}
@media(max-width:800px){.compare-panel img{width:50%;height:100%;top:0;object-fit:contain;object-position:center}.white-panel img,.black-panel .comparison-twin{left:0;right:auto}.black-panel img,.white-panel .comparison-twin{right:0;left:auto}}

/* Revision 2: shared lettering, preserving CTA geometry and colours. */
:root{--campaign-font:Georgia,serif;--campaign-weight:400;--campaign-tracking:.27em;--jp-font:"Yu Mincho",YuMincho,"Hiragino Mincho ProN",serif;--jp-weight:400}
.hero-cta,.shop-cta,.discover-cta,.collection-heading p{font-family:var(--campaign-font);font-weight:var(--campaign-weight);letter-spacing:var(--campaign-tracking);text-transform:none}
.collection-heading p{max-width:30%;font-size:clamp(16px,1.35vw,24px);line-height:1.5;text-align:right}
.hero-jp,.difference-copy{font-family:var(--jp-font);font-weight:var(--jp-weight)}
.difference-copy{letter-spacing:4px}
@media(max-width:800px){.collection-heading p{max-width:100%;font-size:16px;text-align:left}}

/* Revision 3: only the five requested content and typography changes. */
.story-text{font-family:var(--campaign-font);font-weight:var(--campaign-weight);letter-spacing:.04em;font-size:clamp(24px,2.1vw,36px)}
.reveal-ink{font:inherit;letter-spacing:inherit}
.reveal-ink .story-accent{color:#C32026}
.collection-heading{flex-direction:column;align-items:flex-start}
.collection-heading p{max-width:40%;text-align:left;margin-top:24px}
.discover h2{bottom:calc(7% + 64px + 32px);padding:4vh 2vw 0;line-height:.95}
.discover h2 span:first-child{font-size:15vw;letter-spacing:-.045em}
.discover h2 span:last-child{font-size:22vw;letter-spacing:-.05em}
.discover-cta{bottom:7%}
@media(max-width:800px){
 .story-text{font-size:clamp(20px,4.6vw,28px)}
 .collection-heading p{max-width:100%;margin-top:18px}
 .discover h2{bottom:calc(7% + 54px + 28px);padding:5vh 2vw 0}
 .discover h2 span:first-child{font-size:15vw}
 .discover h2 span:last-child{font-size:24vw}
}

/* Final revision: retain the video pixels and accommodate the complete story. */
.hero video{filter:none}
.story-stage{height:auto;min-height:100svh;overflow:visible;align-items:start}
.story-photo{height:100svh;min-height:650px;align-self:center}
.story-body{align-self:start}
.story-text .reveal-ink{color:var(--story-ink,#171717)}
.story-text .reveal-ink .story-accent{color:#C32026}
@media(max-width:800px){
 .story-stage{grid-template-rows:auto auto}
 .story-photo{height:36svh;min-height:252px}
}

/* Subtle red glow follows the existing word reveal progress. */
.story-text .reveal-ink .story-accent{text-shadow:0 0 4px rgba(195,32,38,var(--glow-alpha,0)),0 0 8px rgba(195,32,38,var(--glow-alpha,0))}

/* Mobile campaign layout: desktop rules remain unchanged. */
@media(max-width:800px){
 .story-photo{width:100%;height:auto;min-height:0;display:flex;justify-content:center;align-items:center}
 .story-photo img{width:90%;height:auto;max-width:none;object-fit:contain;transform:none;margin-top:-40%;margin-bottom:-30%}
 .story-body{padding-top:12px}
 .story-body .eyebrow{margin-bottom:22px}
 .collection{height:clamp(560px,150vw,660px);min-height:0;background:#222}
 .collection-photo{inset:0;width:100%;height:100%;object-fit:cover;object-position:85% center}
 .collection-heading{top:12px;left:7%;right:7%;text-shadow:0 1px 5px #0005}
 .collection-heading p{margin-top:6px}
 .discover{height:auto;min-height:0;padding:40px 0 36px;display:flex;flex-direction:column;align-items:center}
 .discover h2{position:relative;inset:auto;width:100%;padding:0 1%;gap:16px;justify-content:flex-start;line-height:1.05}
 .discover h2 span{display:block;white-space:nowrap}
 .discover h2 span:first-child{font-size:17.3vw;letter-spacing:-.055em}
 .discover h2 span:last-child{font-size:30vw;letter-spacing:-.055em}
 .discover-cta{position:relative;inset:auto;transform:none;margin-top:28px;flex-shrink:0}
 .discover>img{object-position:center 56%}
}

/* Mobile revision 2: portrait film and matched DISCOVER type. */
@media(max-width:800px){
 .hero video{object-position:center}
 .discover{height:120vw;min-height:420px;max-height:960px;padding:32px 0}
 .discover h2{flex:1;min-height:0;justify-content:space-between;gap:20px}
 .discover h2 span:first-child,.discover h2 span:last-child{font-size:17.3vw}
 .discover-cta{margin-top:28px}
}

/* Form controls are scoped to the contact dialog. */
#contact-dialog{max-height:90svh;overflow-y:auto}
#contact-dialog .qtw-contact-form p{margin-bottom:18px}
#contact-dialog .qtw-contact-form input:not([type=checkbox]):not([type=radio]):not([type=submit]),#contact-dialog .qtw-contact-form textarea,#contact-dialog .qtw-contact-form select{width:100%;max-width:100%;border:1px solid #aaa;background:#fff;color:#171717;padding:10px;font:inherit}
#contact-dialog .qtw-contact-form input[type=submit]{background:#000;color:#fff;border:0;padding:14px 28px;cursor:pointer}
#contact-dialog .qtw-contact-form .wpcf7-response-output{margin:16px 0;padding:12px}
