/* ==========================================================================
   クローバー相談室 - 共通スタイル
   Tailwind CSS（CDN）だけでは表現しにくい、質感まわりのみをここで補う。
   ========================================================================== */

:root {
  --clover-500: #7e9863;
  --clover-600: #687f4f;
  --cork-500: #b78f5c;
  --cork-600: #9c763f;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
}

/* 薄いクローバーが散らばる壁紙 */
.clover-bg {
  background-color: #fdfaf3;
  background-image: url("images/clover-pattern.svg");
  background-repeat: repeat;
  background-size: 300px 300px;
}

/* コルクボードを吊るしたような質感のカード */
.cork-card {
  position: relative;
  background-color: #fbf3e4;
  background-image:
    radial-gradient(circle at 18% 28%, rgba(255, 255, 255, 0.5) 1px, transparent 1.6px),
    radial-gradient(circle at 62% 68%, rgba(120, 92, 55, 0.10) 1px, transparent 1.6px),
    radial-gradient(circle at 82% 22%, rgba(255, 255, 255, 0.4) 1.4px, transparent 2px),
    radial-gradient(circle at 38% 86%, rgba(120, 92, 55, 0.08) 1px, transparent 1.6px);
  background-size: 22px 22px, 26px 26px, 34px 34px, 20px 20px;
  border-radius: 1.75rem;
  box-shadow: 0 1px 2px rgba(120, 92, 55, 0.06), 0 18px 30px -18px rgba(90, 74, 51, 0.35);
}

.cork-card::before {
  /* 上部の木枠（コルクボードの縁） */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 10px;
  border-radius: 1.75rem 1.75rem 0 0;
  background: linear-gradient(180deg, var(--cork-500), var(--cork-600));
}

.cork-card--pin::after {
  /* 画びょう */
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle at 35% 30%, #e3a79c, #b5504f);
  box-shadow: 0 3px 5px rgba(60, 40, 20, 0.35);
}

.leaf-divider {
  filter: drop-shadow(0 2px 3px rgba(90, 74, 51, 0.15));
}

/* モバイルナビ（チェックボックス方式・JS不要） */
#nav-toggle {
  display: none;
}

#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

#nav-toggle:checked ~ #mobile-menu {
  max-height: 420px;
}

.hamburger-line {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#nav-toggle:checked ~ #header-row .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

#nav-toggle:checked ~ #header-row .hamburger-line:nth-child(2) {
  opacity: 0;
}

#nav-toggle:checked ~ #header-row .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* フォーカス時のアクセシブルなアウトライン */
a:focus-visible,
button:focus-visible,
label:focus-visible {
  outline: 3px solid var(--clover-500);
  outline-offset: 3px;
  border-radius: 0.5rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
