/* トップページ一番上（歯車の写真が切り替わる部分）　2026-11-17 追加
   このファイルはトップページ（index.html）だけが読み込みます。動きは hero-gear.js。 */
.kgh { --S: min(49vw, calc(100svh - 240px), 1000px); --d: 6s; position: relative; overflow: hidden; padding-bottom: 84px; color: #09203c;
  background-color: #fffaf0;
  background-image: linear-gradient(rgba(9,32,60,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(9,32,60,.045) 1px, transparent 1px);
  background-size: 40px 40px; }
.kgh *, .kgh *::before, .kgh *::after { box-sizing: border-box; }
.kgh svg { display: block; width: 100%; height: 100%; }
.kgh .kgh-wrap { position: relative; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 3vw;
  padding: 24px 1.2vw 26px 4.5vw; min-height: clamp(520px, calc(100svh - 186px), 860px); }

/* 背景の大きな歯車 */
.kgh .kgh-bgg { position: absolute; right: -14vw; top: 50%; width: max(70vw, 720px); aspect-ratio: 1; margin-top: calc(max(70vw, 720px) / -2); opacity: .9; z-index: 1; }
.kgh .kgh-bgg path { fill: #ffe07a; }

/* 左側：言葉と電話ボタン */
.kgh .kgh-copy { flex: 1 1 0; min-width: 0; max-width: 820px; }
.kgh .kgh-toprow { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 0 0 16px; }
.kgh .kgh-area { margin: 0; font-weight: 800; font-size: 17px; line-height: 1.5; background: #09203c; color: #ffd23f; padding: 6px 16px; border-radius: 999px; }
.kgh .kgh-title { margin: 0; padding: 0; font-size: clamp(40px, min(5.6vw, 10.5vh), 110px) !important; line-height: 1.2; font-weight: 900; color: #09203c; letter-spacing: 0; text-shadow: none; }
.kgh .kgh-ln { display: block; overflow: hidden; }
.kgh .kgh-ln > span { display: inline-block; color: inherit; background: none; padding: 0; animation: kgh-up .7s cubic-bezier(.2,.8,.2,1) backwards; }
.kgh .kgh-ln:nth-child(2) > span { animation-delay: .12s; }
.kgh .kgh-ln:nth-child(3) > span { animation-delay: .24s; }
.kgh .kgh-ln:nth-child(4) > span { animation-delay: .36s; }
@keyframes kgh-up { from { transform: translateY(110%); } to { transform: translateY(0); } }
.kgh .kgh-title mark { background: linear-gradient(transparent 58%, #ffd23f 58%); color: inherit; padding: 0 4px; }
.kgh .kgh-lead { font-size: clamp(14px, 1.1vw, 20px); font-weight: 700; line-height: 1.9; margin: 18px 0 22px; color: #2a3b52; max-width: none; }
.kgh .kgh-acts { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.kgh .kgh-call { display: inline-block; background: #ff6b00; color: #fff; font-weight: 800; font-size: 20px; line-height: 1.4; padding: 18px 32px; border-radius: 999px; box-shadow: 0 6px 0 #c95200; text-decoration: none; }
.kgh .kgh-call small { font-size: 12px; font-weight: 600; margin-left: 8px; }
.kgh .kgh-note { margin: 0; font-size: 12px; font-weight: 700; color: #2a3b52; }
.kgh .kgh-note a { color: inherit; text-decoration: underline; }

/* 進み具合（番号・バー・走るカモノハシ・止めるボタン） */
.kgh .kgh-prog { display: flex; align-items: center; gap: 12px; font-weight: 800; margin-top: 26px; }
.kgh .kgh-num { font-size: 15px; letter-spacing: .08em; }
.kgh .kgh-num b { font-size: 26px; color: #ff6b00; }
.kgh .kgh-track { position: relative; width: 170px; height: 5px; border-radius: 3px; background: rgba(9,32,60,.18); }
.kgh .kgh-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: #ff6b00; border-radius: 3px; }
.kgh .kgh-rider { position: absolute; top: -56px; left: 0; width: 54px; margin-left: -44px; }
.kgh .kgh-rider img { width: 100%; height: auto; display: block; transform-origin: 50% 100%; animation: kgh-run .28s ease-in-out infinite alternate; }
.kgh .kgh-rider i { position: absolute; left: -4px; bottom: 1px; width: 8px; height: 8px; border-radius: 50%; background: rgba(9,32,60,.28); animation: kgh-puff .56s linear infinite; }
.kgh .kgh-rider i + i { animation-delay: .28s; }
@keyframes kgh-run { from { transform: translateY(0) rotate(5deg) scaleY(.95); } to { transform: translateY(-8px) rotate(11deg) scaleY(1.04); } }
@keyframes kgh-puff { from { opacity: .9; transform: translate(0,0) scale(.5); } to { opacity: 0; transform: translate(-20px,-9px) scale(1.5); } }
.kgh.is-playing .kgh-fill { animation: kgh-fill var(--d) linear both; }
.kgh.is-playing .kgh-rider { animation: kgh-ride var(--d) linear both; }
@keyframes kgh-fill { to { width: 100%; } }
@keyframes kgh-ride { from { left: 0; } to { left: 100%; } }
.kgh.is-paused .kgh-fill, .kgh.is-paused .kgh-rider, .kgh.is-paused .kgh-rider img, .kgh.is-paused .kgh-rider i { animation-play-state: paused; }
.kgh .kgh-pp { width: 34px; height: 34px; padding: 0; border-radius: 50%; border: 2px solid #09203c; background: #fff; color: #09203c; font-size: 11px; line-height: 1; cursor: pointer; }

/* 右側：歯車の写真 */
.kgh .kgh-stage { position: relative; flex: 0 0 var(--S); width: var(--S); height: var(--S); }
.kgh .kgh-gear { position: absolute; right: 0; top: 11%; width: 74%; height: 74%; filter: drop-shadow(0 14px 22px rgba(9,32,60,.28)); }
.kgh .kgh-teeth { position: absolute; inset: 0; transition: transform 1s cubic-bezier(.5,0,.2,1); }
.kgh .kgh-teeth path { fill: #5f83ad; }
.kgh .kgh-photo { position: absolute; inset: 8.5%; border-radius: 50%; overflow: hidden; background: #09203c; border: 6px solid #fff; }
.kgh .kgh-photo img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: 0; transition: opacity .7s .2s; }
.kgh .kgh-photo img.is-on { opacity: 1; }
.kgh .kgh-imgnote { position: absolute; right: 3%; bottom: 8%; z-index: 6; margin: 0; font-size: 12px; font-weight: 700; color: rgba(9,32,60,.72); }

/* 分類の札（時計のように並ぶ） */
.kgh .kgh-dial { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.kgh .kgh-dl { pointer-events: auto; position: absolute; transform: translate(-100%,-50%); white-space: nowrap; margin: 0; font: inherit; font-weight: 900; font-size: calc(var(--S) * .03); line-height: 1.5;
  padding: .5em 1em .5em .8em; border-radius: 999px; border: 2px solid rgba(9,32,60,.3); background: #fff; color: rgba(9,32,60,.8); cursor: pointer;
  transition: all .45s cubic-bezier(.2,.8,.2,1); display: flex; align-items: center; gap: .5em; }
.kgh a.kgh-dl { text-decoration: none; }
.kgh a.kgh-dl:hover { border-color: #09203c; color: #09203c; }
.kgh a.kgh-dl.is-on:hover { color: #fff; }
.kgh .kgh-dl b { font-size: .75em; letter-spacing: .06em; color: rgba(9,32,60,.55); transition: color .45s; }
.kgh .kgh-dl::after { content: ""; position: absolute; right: -.9em; top: 50%; width: .55em; height: .55em; margin-top: -.275em; border-radius: 50%; background: rgba(9,32,60,.4); transition: all .45s; }
.kgh .kgh-dl.is-on { background: #09203c; color: #fff; border-color: #09203c; transform: translate(-100%,-50%) scale(1.14); box-shadow: 0 8px 18px rgba(9,32,60,.3); }
.kgh .kgh-dl.is-on b { color: #ffd23f; }
.kgh .kgh-dl.is-on::after { background: #ff6b00; transform: scale(1.5); }
.kgh .kgh-dl:nth-child(4) { transform: translate(-62%,-50%); }
.kgh .kgh-dl:nth-child(4).is-on { transform: translate(-62%,-50%) scale(1.14); }
.kgh .kgh-dl:nth-child(4)::after { right: 38%; top: auto; bottom: -.9em; margin: 0; }
.kgh .kgh-dl:focus-visible, .kgh .kgh-pp:focus-visible { outline: 3px solid #ff6b00; outline-offset: 3px; }

/* カモノハシ（分類ごとに持ち物が替わる） */
.kgh .kgh-kamo { position: absolute; left: -2%; bottom: 0; width: 50%; aspect-ratio: 900 / 706; z-index: 7; transform-origin: 60% 100%; filter: drop-shadow(0 8px 10px rgba(9,32,60,.25)); }
.kgh .kgh-kamo img { position: absolute; display: block; max-width: none; }
.kgh .kgh-kfull { inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .35s; }
.kgh .kgh-kb { right: 0; top: 0; height: 100%; width: auto; }
.kgh .kgh-prop { position: absolute; left: 0; top: 0; height: 100%; width: 40%; opacity: 0; transform: scale(.6) rotate(-12deg); transform-origin: 80% 60%; transition: opacity .3s, transform .45s cubic-bezier(.2,.9,.3,1.4); }
.kgh .kgh-kamo[data-p="0"] .kgh-p0, .kgh .kgh-kamo[data-p="1"] .kgh-p1, .kgh .kgh-kamo[data-p="2"] .kgh-p2, .kgh .kgh-kamo[data-p="3"] .kgh-p3 { opacity: 1; transform: none; }
.kgh .kgh-kamo[data-p="3"] .kgh-kfull { opacity: 1; }
.kgh .kgh-kamo.is-jump { animation: kgh-jump .9s cubic-bezier(.3,.7,.3,1); }
@keyframes kgh-jump { 0% { translate: 0 0; scale: 1 1; } 15% { scale: 1.06 .92; } 45% { translate: 0 -9%; scale: .97 1.05; } 75% { translate: 0 0; scale: 1.05 .94; } 100% { translate: 0 0; scale: 1 1; } }

/* 数字の帯 */
.kgh .kgh-stats { position: absolute; left: 0; right: 0; bottom: 0; height: 84px; display: flex; z-index: 8; background: #09203c; color: #fff; }
.kgh .kgh-stats a { flex: 1; display: block; text-align: center; padding-top: 8px; font-size: 12px; font-weight: 700; line-height: 1.5; color: #fff; text-decoration: none; border-right: 1px solid rgba(255,255,255,.15); }
.kgh .kgh-stats a:last-child { border-right: 0; }
.kgh .kgh-stats b { display: block; font-size: 40px; line-height: 1.1; font-weight: 800; color: #ffd23f; }
.kgh .kgh-stats i { font-style: normal; font-size: 14px; margin-left: 3px; color: #fff; }

/* スマホ */
@media (max-width: 820px) {
  .kgh { --S: 88vw; }
  .kgh .kgh-wrap { flex-direction: column; align-items: stretch; min-height: 0; padding: 16px 5vw; }
  .kgh .kgh-copy { display: contents; }
  .kgh .kgh-toprow { display: none; }
  .kgh .kgh-title { order: 2; font-size: 8.4vw !important; line-height: 1.32; }
  .kgh .kgh-ln { display: inline-block; vertical-align: top; }
  .kgh .kgh-stage { order: 3; width: 100%; height: auto; flex: none; display: flex; flex-direction: column; margin: 10px 0 0; }
  .kgh .kgh-dial { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0 0 6px; }
  .kgh .kgh-dl, .kgh .kgh-dl.is-on, .kgh .kgh-dl:nth-child(4), .kgh .kgh-dl:nth-child(4).is-on { position: static; transform: none; font-size: 12.5px; justify-content: center; padding: .45em .3em; box-shadow: none; }
  .kgh .kgh-dl::after { display: none; }
  .kgh .kgh-gear { position: relative; top: auto; right: auto; width: 70%; height: auto; aspect-ratio: 1; margin: 0 0 0 auto; }
  .kgh .kgh-imgnote { position: static; order: 5; text-align: right; font-size: 11px; margin-top: 2px; }
  .kgh .kgh-kamo { left: 0; bottom: 14px; width: 34%; }
  .kgh .kgh-acts { order: 4; display: block; margin-top: 8px; }
  .kgh .kgh-call { display: block; text-align: center; font-size: 19px; padding: 14px 10px; }
  .kgh .kgh-note { margin-top: 12px; text-align: center; }
  .kgh .kgh-lead { order: 5; font-size: 14px; margin: 16px 0 4px; }
  .kgh .kgh-lead br { display: none; }
  .kgh .kgh-bgg { top: auto; bottom: -10vw; right: -45vw; width: 140vw; margin: 0; }
  .kgh .kgh-stats a { padding-top: 10px; }
  .kgh .kgh-stats b { font-size: 26px; }
}

/* スマホでは画面下にいつも電話ボタンが出ている（script.js が追加）ので、同じボタンを二重に出さない */
@media (max-width: 760px) {
  body.has-mobile-call-bar .kgh .kgh-call { display: none; }
  body.has-mobile-call-bar .kgh .kgh-acts { margin-top: 4px; }
  body.has-mobile-call-bar .kgh .kgh-note { margin-top: 6px; font-size: 13px; }
}

/* 「動きを減らす」設定の端末：歯車の回転・写真の入れ替わり・札の色だけ残し、ほかの動きは止める */
@media (prefers-reduced-motion: reduce) {
  .kgh .kgh-ln > span, .kgh .kgh-rider img, .kgh .kgh-rider i, .kgh .kgh-kamo.is-jump { animation: none; }
  .kgh .kgh-prop, .kgh .kgh-kfull { transition: none; }
}

/* ───────────────────────────────────────────────
   トップページの下の部分（事業内容・カモテクの強み・各見出し）　2026-11-17 追加
   一番上の歯車が主役なので、下は落ち着いた形にして色だけそろえる。
   丸・濃い影・方眼の背景は使わない（幼く見えるため）。
   元の設定は styles.css。ここで上書きしている（そのため !important が多い）。
   ─────────────────────────────────────────────── */

/* 見出しの小さな英字：紺色の文字＋短い黄色の線 */
main .section-label > span, main .mini-label { display: flex; align-items: center; gap: 10px; width: fit-content; color: #09203c !important;
  font-size: 13px !important; letter-spacing: .2em !important; line-height: 1.5; margin-bottom: 10px; }
main .section-label > span::before, main .mini-label::before { content: ""; width: 26px; height: 3px; background: #ffd23f; flex: none; }
.top-contact-section .mini-label { margin-left: auto; margin-right: auto; }

/* 事業内容 */
.service-band { gap: 0 !important; margin-top: 0 !important; background: #fff !important; border-bottom: 1px solid rgba(9,32,60,.12) !important; }
.service-band .section-label h2 { color: #09203c; }
.service-card, .service-card:hover { background: #fff !important; border: 0 !important; border-left: 1px solid rgba(9,32,60,.10) !important; border-radius: 0 !important; box-shadow: none !important; transform: none !important; }
.service-card:hover { background: #fffaf0 !important; }
.service-card.is-active, .service-card.is-active:hover { background: #fffaf0 !important; box-shadow: inset 0 -4px 0 #09203c !important; }
.service-card:focus-visible { outline: 3px solid #ff6b00; outline-offset: -3px; }

/* カモテクの強み：写真が大きく並ぶ形のまま、色を紺と黄色に */
.points { gap: 3px !important; padding: 0 !important; margin-top: 0 !important; width: 100% !important; border-radius: 0 !important; background: #09203c !important; }
.points .section-label { background: #fffaf0 !important; }
.points .section-label h2 { color: #09203c !important; }
.points article { background: #09203c !important; min-height: 300px !important; justify-content: flex-end !important; border: 0 !important; border-radius: 0 !important; }
.points article:hover, .points article:focus-visible { background: #09203c !important; transform: none !important; }
.points article:focus-visible { outline: 3px solid #ff6b00 !important; outline-offset: -3px; }
.points article::before { opacity: 1 !important; filter: none !important; transition: transform .4s ease !important; }
.points article:hover::before { transform: scale(1.04) !important; }
.points article::after { display: block !important; opacity: 1 !important; background: linear-gradient(180deg, rgba(9,32,60,.10) 0%, rgba(9,32,60,.55) 50%, rgba(9,32,60,.93) 100%) !important; }
.points article .point-number { color: #ffd23f !important; }
.points article strong { color: #fff !important; }
.points article p { color: rgba(255,255,255,.92) !important; }
@media (max-width: 760px) {
  .points article { min-height: 220px !important; }
  /* スマホの一番上：説明文を先に、連絡方法のリンクを後に */
  .kgh .kgh-lead { order: 4; margin: 12px 0 4px; }
  .kgh .kgh-acts { order: 5; }
}
@media (prefers-reduced-motion: reduce) {
  .points article::before { transition: none !important; }
  .points article:hover::before { transform: none !important; }
}
