:root {
  --navy: #1a1a2e;
  --orange: #e85d04;
  --green: #2d6a4f;
  --bg: #f4f4f0;
  --white: #ffffff;
  --gray: #6b6b6b;
  --border: #d8d8d4;
  --max: 1200px;
  --radius: 8px;
}

html[data-ui-mode="mobile"] .site-header {
  padding: 0 20px !important;
}

html[data-ui-mode="mobile"] .breadcrumb {
  padding: 8px 20px !important;
}

html[data-ui-mode="mobile"] .hp-header-inner {
  padding: 0 20px !important;
}

html[data-ui-mode="mobile"] .hp-breadcrumb-inner {
  padding: 8px 20px !important;
}

html[data-ui-mode="mobile"] body .hp-subnav,
html[data-ui-mode="mobile"] body .product-nav {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

html[data-ui-mode="mobile"] body .hp-subnav::-webkit-scrollbar,
html[data-ui-mode="mobile"] body .product-nav::-webkit-scrollbar {
  display: none;
}

html[data-ui-mode="mobile"] body .product-nav-inner,
html[data-ui-mode="mobile"] body .hp-subnav-inner {
  display: inline-flex;
  padding: 0 20px;
  width: max-content;
  min-width: 100%;
  max-width: none;
  margin: 0;
  overflow-x: visible;
  flex-wrap: nowrap;
  box-sizing: border-box;
}

html[data-ui-mode="tablet"] .site-header,
html[data-ui-mode="desktop"] .site-header {
  padding: 0 40px !important;
}

html[data-ui-mode="tablet"] .breadcrumb,
html[data-ui-mode="desktop"] .breadcrumb {
  padding: 10px 40px !important;
}

html[data-ui-mode="tablet"] .hp-header-inner,
html[data-ui-mode="desktop"] .hp-header-inner {
  padding: 0 40px !important;
}

html[data-ui-mode="tablet"] .hp-breadcrumb-inner,
html[data-ui-mode="desktop"] .hp-breadcrumb-inner {
  padding: 8px 40px !important;
}

html[data-ui-mode="tablet"] .global-nav,
html[data-ui-mode="desktop"] .global-nav {
  display: flex !important;
  align-items: center;
  gap: 28px !important;
}

html[data-ui-mode="tablet"] .global-nav li,
html[data-ui-mode="desktop"] .global-nav li {
  display: list-item !important;
}

html[data-ui-mode="tablet"] .hp-global-nav,
html[data-ui-mode="desktop"] .hp-global-nav {
  display: flex !important;
  align-items: center;
}

html[data-ui-mode="tablet"] .hp-global-nav li,
html[data-ui-mode="desktop"] .hp-global-nav li {
  display: list-item !important;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  color: var(--navy);
  background: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  background: var(--navy);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-logo img {
  height: 36px;
  width: auto;
  display: block;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.global-nav a {
  color: rgba(255,255,255,.8);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 500;
  transition: color .2s;
}

.global-nav a:hover {
  color: var(--white);
}

.global-nav .btn-store {
  background: var(--orange);
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: 4px;
  font-weight: 700;
}

.breadcrumb {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 10px 40px;
  font-size: .8rem;
  color: var(--gray);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--navy);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.btn-white {
  display: inline-block;
  background: var(--white);
  color: var(--orange);
  border-radius: var(--radius);
  padding: 14px 36px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity .2s;
}

.btn-white:hover {
  opacity: .88;
}

.btn-white-outline {
  display: inline-block;
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.6);
  border-radius: var(--radius);
  padding: 12px 32px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
  transition: border-color .2s;
}

.btn-white-outline:hover {
  border-color: var(--white);
}

.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.6);
  padding: 48px 40px 32px;
  font-size: .8rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 280px 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand-logo img {
  height: 32px;
  width: auto;
  display: block;
  margin-bottom: 14px;
}

.footer-brand-desc {
  font-size: .82rem;
  line-height: 1.8;
  opacity: .7;
}

.footer-col-title {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav-list a {
  color: rgba(255,255,255,.65);
  text-decoration: none;
  font-size: .85rem;
  transition: color .2s;
}

.footer-nav-list a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  text-align: center;
  color: rgba(255,255,255,.4);
  font-size: .78rem;
}

.hp-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.hp-header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.hp-logo img {
  width: auto;
  display: block;
}

.hp-global-nav {
  display: flex;
  align-items: center;
  list-style: none;
}

.hp-global-nav li a {
  display: block;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--navy);
  transition: color 0.2s;
  white-space: nowrap;
}

.hp-global-nav li a:hover {
  color: var(--orange);
}

.hp-header-cta {
  display: inline-block;
  padding: 9px 20px;
  background: var(--orange);
  color: var(--white) !important;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 4px;
  white-space: nowrap;
}

.hp-header-cta:hover {
  opacity: 0.88;
}

.hp-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hp-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
}

.hp-breadcrumb {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.hp-breadcrumb-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px 40px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--gray);
}

.hp-breadcrumb-inner a {
  color: var(--gray);
}

.hp-breadcrumb-inner a:hover {
  color: var(--orange);
}

.hp-btn {
  display: inline-block;
  padding: 13px 28px;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: 4px;
  font-family: "Noto Sans JP", sans-serif;
  transition: opacity 0.2s, transform 0.15s;
  cursor: pointer;
  text-align: center;
}

.hp-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.hp-btn-sm {
  padding: 8px 18px;
  font-size: 0.82rem;
}

.hp-btn-primary { background: var(--orange); color: var(--white); }
.hp-btn-dark    { background: var(--navy);   color: var(--white); }

.hp-btn-white {
  background: var(--white);
  color: var(--orange);
}

.hp-btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}

.hp-btn-outline-white:hover { border-color: rgba(255,255,255,0.9); }

.hp-btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.hp-final-actions,
.afb-final-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.hp-section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hp-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.65);
  padding: 48px 40px 32px;
}

.hp-footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.hp-footer-top {
  display: grid;
  grid-template-columns: 200px 1fr 1fr;
  gap: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 28px;
}

.hp-footer-logo img {
  height: 32px;
  width: auto;
  margin-bottom: 12px;
}

.hp-footer-logo p {
  font-size: 0.78rem;
  line-height: 1.7;
}

.hp-footer-nav h4 {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hp-footer-nav ul {
  list-style: none;
}

.hp-footer-nav ul li {
  margin-bottom: 8px;
}

.hp-footer-nav ul li a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}

.hp-footer-nav ul li a:hover {
  color: var(--white);
}

.hp-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.hp-footer-bottom p {
  font-size: 0.75rem;
}

.hp-footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.hp-footer-links li a {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  transition: color 0.2s;
}

.hp-footer-links li a:hover {
  color: var(--white);
}

body .site-logo img {
  height: 36px;
  width: auto;
}

body .hp-logo img {
  height: 34px;
  width: auto;
}

body .global-nav a,
body .hp-global-nav li a {
  font-size: 0.82rem;
}

body .hp-header-cta,
body .global-nav .btn-store {
  min-height: 38px;
  padding: 9px 20px;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 700;
}

body .hp-subnav,
body .product-nav {
  background: var(--navy);
}

body .product-nav {
  border-bottom: none;
}

body .hp-subnav-inner,
body .product-nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

body .hp-subnav-inner::-webkit-scrollbar,
body .product-nav-inner::-webkit-scrollbar {
  display: none;
}

body .hp-subnav-inner li a,
body .product-nav-inner a {
  display: block;
  padding: 11px 18px;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  white-space: nowrap;
  transition: color 0.2s;
  border-bottom: 2px solid transparent;
}

body .hp-subnav-inner li a:hover,
body .product-nav-inner a:hover {
  color: var(--white);
}

body .hp-subnav-inner li.current a,
body .product-nav-inner a.active {
  color: var(--white);
  border-bottom-color: var(--orange);
}

body .breadcrumb,
body .hp-breadcrumb {
  border-bottom: 1px solid var(--border);
}

body .breadcrumb {
  background: var(--white);
  padding: 10px 40px;
}

body .hp-breadcrumb {
  background: var(--bg);
}

body .hp-breadcrumb-inner,
body .breadcrumb {
  font-size: 0.78rem;
  line-height: 1.6;
}

body .site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.6);
  padding: 48px 40px 32px;
  font-size: .8rem;
  text-align: left;
}

body .footer-brand-logo img {
  height: 32px;
  width: auto;
  display: block;
  margin-bottom: 14px;
}

body .footer-brand-desc {
  font-size: .82rem;
  line-height: 1.8;
  opacity: .7;
}

body .footer-col-title {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  margin-bottom: 14px;
}

body .footer-nav-list a {
  color: rgba(255,255,255,.65);
  font-size: .85rem;
}

body .footer-bottom {
  text-align: center;
  color: rgba(255,255,255,.4);
  font-size: .78rem;
}

body .hp-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.65);
  padding: 48px 40px 32px;
}

body .hp-footer-logo img {
  height: 32px;
  width: auto;
  margin-bottom: 12px;
}

body .hp-footer-logo p {
  font-size: 0.78rem;
  line-height: 1.7;
}

body .hp-footer-nav h4 {
  font-size: 0.78rem;
}

body .hp-footer-nav ul li a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}

body .hp-footer-bottom p,
body .hp-footer-links li a {
  font-size: 0.75rem;
}

body .hp-final-cta,
body .afb-final-cta,
body .rs-solution,
body .rm-cta,
body .rt-cta,
body .faq-cta,
body .ps-cta,
body .rl-cta,
body .faq-contact {
  background: var(--orange);
  padding: 88px 40px;
  text-align: center;
}

body .hp-final-cta h2,
body .afb-final-cta h2,
body .rs-solution h2,
body .rm-cta h2,
body .rt-cta h2,
body .faq-cta h2,
body .ps-cta h2,
body .rl-cta h2,
body .faq-contact h2 {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(1.35rem, 2.8vw, 1.95rem);
  color: var(--white);
  margin-bottom: 12px;
}

body .hp-final-cta p,
body .afb-final-cta p,
body .rs-solution p,
body .rm-cta p,
body .rt-cta p,
body .faq-cta p,
body .ps-cta p,
body .rl-cta p,
body .faq-contact p {
  max-width: 760px;
  margin: 0 auto 28px;
  font-size: 0.95rem;
  line-height: 1.85;
  color: rgba(255,255,255,0.86);
}

body .hp-final-cta .hp-btn,
body .afb-final-cta .hp-btn,
body .rs-solution .hp-btn,
body .faq-contact .hp-btn,
body .rm-cta .btn-white,
body .rm-cta .btn-outline-white-sm,
body .rt-cta .btn-white,
body .rt-cta .btn-outline-white-sm,
body .faq-cta .btn-white,
body .faq-cta .btn-outline-white-sm,
body .ps-cta .btn-white,
body .ps-cta .btn-outline-white,
body .rl-cta .btn-white,
body .rl-cta .btn-outline-white-sm {
  width: 296px;
  white-space: nowrap;
  padding: 14px 28px;
  font-size: 0.95rem;
  border-radius: var(--radius);
  text-align: center;
}

body .hp-final-cta .hp-btn-outline-white,
body .afb-final-cta .hp-btn-outline-white,
body .rs-solution .hp-btn-outline-white,
body .faq-contact .hp-btn-outline-white,
body .rm-cta .btn-outline-white-sm,
body .rt-cta .btn-outline-white-sm,
body .faq-cta .btn-outline-white-sm,
body .ps-cta .btn-outline-white,
body .rl-cta .btn-outline-white-sm {
  border-width: 2px;
  border-color: rgba(255,255,255,0.6);
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .hp-footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .hp-footer-logo {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 0 20px;
  }

  .breadcrumb {
    padding: 8px 20px;
  }

  .btn-white,
  .btn-white-outline {
    width: 100%;
    max-width: 360px;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-inner {
    padding-bottom: 0;
  }

  .site-footer {
    padding: 40px 20px 28px;
  }

  .hp-header-inner {
    padding: 0 20px;
  }

  .hp-global-nav {
    display: none;
  }

  .hp-hamburger {
    display: flex;
  }

  .hp-breadcrumb-inner {
    padding: 8px 20px;
  }

  /* サブナビ横スクロール：外側コンテナをスクロール主体にする */
  body .hp-subnav,
  body .product-nav {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  body .hp-subnav::-webkit-scrollbar,
  body .product-nav::-webkit-scrollbar {
    display: none;
  }

  body .product-nav-inner,
  body .hp-subnav-inner {
    display: inline-flex;
    padding: 0 20px;
    width: max-content;
    min-width: 100%;
    max-width: none;
    margin: 0;
    overflow-x: visible;
    flex-wrap: nowrap;
    box-sizing: border-box;
  }

  .hp-footer {
    padding: 40px 16px 24px;
  }

  .hp-footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hp-footer-logo {
    grid-column: auto;
  }

  .hp-footer-bottom {
    flex-direction: column;
    gap: 12px;
  }

  .hp-footer-links {
    flex-wrap: wrap;
    gap: 12px;
  }

  body .site-footer {
    padding: 40px 20px 28px;
  }

  body .hp-final-cta,
  body .afb-final-cta,
  body .rs-solution,
  body .rm-cta,
  body .rt-cta,
  body .faq-cta,
  body .ps-cta,
  body .rl-cta,
  body .faq-contact {
    padding: 48px 16px;
  }

  body .hp-final-cta .hp-btn,
  body .afb-final-cta .hp-btn,
  body .rs-solution .hp-btn,
  body .faq-contact .hp-btn,
  body .rm-cta .btn-white,
  body .rm-cta .btn-outline-white-sm,
  body .rt-cta .btn-white,
  body .rt-cta .btn-outline-white-sm,
  body .faq-cta .btn-white,
  body .faq-cta .btn-outline-white-sm,
  body .ps-cta .btn-white,
  body .ps-cta .btn-outline-white,
  body .rl-cta .btn-white,
  body .rl-cta .btn-outline-white-sm {
    width: 100%;
    max-width: 360px;
    min-width: 0;
  }

  .cat-contact-actions {
    flex-direction: column;
    align-items: center;
  }

  .cat-contact-actions .hp-btn {
    width: 100%;
    max-width: 360px;
    text-align: center;
  }
}
