/* Homepage additions — the 熱門訓練課程 poster section (loaded by the homepage only). */
.course-posters{padding-bottom:92px}
.poster-grid{display:grid;grid-template-columns:repeat(2,minmax(0,420px));justify-content:center;gap:76px}
.poster-card{display:flex;flex-direction:column;gap:30px}
/* The posters differ slightly in height: centre the shorter one so both captions line up. */
.poster-frame{position:relative;display:block;margin-block:auto;padding:12px;background:#fff;border-radius:14px;box-shadow:0 18px 40px #31442e1a;transform:rotate(-1.8deg);transition:transform .35s,box-shadow .35s}
.poster-card:nth-child(2) .poster-frame{transform:rotate(1.8deg)}
.poster-frame::before{content:'';position:absolute;z-index:1;top:-13px;left:50%;width:108px;height:26px;margin-left:-54px;border-radius:2px;background:#efe993d9;transform:rotate(-3deg)}
.poster-card:nth-child(2) .poster-frame::before{background:#a3db9cd9;transform:rotate(4deg)}
.poster-frame img{border-radius:6px}
.poster-card:hover .poster-frame{transform:rotate(0) translateY(-6px);box-shadow:0 24px 50px #31442e24}
.poster-body{display:block;padding:0 4px}
.poster-card .card-description{min-height:0}
.poster-card:hover .circle-arrow{background:var(--green);border-color:var(--green);color:#fff}

@media (max-width:1100px){
  .poster-grid{gap:48px}
}
@media (max-width:800px){
  .course-posters{padding-bottom:58px}
  .poster-grid{gap:28px}
  .poster-card{gap:22px}
  .poster-frame{padding:8px}
}
@media (max-width:560px){
  .poster-grid{grid-template-columns:minmax(0,400px);gap:46px}
  .poster-card .card-description{font-size:11px}
}

/* Seven pastel service tiles (ref: midori-no-mori.jp): watercolour green tiles on a pale-yellow wash. */
.service-tiles-block{position:relative;isolation:isolate;margin-top:46px;padding-top:30px}
.service-tiles-block::before{content:'';position:absolute;z-index:-1;top:-24px;right:0;width:min(620px,78%);height:330px;border-radius:62% 38% 55% 45%/48% 58% 42% 52%;background:radial-gradient(closest-side,#fbf0a6 0%,#fbf0a6b3 55%,#fbf0a600 100%);filter:blur(6px);opacity:.85}
.tiles-heading{display:flex;align-items:center;gap:16px;margin-bottom:26px}
.tiles-badge{display:grid;place-items:center;flex-shrink:0;width:62px;height:62px;border-radius:50%;background:#fbf3a0}
.tiles-badge svg{width:30px;height:30px;fill:var(--green);stroke:none;transform:rotate(-12deg)}
.tiles-heading h3{margin:0;font-size:clamp(20px,2.3vw,25px);font-weight:800;letter-spacing:2px;color:var(--green)}
.service-tiles{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:16px}
.service-tile{--a:22% 18%;--b:82% 80%;--c:78% 12%;position:relative;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;aspect-ratio:1;padding:14px 8px;border-radius:22px;color:#fff;text-align:center;font-size:14px;font-weight:800;line-height:1.45;letter-spacing:1px;text-shadow:0 1px 3px #1c6a3a4d;background:radial-gradient(62% 58% at var(--a),#9dd45ad9 0%,#9dd45a00 100%),radial-gradient(60% 62% at var(--b),#2fae80cc 0%,#2fae8000 100%),radial-gradient(70% 70% at var(--c),#62bd4dcc 0%,#62bd4d00 100%),linear-gradient(160deg,#55b64e,#45a946);box-shadow:0 10px 22px -16px #2f7d2a;transition:transform .25s,box-shadow .25s}
.service-tile::after{content:'';position:absolute;inset:0;pointer-events:none;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.022' numOctaves='3' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .7 -.08'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") center/cover;mix-blend-mode:soft-light;opacity:.75}
.service-tile:nth-child(2){--a:80% 20%;--b:15% 85%;--c:30% 40%}
.service-tile:nth-child(3){--a:30% 85%;--b:85% 20%;--c:20% 15%}
.service-tile:nth-child(4){--a:75% 75%;--b:20% 25%;--c:60% 15%}
.service-tile:nth-child(5){--a:15% 50%;--b:70% 15%;--c:85% 85%}
.service-tile:nth-child(6){--a:70% 30%;--b:25% 75%;--c:15% 15%}
.service-tile:nth-child(7){--a:25% 25%;--b:80% 60%;--c:50% 90%}
.service-tile svg{position:relative;z-index:1;width:54px;height:54px;fill:none;stroke:#fff;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.service-tile svg .f{fill:#ffffff3d}
.service-tile svg .solid{fill:#fff;stroke:none}
.service-tile svg .dot{stroke-width:4.2}
.service-tile span{position:relative;z-index:1}
.service-tile:hover{transform:translateY(-4px);box-shadow:0 16px 26px -16px #2f7d2a}
@media(max-width:1100px){.service-tiles{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:560px){
.service-tiles-block{margin-top:34px;padding-top:22px}
.service-tiles-block::before{width:92%;height:260px;top:-10px}
.tiles-badge{width:52px;height:52px}.tiles-badge svg{width:26px;height:26px}
.service-tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.service-tile{border-radius:20px;font-size:15px}
.service-tile:last-child{grid-column:span 2;aspect-ratio:auto;flex-direction:row;gap:16px;min-height:104px}
}
@media(prefers-reduced-motion:reduce){.service-tile{transition:none}.service-tile:hover{transform:none}}

/* Hero: circular rotating photo inside a hand-drawn leaf wreath (ref: midori-no-mori.jp). */
.hero-ring{position:absolute;z-index:1;right:1%;top:50%;width:min(50%,530px);aspect-ratio:1;transform:translateY(-50%)}
.hero-ring::before{content:'';position:absolute;z-index:-1;inset:-6% -10%;border-radius:46% 54% 50% 50%/52% 46% 54% 48%;background:radial-gradient(closest-side,#fbf1b0d9 0%,#fbf1b066 55%,#fbf1b000 100%);filter:blur(4px)}
.ring{position:absolute;inset:4%}
.ring-photo{position:absolute;inset:16.6%;overflow:hidden;border-radius:50%;background:var(--mint);box-shadow:0 18px 40px -26px #2f6d2a;isolation:isolate}
.ring-slide{position:absolute;inset:0;opacity:0;transition:opacity 1.8s ease}.ring-slide.is-prev{opacity:1;z-index:1;transition:none}.ring-slide.is-prev img{transform:scale(1)}
.ring-slide.is-active{opacity:1;z-index:2}
.ring-slide img{width:100%;height:100%;object-fit:cover;transform:scale(1.15)}
.ring-slide.is-active img{animation:ringZoom 7s cubic-bezier(.2,.6,.3,1) forwards}
.ring-wreath{position:absolute;inset:0;width:100%;height:100%;overflow:visible;fill:none;stroke:var(--green);stroke-width:5;stroke-linecap:round;stroke-linejoin:round}
.ring-wreath .w-dot{fill:var(--green);stroke:none}
.w-bit{transform-box:fill-box;transform-origin:center;animation:ringSway 6s ease-in-out infinite alternate;animation-delay:calc(var(--i) * -.7s)}
.ring-doodle{position:absolute;stroke:none;animation:ringFloat 5s ease-in-out infinite alternate}
.d-heart{left:2%;top:10%;width:30px;height:30px;fill:#f4b2c2;animation-delay:-1s}
.d-star{right:4%;top:4%;width:30px;height:30px;fill:#f0d84a;animation-delay:-2.5s}
.d-paw{left:-2%;bottom:20%;width:28px;height:28px;fill:#9fd18b;transform:rotate(-20deg)}
.d-heart2{right:-1%;top:46%;width:22px;height:22px;fill:#8fd3c4;animation-delay:-3.5s}
.d-star2{left:14%;bottom:2%;width:20px;height:20px;fill:#f6c56b;animation-delay:-.5s}
.d-paw2{right:12%;bottom:6%;width:24px;height:24px;fill:#f0d84a;animation-delay:-4s}
.hero-ring .art-caption{left:auto;right:-6%;bottom:1%;white-space:nowrap;transform:rotate(-6deg)}
@keyframes ringZoom{from{transform:scale(1.15)}to{transform:scale(1)}}
@keyframes ringSway{from{transform:rotate(-3deg)}to{transform:rotate(3deg)}}
@keyframes ringFloat{from{translate:0 0}to{translate:0 -10px}}
@media(min-width:1450px){.hero-ring{width:min(50%,590px)}}
@media(max-width:1100px){.hero-ring{right:-1%;width:min(50%,480px)}}
@media(max-width:800px){
.hero-ring{position:relative;right:auto;top:auto;transform:none;width:min(100%,430px);margin:6px auto 44px}
.hero-ring .art-caption{left:50%;right:auto;bottom:-8%;font-size:15px;transform:translateX(-50%) rotate(-4deg)}
.ring-doodle{scale:.85}
}
@media(prefers-reduced-motion:reduce){.ring-slide.is-active img{animation:none;transform:none}.w-bit,.ring-doodle{animation:none}}
