/* テンプレートの部品のスタイル（すべてのページで読む）：インタビューの上部と本文、ENTRY の帯、固定ページのキャッチ など */
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}
.skip-link:focus{position:fixed!important;top:8px;left:8px;width:auto;height:auto;clip:auto;z-index:100;background:#fff;padding:8px 16px}
.prose img{max-width:100%;height:auto}
.movie iframe,.movie video{position:absolute;inset:0;width:100%;height:100%;border:0}

/* 募集要項の本文の表（.spec-body）。スマホでは項目名の下に内容を積む */
.closed-note{font-weight:700;color:var(--sub)}
.spec-body table{width:100%;border-collapse:collapse}
.spec-body th,.spec-body td{border-bottom:1px solid var(--line);padding:16px 12px;text-align:left;vertical-align:top}
.spec-body th{width:24%;white-space:nowrap}
.spec-body + .center{margin:64px 0 24px}
@media (max-width:900px){
  .spec-body table,.spec-body tbody,.spec-body tr,.spec-body th,.spec-body td{display:block;width:100%}
  .spec-body th{border-bottom:0;padding:14px 4px 6px;background:none;color:var(--blue);white-space:normal}
  .spec-body td{padding:0 4px 16px}
  .spec-body tr{border-bottom:1px solid var(--line)}
}

/* インタビューの上部（parts/story.php）：写真の右に、斜めに区切った淡い色の板とキャッチ */
.ivx-hero{position:relative;height:min(66vh,640px);min-height:460px;overflow:hidden}
.ivx-ph{position:absolute;top:0;bottom:0;overflow:hidden;background-image:var(--ph);background-size:cover;background-repeat:no-repeat}
/* スマホは小さいサイズの写真（--ph-s があるとき） */
@media (max-width:600px){.ivx-ph{background-image:var(--ph-s,var(--ph))}}
.ivx-panel{position:absolute;top:0;bottom:0;display:flex;flex-direction:column;justify-content:center}
.ivx-hand{font-family:"Caveat",cursive;font-size:28px;line-height:1.2;transform:rotate(-4deg);transform-origin:left;margin-bottom:18px}
.ivx-catch{word-break:auto-phrase;font-size:clamp(26px,2.5vw,38px);font-weight:700;line-height:1.55;letter-spacing:.06em}
.ivx-catch.s{font-size:clamp(22px,2.1vw,32px)}
/* 改行位置を決めた長いキャッチは、一番長い行が板に収まる大きさまで小さくする */
.ivx-catch.fit{white-space:nowrap;font-size:clamp(17px,calc(31vw / var(--len,14)),32px)}
.iv5-hero.wide .ivx-catch.fit{font-size:clamp(17px,calc(26vw / var(--len,14)),32px)}
.ivx-name{margin-top:32px;display:flex;flex-direction:column;gap:6px}
.ivx-name small{font-size:14px;letter-spacing:.3em}
.ivx-name b{font-size:30px;letter-spacing:.3em;line-height:1.3}
/* 写真の右端は、色の板の斜めの線の上端まで（それより右は板に隠れる） */
.iv5-hero .ivx-ph{left:0;right:46%;background-position:40% 30%}
.iv5-hero .ivx-panel{right:0;width:56%;padding:48px max(40px,calc((100vw - 1140px) / 2 + 40px)) 0 9%;color:var(--ink);isolation:isolate}
.iv5-hero .ivx-panel::before,.iv5-hero .ivx-panel::after{content:"";position:absolute;inset:0;z-index:-1;clip-path:polygon(16% 0,100% 0,100% 100%,0 100%)}
.iv5-hero .ivx-panel::before{background:var(--grad-bg);transform:translateX(-14px)}
.iv5-hero .ivx-panel::after{background:linear-gradient(110deg,#f2f9fd,#f4fbf8 50%,#fbfdee)}
.iv5-hero .ivx-hand{color:var(--blue)}
.iv5-hero .ivx-name b{color:#222}
/* wide：横長の写真を幅いっぱいに出し、左に色の板を重ねる（板の右の端が斜め） */
.iv5-hero.wide .ivx-ph{left:0;right:0;background-position:right center}
.iv5-hero.wide .ivx-panel{left:0;right:auto;width:50%;padding:48px 9% 0 max(40px,calc((100vw - 1140px) / 2 + 40px))}
.iv5-hero.wide .ivx-panel::before,.iv5-hero.wide .ivx-panel::after{clip-path:polygon(0 0,100% 0,84% 100%,0 100%)}
.iv5-hero.wide .ivx-panel::before{transform:translateX(14px)}

/* インタビューの本文：番号は使わず、見出しのマーカーと話題の間の写真で区切る */
.ivx-body h2{word-break:auto-phrase;font-size:clamp(26px,2.6vw,36px);line-height:1.6;letter-spacing:.06em;font-weight:700;margin:0 0 40px}
.ivx-body p{font-size:16px;line-height:2.1}
.ivx-body p+p{margin-top:20px}
.ivx-lead{max-width:720px;margin:0 auto 104px;text-align:center}
.ivx-lead p{font-size:18px;font-weight:700}
.ivx-lead::after{content:"";display:block;width:56px;height:3px;margin:28px auto 0;border-radius:2px;background:var(--grad-bg)}
.iv5-body{overflow-x:clip} /* 写真の影が右にはみ出しても横にスクロールしないように */
.iv5-body h2{margin-left:-4px}
.iv5-body h2 span{background:linear-gradient(transparent 64%,#c9efe3 64%,#eef8c0 94%,transparent 94%) no-repeat 0 0/100% 100%;padding:0 4px}
.iv5-body .ivx-sec{max-width:780px;margin:0 auto;text-align:left}
.iv5-body .ivx-sec+.ivx-sec{margin-top:112px}
.iv5-band{position:relative;overflow:hidden;aspect-ratio:5/2;max-width:1000px;margin:112px auto;border-radius:24px}
.iv5-band i{position:absolute;inset:0;background:center 22%/cover}
/* side：本文の写真を切り抜かずに、文章の横に左右交互に並べる */
.iv5-body .ivx-sec.side{max-width:1080px;padding-bottom:40px}
.iv5-body .ivx-sec.side .ivx-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:56px;align-items:start}
.iv5-body .ivx-sec.side.r .ivx-fig{order:2}
/* 写真の後ろに、写真と同じ形の淡い板を2枚、少しずつ右下にずらして重ねる（写真そのものを型にする） */
.ivx-fig{position:relative;isolation:isolate}
.ivx-fig::before,.ivx-fig::after{content:"";position:absolute;inset:0;-webkit-mask:var(--m) top center/100% auto no-repeat;mask:var(--m) top center/100% auto no-repeat}
.ivx-fig::before{z-index:-1;background:#dde8ef;transform:translate(4.5%,6.2%)}
.ivx-fig::after{z-index:-2;background:#edf3f7;transform:translate(8%,12.4%)}
.ivx-fig figure{margin:0}
.ivx-fig img{display:block;width:100%;height:auto}
/* JPEG の写真は、形を別の PNG（data-mask）で切り抜く */
.ivx-fig img[data-mask]{-webkit-mask:var(--m) top center/100% auto no-repeat;mask:var(--m) top center/100% auto no-repeat}
/* 結びの署名：細いグラデーションの線の下に、会社名・肩書き・氏名を右にそろえる */
.ivx-sign{max-width:780px;margin:104px auto 0;padding-top:40px;display:flex;align-items:center;justify-content:flex-end;gap:24px;position:relative}
.ivx-sign::before{content:"";position:absolute;top:0;right:0;width:240px;height:2px;border-radius:2px;background:var(--grad-bg)}
.ivx-sign p{display:flex;flex-direction:column;align-items:flex-end;text-align:right;gap:4px;font-size:13px;line-height:1.6;color:var(--sub);letter-spacing:.08em}
.ivx-sign b{margin-top:4px;margin-right:-.3em;font-size:26px;line-height:1.3;letter-spacing:.3em;color:#222}

/* 一日のスケジュール（本文の dl.schedule）：左に時刻、真ん中に3色の線と丸、右に淡い色のカード */
.schedule{margin:8px 0 0;padding:0}
.schedule div{position:relative;display:grid;grid-template-columns:56px 28px minmax(0,1fr);align-items:start;padding-bottom:16px}
.schedule div::before{content:"";grid-column:2;grid-row:1;justify-self:center;width:14px;height:14px;margin-top:17px;border-radius:50%;background:#fff;box-shadow:0 0 0 3px #6fc3f2;position:relative;z-index:1}
.schedule div:nth-child(3n+2)::before{box-shadow:0 0 0 3px #7fd6c4}
.schedule div:nth-child(3n)::before{box-shadow:0 0 0 3px #c9e36a}
.schedule div:not(:last-child)::after{content:"";position:absolute;left:69px;top:31px;bottom:-17px;width:2px;background:linear-gradient(#a6e6d6,#cfe8f5)}
.schedule dt{grid-column:1;grid-row:1;font-family:Lato,sans-serif;font-weight:900;font-size:17px;line-height:1;color:var(--blue);text-align:right;padding-top:16px;letter-spacing:.02em}
.schedule dd{grid-column:3;grid-row:1;margin:0;background:#f4f9fc;border-radius:14px;padding:12px 18px 13px;font-size:14px;line-height:1.8;color:var(--sub)}
.schedule dd b{display:block;font-size:16px;line-height:1.6;color:#222;margin-bottom:2px}
.iv5-body .ivx-sec.sched{max-width:1080px}
.iv5-body .ivx-sec.sched h2{text-align:center}
/* 2列に分けたとき：左の列の最後の下と右の列の最初の上に、だんだん消える点を3つ置いて続きを示す */
.schedule-2{display:grid;grid-template-columns:1fr 1fr;gap:0 48px;margin-top:8px}
.schedule-2 .schedule{position:relative;margin:0}
.schedule-2 .schedule:first-child div:last-child::after,.schedule-2 .schedule:last-child::before{content:"";position:absolute;left:68px;width:4px;height:34px;background:radial-gradient(circle,#8fd3c4 1.7px,transparent 2.2px) center top/4px 11px repeat-y}
.schedule-2 .schedule:first-child div:last-child::after{top:36px;-webkit-mask:linear-gradient(#000,transparent);mask:linear-gradient(#000,transparent)}
.schedule-2 .schedule:last-child::before{top:-26px;-webkit-mask:linear-gradient(transparent,#000);mask:linear-gradient(transparent,#000)}

@media (max-width:900px){
  .ivx-hero{height:auto;min-height:0;display:flex;flex-direction:column}
  .ivx-ph{position:relative;inset:auto;aspect-ratio:4/3;width:100%}
  .ivx-panel{position:relative;inset:auto;width:auto !important;padding:32px 20px 40px !important}
  .iv5-hero .ivx-panel::before{transform:translateY(-8px);clip-path:polygon(0 12px,100% 0,100% 100%,0 100%)}
  .iv5-hero .ivx-panel::after{clip-path:polygon(0 12px,100% 0,100% 100%,0 100%)}
  .ivx-catch{font-size:24px;white-space:normal}
  .ivx-name{margin-top:20px}
  .ivx-catch.fit,.iv5-hero.wide .ivx-catch.fit{font-size:min(24px,calc((100vw - 44px) / var(--len,14)))}
  .ivx-name b{font-size:22px}
  .ivx-body h2{margin-bottom:24px}
  .ivx-lead{margin-bottom:64px;text-align:left}
  .ivx-lead p{font-size:16px}
  .iv5-band{aspect-ratio:3/2;margin:64px 0;border-radius:16px}
  .iv5-body .ivx-sec+.ivx-sec{margin-top:64px}
  .iv5-hero.wide .ivx-ph{background-position:70% center}
  .iv5-hero.wide .ivx-panel{padding:32px 20px 40px}
  .iv5-hero.wide .ivx-panel::before,.iv5-hero.wide .ivx-panel::after{clip-path:polygon(0 12px,100% 0,100% 100%,0 100%)}
  .iv5-hero.wide .ivx-panel::before{transform:translateY(-8px)}
  .iv5-body .ivx-sec.side .ivx-row{grid-template-columns:1fr;gap:28px}
  .iv5-body .ivx-sec.side.r .ivx-fig{order:0}
  .ivx-fig::before{transform:translate(3%,6.2%)}
  .ivx-fig::after{transform:translate(5.5%,12.4%)}
  .ivx-sign{margin-top:72px;padding-top:32px;gap:16px}
  .ivx-sign::before{width:160px}
  .ivx-sign b{font-size:21px}
  .schedule div{grid-template-columns:48px 24px minmax(0,1fr)}
  .schedule div:not(:last-child)::after{left:59px}
  .schedule dt{font-size:15px}
  .schedule dd{padding:11px 14px 12px}
  .schedule-2{grid-template-columns:1fr}
  .schedule-2 .schedule:first-child div:last-child{padding-bottom:16px}
  .schedule-2 .schedule:first-child div:last-child::after{left:59px;top:31px;bottom:-17px;height:auto;width:2px;background:linear-gradient(#a6e6d6,#cfe8f5);-webkit-mask:none;mask:none}
  .schedule-2 .schedule:last-child::before{display:none}
}

/* インタビューの動き（motion.js が動くときだけ）
 * 上部：写真は少し引いて止まり、キャッチと名前は順にふわっと出る。話題の間の写真：幕が通り過ぎて現れ、少し引いて止まる
 * 見出しのマーカー：画面に入ったら、左からペンで引くように伸びる。2行の見出しは1行ずつ順に */
.mo-on .ivx-ph{animation:ivx-zoom 1.8s cubic-bezier(.2,.7,.2,1) both}
.mo-on .ivx-panel>*{animation:ivx-up .8s cubic-bezier(.2,.7,.2,1) both}
.mo-on .ivx-panel>:nth-child(1){animation-delay:.2s}
.mo-on .ivx-panel>:nth-child(2){animation-delay:.32s}
.mo-on .ivx-panel>:nth-child(3){animation-delay:.44s}
.mo-on .iv5-band.mo{opacity:1;transform:none}
.mo-on .iv5-band.mo::after{content:"";position:absolute;inset:0;z-index:2;background:var(--grad-bg);transform-origin:left;transform:scaleX(0)}
.mo-on .iv5-band.mo i{opacity:0}
.mo-on .iv5-band.mo.in::after{animation:ivx-wipe 1.1s cubic-bezier(.7,0,.2,1) both}
.mo-on .iv5-band.mo.in i{animation:ivx-show 0s .55s both,ivx-zoom 1.6s .55s cubic-bezier(.2,.7,.2,1) both}
.mo-on .ivx-sec.mo h2 span{background-size:0% 100%}
.mo-on .ivx-sec.mo.in h2 span{animation:ivx-line .7s cubic-bezier(.6,0,.3,1) .35s both}
.mo-on .ivx-sec.mo.in h2 span+br+span{animation-delay:.95s}
@keyframes ivx-wipe{0%{transform:scaleX(0);transform-origin:left}50%{transform:scaleX(1);transform-origin:left}50.1%{transform:scaleX(1);transform-origin:right}100%{transform:scaleX(0);transform-origin:right}}
@keyframes ivx-zoom{from{transform:scale(1.12)}to{transform:none}}
@keyframes ivx-show{from{opacity:0}to{opacity:1}}
@keyframes ivx-up{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:none}}
@keyframes ivx-line{from{background-size:0% 100%}to{background-size:100% 100%}}
@media (prefers-reduced-motion:reduce){
  .ivx-ph,.ivx-panel>*,.iv5-band i,.iv5-band::after{animation:none !important}
  .ivx-sec h2 span{animation:none !important}
}

/* 固定ページのキャッチ（page_catch・page_sub）：見出し帯の下、本文の先頭に中央ぞろえで */
.pg-catch{text-align:center;margin:0 auto 40px}
.pg-catch .c1{font-size:clamp(26px,2.8vw,36px);font-weight:700;line-height:1.5;letter-spacing:.06em;color:#222}
.pg-catch .c2{margin-top:10px;font-size:16px;color:var(--sub);letter-spacing:.04em}
.pg-catch::after{content:"";display:block;width:56px;height:3px;margin:24px auto 0;border-radius:2px;background:var(--grad-bg)}
@media (max-width:900px){.pg-catch{margin-bottom:28px}.pg-catch .c1{font-size:24px}.pg-catch .c2{font-size:14px}}

/* ENTRY の帯（parts/entry-band.php）：写真に青を重ね、左に英字・キャッチ・リンク、右に白い丸の ENTRY ボタン
 * 写真は上下に余白を持たせ、スクロールに合わせて少しずつ動かす（en.js） */
section.entry.ez{position:relative;overflow:hidden;isolation:isolate;color:#fff;padding:110px 0;background:#1d95d4}
.ez svg{width:1em;height:1em;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;flex:none}
.ez-photo{position:absolute;inset:-90px 0;background:center 50%/cover;will-change:transform}
.ez-photo::after{content:"";position:absolute;inset:0;background:linear-gradient(110deg,rgba(18,110,170,.92) 0%,rgba(29,149,212,.78) 45%,rgba(85,200,216,.55) 100%)}
.ez .wrap{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:56px}
.ez-hand{font-family:"Caveat",cursive;font-size:36px;transform:rotate(-4deg);transform-origin:left;margin-bottom:14px;opacity:.95}
.ez-catch{font-size:clamp(34px,4vw,54px);font-weight:700;line-height:1.4;letter-spacing:.06em}
.ez-en{margin-top:12px;font-family:Lato,sans-serif;font-weight:700;letter-spacing:.06em;opacity:.85}
.ez-links{display:flex;flex-wrap:wrap;gap:12px 36px;list-style:none;margin:44px 0 0;padding:0}
.ez-links a{display:inline-flex;align-items:center;gap:10px;color:#fff;font-weight:700;font-size:15px;padding-bottom:6px;background:linear-gradient(currentColor,currentColor) 0 100%/100% 1px no-repeat;transition:gap .3s}
@media (hover:hover){.ez-links a:hover{gap:16px;opacity:1}}
section.ez .big.ez-circle{flex:none;width:320px;height:320px;margin:0;padding:1.5em 0 0;border-radius:50%;background:#fff;color:var(--ink);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;font-size:17px;box-shadow:0 30px 60px -24px rgba(5,40,80,.55);font-weight:700;transition:transform .3s}
@media (hover:hover){section.ez .big.ez-circle:hover{transform:scale(1.05)}}
section.ez .big.ez-circle span{display:inline-flex;font-family:Lato,sans-serif;font-weight:900;font-size:48px;letter-spacing:.14em;line-height:1.1}
/* ENTRY の文字（en.js が1文字ずつ i に分ける）：4秒おきに1文字ずつ跳ね、ホバーで文字のグラデーションが流れる */
.entry .big span i{font-style:normal;display:inline-block;background:var(--grad-btn);background-size:600% 100%;background-position:calc(var(--i) * 20%) 50%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:en-jump 4s cubic-bezier(.3,1.6,.5,1) infinite;animation-delay:calc(var(--i) * .08s);transition:background-position .6s}
@media (hover:hover){.entry .big:hover span i{background-position:calc(100% - var(--i) * 20%) 50%}}
@keyframes en-jump{0%,70%,100%{transform:none}76%{transform:translateY(-14px)}82%{transform:none}}
@media (prefers-reduced-motion:reduce){.entry .big span i{animation:none}}
@media (max-width:900px){
  section.entry.ez{padding:64px 0}
  .ez .wrap{flex-direction:column;align-items:flex-start;gap:40px}
  .ez-catch{font-size:30px}
  .ez-links{margin-top:28px;flex-direction:column}
  section.ez .big.ez-circle{width:230px;height:230px;align-self:center}
  section.ez .big.ez-circle span{font-size:36px}
}
