/* 喜江建設 HP：案件の見た目（TOP） */

/* ---------- FV ---------- */
.fv {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: center;
  padding: calc(var(--header-h) + 24px) var(--gutter) 24px;
  overflow: hidden;
}
/* 背景の大きな弧（参考の同心円をピーチで。外の輪が少し濃い） */
.fv::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 34%;
  width: max(180vw, 900px);
  aspect-ratio: 1;
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(closest-side,
    color-mix(in srgb, var(--c-sub) 35%, var(--c-base)) 0 80%,
    color-mix(in srgb, var(--c-sub) 70%, var(--c-base)) 80% 100%);
  z-index: -1;
}
.fv__stage { position: relative; display: grid; justify-items: center; }
.fv__en {
  margin-bottom: 6px;
  font-family: var(--ff-en);
  font-weight: 600;
  font-size: 9.4vw;
  line-height: 1;
  white-space: nowrap;
  color: var(--c-sub);
  z-index: 0;
}
.fv__catch {
  position: relative;
  z-index: 2;
  justify-self: center;
  padding-right: 58px; /* 左の手書きの線のぶんだけ右にも空けて、文字を中央に見せる（PC は右へずらすので 0） */
  white-space: nowrap;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: clamp(16px, 2vw, 30px);
  letter-spacing: 0.08em;
}
.fv__catch svg { display: inline-block; width: 48px; margin-right: 10px; vertical-align: middle; color: var(--c-ink); }
.fv__art {
  position: relative;
  z-index: 1;
  width: calc(100% + var(--gutter) * 2);
  margin-top: 4px;
  mix-blend-mode: multiply;
  clip-path: circle(0% at 50% 50%);
  animation: fv-open var(--dur-intro) var(--ease) 0.25s forwards;
}
.fv__art img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  -webkit-mask-image: radial-gradient(closest-side, #000 86%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 86%, transparent 100%);
  animation: fv-float 4.6s ease-in-out infinite alternate;
}
@keyframes fv-open { to { clip-path: circle(75% at 50% 50%); } }
/* ぷかぷか浮かぶ（出る動きの clip-path とは別の要素に付ける） */
@keyframes fv-float { from { translate: 0 -10px; rotate: -1deg; } to { translate: 0 12px; rotate: 1deg; } }
.fv__copy {
  position: relative;
  z-index: 2;
  margin-top: var(--sp-p);
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: var(--fs-sub);
  line-height: 1.6;
  letter-spacing: var(--ls-head);
}

@media (min-width: 960px) {
  .fv { min-height: 100svh; padding-bottom: 56px; }
  .fv__en { position: absolute; top: 2%; left: 50%; translate: -50% 0; margin: 0; font-size: clamp(34px, 10vw, 200px); }
  .fv__art { width: min(76vw, (100svh - 190px) * 1.5, 1600px); }
  .fv__catch { translate: 18% 0; padding-right: 0; }
  .fv__catch svg { width: 64px; }
  .fv__copy { position: absolute; left: var(--gutter); bottom: 56px; margin: 0; font-size: 20px; }
}

/* ---------- ABOUT US：3つの円 ---------- */
.about { background: color-mix(in srgb, var(--c-sub) 35%, var(--c-base)); }
.about__grid { display: grid; gap: var(--sp-s); }
.about__body { display: grid; gap: var(--sp-g); justify-items: start; }
.about__body .txt { max-width: 36em; }
/* 「〜について」のボタンと直前の本文・表の間は --sp-b（段落の間 --sp-p より広く、見出しとの間 --sp-g より狭く） */
.about__body > .btn-circle, .service__head > .btn-circle, .company__body > .btn-circle { margin-top: calc(var(--sp-b) - var(--sp-g)); }
.venn {
  position: relative;
  order: 2;
  width: min(100%, calc(var(--wrap) * 0.46));
  aspect-ratio: 1 / 0.92;
  justify-self: center;
  color: var(--c-ink);
}
.venn__item {
  position: absolute;
  width: 46%;
  aspect-ratio: 1;
  animation: venn-float 4.2s ease-in-out infinite alternate;
}
.venn__item--top { left: 27%; top: 14%; z-index: 1; animation-delay: -1.4s; }
.venn__item--l { left: 6%; top: 50%; animation-delay: -2.8s; }
.venn__item--r { left: 48%; top: 50%; }
@keyframes venn-float { from { translate: 0 -5px; rotate: -1.5deg; } to { translate: 0 5px; rotate: 1.5deg; } }
.venn__circle {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 2px;
  overflow: hidden;
  transition: scale 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
/* 粒のざらつき（参考のリソグラフ調） */
.venn__circle::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  opacity: 0.18;
  pointer-events: none;
}
.venn__circle--top { background: var(--c-accent); color: var(--c-ink); }
.venn__circle--l { background: var(--c-ink-soft); color: var(--c-dark-text); }
.venn__circle--r { background: var(--c-sub-deep); color: var(--c-ink); }
.venn__ttl, .venn__sub { position: relative; z-index: 1; }
.venn__ttl { font-family: var(--ff-head); font-weight: 700; font-size: clamp(15px, 1.7vw, 34px); letter-spacing: 0.06em; }
.venn__sub { font-size: clamp(13px, 0.95vw, 19px); }
/* 円に乗る小さなイラスト */
.venn__chara { position: absolute; z-index: 2; height: auto; pointer-events: none; transition: translate 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.venn__chara--top { width: 44%; left: 50%; top: -40%; margin-left: -22%; }
.venn__chara--l { width: 46%; left: -26%; top: 64%; }
.venn__chara--r { width: 44%; right: -22%; top: 70%; }
@media (hover: hover) {
  .venn__item:hover .venn__circle { scale: 1.06; }
  .venn__item:hover .venn__chara { translate: 0 -10px; }
}
/* きらめき */
.venn__spark { position: absolute; width: 4%; color: var(--c-accent); animation: spark 2.4s ease-in-out infinite; }
.venn__spark--1 { left: 22%; top: 30%; }
.venn__spark--2 { right: 18%; top: 34%; width: 3%; animation-delay: -0.8s; color: var(--c-ink-soft); }
.venn__spark--3 { left: 47%; bottom: 0; animation-delay: -1.6s; }
@keyframes spark { 0%, 100% { scale: 0.4; opacity: 0.3; } 50% { scale: 1; opacity: 1; } }
.venn__note {
  position: absolute;
  top: 0;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: clamp(13px, 0.95vw, 19px);
  line-height: 1.5;
}
.venn__note--l { left: 0; }
.venn__note--r { right: 0; text-align: right; }
.venn__arrow { position: absolute; top: 15%; width: 7%; }
.venn__arrow--l { left: 10%; }
.venn__arrow--r { right: 10%; }
/* 矢印は手で描くように伸びる */
.venn__arrow.rv { transform: none; }
.venn__arrow path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.venn__arrow.rv.is-on path { stroke-dashoffset: 0; transition: stroke-dashoffset 0.8s ease-out 0.5s; }
/* 遊び：円がぽんと弾んで出る */
.venn__circle.rv { opacity: 0; transform: scale(0.4); transition: scale 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.venn__circle.rv.is-on { animation: venn-pop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) var(--rv-delay, 0s) both; }
@keyframes venn-pop { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: none; } }

/* ---------- 事業紹介：写真＋小見出しの並び ---------- */
.service__grid { display: grid; gap: var(--sp-s); }
.service__head { display: grid; gap: var(--sp-g); justify-items: start; align-content: start; }
.media-list { display: grid; }
.media {
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: var(--sp-p);
  align-items: start;
  padding-block: var(--sp-p);
  border-bottom: 1px solid var(--c-line);
}
.media:first-child { padding-top: 0; }
.media__img { position: relative; }
.media__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-s); }
.media__txt { display: grid; gap: var(--sp-1); font-size: var(--fs-small); }
.media__ttl { font-family: var(--ff-head); font-weight: 700; font-size: var(--fs-sub); line-height: 1.35; letter-spacing: var(--ls-head); }
/* 遊び：写真の角に三角コーン（常に軽く揺れる） */
.media__img--cone::after {
  content: "";
  position: absolute;
  right: -10px;
  top: -14px;
  width: 26px;
  height: 32px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: linear-gradient(var(--c-accent) 0 34%, var(--c-base) 34% 50%, var(--c-accent) 50% 72%, var(--c-base) 72% 86%, var(--c-accent) 86%);
  transform-origin: 50% 100%;
  animation: cone-sway 3.6s ease-in-out infinite alternate;
}
@keyframes cone-sway { from { rotate: -6deg; } to { rotate: 6deg; } }

@media (max-width: 959px) {
  .venn { aspect-ratio: 1 / 1.02; }
  .venn__item--top { top: 20%; }
  .venn__item--l, .venn__item--r { top: 54%; }
  .venn__chara--top { width: 32%; top: -19%; margin-left: -16%; }
  /* 左右のイラストのはみ出しを同じ量にして、円の図を幅の中で中央に（見切れ防止・10/25） */
  .venn { width: 92%; }
  .venn__chara--l { width: 40%; left: -12%; top: 72%; }
  .venn__chara--r { width: 40%; right: -12%; top: 76%; }
  .venn__note { max-width: 46%; letter-spacing: 0; }
  .venn__arrow { top: 12%; }
}

@media (min-width: 960px) {
  .about__grid { grid-template-columns: 1fr 1fr; align-items: center; column-gap: 80px; }
  .venn { order: 0; }
  .service__grid { grid-template-columns: 34% 1fr; column-gap: 8%; align-items: start; }
  .service__head { position: sticky; top: calc(var(--header-h) + 40px); }
  .media { grid-template-columns: 1fr 1fr; gap: 40px; padding-block: 40px; }
  .media__txt { font-size: 14px; }
}

/* ---------- 会社概要：表＋看板犬の写真の枠 ---------- */
.company { background: color-mix(in srgb, var(--c-sub) 35%, var(--c-base)); }
.company__grid { display: grid; gap: var(--sp-s); }
.company__body { display: grid; gap: var(--sp-g); justify-items: start; }
.info-table { width: 100%; margin: 0; border-top: 1px solid var(--c-line); }
.info-table__row { display: grid; grid-template-columns: 6em 1fr; gap: var(--sp-p); padding-block: 16px; border-bottom: 1px solid var(--c-line); }
.info-table dt { font-family: var(--ff-head); font-weight: 700; }
.info-table dd { margin: 0; }
.dog-frame { position: relative; margin: 0; justify-self: center; width: min(72%, calc(var(--wrap) * 0.3)); }
.dog-frame__capsule {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 4.4;
  border-radius: 999px;
  background: var(--c-sub);
  border: 2px dashed var(--c-sub-deep);
  overflow: hidden;
}
.dog-frame__capsule img { width: 70%; }
.greet__photo .dog-frame__capsule img { width: 50%; }
/* ---------- 採用情報：濃い色のカード ---------- */
.recruit-card {
  position: relative;
  display: grid;
  gap: var(--sp-p);
  padding: 40px 24px 88px;
  border-radius: var(--radius-l);
  background: var(--c-dark);
  color: var(--c-dark-text);
  overflow: hidden;
}
.recruit-card__en { font-family: var(--ff-en); font-weight: 700; font-size: var(--fs-en); line-height: 1; color: var(--c-dark-text); }
.recruit-card__body { position: relative; z-index: 1; display: grid; gap: var(--sp-1); }
.recruit-card__ttl { font-family: var(--ff-head); font-weight: 700; font-size: var(--fs-sub); }
.recruit-card__txt { font-family: var(--ff-head); font-weight: 700; line-height: 1.7; }
.recruit-card__btn { position: relative; z-index: 1; color: var(--c-dark-text); justify-self: end; }
.recruit-card__btn .btn-circle__ring { border-color: var(--c-dark-text); }
.recruit-card__scene {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
}
/* 足もとの丘 */
.recruit-card__scene::before {
  content: "";
  position: absolute;
  left: -6%;
  right: -6%;
  bottom: 0;
  height: 26%;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: var(--c-dark-ghost);
}
.recruit-card__chara { position: absolute; bottom: 10%; transition: translate 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.recruit-card__chara--wave { left: 24%; width: 23%; }
.recruit-card__chara--senior { left: 50%; width: 20%; animation-delay: -0.3s; }
.recruit-card__cone {
  position: absolute;
  right: 4%;
  bottom: 14%;
  width: 7%;
  aspect-ratio: 26 / 32;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: linear-gradient(var(--c-accent) 0 34%, var(--c-base) 34% 50%, var(--c-accent) 50% 72%, var(--c-base) 72% 86%, var(--c-accent) 86%);
}
.recruit-card__cone--2 { right: 13%; bottom: 12%; width: 5%; }
/* 「募集中」の判子 */
.recruit-card__stamp {
  display: inline-grid;
  place-items: center;
  vertical-align: middle;
  margin-left: 0.3em;
  padding: 0.3em 0.5em;
  border: 3px solid var(--c-stamp);
  border-radius: 8px;
  color: var(--c-stamp);
  font-family: var(--ff-head);
  font-weight: 900;
  font-size: 0.32em;
  letter-spacing: 0.1em;
  rotate: -8deg;
}
.recruit-card.is-on .recruit-card__stamp { animation: stamp 0.5s cubic-bezier(0.5, 0, 0.75, 0) 0.6s both; }
/* 下を横切る工事のテープ（文字が流れ続ける） */
.recruit-card__tape {
  position: absolute;
  left: var(--sp-p); /* 11/4 先方「帯を枠内に収める」：カードの内側に置き、傾けない */
  right: var(--sp-p);
  bottom: 14px;
  display: flex;
  overflow: hidden;
  border-radius: var(--radius-s);
  padding-block: 8px;
  background: var(--c-accent);
  color: var(--c-ink);
  font-family: var(--ff-en);
  font-weight: 700;
  font-size: clamp(13px, 1vw, 18px);
  letter-spacing: 0.12em;
  white-space: nowrap;
}
.recruit-card__tape span { flex-shrink: 0; padding-right: 0.5em; animation: tape 24s linear infinite; }
@keyframes tape { to { transform: translateX(-100%); } }
@media (hover: hover) {
  .recruit-card:hover .recruit-card__chara { translate: 12px 0; }
  .recruit-card:hover .btn-circle__ring { background: var(--c-dark-text); color: var(--c-dark); }
}

/* ---------- 協力会社へ ---------- */
.partner { background: color-mix(in srgb, var(--c-sub) 35%, var(--c-base)); }
.partner__grid { display: grid; gap: var(--sp-g); }
.partner__body { display: grid; gap: var(--sp-b); justify-items: start; }
.partner__list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.partner__list li {
  padding: 14px 16px;
  border-radius: var(--radius-s);
  background: var(--c-base);
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: var(--fs-small);
}

@media (min-width: 960px) {
  .company__grid { grid-template-columns: 1fr 36%; column-gap: 12%; align-items: center; }
  .dog-frame { width: 100%; }
  .recruit-card { grid-template-columns: 1fr 1.1fr; grid-template-rows: auto auto 1fr; column-gap: 4%; align-items: start; padding: 64px 64px 104px; }
  .recruit-card__en, .recruit-card__body, .recruit-card__btn { grid-column: 1; }
  .recruit-card__btn { grid-row: 3; justify-self: start; align-self: end; }
  .recruit-card__txt { font-size: clamp(16px, 1.5vw, 30px); }
  .recruit-card__scene { grid-column: 2; grid-row: 1 / 4; align-self: center; }
  .partner__grid { grid-template-columns: 34% 1fr; column-gap: 8%; align-items: start; }
  .partner__list { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- 動き：ダイナミック・可愛さ（10/25 りょうさん「もっと動かしていい」） ---------- */
.ch { display: inline-block; }
/* FV の英字：1文字ずつ上から落ちて弾む */
.fv__en .ch { animation: ch-drop 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) calc(0.5s + var(--i) * 0.045s) both; }
@keyframes ch-drop { from { opacity: 0; transform: translateY(-0.9em) rotate(-14deg); } to { opacity: 1; transform: none; } }
/* FV のキャッチ：1文字ずつぽんと出る＋手書きの線が伸びる */
.fv__catch .ch { animation: ch-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) calc(1.1s + var(--i) * 0.05s) both; }
@keyframes ch-pop { from { opacity: 0; transform: scale(0.2) translateY(0.4em); } to { opacity: 1; transform: none; } }
.fv__catch svg path { stroke-dasharray: 90; stroke-dashoffset: 90; animation: line-draw 0.8s ease-out 1s forwards; }
@keyframes line-draw { to { stroke-dashoffset: 0; } }
/* FV のコピー：下からふわっと */
.fv__copy { animation: rise 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 1.6s both; }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
/* 見出しの英字：横から滑り込んで弾む */
.sec-head__en.rv { transform: translateX(-60px); transition: none; }
.sec-head__en.rv.is-on { animation: en-slide 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) var(--rv-delay, 0s) both; }
@keyframes en-slide { from { opacity: 0; transform: translateX(-60px) skewX(-12deg); } to { opacity: 1; transform: none; } }
/* 日本語の見出し：少し弾んで上がる */
.sec-head__ja.rv { transition: none; }
.sec-head__ja.rv.is-on { animation: rise 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) var(--rv-delay, 0s) both; }
/* 事業紹介の写真：下から幕が開いて、少し弾む */
.media.rv.is-on .media__img img { animation: img-open 0.9s cubic-bezier(0.34, 1.3, 0.64, 1) calc(var(--rv-delay, 0s) + 0.1s) both; }
@keyframes img-open { from { clip-path: inset(100% 0 0 0 round var(--radius-s)); scale: 1.12; } to { clip-path: inset(0 0 0 0 round var(--radius-s)); scale: 1; } }
/* 丸い矢印：矢印が常に小さく前へ */
.btn-circle__ring svg { animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 0%, 60%, 100% { translate: 0 0; } 30% { translate: 4px 0; } }
/* 看板犬：体を左右に揺らす（しっぽを振るように） */
.dog-frame__capsule img { transform-origin: 50% 100%; animation: wag 1.4s ease-in-out infinite alternate; }
@keyframes wag { from { rotate: -5deg; } to { rotate: 5deg; } }
/* 採用カードの作業員：一輪車でてくてく */
.recruit-card__chara { animation: walk 0.6s steps(2, jump-none) infinite alternate; }
@keyframes walk { from { transform: translateY(0); } to { transform: translateY(-4px); } }
/* 協力会社の名前：順にぽんと出る */
.partner__list.rv.is-on li { animation: ch-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) calc(var(--rv-delay, 0s) + var(--n) * 0.08s) both; }
.partner__list li:nth-child(1) { --n: 1; }
.partner__list li:nth-child(2) { --n: 2; }
.partner__list li:nth-child(3) { --n: 3; }
.partner__list li:nth-child(4) { --n: 4; }

/* ---------- 案B「ちぎり紙と判子」（10/25 りょうさん採用）：セクションの境目をちぎった紙に、見出しに「喜江」の判子。紙のざらつき ---------- */
/* ページ全体に紙のざらつき */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .2 0 0 0 0 .1 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.12;
  mix-blend-mode: multiply;
}
/* セクションの上端をちぎった紙の縁に（その面の色で、前の面に食い込む） */
.sec::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -22px;
  height: 24px;
  background: inherit;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 24' preserveAspectRatio='none'%3E%3Cpath d='M0 24V14l12-5 9 6 14-9 10 7 16-10 8 8 15-6 11 5 13-9 12 8 10-4 15 7 14-11 9 7 17-6 10 6 12-8 14 9 11-5 16 4 9-8 13 9 15-7 10 5 12-9 16 8 11-6 14 7 9-5 13 6V24Z'/%3E%3C/svg%3E") center / 100% 100%;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 24' preserveAspectRatio='none'%3E%3Cpath d='M0 24V14l12-5 9 6 14-9 10 7 16-10 8 8 15-6 11 5 13-9 12 8 10-4 15 7 14-11 9 7 17-6 10 6 12-8 14 9 11-5 16 4 9-8 13 9 15-7 10 5 12-9 16 8 11-6 14 7 9-5 13 6V24Z'/%3E%3C/svg%3E") center / 100% 100%;
}
.service, .recruit { background: var(--c-base); }
/* 見出しの横に「喜江」の判子がぽんと押される */
.hanko {
  position: relative;
  display: inline-grid;
  place-items: center;
  vertical-align: middle;
  margin-left: 0.3em;
  width: clamp(48px, 4.4vw, 80px);
  aspect-ratio: 1;
  border: 3px solid var(--c-stamp);
  border-radius: 10px;
  color: var(--c-stamp);
  font-family: var(--ff-head);
  font-weight: 900;
  font-size: clamp(15px, 1.4vw, 24px);
  line-height: 1.05;
  writing-mode: vertical-rl;
  rotate: 8deg;
  opacity: 0;
}
.hanko.is-on { animation: stamp 0.5s cubic-bezier(0.5, 0, 0.75, 0) 0.4s both; }
@keyframes stamp { 0% { opacity: 0; transform: scale(2.4); } 70% { opacity: 1; transform: scale(0.92); } 100% { opacity: 0.9; transform: scale(1); } }
/* 写真・カードの角にマスキングテープ */
.media__img::before, .recruit-card::before {
  content: "";
  position: absolute;
  z-index: 2;
  left: 10%;
  top: -10px;
  width: 64px;
  height: 20px;
  background: color-mix(in srgb, var(--c-accent) 70%, transparent);
  rotate: -6deg;
}
.recruit-card { overflow: visible; }

/* ===================== 下層ページ（10/27 寺嶋さん「可能なページだけ下層ページを」） ===================== */

/* ---------- 下層の FV：英字（1文字ずつ落ちる）＋日本語＋パンくず＋浮かぶイラスト ---------- */
.hero-sub {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--header-h) + var(--sp-g)) 0 calc(var(--sp-s) + 40px);
}
.hero-sub::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 55%;
  width: max(180vw, 900px);
  aspect-ratio: 1;
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(closest-side,
    color-mix(in srgb, var(--c-sub) 35%, var(--c-base)) 0 80%,
    color-mix(in srgb, var(--c-sub) 70%, var(--c-base)) 80% 100%);
  z-index: -1;
}
.hero-sub__inner { position: relative; z-index: 1; display: grid; gap: var(--sp-1); justify-items: start; }
.hero-sub__en { font-family: var(--ff-en); font-weight: 700; font-size: min(calc(var(--fs-en) * 1.6), 12vw); line-height: 1; color: var(--c-sub-deep); }
.hero-sub__en .ch { animation: ch-drop 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) calc(0.15s + var(--i) * 0.045s) both; }
.hero-sub__ja { font-family: var(--ff-head); font-weight: 700; font-size: var(--fs-head); line-height: var(--lh-head); letter-spacing: var(--ls-head); animation: rise 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s both; }
.hero-sub__crumb { margin-top: var(--sp-p); font-size: var(--fs-small); color: var(--c-ink-soft); }
.hero-sub__crumb a { text-decoration: underline; text-underline-offset: 3px; }
.hero-sub__crumb span { margin-inline: 0.5em; }
.hero-sub__chara {
  position: absolute;
  right: var(--gutter);
  bottom: 36px; /* 下のセクションのちぎり縁（24px）に足元が隠れないように */
  width: auto;
  max-width: 46vw;
  object-fit: contain;
  height: clamp(150px, 24vw, 440px); /* 縦長・横長のイラストでも大きさがそろうよう高さで決める（10/27 もっと大きく） */
  animation: rise 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.7s both, fv-float 4.6s ease-in-out 1.6s infinite alternate;
}

.hero-sub + .sec { padding-top: var(--sp-g); } /* 上部と最初の見出しの間を詰める（10/27） */
/* 下層の本文は節で折らず、ふつうに流す（10/27 寺嶋さん「改行なしの方が一般的なサイトとして見やすい」） */
.hero-sub ~ .sec .cl { display: inline; }
.hero-sub ~ .sec :is(.body, .strength__ttl, .flow__ttl) { word-break: normal; }

/* ---------- 私たちについて：代表挨拶 ---------- */
.greet { background: color-mix(in srgb, var(--c-sub) 35%, var(--c-base)); }
.greet__grid { display: grid; gap: var(--sp-s); }
.greet__body { display: grid; gap: var(--sp-g); justify-items: start; }
.greet__body .txt { max-width: none; }
.greet__sign { margin-top: calc(var(--sp-b) - var(--sp-g)); font-family: var(--ff-head); font-weight: 700; font-size: var(--fs-sub); }
.greet__role { margin-right: 0.8em; font-size: var(--fs-small); color: var(--c-ink-soft); }

/* ---------- 私たちについて：強み ---------- */
.strength__list { display: grid; gap: var(--sp-s); margin-top: var(--sp-g); padding: 0; list-style: none; }
.strength__item {
  position: relative;
  display: grid;
  gap: var(--sp-p);
  padding: var(--sp-g) var(--sp-b) var(--sp-b);
  border-radius: var(--radius-l);
  background: var(--c-sub);
}
.strength__num { font-family: var(--ff-en); font-weight: 700; font-size: calc(var(--fs-en) * 1.4); line-height: 1; color: var(--c-accent); }
.strength__ttl { font-family: var(--ff-head); font-weight: 700; font-size: var(--fs-sub); line-height: var(--lh-head); }
.strength__chara { position: absolute; right: 6%; top: -12%; width: 34%; height: auto; animation: fv-float 4.6s ease-in-out infinite alternate; }
.strength__item:nth-child(2) .strength__chara { animation-delay: -2s; }

/* ---------- 事業内容：写真と文を左右交互に ---------- */
.civil__head { display: grid; gap: var(--sp-g); max-width: 40em; }
.svc-rows { display: grid; gap: var(--sp-s); margin-top: var(--sp-s); padding: 0; list-style: none; }
.svc-row { display: grid; gap: var(--sp-b); align-items: center; }
.svc-row__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-l); }
.svc-row.rv.is-on .svc-row__img img { animation: img-open 0.9s cubic-bezier(0.34, 1.3, 0.64, 1) 0.1s both; }
.svc-row__txt { display: grid; gap: var(--sp-p); }
.svc-row__num { font-family: var(--ff-en); font-weight: 700; font-size: calc(var(--fs-en) * 1.2); line-height: 1; color: var(--c-accent); }
.svc-row__ttl { font-family: var(--ff-head); font-weight: 700; font-size: var(--fs-sub); line-height: var(--lh-head); }
.svc-row__tags { display: flex; flex-wrap: wrap; gap: var(--sp-1); margin: calc(var(--sp-b) - var(--sp-p)) 0 0; padding: 0; list-style: none; }
.svc-row__tags li { padding: 4px 14px; border-radius: 999px; background: var(--c-sub); font-size: var(--fs-small); font-weight: 700; }

/* ---------- 事業内容：工事の流れ ---------- */
.flow { background: color-mix(in srgb, var(--c-sub) 35%, var(--c-base)); }
.flow__list { display: grid; gap: var(--sp-p); margin-top: var(--sp-g); padding: 0; list-style: none; counter-reset: none; }
.flow__item { position: relative; display: grid; gap: var(--sp-1); align-content: start; padding: var(--sp-b); border-radius: var(--radius-l); background: var(--c-base); }
.flow__num { font-family: var(--ff-en); font-weight: 700; font-size: calc(var(--fs-en) * 0.8); line-height: 1; color: var(--c-accent); }
.flow__ttl { margin-top: var(--sp-1); font-family: var(--ff-head); font-weight: 700; font-size: var(--fs-sub); line-height: var(--lh-head); }

/* ---------- 協力会社へ（下層） ---------- */
.partner__names { display: grid; gap: var(--sp-p); width: 100%; }
.partner__names-ttl { font-family: var(--ff-head); font-weight: 700; }
.partner__recruit { display: grid; gap: var(--sp-p); width: 100%; padding: var(--sp-b); border-radius: var(--radius-l); background: var(--c-base); }
.partner__recruit .svc-row__tags { margin-top: 0; }

/* 協力会社のロゴ（ダミー）：画面幅いっぱいで横に流れる */
.partner__logos { display: grid; gap: var(--sp-b); margin-top: var(--sp-s); }
.logo-loop { overflow: hidden; }
.logo-loop__track { display: flex; width: max-content; margin: 0; padding: 0; list-style: none; animation: marquee 36s linear infinite; }
.logo-loop:hover .logo-loop__track { animation-play-state: paused; }
.logo-loop__item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: clamp(160px, 16vw, 260px);
  height: clamp(72px, 6.4vw, 104px);
  margin-right: var(--sp-p);
  border: 2px dashed var(--c-line);
  border-radius: var(--radius-s);
  background: var(--c-base);
  color: var(--c-ink-soft);
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: var(--fs-small);
  letter-spacing: 0.08em;
}
.logo-loop__mark { width: 28px; aspect-ratio: 1; border-radius: 50%; background: var(--c-sub-deep); }
@media (prefers-reduced-motion: reduce) { .logo-loop__track { animation: none; } }

/* ---------- お問い合わせ ---------- */
.contact__grid { display: grid; gap: var(--sp-s); }
.contact__head { display: grid; gap: var(--sp-g); align-content: start; }
.contact__tel { display: grid; gap: 4px; margin-top: calc(var(--sp-b) - var(--sp-g)); padding: var(--sp-p) var(--sp-b); border-radius: var(--radius-s); background: var(--c-sub); justify-self: start; }
.contact__tel-label { font-size: var(--fs-small); }
.contact__tel-num { font-family: var(--ff-en); font-weight: 600; font-size: var(--fs-sub); letter-spacing: 0.04em; }
.form { display: grid; gap: var(--sp-b); }
.form__row { display: grid; gap: var(--sp-1); }
.form__label { display: flex; align-items: center; justify-content: center; gap: 0.6em; text-align: center; font-family: var(--ff-head); font-weight: 700; }
.form__req { padding: 0 0.7em; border-radius: 999px; background: var(--c-accent); color: var(--c-ink); font-size: var(--fs-small); line-height: 1.7; }
.form__req--opt { background: var(--c-line); }
.form__input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-s);
  background: var(--c-base);
  color: var(--c-ink);
  font: inherit;
  font-size: 16px;
}
.form__input:focus { outline: 2px solid var(--c-accent); outline-offset: 1px; }
.form__textarea { min-height: 10em; resize: vertical; }
.form__select { position: relative; display: block; }
.form__select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--c-ink); border-bottom: 2px solid var(--c-ink); rotate: 45deg; translate: 0 -70%; pointer-events: none; }
select.form__input { appearance: none; padding-inline: 48px; text-align: center; text-align-last: center; }
input.form__input { text-align: center; } /* 11/4 先方「フォームの中のテキスト・要素を中央揃えに」 */
.form__submit {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: 240px;
  justify-content: space-between;
  padding: 12px 12px 12px 36px; /* 10/27 寺嶋さん「文字の大きさはそのままでボタンを大きく」 */
  border: 0;
  border-radius: 999px;
  background: var(--c-dark);
  color: var(--c-dark-text);
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: var(--fs-body);
  cursor: pointer;
}
.form__submit .btn-circle__ring { width: 52px; border-color: var(--c-dark-text); }

@media (min-width: 960px) {
  .hero-sub__chara { bottom: 40px; }
  .greet__grid { grid-template-columns: 34% 1fr; column-gap: 8%; align-items: center; }
  .strength__list { grid-template-columns: 1fr 1fr; column-gap: var(--sp-b); }
  .strength__num { max-width: 62%; } /* 右上のイラストに掛かるのは番号の行だけ。見出し・本文は横幅いっぱい（10/27） */
  .civil__head { grid-template-columns: 34% 1fr; column-gap: 8%; max-width: none; align-items: end; }
  .flow__list { grid-template-columns: repeat(5, 1fr); }
  .svc-row { grid-template-columns: 1.1fr 1fr; column-gap: 8%; }
  .svc-row--rev .svc-row__img { order: 2; }
  .contact__grid { grid-template-columns: 34% 1fr; column-gap: 8%; align-items: start; }
}
