/* Rakuza 1.1.3: opt-in home only. Booking and checkout UI untouched. */
body.rakuza-home-redesign { --rz-ink: #24251f; --rz-forest: #23433a; --rz-paper: #f9f8f4; }
body.rakuza-home-redesign .custom-header { position:relative; height: min(880px, 88svh); min-height: 560px; overflow:hidden; }
body.rakuza-home-redesign .custom-header-media { position:absolute !important; inset:0; width:100%; height:100% !important; overflow:hidden; transform:none!important; }
body.rakuza-home-redesign .custom-header-media::before { display:none!important; }
body.rakuza-home-redesign .rakuza-hero,
body.rakuza-home-redesign .rakuza-hero__slides,
body.rakuza-home-redesign .rakuza-hero__slide { position:absolute; inset:0; width:100%; height:100%; }
body.rakuza-home-redesign .rakuza-hero__slide { opacity:0; pointer-events:none; visibility:hidden; transition:opacity .7s ease,visibility .7s ease; }
body.rakuza-home-redesign .rakuza-hero__slide.is-active { opacity:1; pointer-events:auto; visibility:visible; }
body.rakuza-home-redesign .rakuza-hero__image { position:absolute!important; inset:0!important; width:100%!important; height:100%!important; max-width:none!important; max-height:none!important; object-fit:cover; object-position:var(--rz-focus-pc-x, 50%) var(--rz-focus-pc-y, 50%); transform-origin:var(--rz-focus-pc-x, 50%) var(--rz-focus-pc-y, 50%); transform:scale(var(--rz-zoom-pc, 1))!important; will-change:transform; }
body.rakuza-home-redesign .rakuza-hero__slide[data-fit-pc="contain"] .rakuza-hero__image { object-fit:contain; }
body.rakuza-home-redesign .rakuza-hero__picture { position:absolute; inset:0; width:100%; height:100%; display:block; }
body.rakuza-home-redesign .rakuza-hero__shade { position:absolute; inset:0; background:linear-gradient(90deg,rgba(10,14,13,.46),transparent 72%),linear-gradient(0deg,rgba(10,14,13,.68),transparent 55%); }
body.rakuza-home-redesign .rakuza-hero__copy { position:absolute; left:max(5vw,calc((100vw - 1200px)/2)); right:12%; bottom:clamp(92px,13vh,170px); max-width:850px; color:#fff; text-shadow:0 1px 14px rgba(0,0,0,.35); }
body.rakuza-home-redesign .rakuza-hero__heading { margin:0 0 14px; font-family:'Hiragino Mincho ProN','Yu Mincho',serif; font-weight:500; font-size:clamp(30px,4.6vw,69px); line-height:1.32; letter-spacing:.06em; color:#fff; }
body.rakuza-home-redesign .rakuza-hero__sub { margin:0; font-size:clamp(12px,1.6vw,17px); line-height:1.8; letter-spacing:.04em; color:#fff; }
body.rakuza-home-redesign .rakuza-hero__controls { position:absolute; z-index:4; bottom:22px; left:50%; transform:translateX(-50%); display:flex; align-items:center; gap:14px; }
body.rakuza-home-redesign .rakuza-hero__arrow { border:1px solid rgba(255,255,255,.5); background:rgba(10,15,14,.38); color:#fff; border-radius:50%; width:40px; height:40px; padding:0; font-size:29px; line-height:1; cursor:pointer; }
body.rakuza-home-redesign .rakuza-hero__dots { display:flex; gap:9px; align-items:center; }
body.rakuza-home-redesign .rakuza-hero__dot { width:8px; height:8px; border-radius:50%; padding:0; background:rgba(255,255,255,.53); border:0; cursor:pointer; }
body.rakuza-home-redesign .rakuza-hero__dot.is-active { background:white; transform:scale(1.4); }
body.rakuza-home-redesign .rakuza-hero__arrow:focus-visible,
body.rakuza-home-redesign .rakuza-hero__dot:focus-visible { outline:2px solid #fff; outline-offset:4px; }
/* Preserve native greeting and login inside the branding container. */
body.rakuza-home-redesign .rakuza-header-branding { position:absolute!important; inset:0; z-index:5; pointer-events:none; width:100%; padding:30px 0!important; }
body.rakuza-home-redesign .rakuza-header-branding > .wrap { position:relative; max-width:1200px; height:100%; }
body.rakuza-home-redesign .rakuza-header-branding .site-branding-text,
body.rakuza-home-redesign .rakuza-header-branding .custom-logo-link { position:absolute!important; width:1px!important; height:1px!important; overflow:hidden!important; clip-path:inset(50%)!important; white-space:nowrap!important; }
body.rakuza-home-redesign #masthead .rakuza-header-branding .rakuza-header-greeting { position:absolute; top:0; left:0; right:auto; margin-top:0; pointer-events:auto; background:rgba(255,255,255,var(--rz-greeting-bg-alpha,.55))!important; backdrop-filter:blur(3px); -webkit-backdrop-filter:blur(3px); border-radius:8px; padding:7px 12px!important; }
body.rakuza-home-redesign .menu-scroll-down { display:none!important; }
body.rakuza-home-redesign .rakuza-hero__slide[data-copy-pc="right"] .rakuza-hero__copy { left:auto; right:max(5vw,calc((100vw - 1200px)/2)); width:48%; text-align:right; }
/* Existing plugin main-menu data and PWA behavior: change appearance only. */
body.rakuza-home-redesign .rakuza_cb2-main-menu { justify-content:center; gap:11px!important; margin:10px auto 20px!important; }
body.rakuza-home-redesign .rakuza_cb2-main-menu a.rakuza_cb2-main-menu-link,
body.rakuza-home-redesign .rakuza_cb2-main-menu .rakuza-app-install button.rakuza-app-install__open { background:#fff!important; border:1px solid rgba(35,67,58,.27)!important; color:var(--rz-forest)!important; border-radius:3px!important; padding:13px 18px!important; min-height:46px!important; box-shadow:none!important; font-size:14px!important; font-weight:600!important; letter-spacing:.03em; }
body.rakuza-home-redesign .rakuza_cb2-main-menu a.rakuza_cb2-main-menu-link:hover,
body.rakuza-home-redesign .rakuza_cb2-main-menu .rakuza-app-install button.rakuza-app-install__open:hover { background:var(--rz-forest)!important; border-color:var(--rz-forest)!important; color:#fff!important; }
/* Services live in the existing front page panel, never a replacement for booking UI. */
body.rakuza-home-redesign .panel-content { background:var(--rz-paper); }
body.rakuza-home-redesign .rakuza-home-services { padding:64px 0 86px; color:var(--rz-ink); }
body.rakuza-home-redesign .rakuza-home-services__intro { text-align:center; margin:0 auto 34px; }
body.rakuza-home-redesign .rakuza-home-services__intro > span { font-size:10px; font-weight:700; letter-spacing:.27em; color:var(--rz-forest); }
body.rakuza-home-redesign .rakuza-home-services__intro h2 { color:var(--rz-ink); font-family:'Hiragino Mincho ProN','Yu Mincho',serif; font-size:clamp(25px,3vw,40px); font-weight:500; letter-spacing:.08em; margin:14px 0 10px; }
body.rakuza-home-redesign .rakuza-home-services__intro p { font-size:14px; margin:0; line-height:1.9; }
body.rakuza-home-redesign .rakuza-home-services__grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
body.rakuza-home-redesign .rakuza-home-services__card { position:relative; display:flex; flex-direction:column; min-height:235px; background:#fff; padding:29px 27px; text-decoration:none!important; border:1px solid #e8e8e1; box-shadow:0 5px 30px rgba(18,30,26,.03); color:var(--rz-ink); transition:transform .18s,box-shadow .18s; }
body.rakuza-home-redesign .rakuza-home-services__card:hover { transform:translateY(-3px); box-shadow:0 9px 30px rgba(18,30,26,.10); }
body.rakuza-home-redesign .rakuza-home-services__tag { color:#687e72; font:700 10px/1.2 Arial,sans-serif; letter-spacing:.22em; }
body.rakuza-home-redesign .rakuza-home-services__card strong { font-size:20px; font-weight:600; margin:23px 0 15px; color:var(--rz-ink); }
body.rakuza-home-redesign .rakuza-home-services__card > span:not(.rakuza-home-services__tag):not(.rakuza-home-services__go) { font-size:13px; line-height:1.9; color:#5c615c; }
body.rakuza-home-redesign .rakuza-home-services__go { position:absolute; right:24px; bottom:20px; font-size:18px; color:var(--rz-forest); }
/* v1.1.10: Native Gutenberg blocks replace the hard-coded front-page cards. */
body.rakuza-home-redesign .rakuza-home-services .rakuza-home-services__intro > p.rakuza-home-services__eyebrow {
 font:700 10px/1.5 Arial,sans-serif; letter-spacing:.27em; color:var(--rz-forest); margin:0;
}
body.rakuza-home-redesign .rakuza-home-services .rakuza-home-services__intro > h2 { margin:14px 0 10px; }
body.rakuza-home-redesign .rakuza-home-services .rakuza-home-services__grid { max-width:none; }
body.rakuza-home-redesign .rakuza-home-services .rakuza-home-services__card { box-sizing:border-box; margin-block-start:0; }
body.rakuza-home-redesign .rakuza-home-services .rakuza-home-services__card > p.rakuza-home-services__tag {
 margin:0; color:#687e72; font:700 10px/1.2 Arial,sans-serif; letter-spacing:.22em;
}
body.rakuza-home-redesign .rakuza-home-services .rakuza-home-services__card > h3 {
 font-size:20px; font-weight:600; line-height:1.45; margin:23px 0 15px; color:var(--rz-ink);
}
body.rakuza-home-redesign .rakuza-home-services .rakuza-home-services__card > p.rakuza-home-services__desc {
 font-size:13px; line-height:1.9; margin:0 0 25px; color:#5c615c;
}
/* The normal Gutenberg button owns the destination; its invisible link fills the entire card. */
body.rakuza-home-redesign .rakuza-home-services .rakuza-home-services__card .wp-block-buttons {
 position:absolute; inset:0; margin:0; display:block;
}
body.rakuza-home-redesign .rakuza-home-services .rakuza-home-services__card .wp-block-button {
 margin:0; position:static; display:block;
}
body.rakuza-home-redesign .rakuza-home-services .rakuza-home-services__card a.wp-block-button__link {
 position:absolute; inset:0; box-sizing:border-box; width:100%; height:100%;
 background:transparent!important; color:transparent!important; border:0!important;
 border-radius:0!important; box-shadow:none!important; text-shadow:none!important;
 padding:0!important; margin:0!important; text-align:left; overflow:hidden;
}
body.rakuza-home-redesign .rakuza-home-services .rakuza-home-services__card a.wp-block-button__link::after {
 content:'↗'; position:absolute; right:24px; bottom:20px; color:var(--rz-forest);
 font-size:18px; line-height:1;
}
body.rakuza-home-redesign .rakuza-home-services .rakuza-home-services__card:focus-within {
 outline:2px solid var(--rz-forest); outline-offset:3px;
}
@media(max-width:767px) {
 body.rakuza-home-redesign .custom-header { height: min(760px,86svh); min-height:540px; }
 body.rakuza-home-redesign .rakuza-header-branding { padding:18px 0!important; }
    body.rakuza-home-redesign #masthead .rakuza-header-branding .rakuza-header-greeting { top:0; left:0; right:auto; padding:6px 9px!important; }
 body.rakuza-home-redesign .rakuza-hero__copy { left:23px; right:20px; bottom:95px; }
 body.rakuza-home-redesign .rakuza-hero__image { object-position:var(--rz-focus-mobile-x, 50%) var(--rz-focus-mobile-y, 50%); transform-origin:var(--rz-focus-mobile-x, 50%) var(--rz-focus-mobile-y, 50%); transform:scale(var(--rz-zoom-mobile, 1))!important; }
 body.rakuza-home-redesign .rakuza-hero__slide[data-fit-pc="contain"] .rakuza-hero__image { object-fit:cover; }
 body.rakuza-home-redesign .rakuza-hero__slide[data-fit-mobile="contain"] .rakuza-hero__image { object-fit:contain; }
 body.rakuza-home-redesign .rakuza-hero__slide[data-copy-pc="right"] .rakuza-hero__copy { left:23px; right:20px; width:auto; max-width:850px; text-align:left; }
 body.rakuza-home-redesign .rakuza-hero__slide[data-copy-mobile="right"] .rakuza-hero__copy { left:auto; right:23px; width:73%; text-align:right; }
 body.rakuza-home-redesign .rakuza-hero__heading { font-size:clamp(28px,7vw,42px); }
 body.rakuza-home-redesign .rakuza-hero__sub { font-size:12px; }
 body.rakuza-home-redesign .rakuza-home-services { padding:42px 0 55px; }
 body.rakuza-home-redesign .rakuza-home-services__grid { grid-template-columns:1fr; gap:12px; }
 body.rakuza-home-redesign .rakuza-home-services__card { min-height:170px; padding:21px 22px; }
 body.rakuza-home-redesign .rakuza-home-services__card strong { margin:12px 0; font-size:18px; }
 body.rakuza-home-redesign .rakuza-home-services .rakuza-home-services__card > h3 { margin:12px 0; font-size:18px; }
 body.rakuza-home-redesign .rakuza_cb2-main-menu a.rakuza_cb2-main-menu-link,
 body.rakuza-home-redesign .rakuza_cb2-main-menu .rakuza-app-install button.rakuza-app-install__open { padding:10px 13px!important; font-size:13px!important; min-height:42px!important; }
}
@media(prefers-reduced-motion:reduce) { body.rakuza-home-redesign .rakuza-hero__slide, body.rakuza-home-redesign .rakuza-home-services__card { transition:none!important; } }


/* v1.1.19: First row of the shortcode main menu is the three featured destinations.
 * Keep the original wrapping and size of every subsequent menu item.
 * The three destinations are chosen and ordered in 楽座 > メインメニュー.
 */
body.rakuza-home-redesign .rakuza_cb2-main-menu > a.rakuza_cb2-main-menu-link:nth-child(-n+3) {
    box-sizing: border-box;
    position: relative;
    flex: 0 0 calc((100% - 22px) / 3) !important; /* two existing 11px gaps */
    width: calc((100% - 22px) / 3);
    max-width: none !important;
    min-width: 0;
    min-height: 115px !important; /* existing PC 46px × 2.5 */
    padding: 16px 12px !important;
    border: 2px solid var(--rz-forest) !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: 0 3px 11px rgba(35,67,58,.09) !important;
    color: var(--rz-forest) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
    text-align: center;
}
body.rakuza-home-redesign .rakuza_cb2-main-menu > a.rakuza_cb2-main-menu-link:nth-child(-n+3)::before {
    content: '';
    position: absolute;
    inset: 5px;
    border: 1px solid rgba(35,67,58,.48);
    border-radius: 7px;
    pointer-events: none;
}
body.rakuza-home-redesign .rakuza_cb2-main-menu > a.rakuza_cb2-main-menu-link:nth-child(-n+3):hover,
body.rakuza-home-redesign .rakuza_cb2-main-menu > a.rakuza_cb2-main-menu-link:nth-child(-n+3):focus-visible {
    color: #fff !important;
    background: var(--rz-forest) !important;
    border-color: var(--rz-forest) !important;
    box-shadow: 0 5px 16px rgba(35,67,58,.19) !important;
}
body.rakuza-home-redesign .rakuza_cb2-main-menu > a.rakuza_cb2-main-menu-link:nth-child(-n+3):hover::before,
body.rakuza-home-redesign .rakuza_cb2-main-menu > a.rakuza_cb2-main-menu-link:nth-child(-n+3):focus-visible::before {
    border-color: rgba(255,255,255,.75);
}
@media (max-width: 767px) {
    body.rakuza-home-redesign .rakuza_cb2-main-menu > a.rakuza_cb2-main-menu-link:nth-child(-n+3) {
        min-height: 105px !important; /* existing mobile 42px × 2.5 */
        padding: 12px 5px !important;
        font-size: 13px !important;
        line-height: 1.45 !important;
        border-radius: 10px !important;
    }
    body.rakuza-home-redesign .rakuza_cb2-main-menu > a.rakuza_cb2-main-menu-link:nth-child(-n+3)::before {
        inset: 4px;
        border-radius: 6px;
    }
}

/* v1.1.20: Only the three featured buttons stack the segments separated
 * by an ASCII or full-width space in the editable menu label.
 * No change to labels or the layout of the buttons on later rows.
 */
body.rakuza-home-redesign .rakuza_cb2-main-menu > a.rakuza_cb2-main-menu-link:nth-child(-n+3) {
    flex-direction: column !important;
    gap: 0 !important;
}
body.rakuza-home-redesign .rakuza_cb2-main-menu > a.rakuza_cb2-main-menu-link:nth-child(-n+3) .rakuza-featured-menu-line {
    display: block;
    max-width: 100%;
}
