/* MiYANO visual identity — separate cool blue-gray palette */
:root {
  --ink: #2B3034;
  --muted: #687680;
  --paper: #F3F6F8;
  --white: #FFFFFF;
  --line: #D8E0E6;
  --accent: #627C8C;
  --accent-dark: #405B6C;
  --sand: #B9C7D2;
  --warm: #E7EDF1;
  --danger: #E93C35;
  --ref-radius: 14px;
  --radius: 14px;
  --shadow: 0 18px 48px rgba(43, 48, 52, .085);
}
body { background: #F3F6F8; color: #2B3034; }
a:hover { color: #405B6C; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline-color: #E93C35; }
.button, .reference-catalog-button { background: #627C8C; border-color: #627C8C; color: #fff; }
.button:hover, .reference-catalog-button:hover { background: #405B6C; border-color: #405B6C; }
.button--light { background: #E7EDF1; border-color: #C7D3DC; color: #405B6C; }
.button--light:hover { background: #DCE6ED; }
.reference-topline { background: #2B3034; color: #EAF0F4; }
.reference-topline a:hover, .reference-header-actions .header-action:hover, .reference-nav-links a:hover { color: #B9C7D2; }
.reference-announcement { color: #EAF0F4; }
.reference-site-header { background: rgba(247, 249, 250, .96); border-bottom-color: #D8E0E6; }
.reference-searchbar, .searchbar { background: #fff; border-color: #D8E0E6; }
.reference-catalog-button { border-radius: 12px; }
.reference-nav-row { background: #E7EDF1; border-color: #D8E0E6; }
.reference-catalog-drawer { background: #F7F9FA; border-color: #D8E0E6; }
.reference-category-card { border-radius: 18px; overflow: hidden; background: #E7EDF1; }
.reference-category-card span { background: rgba(255,255,255,.82); color: #2B3034; }
.reference-home-socials { background: #EAF0F4; }
.reference-home-social-card { background: #E5E5E5; border: 1px solid #D2DCE3; border-radius: 16px; }
.reference-home-social-logo { background: transparent; }
.reference-home-social-copy em { color: #405B6C; }
.reference-home-social-card:hover { border-color: #627C8C; }
.reference-filter-panel .filter-link:hover, .reference-filter-panel .filter-link.active { background: #E7EDF1; color: #405B6C; }
.reference-price-inputs input, .reference-sort-label select { border-color: #D8E0E6; }
.product-card .product-image { background: #EAF0F4; }
.product-card .product-tag { background: #E93C35; }
.favorite-toggle.is-favorite { color: #E93C35; }
.cart-count, .favorite-count { background: #627C8C; color: #fff; }
.form-card, .admin-panel, .stat-card, .product-card { border-color: #D8E0E6; }
.alert.error, .alert--error { border-color: #F2BCB9; background: #FFF1F0; color: #A52B26; }
.site-footer.reference-site-footer { background: #2B3034; color: #EAF0F4; }
.reference-footer-brand p, .reference-footer-contact p, .reference-footer-bottom { color: #C3CDD4; }
.reference-footer-contact h3, .reference-footer-bottom a { color: #F4F7F9; }
.reference-footer-bottom { border-color: #51616B; }
.reference-socials a { color: #F4F7F9; border-color: #758A98; }
.reference-socials a:hover { background: #405B6C; }
.miyano-brand { display:flex; flex-direction:column; align-items:flex-start; justify-content:center; gap:1px; width:auto !important; height:auto !important; overflow:visible !important; border:0 !important; border-radius:0 !important; background:transparent !important; color:#2B3034; }
.miyano-wordmark, .miyano-footer-wordmark span { color:#2B3034; font-size:25px; line-height:1; font-weight:800; letter-spacing:.16em; }
.miyano-brand small, .miyano-footer-wordmark small { color:#627C8C; font-size:8px; letter-spacing:.23em; font-weight:700; }
.miyano-footer-wordmark { display:inline-flex; flex-direction:column; gap:4px; padding:0; width:auto; height:auto; border:0; border-radius:0; background:transparent; color:#F4F7F9; }
.miyano-footer-wordmark span { color:#F4F7F9; }
.miyano-footer-wordmark small { color:#B9C7D2; }
.miyano-hero { position:relative; display:grid; grid-template-columns:minmax(0,1.02fr) minmax(0,.98fr); align-items:center; min-height:clamp(420px,42vw,650px); margin:20px 13px 0; padding:clamp(28px,5vw,76px) clamp(24px,5vw,78px); overflow:hidden; border-radius:24px; background:linear-gradient(116deg,#F7F9FA 0%,#EAF0F4 55%,#DCE6ED 100%); }
.miyano-hero-copy { position:relative; z-index:2; max-width:640px; }
.miyano-overline, .miyano-section-heading > span, .miyano-service-intro > span { display:block; color:#627C8C; font-size:11px; font-weight:800; letter-spacing:.2em; }
.miyano-hero h1 { margin:20px 0 18px; color:#2B3034; font-size:clamp(34px,5.3vw,76px); line-height:1.02; letter-spacing:-.045em; }
.miyano-hero h1 em { color:#627C8C; font-style:normal; }
.miyano-hero-copy p { max-width:470px; margin:0 0 28px; color:#596B77; font-size:clamp(14px,1.35vw,17px); line-height:1.7; }
.miyano-hero-button { border-radius:9px; padding:15px 22px; }
.miyano-hero-button span { color:#F5C4C1; font-size:17px; }
.miyano-hero-notes { display:flex; flex-wrap:wrap; gap:15px 25px; margin-top:34px; color:#697D89; font-size:10px; letter-spacing:.06em; text-transform:uppercase; }
.miyano-hero-visual { position:relative; min-width:0; }
.miyano-hero-visual img { width:100%; filter:drop-shadow(0 18px 30px rgba(43,48,52,.12)); }
.miyano-hero-stamp { position:absolute; right:2%; bottom:7%; display:grid; place-items:center; width:82px; height:82px; border:1px solid rgba(98,124,140,.45); border-radius:50%; color:#405B6C; font-size:10px; line-height:1.2; letter-spacing:.12em; text-align:center; transform:rotate(12deg); }
.miyano-hero-index { position:absolute; right:26px; top:22px; color:#90A4B1; font-size:12px; letter-spacing:.18em; }
.miyano-hero-index span { color:#E93C35; }
.miyano-socials { margin-top:0; }
.miyano-categories, .miyano-products-section { padding:48px 13px; }
.miyano-section-heading { max-width:1900px; margin:0 auto 20px; }
.miyano-section-heading .reference-heading { margin:8px 0 0; text-align:left; color:#2B3034; font-size:clamp(22px,2.6vw,34px); letter-spacing:-.025em; }
.miyano-category-card { position:relative; background:#E7EDF1; }
.miyano-category-card img { width:100%; height:auto; aspect-ratio:1.7/1; object-fit:cover; }
.miyano-category-card span { display:flex; justify-content:space-between; align-items:center; padding:22px 25px; background:#F8FAFB; font-size:14px; letter-spacing:.06em; }
.miyano-category-card span b { color:#E93C35; font-size:20px; }
.miyano-products-section { background:#fff; border-block:1px solid #D8E0E6; }
.miyano-products-heading p { margin:10px 0 0; color:#687680; }
.miyano-service-section { display:grid; grid-template-columns:minmax(230px,.7fr) minmax(0,1.3fr); gap:38px; padding:clamp(35px,5vw,70px) clamp(18px,4vw,70px); background:#EAF0F4; }
.miyano-service-intro h2 { max-width:380px; margin:12px 0; color:#2B3034; font-size:clamp(25px,3vw,38px); line-height:1.1; }
.miyano-service-intro p { max-width:380px; color:#596B77; font-size:14px; line-height:1.7; }
.miyano-service-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.miyano-service-grid a { display:flex; flex-direction:column; min-height:190px; padding:20px; border:1px solid #D4DEE5; border-radius:13px; background:rgba(255,255,255,.78); transition:transform .2s,border-color .2s; }
.miyano-service-grid a:hover { transform:translateY(-3px); border-color:#627C8C; }
.miyano-service-grid a > span { color:#E93C35; font-size:11px; letter-spacing:.16em; }
.miyano-service-grid strong { margin-top:22px; color:#2B3034; font-size:15px; }
.miyano-service-grid small { margin-top:8px; color:#687680; font-size:12px; line-height:1.5; }
.miyano-service-grid b { margin-top:auto; padding-top:15px; color:#405B6C; font-size:11px; }
.miyano-chat { background:#2B3034; border:1px solid #627C8C; }
.miyano-chat b { color:#F16C65; }
@media (max-width:850px) { .miyano-hero { grid-template-columns:1fr; margin-top:10px; padding:34px 24px 18px; } .miyano-hero-copy { max-width:100%; } .miyano-hero-visual { max-width:560px; margin:0 auto; } .miyano-hero-notes { margin-top:24px; } .miyano-service-section { grid-template-columns:1fr; } }
@media (max-width:600px) { .miyano-hero { border-radius:14px; padding:28px 18px 10px; } .miyano-hero h1 { font-size:37px; } .miyano-hero-stamp { width:62px; height:62px; font-size:8px; } .miyano-category-card span { padding:15px; font-size:11px; } .miyano-service-grid { grid-template-columns:1fr; } .miyano-service-grid a { min-height:160px; } }

.reference-footer-brand > a.miyano-footer-wordmark { display:inline-flex !important; flex-direction:column; align-items:flex-start; justify-content:center; gap:4px; width:auto !important; height:auto !important; overflow:visible !important; padding:0; border:0 !important; border-radius:0 !important; background:transparent !important; }

.miyano-promo-section { padding:32px 13px 44px; background:#F3F6F8; }
.miyano-promo-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; max-width:1900px; margin:0 auto 18px; }
.miyano-promo-card { display:flex; flex-direction:column; gap:11px; min-height:185px; padding:23px; border:1px solid #D8E0E6; border-radius:15px; background:linear-gradient(145deg,#fff,#EAF0F4); }
.miyano-promo-card > span { color:#627C8C; font-size:10px; font-weight:800; letter-spacing:.14em; }
.miyano-promo-card strong { color:#2B3034; font-size:19px; }
.miyano-promo-card small { color:#687680; font-size:13px; line-height:1.55; }
.miyano-promo-card b { margin-top:auto; color:#405B6C; font-size:12px; }
.miyano-promo-card:hover { border-color:#627C8C; transform:translateY(-2px); }
.miyano-consult-strip { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px 24px; max-width:1900px; margin:0 auto; padding:24px 28px; border-radius:14px; background:#2B3034; color:#F4F7F9; }
.miyano-consult-strip span { color:#B9C7D2; font-size:10px; letter-spacing:.15em; }
.miyano-consult-strip strong { font-size:18px; }
.miyano-consult-strip b { color:#F16C65; font-size:14px; }
.miyano-newsletter { padding:45px 18px; text-align:center; background:#EAF0F4; }
.miyano-newsletter > span { color:#627C8C; font-size:10px; font-weight:800; letter-spacing:.17em; }
.miyano-newsletter h2 { margin:9px 0; color:#2B3034; font-size:24px; }
.miyano-newsletter p { max-width:600px; margin:0 auto 18px; color:#687680; font-size:13px; }
.miyano-newsletter-links { display:flex; justify-content:center; gap:10px; flex-wrap:wrap; }
.miyano-newsletter-links a { padding:10px 17px; border:1px solid #B9C7D2; border-radius:8px; color:#405B6C; font-size:12px; font-weight:700; background:#fff; }
@media (max-width:700px) { .miyano-promo-grid { grid-template-columns:1fr; } .miyano-promo-card { min-height:140px; } .miyano-consult-strip { padding:20px; } .miyano-consult-strip strong { flex-basis:100%; } }


/* MiYANO v1.0.4 — brand identity and homepage banner layout. */
.reference-topline .reference-top-meta,
.reference-topline .reference-top-meta *,
.reference-topline .reference-top-meta svg {
  color: #FFFFFF !important;
  stroke: currentColor;
}
.miyano-brand {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 9px !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #252A2E !important;
  text-decoration: none !important;
}
.miyano-brand-mark {
  display: grid !important;
  flex: 0 0 44px !important;
  place-items: center !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  background: #111111 !important;
  color: #FFFFFF !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 24px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}
.miyano-brand-label {
  display: block !important;
  max-width: 118px;
  color: #252A2E !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.12 !important;
  letter-spacing: -.015em;
}
.miyano-footer-wordmark span { color: #F4F7F9 !important; font-size: 16px; letter-spacing: .01em; }
.reference-header-main { grid-template-columns: minmax(165px, 185px) 106px minmax(160px, 1fr) auto; }
.miyano-banner-section { padding: 34px 13px 44px; background: #F3F6F8; }
.miyano-banner-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 1900px; margin: 0 auto 18px; }
.miyano-image-banner, .miyano-consult-image-banner { display: block; overflow: hidden; border: 1px solid #D8E0E6; border-radius: 15px; background: #EAF0F4; box-shadow: 0 9px 24px rgba(43,48,52,.055); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.miyano-image-banner:hover, .miyano-consult-image-banner:hover { transform: translateY(-3px); border-color: #8EA4B2; box-shadow: 0 15px 32px rgba(43,48,52,.10); }
.miyano-image-banner img { display: block; width: 100%; height: 100%; aspect-ratio: 618 / 464; object-fit: cover; }
.miyano-consult-image-banner { max-width: 1900px; margin: 0 auto; border-radius: 17px; }
.miyano-consult-image-banner img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; }
@media (max-width: 1250px) {
  .reference-header-main { grid-template-columns: minmax(150px, 170px) 100px minmax(100px, 1fr) auto; }
  .miyano-brand-label { max-width: 108px; font-size: 12px !important; }
}
@media (max-width: 900px) {
  .reference-header-main { grid-template-columns: minmax(145px, 155px) 100px minmax(110px, 1fr) auto; }
  .miyano-brand-mark { flex-basis: 40px !important; width: 40px !important; height: 40px !important; }
  .miyano-brand-label { max-width: 100px; font-size: 11px !important; }
}
@media (max-width: 700px) {
  .miyano-banner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .miyano-image-banner { border-radius: 10px; }
  .miyano-consult-image-banner { border-radius: 11px; }
}
@media (max-width: 650px) {
  .reference-header-main { grid-template-columns: minmax(126px, 1fr) 84px auto; }
  .miyano-brand { gap: 7px !important; }
  .miyano-brand-mark { flex-basis: 36px !important; width: 36px !important; height: 36px !important; font-size: 20px !important; }
  .miyano-brand-label { max-width: 82px; font-size: 10.5px !important; }
}
@media (max-width: 420px) {
  .miyano-banner-grid { grid-template-columns: 1fr; }
  .miyano-image-banner img { aspect-ratio: 1.55 / 1; }
  .miyano-consult-image-banner img { aspect-ratio: 1.45 / 1; object-fit: cover; }
}


/* MiYANO v1.0.5 — official supplied logo, cleaned transparent lockup and homepage refinements. */
.miyano-brand {
  display:inline-flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  width:auto !important;
  max-width:190px;
  height:auto !important;
  padding:0 !important;
  overflow:visible !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
}
.miyano-logo-lockup {
  display:block;
  width:174px;
  max-width:100%;
  height:auto;
  object-fit:contain;
}
.miyano-footer-wordmark {
  display:inline-flex !important;
  align-items:center !important;
  width:auto !important;
  height:auto !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
}
.miyano-footer-logo {
  display:block;
  width:190px;
  max-width:100%;
  height:auto;
  object-fit:contain;
}
.miyano-catalog-heading { margin-bottom:22px; }
.miyano-catalog-heading .reference-heading {
  margin:0;
  color:#2B3034;
  font-size:clamp(28px,3.2vw,42px);
  font-weight:800;
  letter-spacing:-.035em;
}
.miyano-consult-image-banner {
  position:relative;
  max-width:1100px !important;
  width:calc(100% - 28px);
  margin:0 auto;
}
.miyano-consult-image-banner img {
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:2 / 1;
  object-fit:contain;
}
.miyano-consult-phone {
  position:absolute;
  left:4.4%;
  bottom:22.7%;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  width:29%;
  min-height:7.2%;
  box-sizing:border-box;
  padding:3px 10px;
  overflow:hidden;
  border-radius:2px;
  background:rgba(245,245,245,.97);
  color:#202326;
  font-size:clamp(11px,1.25vw,18px);
  font-weight:650;
  line-height:1.2;
  white-space:nowrap;
  text-decoration:none;
}
@media (max-width:900px) {
  .miyano-logo-lockup { width:152px; }
  .miyano-footer-logo { width:170px; }
}
@media (max-width:650px) {
  .miyano-brand { max-width:145px; }
  .miyano-logo-lockup { width:138px; }
  .miyano-footer-logo { width:150px; }
  .miyano-consult-image-banner { width:100%; }
  .miyano-consult-phone {
    left:4%; bottom:22%; width:39%; min-height:9%;
    padding:2px 5px; font-size:clamp(9px,2.4vw,12px);
  }
}


/* MiYANO v1.0.6: centered homepage catalog title */
.miyano-catalog-heading {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  text-align: center;
}
.miyano-catalog-heading .reference-heading {
  width: 100%;
  margin: 0;
  text-align: center;
}


/* MiYANO v1.0.7 — dark premium homepage shell, transparent overlay header and real Y5 hero photo. */
.miyano-home #site-header {
  position: absolute;
  z-index: 100;
  inset: 0 0 auto;
  width: 100%;
}
.miyano-home .reference-topline { display: none !important; }
.miyano-home .reference-site-header {
  position: relative !important;
  top: auto !important;
  background: rgba(18, 20, 21, .28) !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255,255,255,.18) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.miyano-home .reference-header-main {
  width: min(100% - 56px, 1800px);
  min-height: 78px;
  display: flex !important;
  align-items: center;
  gap: clamp(12px, 2vw, 30px);
  padding: 10px 0;
}
.miyano-home .miyano-brand { flex: 0 0 auto; max-width: 190px; }
.miyano-home .miyano-logo-lockup { width: clamp(130px, 13vw, 178px); filter: brightness(0) invert(1); }
.miyano-home .reference-catalog-button {
  flex: 0 0 auto; height: 44px; padding: 0 18px;
  border: 1px solid rgba(255,255,255,.55); border-radius: 24px;
  background: rgba(20,20,20,.2); color: #fff;
}
.miyano-home .reference-catalog-button:hover { background: rgba(255,255,255,.16); }
.miyano-home .reference-searchbar {
  flex: 1 1 360px; max-width: 520px; height: 44px;
  border: 1px solid rgba(255,255,255,.3); border-radius: 24px;
  background: rgba(20,20,20,.24);
}
.miyano-home .reference-searchbar .search-submit,
.miyano-home .reference-searchbar input,
.miyano-home .reference-searchbar input::placeholder,
.miyano-home .reference-header-actions .header-action { color: #fff !important; }
.miyano-home .reference-searchbar input::placeholder { opacity: .75; }
.miyano-home .reference-header-actions { margin-left: auto; gap: clamp(12px, 1.8vw, 26px); }
.miyano-home .reference-header-actions .header-action {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; min-height: 38px; font-size: 0;
}
.miyano-home .reference-header-actions .header-action svg { width: 25px; height: 25px; }
.miyano-home .reference-nav-row {
  background: rgba(18,20,21,.18) !important;
  border: 0 !important;
  border-top: 1px solid rgba(255,255,255,.12) !important;
}
.miyano-home .reference-nav-inner { width: min(100% - 56px, 1800px); min-height: 39px; }
.miyano-home .reference-city,
.miyano-home .reference-nav-links a,
.miyano-home .reference-phone { color: rgba(255,255,255,.9) !important; }
.miyano-home .reference-nav-links { justify-content: center; }
.miyano-home .reference-nav-links a:hover { color: #fff !important; }
.miyano-home .reference-header-backdrop { z-index: 110; }
.miyano-home .reference-catalog-drawer { z-index: 120; }
.miyano-home .miyano-hero {
  min-height: clamp(570px, 57vw, 790px);
  margin: 0;
  padding: clamp(145px, 13vw, 205px) clamp(28px, 8vw, 132px) 65px;
  border-radius: 0;
  background: linear-gradient(115deg, #171819 0%, #303234 46%, #D8D8D6 100%);
  color: #fff;
}
.miyano-home .miyano-hero-copy { max-width: 570px; }
.miyano-home .miyano-overline { color: #C4C7C8; letter-spacing: .22em; }
.miyano-home .miyano-hero h1 { color: #fff; font-size: clamp(38px, 5.5vw, 76px); }
.miyano-home .miyano-hero h1 em { color: #D8D8D6; }
.miyano-home .miyano-hero-copy p { color: rgba(255,255,255,.78); }
.miyano-home .miyano-hero-button { background: #fff; color: #171819; border-radius: 30px; }
.miyano-home .miyano-hero-button span { color: #171819; }
.miyano-home .miyano-hero-visual {
  display: flex; align-items: center; justify-content: center;
  min-height: 350px; overflow: hidden; border-radius: 4px;
  background: #F4F4F2;
}
.miyano-home .miyano-hero-visual img {
  display: block; width: 100%; height: clamp(340px, 38vw, 560px);
  object-fit: contain; filter: none; mix-blend-mode: multiply;
}
.miyano-home .miyano-hero-stamp { display: none; }
.miyano-home .miyano-hero-index { color: rgba(255,255,255,.65); }
.miyano-home .miyano-hero-index span { color: #E65C55; }
.miyano-home .reference-site-footer {
  margin: 0; padding: 38px clamp(18px, 4vw, 64px) 20px;
  background: radial-gradient(ellipse at 88% 130%, #343638 0%, #151617 48%, #0D0E0F 100%) !important;
  color: #F4F4F2 !important;
  border-top: 1px solid rgba(255,255,255,.14);
}
.miyano-home .reference-footer-main {
  grid-template-columns: minmax(180px, .8fr) minmax(260px, 1.1fr);
  gap: clamp(24px, 5vw, 76px);
  padding-bottom: 28px;
}
.miyano-home .reference-footer-brand > a { width: auto; height: auto; overflow: visible; border: 0; background: transparent; }
.miyano-home .miyano-footer-logo { width: 190px; }
.miyano-home .reference-footer-brand p,
.miyano-home .reference-footer-contact p,
.miyano-home .reference-footer-bottom { color: #AEB1B2 !important; }
.miyano-home .reference-footer-contact h3,
.miyano-home .reference-footer-bottom a { color: #F4F4F2 !important; }
.miyano-home .reference-footer-bottom { border-color: rgba(255,255,255,.22); }
.miyano-home .reference-footer-bottom a:hover { color: #fff !important; }
.miyano-home .reference-socials a { border-color: rgba(255,255,255,.35); color: #fff; }
@media (max-width: 900px) {
  .miyano-home .reference-header-main { width: calc(100% - 30px); gap: 10px; }
  .miyano-home .reference-nav-inner { width: calc(100% - 30px); }
  .miyano-home .miyano-hero { padding: 145px 24px 45px; }
  .miyano-home .reference-footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 650px) {
  .miyano-home .reference-header-main { flex-wrap: wrap; min-height: 0; padding: 10px 0; }
  .miyano-home .miyano-brand { max-width: 120px; }
  .miyano-home .miyano-logo-lockup { width: 118px; }
  .miyano-home .reference-catalog-button { height: 38px; padding: 0 11px; }
  .miyano-home .reference-searchbar { order: 3; flex: 1 0 100%; max-width: none; }
  .miyano-home .reference-header-actions { gap: 12px; }
  .miyano-home .reference-nav-inner { min-height: 34px; }
  .miyano-home .reference-nav-links { gap: 13px; font-size: 10px; }
  .miyano-home .reference-phone { display: none; }
  .miyano-home .miyano-hero { grid-template-columns: 1fr; gap: 20px; min-height: 0; padding: 150px 18px 36px; }
  .miyano-home .miyano-hero h1 { font-size: clamp(36px, 10vw, 54px); }
  .miyano-home .miyano-hero-visual { min-height: 270px; }
  .miyano-home .miyano-hero-visual img { height: 310px; }
  .miyano-home .reference-footer-main { grid-template-columns: 1fr; gap: 22px; }
  .miyano-home .reference-footer-contact { min-width: 0; }
}


/* MiYANO header social icon refinement — compact transparent logos. */
.miyano-home .reference-header-actions .header-social-link img { filter: brightness(0) invert(1); }
.miyano-home .reference-header-actions .header-social-link { color: #fff; }
.miyano-home .reference-nav-links { justify-content: flex-start; }


/* MiYANO v1.0.9: stable full-bleed Y5 hero, compact social icons and dark inner-page header. */
.miyano-home .miyano-hero {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  align-items: center;
  min-height: clamp(570px, 46vw, 760px) !important;
  margin: 0 !important;
  padding: clamp(150px, 13vw, 190px) clamp(26px, 8vw, 132px) 64px !important;
  overflow: hidden;
  border-radius: 0 !important;
  background-color: #191a1b !important;
  background-image:
    linear-gradient(90deg, rgba(10, 11, 12, .25) 0%, rgba(10, 11, 12, .15) 42%, rgba(10, 11, 12, 0) 74%),
    url('/images/miyano-hero-banner.webp?v=miyano-1.0.9') !important;
  background-position: center center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}
.miyano-home .miyano-hero-copy {
  max-width: 570px !important;
  position: relative;
  z-index: 2;
}
.miyano-home .miyano-hero-visual,
.miyano-home .miyano-hero-index { display: none !important; }

/* Inner pages use the same dark premium header as the homepage. */
body:not(.miyano-home) .reference-site-header {
  background: rgba(20, 22, 23, .97) !important;
  color: #fff !important;
  border-bottom: 1px solid rgba(255,255,255,.14) !important;
}
body:not(.miyano-home) .reference-header-main { background: transparent !important; }
body:not(.miyano-home) .reference-brand.miyano-brand img,
body:not(.miyano-home) .miyano-logo-lockup {
  filter: brightness(0) invert(1) !important;
}
body:not(.miyano-home) .reference-catalog-button {
  color: #fff !important;
  background: rgba(255,255,255,.07) !important;
  border-color: rgba(255,255,255,.32) !important;
}
body:not(.miyano-home) .reference-searchbar,
body:not(.miyano-home) .searchbar {
  background: rgba(255,255,255,.06) !important;
  border-color: rgba(255,255,255,.24) !important;
}
body:not(.miyano-home) .reference-searchbar input,
body:not(.miyano-home) .reference-searchbar input::placeholder,
body:not(.miyano-home) .reference-searchbar .search-submit,
body:not(.miyano-home) .reference-searchbar .search-clear {
  color: rgba(255,255,255,.9) !important;
}
body:not(.miyano-home) .reference-header-actions .header-action,
body:not(.miyano-home) .reference-header-actions .header-action svg {
  color: #fff !important;
}
body:not(.miyano-home) .reference-nav-row {
  background: #252829 !important;
  border-color: rgba(255,255,255,.13) !important;
}
body:not(.miyano-home) .reference-city,
body:not(.miyano-home) .reference-nav-links a,
body:not(.miyano-home) .reference-phone {
  color: rgba(255,255,255,.9) !important;
}
body:not(.miyano-home) .reference-catalog-drawer {
  color: #f3f5f6 !important;
  background: #202324 !important;
  border-color: #4b5154 !important;
}
body:not(.miyano-home) .reference-catalog-drawer a,
body:not(.miyano-home) .reference-catalog-drawer .drawer-heading {
  color: #f3f5f6 !important;
}

/* Explicit dimensions on every page; prevents natural-size SVG/PNG logos from stretching the header. */
.reference-header-actions .header-social-link {
  display: inline-flex !important;
  flex: 0 0 24px !important;
  width: 24px !important;
  min-width: 24px !important;
  height: 24px !important;
  min-height: 24px !important;
  padding: 0 !important;
  margin: 0 !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  line-height: 0 !important;
}
.reference-header-actions .header-social-link img {
  display: block !important;
  width: 22px !important;
  min-width: 22px !important;
  max-width: 22px !important;
  height: 22px !important;
  min-height: 22px !important;
  max-height: 22px !important;
  object-fit: contain !important;
  filter: brightness(0) invert(1) !important;
}
@media (max-width: 900px) {
  .reference-header-actions .header-social-link {
    flex-basis: 21px !important; width: 21px !important; min-width: 21px !important;
    height: 21px !important; min-height: 21px !important;
  }
  .reference-header-actions .header-social-link img {
    width: 20px !important; min-width: 20px !important; max-width: 20px !important;
    height: 20px !important; min-height: 20px !important; max-height: 20px !important;
  }
}
@media (max-width: 650px) {
  .reference-header-actions .header-social-link {
    flex-basis: 20px !important; width: 20px !important; min-width: 20px !important;
    height: 20px !important; min-height: 20px !important;
  }
  .reference-header-actions .header-social-link img {
    width: 19px !important; min-width: 19px !important; max-width: 19px !important;
    height: 19px !important; min-height: 19px !important; max-height: 19px !important;
  }
}
@media (max-width: 850px) {
  .miyano-home .miyano-hero {
    min-height: 650px !important;
    padding: 150px 26px 55px !important;
    background-position: 58% center !important;
  }
}
@media (max-width: 650px) {
  .miyano-home .miyano-hero {
    min-height: 650px !important;
    padding: 150px 18px 42px !important;
    background-position: 61% center !important;
  }
  .miyano-home .miyano-hero h1 { max-width: 440px; }
  .miyano-home .miyano-hero-copy p { max-width: 390px; }
}


/* MiYANO 22.11 — technical layout correction only; original visual theme is unchanged.
   Internal pages use the same header geometry as the homepage. The homepage
   keeps its transparent overlay; inner pages retain an opaque dark background. */
body:not(.miyano-home) .reference-topline { display: none !important; }
body:not(.miyano-home) .reference-header-main {
  display: flex !important;
  align-items: center;
  width: min(100% - 56px, 1800px);
  min-height: 78px;
  gap: clamp(12px, 2vw, 30px);
  padding: 10px 0;
}
body:not(.miyano-home) .miyano-brand { flex: 0 0 auto; max-width: 190px; min-width: 0; }
body:not(.miyano-home) .miyano-logo-lockup { width: clamp(130px, 13vw, 178px); height: auto; }
body:not(.miyano-home) .reference-catalog-button {
  flex: 0 0 auto; height: 44px; padding: 0 18px; border-radius: 24px;
}
body:not(.miyano-home) .reference-searchbar {
  flex: 1 1 360px; min-width: 0; max-width: 520px; height: 44px; border-radius: 24px;
}
body:not(.miyano-home) .reference-header-actions {
  margin-left: auto; gap: clamp(12px, 1.8vw, 26px);
}
body:not(.miyano-home) .reference-header-actions .header-action {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; min-height: 38px; font-size: 0;
}
body:not(.miyano-home) .reference-header-actions .header-action svg { width: 25px; height: 25px; }
body:not(.miyano-home) .reference-nav-inner {
  width: min(100% - 56px, 1800px); min-height: 39px;
}
body:not(.miyano-home) .reference-nav-links { justify-content: flex-start; min-width: 0; }

@media (max-width: 900px) {
  body:not(.miyano-home) .reference-header-main,
  body:not(.miyano-home) .reference-nav-inner { width: calc(100% - 30px); }
}

/* Keep all five icons visible in a two-row header, including 320px phones.
   This layout applies to home and inner pages alike, without altering colors. */
@media (max-width: 650px) {
  .miyano-home .reference-header-main,
  body:not(.miyano-home) .reference-header-main {
    display: grid !important;
    grid-template-columns: auto auto minmax(0, 1fr);
    grid-template-areas: 'brand catalog actions' 'search search search';
    align-items: center;
    width: calc(100% - 30px);
    min-height: 0;
    gap: 8px;
    padding: 10px 0;
  }
  .miyano-home .miyano-brand,
  body:not(.miyano-home) .miyano-brand {
    grid-area: brand; width: auto !important; min-width: 0;
    max-width: clamp(94px, 21vw, 118px); margin: 0;
    justify-self: start;
  }
  .miyano-home .miyano-logo-lockup,
  body:not(.miyano-home) .miyano-logo-lockup {
    display: block; width: clamp(94px, 21vw, 118px); height: auto;
  }
  .miyano-home .reference-catalog-button,
  body:not(.miyano-home) .reference-catalog-button {
    grid-area: catalog; min-width: 0; height: 38px; padding: 0 11px;
    margin: 0; justify-self: start; align-self: center;
  }
  .miyano-home .reference-header-actions,
  body:not(.miyano-home) .reference-header-actions {
    grid-area: actions; display: flex; align-items: center;
    justify-self: end; justify-content: flex-end;
    min-width: 0; margin: 0; gap: 7px;
  }
  .miyano-home .reference-header-actions .header-action,
  body:not(.miyano-home) .reference-header-actions .header-action {
    flex: 0 0 22px; min-width: 22px; min-height: 28px;
    font-size: 0;
  }
  .miyano-home .reference-header-actions .header-action svg,
  body:not(.miyano-home) .reference-header-actions .header-action svg {
    width: 22px; height: 22px;
  }
  .miyano-home .reference-searchbar,
  body:not(.miyano-home) .reference-searchbar {
    grid-area: search; order: initial; display: flex;
    width: 100%; min-width: 0; max-width: none; height: 40px;
    margin: 0; flex: initial;
  }
  .miyano-home .reference-nav-inner,
  body:not(.miyano-home) .reference-nav-inner {
    width: calc(100% - 30px); min-height: 38px;
  }
  .reference-nav-links { min-width: 0; }
  .reference-header-actions .cart-count,
  .reference-header-actions .favorite-count { right: -4px; }
}
@media (max-width: 420px) {
  .miyano-home .reference-catalog-button,
  body:not(.miyano-home) .reference-catalog-button {
    width: 40px; padding: 0; justify-content: center;
  }
  .reference-catalog-button > span { display: none; }
}


/* MiYANO: stable UI throughout the store. No decorative movement on hover.
   Functional overlays (menu/backdrop/toast), form toggles and inputs are kept intact. */
html { scroll-behavior: auto !important; }
body .site-header.reference-site-header {
  position: relative !important; top: auto !important;
}
/* Only the consultation button follows the viewport during scrolling.
   Other layout elements, including the QR codes, remain static. */
body.miyano-home .reference-chat.miyano-chat {
  position: fixed !important;
  right: 0 !important;
  bottom: 0 !important;
  top: auto !important;
  left: auto !important;
  z-index: 100;
  display: inline-flex;
  width: max-content;
  max-width: calc(100vw - 12px);
  margin: 0;
  border-radius: 8px 0 0 0;
}
body :is(.button, .product-card, .product-image img, .category-card,
    .reference-category-card, .reference-promo-card img, .reference-home-social-card,
    .miyano-image-banner, .miyano-consult-image-banner, .miyano-promo-card,
    .blog-card, .miyano-service-grid a, .header-social-link) {
  animation: none !important;
  transition: none !important;
}
body :is(.button, .product-card, .product-image img, .category-card,
    .reference-category-card, .reference-promo-card img, .reference-home-social-card,
    .miyano-image-banner, .miyano-consult-image-banner, .miyano-promo-card,
    .blog-card, .miyano-service-grid a, .header-social-link):hover {
  transform: none !important;
}
.reference-announcement span,
.reference-announcement span.is-changing {
  transition: none !important;
  transform: none !important;
  opacity: 1 !important;
}
