/* =========================================================
   高松の宿 星の島 ── 案C「ちいさな手」
   子ども連れの家族にまっすぐ届く、まるくてやわらかい宿の案内。色はお部屋の器から。
   ライブラリなし／sticky・pin不使用／IntersectionObserverのみ
   ========================================================= */
:root{--cream:#fffaf1;--cream2:#fbf1df;--ink:#3b3531;--mu:#7f746c;--yel:#f4c64a;--yel2:#d9a52b;--mint:#a3d6b8;--sky:#a9d3e7;--pink:#f5b4a8;--green:#5f9e71;--navy:#35557a}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{background:var(--cream);color:var(--ink);overflow-x:hidden;font-family:"Zen Maru Gothic","Hiragino Maru Gothic ProN",sans-serif;line-height:1.95;letter-spacing:.04em;line-break:strict;-webkit-font-smoothing:antialiased}
html[lang="zh-Hant"] body{font-family:"Noto Sans TC","Zen Maru Gothic",sans-serif;letter-spacing:.03em}
html[lang="ko"] body{font-family:"Noto Sans KR","Zen Maru Gothic",sans-serif;letter-spacing:0;word-break:keep-all}
html[lang="en"] body{letter-spacing:.01em}
img,svg,video{display:block;max-width:100%}
a{color:inherit}
.nb{display:inline-block}
.num{font-family:"Quicksand",sans-serif;font-weight:700}
:focus-visible{outline:3px solid var(--navy);outline-offset:3px}
.skip{position:absolute;left:-9999px}
.skip:focus{left:10px;top:10px;z-index:99;background:var(--ink);color:#fff;padding:10px 16px;border-radius:20px}

header{position:fixed;top:14px;left:14px;right:14px;z-index:30;display:flex;justify-content:space-between;align-items:center;padding:10px 12px 10px 20px;background:rgba(255,255,255,.93);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border-radius:60px;box-shadow:0 6px 24px -12px rgba(59,53,49,.35)}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;font-weight:700;letter-spacing:.12em;white-space:nowrap}
.brand i{width:30px;height:30px;border-radius:50%;background:var(--yel);display:grid;place-items:center;font-style:normal;font-size:15px;flex:0 0 30px}
.lang{display:flex;gap:4px;align-items:center;font-family:"Quicksand","Zen Maru Gothic",sans-serif;font-size:13px;font-weight:700}
.lang a,.lang b{padding:4px 9px;border-radius:30px;text-decoration:none;white-space:nowrap}
.lang a{color:var(--mu)}.lang a:hover{background:var(--cream2);color:var(--ink)}
.lang b{background:var(--cream2)}
.lang .hdbook{background:var(--ink);color:#fff;font-family:"Zen Maru Gothic",sans-serif;padding:8px 18px;margin-left:6px}
html[lang="zh-Hant"] .lang .hdbook{font-family:"Noto Sans TC",sans-serif}
html[lang="ko"] .lang .hdbook{font-family:"Noto Sans KR",sans-serif}
.lang .hdbook:hover{background:#000;color:#fff}
.wrap{max-width:1120px;margin:0 auto;padding-left:28px;padding-right:28px}
.reveal{opacity:0;transform:translateY(26px) scale(.98);transition:opacity .8s ease,transform .8s cubic-bezier(.3,1.4,.5,1)}
.reveal.in{opacity:1;transform:none}
.d1{transition-delay:.08s}.d2{transition-delay:.16s}.d3{transition-delay:.24s}.d4{transition-delay:.32s}

/* ---- 冒頭 ---- */
#hero{padding-top:110px;padding-bottom:40px}
.hero-g{display:grid;grid-template-columns:1fr 1.15fr;gap:40px;align-items:center}
.hello{display:inline-block;background:var(--mint);padding:4px 16px;border-radius:30px;font-weight:700;font-size:14px;margin-bottom:16px}
h1{font-weight:900;font-size:clamp(34px,5vw,62px);line-height:1.35;letter-spacing:.04em}
html[lang="en"] h1{letter-spacing:0;line-height:1.2;font-size:clamp(30px,3.9vw,48px)}
html[lang="ko"] h1{letter-spacing:-.01em}
h1 .u{background:linear-gradient(transparent 62%,var(--yel) 62%);padding:0 .08em}
.lead{font-size:16px;margin-top:20px;max-width:28em}
.hero-wrap{position:relative}
.blob{position:relative;aspect-ratio:1.3;border-radius:28% 34% 30% 36%/34% 30% 38% 32%;overflow:hidden;box-shadow:0 30px 60px -30px rgba(59,53,49,.45);animation:morph 14s ease-in-out infinite;background:var(--cream2)}
@keyframes morph{50%{border-radius:34% 28% 36% 30%/30% 36% 32% 38%}}
.blob video,.blob img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.blob video{z-index:1}
.blob.still video{display:none}
.stick{position:absolute;z-index:2;width:112px;height:112px;border-radius:50%;display:grid;place-items:center;text-align:center;font-weight:900;line-height:1.25;font-size:13.5px;box-shadow:0 10px 20px -10px rgba(0,0,0,.35);animation:bob 5s ease-in-out infinite;padding:8px}
.stick b{display:block;font-family:"Quicksand",sans-serif;font-size:30px;line-height:1}
.s1{background:var(--yel);left:-24px;top:8%}
.s2{background:var(--pink);right:-10px;top:-4%;animation-delay:-1.6s}
.s3{background:var(--sky);left:2%;bottom:-6%;animation-delay:-3.2s}
@keyframes bob{50%{translate:0 -8px}}
.facts{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin-top:56px;list-style:none}
.fact{background:#fff;border-radius:24px;padding:18px 14px 16px;text-align:center;box-shadow:0 8px 20px -14px rgba(59,53,49,.3)}
.fact .num{font-size:34px;line-height:1.1;display:block;white-space:nowrap}
.fact .num small{font-size:15px;margin-left:2px}
.fact>span:not(.num){font-size:13px;color:var(--mu);display:block;line-height:1.6}
.fact:nth-child(1) .num{color:#c98a12}.fact:nth-child(2) .num{color:var(--green)}.fact:nth-child(3) .num{color:#3f8db3}.fact:nth-child(4) .num{color:#d26f5d}.fact:nth-child(5) .num{color:var(--navy)}
.honest{margin-top:16px;text-align:center;font-size:13.5px;color:var(--mu)}
.honest b{color:var(--ink)}

/* ---- 共通の章 ---- */
.wave{display:block;width:100%;height:60px}
.band{background:var(--cream2)}
.sec{padding-top:80px;padding-bottom:80px}
.h2wrap{text-align:center;margin-bottom:40px}
.h2wrap .tag{display:inline-block;font-family:"Quicksand",sans-serif;font-weight:700;letter-spacing:.2em;font-size:13px;color:var(--green);margin-bottom:6px}
h2{font-weight:900;font-size:clamp(26px,3.4vw,40px);line-height:1.45;letter-spacing:.04em}
html[lang="en"] h2{letter-spacing:0}
.h2wrap p{margin:12px auto 0;color:var(--mu);font-size:15px;max-width:40em}
.small-note{font-size:12.5px;color:var(--mu);text-align:center;margin-top:18px;line-height:1.8}

/* ---- 持ってこなくていいもの ---- */
.items{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;list-style:none}
.item{background:#fff;border-radius:26px;padding:22px 16px 18px;text-align:center;position:relative}
.item .ic{width:74px;height:74px;border-radius:50%;margin:0 auto 12px;display:grid;place-items:center}
.item .ic svg{width:40px;height:40px;fill:none;stroke:var(--ink);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.item b{display:block;font-size:15px;line-height:1.5}
.item small{display:block;font-size:12px;color:var(--mu);line-height:1.6;margin-top:4px}
.item .ok{position:absolute;right:14px;top:14px;width:26px;height:26px;border-radius:50%;background:var(--green);display:grid;place-items:center;transform:scale(0);transition:transform .5s cubic-bezier(.3,1.6,.5,1) .4s}
.item.in .ok{transform:scale(1)}
.item .ok::after{content:"";width:10px;height:6px;border:solid #fff;border-width:0 0 3px 3px;transform:rotate(-45deg) translate(1px,-1px)}
.c1{background:#fdecc0}.c2{background:#d6efe0}.c3{background:#dcedf6}.c4{background:#fbe0da}

/* ---- だれがどこで寝る ---- */
.who{display:grid;grid-template-columns:1fr 1.1fr;gap:36px;align-items:start}
.planbox{background:#fff;border-radius:28px;padding:18px 18px 10px;box-shadow:0 10px 30px -18px rgba(59,53,49,.4)}
.planbox .planSvg{width:100%;height:auto}
.planbox figcaption{font-size:12px;color:var(--mu);text-align:center;padding:4px 0}
.cards{display:grid;gap:14px}
.card{display:grid;grid-template-columns:150px 1fr;gap:16px;align-items:center;background:#fff;border-radius:24px;padding:12px;cursor:pointer;border:3px solid transparent;transition:.25s;text-align:left;font:inherit;color:inherit;width:100%}
.card:hover,.card.on{border-color:var(--yel);transform:translateY(-2px)}
.card img{width:150px;height:112px;object-fit:cover;border-radius:16px}
.card b{font-size:18px;display:block;line-height:1.5}
.card .ppl{display:flex;gap:4px;margin:4px 0;align-items:center}
.card>span{display:block}
.card .ppl i{width:20px;height:20px;border-radius:50%;background:var(--pink)}
.card .ppl i:nth-child(2){background:var(--sky)}.card .ppl i:nth-child(3){background:var(--mint)}
.card .ppl em{font-style:normal;font-size:13px;font-weight:700;margin-left:6px}
.card .cd{display:block;font-size:13.5px;color:var(--mu);line-height:1.7}
.galbtn-wrap{text-align:center;margin-top:34px}
.galbtn{font:inherit;font-weight:700;font-size:15px;background:#fff;border:3px solid var(--ink);border-radius:40px;padding:12px 28px;cursor:pointer;color:var(--ink);transition:.2s}
.galbtn:hover{background:var(--ink);color:#fff}

/* ---- 部屋カードの下に出る、その部屋の短い動画 ---- */
.croom{display:block}
.clip{position:relative;margin:10px 0 2px;border-radius:22px;overflow:hidden;background:var(--cream2);aspect-ratio:16/9;box-shadow:0 10px 24px -16px rgba(59,53,49,.45)}
.clip[hidden]{display:none}
.clip img,.clip video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.clip video{z-index:1}
.clip canvas{position:absolute;inset:0;width:100%;height:100%;z-index:1;opacity:0;transition:opacity .3s}
.clip canvas.live{opacity:1}
.cliptag{z-index:2}
.cliptag{position:absolute;left:12px;top:12px;background:rgba(255,255,255,.93);border-radius:30px;padding:2px 12px;font-size:12.5px;font-weight:700;line-height:1.8}
.cliptag::before{content:"";display:inline-block;width:0;height:0;border-left:8px solid var(--green);border-top:5px solid transparent;border-bottom:5px solid transparent;margin-right:6px;vertical-align:1px}

/* ---- キッチン ---- */
.kitchen{display:grid;grid-template-columns:1.2fr 1fr 1fr;grid-template-rows:auto auto;gap:14px}
.kitchen figure{border-radius:24px;overflow:hidden;position:relative;background:var(--cream2)}
.kitchen figure:first-child{grid-row:1/3}
.kitchen img{width:100%;height:100%;object-fit:cover;aspect-ratio:4/3}
.kitchen figure:first-child img{aspect-ratio:auto;height:100%}
.kitchen figcaption{position:absolute;left:12px;bottom:12px;background:#fff;border-radius:30px;padding:3px 12px;font-size:12.5px;font-weight:700;line-height:1.7}
.ktext{max-width:760px;margin:28px auto 0;text-align:center;font-size:15px}

/* ---- 島へ ---- */
.isl{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.icard{background:#fff;border-radius:26px;padding:22px 22px 18px;position:relative;overflow:hidden}
.icard::before{content:"";position:absolute;right:-30px;top:-30px;width:120px;height:120px;border-radius:50%;opacity:.5}
.icard:nth-child(1)::before{background:var(--yel)}.icard:nth-child(2)::before{background:var(--mint)}.icard:nth-child(3)::before{background:var(--sky)}
.icard h3{font-size:22px;font-weight:900;position:relative;line-height:1.5}
.icard h3 small{font-size:13px;color:var(--mu);font-weight:500;margin-left:6px}
.icard ul{list-style:none;margin-top:10px;position:relative}
.icard li{display:flex;justify-content:space-between;align-items:baseline;gap:10px;border-top:2px dotted #eadfcd;padding:8px 0;font-size:14px}
.icard li b{font-family:"Quicksand",sans-serif;font-size:22px;line-height:1.2;white-space:nowrap}
.icard li b small{font-family:"Zen Maru Gothic",sans-serif;font-size:12px;margin-left:2px}
.icard p{font-size:12.5px;color:var(--mu);position:relative;margin-top:6px;line-height:1.7}
.walk{margin:26px auto 0;max-width:760px;background:var(--ink);color:#fff;border-radius:40px;padding:14px 26px;display:flex;align-items:center;justify-content:center;gap:10px 14px;font-size:15px;flex-wrap:wrap;text-align:center}
.walk b{font-family:"Quicksand",sans-serif;font-size:26px;color:var(--yel);line-height:1.2}
.photo-i{margin-top:26px;border-radius:28px;overflow:hidden;position:relative;aspect-ratio:21/8;background:#9fb6c4}
.photo-i img{width:100%;height:100%;object-fit:cover}
.photo-i span{position:absolute;right:14px;bottom:10px;color:#fff;font-size:12px;text-shadow:0 1px 6px rgba(0,0,0,.6)}

/* ---- 動画 ---- */
.tour{border-radius:30px;overflow:hidden;background:#000;box-shadow:0 20px 40px -24px rgba(0,0,0,.5)}
.tour video{width:100%;aspect-ratio:16/9;display:block}

/* ---- ルームツアーの場面ボタン ---- */
.chapters-h{text-align:center;font-size:12.5px;color:var(--mu);margin-top:18px}
.chapters{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:8px}
.chapters button{font:inherit;font-size:13.5px;font-weight:700;background:#fff;border:2px solid var(--ink);border-radius:30px;padding:6px 14px;cursor:pointer;color:var(--ink);transition:.2s;line-height:1.6}
.chapters button b{font-family:"Quicksand",sans-serif;margin-right:6px;color:var(--green)}
.chapters button:hover,.chapters button.on{background:var(--ink);color:#fff}
.chapters button:hover b,.chapters button.on b{color:var(--yel)}

/* ---- アクセス ---- */
.acc{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;list-style:none}
.accc{background:#fff;border-radius:24px;padding:20px;text-align:center}
.accc .num{font-size:44px;line-height:1;color:var(--navy);display:block;white-space:nowrap}
.accc .num small{font-size:16px;margin-left:2px}
.accc b{display:block;margin-top:6px;line-height:1.5}
.accc>span:not(.num){font-size:12.5px;color:var(--mu);line-height:1.6;display:block}
.acctable{width:100%;max-width:860px;margin:30px auto 0;border-collapse:separate;border-spacing:0 8px;font-size:14px}
.acctable th,.acctable td{background:#fff;padding:12px 16px;text-align:left;vertical-align:top;line-height:1.8}
.acctable th{width:170px;border-radius:18px 0 0 18px;font-weight:700;white-space:nowrap}
.acctable td{border-radius:0 18px 18px 0}
.accnote{max-width:860px;margin:8px auto 0;font-size:12px;color:var(--mu);line-height:1.8}
.sub-h{text-align:center;font-weight:900;font-size:22px;margin:60px 0 18px;letter-spacing:.04em}
.faq{max-width:860px;margin:0 auto}
.faq details{background:#fff;border-radius:22px;margin-bottom:10px;overflow:hidden}
.faq summary{list-style:none;cursor:pointer;padding:16px 58px 16px 22px;font-weight:700;position:relative;line-height:1.7}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"";position:absolute;right:20px;top:50%;width:26px;height:26px;margin-top:-13px;border-radius:50%;background:var(--yel) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 10l5 5 5-5' fill='none' stroke='%233b3531' stroke-width='2.4' stroke-linecap='round'/></svg>") center/18px no-repeat;transition:.3s}
.faq details[open] summary::after{transform:rotate(180deg)}
.faq .a{padding:0 22px 18px;font-size:14.5px;color:#554c46}
.bye{max-width:860px;margin:30px auto 0;background:var(--cream2);border-radius:26px;padding:20px 24px}
.bye b{display:block;margin-bottom:6px}
.bye ul{list-style:none;display:grid;grid-template-columns:1fr 1fr;gap:4px 20px;font-size:14px}
.bye li{padding-left:1.4em;text-indent:-1.4em}
.bye li::before{content:"✓ ";color:var(--green);font-weight:900}
.xg-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;max-width:860px;margin:0 auto}
.xg-card{display:flex;flex-direction:column;gap:4px;background:#fff;border-radius:22px;padding:16px 18px 14px;text-decoration:none;position:relative;transition:.2s}
.xg-card:hover{transform:translateY(-3px);box-shadow:0 10px 20px -14px rgba(0,0,0,.4)}
.xg-card b{font-size:14.5px;line-height:1.6}
.xg-card>span{font-size:12.5px;color:var(--mu);line-height:1.6}
.xg-card i{font-style:normal;color:var(--green);font-weight:900;margin-top:auto}

/* ---- 予約 ---- */
#book{text-align:center;padding-top:90px;padding-bottom:110px}
.bigbtn{display:inline-flex;align-items:center;gap:12px;background:var(--yel);color:var(--ink);text-decoration:none;font-weight:900;font-size:20px;padding:20px 44px;border-radius:60px;box-shadow:0 8px 0 var(--yel2);transition:.15s;margin-top:26px}
.bigbtn:hover{transform:translateY(3px);box-shadow:0 5px 0 var(--yel2)}
.booknote{font-size:13.5px;color:var(--mu);margin-top:22px}
footer{background:var(--ink);color:rgba(255,255,255,.82);padding:44px 28px 110px;font-size:12.5px;line-height:2.1;text-align:center}
footer b{color:#fff;letter-spacing:.12em}
footer a{color:#fff}
footer .fx{display:inline-block;max-width:760px}

/* ---- スマホの下の帯 ---- */
.mbar{display:none}

/* ---- 写真一覧（ポップアップ） ---- */
.galmodal{position:fixed;inset:0;z-index:120;background:var(--cream);overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
.galmodal[hidden]{display:none}
.gm-in{max-width:1100px;margin:0 auto;padding:70px 24px 60px}
.gm-close{position:fixed;right:18px;top:16px;z-index:2;width:48px;height:48px;border-radius:50%;border:0;background:var(--ink);color:#fff;font-size:26px;line-height:1;cursor:pointer}
.gm-t{text-align:center;font-weight:900;font-size:clamp(24px,3vw,34px);margin-bottom:26px}
.gal-g{margin-bottom:40px}
.gal-h{font-size:19px;font-weight:900;margin-bottom:4px;display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.gal-h em{font-style:normal;font-family:"Quicksand",sans-serif;font-size:12px;letter-spacing:.2em;color:var(--green)}
.gal-p{font-size:13.5px;color:var(--mu);margin-bottom:12px}
.gal-i{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.gal-i figure{border-radius:18px;overflow:hidden;background:var(--cream2);aspect-ratio:3/2}
.gal-i img{width:100%;height:100%;object-fit:cover}
.gm-foot{text-align:center;margin-top:10px}
body.lock{overflow:hidden}

@media (max-width:900px){
  header{top:8px;left:8px;right:8px;padding:8px 8px 8px 12px}
  .brand{font-size:13px;letter-spacing:.06em;gap:8px}.brand i{width:26px;height:26px;flex-basis:26px;font-size:13px}
  .lang .hdbook{display:none}
  .lang{font-size:12px;gap:0}.lang a,.lang b{padding:3px 6px}
  .wrap{padding-left:16px;padding-right:16px}
  #hero{padding-top:84px}
  .hero-g{grid-template-columns:1fr;gap:34px}
  .hero-wrap{margin:0 10px}
  .stick{width:88px;height:88px;font-size:11.5px}.stick b{font-size:23px}
  .s1{left:0}.s2{right:0}.s3{left:0}
  .facts{grid-template-columns:1fr 1fr;gap:10px}
  .fact:last-child{grid-column:1/3}
  .sec{padding-top:60px;padding-bottom:60px}
  .items{grid-template-columns:1fr 1fr;gap:10px}
  .item{padding:16px 10px 14px;border-radius:20px}
  .item .ic{width:58px;height:58px}.item .ic svg{width:32px;height:32px}
  .who{grid-template-columns:1fr}
  .card{grid-template-columns:104px 1fr;gap:12px}.card img{width:104px;height:88px}
  .kitchen{grid-template-columns:1fr 1fr}.kitchen figure:first-child{grid-column:1/3;grid-row:auto}.kitchen figure:first-child img{aspect-ratio:4/3}
  .isl{grid-template-columns:1fr}
  .photo-i{aspect-ratio:16/10}
  .acc{grid-template-columns:1fr 1fr;gap:10px}
  .accc{padding:16px 10px}.accc b{font-size:15px}
  .acctable th{width:auto;display:block;border-radius:18px 18px 0 0;padding-bottom:0}
  .acctable td{display:block;border-radius:0 0 18px 18px;padding-top:2px}
  .acctable tr{display:block;margin-bottom:8px}
  .xg-grid{grid-template-columns:1fr}
  .bye ul{grid-template-columns:1fr}
  .bigbtn{font-size:17px;padding:18px 30px}
  .gal-i{grid-template-columns:1fr 1fr}
  .gm-in{padding:70px 14px 50px}
  .mbar{display:flex;position:fixed;left:8px;right:8px;bottom:8px;z-index:35;background:#fff;border-radius:40px;box-shadow:0 8px 24px -10px rgba(0,0,0,.35);padding:8px 8px 8px 18px;align-items:center;justify-content:space-between;gap:10px}
  .mbar>div{min-width:0}
  .mbar b{font-size:13px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mbar div>span{font-size:11px;color:var(--mu);display:block;line-height:1.5}
  .mbar a{background:var(--yel);color:var(--ink);font-weight:900;text-decoration:none;padding:10px 18px;border-radius:30px;font-size:13px;white-space:nowrap}
}
@media (max-width:360px){
  .card{grid-template-columns:84px 1fr;gap:10px}.card img{width:84px;height:84px}
  .acc{grid-template-columns:1fr}
  .brand{font-size:12px}
  .lang a,.lang b{padding:3px 4px}
}
@media (prefers-reduced-motion:reduce){.blob,.stick{animation:none}.reveal{transition:none;opacity:1;transform:none}.item .ok{transition:none}}
