/* 案A「シャッター」 — 日光自動車整備工場 試作 2026-10-03 */
:root{
  --deep:#1f4d34;
  --deep-d:#163f29;
  --mid:#2f6a49;
  --pale:#d9e5dd;
  --paler:#eef4f0;
  --ink:#161616;
  --white:#fff;
  --display:"Dela Gothic One","Zen Maru Gothic",sans-serif;
  --body-font:"BIZ UDPGothic","Hiragino Sans","Noto Sans JP",sans-serif;
}

*{box-sizing:border-box}
body{
  margin:0;
  background:var(--white);
  color:var(--ink);
  font-family:var(--body-font);
  font-weight:400;
  font-size:17px;
  line-height:1.9;
  -webkit-text-size-adjust:100%;
  overflow-wrap:break-word;
  overflow-x:hidden;
}
.shop-name,.work-name,.section-head,.site-head-name,.inside-label,.shop-kind{
  word-break:keep-all;
  overflow-wrap:normal;
}
img{max-width:100%;display:block}
h1,h2,h3,p,ul,dl,dd,dt{margin:0;padding:0}
ul{list-style:none}
a{color:inherit}

/* ===== ヘッダー ===== */
.site-head{
  background:var(--white);
  height:52px;
  display:flex;
  align-items:center;
  padding:0 20px;
  border-bottom:1px solid #e4e4e4;
}
.site-head-name{
  font-size:15px;
  font-weight:700;
  letter-spacing:.02em;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* ===== シャッターの節 ===== */
.gate{
  position:relative;
  background:var(--paler);
}
.stage{
  position:relative;
}
.shutter,.inside{
  width:100%;
}
.shutter{
  background-color:var(--deep);
  background-image:repeating-linear-gradient(to bottom,var(--deep) 0,var(--deep) 24px,var(--deep-d) 24px,var(--deep-d) 27px,var(--mid) 27px,var(--mid) 28px);
  background-size:100% 28px;
  background-repeat:repeat;
  min-height:100svh;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  position:relative;
}
.shutter-inner{
  width:100%;
  max-width:350px;
  padding:110px 20px 0;
  text-align:center;
}
.shop-kind{
  font-family:var(--body-font);
  font-size:14px;
  font-weight:700;
  color:var(--white);
  margin:0 0 6px;
  letter-spacing:.04em;
}
.shop-name{
  font-family:var(--display);
  font-weight:400;
  font-size:52px;
  line-height:1.2;
  color:var(--white);
  letter-spacing:.02em;
  margin:0;
}
.shop-name-line{
  display:inline-block;
  white-space:nowrap;
}
.shop-copy{
  font-family:var(--body-font);
  font-size:17px;
  font-weight:400;
  color:var(--white);
  margin:16px 0 0;
  line-height:1.8;
}
.scroll-cue{
  font-family:var(--body-font);
  font-size:15px;
  color:var(--white);
  margin:28px 0 0;
  opacity:.9;
}
.shutter-handle{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:6px;
  background:var(--white);
}

.inside{
  background:var(--paler);
  display:flex;
  align-items:center;
  justify-content:center;
}
.inside-inner{
  width:100%;
  max-width:350px;
  padding:40px 20px 56px;
  opacity:1;
  transform:none;
}
.inside-label{
  font-family:var(--body-font);
  font-size:18px;
  font-weight:700;
  color:var(--ink);
  margin:0 0 18px;
}
.work-list{margin:0 0 28px}
.work-item{
  padding:18px 0;
  border-bottom:1px solid var(--deep);
}
.work-item:first-child{border-top:1px solid var(--deep)}
.work-name{
  font-family:var(--display);
  font-weight:400;
  font-size:56px;
  line-height:1.1;
  color:var(--ink);
  display:flex;
  align-items:baseline;
  gap:10px;
  flex-wrap:wrap;
}
.work-tag{
  font-family:var(--body-font);
  font-size:15px;
  font-weight:700;
  color:var(--mid);
}
.plate{
  border:2px solid var(--deep);
  background:var(--paler);
  padding:16px 18px;
}
.plate-main{
  font-family:var(--body-font);
  font-size:22px;
  font-weight:700;
  color:var(--ink);
  margin:0 0 6px;
}
.plate-sub{
  white-space:nowrap;
  font-family:var(--body-font);
  font-size:15px;
  font-weight:400;
  color:var(--ink);
  margin:0;
}

/* JS有効時：シャッターが上から下に覆い、スクロールで上がる */
html.js .gate{height:220svh}
html.js .stage{position:sticky;top:0;height:100svh;overflow:hidden}
html.js .shutter,html.js .inside{
  position:absolute;
  inset:0;
  min-height:0;
  height:100%;
}
html.js .shutter{z-index:2}
html.js .inside{z-index:1}
html.js .inside-inner{
  opacity:1;
  transform:none;
}
html.js .inside.revealed .inside-inner{
  opacity:1;
  transform:translateY(0);
}

/* 強制表示の保険（2.5秒後。JSが途中で止まっても本文は必ず見える） */
html.js.force-show .inside-inner{opacity:1!important;transform:none!important}

/* reduced-motion：JSなしと同じ通常の縦積みに戻し、完成状態で静止させる */
@media (prefers-reduced-motion:reduce){
  html.js .gate{height:auto}
  html.js .stage{position:static;height:auto;overflow:visible}
  html.js .shutter,html.js .inside{position:static;inset:auto;width:100%;height:auto}
  html.js .shutter{min-height:100svh}
  html.js .inside-inner{opacity:1!important;transform:none!important;transition:none!important}
}

/* ===== 事業所 ===== */
.office{
  background:var(--white);
  padding:56px 20px;
}
.section-head{
  font-family:var(--body-font);
  font-size:28px;
  font-weight:700;
  color:var(--ink);
  margin:0 0 28px;
}
.info-table{margin:0 0 32px}
.info-row{
  display:grid;
  grid-template-columns:96px minmax(0,1fr);
  gap:4px 16px;
  padding:16px 0;
  border-bottom:1px solid #ddd;
}
.info-row:first-child{border-top:1px solid #ddd}
.info-table dt{
  font-size:15px;
  color:#555;
  font-weight:400;
}
.info-table dd{
  font-size:17px;
  color:var(--ink);
}

.btn{
  display:inline-block;
  text-decoration:none;
  text-align:center;
  font-family:var(--body-font);
  cursor:pointer;
  border-radius:0;
  transition:background-color .15s ease,color .15s ease,transform .1s ease;
}
.btn:active{transform:translateY(2px)}
.btn:focus-visible{outline:2px solid var(--deep);outline-offset:2px}
.btn-outline{
  border:2px solid var(--deep);
  background:var(--white);
  color:var(--deep);
  font-size:17px;
  font-weight:700;
  padding:16px 28px;
}
.btn-outline:hover{background:var(--paler)}

/* ===== 相談の窓口 ===== */
.contact{
  background:var(--paler);
  padding:56px 20px;
}
.contact-lead{
  font-size:17px;
  margin:0 0 28px;
}
.contact-buttons{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.btn-solid{
  width:100%;
  height:56px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--deep);
  color:var(--white);
  font-size:17px;
  font-weight:700;
  letter-spacing:.02em;
}
.btn-solid:hover{background:var(--deep-d)}
.contact-demo-note{
  font-size:15px;
  color:#555;
  margin:14px 0 0;
}
.contact-reassure{
  font-size:17px;
  margin:20px 0 0;
}

/* ===== フッター ===== */
.site-foot{
  background:var(--white);
}
.ft-note{
  padding:28px 20px;
  font-size:13px;
  line-height:1.8;
  color:#555;
}
.ft-note b{color:var(--ink)}
.made-by{
  text-align:center;
  font-size:12.5px;
  color:#999;
  padding:0 20px 28px;
}

/* ===== PC（1024px以上） ===== */
@media (min-width:1024px){
  .shutter-inner{max-width:720px;padding-top:0}
  .shutter{align-items:center}
  .shop-name{font-size:104px}
  .shop-copy{font-size:22px}
  .inside-inner{max-width:900px}
  .work-list{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:0 40px;
    margin-bottom:36px;
  }
  .work-item{border-bottom:none;border-right:1px solid var(--deep);padding:0 40px 0 0}
  .work-item:first-child{border-top:none}
  .work-item:last-child{border-right:none;padding-right:0}
  .work-name{font-size:88px}
  .plate{width:560px;margin:0}

  .office,.contact{
    max-width:1100px;
    margin:0 auto;
    padding:80px 40px;
  }
  .office-grid,.contact-grid{display:flex;gap:60px}
  .office .section-head,.contact .section-head{
    width:280px;
    flex:none;
    margin:0;
  }
  .office-body,.contact-body{flex:1}
}

/* 見比べ用の切り替えバー（デモだけ） */
.hk-switch{position:fixed;top:0;left:0;right:0;z-index:9600;height:40px;display:flex;align-items:center;gap:6px;padding:0 10px;background:#111;color:#fff;font:600 13px/1 "Hiragino Sans","Noto Sans JP",sans-serif;letter-spacing:0}
.hk-switch span{color:#aaa;margin-right:4px;white-space:nowrap;font-weight:400}
.hk-switch a{flex:1;text-align:center;color:#fff;text-decoration:none;padding:8px 0;border:1px solid #666}
.hk-switch a.on{background:#fff;color:#111;border-color:#fff}
body{padding-top:40px}
html.js .stage{top:40px !important;height:calc(100svh - 40px) !important}
@media (prefers-reduced-motion:reduce){ html.js .stage{position:static !important;height:auto !important} }
