:root {
  --bg: #f7f4ea;
  --paper: rgba(255, 252, 244, 0.82);
  --paper-strong: rgba(255, 255, 250, 0.92);
  --line: rgba(56, 61, 34, 0.1);
  --text: #2f3125;
  --muted: #5f6549;
  --accent-rgb: 176, 194, 150;
  --deep-rgb: 72, 82, 54;
  --deep: #485236;
  --soft: #eef3df;
  --shadow: 0 24px 64px rgba(57, 63, 28, 0.12);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(var(--accent-rgb), 0.25), transparent 26%),
    radial-gradient(circle at 88% 18%, rgba(var(--deep-rgb), 0.18), transparent 24%),
    linear-gradient(180deg, #fbf8ef 0%, #f4efdf 48%, #f8f4ea 100%);
  line-height: 1.75;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 80%);
  opacity: 0.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 24px 0 56px;
  position: relative;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pill,
.nav-link,
.day-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(var(--deep-rgb), 0.14);
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(10px);
  color: var(--deep);
}

.top-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.compat-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
  padding: 22px 24px;
  border-radius: 24px;
  border: 1px solid rgba(var(--deep-rgb), 0.16);
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.16), rgba(255, 255, 255, 0.78));
  box-shadow: 0 16px 34px rgba(var(--deep-rgb), 0.1);
}

.compat-cta h2 {
  margin: 0 0 6px;
  color: var(--deep);
  font-size: clamp(1.2rem, 3vw, 1.55rem);
}

.compat-cta p {
  margin: 0;
  color: #4a4e38;
  line-height: 1.75;
}

.compat-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 14px;
  background: var(--deep);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(var(--deep-rgb), 0.2);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.compat-cta-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.month-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.month-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(var(--deep-rgb), 0.14);
  background: rgba(255, 255, 255, 0.5);
  color: var(--deep);
  font-size: 0.94rem;
  backdrop-filter: blur(10px);
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.month-nav-link:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(var(--deep-rgb), 0.24);
}

.month-nav-link.current {
  background: rgba(var(--accent-rgb), 0.18);
  border-color: rgba(var(--deep-rgb), 0.24);
  font-weight: 700;
}

.month-nav-link.home {
  background: rgba(255, 255, 255, 0.78);
}

.hero,
.panel,
.footer-note,
.month-card {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero {
  margin-top: 18px;
  padding: 28px;
  border-radius: 36px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -110px;
  bottom: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.46) 0%, rgba(var(--accent-rgb), 0) 74%);
  pointer-events: none;
}

.eyebrow {
  color: var(--deep);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
}

.hero h1 {
  margin: 14px 0 12px;
  font-size: clamp(2.4rem, 7vw, 5rem);
  line-height: 1;
  letter-spacing: 0.03em;
}

.hero h1 span {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  letter-spacing: 0.12em;
}

.lead {
  max-width: 44rem;
  margin: 0;
  color: #444731;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.tag {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(var(--deep-rgb), 0.12);
  color: #4f5537;
  font-size: 0.93rem;
}

.swatch-card {
  display: grid;
  gap: 16px;
}

.swatch {
  min-height: 320px;
  border-radius: 28px;
  border: 1px solid rgba(var(--deep-rgb), 0.12);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.56), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(var(--accent-rgb), 1) 46%, rgba(var(--deep-rgb), 0.42) 100%);
  position: relative;
  overflow: hidden;
}

.swatch::before,
.swatch::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}

.swatch::before {
  width: 180px;
  height: 180px;
  top: -34px;
  right: -24px;
}

.swatch::after {
  width: 140px;
  height: 140px;
  left: -24px;
  bottom: -30px;
}

.swatch-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  flex-wrap: wrap;
}

.swatch-meta h2,
.section-title {
  margin: 0;
  font-size: 1.5rem;
}

.hex {
  color: var(--muted);
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}

.grid-3,
.grid-2 {
  display: grid;
  gap: 20px;
  margin-top: 22px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: 1.12fr 0.88fr;
}

.panel {
  border-radius: var(--radius-lg);
  padding: 24px;
}

.panel h3 {
  margin: 0 0 10px;
  font-size: 1.16rem;
}

.kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--deep);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel p {
  margin: 0;
  color: #4a4e38;
}

.palette {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.tone {
  min-height: 112px;
  border-radius: 18px;
  border: 1px solid rgba(var(--deep-rgb), 0.09);
  padding: 14px;
  display: flex;
  align-items: end;
  font-size: 0.9rem;
}

.tone.primary {
  background: rgb(var(--accent-rgb));
  color: rgba(48, 49, 37, 0.94);
}

.tone.soft {
  background: var(--soft);
  color: rgba(48, 49, 37, 0.9);
}

.tone.deep {
  background: var(--deep);
  color: rgba(255, 255, 255, 0.94);
}

.list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.list li {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(var(--deep-rgb), 0.1);
}

.list strong {
  display: block;
  margin-bottom: 4px;
  color: #353822;
}

.quote {
  margin-top: 16px;
  padding: 18px 20px;
  border-left: 4px solid rgba(var(--accent-rgb), 0.95);
  background: rgba(255, 255, 255, 0.46);
  border-radius: 0 18px 18px 0;
  color: #42462f;
}

.pager {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.site-credit {
  margin-top: 26px;
  padding-bottom: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  margin-top: 10px;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-note {
  margin-top: 24px;
  padding: 18px 22px;
  border-radius: 20px;
  color: var(--muted);
  font-size: 0.92rem;
}

.month-header {
  margin-top: 18px;
  padding: 28px;
  border-radius: 36px;
}

.month-header h1 {
  margin: 14px 0 10px;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1.05;
}

.month-header p {
  margin: 0;
  max-width: 52rem;
  color: #4b503a;
}

.month-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.overview-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.overview-card::after {
  content: "";
  position: absolute;
  inset: auto -30px -50px auto;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--card-rgb, var(--accent-rgb)), 0.3) 0%, rgba(var(--card-rgb, var(--accent-rgb)), 0) 74%);
}

.overview-card h2,
.overview-card p,
.overview-card .nav-link {
  position: relative;
  z-index: 1;
}

.overview-card h2 {
  margin: 0;
  font-size: 1.35rem;
}

.overview-card p {
  margin: 0;
  color: #4a4e38;
}

.overview-meta {
  color: var(--muted);
  font-size: 0.94rem;
}

.month-card {
  display: flex;
  flex-direction: column;
  padding: 18px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.month-card::after {
  content: "詳細へ →";
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
  min-height: 38px;
  margin-top: auto;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(var(--deep-rgb), 0.14);
  color: var(--deep);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(47, 49, 37, 0.1);
}

.month-card::before {
  content: "";
  position: absolute;
  display: none;
  top: 33px;
  right: 31px;
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  color: var(--deep);
  transform: rotate(45deg);
  z-index: 1;
}

.month-card:hover,
.month-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(var(--deep-rgb), 0.2);
  box-shadow: 0 28px 70px rgba(57, 63, 28, 0.16);
}

.month-card:focus-visible {
  outline: 3px solid rgba(var(--deep-rgb), 0.28);
  outline-offset: 4px;
}

.month-color {
  height: 120px;
  border-radius: 18px;
  border: 1px solid rgba(var(--deep-rgb), 0.1);
  margin-bottom: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.55), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), var(--card-color));
}

.month-card h2 {
  margin: 0 0 6px;
  font-size: 1.12rem;
  line-height: 1.45;
}

.month-card p {
  margin: 0;
  color: #555a43;
  font-size: 0.94rem;
}

.month-meta {
  margin-top: 12px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 960px) {
  .hero,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .month-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero,
  .month-header,
  .panel,
  .month-card {
    border-radius: 28px;
  }

  .palette {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page {
    width: min(calc(100% - 32px), var(--max));
    padding-top: 14px;
    padding-bottom: 32px;
  }

  .hero,
  .month-header,
  .panel,
  .overview-card {
    padding: 20px;
  }

  .month-card {
    padding: 14px 14px 14px 12px;
  }

  .topbar {
    align-items: stretch;
  }

  .pill,
  .nav-link,
  .day-link {
    min-height: 42px;
    justify-content: center;
  }

  .top-links {
    width: 100%;
  }

  .top-links .nav-link {
    flex: 1;
  }

  .compat-cta {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .compat-cta-btn {
    width: 100%;
  }

  .month-nav {
    position: relative;
    flex-wrap: nowrap;
    gap: 9px;
    margin-inline: -10px;
    padding: 2px 22px 10px 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--deep-rgb), 0.35) rgba(255, 255, 255, 0.38);
    background:
      linear-gradient(90deg, rgba(247, 244, 234, 0) 0%, rgba(247, 244, 234, 0) calc(100% - 38px), rgba(247, 244, 234, 0.88) 100%);
    box-shadow: inset -14px 0 14px -16px rgba(var(--deep-rgb), 0.48);
  }

  .month-nav::-webkit-scrollbar {
    height: 4px;
  }

  .month-nav::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.38);
    border-radius: 999px;
  }

  .month-nav::-webkit-scrollbar-thumb {
    background: rgba(var(--deep-rgb), 0.35);
    border-radius: 999px;
  }

  .month-nav-link {
    flex: 0 0 auto;
    min-width: 58px;
    min-height: 40px;
    padding: 9px 13px;
  }

  .swatch {
    min-height: 180px;
  }

  .overview-grid {
    grid-template-columns: 1fr;
  }

  .overview-card {
    border-radius: 22px;
  }

  .hero h1 {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .month-header h1 {
    font-size: clamp(1.8rem, 10vw, 2.5rem);
  }

  .month-header p,
  .lead {
    font-size: 0.96rem;
    line-height: 1.85;
  }

  .panel h3,
  .section-title {
    font-size: 1.05rem;
  }

  .pager {
    gap: 8px;
  }

  .pager .pill,
  .pager .nav-link,
  .pager .day-link {
    flex: 1;
    justify-content: center;
    font-size: 0.88rem;
    padding: 10px 10px;
  }

  .month-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 18px;
  }

  .month-card {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 10px 14px;
    min-height: 132px;
    padding: 14px 14px 14px 12px;
    border-radius: 18px;
  }

  .month-card::after {
    content: "→";
    position: absolute;
    top: auto;
    right: 14px;
    bottom: 14px;
    width: 38px;
    height: 38px;
    min-height: 0;
    padding: 0;
    border-radius: 50%;
    font-size: 1.1rem;
  }

  .month-card::before {
    display: none;
  }

  .month-color {
    grid-row: 1 / 4;
    width: 88px;
    height: 100%;
    min-height: 104px;
    margin-bottom: 0;
    border-radius: 14px;
  }

  .month-card h2 {
    align-self: end;
    margin-bottom: 0;
    padding-right: 0;
    font-size: 1rem;
  }

  .month-card p {
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .month-meta {
    margin-top: 0;
    margin-bottom: 0;
    padding-right: 48px;
    font-size: 0.78rem;
    line-height: 1.55;
  }
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.58s ease, transform 0.58s cubic-bezier(0.23, 1, 0.32, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Amazon Associate Links */
.amazon-links {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(var(--deep-rgb), 0.12);
}

.amazon-links-label {
  font-size: 0.78rem;
  color: #888;
  letter-spacing: 0.06em;
  margin: 0 0 10px;
}

.amazon-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.amazon-btn {
  display: inline-block;
  padding: 7px 14px;
  background: #FF9900;
  color: #111 !important;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 20px;
  transition: opacity 0.18s;
  white-space: nowrap;
}

.amazon-btn:hover {
  opacity: 0.82;
}

/* ══════════════════════════════════════════════════════════════════
   サイト共通ヘッダー (site-header)
   ══════════════════════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 20px;
  height: 56px;
  background: rgba(247, 244, 234, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(var(--deep-rgb), 0.1);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.05);
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--deep);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.site-logo-mark {
  font-size: 1.1rem;
  line-height: 1;
}

.site-logo-text {
  display: inline;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.site-nav-link:hover {
  background: rgba(var(--accent-rgb), 0.14);
  color: var(--deep);
}

.site-nav-link.active {
  background: rgba(var(--accent-rgb), 0.2);
  color: var(--deep);
}

/* site-header 存在時に旧 topbar を非表示 */
.has-site-header .topbar {
  display: none;
}

/* ─── モバイル ─── */
@media (max-width: 640px) {
  .site-header {
    padding: 0 12px;
    height: 50px;
  }

  .site-logo-text {
    display: none;
  }

  .site-logo-mark {
    font-size: 1.3rem;
  }

  .site-nav-link {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
}

@media (max-width: 380px) {
  .site-nav-link {
    padding: 6px 8px;
    font-size: 0.76rem;
  }
}
