/*
Theme Name: MDK Native
Description: MDKの表示を段階的にテーマ化するローカル検証用テーマ。
Version: 0.1.18
Text Domain: mdk-native
*/

:root {
  --mdk-navy: #25316d;
  --mdk-orange: #ff632f;
  --mdk-red: #c90000;
  --mdk-background: #eef4ff;
  --mdk-text: #333;
}

body { margin: 0; color: var(--mdk-text); font-family: Arial, "Noto Sans JP", sans-serif; }
body.wp-theme-mdk-native.ehf-header { padding-top: 0; }
body.wp-theme-mdk-native { overflow-x: clip !important; overflow-y: visible; }
.mdk-theme-header *, .mdk-theme-footer *, .mdk-theme-store > * { box-sizing: border-box; }
.mdk-theme-skip { position: absolute; left: 12px; top: -100px; z-index: 100001; padding: 12px; background: #fff; color: #111; }
.mdk-theme-skip:focus { top: 12px; }
.mdk-theme-header { background: var(--mdk-navy); color: #fff; position: sticky; top: 0; z-index: 9999; }
body.admin-bar .mdk-theme-header { top: 32px; }
.mdk-theme-header__inner { max-width: 1800px; min-height: 80px; padding: 12px 28px; margin: auto; display: flex; gap: 28px; align-items: center; }
.mdk-theme-logo { flex: 0 0 120px; line-height: 0; }
.mdk-theme-logo img { width: 86px; height: auto; max-height: 64px; object-fit: contain; }
.mdk-theme-nav { flex: 1 1 auto; }
.mdk-theme-nav ul { display: flex; align-items: center; justify-content: center; gap: 32px; list-style: none; margin: 0; padding: 0; }
.mdk-theme-nav a { color: #fff; font-size: 18px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.mdk-theme-nav .current-menu-item > a, .mdk-theme-nav a[aria-current="page"] { color: #ff9672; }
.mdk-theme-tools { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.mdk-theme-search { display: flex; width: 210px; height: 50px; }
.mdk-theme-search input { box-sizing: border-box; min-width: 0; width: 100%; border: 0; border-radius: 0; padding: 0 12px; background: #fff; color: #333; font: inherit; }
.mdk-theme-header .mdk-theme-search button { flex: 0 0 50px; padding: 0; border: 0; border-radius: 0; background: var(--mdk-red); color: #fff; cursor: pointer; }
.mdk-theme-search svg { width: 20px; height: 20px; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 3; }
.mdk-theme-menu-button { display: none; border: 1px solid #ffffff80; background: transparent; color: #fff; border-radius: 4px; padding: 10px 12px; font: inherit; cursor: pointer; }
.mdk-theme-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.mdk-theme-store { background: var(--mdk-background); padding: 24px 24px 64px; }
.mdk-theme-banner { max-width: 1200px; margin: 0 auto 56px; }
.mdk-theme-banner__image { display: block; width: 100%; height: auto; }
.mdk-theme-section { max-width: 1180px; padding: 32px; margin: 0 auto 48px; border-radius: 12px; background: #fff; }
.mdk-theme-section:last-child { margin-bottom: 0; }
.mdk-theme-section__title { margin: 0 0 28px; padding: 8px 12px; border-radius: 10px; background: var(--mdk-orange); color: #fff; font-family: "Noto Serif JP", "Yu Mincho", serif; font-size: 28.8px; font-weight: 500; line-height: 1.35; }
.mdk-theme-section__description { margin: 0 8px 40px; color: #666; font-size: 15px; line-height: 1.7; }
.mdk-theme-content { max-width: 1180px; margin: 40px auto; padding: 0 24px; }
.mdk-theme-content form.checkout select.select2-hidden-accessible { width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; }
.mdk-theme-footer { background: var(--mdk-navy); color: #fff; text-align: center; padding: 36px 24px; }
.mdk-theme-footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 20px; }
.mdk-theme-footer a { color: #fff; text-decoration: none; font-size: 14px; }
.mdk-theme-footer p { margin: 24px 0 0; font-size: 13px; }
.mdk-theme-header a:focus-visible, .mdk-theme-header button:focus-visible, .mdk-theme-footer a:focus-visible { outline: 3px solid #ffb694; outline-offset: 4px; }

@media (min-width: 1025px) and (max-width: 1440px) {
  .mdk-theme-header__inner { gap: 16px; padding-inline: 24px; }
  .mdk-theme-logo { flex-basis: 90px; }
  .mdk-theme-nav ul { gap: 18px; flex-wrap: wrap; }
  .mdk-theme-nav a { font-size: 15px; }
  .mdk-theme-search { width: 170px; }
}
@media (max-width: 1024px) {
  .mdk-theme-header { position: relative; top: auto; }
  body.admin-bar .mdk-theme-header { top: auto; }
  .mdk-theme-header__inner { min-height: 96px; padding: 18px 24px; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
  .mdk-theme-logo { flex: 0 0 auto; }
  .mdk-theme-logo img { width: 140px; max-height: 74px; }
  .mdk-theme-menu-button { display: block; }
  .mdk-theme-nav { flex: 0 0 100%; order: 4; }
  .mdk-theme-nav ul { justify-content: flex-start; flex-wrap: wrap; gap: 18px 24px; }
  .mdk-theme-nav a { font-size: 16px; }
  .mdk-theme-header.is-enhanced .mdk-theme-nav { display: none; }
  .mdk-theme-header.is-enhanced.is-menu-open .mdk-theme-nav { display: block; }
  .mdk-theme-tools { flex: 0 0 100%; order: 3; }
  .mdk-theme-search { width: min(100%, 320px); }
  .mdk-theme-store { padding: 20px 16px 80px; }
  .mdk-theme-banner { margin-bottom: 40px; }
  .mdk-theme-section { padding: 24px; margin-bottom: 32px; }
}
@media (max-width: 600px) {
  .mdk-theme-header__inner { padding-inline: 20px; }
  .mdk-theme-section { padding: 20px 16px; }
  .mdk-theme-section__title { font-size: 24px; padding: 10px; margin-bottom: 24px; }
  .mdk-theme-section__description { margin: 0 0 28px; font-size: 14px; }
  .mdk-theme-footer__links { flex-direction: column; }
}
