/* =====================================================================
   トップページ専用（templates/index.html）
   ---------------------------------------------------------------------
   仮サイト案（版1794312857-c160）の見た目をそのまま移したもの。
   色は下の :root の3つで決まります（緑で固定）。
   書体は Google Fonts（BIZ UDPGothic・Zen Maru Gothic）を index.html で読み込みます。
   ===================================================================== */

:root {
  --accent: #4E7D19; /* 主の色 */
  --soft: #F2F7EA;   /* 薄い色（選んだ所の背景） */
  --mark: #CFE3B0;   /* 見出しのマーカー */
}

[hidden] { display: none !important; }

/* ---------- 仮サイト案のスタイル（ここから） ---------- */
body{margin:0}
html{scroll-behavior:smooth}
@keyframes wg-on{from{opacity:0;transform:scale(.6)}to{opacity:1;transform:scale(1)}}
@keyframes wg-msg{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes wg-mark{from{background-size:0% 100%}to{background-size:100% 100%}}
@keyframes wg-grow-y{from{transform:scaleY(0)}to{transform:scaleY(1)}}
@keyframes wg-pop{0%{transform:scale(.4);opacity:0}70%{transform:scale(1.12);opacity:1}100%{transform:scale(1);opacity:1}}
@keyframes wg-wait{0%,100%{box-shadow:0 0 0 0 rgba(226,201,94,0)}50%{box-shadow:0 0 0 6px rgba(226,201,94,.5)}}
@keyframes wg-grow{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes wg-marquee{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@keyframes wg-rise{from{opacity:0;transform:translateY(28px)}to{opacity:1;transform:none}}
@keyframes wg-float-in{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
.wg-check{animation:wg-pop .5s cubic-bezier(.2,.8,.3,1.2) both}
.wg-duty li:nth-child(1) .wg-check{animation-delay:.6s}
.wg-duty li:nth-child(2) .wg-check{animation-delay:1.1s}
.wg-duty li:nth-child(3) .wg-check{animation-delay:1.6s}
.wg-wait{animation:wg-wait 1.8s ease-in-out 2.4s infinite}
.wg-progress{transform-origin:left center;animation:wg-grow 1.6s cubic-bezier(.3,.7,.3,1) .5s both}
.wg-marquee-track{animation:wg-marquee 40s linear infinite}
.wg-slow{animation-duration:70s}
.wg-float{animation:wg-float-in .6s ease 1.2s both}
.wg-btn{transition:translate .2s ease,box-shadow .2s ease}
.wg-btn:hover{translate:0 -2px;box-shadow:0 6px 16px rgba(20,48,58,.18)}
.wg-card{transition:translate .25s ease,box-shadow .25s ease}
.wg-card:hover{translate:0 -4px;box-shadow:0 10px 24px rgba(20,48,58,.10)}
.wg-mark{background-repeat:no-repeat;background-size:100% 100%;padding:0 2px}
.wg-mark-hero{animation:wg-mark .9s cubic-bezier(.3,.7,.3,1) .3s both}
.wg-rec{animation:wg-pop .45s cubic-bezier(.2,.8,.3,1.2) both}
.wg-rec-box{animation:wg-msg .4s ease both}
.wg-faq-btn{background-color:transparent;transition:background-color .2s ease}
.wg-faq-btn:hover{background-color:#F7FAF9}
.wg-journey{position:relative;container-type:inline-size}
.wg-journey-list{list-style:none;margin:0;padding:0;position:relative;display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
.wg-journey-item{display:flex;flex-direction:column;align-items:center;gap:10px;padding:0 8px;text-align:center}
.wg-journey-line{position:absolute;left:12.5%;right:12.5%;top:26px;height:4px;border-radius:999px;background:#D3DEDC;overflow:hidden}
.wg-journey-fill{width:100%;height:100%;transform-origin:left center}
.wg-month-fill{transform-origin:left center}
@container (max-width: 620px){
.wg-journey-list{grid-template-columns:1fr;row-gap:18px}
.wg-journey-item{flex-direction:row;align-items:center;gap:16px;min-height:56px;padding:0;text-align:left}
.wg-journey-line{left:26px;right:auto;top:28px;bottom:28px;width:4px;height:auto}
.wg-journey-fill{transform-origin:center top}
}
@supports (animation-timeline: view()){
.wg-reveal{animation:wg-rise linear both;animation-timeline:view();animation-range:entry 0px entry 240px}
.wg-reveal:nth-child(2){animation-range:entry 40px entry 280px}
.wg-reveal:nth-child(3){animation-range:entry 80px entry 320px}
.wg-journey{view-timeline-name:--wg-journey}
.wg-journey-fill{animation:wg-grow linear both;animation-timeline:--wg-journey;animation-range:cover 120px cover 420px}
.wg-node-on{animation:wg-on linear both;animation-timeline:--wg-journey}
.wg-on-1{animation-range:cover 100px cover 150px}
.wg-on-2{animation-range:cover 220px cover 270px}
.wg-on-3{animation-range:cover 320px cover 370px}
.wg-on-4{animation-range:cover 420px cover 470px}
.wg-msg{animation:wg-msg linear both;animation-timeline:view();animation-range:entry 30px entry 130px}
.wg-mark-host{view-timeline-name:--wg-mark}
.wg-mark-scroll{animation:wg-mark linear both;animation-timeline:--wg-mark;animation-range:cover 80px cover 320px}
.wg-month-fill{animation:wg-grow linear both;animation-timeline:view()}
.wg-months > :nth-child(1) .wg-month-fill{animation-range:entry 40px entry 110px}
.wg-months > :nth-child(2) .wg-month-fill{animation-range:entry 110px entry 180px}
.wg-months > :nth-child(3) .wg-month-fill{animation-range:entry 180px entry 250px}
@container (max-width: 620px){
.wg-journey-fill{animation-name:wg-grow-y;animation-range:cover 100px cover 520px}
.wg-on-1{animation-range:cover 80px cover 130px}
.wg-on-2{animation-range:cover 240px cover 290px}
.wg-on-3{animation-range:cover 380px cover 430px}
.wg-on-4{animation-range:cover 520px cover 570px}
}
}
@keyframes wg-in{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
@keyframes wg-in-r{from{opacity:0;transform:translateX(28px)}to{opacity:1;transform:none}}
@keyframes wg-feed{0%{opacity:0;transform:translateY(70%)}4%{opacity:1;transform:none}30%{opacity:1;transform:none}34%{opacity:0;transform:translateY(-70%)}100%{opacity:0;transform:translateY(-70%)}}
@keyframes wg-drift{0%,100%{transform:translate(0,0)}50%{transform:translate(12px,-14px)}}
@keyframes wg-drift-2{0%,100%{transform:translate(0,0) rotate(0deg)}50%{transform:translate(-10px,10px) rotate(14deg)}}
@keyframes wg-lamp{0%{background-color:transparent}55%{background-color:currentColor;border-color:currentColor;scale:1.6}100%{background-color:currentColor;border-color:currentColor;scale:1}}
@keyframes wg-from-l{from{opacity:0;transform:translateX(-20px)}to{opacity:1;transform:none}}
@keyframes wg-from-r{from{opacity:0;transform:translateX(20px)}to{opacity:1;transform:none}}
@keyframes wg-spin{from{transform:rotate(-360deg)}to{transform:rotate(0deg)}}
@keyframes wg-slide-l{from{opacity:0;transform:translateX(-40px)}to{opacity:1;transform:none}}
@keyframes wg-slide-r{from{opacity:0;transform:translateX(40px)}to{opacity:1;transform:none}}
.wg-plan-grid{container-type:inline-size}
@keyframes wg-wiggle{0%,100%{rotate:0deg}25%{rotate:-10deg}60%{rotate:8deg}}
@keyframes wg-shimmer{0%{transform:translateX(-100%)}60%,100%{transform:translateX(100%)}}
@keyframes wg-ping{0%{box-shadow:0 0 0 0 rgba(20,48,58,.35)}14%{box-shadow:0 0 0 16px rgba(20,48,58,0)}100%{box-shadow:0 0 0 16px rgba(20,48,58,0)}}
.wg-feed-item:nth-child(n+2){opacity:0}
.wg-deco{position:absolute;inset:0;pointer-events:none}
.wg-deco > span{position:absolute;display:block}
.wg-shimmer{position:relative;overflow:hidden}
.wg-lively .wg-hero-copy > *{animation:wg-in .7s cubic-bezier(.2,.7,.2,1) both}
.wg-lively .wg-hero-copy > :nth-child(1){animation-delay:.05s}
.wg-lively .wg-hero-copy > :nth-child(3){animation-delay:.45s}
.wg-lively .wg-hero-copy > :nth-child(4){animation-delay:.6s}
.wg-lively .wg-hero-copy > :nth-child(5){animation-delay:.75s}
.wg-lively .wg-hero-copy > h1{animation:none}
.wg-lively .wg-line{display:inline-block;animation:wg-in .75s cubic-bezier(.2,.7,.2,1) .15s both}
.wg-lively .wg-line-2{animation-delay:.3s}
.wg-lively .wg-mark-hero{animation-delay:.95s}
.wg-lively .wg-hero-card{animation:wg-in-r .8s cubic-bezier(.2,.7,.2,1) .3s both}
.wg-lively .wg-progress{animation-delay:1s}
.wg-lively .wg-duty li:nth-child(1) .wg-check{animation-delay:1.1s}
.wg-lively .wg-duty li:nth-child(2) .wg-check{animation-delay:1.5s}
.wg-lively .wg-duty li:nth-child(3) .wg-check{animation-delay:1.9s}
.wg-lively .wg-wait{animation-delay:2.7s}
.wg-lively .wg-feed-item{animation:wg-feed 12s cubic-bezier(.3,.7,.3,1) infinite both}
.wg-lively .wg-feed-item:nth-child(1){animation-delay:-1s}
.wg-lively .wg-feed-item:nth-child(2){animation-delay:3s}
.wg-lively .wg-feed-item:nth-child(3){animation-delay:7s}
.wg-lively .wg-deco-1{animation:wg-drift 18s ease-in-out infinite}
.wg-lively .wg-deco-2{animation:wg-drift-2 13s ease-in-out -4s infinite}
.wg-lively .wg-deco-3{animation:wg-drift 9s ease-in-out -2s infinite}
.wg-lively .wg-deco-4{animation:wg-drift-2 21s ease-in-out -8s infinite}
.wg-lively .wg-deco-5{animation:wg-drift 15s ease-in-out -6s infinite}
.wg-lively #top .wg-dot{animation:wg-lamp .6s ease .35s both}
.wg-lively .wg-btn{transition:translate .2s ease,box-shadow .2s ease,scale .12s ease}
.wg-lively .wg-btn:active{scale:.97}
.wg-lively .wg-card:hover > div:first-child > span:first-child{animation:wg-wiggle .6s ease}
.wg-lively .wg-shimmer::after{content:"";position:absolute;inset:0;background:linear-gradient(100deg,transparent 25%,rgba(255,255,255,.75) 50%,transparent 75%);transform:translateX(-100%);animation:wg-shimmer 2.8s ease-in-out infinite}
.wg-lively .wg-float::after{content:"";position:absolute;inset:-2px;border-radius:999px;pointer-events:none;animation:wg-ping 7s ease-out 3s infinite}
@supports (animation-timeline: view()){
.wg-lively .wg-dot{animation:wg-lamp linear both;animation-timeline:view();animation-range:entry 40px entry 160px}
.wg-lively .wg-roles > li > div:nth-of-type(1){animation:wg-from-l linear both;animation-timeline:view();animation-range:entry 10px entry 170px}
.wg-lively .wg-roles > li > div:nth-of-type(2){animation:wg-from-r linear both;animation-timeline:view();animation-range:entry 50px entry 210px}
.wg-lively .wg-promise li{view-timeline-name:--wg-clock}
.wg-lively .wg-plan-grid > .wg-reveal{animation-range:entry 0% entry 100%}
.wg-lively .wg-plan-grid > .wg-reveal:nth-child(2){animation-range:entry 12% entry 100%}
.wg-lively .wg-plan-grid > .wg-reveal:nth-child(3){animation-range:entry 24% entry 100%}
@container (min-width: 620px){
.wg-lively .wg-plan-grid > :nth-child(odd){animation-name:wg-slide-l}
.wg-lively .wg-plan-grid > :nth-child(even){animation-name:wg-slide-r}
}
@container (min-width: 940px){
.wg-lively .wg-plan-grid > :nth-child(2){animation-name:wg-rise}
.wg-lively .wg-plan-grid > :nth-child(3){animation-name:wg-slide-r}
}
.wg-lively .wg-promise svg path{transform-box:view-box;transform-origin:center;animation:wg-spin linear both;animation-timeline:--wg-clock;animation-range:entry 0px cover 260px}
}
.wg-motion-off,.wg-motion-off *,.wg-motion-off *::after{animation:none !important;transition:none !important}
@media (prefers-reduced-motion: reduce){
html{scroll-behavior:auto}
.wg-root,.wg-root *,.wg-root *::after{animation:none !important;transition:none !important}
}
/* ---------- 仮サイト案のスタイル（ここまで） ---------- */

/* ---------- 電話（ヘッダー） ----------
   「電話で相談」は直接かけず、説明の枠（#tel）へ移動する。番号のボタンは枠のいちばん下。
   スマホではヘッダーの「LINEで相談」を隠す（画面下のボタンにあるため）。 */
.wg-head-actions { display: flex; align-items: center; gap: 8px; }
@media (max-width: 760px) {
  .wg-head-line { display: none !important; }
}

/* ---------- スマホ：画面の下に2つのボタン（仮サイト案のスマホ表示のとおり） ---------- */
.wg-phonebar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: 72px; }
  .wg-float-wrap { display: none; }
  .wg-phonebar {
    display: flex; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    height: 72px; box-sizing: border-box; padding: 10px 12px;
    background: #FFFFFF; border-top: 1px solid #D3DEDC;
    font-family: 'BIZ UDPGothic', sans-serif;
  }
  .wg-phonebar a {
    flex: 1 1 0; min-width: 0;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-height: 52px; padding: 0 8px; box-sizing: border-box;
    border-radius: 999px; font-size: 15px; font-weight: 700; text-decoration: none;
  }
  .wg-phonebar-line { background: var(--accent); border: 2px solid var(--accent); color: #FFFFFF; }
  .wg-phonebar-diag { background: #FFFFFF; border: 2px solid #14303A; color: #14303A; }
}
