/* Y-CONNECT 1page / horizontal sections */
:root{
  --ink:#111111; --ground:#F5F5F2; --line:#DADAD4; --mute:#5E5E58; --rule:#BDBDB5;
  --accent:#1F2A66; /* ワイコネクトのロゴ色 */
  --en:"Inter Tight",system-ui,sans-serif;
  --ja:"Zen Kaku Gothic New",system-ui,sans-serif;
  --pad:56px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--ground);color:var(--ink);font-family:var(--ja);-webkit-font-smoothing:antialiased}
a{color:var(--ink)} a:hover{color:var(--accent)}
img{max-width:100%}

.yc{display:flex;align-items:flex-start;min-height:100vh}

/* ---- left nav (PC) ---- */
.yc-nav{position:sticky;top:0;flex:0 0 248px;height:100vh;display:flex;flex-direction:column;justify-content:space-between;padding:40px 28px;background:var(--ground);z-index:5}
.yc-brand{display:flex;flex-direction:column;gap:6px}
.yc-logo{text-decoration:none;font-family:var(--en);font-weight:800;font-size:26px;letter-spacing:-.01em}
.yc-nav .yc-logo{display:flex;flex-direction:column;align-items:flex-start;gap:16px;white-space:nowrap}
.yc-mark{display:block;width:44px;height:44px;flex:0 0 auto}
.yc-tagline{font-family:var(--en);font-size:12px;color:var(--mute);letter-spacing:.04em}
.yc-navlist{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}
.yc-navlink{display:flex;align-items:baseline;gap:12px;padding:10px 0;min-height:44px;text-decoration:none;font-family:var(--en);font-weight:600;font-size:15px;letter-spacing:.02em;border-left:2px solid transparent;transition:padding .25s,color .25s,border-color .25s}
.yc-navlink span{font-size:11px;color:var(--mute);width:20px}
.yc-navlink small{font-family:var(--ja);font-weight:500;font-size:11px;color:var(--mute);letter-spacing:.08em}
.yc-navlink.is-active{color:var(--accent);padding-left:10px;border-left-color:var(--accent)}
.yc-navlink.is-active span{color:var(--accent)}
.yc-navfoot{display:flex;flex-direction:column;gap:14px;font-size:12px;color:var(--mute);font-family:var(--en)}
.yc-en{font-family:var(--en);font-weight:600;font-size:13px;min-height:44px;display:flex;align-items:center}

/* ---- SP bar ---- */
.yc-spbar{display:none}

/* ---- sections ---- */
.yc-main{flex:1 1 0;min-width:0}
.yc-sec{position:relative;border-bottom:1px solid var(--line)}
.yc-pin{position:relative;height:100vh;min-height:560px;display:flex;flex-direction:column}
.yc-stop{position:absolute;left:0;width:1px;height:1px;pointer-events:none}
@media (min-width:901px){
  .yc-pin{position:sticky;top:0;overflow:hidden}
  /* お問い合わせは1画面に収める（横スクロールなし） */
  #contact .yc-track > .yc-panel{flex:1 1 0;width:auto;min-width:0}
  /* 画面同士の間を左の余白（56px）より広くし、止まった時に前の画面の切れ端が残らないようにする */
  .yc-pin .yc-track:not(.yc-copytrack){gap:64px}
  .yc-pin .yc-track{overflow:hidden;scroll-snap-type:none;clip-path:inset(0 0 0 1px) /* 見切れ位置＝青い本線の右端 */}
}
.yc-sechead{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:16px var(--pad) 0;min-height:64px}
.yc-label{margin:0;font-family:var(--en);font-size:13px;font-weight:400;letter-spacing:.12em;color:var(--mute)}
.yc-ctrl{display:flex;gap:6px;align-items:center}
.yc-hint{font-family:var(--en);font-size:12px;letter-spacing:.12em;color:var(--mute);margin-right:8px}
.yc-btn{width:32px;height:32px;border-radius:999px;border:1px solid var(--ink);background:transparent;color:var(--ink);display:flex;align-items:center;justify-content:center;cursor:pointer}
.yc-btn:hover{background:var(--ink);color:var(--ground)}

.yc-track{position:relative;flex:1 1 auto;display:flex;gap:40px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-padding-left:var(--pad);padding:32px var(--pad) 40px;scrollbar-width:none;overscroll-behavior-x:contain;will-change:transform}
.yc-track::-webkit-scrollbar{display:none}
.yc-panel{flex:0 0 auto;scroll-snap-align:start;height:100%;display:flex;flex-direction:column}
.yc-pl{width:min(64vw,920px)}
.yc-pm{width:min(42vw,600px)}
.yc-ps{width:min(30vw,420px)}
.yc-bottom{justify-content:flex-end;gap:20px}
.yc-between{justify-content:space-between}
/* 縦中央付近に置きつつ、行数が違っても見出しの頭の高さをそろえる（中央より約75px上から始める） */
.yc-mid{justify-content:flex-start;gap:20px}
/* 事業内容の説明文 */
.yc-svc-desc{margin:4px 0 0;font-size:15px;line-height:1.9;color:#3A3A36;max-width:36em}
/* 代表者プロフィール */
.yc-profile{gap:16px}
.yc-profile-name{margin:0;font-size:24px;font-weight:700;letter-spacing:.06em;display:flex;align-items:baseline;gap:14px}
.yc-profile-name small{font-size:13px;font-weight:500;color:var(--mute);letter-spacing:.04em}
.yc-profile-text{margin:0;font-size:15px;line-height:2;color:#3A3A36;max-width:34em}
/* カタカナの字間を詰めて1行に収める */
.yc-tight{font-feature-settings:"palt" 1;letter-spacing:-.02em;white-space:nowrap}
.yc-mid::before{content:"";flex:0 0 calc(50% - 135px)}
.yc-center{justify-content:center}

.yc-photo{display:block;width:100%;height:100%;object-fit:cover;border-radius:4px;opacity:.7;transition:opacity .6s ease}
.yc-photo.is-in{opacity:1}

/* type */
.yc-hero{margin:0;font-family:var(--en);font-weight:800;font-size:148px;line-height:.9;letter-spacing:-.04em}
/* Y と - の間を詰める（字形の空きを視覚的に補正） */
.yc-ky{margin-right:-.1em}
.yc-hero-1line{white-space:nowrap;font-size:clamp(56px,9vw,148px)}
.yc-hero-s{font-size:104px;line-height:.95}
.yc-hero-sub{margin:0;font-family:var(--en);font-size:24px;color:var(--accent)}
.yc-display{margin:0;font-family:var(--en);font-weight:800;font-size:72px;line-height:1;letter-spacing:-.03em}
.yc-big{margin:0;font-size:28px;font-weight:700;line-height:1.6}
.yc-b34{font-size:34px}
.yc-m30{font-size:30px;font-weight:500;line-height:1.7}
.yc-m26{font-size:26px;font-weight:500;line-height:1.8}
.yc-b30{font-size:30px;line-height:1.7}
.yc-b40{font-size:40px;line-height:1.4}
.yc-b28{font-size:28px}
.yc-b24{font-size:24px;line-height:1.7}
.yc-w500{font-weight:500}
.yc-num{font-family:var(--en);font-weight:800;font-size:96px;line-height:1;color:var(--accent)}
.yc-kicker{font-family:var(--en);font-weight:600;font-size:13px;letter-spacing:.1em;color:var(--accent)}
.yc-body{margin:0;font-size:17px;line-height:1.8;color:#3A3A36}
.yc-more{font-family:var(--en);font-weight:600;font-size:15px;min-height:44px;display:flex;align-items:center}

.yc-dl{margin:0;display:grid;grid-template-columns:120px 1fr;font-size:16px;line-height:1.7}
.yc-dl dt,.yc-dl dd{padding:18px 0;border-top:1px solid var(--rule)}
.yc-dl dt{color:var(--mute)}
.yc-dl dd{margin:0}
.yc-dl dt:last-of-type,.yc-dl dd:last-of-type{border-bottom:1px solid var(--rule)}

/* message copy */
/* 1画面に2行。行の高さを抑え、画面と画面の間を少し空ける */
.yc-copytrack{gap:1em;font-size:clamp(80px,22vh,240px)}
.yc-pauto{width:auto}
.yc-copy{justify-content:center}
.yc-copy > span{display:block;font-size:1em;font-weight:700;line-height:1.05;white-space:nowrap}
/* 1文字ずつの詰めは main.js の KERN で指定（ここでは字間を足し引きしない） */
.yc-kern{display:block;letter-spacing:0;font-feature-settings:normal}
.yc-kc{display:inline-block;position:relative}
.yc-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.yc-kern-debug .yc-kc[data-n]:not([data-n=""])::after{content:attr(data-n);position:absolute;top:-.32em;right:calc(var(--k, 0em) * -1);transform:translateX(50%);font:600 13px/1 var(--en);color:#fff;background:var(--accent);padding:3px 5px;border-radius:3px;letter-spacing:0}
.yc-copy-hit span{color:var(--accent)}
.yc-copy-sub{width:auto;justify-content:center;padding-left:48px;border-left:2px solid var(--ink);margin-left:.3em;height:auto;align-self:center}
.yc-copy-sub p{margin:0;font-size:28px;font-weight:700;line-height:1.7;letter-spacing:.02em;white-space:nowrap}

/* privacy：小さな文字の段組みで、横に読み進める */
.yc-policy{width:auto;justify-content:flex-start}
.yc-policy-cols{height:100%;width:300px;column-width:300px;column-gap:48px;column-fill:auto;column-rule:1px solid var(--line)}
.yc-policy-lead{margin:0 0 20px;font-size:12.5px;line-height:1.85;color:var(--ink)}
.yc-pol{margin:0 0 22px}
.yc-pol h3{margin:0 0 8px;padding-top:10px;border-top:1px solid var(--rule);font-size:13px;font-weight:700;line-height:1.5;display:flex;gap:8px;align-items:baseline;break-after:avoid}
.yc-pol h3 span{font-family:var(--en);font-weight:600;font-size:11px;color:var(--accent);letter-spacing:.06em}
.yc-pol h4{margin:12px 0 4px;font-size:12px;font-weight:700;color:var(--ink);break-after:avoid}
.yc-pol p,.yc-pol li{font-size:12px;line-height:1.8;color:#4A4A45}
.yc-pol p{margin:0 0 6px}
.yc-pol ol,.yc-pol ul{margin:0 0 8px;padding-left:1.6em}
.yc-pol ol ol{margin:4px 0}
.yc-pol li{margin:0 0 2px}
.yc-pol a{color:var(--accent);word-break:break-all}
.yc-pol-links{list-style:none;padding-left:0 !important}
.yc-pol-links li{margin-bottom:8px}

/* form */
.yc-form{display:flex;flex-direction:column;gap:18px;width:100%}
.yc-form[hidden]{display:none}
.yc-field{display:flex;flex-direction:column;gap:8px}
.yc-field label{font-size:14px;font-weight:500}
.yc-field input,.yc-field textarea{font:inherit;font-size:16px;padding:14px 16px;border:1px solid var(--rule);border-radius:4px;background:#fff;color:var(--ink)}
.yc-field input:focus,.yc-field textarea:focus{outline:2px solid var(--accent);outline-offset:1px}
.yc-note{margin:0;font-size:13px;color:var(--mute)}
.yc-submit{align-self:flex-start;min-height:52px;padding:0 36px;border:none;border-radius:999px;background:var(--accent);color:#fff;font-family:var(--en);font-weight:600;font-size:16px;cursor:pointer}
.yc-submit:disabled{opacity:.5;cursor:wait}
.yc-captcha{min-height:78px}
.yc-form-msg{margin:0;font-size:13px;font-weight:500;color:#B3261E}
.yc-form-msg[hidden]{display:none}
/* 高さの低い画面ではフォームの間隔を詰めて1画面に収める */
@media (min-width:901px) and (max-height:860px){
  .yc-form{gap:12px}
  .yc-field{gap:4px}
  .yc-field input,.yc-field textarea{padding:10px 14px}
  .yc-field textarea{height:84px}
}
.yc-done{display:flex;flex-direction:column;gap:16px}
.yc-done[hidden]{display:none}
.yc-done-title{font-family:var(--en);font-weight:800;font-size:56px;line-height:1;color:var(--accent)}
.yc-done p{margin:0;font-size:18px;font-weight:700;line-height:1.8}

/* ---- scroll effects (injected by main.js) ---- */
/* 縦の本線＝左メニューとの境界線 */
.yc-thread{position:absolute;left:0;top:0;bottom:0;width:1px;background:var(--accent);transform-origin:top center;transform:scaleY(0);pointer-events:none}
.yc-fork{position:absolute;left:0;top:0;width:120px;height:120px;pointer-events:none;overflow:visible}
.yc-fork path{fill:none;stroke:var(--accent);stroke-width:1}
.yc-hline{position:absolute;left:40px;right:0;top:79.5px;height:1px;background:var(--accent);transform-origin:left center;transform:scaleX(0);pointer-events:none}
.yc-bar{position:absolute;left:var(--pad);right:var(--pad);bottom:20px;height:2px;background:var(--line);pointer-events:none}
.yc-bar span{display:block;height:100%;background:var(--accent);transform-origin:left center;transform:scaleX(0)}
/* route map (PC) */
.yc-route{position:absolute;left:120px;right:calc(var(--pad) + 8px);top:80px;height:0;z-index:2;opacity:0}
.yc-route[hidden]{display:none}
.yc-route-fill{position:absolute;left:0;right:0;top:-2px;height:4px;background:var(--accent);transform-origin:left center;transform:scaleX(0);pointer-events:none}
.yc-st{position:absolute;top:0;width:32px;height:32px;margin:-16px 0 0 -16px;padding:0;border:0;background:transparent;cursor:pointer;display:flex;align-items:center;justify-content:center}
.yc-st::before{content:"";width:10px;height:10px;border-radius:50%;box-sizing:border-box;border:2px solid var(--accent);background:var(--ground);transition:background .2s,transform .2s}
.yc-st.is-passed::before{background:var(--accent)}
.yc-st:hover::before{transform:scale(1.4)}
.yc-st:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:50%}
.yc-runner{position:absolute;top:0;width:18px;height:18px;margin:-9px 0 0 -9px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 6px rgba(31,42,102,.15);pointer-events:none}
.yc-count{font-family:var(--en);font-size:13px;letter-spacing:.12em;color:var(--mute);margin-right:12px;font-variant-numeric:tabular-nums}
@media (min-width:901px){ .yc-bar{display:none} }

/* ---- SP ---- */
@media (max-width:900px){
  :root{--pad:20px}
  .yc{flex-direction:column}
  .yc-nav{display:none}
  .yc-spbar{display:flex;position:sticky;top:0;z-index:5;flex-direction:column;gap:8px;width:100%;padding:14px 20px 10px;background:var(--ground);border-bottom:1px solid var(--line)}
  .yc-spbar-top{display:flex;align-items:center;justify-content:space-between}
  .yc-spbar .yc-logo{font-size:20px}
  .yc-chips{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none}
  .yc-chips::-webkit-scrollbar{display:none}
  .yc-chip{flex:0 0 auto;padding:10px 14px;min-height:44px;border:1px solid var(--rule);border-radius:999px;text-decoration:none;font-family:var(--en);font-weight:600;font-size:13px;display:flex;align-items:center}
  .yc-chip.is-active{background:var(--ink);color:var(--ground);border-color:var(--ink)}
  .yc-main{width:100%}
  .yc-sec{scroll-margin-top:110px}
  .yc-pin{height:auto;min-height:0}
  .yc-sechead{padding:28px 20px 0;min-height:0}
  .yc-ctrl{display:none}
  .yc-track{gap:24px;padding:20px 20px 32px;height:520px}
  .yc-pl,.yc-pm,.yc-ps{width:84vw}
  .yc-hero{font-size:56px}
  .yc-hero-1line{font-size:clamp(36px,11vw,56px)}
  .yc-display{font-size:44px}
  .yc-big,.yc-b34,.yc-m30,.yc-m26,.yc-b30,.yc-b40,.yc-b28{font-size:22px}
  .yc-num{font-size:64px}
  .yc-policy{width:84vw;overflow-y:auto}
  .yc-policy-cols{width:auto !important;height:auto;columns:auto;column-rule:none}
  .yc-copytrack{font-size:clamp(48px,15vw,72px)}
  .yc-pauto{width:auto}
  .yc-copy-sub{width:auto;padding-left:24px}
  .yc-copy-sub p{font-size:20px}
  .yc-thread{left:8px}
  .yc-fork,.yc-hline,.yc-bar,.yc-route{display:none}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .yc-photo{transition:none}
}
