/* ミナノート共通装飾 */
:root {
  --paper: #fffdf6;
  --tape-coral: rgba(255, 111, 82, 0.22);
  --tape-blue: rgba(62, 111, 224, 0.20);
  --tape-green: rgba(76, 175, 138, 0.22);
}

html { scroll-behavior: smooth; }
body { position: relative; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { position: relative; z-index: 1; }
header, footer, section { position: relative; z-index: 1; }
img { max-width: 100%; height: auto; }
.table-wrap { -webkit-overflow-scrolling: touch; overscroll-behavior-inline: contain; }

.hero-badge, .divider .eyebrow, .sec-head .eyebrow, .badge, .feature-tag {
  font-family: 'Hachi Maru Pop', 'Zen Maru Gothic', sans-serif !important;
  border: 1.5px dashed currentColor !important;
  transform: rotate(-1.2deg);
  display: inline-block;
}
.hero-badge { transform: rotate(-1.5deg); border-style: solid !important; }

h2::after, .sec-head h2::after {
  content: "";
  display: block;
  width: 50px;
  height: 6px;
  margin: 8px auto 0;
  background: var(--coral-soft);
  border-radius: 3px;
  transform: rotate(-1.2deg);
}

.point-card, .usecase-card, .faq-item, .kuro-column, .shiro-column,
.doc-box, .cat-card, .feature-card, .about-box, .article-card, .card,
.table-wrap, .tool-card, .note-box {
  background: var(--paper) !important;
  box-shadow: 1px 3px 8px rgba(45, 42, 38, 0.08) !important;
  position: relative;
}

.point-card::before, .usecase-card::before, .faq-item::before,
.cat-card::before, .article-card::before, .tool-card::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 18px;
  width: 42px;
  height: 16px;
  background: repeating-linear-gradient(95deg, var(--tape-coral) 0 3px, rgba(255, 255, 255, 0.2) 3px 4px);
  transform: rotate(-3deg);
  box-shadow: 0 1px 2px rgba(45, 42, 38, 0.08);
  z-index: 2;
}
.usecase-card::before, .feature-card::before {
  left: auto;
  right: 18px;
  transform: rotate(3deg);
  background: repeating-linear-gradient(95deg, var(--tape-blue) 0 3px, rgba(255, 255, 255, 0.2) 3px 4px);
}

.points-grid > *:nth-child(odd), .cat-grid > *:nth-child(odd) { transform: rotate(-0.6deg); }
.points-grid > *:nth-child(even), .cat-grid > *:nth-child(even) { transform: rotate(0.5deg); }
.usecase-card:nth-of-type(odd), .article-card:nth-of-type(odd) { transform: rotate(-0.4deg); }
.usecase-card:nth-of-type(even), .article-card:nth-of-type(even) { transform: rotate(0.35deg); }

.kuro-column, .shiro-column { transform: rotate(-0.4deg); }
.kuro-column::after, .shiro-column::after {
  content: "";
  position: absolute;
  top: -10px;
  right: 26px;
  width: 50px;
  height: 20px;
  background: repeating-linear-gradient(100deg, var(--tape-coral) 0 3px, rgba(255, 255, 255, 0.2) 3px 4px);
  transform: rotate(4deg);
  box-shadow: 0 1px 2px rgba(45, 42, 38, 0.08);
  z-index: 2;
}
.shiro-column::after {
  background: repeating-linear-gradient(100deg, rgba(192, 57, 43, 0.18) 0 3px, rgba(255, 255, 255, 0.2) 3px 4px);
}
.kuro-column .sign, .shiro-column .sign {
  font-family: 'Hachi Maru Pop', 'Zen Maru Gothic', sans-serif !important;
}

.fill { font-family: 'Hachi Maru Pop', 'Zen Maru Gothic', sans-serif !important; }
.logo { gap: 8px !important; }
.logo img[alt="ミナ"] { border-radius: 50%; }
.logo-wordmark-img { height: 30px !important; width: auto !important; object-fit: contain; }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid #1769aa;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
