/* 案A「シャッター」v3 生成器 — 2026-10-03（土台＝directions/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,.area-text{
  word-break:keep-all;
  overflow-wrap:normal;
}
img{max-width:100%;height:auto;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;
  line-height:1.2;
  color:var(--white);
  letter-spacing:.02em;
  margin:0;
}
.shop-name-2{font-size:52px}
.shop-name-1{font-size:56px}
.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{
  position:relative;
  background:var(--paler);
  display:flex;
  align-items:center;
  justify-content:center;
}
.inside-bg{
  position:absolute;
  inset:0;
  z-index:0;
  margin:0;
}
.inside-bg picture,.inside-bg img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}
.inside-bg::after{
  content:"";
  position:absolute;
  inset:0;
  background:var(--photo-overlay,rgba(0,0,0,.55));
  opacity:1;
  transition:opacity .6s ease;
}
/* シャッターが80%上がった所から「光が入る」＝覆いの濃さを.55→.45相当に。
   指示どおり filter は使わず、transform/opacity だけで表現する：
   背景は固定で.55濃さのまま、::after自体のopacityを1→0.818に落とすことで
   実効アルファを .55*0.818≒.45 まで下げる（色の変更ではなく opacity 遷移） */
.inside.lit .inside-bg::after{opacity:.818}
.inside-bg img,.inside-bg picture{
  transform:scale(1.06);
  transition:transform .6s ease;
}
.inside.lit .inside-bg img,.inside.lit .inside-bg picture{transform:scale(1)}
/* JS無効・reduced-motion：完成状態（光が入った後）で静止 */
html:not(.js) .inside-bg::after{opacity:.818}
html:not(.js) .inside-bg img,html:not(.js) .inside-bg picture{transform:none}
.inside.has-photo{background:var(--deep)}
.inside.has-photo .inside-inner{position:relative;z-index:1}
.inside.has-photo .inside-label{color:var(--white)}
.inside.has-photo .work-name{color:var(--white)}
.inside.has-photo .work-tag{color:var(--pale)}
.inside.has-photo .work-desc{color:rgba(255,255,255,.85)}
.inside.has-photo .work-item{border-color:rgba(255,255,255,.45)}
.inside.has-photo .work-item:first-child{border-top-color:rgba(255,255,255,.45)}
.inside-inner{
  width:100%;
  max-width:350px;
  padding:40px 20px 56px;
  opacity:1;
  transform:none;
}
.inside-main{width:100%}
.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:16px 0;
  border-bottom:1px solid var(--deep);
}
.work-item:first-child{border-top:1px solid var(--deep)}
/* 「一覧」ではなく看板職人が壁に文字を組んだ配置：主役は左端、通常・補足は字下げして段差をつける */
.work-item.tier-normal{padding-left:24px}
.work-item.tier-small{padding-left:40px}
.work-name{
  display:block;
  font-family:var(--display);
  font-weight:400;
  line-height:1.1;
  color:var(--ink);
  /* 「・」で改行しても１区間が収まりきらない保険：最後の手段としてだけ途中で折り返す
     （通常はkeep-all優先。overflow-wrapは「他に折り返す場所が無い時だけ」働く） */
  overflow-wrap:break-word;
}
/* 3段階：主役1件／通常（複数可）／補足。393幅＝44/31/18、PC＝88/48/24（下のPCブロックで上書き） */
.work-name--main{font-size:44px}
.work-name--normal{font-size:31px}
.work-name--small{font-size:18px}
/* 「・」区切りの最長区間が段の幅に収まらない長い作業名は一段小さく（390だけの措置。
   PCは段の幅が広いので縮めない＝@media(max-width:1023px)で閉じる） */
@media (max-width:1023px){
  .work-name--main.is-long{font-size:32px}
  .work-name--normal.is-long{font-size:24px}
  .work-name--small.is-long{font-size:16px}
}
.work-tag{
  display:inline-block;
  margin-left:12px;
  font-family:var(--body-font);
  font-size:15px;
  font-weight:700;
  color:var(--mid);
  vertical-align:middle;
}
.work-desc{
  font-family:var(--body-font);
  font-size:15px;
  font-weight:400;
  color:#555;
  margin:8px 0 0;
}
/* 一点の札＝四角いカードではなく、地と同色系に枠線1pxだけ（現場の壁の許可票）。
   横幅を狭く・左右を不均等にして「貼られた感じ」を出す（偏心配置） */
.plate{
  border:1px solid var(--deep);
  background:transparent;
  padding:16px 18px;
  margin:0 42px 0 20px; /* inside-innerの左右padding20pxと合わせて段差をつける（横幅は約20%狭くなる） */
}
.inside.has-photo .plate{
  border-color:rgba(255,255,255,.8);
  background:rgba(0,0,0,.35);
}
.plate-label{
  font-family:var(--body-font);
  font-size:13px;
  font-weight:700;
  color:var(--mid);
  margin:0 0 4px;
}
.inside.has-photo .plate-label{color:var(--pale)}
.plate-main{
  font-family:var(--body-font);
  font-size:22px;
  word-break:keep-all;
  font-weight:700;
  color:var(--ink);
  margin:0 0 6px;
}
.inside.has-photo .plate-main{color:var(--white)}
.plate-sub{
  font-family:var(--body-font);
  font-size:15px;
  font-weight:400;
  color:var(--ink);
  margin:0;
}
.inside.has-photo .plate-sub{color:rgba(255,255,255,.85)}
.plate-label:last-child,.plate-main:last-child{margin-bottom:0}

/* JS有効時：シャッターが上から下に覆い、スクロールで上がる */
html.js .gate{height:175svh}
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{position:static;inset:auto;width:100%;height:auto;min-height:100svh}
  /* .insideはposition:relativeのままにする（写真の.inside-bgがposition:absoluteで
     このボックスを基準にしているため。staticにすると写真が画面全体を覆ってしまう） */
  html.js .inside{position:relative;inset:auto;width:100%;height:auto}
  html.js .inside-inner{opacity:1!important;transform:none!important;transition:none!important}
  /* 写真の「光が入る」演出も完成状態（lit）で静止させる */
  .inside-bg::after{opacity:.818!important}
  .inside-bg img,.inside-bg picture{transform:none!important}
}

/* ===== 作業の様子／対応地域／紹介／事業所／相談：共通の二段組（節の上下余白は56/72の2種類だけ） ===== */
.office,.contact,.works,.areas,.about{
  padding:56px 20px;
}
.office,.areas{background:var(--white)}
.contact,.works,.about{background:var(--paler)}
.section-head{
  font-family:var(--body-font);
  font-size:28px;
  font-weight:700;
  color:var(--ink);
  margin:0 0 28px;
}
.split-body .work-list{margin:0}

/* 作業の様子＝「工場の窓」：横長に切って上下に細い罫線（1px・deep色で統一）。カード風にしない */
.works-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:32px;
}
.work-card{margin:0}
.work-photo{
  position:relative;
  display:block;
  aspect-ratio:12/5;
  overflow:hidden;
  border-top:1px solid var(--deep);
  border-bottom:1px solid var(--deep);
}
.work-photo picture,.work-photo img{width:100%;height:100%;object-fit:cover}
.work-title{
  margin:8px 0 0;
  font-size:13px;
  font-weight:400;
  text-align:left;
  color:#555;
}
.works-note{
  margin:24px 0 0;
  font-size:13.5px;
  color:#555;
  line-height:1.7;
}

/* 対応地域 */
.area-text{font-size:17px;line-height:1.9}

/* 紹介 */
.about-text{font-size:17px;line-height:1.9}

/* 事業所 */
.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 var(--deep);
}
.info-row:first-child{border-top:1px solid var(--deep)}
.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)}

/* ===== 相談方法 ===== */
.ask-line{
  font-family:var(--display);
  font-weight:400;
  font-size:36px;
  line-height:1.4;
  color:var(--ink);
  margin:0 0 32px;
}
.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:15px;
  color:#555;
  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){
  /* 屋号を完全中央（50%）から左44%付近へ：ビューポート全幅に対して6vw左へ寄せる
     （6vw ÷ 画面幅 = 6% なので、どの幅でも中心が50%→44%になる） */
  .shutter-inner{max-width:720px;padding-top:0;transform:translateX(-6vw)}
  .shutter{align-items:center}
  .shop-name-2{font-size:104px}
  .shop-name-1{font-size:112px}
  .shop-copy{font-size:22px}

  /* 奥＝「頼める仕事」は右下、一点の札は左下に離して置く（左右差140px・スマホの中央積みをやめる） */
  .inside-inner{
    max-width:1200px;
    width:100%;
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:40px;
    padding:0 200px 72px 60px;
  }
  .inside-main{order:2;max-width:640px;width:auto}
  .plate{order:1;flex:none;align-self:flex-end;width:470px;margin:0}

  /* 「一覧」ではなく看板職人が壁に文字を組んだ配置：段ごとに大きく字下げする */
  .work-item.tier-normal{padding-left:32px}
  .work-item.tier-small{padding-left:64px}
  .work-name--main{font-size:88px}
  .work-name--normal{font-size:48px}
  .work-name--small{font-size:24px}

  .office,.contact,.works,.areas,.about{
    max-width:1100px;
    margin:0 auto;
    padding:72px 40px;
  }
  .split{display:flex;gap:60px}
  .split>.section-head{
    width:280px;
    flex:none;
    margin:0;
  }
  .split-body{flex:1}
  .works-grid{grid-template-columns:1fr 1fr 1fr;gap:28px}
}

/* 仕事が5つ以上の店：一点の札は舞台の外の紙札の節に */
.point-sec{background:var(--paler);padding:40px 20px 48px}
.point-wrap{max-width:350px;margin:0 auto}
.point-sec .plate{margin:0 42px 0 0}
@media (min-width:1024px){.point-sec{padding:56px 40px 64px}.point-wrap{max-width:1100px}.point-sec .plate{width:470px;margin:0}}
