html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif; }
.only-edit, .pera1-ghost, [data-custom-sp-bgimg-target], .empty-spacer { display: none !important; }
img { max-width: 100%; height: auto; vertical-align: middle; }
.c-img img, .c-img a { display: block; }
.c-img img { margin-inline: auto; }
.c-img--full, .c-img--full a, [data-structure="b-img--full"] { margin: 0 !important; padding: 0 !important; line-height: 0; }
.c-img--full img { display: block; width: 100%; height: auto; }
.c-wrapper, .grid-wrapper { max-width: 100%; }
.c-wrapper { padding-inline: clamp(16px, 3vw, 32px); }
.pera1-section { min-width: 0; }
.visual-divider .c-inner { padding-block: clamp(10px, 2vw, 24px) !important; }
.visual-divider [data-structure="e-text"] { line-height: 0; }
iframe { max-width: 100%; }
.c-embedly-object--responsive iframe { width: 100%; }
a:focus-visible, button:focus-visible, summary:focus-visible, [role="button"]:focus-visible { outline: 3px solid #1677a7; outline-offset: 4px; }

/* Responsive navigation with enough room for the original section links. */
.p-navigation { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-inline: 0; }
.p-navigation > .c-inner { display: flex; align-items: center; justify-content: space-between; flex: 0 0 200px; padding-block: 14px; }
.p-navigationHeader { width: auto; max-width: 100%; padding: 0; flex: 1; }
.p-header__logo { max-width: 200px; }
.p-header__logo img { width: 100%; height: auto; }
.p-m_navigationMenu { flex: 1 1 500px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 14px; margin: 0; padding: 12px 0; font-size: 15px !important; }
.p-m_navigationMenu li { margin: 0 !important; list-style: none; }
.p-m_navigationMenu a { padding-block: 4px; }
.p-btn_navigationToggle { display: none !important; cursor: pointer; min-width: 44px; min-height: 44px; border: 1px solid #ddd; border-radius: 6px; align-items: center; justify-content: center; }
.p-btn_navigationToggle::after { content: "☰"; font-size: 26px; line-height: 1; }
.p-btn_navigationToggle i { display: none; }

/* Sliding track, rather than abruptly swapping visible images. */
.swiper-container { position: relative; overflow: hidden; touch-action: pan-y; width: 100%; aspect-ratio: 2 / 1; }
.swiper-wrapper { display: flex !important; height: 100%; width: 100%; will-change: transform; transition: transform 850ms cubic-bezier(.22, .61, .36, 1); }
.swiper-slide { display: block !important; flex: 0 0 100%; width: 100% !important; min-width: 0; height: 100%; }
.swiper-slide-img { display: block; width: 100%; height: 100%; object-fit: contain; margin: 0; }
.swiper-button { cursor: pointer; position: absolute; top: 50%; z-index: 3; border: 0; border-radius: 50%; background: rgba(0,0,0,.5); color: #fff; width: 44px; height: 44px; margin: 0; display: grid; place-items: center; font: 30px/1 sans-serif; transform: translateY(-50%); }
.swiper-button::before, .swiper-button::after { display: none !important; }
.swiper-button-prev { left: 12px; } .swiper-button-next { right: 12px; }
.swiper-pagination { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 0; z-index: 4; }
.slide-dot { display: grid; place-items: center; border: 0; width: 32px; height: 32px; padding: 0; background: transparent; cursor: pointer; }
.slide-dot::before { content: ""; border: 1px solid white; border-radius: 50%; width: 10px; height: 10px; background: rgba(0,0,0,.4); }
.slide-dot[aria-current="true"]::before { background: #f39800; }
.slider-pause { position: absolute; z-index: 4; bottom: 12px; right: 12px; min-width: 44px; min-height: 32px; padding: 5px 9px; border: 0; border-radius: 4px; background: rgba(0,0,0,.6); color: #fff; font: inherit; font-size: 12px; cursor: pointer; }

/* Image panels align edge to edge; text-bearing gallery images stack on phones. */
[data-structure="m-img-full-gallery--3col"] .row { display: grid !important; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0; margin: 0; align-items: start; }
[data-structure="m-img-full-gallery--3col"] .row::before, [data-structure="m-img-full-gallery--3col"] .row::after { display: none !important; }
[data-structure="m-img-full-gallery--3col"] .row > div { width: 100%; max-width: 100%; padding: 0; margin: 0; }
[data-structure="m-img-full-gallery--3col"] .grid-wrapper { padding: 0; }

/* Native FAQ disclosure: closed in HTML, with no dependency on JavaScript. */
[data-structure="m-list-faq"] { list-style: none; padding: 0; margin: 0; }
[data-structure="e-list-faq"] { list-style: none; margin: 0 !important; padding: 0 !important; border-top: 1px solid #ded6cd; }
.faq-question { display: flex; align-items: center; gap: 12px; padding: 18px 8px; cursor: pointer; list-style: none; text-align: left; font-size: clamp(15px, 1.5vw, 18px); line-height: 1.6; }
.faq-question::-webkit-details-marker { display: none; }
.faq-question > .c-symbol { float: none; margin: 0; flex: 0 0 auto; }
.faq-question > .u-overflow-hidden { flex: 1; min-width: 0; margin: 0; overflow: visible; }
.faq-toggle { flex: 0 0 24px; text-align: center; color: #b56500; font: 26px/1 sans-serif; }
.faq-toggle::before { content: "+"; }
.faq-item[open] .faq-toggle::before { content: "−"; }
.faq-answer { padding: 0 8px 22px; line-height: 1.9; text-align: left; }
.faq-answer > .c-symbol { margin-top: 3px; }
.faq-answer p { margin: 0; }
.faq-item[open] .faq-question { color: #914f00; }

.rogieam-footer { min-height: clamp(240px, 35vw, 430px); display: flex; align-items: center; justify-content: center; flex-direction: column; padding: clamp(32px, 5vw, 64px) 16px !important; }
.footer-logo-link { display: block; width: min(300px, 70vw); line-height: 0; border-radius: 6px; background: white; box-shadow: 0 8px 30px rgba(0,0,0,.25); overflow: hidden; }
.footer-logo { display: block; width: 100%; height: auto; margin: 0; }

@media (max-width: 1024px) {
 .p-navigation { gap: 0; }
 .p-navigation > .c-inner { flex: 0 0 100%; width: 100%; padding-block: 8px; }
 .p-header__logo { max-width: 160px; }
 .p-navigationHeader { flex: 0 1 180px; }
 .p-m_navigationMenu { display: none !important; }
 .p-m_navigationMenu.is-open { display: flex !important; flex-direction: column; flex-basis: 100%; width: 100%; padding: 8px 0 16px; gap: 0; text-align: left; }
 .p-m_navigationMenu.is-open li { display: block; border-top: 1px solid #eee; }
 .p-m_navigationMenu.is-open a { display: block; padding: 10px 8px; }
 .p-btn_navigationToggle { display: flex !important; position: static; margin: 0; }
 [data-structure="m-img-full-gallery--3col"] .row { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px) {
 .swiper-button { width: 36px; height: 36px; font-size: 24px; }
 .swiper-button-prev { left: 6px; } .swiper-button-next { right: 6px; }
 .swiper-pagination { bottom: 0; }
 .slider-pause { bottom: 5px; right: 6px; font-size: 10px; min-height: 26px; }
 [data-structure="m-img-full-gallery--3col"] .row { grid-template-columns: 1fr; }
 .c-inner--lg.c-inner--vertical { padding-block: 24px; }
 .c-inner--md.c-inner--vertical { padding-block: 16px; }
 .c-border.c-inner { padding: 16px; }
 .row { min-width: 0; }
 .faq-question { padding: 16px 0; gap: 8px; }
 .faq-answer { padding-inline: 0; }
 .c-btn a { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .swiper-wrapper { transition: none; } }
.joined-background { background-size: 100% auto; background-position: center top; background-repeat: repeat-y; }
.joined-background > .pera1-section > .c-bg-img { background-image: none !important; }
.joined-background > .pera1-section + .pera1-section .c-inner { padding-top: 0; }

/* Restore mobile background sizing suppressed by the original Peraichi theme. */
[data-custom-sp-bgimg] { background-size: cover !important; background-position: center center; }
/* Preserve the source logo artwork while making its white pixels transparent. */
.logo-filter-definitions { position: absolute; width: 0; height: 0; pointer-events: none; }
.footer-logo-link { width: min(150px, 35vw); background: transparent; box-shadow: none; border-radius: 0; overflow: visible; }
.footer-logo { filter: url(#footer-logo-cutout); }
.slider-pause { width: 32px; min-width: 32px; min-height: 32px; padding: 4px; font-size: 17px; line-height: 1; }
.joined-background > .pera1-section > .c-bg-img,
.joined-background .c-wrapper,
.joined-background .c-inner { background-color: transparent !important; }

/* Use a single foreground logo; the former mobile background also contained a logo. */
.rogieam-footer { min-height: 150px; background: #fff; border: 0; padding: 32px 16px !important; }
/* Keep the review cards on one continuous wood surface, independent of template rules. */
.testimonials-background { background: #7a5435 url(/assets/3ba91c4f939659ea.jpeg) center top / 100% auto repeat-y; padding: clamp(20px, 3vw, 32px) clamp(16px, 3vw, 32px); }
.testimonial-panel { display: block; width: 100%; max-width: 1040px; margin: 0 auto; padding: 0; border: 0; background: transparent; line-height: 0; }
.testimonial-panel + .testimonial-panel { margin-top: clamp(20px, 3vw, 32px); }
.testimonial-panel a, .testimonial-panel img { display: block; width: 100%; height: auto; margin: 0; padding: 0; border: 0; }
/* Cover fractional-pixel seams at the two full-width photo panels. */
#section-80, #section-105, #section-80 .c-img, #section-105 .c-img { border: 0 !important; box-shadow: none !important; line-height: 0; background-color: #48291e; }
#section-105 { position: relative; margin-top: -1px !important; }

/* Keep navigation and the single phone CTA visible without covering page content. */
:root { --site-header-height: 100px; --reservation-height: 82px; }
html { scroll-padding-top: calc(var(--site-header-height) + 12px); }
body { padding-top: var(--site-header-height) !important; padding-bottom: var(--reservation-height) !important; }
.fixed-site-header { position: fixed; inset: 0 0 auto; z-index: 1000; width: 100%; background: #fff; box-shadow: 0 1px 8px rgba(0,0,0,.08); }
.fixed-site-header .p-navigation { position: relative; }
.fixed-reservation { position: fixed; inset: auto 0 0; z-index: 900; display: flex; justify-content: center; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: rgba(255,255,255,.97); box-shadow: 0 -2px 12px rgba(0,0,0,.06); }
.fixed-reservation a { display: block; max-width: 100%; padding: 11px 24px; border: 0 !important; border-radius: 999px; background: #f39800; color: #fff !important; text-decoration: none !important; font-size: clamp(16px, 2vw, 20px); line-height: 1.5; text-align: center; }
.fixed-reservation a::before, .fixed-reservation a::after { content: none !important; }
.inline-reservation { display: none !important; }
.footer-logo-link, .footer-logo-link:hover, .footer-logo { border: 0 !important; text-decoration: none !important; box-shadow: none !important; background-image: none !important; }
.footer-logo-link::before, .footer-logo-link::after { content: none !important; display: none !important; }
.rogieam-social-section { padding: 32px 0 56px; background: #fff; }
.rogieam-social-heading { margin: 0 0 32px; }
.rogieam-social-heading p { margin: 0 0 8px; color: #27282e; font-size: clamp(24px, 5vw, 48px); font-weight: 800; line-height: 1.3; }
.rogieam-social-heading h2 { display: inline-block; margin: 0; padding: 12px 24px; background: #ffb414; color: white; font-size: clamp(30px, 6vw, 64px); font-weight: 800; line-height: 1.35; }
.rogieam-social-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 800px; margin: 0 auto; padding: 0 20px; }
.rogieam-social-link { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 16px 20px; border: 1px solid #dedede !important; border-radius: 12px; color: #151515 !important; background: #fff; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: clamp(18px, 3vw, 26px); font-weight: 600; line-height: 1.4; text-decoration: none !important; }
.rogieam-social-link::before, .rogieam-social-link::after { content: none !important; }
.rogieam-social-link:hover { background: #fafafa; border-color: #aaa !important; }
.rogieam-social-icon { display: block; flex: 0 0 32px; width: 32px; height: 32px; }
.rogieam-social-arrow { margin-left: auto; font-size: 28px; font-weight: 400; }
@media (max-width: 1024px) {
 :root { --site-header-height: 96px; }
 .fixed-site-header .p-m_navigationMenu.is-open { position: absolute; top: 100%; left: 0; right: 0; z-index: 1; margin: 0; padding: 8px 12px 16px; background: #fff; box-shadow: 0 5px 8px rgba(0,0,0,.12); max-height: calc(100dvh - var(--site-header-height) - var(--reservation-height)); overflow-y: auto; flex-wrap: nowrap; }
}
@media (max-width: 480px) {
 .rogieam-social-links { gap: 12px; padding-inline: 16px; }
 .rogieam-social-link { gap: 8px; padding: 14px 12px; font-size: 17px; }
 .rogieam-social-icon { flex-basis: 28px; width: 28px; height: 28px; }
 .fixed-reservation a { padding-inline: 18px; }
}
@media (max-width: 340px) { .rogieam-social-links { grid-template-columns: 1fr; } }

/* Override the template's 40px logo cap without altering its natural ratio. */
#section-97 .p-header__logo img { display: block; width: 100% !important; height: auto !important; max-height: none !important; aspect-ratio: 2 / 1; object-fit: contain; }
#section-97 .p-header__logo { height: auto !important; }
/* These sections use their own names to avoid inherited social/footer decoration. */
#section-10.rogieam-footer, #section-10 .footer-logo-link { border: none !important; outline: none; background-image: none !important; box-shadow: none !important; }
#section-10::before, #section-10::after, #section-10 .footer-logo-link::before, #section-10 .footer-logo-link::after { display: none !important; content: none !important; border: 0 !important; }
#section-10 .footer-logo { height: auto !important; max-height: none !important; }
#section-10 .footer-logo-link:focus-visible { outline: 3px solid #1677a7; outline-offset: 4px; }
#section-100 .rogieam-social-heading h2 { transform: skewY(-1.2deg); transform-origin: left center; padding-block: 14px; }
#section-100 #section-4 { display: grid !important; visibility: visible !important; opacity: 1 !important; height: auto !important; overflow: visible !important; }
#section-100 a.rogieam-social-link { display: flex !important; position: relative !important; visibility: visible !important; opacity: 1 !important; height: auto !important; min-height: 76px; overflow: visible !important; transform: none !important; color: #151515 !important; font-size: clamp(18px, 3vw, 26px) !important; }
#section-100 .rogieam-social-icon { visibility: visible !important; opacity: 1 !important; }
#section-100 .rogieam-social-link span { display: inline !important; visibility: visible !important; opacity: 1 !important; color: #151515 !important; }
@media (max-width: 480px) { #section-100 a.rogieam-social-link { font-size: 17px !important; } }

/* One compact menu button at every viewport width. */
#section-97 .p-navigation { display: block !important; margin: 0; }
#section-97 .p-navigation > .c-inner { display: flex; width: 100%; padding: 6px 0; justify-content: space-between; }
#section-97 .p-navigationHeader { flex: 0 1 160px; }
#section-97 .p-header__logo { width: 160px; max-width: 100%; }
#section-97 .p-btn_navigationToggle { display: flex !important; position: static; margin: 0; padding: 0; color: #05161a; background: #fff; }
#section-97 .p-m_navigationMenu { display: none !important; }
#section-97 .p-m_navigationMenu.is-open { display: flex !important; position: absolute; top: 100%; left: auto; right: 0; width: min(480px, 100%); flex-direction: column; flex-wrap: nowrap; gap: 0; margin: 0; padding: 8px 12px 16px; text-align: left; background: #fff; border: 1px solid #eee; box-shadow: 0 8px 20px rgba(0,0,0,.12); max-height: calc(100dvh - var(--site-header-height) - var(--reservation-height)); overflow-y: auto; }
#section-97 .p-m_navigationMenu.is-open li { display: block; width: 100%; border-top: 1px solid #eee; }
#section-97 .p-m_navigationMenu.is-open a { display: block; padding: 12px 8px; font-size: 16px; line-height: 1.5; }
.reservation-phone-symbol { font-family: Arial, "Hiragino Kaku Gothic ProN", sans-serif; font-variant-emoji: text; }

/* Bound the reading width; retain every original image at its natural ratio. */
.rogieam-content { width: 100%; max-width: 1080px; margin-inline: auto; background: #fff; }
.rogieam-content .c-wrapper { width: 100%; max-width: 940px; margin-inline: auto; }
.rogieam-content .grid-wrapper { width: 100%; max-width: 1040px; margin-inline: auto; }
.rogieam-content .c-inner--vertical { padding-block: clamp(24px, 4vw, 44px) !important; }
.rogieam-content [data-structure="e-text"] { line-height: 1.85; overflow-wrap: anywhere; }
.rogieam-content [data-structure="b-sentence"] [data-structure="e-text"],
.rogieam-content [data-structure="b-list"] [data-structure="e-text"] { font-size: clamp(16px, 1.6vw, 20px); }
.rogieam-content [data-structure="b-img"] .c-img img { width: 100%; max-width: 940px; height: auto !important; }
.rogieam-content #section-92 .c-img img { width: min(100%, 720px); }
.rogieam-content #section-101 .c-img img { width: min(100%, 560px); }
.rogieam-content #section-9 .row { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; margin: 0; align-items: center; }
.rogieam-content #section-9 .row::before, .rogieam-content #section-9 .row::after { display: none; }
.rogieam-content #section-9 .row > div { width: 100%; max-width: 100%; padding: 0; margin: 0; order: initial; flex-basis: auto; }
.rogieam-content #section-9 iframe { display: block; width: 100%; height: 320px; }
.benefit-grid, .portrait-grid, .pricing-grid, .whitening-grid { display: block; }
/* Desktop uses one centered flow so unrelated image ratios cannot create gaps. */
@media (min-width: 900px) {
 body { background: #f5f3ef; }
 .rogieam-content { max-width: 960px; }
 #section-97 .p-navigation__wrapper { max-width: 960px; margin-inline: auto; }
 .rogieam-content .c-wrapper { max-width: 800px; padding-inline: 20px; }
 .rogieam-content .grid-wrapper { max-width: 960px; }
 .rogieam-content .c-inner--vertical { padding-block: 32px !important; }
 .rogieam-content [data-structure="b-sentence"] [data-structure="e-text"] { font-size: 18px; line-height: 1.9; }
 .rogieam-content [data-structure="b-sentence"] p { max-width: 720px; margin-inline: auto; }
 .rogieam-content .visual-divider .c-inner { padding-block: 12px !important; }
 .benefit-grid { display: flex; flex-direction: column; gap: 24px; padding: 24px 0; }
 .benefit-card { width: 100%; max-width: 760px; margin-inline: auto; border: 0; border-radius: 0; overflow: visible; background: #fff; }
 .benefit-card .c-inner--vertical { padding: 20px 0 !important; }
 .benefit-card [data-structure="e-text"] { text-align: left; }
 .portrait-grid { display: block; padding: 24px 0; background: #7a5435 url(/assets/3ba91c4f939659ea.jpeg) center top / 960px auto repeat-y; }
 .portrait-grid > .pera1-section { width: 600px; max-width: 100%; margin-inline: auto !important; }
 .portrait-grid #section-105 { margin-top: 0 !important; }
 .pricing-grid, .whitening-grid { display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 24px 0; background: #fff; }
 .pricing-grid > .pera1-section, .whitening-grid > .pera1-section { width: 760px; max-width: 100%; margin-inline: auto !important; }
 .rogieam-content #section-92 .c-img img,
 .rogieam-content #section-101 .c-img img,
 .rogieam-content #section-107 .c-img img,
 .rogieam-content [data-structure="b-img"] .c-img img { width: min(100%, 760px); max-width: 760px; }
 .testimonials-background { padding: 32px 0; }
 .testimonial-panel { max-width: 760px; }
 .testimonial-panel + .testimonial-panel { margin-top: 24px; }
 .rogieam-social-section { padding: 32px 0 48px; }
 .rogieam-social-heading p { font-size: 36px; }
 .rogieam-social-heading h2 { font-size: 48px; }
 .rogieam-social-links { max-width: 800px; }
 .rogieam-content #section-9 .c-wrapper { max-width: 880px; }
 .rogieam-content #section-9 .row { gap: 32px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
 .rogieam-content #section-9 [data-structure="e-text"] { font-size: 16px; line-height: 1.85; }
 .rogieam-content #section-9 iframe { height: 300px; }
 #section-10.rogieam-footer { width: 100%; max-width: 960px; margin-inline: auto; }
}
@media (max-width: 767px) {
 .rogieam-content #section-9 .row { grid-template-columns: 1fr; gap: 24px; }
 .rogieam-content #section-9 iframe { height: 260px; }
}
