/* ========== トップページ固有 ========== */

/* ヒーロー（Wix: 100vh・木目フェンスの写真に黄色を重ねる・右に縦組みの KOTO・下に白い柵） */
.hero {
  position: relative;
  min-height: clamp(640px, 100vh, 960px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--yellow);
}
.hero-bg {
  position: absolute; inset: 0;
  background: url("/img/hero_bg.jpg") center / cover no-repeat;
  opacity: 0.42;
  mix-blend-mode: multiply;
  filter: saturate(0.4) contrast(1.1);
}
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(250, 231, 54, 0) 0%, rgba(250, 231, 54, 0.15) 45%, rgba(250, 231, 54, 0.9) 100%); }
.hero-koto {
  position: absolute;
  right: clamp(-10px, 1vw, 24px);
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  text-orientation: sideways;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(120px, 17.5vw, 253px);
  line-height: 0.85;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: -6px 6px 0 rgba(0, 0, 0, 0.9);
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  width: min(var(--w-wide), calc(100% - var(--gutter) * 2));
  margin: 0 auto;
  padding: calc(var(--header-h) + 8px) 0 clamp(90px, 12vw, 150px);
  padding-left: clamp(0px, 8vw, 150px);
}
.hero-catch {
  font-family: var(--font-kaku);
  font-weight: 700;
  font-size: clamp(22px, 2.9vw, 41px);
  color: #fff;
  text-shadow: var(--text-shadow);
  letter-spacing: 0.04em;
  line-height: 1.4;
}
.hero-title {
  margin-top: 6px;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(56px, 7.3vw, 105px);
  line-height: 1.12;
  letter-spacing: 0.02em;
}
.hero-area { display: block; margin-top: 14px; font-family: var(--font-kaku); font-weight: 700; font-size: clamp(14px, 1.3vw, 18px); letter-spacing: 0.12em; line-height: 1.4; }
.hero-badges { width: min(676px, 100%); margin-top: clamp(20px, 3vw, 40px); }
.hero-btn { margin-top: clamp(20px, 3vw, 34px); width: min(413px, 100%); }
.hero-fence { position: absolute; left: 0; right: 0; bottom: 0; height: clamp(46px, 7vw, 100px); }

/* キャンペーンバナー */
.banners { padding: clamp(28px, 4vw, 56px) 0; }
.banner-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.5vw, 32px); }
.banner { display: block; border-radius: 4px; overflow: hidden; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12); transition: transform 0.25s ease; }
.banner:hover { transform: translateY(-3px); }

/* 導入 */
.intro-lead { margin-top: var(--head-gap); text-align: center; }
.intro-box {
  position: relative;
  margin: var(--block-gap) auto 0;
  max-width: 800px;
  padding: clamp(24px, 3.4vw, 40px) clamp(20px, 3.2vw, 44px);
  border: 1px solid var(--ink);
  background: #fff;
}
.intro-box .text { max-width: 620px; }
.intro-figure { position: absolute; right: -60px; bottom: -34px; width: 150px; }

/* 選ばれる理由 */
.reasons { background: #fff; padding-bottom: var(--sec-pad); }
.reason-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.6vw, 24px); margin-top: calc(var(--sec-pad-s) + 10px); }
.reason { background: var(--yellow-pale); padding: 0 0 22px; text-align: center; }
.reason-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 10px; }
.reason-head .num { display: inline-grid; place-items: center; width: 28px; height: 28px; background: var(--black); color: #fff; font-size: 15px; font-weight: 700; }
.reason-head .word { font-family: var(--font-kaku); font-weight: 700; font-size: 21px; letter-spacing: 0.1em; }
.reason img { width: calc(100% - 24px); margin: 0 auto; aspect-ratio: 3 / 2; object-fit: cover; }
.reason h3 { margin-top: 14px; padding: 0 12px; font-family: var(--font-kaku); font-weight: 700; font-size: 16px; letter-spacing: 0.04em; line-height: 1.5; }
.reason p { margin-top: 10px; padding: 0 16px; text-align: left; font-size: 14px; line-height: 1.85; }

/* PLUS */
.plus-inner { display: grid; grid-template-columns: 360px 1fr; align-items: center; gap: clamp(28px, 5vw, 80px); }
.plus-logo { width: 100%; max-width: 360px; }
.plus-body .text { font-size: var(--fs-lead); }
.plus-body .btn { margin-top: 30px; }

/* 他社との比較 */
.compare-body { position: relative; padding: 0 0 var(--sec-pad); overflow: hidden; }
.koto-marquee { overflow: hidden; padding: 36px 0 20px; }
.koto-track { display: flex; white-space: nowrap; width: max-content; animation: koto-scroll 40s linear infinite; }
.koto-track span {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(56px, 7.5vw, 108px);
  line-height: 1;
  color: #fff;
  letter-spacing: 0.02em;
  opacity: 0.85;
}
@keyframes koto-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.compare-table {
  display: grid;
  grid-template-columns: 1fr 120px 1fr;
  margin-top: 20px;
}
.compare-table .c-head { padding: 28px 24px 8px; text-align: center; }
.compare-table .c-head span { display: inline-block; padding: 4px 22px; font-family: var(--font-kaku); font-weight: 700; font-size: 22px; letter-spacing: 0.1em; }
.compare-table .c-head.c-left span { background: var(--yellow); }
.compare-table .c-head.c-right span { background: var(--gray); }
.compare-table .c-left, .compare-table .c-head.c-left { background: #fff; }
.compare-table .c-right, .compare-table .c-head.c-right { background: #fff; }
.compare-table .c-cell { padding: 24px 28px; margin: 0 20px; border-top: 1px solid #d9d9d9; font-size: 15px; line-height: 1.85; display: flex; align-items: center; }
.compare-table .c-cell.c-left { border-radius: 0; }
.compare-table .c-cell.is-last { padding-bottom: 36px; }
.compare-table .c-label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  padding: 0 4px;
  font-family: var(--font-kaku);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.08em;
  line-height: 1;
  text-align: center;
  background: linear-gradient(#fff, #fff) center / 100px 44px no-repeat;
}
.compare-table .c-label::after { content: ""; position: absolute; left: 50%; top: 50%; width: 100px; height: 44px; transform: translate(-50%, -50%); border: 1px solid var(--ink); pointer-events: none; }
/* 白いカードの角丸（外側のみ） */
.compare-table .c-head.c-left, .compare-table .c-head.c-right { border-radius: 6px 6px 0 0; }
.compare-table .c-cell.is-last.c-left, .compare-table .c-cell.is-last.c-right { border-radius: 0 0 6px 6px; }
.compare-table .c-left, .compare-table .c-right { margin: 0; padding-left: 40px; padding-right: 40px; }

/* 私たちが行っている工事 */
.works-body {
  position: relative;
  padding: calc(var(--sec-pad-s) + 20px) 0 var(--sec-pad);
  background: #fff url("/img/works_bg_icons.png") center top / 1440px auto no-repeat;
}
.works-body::before { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, 0.72); }
.works-body > .container-wide { position: relative; }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 40px) clamp(16px, 4vw, 60px); max-width: 900px; margin: 0 auto; }
.cat-grid a { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 22px 8px 18px; background: #fff; border: 1px solid #e6e2d6; border-radius: var(--radius); box-shadow: var(--shadow-card); transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; }
.cat-grid a:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1); }
.cat-img { width: 140px; height: 124px; display: grid; place-items: center; }
.cat-img img { max-height: 124px; width: auto; max-width: 140px; }
.cat-name { font-family: var(--font-kaku); font-size: 16px; font-weight: 700; letter-spacing: 0.08em; }
.cat-name::after { content: "→"; margin-left: 6px; font-size: 13px; }
.works-body .btn-row { margin-top: var(--block-gap); }

/* CASE */
.case { padding: 40px 0 var(--sec-pad); overflow: hidden; }
.case-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.case-circle { width: 234px; height: 234px; display: grid; place-items: center; background: #fff; border-radius: 50%; font-family: var(--font-kaku); font-weight: 500; font-size: 53px; letter-spacing: 0.22em; text-indent: 0.22em; margin-left: clamp(0px, 4vw, 60px); }
.case-insta { display: inline-flex; align-items: center; gap: 10px; color: var(--green); font-family: var(--font-head); font-weight: 700; font-size: clamp(18px, 1.9vw, 28px); text-decoration: underline; text-underline-offset: 0.25em; text-decoration-thickness: 1px; margin-right: clamp(0px, 4vw, 60px); }
.case-insta img { width: 35px; height: 35px; }
.case-insta:hover { color: var(--green-deep); }
.case-strip {
  display: flex;
  gap: 32px;
  margin-top: 0;
  padding: 0 clamp(16px, 4vw, 60px) 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.35) transparent;
}
.case-strip a { flex: 0 0 clamp(240px, 24.6vw, 354px); aspect-ratio: 3 / 4; scroll-snap-align: start; background: var(--gray); overflow: hidden; }
.case-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.case-strip a:hover img { transform: scale(1.04); }
.case-btns { margin-top: clamp(28px, 4vw, 48px); }
.case-btns .btn { min-width: 360px; }

/* 工事の流れ */
.flow-sec { padding-bottom: var(--sec-pad); }
.flow-sec .band-title { padding-bottom: 14px; }
.flow-sec .flow { margin-top: 20px; }

/* お客様の声 */
.voice-body { padding: calc(var(--sec-pad-s) + 20px) 0 var(--sec-pad); overflow: hidden; }
.voice-marquee { overflow: hidden; }
.voice-track { display: flex; gap: 24px; width: max-content; padding: 10px 0; animation: voice-scroll 45s linear infinite; }
.voice-marquee:hover .voice-track, .voice-marquee:focus-within .voice-track { animation-play-state: paused; }
@keyframes voice-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.voice-card { width: 405px; min-height: 271px; padding: 26px 24px 22px; background: #fff; border-radius: 22px; display: flex; flex-direction: column; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); }
.voice-card h3 { font-family: var(--font-kaku); font-weight: 700; font-size: 20px; letter-spacing: 0.04em; line-height: 1.5; }
.voice-card p { margin-top: 12px; font-size: 14px; line-height: 1.85; flex: 1; }
.voice-tags { margin-top: 14px; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.voice-tags span { display: inline-block; padding: 1px 6px; background: var(--yellow); font-size: 12px; font-weight: 700; letter-spacing: 0.02em; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 1100px) {
  .reason-grid { grid-template-columns: repeat(2, 1fr); }
  .compare-table { grid-template-columns: 1fr 100px 1fr; }
  .compare-table .c-left, .compare-table .c-right { padding-left: 22px; padding-right: 22px; }
}
@media (max-width: 900px) {
  .plus-inner { grid-template-columns: 1fr; text-align: center; }
  .plus-logo { margin: 0 auto; max-width: 300px; }
  .plus-body .text { text-align: left; }
  .intro-figure { display: none; }
  .case-circle { width: 170px; height: 170px; font-size: 38px; }
}
@media (max-width: 760px) {
  .hero { min-height: 0; padding-bottom: 0; }
  .hero-inner { padding-left: 0; padding-top: calc(var(--header-h) + 100px); padding-bottom: 90px; }
  .hero-koto { right: -12px; top: 46%; font-size: 200px; }
  .hero-title { font-size: clamp(52px, 15vw, 68px); }
  .hero-badges { width: 100%; max-width: 360px; margin-top: 18px; }
  .hero-btn { width: 100%; max-width: 360px; }
  .banner-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .intro-lead { text-align: left; }
  .reason-grid { gap: 12px; }
  .reason-head { padding: 10px 10px 8px; }
  .reason-head .word { font-size: 18px; }
  .reason h3 { font-size: 14px; }
  .reason p { font-size: 13px; padding: 0 12px; }
  .compare-table { grid-template-columns: 1fr 64px 1fr; }
  .compare-table .c-head { padding: 20px 8px 4px; }
  .compare-table .c-head span { font-size: 17px; padding: 2px 10px; }
  .compare-table .c-cell { padding: 16px 8px; font-size: 13px; line-height: 1.75; }
  .compare-table .c-left, .compare-table .c-right { padding-left: 14px; padding-right: 14px; }
  .compare-table .c-label { font-size: 11px; min-height: 72px; }
  .compare-table .c-label::after { width: 54px; height: 34px; }
  .works-body { background-size: 900px auto; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 8px 8px; }
  .cat-img { width: 120px; height: 110px; }
  .cat-img img { max-height: 110px; max-width: 120px; }
  .case-head { justify-content: center; text-align: center; }
  .case-circle { margin: 0 auto; }
  .case-insta { margin: 0 auto; font-size: 15px; }
  .case-strip { gap: 14px; padding: 0 16px 10px; margin-top: 20px; }
  .case-strip a { flex-basis: 78vw; }
  .case-btns { flex-direction: column; align-items: center; }
  .case-btns .btn { min-width: 0; width: 100%; }
  .voice-card { width: 300px; min-height: 0; padding: 22px 20px 18px; }
  .voice-card h3 { font-size: 17px; }
  .voice-card p { font-size: 13px; }
}
