/* Haguremon front page (method B, WordPress child theme version) v8
   Same rules as the standalone prototype style.css.
   Portfolio-grade pass: denser collage, ghost typography, marquee,
   parallax layers, count-up stats, dark contact climax.
   Original code written for this prototype. White / black / big serif,
   frameless layout, scattered collage, fixed frame header.
   v6: the collage scene starts below the fixed frame nav (top offset,
   taller on mobile where the nav wraps to two rows); hero characters
   reduced to the main Haguremon plus one small accent, floating via a
   CSS animation on an inner wrapper (.float-inner) so it never fights
   the GSAP / Parallax transforms on the outer .collage element; the
   dead floaty2 / floaty2pc keyframes are gone.
   v7: past 60px of scroll the fixed frame gets .is-scrolled (set
   by front.js) and the nav row - plus the bottom-right link pair -
   receives a thin translucent white band with backdrop blur, so
   content passing underneath no longer kills nav readability;
   the character float swings wider (-22px) with a brief hold at
   the top of the arc; the hero catch copy gets a soft white veil
   behind it so its first characters stay calm over the chips.
   v8: the float loses its top hold and becomes a plain -24px
   there-and-back swing on a 4.5s cycle (the hold made it read as
   static). Everything else is unchanged from v7.
   v9: three mobile / edge fixes only - the catch copy's second
   line no longer splits into two on phones (problem 2), the
   bottom-right link pair shrinks into a small translucent
   capsule on mobile so it presses on the text less (problem 3),
   and nothing else changes. Desktop rendering is untouched.
   v10: two last fixes only - a direct #contact arrival hides the
   pill pair from the first paint via an <html> class set by an
   inline head script (problem 1), and on mobile the black
   Contact button itself shrinks a step while the hero gains
   bottom room so the subtitle never sits under the pill
   (problem 2). Desktop rendering is untouched. */

:root{
  --ink:#111;
  --paper:#fff;
  --accent:#e60012;
  --gray:#6f6f6f;
  --cream:#f7f4ee;
  --line:#e5e1d8;
  --serif:"Hiragino Mincho ProN","Hiragino Mincho Pro","Yu Mincho","YuMincho","Noto Serif JP",serif;
  --sans:"Hiragino Kaku Gothic ProN","Hiragino Sans","Yu Gothic","YuGothic","Noto Sans JP",sans-serif;
  --display:"Arial Black","Hiragino Kaku Gothic ProN",sans-serif;
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  font-family:var(--sans);
  color:var(--ink);
  background:var(--paper);
  line-height:1.9;
  overflow-x:hidden;
}
img{display:block;max-width:100%}
a{color:inherit}
ul{list-style:none}
::selection{background:var(--accent);color:#fff}
a:focus-visible,.button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}

/* ---------- Scroll progress ---------- */
.scroll-progress{
  position:fixed;top:0;left:0;right:0;height:3px;z-index:200;
  background:transparent;pointer-events:none;
}
.scroll-progress span{
  display:block;height:100%;background:var(--accent);
  transform:scaleX(0);transform-origin:left center;
}

/* ---------- Fixed frame header ---------- */
.site-frame{
  position:fixed;inset:0;
  height:100svh;
  padding:2.2% 2.5% 4.5%;
  pointer-events:none;
  z-index:100;
}
/* v7 (problem 3): the nav row carries a little padding of its
   own, cancelled out by the matching negative margin, so the
   scrolled-state band below can hug the text row without moving
   any link. At the top of the page the band is fully transparent
   and the frame keeps its frameless look. */
.frame-nav{
  pointer-events:auto;
  padding:.45rem .8rem;margin:-.45rem -.8rem 0;
  transition:background-color .35s ease;
}
.site-frame.is-scrolled .frame-nav{
  background:rgba(255,255,255,.78);
  -webkit-backdrop-filter:blur(10px) saturate(1.25);
  backdrop-filter:blur(10px) saturate(1.25);
}
.frame-nav ul{
  display:flex;justify-content:space-between;align-items:flex-start;
}
.frame-nav li{
  font-family:var(--display);
  font-size:12.5px;letter-spacing:.1em;text-transform:uppercase;
}
.frame-nav a{
  text-decoration:none;position:relative;display:inline-block;
  padding-bottom:4px;
  transition:color .3s;
}
.frame-nav a::after{
  content:"";position:absolute;left:0;bottom:0;height:2px;width:100%;
  background:var(--accent);
  transform:scaleX(0);transform-origin:right center;
  transition:transform .45s cubic-bezier(.65,0,.35,1);
}
.frame-nav a:hover{color:var(--accent)}
.frame-nav a:hover::after{transform:scaleX(1);transform-origin:left center}
.frame-bottom{
  position:absolute;right:2.5%;bottom:4.5%;
  display:flex;align-items:center;gap:16px;
  pointer-events:auto;
  transition:opacity .45s ease,transform .45s ease,visibility .45s;
}
/* Toggled by JS while the Contact section is on screen */
.frame-bottom.is-hidden{opacity:0;visibility:hidden;transform:translateY(16px);pointer-events:none}
/* v10 (problem 1): landing directly on #contact. functions.php
   prints a one-line script in <head> that puts .init-on-contact
   on <html> before the body paints when the hash is #contact;
   the pill pair stays hidden under that class from the very
   first frame. front.js then applies its own .is-hidden (the
   rule above) and removes the <html> class, so from that moment
   the pair is managed by the observer alone, exactly as on a
   scroll arrival. Same hidden values as .is-hidden. */
html.init-on-contact .frame-bottom{opacity:0;visibility:hidden;transform:translateY(16px);pointer-events:none}
/* v7 (problem 3): the bottom-right pair (YouTube text link + the
   Contact pill) gets the same translucent blurred backing once
   scrolled; the pair is anchored to the corner, so the padding
   simply grows the band inward. */
.site-frame.is-scrolled .frame-bottom{
  background:rgba(255,255,255,.78);
  -webkit-backdrop-filter:blur(10px) saturate(1.25);
  backdrop-filter:blur(10px) saturate(1.25);
  border-radius:999px;
  padding:.45rem .8rem;
}
.frame-yt{
  font-family:var(--display);font-size:12px;letter-spacing:.06em;
  text-decoration:none;border-bottom:2px solid var(--ink);padding-bottom:2px;
  transition:color .3s,border-color .3s;
}
.frame-yt:hover{color:var(--accent);border-color:var(--accent)}
.frame-contact{
  display:inline-block;background:var(--ink);color:#fff;
  text-decoration:none;border-radius:999px;
  padding:10px 22px;font-size:13px;letter-spacing:.06em;
  box-shadow:0 10px 24px rgba(0,0,0,.25);
  transition:background .3s,transform .3s,box-shadow .3s;
}
.frame-contact:hover{background:var(--accent);transform:translateY(-2px);box-shadow:0 14px 28px rgba(0,0,0,.28)}

/* ---------- Main visual (collage hero) ---------- */
.main-visual{
  position:relative;min-height:100svh;overflow:hidden;
  display:flex;flex-direction:column;justify-content:flex-end;
  padding:0 4% 6%;
}
.mv-bg{position:absolute;inset:0;z-index:0}
.mv-bg img{
  width:100%;height:100%;object-fit:cover;opacity:.30;
  /* Video substitute: slow zoom on a still photo (Ken Burns effect) */
  animation:kenburns 28s ease-in-out infinite alternate;
}
@keyframes kenburns{
  from{transform:scale(1) translate(0,0)}
  to{transform:scale(1.12) translate(-1.5%,1.5%)}
}
.mv-ghost{
  position:absolute;z-index:0;top:17%;left:50%;
  transform:translateX(-50%);
  font-family:var(--display);
  font-size:clamp(3.6rem,13.5vw,13rem);line-height:1;letter-spacing:.05em;
  color:transparent;-webkit-text-stroke:1.25px rgba(17,17,17,.085);
  white-space:nowrap;pointer-events:none;user-select:none;
}
/* v6 (diagnosis 1): the collage group starts below the fixed frame
   nav band instead of under it. The offset lives on the container,
   so every child's own top / bottom spec is untouched (chip-a and
   friends keep their v4 / v5 values). Mobile overrides this with a
   taller offset, because the frame nav wraps to two rows there. */
.scene{position:absolute;inset:88px 0 0;z-index:1}
.collage{position:absolute}
.collage img{width:100%;height:auto}
.main-chara{
  width:min(34vw,380px);left:50%;top:9%;
  margin-left:calc(min(34vw,380px) / -2);
  filter:drop-shadow(0 24px 28px rgba(0,0,0,.18));
}
/* v6: the hero keeps only the main Haguremon plus this one small
   accent (chara-left / chara-right / chara-smug / chara-lie were
   removed from the template and their rules are gone). */
.chara-mini{width:min(11vw,124px);left:19%;bottom:11%;transform:rotate(-5deg);filter:drop-shadow(0 12px 16px rgba(0,0,0,.16))}
/* v6 (diagnosis 2): the automatic float lives on an inner wrapper
   inside .collage. Parallax.js and GSAP transform the outer .collage
   element; animating the img directly underneath them never read as
   movement. The wrapper's own keyframes cannot conflict with the
   outer transforms, and the swing is a plain translateY, ease-in-out.
   v7 (problem 4): the mechanism worked but the swing was too shy
   to feel (only a few px read on screen). The arc is now -22px,
   and the keyframes hold the top of the arc briefly (42%-58%) so
   the eye catches the peak; the loop runs rise-hold-fall inside
   one ~6s cycle instead of alternate, keeping the same period.
   v8 (problem 2): the hold backfired - the character spent so
   much of each cycle parked at the top that it still read as
   static. The keyframes are now a plain there-and-back swing
   with no hold at all (0 -> -24px -> 0), ease-in-out, on a
   shorter 4.5s cycle, so the wrapper is in motion for the whole
   loop. The wrapper sits on the hero's main character (see the
   markup note in front-page.php) plus the small accent. */
.float-inner{display:block;animation:floatY 4.5s ease-in-out infinite}
.chara-mini .float-inner{animation-duration:4.1s;animation-delay:-1.4s}
@keyframes floatY{
  0%{transform:translateY(0)}
  50%{transform:translateY(-24px)}
  100%{transform:translateY(0)}
}
.chip{width:min(17vw,220px);box-shadow:0 18px 38px rgba(0,0,0,.26);border:5px solid #fff}
.chip img{width:100%;height:100%;object-fit:cover;aspect-ratio:16/10}
/* Hero top chips start below the fixed nav band (v4 fix a) */
.chip-a{left:11%;top:17%;transform:rotate(-2deg)}
.chip-b{right:10%;bottom:44%;transform:rotate(2deg)}
.chip-c{width:min(10vw,124px);left:25.5%;top:12.5%}
.chip-c img{aspect-ratio:3/4}
.chip-d{width:min(13vw,168px);right:27%;bottom:31%;transform:rotate(-3deg)}
.chip-e{width:min(11vw,142px);left:3.5%;top:42%;transform:rotate(3deg)}
.chip-e img{aspect-ratio:4/3}
.chip-f{width:min(11vw,142px);right:3.5%;top:37%;transform:rotate(-3deg)}
.chip-f img{aspect-ratio:4/3}
.float-a{animation:floaty 6s ease-in-out infinite}
.float-b{animation:floaty 7.5s ease-in-out infinite reverse}
@keyframes floaty{
  0%,100%{transform:translateY(0) rotate(-1.2deg)}
  50%{transform:translateY(-18px) rotate(1.4deg)}
}
/* v6 (diagnosis 2): the old floaty2 / floaty2pc keyframes and the
   per-character img animation rules were removed. They were applied
   to the img elements while Parallax / GSAP owned the transforms
   around them, and the float never showed on the real machine. The
   character float is now the single .float-inner mechanism above. */
.mv-side{
  position:absolute;z-index:2;right:1.6%;top:50%;
  transform:translateY(-50%);
  writing-mode:vertical-rl;
  font-family:var(--display);font-size:.72rem;letter-spacing:.34em;
  color:rgba(17,17,17,.55);
}
.main-catch{
  position:relative;z-index:2;
  font-family:var(--serif);font-weight:600;
  font-size:clamp(2.2rem,6.8vw,5.2rem);
  line-height:1.45;letter-spacing:.05em;
  text-shadow:0 2px 22px rgba(255,255,255,.9);
}
/* v7 (problem 5): a soft white veil behind the catch copy. The
   first characters on the left sat directly on a photo chip and
   read busy; the veil (a blurred radial wash, kept inside the
   catch's own stacking context so it stays under the text but
   over the collage) calms that corner without moving any chip. */
.main-catch::before{
  content:"";position:absolute;z-index:-1;
  inset:-14% -18% -16% -10%;
  background:radial-gradient(ellipse 70% 80% at 32% 55%,rgba(255,255,255,.85),rgba(255,255,255,0) 70%);
  filter:blur(10px);
  pointer-events:none;
}
.catch-phrase{white-space:nowrap}
.main-text{position:relative;z-index:2;margin-top:2.2rem}
.main-role{font-family:var(--display);font-size:clamp(.72rem,1.4vw,.95rem);letter-spacing:.26em}
.main-name{
  font-family:var(--display);
  font-size:clamp(2.6rem,8.6vw,7rem);
  line-height:1.05;letter-spacing:.015em;
}
.main-sub{font-family:var(--serif);font-size:clamp(.95rem,2vw,1.25rem);margin-top:.4rem}
.mv-scroll{
  position:absolute;z-index:2;left:4%;bottom:0;
  font-family:var(--display);font-size:.68rem;letter-spacing:.3em;
  text-transform:uppercase;color:rgba(17,17,17,.6);
  display:flex;align-items:center;gap:.9rem;
}
.mv-scroll::after{
  content:"";width:64px;height:2px;background:var(--ink);
  transform-origin:left center;
  animation:scrollLine 2.2s cubic-bezier(.65,0,.35,1) infinite;
}
@keyframes scrollLine{
  0%{transform:scaleX(0);transform-origin:left center}
  45%{transform:scaleX(1);transform-origin:left center}
  55%{transform:scaleX(1);transform-origin:right center}
  100%{transform:scaleX(0);transform-origin:right center}
}

/* ---------- Sub visual / big number ---------- */
.sub-visual{padding:16vh 6% 12vh;position:relative}
.foreword h1{
  font-family:var(--serif);font-weight:600;
  font-size:clamp(1.8rem,4.6vw,3.4rem);line-height:1.6;letter-spacing:.02em;
}
.foreword-en{
  margin-top:1.6rem;color:var(--gray);
  font-family:var(--display);font-size:clamp(.78rem,1.6vw,1rem);
  letter-spacing:.08em;line-height:1.8;
}
.big-number{margin-top:13vh;text-align:left}
.big-number-label{font-family:var(--serif);font-size:clamp(1rem,2.2vw,1.4rem);line-height:1.8}
.big-number-value{
  font-family:var(--serif);font-weight:700;
  font-size:clamp(5rem,18vw,14.5rem);
  line-height:1.02;letter-spacing:.01em;
  font-variant-numeric:tabular-nums;
}
.big-number-value .unit{font-size:.32em;margin-left:.08em}
.big-number-en{
  font-family:var(--display);text-transform:lowercase;
  font-size:clamp(1.4rem,4.6vw,3.4rem);letter-spacing:.05em;line-height:1;
}
.big-number-en::first-letter{color:var(--accent)}
.sub-stats{
  margin-top:10vh;display:flex;gap:6vw;flex-wrap:wrap;
  border-top:2px solid var(--ink);padding-top:2.2rem;
}
.sub-stats li{position:relative;padding-left:1.1rem}
.sub-stats li::before{
  content:"";position:absolute;left:0;top:.55em;bottom:.4em;width:3px;
  background:var(--accent);
}
.sub-stats li strong{
  display:block;font-family:var(--serif);
  font-size:clamp(1.7rem,4.2vw,2.8rem);line-height:1.3;
  font-variant-numeric:tabular-nums;
}
.sub-stats li span{font-size:.92rem;color:#333}
.sub-note{margin-top:2.4rem;font-size:.95rem}

/* ---------- Marquee ---------- */
.marquee{
  border-top:2px solid var(--ink);border-bottom:2px solid var(--ink);
  padding:1rem 0;overflow:hidden;background:var(--paper);
}
.marquee-track{
  display:flex;gap:3.4rem;width:max-content;white-space:nowrap;
  animation:marquee 30s linear infinite;
}
.marquee:hover .marquee-track{animation-play-state:paused}
.marquee-track span{
  font-family:var(--serif);font-weight:600;
  font-size:clamp(1.05rem,2.4vw,1.5rem);letter-spacing:.06em;
}
.marquee-track .mq-name{font-family:var(--display);color:var(--accent);letter-spacing:.08em}
@keyframes marquee{
  from{transform:translateX(0)}
  to{transform:translateX(-50%)}
}

/* ---------- Section titles ---------- */
.main-ttl{
  font-family:var(--display);
  font-size:clamp(3rem,10.5vw,8.2rem);
  line-height:1;letter-spacing:.01em;margin-bottom:4.2rem;
}
.main-ttl span{color:var(--accent)}
.content-ttl .sub{
  display:flex;align-items:center;gap:1rem;
  font-family:var(--display);
  font-size:clamp(.85rem,2vw,1.15rem);letter-spacing:.2em;
  text-transform:uppercase;margin-bottom:1.4rem;
}
.content-ttl .sub::before{content:"";width:52px;height:2px;background:var(--accent);flex:0 0 auto}
.content-ttl .main{
  display:block;font-family:var(--serif);font-weight:600;
  font-size:clamp(2rem,5.2vw,3.8rem);line-height:1.55;
}

/* ---------- Philosophy ---------- */
.philosophy{
  padding:16vh 6% 18vh;display:flex;gap:6vw;align-items:flex-start;
}
.philosophy-text{flex:1 1 46%}
.philosophy-text p{
  margin-top:2.6rem;font-family:var(--serif);
  font-size:clamp(1rem,2vw,1.3rem);line-height:2.3;
}
.philosophy-text p span{font-weight:600}
.philosophy-photo{
  flex:1 1 44%;position:relative;
  display:flex;gap:14px;align-items:stretch;
}
.philosophy-photo .p-photo-1,
.philosophy-photo .p-photo-2,
.philosophy-photo .p-photo-3{
  flex:1 1 0;overflow:hidden;
  border:5px solid #fff;box-shadow:0 20px 44px rgba(0,0,0,.18);
}
.philosophy-photo img{width:100%;aspect-ratio:3/4;object-fit:cover}
.philosophy-photo .plx{transform:scale(1.16)}
/* v6: the small character sticker that overlapped the Philosophy
   photos (.p-chara) was removed - photos only, characters sparingly. */

/* ---------- Story / Documentary ---------- */
.story{padding:14vh 6%;background:var(--cream)}
.story-block{
  position:relative;display:flex;align-items:center;gap:4vw;
  padding:3.4rem 0;border-top:1px solid #d8d2c4;
}
.story-block:last-child{border-bottom:1px solid #d8d2c4}
.story-no{
  font-family:var(--display);
  font-size:clamp(2.2rem,6.4vw,4.6rem);line-height:1;color:transparent;
  -webkit-text-stroke:1.5px #b9b2a2;flex:0 0 auto;
  transition:color .8s ease,-webkit-text-stroke-color .8s ease;
}
.story-block.is-in .story-no{color:var(--ink);-webkit-text-stroke-color:var(--ink)}
.story-body{flex:1 1 auto;max-width:620px;position:relative;z-index:1}
.story-body h3{font-family:var(--serif);font-size:clamp(1.35rem,3.2vw,2.1rem);margin-bottom:.7rem}
.story-body p{font-size:.98rem}
.story-img{flex:0 0 auto;overflow:hidden;box-shadow:0 18px 38px rgba(0,0,0,.16)}
.story-img img{object-fit:cover}
.story-img .plx{transform:scale(1.18)}
.story-img.img-right{transform:rotate(1.6deg)}
.story-img.img-left{transform:rotate(-1.6deg)}
.story-img.img-right img{width:min(24vw,260px);aspect-ratio:1/1}
.story-img.img-left img{width:min(24vw,260px);aspect-ratio:16/11}
/* v6: every Documentary image is a photo now, so the PNG cutout
   exception (.story-img:has(img[src$=".png"])) and the small
   character accent (.story-sub-img) rules are gone. */
.story-block:nth-of-type(even){flex-direction:row-reverse}
.story-block:nth-of-type(even) .story-body{text-align:left}

/* ---------- Themes (staggered, no cards) ---------- */
.themes{padding:14vh 6%}
.themes-lead{font-family:var(--serif);font-size:1.15rem;margin:-2.6rem 0 4.4rem}
.theme-row{
  position:relative;
  display:flex;gap:5vw;align-items:center;margin-bottom:11vh;
}
.theme-row.reverse{flex-direction:row-reverse}
.theme-ghost{
  position:absolute;top:-3.6rem;z-index:0;
  font-family:var(--display);font-size:clamp(5rem,11vw,9.5rem);line-height:1;
  color:transparent;-webkit-text-stroke:1.5px #e7e2d6;
  pointer-events:none;user-select:none;
}
.theme-row:not(.reverse) .theme-ghost{right:2%}
.theme-row.reverse .theme-ghost{left:2%}
.theme-img{flex:0 0 46%;overflow:hidden;position:relative;z-index:1;box-shadow:0 22px 48px rgba(0,0,0,.16)}
.theme-img img{width:100%;aspect-ratio:16/10;object-fit:cover}
.theme-img .plx-img{transform:scale(1.18)}
.theme-text{flex:1 1 auto;position:relative;z-index:1}
.theme-row:not(.reverse) .theme-text{transform:translateY(2.2rem)}
.theme-no{
  font-family:var(--display);font-size:.85rem;letter-spacing:.22em;
  text-transform:uppercase;margin-bottom:1rem;
}
.theme-no::after{content:"";display:block;width:44px;height:2px;background:var(--accent);margin-top:.7rem}
.theme-text h3{font-family:var(--serif);font-size:clamp(1.6rem,3.8vw,2.6rem);margin-bottom:1rem;line-height:1.5}
.theme-text p:last-child{max-width:34em}
.mini-chip{
  position:absolute;z-index:2;width:min(13vw,172px);
  border:4px solid #fff;box-shadow:0 16px 34px rgba(0,0,0,.24);
}
.mini-chip img{width:100%;aspect-ratio:4/3;object-fit:cover}
.chip-desk{left:37%;bottom:-9%;transform:rotate(-3deg)}
.chip-kyoto{right:37%;bottom:-9%;transform:rotate(3deg)}
.chip-sake{right:37%;bottom:-9%;transform:rotate(3deg)}
.chip-bonsai{right:37%;bottom:-9%;transform:rotate(-3deg)}

/* ---------- Works ---------- */
/* Bottom padding is trimmed in v5: Works and News sit back to back,
   and the stacked 14vh + 14vh read as a full blank screen of scroll. */
.works{padding:14vh 6% 6vh}
.works-lead{margin:-2.6rem 0 3.8rem;font-family:var(--serif);font-size:1.1rem}
.works-list li{border-top:2px solid var(--ink)}
.works-list li:last-child{border-bottom:2px solid var(--ink)}
.works-list a{
  position:relative;
  display:grid;grid-template-columns:230px 52px 1fr auto;gap:.4rem 2rem;
  align-items:center;padding:1.9rem .8rem;text-decoration:none;
  transition:color .35s;
}
.works-list a::before{
  content:"";position:absolute;inset:0;background:var(--ink);z-index:0;
  transform:scaleY(0);transform-origin:bottom center;
  transition:transform .45s cubic-bezier(.65,0,.35,1);
}
.works-list a:hover::before{transform:scaleY(1)}
.works-list a>*{position:relative;z-index:1}
.works-list img{
  grid-row:span 2;width:230px;aspect-ratio:16/10;object-fit:cover;
  transition:transform .5s cubic-bezier(.22,1,.36,1);
}
.works-list a:hover img{transform:scale(1.05) rotate(-1deg)}
.works-list a:hover{color:#fff}
.works-list a:hover .works-desc{color:#d9d9d9}
.works-list a:hover .works-idx{color:var(--accent)}
.works-idx{
  grid-row:span 2;align-self:center;
  font-family:var(--display);font-size:1rem;letter-spacing:.1em;color:#bdb7a8;
  transition:color .35s;
}
.works-name{grid-column:3;font-family:var(--serif);font-size:clamp(1.5rem,3.4vw,2.3rem);font-weight:600}
.works-desc{grid-column:3;color:#444;font-size:.95rem;transition:color .35s}
.works-arrow{
  grid-column:4;grid-row:span 2;align-self:center;
  font-size:1.7rem;line-height:1;
  transition:transform .35s,color .35s;
}
.works-list a:hover .works-arrow{transform:translate(5px,-5px);color:var(--accent)}
.works-tags{display:flex;flex-wrap:wrap;gap:.7rem;margin-top:3.2rem}
.works-tags li{
  border:1.5px solid var(--ink);border-radius:999px;
  padding:.35rem 1.1rem;font-size:.88rem;
  transition:background .3s,color .3s,transform .3s;
}
.works-tags li:hover{background:var(--ink);color:#fff;transform:translateY(-2px)}

/* ---------- News (latest posts) ---------- */
/* Top padding is trimmed in v5 to pair with .works above: together
   the Works-to-News gap is 12vh, under half of the previous 28vh.
   The bottom padding keeps the rhythm into Profile unchanged. */
.news{padding:6vh 6% 14vh}
.news-list li{border-top:2px solid var(--ink)}
.news-list li:last-child{border-bottom:2px solid var(--ink)}
.news-list a{
  display:grid;grid-template-columns:200px 110px 1fr auto;gap:.4rem 2rem;
  align-items:center;padding:1.4rem .8rem;text-decoration:none;
  transition:background .3s;
}
.news-list a:hover{background:var(--cream)}
.news-thumb{display:block;width:200px;aspect-ratio:16/10;overflow:hidden;background:var(--cream)}
.news-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .5s cubic-bezier(.22,1,.36,1)}
.news-list a:hover .news-thumb img{transform:scale(1.05)}
.news-date{font-family:var(--display);font-size:.85rem;letter-spacing:.1em;color:var(--gray);font-variant-numeric:tabular-nums}
.news-title{font-family:var(--serif);font-weight:600;font-size:clamp(1.05rem,2.4vw,1.45rem);line-height:1.6}
.news-arrow{font-size:1.4rem;line-height:1;transition:transform .35s,color .35s}
.news-list a:hover .news-arrow{transform:translate(4px,-4px);color:var(--accent)}

/* ---------- Profile ---------- */
.profile{padding:14vh 6%;background:var(--cream)}
.profile-inner{position:relative;max-width:860px}
.profile-name-en{font-family:var(--display);font-size:clamp(1.1rem,2.6vw,1.6rem);letter-spacing:.16em}
.profile-role{margin-top:.6rem;font-size:.95rem;color:#333}
.profile-name-ja{font-family:var(--serif);font-size:clamp(2.1rem,5.6vw,3.6rem);margin:1.2rem 0 1.8rem}
.profile-text{font-size:1rem;line-height:2.2;max-width:36em}
.profile-text span{display:block;margin-top:1.1em}
.profile-photo-chip{
  position:absolute;right:0;top:.4rem;width:min(20vw,232px);
  transform:rotate(2.6deg);
  border:5px solid #fff;box-shadow:0 18px 38px rgba(0,0,0,.22);
}
.profile-photo-chip img{width:100%;aspect-ratio:4/3;object-fit:cover}
.profile-imgs{display:flex;align-items:flex-end;margin-top:2.8rem}
.profile-img{width:min(38vw,300px);flex:0 0 auto;filter:drop-shadow(0 16px 22px rgba(0,0,0,.16))}
.profile-img-sub{width:min(24vw,178px);flex:0 0 auto;margin-right:-34px;filter:drop-shadow(0 12px 18px rgba(0,0,0,.14))}
.profile-imgs .profile-img-sub:last-child{margin-right:0;margin-left:-34px}

/* ---------- Contact / footer (dark climax) ---------- */
.contact{padding:18vh 6% 20vh;background:var(--ink);color:#fff}
.contact .main-ttl{margin-bottom:2.6rem}
.contact p{max-width:34em;margin-bottom:2.6rem;color:#e8e8e8}
.button{
  display:inline-block;background:#fff;color:var(--ink);text-decoration:none;
  border-radius:999px;padding:15px 36px;font-size:.95rem;letter-spacing:.06em;
  box-shadow:0 12px 26px rgba(0,0,0,.35);
  transition:background .3s,color .3s,transform .3s;
}
.button:hover{background:var(--accent);color:#fff;transform:translateY(-2px)}
.footer{
  padding:2.2rem 4%;text-align:center;background:var(--ink);color:#9a958a;
  font-family:var(--display);font-size:.78rem;letter-spacing:.12em;
}
.footer-nav{margin-bottom:1.1rem}
.footer-nav a{
  color:#e8e4da;text-decoration:none;font-size:.85rem;letter-spacing:.18em;
  text-transform:uppercase;border-bottom:2px solid var(--accent);padding-bottom:3px;
  transition:color .3s;
}
.footer-nav a:hover{color:var(--accent)}

/* ---------- Responsive ---------- */
@media (max-width:767px){
  .site-frame{padding:4% 4% 6%}
  .frame-nav ul{flex-wrap:wrap;justify-content:space-between;column-gap:.9rem;row-gap:.55rem}
  .frame-nav li{font-size:9.5px;letter-spacing:.06em}
  /* v9 (problem 3): on mobile the bottom-right pair (YouTube text
     link + Contact pill) overlaps body text on a narrow screen
     and reads heavy at full size. Shrink both links and let the
     pair sit in a small translucent capsule with backdrop blur,
     so whatever passes underneath stays readable and the pair
     itself presses less. (Once scrolled, the stronger
     .is-scrolled band from the base rules still wins over this
     capsule, exactly as on desktop.) */
  .frame-bottom{right:4%;bottom:5%;gap:10px;padding:.35rem .55rem;border-radius:999px;background:rgba(255,255,255,.55);-webkit-backdrop-filter:blur(8px) saturate(1.2);backdrop-filter:blur(8px) saturate(1.2)}
  /* v10 (problem 2): the capsule alone was not enough - the
     black Contact button inside it stayed opaque at near-full
     size and still landed on the hero subtitle and Themes card
     text. The button itself shrinks one more step here (and the
     YouTube label matches it), so the pair's footprint on a
     narrow screen is as small as it can be while staying
     tappable. Its position is unchanged. */
  .frame-yt{font-size:10px}
  .frame-contact{padding:6px 11px;font-size:10px;box-shadow:0 5px 14px rgba(0,0,0,.18)}
  /* v10 (problem 2): the hero's bottom padding grows from 16%
     to 20% of the width, lifting the end of .main-sub clear of
     the fixed pill's band at rest. The pill keeps its place -
     moving it would only trade one overlap for another - and
     the extra room is inside the hero's own full-screen area,
     so nothing below shifts. */
  .main-visual{padding:0 5% 20%}
  /* v9 (problem 2): at 9.6vw the second catch line - the two
     nowrap phrases "自分で選べる" + "毎日へ" (9 characters) -
     just exceeds the content width (90vw) on phones, so the
     line split again and the catch wrapped to 4 lines instead
     of the settled 3 ("辞め方も、/ 稼ぎ方も、/ 自分で選べる
     毎日へ"). A step down in size and tracking buys the margin
     back: at 8.8vw the phrase row is roughly 84vw wide, inside
     the content box with room to spare, no horizontal overflow. */
  .main-catch{font-size:clamp(1.75rem,8.8vw,2.7rem);line-height:1.55;letter-spacing:.03em}
  .mv-ghost{font-size:16.5vw;top:22%}
  .mv-side{display:none}
  .mv-scroll{left:5%}
  /* v6 (diagnosis 1): the frame nav wraps to two rows on mobile and
     the band is taller, so the collage scene starts lower here. */
  .scene{top:120px}
  .main-chara{width:62vw;top:12%;margin-left:-31vw}
  .chara-mini{width:21vw;left:auto;right:6%;bottom:47%}
  .chip{width:34vw;border-width:4px}
  /* v5: on mobile the two-row frame nav plus the admin bar make a
     taller top band than v4 allowed for, and the top chips still
     slipped under the nav text. The chip row now starts lower
     (a at 22%, c at 21%); nothing is hidden, so density is kept. */
  .chip-a{left:4%;top:22%}
  .chip-b{right:4%;bottom:56%}
  .chip-c{width:19vw;left:auto;right:9%;top:21%}
  .chip-d{display:none}
  .chip-e,.chip-f{display:none}
  .sub-visual{padding:12vh 6% 10vh}
  .marquee-track{gap:2.2rem;animation-duration:22s}
  .philosophy{flex-direction:column;padding:12vh 6% 14vh}
  .philosophy-photo{width:100%;gap:8px;margin-bottom:2vh}
  .story{padding:11vh 6%}
  .story-block,.story-block:nth-of-type(even){flex-direction:column;align-items:flex-start;gap:1.2rem}
  .story-img.img-right img,.story-img.img-left img{width:64vw}
  .theme-row,.theme-row.reverse{flex-direction:column;align-items:flex-start;gap:1.4rem;margin-bottom:9vh}
  .theme-ghost{font-size:4.6rem;top:-2.4rem}
  .theme-row:not(.reverse) .theme-ghost{right:0}
  .theme-row.reverse .theme-ghost{left:0}
  .theme-img{flex-basis:auto;width:100%}
  .theme-row:not(.reverse) .theme-text{transform:none}
  .works-list a{grid-template-columns:1fr auto;padding:1.6rem .2rem}
  .works-list img{grid-row:auto;width:100%}
  .works-idx{display:none}
  .works-name,.works-desc{grid-column:1}
  .works-arrow{grid-column:2;grid-row:auto}
  .profile{padding:11vh 6%}
  .profile-photo-chip{position:relative;right:auto;top:auto;width:56vw;margin:1.6rem 0 .4rem}
  .mini-chip{width:30vw}
  .chip-desk{left:auto;right:2%;bottom:-13%}
  .chip-kyoto{right:2%;bottom:-13%}
  .chip-sake{left:auto;right:2%;bottom:-13%}
  .chip-bonsai{left:auto;right:2%;bottom:-13%}
  .profile-img{width:46vw}
  .profile-img-sub{width:30vw;margin-right:-20px}
  .profile-imgs .profile-img-sub:last-child{margin-left:-20px}
  .works{padding:11vh 6% 5vh}
  .news{padding:5vh 6% 11vh}
  .news-list a{grid-template-columns:1fr auto;padding:1.2rem .2rem}
  .news-thumb{grid-column:1/-1;width:100%}
  .news-date{grid-column:1;grid-row:2}
  .news-title{grid-column:1;grid-row:3}
  .news-arrow{grid-column:2;grid-row:2/4;align-self:center}
  .contact{padding:14vh 6% 16vh}
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion:reduce){
  .mv-bg img,.float-a,.float-b,.marquee-track,.mv-scroll::after{animation:none}
  .float-inner{animation:none}
  html{scroll-behavior:auto}
}
