/* === 変数 === */
:root {
  --navy: #1A2332;
  --gold: #C5A46A;
  --gold-light: #D4B97E;
  --off-white: #FAFAF8;
  --text: #2C2C2C;
  --text-muted: #666;
  --border: #E0D9CE;
  --section-gap: 5rem;
}

/* === リセット === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "BIZ UDPGothic", "Hiragino Sans", "Yu Gothic", sans-serif;
  background: var(--off-white);
  color: var(--text);
  line-height: 1.95;
  font-size: 18px;
  font-weight: 500;
}
a { color: var(--navy); text-decoration: none; }
img { max-width: 100%; }

/* === レイアウト === */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* === ヘッダー === */
.site-header {
  background: var(--navy);
  color: var(--off-white);
  padding: 4rem 0 3.5rem;
  text-align: center;
}
.site-tagline {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 0.8rem;
}
.site-title {
  font-family: "Shippori Mincho B1", "Yu Mincho", serif;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.4;
}
.site-title span {
  display: block;
  color: var(--gold);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  margin-top: 0.3rem;
}
.site-desc {
  margin-top: 1.2rem;
  font-size: 0.9rem;
  color: rgba(250, 250, 248, 0.75);
  line-height: 1.9;
}

/* === セクション共通 === */
section {
  padding: var(--section-gap) 0;
}
section:nth-child(even) {
  background: #F2EDE6;
}
h2 {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--gold);
  color: var(--navy);
}
.section-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* === 導入 === */
.intro-box {
  background: white;
  border-left: 3px solid var(--gold);
  padding: 1.5rem 2rem;
  border-radius: 0 4px 4px 0;
}
.label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.disclaimer {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* === テーブル === */
.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
th {
  background: var(--navy);
  color: var(--gold);
  padding: 0.8rem 1rem;
  text-align: left;
  font-weight: 400;
  letter-spacing: 0.05em;
}
td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}
tr:hover td { background: rgba(197, 164, 106, 0.08); }
tr.highlight td {
  background: rgba(26, 35, 50, 0.04);
  font-weight: 500;
}
.table-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}
.table-note a {
  color: var(--navy);
  text-decoration: underline;
}

/* === カードグリッド === */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  margin: 1.5rem 0;
}
.card {
  background: white;
  padding: 1.5rem;
  border-top: 3px solid var(--gold);
  border-radius: 0 0 4px 4px;
}
.card-num {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--navy);
}
.card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.card p a {
  color: #2563EB;
  text-decoration: underline;
}

/* === CTAリンク === */
.cta-link {
  text-align: right;
  margin-top: 1.5rem;
}
.cta-link a {
  font-size: 0.9rem;
  color: var(--navy);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.cta-link a:hover { color: var(--gold); }

/* === 記事一覧 === */
.article-list {
  list-style: none;
  margin-top: 1.5rem;
}
.article-list li {
  border-bottom: 1px solid var(--border);
}
.article-list li:first-child { border-top: 1px solid var(--border); }
.article-list a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0.5rem;
  transition: background 0.15s;
}
.article-list a:hover { background: rgba(197, 164, 106, 0.08); }
.article-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  background: var(--navy);
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  white-space: nowrap;
}
.article-title {
  font-size: 0.95rem;
  color: var(--navy);
}

/* === SNS CTA === */
.sns-cta {
  text-align: center;
}
.sns-cta p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.btn-instagram {
  display: inline-block;
  background: var(--navy);
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 0.8rem 2rem;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
}
.btn-instagram:hover {
  background: var(--gold);
  color: var(--navy);
}
.sns-note {
  margin-top: 0.8rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* === 楽天ランキング === */
.ranking-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.2rem 0 1.5rem;
}
.ranking-cats button {
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  background: white;
  color: var(--navy);
  border: 2px solid var(--navy);
  padding: 0.45rem 1.1rem;
  border-radius: 2rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.ranking-cats button:hover,
.ranking-cats button.active {
  background: var(--navy);
  color: var(--gold);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.product-card a {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow 0.15s;
  height: 100%;
  color: var(--text);
}
.product-card a:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.product-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.p-name {
  font-size: 0.78rem;
  padding: 0.5rem 0.6rem 0.2rem;
  line-height: 1.5;
  flex: 1;
}
.p-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  padding: 0 0.6rem;
}
.p-review {
  font-size: 0.75rem;
  color: #e67e22;
  padding: 0.1rem 0.6rem 0.4rem;
}
.p-btn {
  display: block;
  background: var(--navy);
  color: var(--gold);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.45rem;
  letter-spacing: 0.05em;
}
.ranking-note { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.8rem; }
.loading, .err { color: var(--text-muted); font-size: 0.9rem; margin-top: 1rem; }

/* === スケジューラー === */
.scheduler-form { margin: 1.5rem 0; }
.scheduler-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.6rem;
}
.input-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.input-row input {
  font-family: inherit;
  font-size: 1.1rem;
  padding: 0.6rem 0.8rem;
  border: 2px solid var(--navy);
  border-radius: 4px;
  width: 140px;
  color: var(--text);
}
.input-row input:focus { outline: none; border-color: var(--gold); }
.unit { font-size: 1rem; font-weight: 700; color: var(--navy); }
.input-row button {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  background: var(--navy);
  color: var(--gold);
  border: none;
  padding: 0.65rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: background 0.2s;
}
.input-row button:hover { background: var(--gold); color: var(--navy); }
.schedule-result { margin-top: 1.5rem; }
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.schedule-table th {
  background: var(--navy);
  color: var(--gold);
  padding: 0.6rem 0.8rem;
  text-align: left;
  font-weight: 700;
}
.schedule-table td {
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.schedule-table td.tip { color: var(--text-muted); font-size: 0.82rem; }
.cat-link { color: #2563EB; text-decoration: underline; font-weight: 700; }
.schedule-table tr:hover td { background: rgba(197,164,106,0.08); }
.schedule-note {
  margin-top: 0.8rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* === フッター === */
.site-footer {
  background: var(--navy);
  color: rgba(250, 250, 248, 0.5);
  padding: 2.5rem 0;
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.8;
}
.footer-disclaimer {
  margin-bottom: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.footer-copy { color: rgba(250, 250, 248, 0.3); }

/* === レスポンシブ === */
@media (max-width: 600px) {
  .site-header { padding: 3rem 0 2.5rem; }
  .section-gap { --section-gap: 3rem; }
  .intro-box { padding: 1.2rem 1rem; }
  th, td { padding: 0.6rem 0.7rem; }
}
