/* V52 — compact phone view; no changes to desktop or category structure */
@media (max-width:700px){
body.ryo-v31[data-section="home"] .main-stage{padding-top:8px!important;gap:7px!important}
body.ryo-v31[data-section="home"] .c45-hero{min-height:0!important;padding:12px 14px!important;border-radius:14px!important}
body.ryo-v31[data-section="home"] .c46-brandline{gap:7px!important}
body.ryo-v31[data-section="home"] .c46-brandline img{width:25px!important;height:25px!important}
body.ryo-v31[data-section="home"] .c46-brandword strong{font-size:10px!important}
body.ryo-v31[data-section="home"] .c46-brandword small{font-size:7px!important}
body.ryo-v31[data-section="home"] .c45-hero h1{font-size:clamp(23px,6vw,27px)!important;line-height:1.26!important;margin:8px 0 7px!important;letter-spacing:-.045em!important}
body.ryo-v31[data-section="home"] .c45-hero .c45-lead{font-size:11px!important;line-height:1.55!important;margin:0!important}
body.ryo-v31[data-section="home"] .c45-hero-pills{margin-top:8px!important;gap:5px!important}
body.ryo-v31[data-section="home"] .c45-hero-pills span{font-size:9px!important;padding:4px 7px!important}
body.ryo-v31[data-section="home"] .c45-quicknav{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important;margin:5px 0 9px!important}
body.ryo-v31[data-section="home"] .c45-quicknav a{min-height:41px!important;padding:5px 3px!important;font-size:10px!important;line-height:1.25!important;border-radius:8px!important}
body.ryo-v31[data-section="home"] .c45-quicknav a span{font-size:8px!important}
body.ryo-v31[data-section="home"] .c45-section{gap:6px!important}
body.ryo-v31[data-section="home"] .c45-section-heading{margin-bottom:0!important;align-items:end!important}
body.ryo-v31[data-section="home"] .c45-section-heading h2{font-size:20px!important;margin:4px 0 0!important;line-height:1.2!important}
body.ryo-v31[data-section="home"] .c45-section-heading .c45-label{font-size:9px!important;letter-spacing:.13em!important}
body.ryo-v31[data-section="home"] .c45-section-counter{font-size:9px!important}
body.ryo-v31[data-section="home"] .c45-night-main{min-height:205px!important}
body.ryo-v31[data-section="home"] .c45-night-copy{padding:12px 14px 14px!important}
body.ryo-v31[data-section="home"] .c45-night-badge{margin-top:6px!important}
body.ryo-v31[data-section="home"] .c45-night h3{font-size:24px!important;margin:7px 0!important}
body.ryo-v31[data-section="home"] .c45-night-main p{font-size:11px!important;line-height:1.55!important;margin-bottom:8px!important}
body.ryo-v31[data-section="home"] .c45-night-guide{min-height:42px!important;padding:9px 12px!important}
body.ryo-v31[data-section="home"] .c45-category-main{padding:16px!important}
body.ryo-v31[data-section="home"] .c45-category-main h3{font-size:23px!important;line-height:1.25!important}
body.ryo-v31[data-section="home"] .c45-category-main p{font-size:11.5px!important;line-height:1.55!important}
body.ryo-v31 .contact-dock{padding:5px 13px calc(5px + env(safe-area-inset-bottom))!important;min-height:0!important}
body.ryo-v31 .contact-dock .contact-line-main{min-height:45px!important;max-height:48px!important;border-radius:10px!important}
body.ryo-v31 .contact-dock .line-label strong{font-size:12px!important;line-height:1.3!important}
body.ryo-v31 .contact-dock .line-label small{font-size:9px!important;line-height:1.2!important}
body.ryo-v31 .contact-dock .line-label{gap:0!important}
body.ryo-v31:not([data-section="home"]) .contact-dock .contact-x{display:none!important}
body.ryo-v31:not([data-section="home"]) .v38-hero{padding:18px!important}
body.ryo-v31:not([data-section="home"]) .v38-content-section{margin-top:12px!important}
body.ryo-v31 .v47-story-body{font-size:15px!important;line-height:1.8!important}
body.v50-editorial .v47-story-header{margin-bottom:10px!important}
body.v50-editorial .v47-story-body h2{margin-top:18px!important}
.v38-side-grid .v38-side-card{padding:18px!important;min-height:0!important}
.v38-side-grid .v38-side-card .v38-card-desc{font-size:12px!important;line-height:1.65!important}
.v38-side-grid .side-card-wrap{gap:7px!important}
.v51-scout-page .v51-scout-hero{min-height:0!important}
}
@media (max-width:375px){
body.ryo-v31[data-section="home"] .c45-hero{padding:11px 12px!important}
body.ryo-v31[data-section="home"] .c45-hero h1{font-size:22px!important}
body.ryo-v31[data-section="home"] .c45-quicknav a{font-size:9.5px!important}
}
@media (prefers-reduced-motion:reduce){
body.ryo-v31[data-section="home"] .c45-hero,body.ryo-v31[data-section="home"] .c45-night-main{animation:none!important}
}
.v52-about-disclosure{margin:18px auto 24px;padding:18px 20px;max-width:900px;border:1px solid rgba(210,217,206,.2);border-radius:12px;background:rgba(25,37,40,.56)}
.v52-about-disclosure h2{font-size:18px;line-height:1.45;margin:0 0 11px;color:#eee9e2}
.v52-about-disclosure p{font-size:13px;line-height:1.8;color:#d3d6cf;margin:7px 0}
.v52-about-disclosure a{color:#c7dfcd;text-decoration:underline;text-underline-offset:3px}

/* Override the older, more specific fixed-bar rules on internal mobile pages. */
@media (max-width:700px){
  body.ryo-v31:not([data-section="home"]) .contact-dock{
    min-height:0!important;
    height:auto!important;
    padding:5px 13px calc(5px + env(safe-area-inset-bottom))!important;
  }
  body.ryo-v31:not([data-section="home"]) .contact-dock .contact-line-main{
    height:44px!important;
    min-height:44px!important;
    max-height:44px!important;
    border-radius:10px!important;
  }
  body.ryo-v31:not([data-section="home"]) .contact-dock .contact-line-main .line-label strong{
    font-size:12px!important;
  }
}

/* LINE CTA conversion emphasis: 2026-11-20 */
/* One clear action. Keep the existing official LINE URL and messaging. */
body.ryo-v31 .contact-dock .contact-line-main{
  min-height:76px!important;
  max-height:none!important;
  min-width:clamp(290px,34vw,520px)!important;
  padding:14px 25px!important;
  border-radius:16px!important;
  background:linear-gradient(115deg,#098344 0%,#056934 100%)!important;
  color:#fff!important;
  border:1px solid #38c97b!important;
  box-shadow:0 12px 32px rgba(0,108,54,.3),inset 0 1px 0 rgba(255,255,255,.19)!important;
  gap:14px!important;
  text-decoration:none!important;
}
body.ryo-v31 .contact-dock .contact-line-main .line-label{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  gap:4px!important;
  text-align:left!important;
}
body.ryo-v31 .contact-dock .contact-line-main .line-label strong{
  font-size:19px!important;
  font-weight:800!important;
  line-height:1.3!important;
  letter-spacing:.015em!important;
  color:#fff!important;
}
body.ryo-v31 .contact-dock .contact-line-main .line-label small{
  font-size:12px!important;
  line-height:1.4!important;
  color:rgba(255,255,255,.93)!important;
  letter-spacing:0!important;
}
body.ryo-v31 .contact-dock .contact-line-main svg{width:26px!important;height:26px!important}
body.ryo-v31 .contact-dock .contact-line-main .line-arrow{font-size:24px!important;color:#fff!important}
body.ryo-v31 .contact-dock .contact-line-main:hover{
  background:linear-gradient(115deg,#0b9450,#087741)!important;
  box-shadow:0 14px 38px rgba(0,137,68,.37)!important;
  filter:none!important;
}
body.ryo-v31 .contact-dock .contact-line-main:focus-visible{
  outline:3px solid #fff!important;outline-offset:3px!important;
}
@media(max-width:700px){
  body.ryo-v31 .contact-dock{
    width:100%!important;
    max-width:none!important;
    box-sizing:border-box!important;
    padding:10px 13px calc(10px + env(safe-area-inset-bottom))!important;
    border-top:1px solid rgba(85,216,138,.34)!important;
    background:rgba(7,20,19,.98)!important;
  }
  body.ryo-v31 .contact-dock .dock-head,
  body.ryo-v31 .contact-dock .dock-extra{display:none!important}
  body.ryo-v31 .contact-dock .contact-buttons{
    display:flex!important;width:100%!important;gap:0!important;margin:0!important;
  }
  body.ryo-v31 .contact-dock .contact-x{display:none!important}
  body.ryo-v31 .contact-dock .contact-line-main{
    width:100%!important;
    flex:1 1 100%!important;
    min-width:0!important;
    height:74px!important;
    min-height:74px!important;
    max-height:none!important;
    padding:12px 16px!important;
    justify-content:center!important;
    gap:12px!important;
    border-radius:14px!important;
  }
  /* Specificity matches older internal-page 44px fixed-bar overrides. */
  body.ryo-v31:not([data-section="home"]) .contact-dock .contact-line-main{
    height:74px!important;min-height:74px!important;max-height:none!important;
  }
  body.ryo-v31 .contact-dock .contact-line-main .line-label strong,
  body.ryo-v31:not([data-section="home"]) .contact-dock .contact-line-main .line-label strong{
    font-size:17px!important;line-height:1.3!important;
  }
  body.ryo-v31 .contact-dock .contact-line-main .line-label small{
    font-size:11px!important;line-height:1.3!important;
  }
  body.ryo-v31 .contact-dock .contact-line-main svg{
    width:27px!important;height:27px!important;
  }
  body.ryo-v31 .contact-dock .contact-line-main .line-arrow{font-size:22px!important}
  body.ryo-v31[data-section="home"],
  body.ryo-v31:not([data-section="home"]){
    padding-bottom:calc(105px + env(safe-area-inset-bottom))!important;
  }
}
@media(max-width:350px){
  body.ryo-v31 .contact-dock .contact-line-main{gap:8px!important;padding:10px 11px!important}
  body.ryo-v31 .contact-dock .contact-line-main .line-label strong,
  body.ryo-v31:not([data-section="home"]) .contact-dock .contact-line-main .line-label strong{font-size:16px!important}
  body.ryo-v31 .contact-dock .contact-line-main .line-label small{font-size:10px!important}
  body.ryo-v31 .contact-dock .contact-line-main svg{width:24px!important;height:24px!important}
}

/* V53: LINE-first consultation dock — mobile conversion focus */
body.ryo-v31 .contact-dock .contact-buttons{max-width:610px;flex:1 1 460px}
body.ryo-v31 .contact-dock .contact-line-main{
  min-height:74px!important;max-height:none!important;height:auto!important;
  padding:13px clamp(19px,3vw,31px)!important;border-radius:13px!important;
  box-shadow:0 8px 32px rgba(134,199,153,.23)!important;
}
body.ryo-v31 .contact-dock .contact-line-main>svg{width:29px;height:29px}
body.ryo-v31 .contact-dock .line-label{gap:4px!important}
body.ryo-v31 .contact-dock .line-label strong{font-size:18px!important;line-height:1.25!important;letter-spacing:.01em}
body.ryo-v31 .contact-dock .line-label small{font-size:11px!important;line-height:1.4!important}
body.ryo-v31 .contact-dock .line-arrow{font-size:24px}
body.ryo-v31 .contact-dock .contact-line-main:focus-visible{outline:3px solid #f1e6bf;outline-offset:3px}
@media(max-width:700px){
  body.ryo-v31 .contact-dock,
  body.ryo-v31:not([data-section="home"]) .contact-dock{
    position:fixed!important;inset:auto 0 0 0!important;
    z-index:999!important;width:100%!important;max-width:none!important;
    margin:0!important;padding:10px 14px calc(10px + env(safe-area-inset-bottom))!important;
    min-height:0!important;height:auto!important;
    display:flex!important;align-items:stretch!important;gap:0!important;
    border:0!important;border-top:1px solid rgba(172,213,182,.28)!important;
    background:linear-gradient(180deg,rgba(18,27,30,.97),rgba(12,18,26,.985))!important;
    box-shadow:0 -12px 35px rgba(0,0,0,.32)!important;
    opacity:1!important;transform:none!important;visibility:visible!important;
    animation:none!important;
  }
  body.ryo-v31 .contact-dock .dock-head,
  body.ryo-v31 .contact-dock .dock-extra{display:none!important}
  body.ryo-v31 .contact-dock .contact-buttons{
    display:flex!important;flex:1 1 auto!important;width:100%!important;
    max-width:none!important;min-width:0!important;margin:0!important;gap:0!important;
  }
  body.ryo-v31 .contact-dock .contact-x{display:none!important}
  body.ryo-v31 .contact-dock .contact-line-main,
  body.ryo-v31:not([data-section="home"]) .contact-dock .contact-line-main{
    flex:1 1 100%!important;min-width:0!important;width:100%!important;
    height:auto!important;min-height:70px!important;max-height:none!important;
    padding:12px 17px!important;gap:14px!important;border-radius:13px!important;
  }
  body.ryo-v31 .contact-dock .contact-line-main>svg{display:block!important;width:29px!important;height:29px!important}
  body.ryo-v31 .contact-dock .line-label{gap:3px!important}
  body.ryo-v31 .contact-dock .line-label strong,
  body.ryo-v31:not([data-section="home"]) .contact-dock .contact-line-main .line-label strong{
    font-size:17px!important;line-height:1.25!important;
  }
  body.ryo-v31 .contact-dock .line-label small{font-size:10.5px!important;line-height:1.35!important}
  body.ryo-v31 .contact-dock .line-arrow{font-size:22px!important}
  body.ryo-v31 .main-stage,body.ryo-v31 .v47-main,body.ryo-v31 .guide-main{
    padding-bottom:calc(110px + env(safe-area-inset-bottom))!important;
  }
}
@media(max-width:355px){
  body.ryo-v31 .contact-dock .contact-line-main{min-height:65px!important;padding:10px 12px!important}
  body.ryo-v31 .contact-dock .line-label strong{font-size:15px!important}
  body.ryo-v31 .contact-dock .line-label small{font-size:9px!important}
}
