/* ==========================================================================
   MONISTOR Manual — Unified Design System
   Based on Mobile Manual Theme
   ========================================================================== */

:root {
  --primary: #20263e;
  --accent-purple: #5856d6;
  --accent-teal: #00c7be;
  --accent-pink: #ff2f88;
  --accent-brown: #a2845e;
  --accent-blue: #32ade6;
  --surface: #f5f5f5;
  --divider: #d9d9d9;
  --error: #e50020;
  --link: #32ade6;
  --white: #ffffff;
  --text: #20263e;
  --text-muted: #555;
}

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

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.8;
  font-size: 15px;
  overflow-x: hidden;
}

/* ─── Header ─── */
header {
  background: var(--primary);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
}

.header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.header-logo img {
  height: 32px;
  display: block;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.header-nav a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 0 20px;
  line-height: 56px;
  transition:
    color 0.2s,
    background 0.2s;
  white-space: nowrap;
}

.header-nav a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.header-nav a.active {
  color: var(--white);
  box-shadow: inset 0 -3px 0 var(--accent-teal);
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
  transition:
    transform 0.3s,
    opacity 0.3s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── Layout ─── */
.container {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  min-height: calc(100vh - 120px);
}

/* ─── Sidebar ─── */
nav.sidebar {
  width: 280px;
  min-width: 280px;
  background: var(--surface);
  border-right: 1px solid var(--divider);
  padding: 24px 0;
  position: sticky;
  top: 56px;
  height: calc(100vh - 56px);
  overflow-y: auto;
}

nav.sidebar h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-purple);
  padding: 16px 24px 8px;
  font-weight: 700;
}

nav.sidebar a {
  display: block;
  padding: 8px 24px;
  color: var(--primary);
  text-decoration: none;
  font-size: 14px;
  transition:
    background 0.2s,
    border-left 0.2s;
  border-left: 3px solid transparent;
}

nav.sidebar a:hover {
  background: rgba(32, 38, 62, 0.06);
  border-left-color: var(--accent-purple);
}

nav.sidebar a.active {
  background: rgba(88, 86, 214, 0.08);
  border-left-color: var(--accent-purple);
  color: var(--accent-purple);
  font-weight: 600;
}

/* ─── Main Content ─── */
main {
  flex: 1;
  padding: 40px 48px;
  max-width: 860px;
}

section {
  margin-bottom: 56px;
  scroll-margin-top: 72px;
}

/* ─── Headings ─── */
h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--primary);
}

h3 {
  font-size: 19px;
  font-weight: 600;
  margin: 28px 0 12px;
  color: var(--primary);
}

h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 20px 0 8px;
  color: var(--accent-purple);
}

/* ─── Text ─── */
p {
  margin-bottom: 12px;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-purple);
}

ul,
ol {
  margin: 8px 0 16px 24px;
}

li {
  margin-bottom: 6px;
}

/* ─── Feature Cards ─── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.feature-card {
  background: var(--surface);
  border-radius: 12px;
  padding: 20px;
  border-left: 4px solid var(--accent-purple);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  cursor: pointer;
}

a.feature-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.feature-card.inventory {
  border-left-color: var(--accent-pink);
}
.feature-card.rental {
  border-left-color: var(--accent-teal);
}
.feature-card.items {
  border-left-color: var(--accent-brown);
}
.feature-card.notification {
  border-left-color: var(--accent-purple);
}
.feature-card.settings {
  border-left-color: var(--accent-blue);
}
.feature-card.analytics {
  border-left-color: var(--accent-teal);
}
.feature-card.master {
  border-left-color: var(--accent-brown);
}
.feature-card.user {
  border-left-color: var(--accent-purple);
}

.feature-card h4 {
  margin: 0 0 8px;
  font-size: 15px;
}

.feature-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

/* ─── Badges ─── */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
  margin: 2px 4px 2px 0;
}

.badge-pink {
  background: var(--accent-pink);
}
.badge-teal {
  background: var(--accent-teal);
}
.badge-brown {
  background: var(--accent-brown);
}
.badge-navy {
  background: var(--primary);
}
.badge-purple {
  background: var(--accent-purple);
}
.badge-red {
  background: var(--error);
}
.badge-blue {
  background: var(--accent-blue);
}

/* ─── Info/Tip/Warning Boxes ─── */
.box {
  border-radius: 8px;
  padding: 16px 20px;
  margin: 16px 0;
  font-size: 14px;
}

.box-info {
  background: #eef0ff;
  border-left: 4px solid var(--accent-purple);
}

.box-tip {
  background: #e8faf9;
  border-left: 4px solid var(--accent-teal);
}

.box-warning {
  background: #fff3f6;
  border-left: 4px solid var(--error);
}

.box strong {
  display: block;
  margin-bottom: 4px;
}

/* ─── Utility ─── */
.mt-12 {
  margin-top: 12px;
}

.box-centered {
  max-width: 800px;
  margin: 0 auto 32px;
}

.box-recommend {
  margin-top: 8px;
  font-size: 0.95em;
  background: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  display: inline-block;
}

/* ─── Store Badges ─── */
.store-badges {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 24px 0;
}

.store-badges a {
  display: inline-block;
  transition: opacity 0.2s;
}

.store-badges a:hover {
  opacity: 0.8;
}

/* ─── Step List ─── */
.steps {
  counter-reset: step;
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}

.steps li {
  counter-increment: step;
  padding: 12px 0 12px 48px;
  position: relative;
  border-bottom: 1px solid var(--divider);
}

.steps li:last-child {
  border-bottom: none;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── Tables ─── */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}

@media (max-width: 768px) {
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%;
  }
}

th {
  background: var(--primary);
  color: var(--white);
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
}

td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--divider);
}

tr:hover td {
  background: rgba(32, 38, 62, 0.03);
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

td.center,
th.center {
  text-align: center;
}

/* ─── Permission Matrix ─── */
.permission-matrix {
  table-layout: fixed;
}
.permission-matrix colgroup .col-feature {
  width: 130px;
}
.permission-matrix colgroup .col-action {
  width: auto;
}
.permission-matrix colgroup .col-role {
  width: 120px;
}

@media (max-width: 768px) {
  .permission-matrix colgroup .col-feature {
    width: 100px;
  }
  .permission-matrix colgroup .col-action {
    width: 200px;
  }
  .permission-matrix colgroup .col-role {
    width: 80px;
  }
}
.permission-matrix td,
.permission-matrix th {
  vertical-align: middle;
  text-align: center;
}
.permission-matrix th:nth-child(1),
.permission-matrix th:nth-child(2),
.permission-matrix td[rowspan],
.permission-matrix td[rowspan] + td,
.permission-matrix td:first-child {
  text-align: left;
}
.permission-matrix td[rowspan] {
  vertical-align: top;
  background: rgba(32, 38, 62, 0.02);
  font-weight: 500;
}
.permission-matrix .perm {
  display: inline-block;
  width: 1.4em;
  height: 1.4em;
  line-height: 1.4em;
  font-size: 16px;
  text-align: center;
}
.permission-matrix .perm-ok {
  color: #34a853;
}
.permission-matrix .perm-ng {
  color: #bdbdbd;
}
.permission-matrix .perm-note {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.3;
  margin-top: 2px;
}

/* ─── Screenshots (Web) ─── */
.screenshot {
  margin: 24px 0;
  text-align: center;
}

.screenshot img {
  max-width: 100%;
  border: 1px solid var(--divider);
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.screenshot .caption {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 10px;
}

/* ─── Phone Screenshots (Mobile) ─── */
.phone-screenshots {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 24px 0;
}

.phone-frame {
  width: 220px;
  background: #1a1a1a;
  border-radius: 28px;
  padding: 10px 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
}

.phone-frame img {
  width: 100%;
  border-radius: 20px;
  display: block;
}

.phone-frame .caption {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  padding: 6px 0 2px;
}

/* ─── Tab Bar (Mobile) ─── */
.tab-bar {
  display: flex;
  background: var(--primary);
  border-radius: 12px;
  overflow: hidden;
  margin: 16px 0;
}

.tab-bar .tab {
  flex: 1;
  text-align: center;
  padding: 14px 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  font-weight: 500;
  cursor: default;
  transition: background 0.2s;
}

.tab-bar .tab.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.tab-bar .tab span {
  display: block;
  font-size: 10px;
  margin-top: 4px;
  opacity: 0.8;
}

/* ─── Keyboard ─── */
kbd {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 13px;
  font-family: monospace;
}

/* ─── Landing Page ─── */
.landing-hero {
  text-align: center;
  padding: 64px 24px 48px;
}

.landing-hero h2 {
  border: none;
  font-size: 28px;
  margin-bottom: 12px;
  padding-bottom: 0;
}

.landing-hero p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
}

.manual-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.manual-card {
  background: var(--white);
  border: 1px solid var(--divider);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.manual-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  color: var(--text);
}

.manual-card .icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
}

.manual-card h3 {
  font-size: 20px;
  margin: 0 0 8px;
}

.manual-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

/* ─── Requirements Section (Landing) ─── */
.requirements-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px 56px;
}

.requirements-section h2 {
  text-align: center;
  font-size: 24px;
  margin-bottom: 32px;
  border: none;
  padding-bottom: 0;
}

.requirements-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.requirements-card {
  background: var(--white);
  border: 1px solid var(--divider);
  border-radius: 12px;
  padding: 24px;
}

.requirements-card h3 {
  font-size: 16px;
  margin-bottom: 16px;
}

.requirements-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.requirements-table th,
.requirements-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--divider);
}

.requirements-table thead th {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
}

.requirements-table tbody tr:last-child td {
  border-bottom: none;
}

/* ─── RFID Reader Cards ─── */
.rfid-readers {
  display: flex;
  gap: 20px;
  margin: 16px 0;
}

.rfid-reader-card {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--surface);
  border-radius: 10px;
  padding: 20px;
}

.rfid-reader-img {
  width: 180px;
  min-width: 180px;
  height: auto;
  object-fit: contain;
}

.rfid-reader-info h4 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--primary);
}

.rfid-reader-info p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .rfid-readers {
    flex-direction: column;
  }
  .rfid-reader-card {
    flex-direction: column;
    text-align: center;
  }
  .rfid-reader-img {
    width: 160px;
    min-width: auto;
  }
}

.requirements-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ─── Footer ─── */
footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  padding: 24px;
  font-size: 13px;
}

/* ─── Mobile Drawer (all screens) ─── */
.drawer-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1100;
  opacity: 0;
  transition: opacity 0.3s;
}

.drawer-overlay.open {
  display: block;
  opacity: 1;
}

.drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100%;
  background: var(--white);
  z-index: 1200;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.15);
}

.drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--primary);
  padding: 0 16px;
  height: 56px;
}

.drawer-header .drawer-logo img {
  height: 28px;
  display: block;
}

.drawer-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
}

.drawer-nav {
  border-bottom: 1px solid var(--divider);
  padding: 8px 0;
}

.drawer-nav a {
  display: block;
  padding: 12px 20px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s;
}

.drawer-nav a:hover {
  background: var(--surface);
}

.drawer-nav a.active {
  color: var(--accent-purple);
  font-weight: 700;
  background: rgba(88, 86, 214, 0.06);
  border-left: 3px solid var(--accent-purple);
}

.drawer-sidebar {
  padding: 8px 0 24px;
}

.drawer-sidebar h3 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-purple);
  padding: 16px 20px 6px;
  font-weight: 700;
  margin: 0;
}

.drawer-sidebar a {
  display: block;
  padding: 9px 20px;
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  transition: background 0.2s;
  border-left: 3px solid transparent;
}

.drawer-sidebar a:hover {
  background: var(--surface);
  border-left-color: var(--accent-purple);
}

.drawer-sidebar a.active {
  background: rgba(88, 86, 214, 0.08);
  border-left-color: var(--accent-purple);
  color: var(--accent-purple);
  font-weight: 600;
}

/* ─── Responsive ─── */
@media (max-width: 860px) {
  .hamburger {
    display: flex;
  }

  .header-nav {
    display: none;
  }

  .container {
    flex-direction: column;
  }
  nav.sidebar {
    display: none;
  }
  main {
    padding: 24px 20px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .manual-cards {
    grid-template-columns: 1fr;
  }
}

/* ─── Print ─── */
@media print {
  header {
    position: static;
    box-shadow: none;
  }
  nav.sidebar {
    display: none;
  }
  main {
    padding: 20px;
    max-width: 100%;
  }
  .phone-frame {
    box-shadow: none;
    border: 1px solid #ccc;
  }
  .screenshot img {
    box-shadow: none;
  }
}

/* ─── Contact ─── */
/* ─── メインコンテンツ領域 ──────────────────────────────── */
.contact-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* ─── ページヘッダー ─────────────────────────────────────── */
.contact-header {
  margin-bottom: 32px;
}

.contact-header__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mn-accent);
  margin-bottom: 10px;
}

.contact-header__title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--mn-white);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.contact-header__desc {
  font-size: 0.9375rem;
  color: var(--mn-text-muted);
  margin: 0 0 2em 0;
}

/* ─── インフォバナー（注意書き等） ─────────────────────── */
.contact-notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 0.875rem;
  color: #93c5fd;
  margin-bottom: 28px;
}

.contact-notice__icon {
  flex-shrink: 0;
  line-height: 1.6;
}

/* ─── iframeカードラッパー ──────────────────────────────── */
/*
  使い方:
  <div class="form-card">
    <iframe id="bownow_form_iframe_..." class="form-card__iframe"></iframe>
  </div>
 
  BowNowのスクリプトがiframeを動的生成するため、
  scriptタグをこのdivの中に入れてください:
 
  <div class="form-card">
    <script id="_bownow_cs_sid_..."> ... </script>
  </div>
*/
.form-card {
  background: var(--mn-navy-mid);
  border: 1px solid var(--mn-border);
  border-radius: var(--mn-radius);
  box-shadow: var(--mn-shadow);
  overflow: hidden;
  padding: 0;
  position: relative;
}

/* 上部のアクセントライン */
.form-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--mn-accent), #60a5fa);
}

/* ─── BowNowが生成するiframe本体 ───────────────────────── */
/*
  BowNowは id="bownow_form_iframe_XXXXX" のiframeを生成します。
  属性セレクタで全パターンを捕捉します。
*/
[id^="bownow_form_iframe_"],
iframe[src*="bownow"],
iframe[src*="contents.bownow.jp"] {
  display: block !important;
  width: 100% !important;
  min-height: 580px !important;
  border: none !important;
  border-radius: 6px !important;
  transition: min-height 0.3s ease !important;
}

/* ─── ローディング表示（iframe生成前） ─────────────────── */
.form-card--loading::after {
  content: "読み込み中…";
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  inset: 0;
  background: var(--mn-navy-mid);
  color: var(--mn-text-muted);
  font-size: 0.875rem;
  border-radius: var(--mn-radius);
  pointer-events: none;
}

/* ─── サイドインフォ（フォームの横に補足を置く場合） ────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 24px;
  align-items: start;
}

.contact-info-card {
  background: var(--mn-navy-mid);
  border: 1px solid var(--mn-border);
  border-radius: var(--mn-radius);
  padding: 24px;
}

.contact-info-card__title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--mn-white);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--mn-navy-light);
}

.contact-info-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 16px;
  font-size: 0.875rem;
  color: var(--mn-text-muted);
}

.contact-info-item__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: rgba(59, 130, 246, 0.12);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
}

.contact-info-item__text strong {
  display: block;
  color: var(--mn-text);
  font-weight: 600;
  margin-bottom: 2px;
}

/* ─── レスポンシブ ───────────────────────────────────────── */
@media (max-width: 700px) {
  .contact-wrapper {
    padding: 24px 16px 60px;
  }

  .contact-header__title {
    font-size: 1.4rem;
  }

  .form-card {
    padding: 20px 16px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}
.contact__privacy {
  margin-top: 32px;
  border: 1px solid var(--divider);
  border-radius: 8px;
  overflow: hidden;
}

.contact__privacy-button {
  background: var(--surface);
  border: none;
  width: 100%;
  padding: 16px 20px;
  text-align: left;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.contact__privacy-button:hover {
  background: rgba(32, 38, 62, 0.05);
}

.contact__privacy-button::after {
  content: "▶";
  font-size: 12px;
  color: var(--accent-purple);
  transition: transform 0.2s;
}

.contact__privacy[open] .contact__privacy-button::after {
  transform: rotate(90deg);
}

.contact__privacy-panel {
  padding: 20px;
  background: var(--white);
  border-top: 1px solid var(--divider);
}

.contact__privacy-contents h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 24px 0 12px 0;
  color: var(--primary);
}

.contact__privacy-contents h3:first-child {
  margin-top: 0;
}

.contact__privacy-contents p {
  margin-bottom: 12px;
  line-height: 1.6;
}

.contact__privacy-contents ul,
.contact__privacy-contents ol {
  margin: 12px 0 16px 24px;
}

.contact__privacy-contents li {
  margin-bottom: 6px;
  line-height: 1.6;
}

.contact__privacy-contents a {
  color: var(--link);
  text-decoration: underline;
}

.contact__privacy-contents a:hover {
  color: var(--accent-purple);
}
.show-page-btn a.btn,
a#preview-contact-submit.btn {
  background: var(--primary) !important;
  border: none !important;
  border-aradius: var(--radius) !important;
  color: var(--white) !important;
  font-family: var(--font) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  min-width: 200px !important;
  padding: 14px 32px !important;
  line-height: 1.4 !important;
  cursor: pointer !important;
  transition:
    background 0.2s,
    transform 0.15s,
    box-shadow 0.2s !important;
  box-shadow: 0 4px 12px rgba(32, 38, 62, 0.25) !important;
  text-transform: none !important;
}

.show-page-btn a.btn:hover,
a#preview-contact-submit.btn:hover {
  background: var(--accent-purple) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(88, 86, 214, 0.35) !important;
  border-color: transparent !important;
  cursor: pointer !important;
}

.show-page-btn a.btn:active,
a#preview-contact-submit.btn:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 6px rgba(32, 38, 62, 0.2) !important;
}
