:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #fff8f2;
  --surface-accent: #fff1e8;
  --text: #2b2420;
  --muted: #665f59;
  --line: #eee4dc;
  --brand: #E57534;
  --brand-dark: #c85e23;
  --brand-soft: #f7c3a4;
  --shadow: 0 16px 36px rgba(43, 36, 32, 0.08);
  --shadow-soft: 0 10px 26px rgba(43, 36, 32, 0.06);
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  background: linear-gradient(180deg, #ffffff 0%, #fffdfa 100%);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:not(.btn):not(.logo):not(.social-link):hover,
a:not(.btn):not(.logo):not(.social-link):focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}
img { max-width: 100%; display: block; height: auto; }
button, input, textarea, select { font: inherit; }
.container {
  width: min(calc(100% - 28px), var(--max));
  margin-inline: auto;
}
h1, h2, h3 {
  line-height: 1.28;
  letter-spacing: -0.01em;
  margin: 0;
}
h1 { font-size: clamp(34px, 10vw, 58px); }
h2 { font-size: clamp(22px, 5.4vw, 34px); }
h3 { font-size: clamp(18px, 4.4vw, 23px); }
p { margin: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255,255,255,0.94);
  border-bottom: 1px solid rgba(238,228,220,0.94);
  backdrop-filter: blur(12px);
}
.header-row {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  font-weight: 800;
  color: var(--brand-dark);
}
.logo-copy { display: grid; line-height: 1.22; }
.logo-copy small {
  display: none;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--brand-dark);
}
.logo-copy span {
  display: block;
  font-size: 16px;
  color: var(--brand-dark);
  white-space: nowrap;
}
.header-actions { display: flex; align-items: center; gap: 8px; }
.menu-toggle {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--brand);
  background: var(--brand);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: 0 0 auto;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 17px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
  position: relative;
  transition: 0.2s ease;
  content: "";
}
.menu-toggle span::before { top: -6px; position: absolute; }
.menu-toggle span::after { top: 6px; position: absolute; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); top: 0; }
.menu-toggle[aria-expanded="true"] span::after { transform: rotate(-45deg); top: 0; }
.desktop-nav { display: none; }
.mobile-drawer { display: none; border-top: 1px solid var(--line); padding: 12px 0 18px; }
.mobile-drawer.open { display: block; }
.mobile-nav-group + .mobile-nav-group { margin-top: 8px; }
.mobile-nav-parent {
  display: block;
  padding: 13px 12px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 800;
}
.mobile-subnav { display: grid; gap: 6px; padding: 8px 0 0 12px; }
.mobile-subnav a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid var(--brand);
  background: white;
  color: var(--brand-dark);
  transition: 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary,
.btn-secondary { background: white; color: var(--brand-dark); border-color: var(--brand); box-shadow: none; }
.btn-primary:hover,
.btn-primary:focus-visible,
.btn-secondary:hover,
.btn-secondary:focus-visible { background: var(--brand); border-color: var(--brand); color: white; }
.btn-text {
  color: var(--brand-dark);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.site-footer {
  padding: 28px 0 96px;
  color: var(--muted);
  font-size: 14px;
}
.footer-grid {
  display: grid;
  gap: 18px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  align-items: start;
}
.footer-title { font-size: 18px; font-weight: 700; color: var(--text); line-height: 1.4; }
.footer-contact { display: grid; gap: 6px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.footer-contact a { color: var(--brand-dark); font-weight: 700; }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.footer-links a { display: block; color: var(--muted); font-weight: 700; line-height: 1.7; }
.footer-copyright {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.sticky-cta {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(235,229,222,0.96);
  border-radius: 20px;
  padding: 8px;
  box-shadow: 0 18px 44px rgba(28,28,28,0.14);
  backdrop-filter: blur(12px);
}
.sticky-cta .btn {
  min-height: 46px;
  font-size: 13px;
  padding-inline: 10px;
  white-space: normal;
  line-height: 1.35;
  text-align: center;
}
body.menu-open { overflow: hidden; }
body.menu-open .sticky-cta { display: none; }

@media (min-width: 720px) {
  .logo-copy small { display: block; }
  .logo-copy span { font-size: 17px; }
  .header-row { min-height: 72px; }
  .footer-grid { grid-template-columns: 1.2fr 1fr; }
  .footer-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 980px) {
  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--muted);
    font-size: 14px;
  }
  .nav-item { position: relative; }
  .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 12px;
    border-radius: 999px;
    font-weight: 800;
    color: var(--muted);
    transition: 0.2s ease;
  }
  .has-dropdown > .nav-link::after { content: "▾"; font-size: 11px; opacity: 0.8; }
  .nav-item:hover > .nav-link,
  .nav-item:focus-within > .nav-link { color: var(--brand-dark); background: rgba(255,255,255,0.96); }
  .dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 250px;
    padding: 10px;
    display: grid;
    gap: 4px;
    background: rgba(255,255,255,0.98);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 18px 36px rgba(28,28,28,0.10);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: 0.2s ease;
    backdrop-filter: blur(12px);
    z-index: 80;
  }
  .nav-item:hover .dropdown-menu,
  .nav-item:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
  .dropdown-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 14px;
    color: var(--text);
    font-weight: 700;
    line-height: 1.45;
  }
  .dropdown-menu a:hover,
  .dropdown-menu a:focus-visible { background: var(--surface-soft); color: var(--brand-dark); }
  .menu-toggle { display: none; }
  .mobile-drawer { display: none !important; }
  .sticky-cta { left: auto; right: 20px; width: 380px; }
  body.menu-open { overflow: auto; }
}

@media (max-width: 979px) {
  .site-header { position: sticky !important; z-index: 2147483200 !important; isolation: isolate; }
  .menu-toggle { position: relative !important; z-index: 2147483300 !important; }
  #mobileDrawer.mobile-drawer {
    box-sizing: border-box;
    position: fixed !important;
    top: 66px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-height: calc(100dvh - 66px) !important;
    z-index: 2147483000 !important;
    display: block !important;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 14px 14px calc(28px + env(safe-area-inset-bottom)) !important;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), #fff8f2) !important;
    border-top: 1px solid var(--line) !important;
    transform: translateY(-8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    isolation: isolate;
  }
  body.menu-open #mobileDrawer.mobile-drawer,
  #mobileDrawer.mobile-drawer.open {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }
  #mobileDrawer .mobile-nav-group {
    padding: 10px;
    border-radius: 22px;
    background: rgba(255,255,255,0.94);
    border: 1px solid var(--line);
    box-shadow: 0 12px 28px rgba(43,36,32,0.06);
  }
  #mobileDrawer .mobile-nav-group + .mobile-nav-group { margin-top: 12px; }
  #mobileDrawer .mobile-nav-parent {
    padding: 12px 14px;
    border-radius: 16px;
    background: #fff8f2;
    border: 1px solid rgba(229,117,52,0.16);
    color: var(--brand-dark);
    font-size: 15px;
  }
  #mobileDrawer .mobile-subnav { padding: 10px 0 0; gap: 8px; }
  #mobileDrawer .mobile-subnav a {
    padding: 11px 13px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: none;
  }
}

@media (min-width: 720px) and (max-width: 979px) {
  #mobileDrawer.mobile-drawer { top: 72px !important; max-height: calc(100dvh - 72px) !important; }
}
