.home-mobile-intro,.home-mobile-notice,.home-mobile-lace{display:none}
.home-page{position:relative;min-height:100svh;background:#fff;color:#715b4f;background-image:radial-gradient(circle,rgba(117,104,98,.115) 0 1.35px,transparent 1.6px),radial-gradient(circle,rgba(117,104,98,.115) 0 1.35px,transparent 1.6px);background-size:27px 27px;background-position:0 0,13.5px 13.5px}
.home-box{position:relative;min-height:0;overflow:hidden;background:#fffdfb;border:1px solid #d8cbc7;box-shadow:inset 0 0 0 3px #fff}
.home-box>h3,.home-mobile-notice b{--head-base:#efe8e6;height:26px;margin:0;display:flex;align-items:center;justify-content:center;position:relative;border-bottom:1px solid #d8cbc7;color:#795b57;font:700 8px/1 system-ui,sans-serif;letter-spacing:.2em;background-color:var(--head-base);background-image:linear-gradient(180deg,rgba(92,62,58,.16) 0%,rgba(92,62,58,.095) 14%,rgba(255,255,255,.18) 30%,rgba(255,255,255,.82) 43%,rgba(255,255,255,.42) 56%,rgba(255,255,255,.08) 76%,rgba(255,255,255,0) 100%),radial-gradient(ellipse at 30% 26%,rgba(255,255,255,.86) 0%,rgba(255,255,255,.46) 22%,rgba(255,255,255,.12) 48%,rgba(255,255,255,0) 70%),linear-gradient(104deg,rgba(255,255,255,0) 0 22%,rgba(255,255,255,.12) 31%,rgba(255,255,255,.72) 43%,rgba(255,255,255,.18) 54%,rgba(255,255,255,0) 65% 100%);background-blend-mode:multiply,screen,soft-light;box-shadow:inset 0 1px 0 rgba(112,79,72,.16),inset 0 3px 5px rgba(95,64,58,.07),inset 0 -1px 0 rgba(255,255,255,.84),0 1px 0 rgba(255,255,255,.78);text-shadow:0 1px 0 rgba(255,255,255,.76)}
.home-box>h3::before,.home-box>h3::after{content:'✦';position:absolute;font-size:6px;opacity:.36;text-shadow:0 1px 0 rgba(255,255,255,.82),0 0 5px rgba(255,255,255,.44)}.home-box>h3::before{left:8px}.home-box>h3::after{right:8px}
.home-box>h3.tone-calendar{--head-base:#eaf0e7}.home-box>h3.tone-info{--head-base:#f2eee4}.home-box>h3.tone-world{--head-base:#f3e5e8}.home-box>h3.tone-pickup{--head-base:#e8eef0}.home-box>h3.tone-update{--head-base:#f3ebe7}.home-box>h3.tone-status{--head-base:#ece9ef}
.home-calendar-body{padding:8px 10px;color:#795b57}.home-calendar-body>strong{display:block;text-align:center;font:700 11px/1.3 Georgia,serif;letter-spacing:.14em;margin-bottom:7px}.home-calendar-body>div{display:grid;grid-template-columns:repeat(7,1fr);gap:2px;text-align:center;font:600 7px/1.25 system-ui,sans-serif;opacity:.78}.home-calendar-body b{font-size:6px;opacity:.62}.home-calendar-body i{font-style:normal;padding:2px 0}.home-calendar-body .today{background:#96716c;color:#fff;border-radius:50%}
.home-hero{position:relative;overflow:hidden;border:1px solid #d8cbc7;background:linear-gradient(135deg,#fffaf8,#eee3df);display:grid;place-items:center;color:#895d5d4d;font:700 8px/1 system-ui,sans-serif;letter-spacing:.2em}.home-hero::before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#fff9 0 12%,transparent 34%),repeating-linear-gradient(90deg,transparent 0 34px,#8e6a6408 34px 35px)}
.home-hero-picture{position:absolute;inset:0;z-index:2;overflow:hidden}.home-hero-picture img{width:100%;height:100%;object-fit:cover}.home-hero-frill{display:none;position:absolute;z-index:3;left:-1px;right:-1px;bottom:-2px;height:clamp(12px,2.4vh,25px);background-image:var(--home-frill,none);background-position:center bottom;background-repeat:no-repeat;background-size:100% 100%;pointer-events:none}
.home-info{padding-bottom:0}.home-info p{margin:13px 14px 0;color:#765c58;font-family:'Shippori Mincho','Yu Mincho',serif;font-size:10px;line-height:1.85}.home-info small{display:block;margin:11px 14px 0;padding-top:10px;border-top:1px solid #8d6a6424;font:600 7px/1.65 system-ui,sans-serif;letter-spacing:.07em;color:#765c58;opacity:.55}
.home-banner{position:relative;overflow:hidden;border:1px solid #d8cbc7;background:linear-gradient(90deg,#fffaf6,#f0e4e0,#fffaf6);display:grid;place-items:center;color:#895d5d4a;font:700 7px/1 system-ui,sans-serif;letter-spacing:.18em}.home-banner img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.home-world-title{background:url('../assets/world-heading.svg') center/contain no-repeat;text-indent:-9999px;overflow:hidden;opacity:.15}
.home-world-stage{position:relative;min-height:0;overflow:hidden;border:1px solid #8e6b6526;background:#fffaf6}
.home-world-track{min-height:0;display:flex;align-items:stretch;gap:8px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}.home-world-track::-webkit-scrollbar{display:none}
.home-world-card{appearance:none;position:relative;flex:0 0 28.5%;min-width:145px;height:100%;padding:0;border:1px solid #8e6b6538;border-radius:999px 999px 0 0;overflow:hidden;background:linear-gradient(145deg,var(--wm),var(--ws));scroll-snap-align:start;cursor:pointer;box-shadow:0 2px 7px #5e49411a;-webkit-tap-highlight-color:transparent}.home-world-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.home-world-card::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,transparent 52%,rgba(43,29,26,.08) 72%,rgba(43,29,26,.32) 100%);pointer-events:none}.home-world-card>span:last-child{position:absolute;z-index:2;left:8px;right:8px;bottom:6px;color:#fffdf9;font-family:'Hiragino Kaku Gothic ProN','Yu Gothic','YuGothic',system-ui,sans-serif;font-size:clamp(8px,.72vw,11px);font-weight:600;line-height:1.05;letter-spacing:.04em;text-align:center;text-shadow:0 1px 3px #39272299,0 0 5px #39272255;overflow-wrap:anywhere}.home-world-caption{text-align:center;font:600 7px/1 system-ui,sans-serif;letter-spacing:.14em;color:#795b576e}.home-world-nav,.home-world-spacer{display:none}
.home-pickup>button{appearance:none;border:0;background:transparent;cursor:pointer;display:grid;place-items:center;padding:4px 8px 20px;position:relative;overflow:hidden}.home-pickup>button::after{content:'日替わりでキャラクターをピックアップしています。';position:absolute;left:8px;right:8px;bottom:5px;text-align:center;font-family:'Hiragino Mincho ProN','Yu Mincho',serif;font-size:7px;line-height:1.2;letter-spacing:.04em;color:#795b5780;pointer-events:none}.home-pickup-plate{width:min(88%,220px);aspect-ratio:1;display:grid;place-items:center;background-position:center;background-repeat:no-repeat;background-size:contain;border-radius:50%;background-color:transparent;box-shadow:none;transform:translateY(-3px)}.home-pickup-plate img{max-width:54%;max-height:54%;object-fit:contain;filter:drop-shadow(0 3px 6px #fff)}.home-pickup button>b{display:none}
.home-update-list{padding:7px 9px;color:#795b57}.home-update-list>div{display:grid;grid-template-columns:40px minmax(0,1fr);gap:5px;padding:7px 0;border-bottom:1px dotted #8d6a6430;font-size:7.5px}.home-update-list>div:last-child{border-bottom:0}.home-update-list time{opacity:.5}.home-update-list span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.home-status{height:calc(100% - 26px);display:grid;grid-template-columns:1fr 1fr;align-content:center;gap:7px;padding:10px;color:#795b57}.home-status>div{border:1px solid #8d6a6426;text-align:center;padding:8px 4px}.home-status b{display:block;font:400 20px/1 Georgia,serif}.home-status small{display:block;margin-top:3px;font:600 6px/1 system-ui,sans-serif;letter-spacing:.1em;opacity:.52}.home-status .last{grid-column:1/-1}.home-status .last b{font-size:10px;letter-spacing:.08em}
.home-fence{display:none;position:absolute;z-index:1;left:0;right:0;bottom:0;height:clamp(70px,12vh,135px);background-image:var(--home-fence,none);background-position:center bottom;background-repeat:no-repeat;background-size:100% auto;pointer-events:none}

/* Desktop/iPad HOME visual contract. Geometry is deliberately derived from the approved legacy HOME baseline. */
@media(min-width:701px){
  .home-page{height:100svh;padding:7vh 9vw;display:grid;place-items:center;overflow:hidden}
  .home-shell{position:relative;z-index:2;width:min(82vw,calc(86svh * 2000 / 1520),1180px);height:auto;max-height:86svh;aspect-ratio:2000/1520;min-height:0;margin:auto;padding:10px;display:grid;grid-template-rows:30px minmax(118px,24%) minmax(0,1fr) 27px;gap:7px;background:#fffdfb;border:1px solid #cdbdb8;box-shadow:0 0 0 4px #fff,0 0 0 5px #dfd3cf,0 0 0 9px #fffdfb,0 0 0 10px #cfc0bb,0 12px 35px #79645b14}
  .home-shell::before{content:'';position:absolute;inset:-18px;pointer-events:none;background-image:var(--home-frame,none);background-size:100% 100%;background-repeat:no-repeat;z-index:0;opacity:.96}.home-shell>*{position:relative;z-index:1}
  .home-greeting{min-height:0;display:flex;align-items:center;justify-content:center;padding:0 34px;overflow:hidden;border:1px solid #d8cbc7;background:linear-gradient(90deg,#fffdfb,#f7f0ec,#fffdfb);color:#795b57;font:600 8px/1.1 Georgia,'Times New Roman',serif;letter-spacing:.16em;text-align:center;white-space:nowrap}.home-greeting::before,.home-greeting::after{content:'✦';position:absolute;top:50%;transform:translateY(-50%);font-size:6px;opacity:.34}.home-greeting::before{left:12px}.home-greeting::after{right:12px}
  .home-top{min-height:0;display:grid;grid-template-columns:20% minmax(0,1fr);gap:7px;overflow:hidden}.home-main{min-height:0;display:grid;grid-template-columns:21% minmax(0,1.62fr) 25%;gap:7px;overflow:hidden}.home-left{min-height:0;display:grid;grid-template-rows:minmax(0,1fr) minmax(104px,.58fr) 44px;gap:7px;overflow:hidden}.home-right{min-height:0;display:grid;grid-template-rows:minmax(0,1fr) minmax(130px,.55fr);gap:7px;overflow:hidden}
  .home-worlds{display:grid;grid-template-rows:26px minmax(0,1fr);padding:0}.home-worlds>h3{margin:0}.home-world-body{min-height:0;padding:5px 8px 7px;display:grid;grid-template-rows:64px minmax(0,1fr) 15px;gap:3px}.home-world-title{width:310px;max-width:72%;height:64px;margin:auto;background-size:contain}.home-world-track{height:100%;padding:5px 8px 0}.home-pickup{display:grid;grid-template-rows:26px minmax(0,1fr)}
  .home-shell>footer{display:flex;align-items:center;justify-content:space-between;padding:0 14px;border:1px solid #d8cbc7;background:#fffaf6;color:#795b57;font:600 7px/1 system-ui,sans-serif;letter-spacing:.12em;opacity:.68;white-space:nowrap}
}

/* Approved desktop/iPad WORLD selector: exactly three full cards per page, with the legacy overlaid arrows. */
@media(min-width:900px){
  .home-world-track{width:100%;box-sizing:border-box;gap:8px;padding:0;overflow-x:auto;scroll-snap-type:x mandatory}
  .home-world-card,.home-world-spacer{box-sizing:border-box;flex:0 0 calc((100% - 16px)/3);min-width:calc((100% - 16px)/3);max-width:calc((100% - 16px)/3);scroll-snap-align:start}
  .home-world-spacer{display:block;pointer-events:none;visibility:hidden;height:100%}
  .home-world-nav{display:block;position:absolute;z-index:6;top:50%;transform:translateY(-50%);width:30px;height:52px;padding:0;border:0;background:transparent;color:#895d5d;text-shadow:0 1px 0 #fff,0 0 6px #fff;font:400 23px/1 Georgia,serif;cursor:pointer;-webkit-tap-highlight-color:transparent}.home-world-nav.prev{left:0}.home-world-nav.next{right:0}
}

/* Approved iPad-landscape composition: this range matches the old HOME screenshot exactly instead of scaling the shell down. */
@media(min-width:900px) and (max-width:1366px){
  .home-page{padding:3.2vh 3.5vw}
  .home-shell{width:min(93vw,calc(91svh * 2000 / 1520),1180px);max-height:91svh;grid-template-rows:28px minmax(112px,23%) minmax(0,1fr) 26px}
  .home-main{grid-template-columns:21% minmax(0,1.5fr) 25%}
  .home-left{grid-template-rows:minmax(0,1fr) minmax(98px,.6fr) 42px}
  .home-right{grid-template-rows:minmax(0,1fr) minmax(122px,.58fr)}
  .home-box>h3{font-size:8.5px}
  .home-info p{font-size:9.5px;line-height:1.7}
  .home-world-title{width:290px;max-width:74%}
}

@media(min-width:701px) and (max-width:899px){
  .home-page{padding:5.5vh 6vw}.home-shell{width:min(86vw,calc(86svh * 2000 / 1520),1040px);max-height:86svh;grid-template-rows:28px minmax(108px,23%) minmax(0,1fr) 26px}.home-greeting{font-size:7.5px}
  .home-main{grid-template-columns:21% minmax(0,1.55fr) 25%}.home-left{grid-template-rows:minmax(0,1fr) minmax(92px,.65fr) 42px}.home-right{grid-template-rows:minmax(0,1fr) minmax(112px,.65fr)}.home-world-card{flex-basis:30.5%;min-width:132px}.home-info p{font-size:9px}.home-pickup-plate{width:min(86%,190px)}.home-world-title{width:270px;max-width:72%}
}

/* Keep the compact single-line caption as the default on iPad and desktop. */
@container clean-main (min-width:701px){
  .home-world-card>span:last-child{
    font-size:clamp(8px,.62vw,9.25px);
    letter-spacing:0;
    line-height:1.1;
    white-space:nowrap;
    overflow-wrap:normal;
  }
}

.home-world-card > .is-long-title:last-child {
  white-space: normal;
  line-height: 1.25;
  line-break: strict;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

/* Phone HOME is the only narrow layout. Split View gets this exact layout because clean-main is framed to the phone width. */
@container clean-main (max-width:700px){
  .home-page{height:auto;min-height:calc(100svh - var(--header-h));padding:0;display:block;overflow:visible;background-color:#fdfcfa;background-image:repeating-linear-gradient(90deg,#fdfcfa 0 12px,#f6efed 13px,#fdfcfa 15px);color:#715b4f}
  .home-greeting{display:none}.home-mobile-lace{display:block;height:22px;background:radial-gradient(ellipse at 50% 100%,transparent 0 6px,#d9ceca 6.3px 7.2px,transparent 7.6px) 0 0/20px 18px repeat-x;opacity:.76}.home-mobile-lace.bottom{transform:rotate(180deg);height:30px;margin-top:20px}
  .home-mobile-intro{display:flex;height:30px;align-items:center;justify-content:center;border-block:1px solid #e4d8d4;background:#fffdfb;color:#816761;font:600 8px/1 Georgia,serif;letter-spacing:.15em}
  .home-shell{width:100%;height:auto;max-height:none;min-height:0;aspect-ratio:auto;margin:0;padding:0 5px;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto auto 395px 170px 150px auto;gap:6px;background:transparent;border:0;box-shadow:none}.home-shell::before,.home-shell>footer{display:none}.home-top,.home-main,.home-left,.home-right{display:contents}
  .home-hero{grid-column:1/-1;grid-row:1;height:48cqw;min-height:180px;border:0;border-bottom:1px solid #eadfdb;margin:0 -5px;overflow:visible}.home-hero-frill{display:block;height:20px;bottom:-8px;background-size:100% 100%}.home-mobile-lace.mid{display:none}
  .home-info{grid-column:1/-1;grid-row:2;margin:8px -5px 0;padding:22px 22px 25px;text-align:center;border:0;border-bottom:1px solid #eadfdb;background:repeating-linear-gradient(90deg,#fdfcfa 0 12px,#f4eeeb 13px,#fdfcfa 15px);box-shadow:none}.home-info>h3{--head-base:#f3eeea;width:min(52%,210px);height:24px;margin:0 auto 15px;border:1px solid #ddd1cd;box-shadow:inset 0 1px 0 rgba(112,79,72,.16),inset 0 3px 5px rgba(95,64,58,.07),inset 0 -1px 0 rgba(255,255,255,.84),0 1px 0 rgba(255,255,255,.78),5px 5px 0 #eadfdc;font-size:8px}.home-info p{max-width:320px;margin:0 auto;font-size:11px;line-height:1.9}.home-info small{display:none}
  .home-worlds{grid-column:1/-1;grid-row:3;display:grid;grid-template-rows:23px minmax(0,1fr);height:395px;margin:0;padding:0;border:1px solid #e2d7d3;background:#fffdfb;box-shadow:none}.home-worlds>h3{--head-base:#f7eeee;height:23px;margin:0;border-bottom:1px solid #dfd3d0;font-size:7px;letter-spacing:.24em}.home-world-body{min-height:0;padding:0 6px 7px;display:grid;grid-template-rows:70px minmax(0,1fr) 22px;gap:0}.home-world-title{height:70px;width:auto;max-width:none;margin:0;background-size:auto 64px}.home-world-stage{border:0;background:transparent}.home-world-track{height:100%;min-height:0;gap:5px;padding:0;border:0;background:transparent;scroll-snap-type:x mandatory}.home-world-nav,.home-world-spacer{display:none}.home-world-card{flex:0 0 31.5%;min-width:0;border-radius:999px 999px 0 0;scroll-snap-align:center;box-shadow:none}.home-world-card>span:last-child{left:5px;right:5px;bottom:7px;text-align:center;font:700 10px/1.05 'Yu Mincho',serif;letter-spacing:0}.home-world-caption{display:flex;align-items:end;justify-content:center;padding-bottom:2px;font-size:6px}
  .home-calendar{grid-column:1;grid-row:4;min-height:170px}.home-pickup{grid-column:2;grid-row:4;min-height:170px;display:grid;grid-template-rows:24px 145px}.home-calendar>h3,.home-pickup>h3,.home-updates>h3,.home-status-card>h3{height:24px;font-size:7px}.home-calendar>h3{--head-base:#eef2e9}.home-pickup>h3{--head-base:#edf1f3}.home-calendar-body{padding:12px 10px}.home-calendar-body>strong{font-size:14px;margin-bottom:10px}.home-calendar-body>div{gap:4px;font-size:7px}.home-pickup>button{height:145px;padding:0}.home-pickup>button::after{display:none}.home-pickup-plate{width:125px;max-width:88%;transform:none}.home-pickup button>b{display:none}
  .home-updates{grid-column:1;grid-row:5;min-height:150px}.home-status-card{grid-column:2;grid-row:5;min-height:150px}.home-updates>h3{--head-base:#f4eeeb}.home-status-card>h3{--head-base:#efedf2}.home-update-list{padding:7px 9px}.home-update-list>div{padding:8px 0}.home-status{height:auto;padding:12px 8px;gap:5px}.home-status>div{padding:8px 3px}.home-status b{font-size:18px}.home-status .last b{font-size:9px}
  .home-banner{grid-column:1/-1;grid-row:6;width:52%;height:auto;aspect-ratio:4/1;margin:68px auto 28px;border:1px solid #e2d7d3;background:#fffdfb center/cover no-repeat}.home-banner img{object-fit:cover}
  .home-mobile-notice{display:block;margin:8px 5px 0;padding:0;min-height:150px;border:1px solid #dfd3d0;background:#fffdfb;text-align:center;color:#745d58}.home-mobile-notice b{--head-base:#edf2f3;height:24px;border-bottom:1px solid #dfd3d0;font-size:7px;letter-spacing:.23em}.home-mobile-notice p{padding:20px 18px;margin:0;font-size:9px;line-height:1.8}
  .home-fence{display:block;position:relative;z-index:1;left:auto;right:auto;bottom:auto;width:100%;height:120px;margin-top:-8px;background-size:100% auto;background-position:center bottom;opacity:1}
}
@container clean-main (max-width:430px){.home-world-track{min-height:270px}.home-pickup-plate{width:116px}.home-fence{height:100px}}
@media(prefers-reduced-motion:reduce){.home-world-card{transition:none!important}.home-world-track{scroll-behavior:auto!important}}

/* Flat HOME banner: links remain clickable, with no shadows or keycap overlay. */
.home-banner .home-banner-link{position:absolute;inset:0;display:block;cursor:pointer;-webkit-tap-highlight-color:transparent}
.home-banner .home-banner-link:focus-visible{outline:2px solid #946b78;outline-offset:-3px}
