/* ==========================================================================
   三工水道工事株式会社 採用サイト（排水設備工事責任技術者・配管技能者）
   モバイルファースト / 1画面＝1セクションのスワイプ型
   参考：genda.jp（Times系セリフ＋明朝の見出し、1文字ずつ浮かぶ見出し、金のマーク、紺×オフホワイト、
         クレヨン調の群像イラスト）
   アレンジ：キーワード【銀座】の高級感（金の細罫・アールデコの扇模様・時計塔）／GENDA の「:)」を“水のしずく”に
   PCは中央にスマホ幅のカラム、左右レールにロゴ・募集要項/エントリーを固定
   ========================================================================== */
:root{
  --base:#F3F4F4;   /* ヒアリングシート指定：ベース */
  --navy:#031722;   /* ヒアリングシート指定：メイン */
  --gold:#C0A171;   /* ヒアリングシート指定：アクセント */
  --gold-d:#8f7448;
  --gold-l:#e6d9c3;
  --mist:#CDD4D8;
  --ink:#031722;
  --sub:#3d4a52;
  --line:rgba(3,23,34,.14);
  --col:430px;
  --header:60px;
  --serif-en:"Tinos","Times New Roman",Times,serif;
  --serif:"Tinos","YuMincho","Yu Mincho","Noto Serif JP","Hiragino Mincho ProN",serif;
  --sans:"Inter","Noto Sans JP","Hiragino Sans","Hiragino Kaku Gothic ProN",sans-serif;
  --ease:cubic-bezier(.22,1,.36,1);
}
*,*::before,*::after{box-sizing:border-box}
html,body{margin:0;height:100%}
body{
  font-family:var(--sans);
  font-weight:400;
  color:var(--ink);
  background:var(--navy);
  -webkit-font-smoothing:antialiased;
  overflow:hidden;
  line-height:1.95;
  letter-spacing:.04em;
}
img,svg,video{display:block;max-width:100%}
button{font:inherit;color:inherit;cursor:pointer;background:none;border:0;padding:0}
a{color:inherit;text-decoration:none}
p,ul,ol,figure,dl,dd{margin:0;padding:0}
ul,ol{list-style:none}
em{font-style:normal}
br.pc{display:none}
.nw{white-space:nowrap}

/* ---------- PCで見える左右の背景：紺地に金の扇（アールデコ）模様 ---------- */
body::before{
  content:"";position:fixed;inset:0;z-index:0;pointer-events:none;
  background:
    radial-gradient(60vw 50vw at 50% 120%,rgba(192,161,113,.14),transparent 70%),
    radial-gradient(circle at 50% 100%,transparent 18px,rgba(192,161,113,.16) 19px,transparent 20px,transparent 30px,rgba(192,161,113,.12) 31px,transparent 32px) 0 0/64px 32px,
    var(--navy);
}

/* ---------- 共通：金のしずくマーク（GENDA の「:)」に当たるもの） ---------- */
.mark{
  display:inline-block;position:relative;
  width:.2em;height:.2em;margin-left:.14em;vertical-align:.06em;
  background:var(--gold);
  border-radius:0 50% 50% 50%;
  transform:rotate(45deg);
}

/* ---------- スライダー（中央カラム） ---------- */
.slider{
  position:fixed;top:0;bottom:0;left:50%;z-index:2;
  width:min(100vw,var(--col));
  transform:translateX(-50%);
  overflow-y:auto;overflow-x:hidden;
  scroll-snap-type:y mandatory;
  scroll-behavior:smooth;
  overscroll-behavior:contain;
  scrollbar-width:none;
  background:var(--base);
}
.slider::-webkit-scrollbar{display:none}
.page{
  position:relative;
  height:100vh;height:100dvh;
  scroll-snap-align:start;scroll-snap-stop:always;
  overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none;
  padding:calc(var(--header) + 18px) 24px 64px;
  display:flex;flex-direction:column;
  background:var(--base);
}
.page::-webkit-scrollbar{display:none}
.page-grid{position:relative;z-index:1;display:flex;flex-direction:column;gap:20px;margin:auto 0}
.page.is-overflow .page-grid{margin:0}

.tone-base{
  background:
    linear-gradient(90deg,transparent 11px,rgba(192,161,113,.35) 11px,rgba(192,161,113,.35) 12px,transparent 12px) 0 0/100% 100% no-repeat,
    var(--base);
}
.tone-navy{
  color:var(--base);
  background:
    radial-gradient(320px 260px at 100% 0,rgba(192,161,113,.16),transparent 70%),
    radial-gradient(circle at 50% 100%,transparent 18px,rgba(192,161,113,.10) 19px,transparent 20px,transparent 30px,rgba(192,161,113,.08) 31px,transparent 32px) 0 100%/64px 32px repeat-x,
    var(--navy);
}
.tone-sparkle{
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cpath d='M30 18c.6 4 2 5.4 6 6-4 .6-5.4 2-6 6-.6-4-2-5.4-6-6 4-.6 5.4-2 6-6Z' fill='%23C0A171' opacity='.35'/%3E%3Cpath d='M92 76c.4 2.6 1.4 3.6 4 4-2.6.4-3.6 1.4-4 4-.4-2.6-1.4-3.6-4-4 2.6-.4 3.6-1.4 4-4Z' fill='%23031722' opacity='.18'/%3E%3C/svg%3E") 0 0/120px 120px,
    var(--base);
}

/* ---------- 見出し ---------- */
.sec-head{display:flex;flex-direction:column;align-items:flex-start}
.sec-label{
  display:flex;align-items:center;gap:10px;
  font-size:11px;font-weight:500;letter-spacing:.18em;line-height:1;color:var(--gold-d);
}
.sec-label b{font-family:var(--serif-en);font-weight:400;font-size:13px;letter-spacing:.08em}
.sec-label b::after{content:"";display:inline-block;width:22px;height:1px;margin-left:10px;vertical-align:middle;background:currentColor}
.tone-navy .sec-label{color:var(--gold)}
.sec-en{
  margin-top:10px;
  font-family:var(--serif-en);font-weight:400;font-size:46px;line-height:1.05;letter-spacing:-.005em;
}
.catch{
  word-break:auto-phrase;
  margin:14px 0 0;
  font-family:var(--serif);font-weight:600;font-size:25px;line-height:1.55;letter-spacing:.06em;
  font-feature-settings:"palt";
}
.tone-navy .catch{color:#fff}

/* ---------- 1文字ずつ浮かび上がる見出し（参考URLのヒーローの動き） ---------- */
.rise .ch{display:inline-block;white-space:pre}
@media (prefers-reduced-motion:no-preference){
  .rise .ch{opacity:0;transform:translateY(.6em);transition:opacity .7s var(--ease),transform .9s var(--ease)}
  .rise .mark{opacity:0;transform:translateY(-1.4em) rotate(45deg);transition:opacity .4s,transform .8s cubic-bezier(.5,1.6,.5,1)}
  .is-active .rise .ch{opacity:1;transform:none}
  .is-active .rise .mark{opacity:1;transform:rotate(45deg)}
  .reveal{opacity:0;transform:translateY(18px);transition:opacity .9s var(--ease) .55s,transform 1s var(--ease) .55s}
  .is-active .reveal{opacity:1;transform:none}
}

/* ---------- 本文 ---------- */
.sec-body{word-break:auto-phrase;display:flex;flex-direction:column;gap:12px;font-size:14px;line-height:1.95;color:var(--sub)}
.tone-navy .sec-body{color:rgba(243,244,244,.86)}
.sec-body .em{
  position:relative;padding-top:14px;
  font-family:var(--serif);font-weight:600;font-size:16px;line-height:1.8;color:var(--ink);letter-spacing:.05em;
}
.sec-body .em::before{content:"";position:absolute;top:0;left:0;width:40px;height:1px;background:var(--gold)}

/* 01：背景の大きな「70」 */
.bg-num{
  position:absolute;z-index:0;top:calc(var(--header) - 6px);right:-14px;
  font-family:var(--serif-en);font-size:190px;line-height:1;letter-spacing:-.04em;
  color:transparent;-webkit-text-stroke:1px rgba(192,161,113,.55);
  pointer-events:none;user-select:none;
}
.bg-num::after{
  content:"YEARS";position:absolute;right:22px;bottom:2px;
  font-family:var(--sans);font-size:10px;letter-spacing:.4em;-webkit-text-stroke:0;color:var(--gold-d);
}
.quotes{display:flex;flex-direction:column;gap:8px;margin:2px 0}
.quotes li{
  position:relative;align-self:flex-start;
  padding:7px 16px 7px 14px;
  font-family:var(--serif);font-weight:600;font-size:15px;line-height:1.6;color:var(--ink);
  background:#fff;border-left:2px solid var(--gold);
  box-shadow:0 6px 18px -12px rgba(3,23,34,.35);
}
.quotes li:nth-child(2){margin-left:22px}
@media (prefers-reduced-motion:no-preference){
  .quotes li{opacity:0;transform:translateX(-14px);transition:opacity .6s var(--ease),transform .8s var(--ease)}
  .is-active .quotes li{opacity:1;transform:none;transition-delay:.95s}
  .is-active .quotes li:nth-child(2){transition-delay:1.15s}
}

/* 02：銀座の線画・一貫対応の流れ */
.ginza{position:relative;color:var(--gold);margin:-4px 0 -6px}
.ginza svg{width:100%;height:auto}
.ginza figcaption{
  position:absolute;right:0;top:0;
  font-family:var(--serif-en);font-size:10px;letter-spacing:.5em;color:var(--gold);
}
.clock-hand{transform-origin:180px 20px}
@media (prefers-reduced-motion:no-preference){
  .is-active .clock-hand{animation:clock 12s linear infinite}
  .is-active .clock-hand--m{animation-duration:1.5s}
}
@keyframes clock{to{transform:rotate(360deg)}}
.lead{
  font-family:var(--serif);font-weight:600;font-size:21px;line-height:1.5;letter-spacing:.08em;color:var(--gold);
}
.cycle{
  position:relative;display:flex;justify-content:center;gap:28px;
  padding:2px 0 20px;margin:2px 0;
}
.cycle li{
  position:relative;flex:none;width:72px;height:72px;
  display:grid;place-content:center;text-align:center;
  border:1px solid var(--gold);border-radius:50%;
}
.cycle b{font-family:var(--serif);font-weight:600;font-size:16px;line-height:1.2;color:#fff;letter-spacing:.1em}
.cycle small{font-family:var(--serif-en);font-size:8.5px;letter-spacing:.18em;color:var(--gold);line-height:1.6}
.cycle li:not(:last-child)::after{
  content:"";position:absolute;top:50%;left:calc(100% + 4px);width:20px;border-top:1px dashed var(--gold);
}
.cycle::after{
  content:"";position:absolute;left:calc(50% - 100px);right:calc(50% - 100px);bottom:0;height:16px;
  border:1px solid var(--gold);border-top:0;border-radius:0 0 14px 14px;opacity:.7;
}
.cycle::before{
  content:"";position:absolute;left:calc(50% - 100px);bottom:12px;width:7px;height:7px;margin-left:-3.5px;
  border-left:1px solid var(--gold);border-top:1px solid var(--gold);transform:rotate(45deg);opacity:.7;
}
.tone-navy em{color:#fff;background:linear-gradient(transparent 62%,rgba(192,161,113,.45) 62%);font-weight:500}

/* 03：吹き出し */
.voices{display:flex;flex-direction:column;gap:6px;margin:0 0 2px}
.voices li{display:flex;align-items:flex-end;gap:6px}
.voices li.is-right{justify-content:flex-end}
.voices img{flex:none;width:62px;height:auto}
.bubble{
  position:relative;margin-bottom:22px;
  padding:8px 14px;
  font-family:var(--serif);font-weight:600;font-size:14px;line-height:1.5;color:var(--ink);
  background:#fff;border:1px solid var(--navy);border-radius:18px;
}
.bubble::after{
  content:"";position:absolute;bottom:-7px;left:14px;width:12px;height:12px;
  background:#fff;border-right:1px solid var(--navy);border-bottom:1px solid var(--navy);
  transform:skewX(-30deg) rotate(45deg);
}
.is-right .bubble::after{left:auto;right:14px;transform:skewX(30deg) rotate(45deg)}
.after-voices{font-family:var(--serif);font-weight:600;font-size:15px;color:var(--ink)}
@media (prefers-reduced-motion:no-preference){
  .voices li{opacity:0;transform:translateY(10px) scale(.96);transition:opacity .5s var(--ease),transform .7s cubic-bezier(.4,1.5,.5,1)}
  .is-active .voices li{opacity:1;transform:none}
  .is-active .voices li:nth-child(1){transition-delay:.9s}
  .is-active .voices li:nth-child(2){transition-delay:1.1s}
  .is-active .voices li:nth-child(3){transition-delay:1.3s}
  .is-active .voices img{animation:hop 2s ease-in-out infinite}
  .is-active .voices li:nth-child(2) img{animation-delay:-.6s}
  .is-active .voices li:nth-child(3) img{animation-delay:-1.2s}
}
@keyframes hop{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-4px) rotate(-2deg)}}

/* ---------- HERO（仮動画） ---------- */
.page--hero{padding:0;background:var(--mist);justify-content:flex-end}
.hero-media{position:absolute;inset:0}
.page--hero::after{
  content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  background:linear-gradient(to bottom,rgba(227,231,233,0) 50%,rgba(227,231,233,.9) 66%,#E3E7E9 80%);
}
.hero-media video{width:100%;height:100%;object-fit:cover;object-position:50% 0}
.hero-copy{position:relative;z-index:1;padding:0 24px calc(74px + env(safe-area-inset-bottom))}
.hero-en{
  font-family:var(--serif-en);font-size:44px;line-height:1.02;letter-spacing:-.01em;color:var(--navy);
}
.hero-catch{
  margin:10px 0 0;
  font-family:var(--serif);font-weight:600;font-size:27px;line-height:1.5;letter-spacing:.08em;color:var(--navy);
  font-feature-settings:"palt";
}
.hero-job{
  display:flex;align-items:center;flex-wrap:wrap;gap:4px 10px;margin-top:12px;
  font-size:12px;font-weight:500;line-height:1.6;letter-spacing:.06em;color:var(--navy);
}
.hero-job span{
  font-family:var(--serif-en);font-size:10px;letter-spacing:.3em;color:var(--gold-d);
  padding-right:10px;border-right:1px solid var(--gold);
}
@media (prefers-reduced-motion:no-preference){
  .hero-job{opacity:0;transition:opacity 1s .9s}
  .is-active .hero-job{opacity:1}
}

/* スクロール誘導・次へ */
.swipe-hint{
  position:absolute;z-index:2;left:50%;bottom:calc(14px + env(safe-area-inset-bottom));transform:translateX(-50%);
  display:flex;flex-direction:column;align-items:center;gap:6px;
  font-family:var(--serif-en);font-size:11px;letter-spacing:.3em;color:var(--navy);
}
.swipe-hint i{position:relative;width:1px;height:30px;background:rgba(3,23,34,.2);overflow:hidden}
.swipe-hint i::after{content:"";position:absolute;left:0;top:-30px;width:1px;height:30px;background:var(--gold-d);animation:drip 2s var(--ease) infinite}
@keyframes drip{to{top:30px}}
.next-arrow{
  position:absolute;z-index:2;right:22px;bottom:calc(18px + env(safe-area-inset-bottom));
  width:38px;height:38px;border:1px solid var(--gold);border-radius:50%;
}
.next-arrow::before{
  content:"";position:absolute;left:50%;top:44%;width:8px;height:8px;margin-left:-4px;
  border-right:1px solid var(--gold-d);border-bottom:1px solid var(--gold-d);transform:rotate(45deg);
}
.tone-navy .next-arrow::before{border-color:var(--gold)}

/* ---------- ヘッダー ---------- */
.site-header{
  position:fixed;z-index:20;top:0;left:50%;transform:translateX(-50%);
  width:min(100vw,var(--col));height:var(--header);
  display:flex;align-items:center;gap:8px;padding:0 14px 0 18px;
  color:var(--navy);
  transition:color .4s,background-color .4s;
}
.brand{display:block;margin-right:auto}
.brand-logo{
  display:block;width:152px;height:28px;background:currentColor;
  -webkit-mask:url(assets/logo.png) left center/contain no-repeat;mask:url(assets/logo.png) left center/contain no-repeat;
}
.header-cta{display:flex;gap:4px}
.hlink{
  position:relative;white-space:nowrap;padding:6px 7px;font-size:11px;font-weight:500;letter-spacing:.06em;line-height:1;
}
.hlink::before,.hlink::after{
  position:absolute;top:50%;transform:translateY(-52%);font-family:var(--serif-en);font-size:14px;color:var(--gold);
  transition:transform .3s var(--ease);
}
.hlink::before{content:"(";left:0}
.hlink::after{content:")";right:0}
.hlink--gold{color:var(--gold-d)}
.menu-button{position:relative;width:40px;height:40px}
.menu-button span{position:absolute;left:9px;right:9px;height:1px;background:var(--gold);transition:transform .4s var(--ease),top .4s var(--ease)}
.menu-button span:first-child{top:17px}
.menu-button span:last-child{top:23px}
.menu-button[aria-expanded="true"] span:first-child{top:20px;transform:rotate(20deg)}
.menu-button[aria-expanded="true"] span:last-child{top:20px;transform:rotate(-20deg)}
body[data-tone="navy"] .site-header,body.menu-open .site-header{color:var(--base)}
body[data-tone="navy"] .hlink--gold,body.menu-open .hlink--gold{color:var(--gold)}
body.is-scrolled .site-header{background:rgba(243,244,244,.9);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
body.is-scrolled[data-tone="navy"] .site-header{background:rgba(3,23,34,.88)}
body.menu-open .site-header{background:transparent!important}

/* ---------- メニュー（参考URL：紺地に大きなロゴ） ---------- */
.menu{
  position:fixed;z-index:15;top:0;bottom:0;left:50%;transform:translateX(-50%);
  width:min(100vw,var(--col));
  background:var(--navy);color:var(--base);
  opacity:0;visibility:hidden;transition:opacity .45s var(--ease),visibility .45s;
  overflow-y:auto;
}
.menu.is-open{opacity:1;visibility:visible}
.menu-inner{padding:calc(var(--header) + 28px) 28px 40px;display:flex;flex-direction:column;gap:28px}
.menu-logo{width:220px;height:auto;opacity:.95}
#menuList{display:flex;flex-direction:column;border-top:1px solid rgba(192,161,113,.3)}
#menuList a{
  display:flex;align-items:baseline;gap:14px;padding:14px 0;border-bottom:1px solid rgba(192,161,113,.3);
  font-family:var(--serif);font-weight:600;font-size:16px;letter-spacing:.08em;
}
#menuList i{font-family:var(--serif-en);font-style:normal;font-weight:400;font-size:12px;color:var(--gold)}
#menuList small{margin-left:auto;font-family:var(--serif-en);font-size:12px;letter-spacing:.06em;color:var(--gold)}

/* ---------- CTA（括弧で挟むリンク：参考URLの「( View All )」） ---------- */
.cta{
  position:relative;display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:16px 22px;border:1px solid var(--gold);
  transition:background-color .35s var(--ease),color .35s var(--ease);
}
.cta-en{font-family:var(--serif-en);font-size:18px;letter-spacing:.01em}
.cta-ja{font-size:12px;font-weight:500;letter-spacing:.12em}
.cta-en::before,.cta-en::after{font-family:var(--serif-en);color:var(--gold);transition:margin .35s var(--ease)}
.cta-en::before{content:"( ";}
.cta-en::after{content:" )"}
.cta--gold{background:var(--gold);color:var(--navy)}
.cta--gold .cta-en::before,.cta--gold .cta-en::after{color:var(--navy)}
.menu-cta{display:flex;flex-direction:column;gap:10px}

/* ---------- PC レール ---------- */
.rail{display:none}
@media (min-width:900px){
  :root{--header:64px}
  .rail{
    position:fixed;z-index:3;top:0;bottom:0;display:flex;flex-direction:column;justify-content:space-between;
    width:calc((100vw - var(--col)) / 2);padding:44px clamp(28px,4vw,64px);color:var(--base);
  }
  .rail--left{left:0}
  .rail--right{right:0;align-items:flex-end}
  .rail-logo img{width:clamp(200px,17vw,260px);height:auto}
  .rail-copy{display:flex;flex-direction:column;gap:14px}
  .rail-en{font-family:var(--serif-en);font-size:clamp(40px,4.2vw,64px);line-height:1;color:#fff}
  .rail-catch{font-family:var(--serif);font-weight:600;font-size:clamp(20px,1.8vw,26px);line-height:1.6;letter-spacing:.1em}
  .rail-job{display:flex;flex-direction:column;gap:2px;font-size:13px;letter-spacing:.08em}
  .rail-job dt{font-family:var(--serif-en);font-size:11px;letter-spacing:.35em;color:var(--gold);margin-bottom:6px}
  .rail-job dd::before{content:"";display:inline-block;width:14px;height:1px;margin-right:10px;vertical-align:middle;background:var(--gold)}
  .rail-since{font-family:var(--serif-en);font-size:11px;letter-spacing:.3em;color:var(--gold)}
  .rail-progress{display:flex;align-items:center;gap:12px;font-family:var(--serif-en);font-size:14px;color:var(--gold)}
  .rail-progress div{width:90px;height:1px;background:rgba(192,161,113,.3)}
  .rail-progress i{display:block;height:1px;width:25%;background:var(--gold);transition:width .6s var(--ease)}
  .rail-cta{display:flex;flex-direction:column;gap:12px;width:min(100%,280px)}
  .rail-cta .cta{color:var(--base)}
  .rail-cta .cta--gold{color:var(--navy)}
  .cta:hover{background:var(--base);color:var(--navy)}
  .cta:hover .cta-en::before{margin-right:.4em}
  .cta:hover .cta-en::after{margin-left:.4em}
  .header-cta{display:none}
  .slider{box-shadow:0 0 0 1px rgba(192,161,113,.25),0 30px 80px rgba(0,0,0,.45)}
}
@media (hover:hover){
  .hlink:hover::before{transform:translate(-3px,-52%)}
  .hlink:hover::after{transform:translate(3px,-52%)}
}

/* ---------- 画面サイズ調整 ---------- */
@media (max-height:700px){
  .page{padding-top:calc(var(--header) + 8px);padding-bottom:58px}
  .page-grid{gap:14px}
  .sec-en{font-size:38px}
  .catch{font-size:22px;margin-top:10px}
  .sec-body{gap:9px;font-size:13.5px;line-height:1.85}
  .hero-en{font-size:38px}
  .hero-catch{font-size:24px}
  .bg-num{font-size:150px}
  .lead{font-size:19px}
  .cycle{gap:22px}
  .cycle::after{left:calc(50% - 80px);right:calc(50% - 80px)}
  .cycle::before{left:calc(50% - 80px)}
  .voices img{width:52px}
  .voices{gap:0}
  .bubble{margin-bottom:18px;padding:6px 12px}
  .hero-copy{padding-bottom:52px}
  .swipe-hint span{display:none}
  .ginza{margin:-8px 0 -10px}
  .ginza svg{max-height:58px}
  .cycle li{width:58px;height:58px}
  .cycle b{font-size:14px}
  .lead{font-size:18px}
}
@media (min-width:400px) and (min-height:820px){
  .sec-body{font-size:14.5px}
  .catch{font-size:27px}
}
@media (max-width:380px){
  .site-header{padding:0 8px 0 14px}
  .brand-logo{width:132px;height:24px}
  .header-cta{gap:0}
  .hlink{font-size:10.5px;padding:6px 6px}
}
@media (min-height:800px){
  .page--hero::after{background:linear-gradient(to bottom,rgba(227,231,233,0) 58%,rgba(227,231,233,.9) 72%,#E3E7E9 84%)}
}
