/* Google Fonts - 丸ゴシック */
@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@400;700&family=Noto+Sans+JP:wght@400;700&display=swap');

/* ===== 全体 ===== */
body {
  font-family: 'M PLUS Rounded 1c', 'Noto Sans JP', sans-serif;
  background: #FFF8F8;
  color: #444;
  font-size: 1rem;
  line-height: 1.9;
}

/* ===== ヘッダー ===== */
.header {
  background: url('/images/header-bg.png') center center / cover no-repeat;
  border-bottom: none;
  padding: 0;
  position: relative;
  overflow: visible;
}

/* 画像の上に薄いピンクオーバーレイでテキストを読みやすく */
.header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 220, 230, 0.45);
  pointer-events: none;
  z-index: 0;
}

.header::after {
  display: none;
}

.header__container {
  padding: 18px 20px 16px;
  position: relative;
  z-index: 1;
}

.logo__link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none !important;
}

.logo__text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.logo__title::before {
  content: '🩺 人間ドック・健康診断Q&A';
  display: inline-block;
  background: rgba(255,255,255,0.92);
  color: #d4607e;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 6px;
  letter-spacing: 0.05em;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  white-space: nowrap;
}

.logo__title {
  display: flex;
  flex-direction: column;
  font-size: 1.25rem;
  font-weight: 800;
  color: #c0506e !important;
  text-shadow: 0 1px 3px rgba(255,255,255,0.8);
  line-height: 1.35;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.logo__tagline {
  display: inline-block;
  color: #c0506e !important;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(255,255,255,0.75);
  padding: 3px 12px;
  border-radius: 20px;
  width: fit-content;
  letter-spacing: 0.03em;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.header a {
  color: #c0506e !important;
  text-decoration: none !important;
}

@media (min-width: 640px) {
  .logo__title { font-size: 1.75rem; }
  .logo__title::before { font-size: 0.78rem; }
  .logo__tagline { font-size: 0.85rem; }
  .header__container { padding: 22px 24px 20px; }
}

/* ===== ナビゲーション ===== */
.nav {
  background: linear-gradient(90deg, #f0789a, #f7a8bf);
  border-top: 2px solid rgba(255,255,255,0.4);
  position: relative;
  z-index: 100;
}

/* モバイルのメニューバー（黒いボタン）をピンクに */
.menu__btn {
  background: linear-gradient(90deg, #f0789a, #f7a8bf) !important;
  border: none !important;
}

/* モバイルメニューが開いたとき、メニューリストを前面に */
.nav__list {
  position: relative;
  z-index: 9999;
}

.menu {
  position: relative;
  z-index: 9999;
}

.menu__list {
  z-index: 9999 !important;
  background: linear-gradient(90deg, #f0789a, #f7a8bf) !important;
}

.menu__list--active {
  z-index: 9999 !important;
  background: linear-gradient(90deg, #f0789a, #f7a8bf) !important;
}

.nav__item a {
  color: #fff !important;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 10px 14px;
}

.nav__item a:hover {
  background: rgba(255,255,255,0.15) !important;
  color: #fff !important;
  opacity: 1;
}

/* ===== 記事本文エリア ===== */
.post__content p {
  margin-bottom: 1.4em;
  line-height: 2;
}

/* 太字をピンク色に */
.post__content strong,
.post__content b {
  color: #d4607e;
  font-weight: 700;
}

/* ===== 見出し ===== */
h1 { color: #c96b8a; }

/* h2：左ラインとピンク背景 */
.post__content h2 {
  color: #c96b8a;
  background: linear-gradient(90deg, #fff0f5, #fff8fa);
  border-left: 5px solid #F2A7BB;
  border-radius: 0 8px 8px 0;
  padding: 10px 16px;
  margin: 2em 0 1em;
  font-size: 1.15rem;
  line-height: 1.5;
}

/* h3：左ラインのみ */
.post__content h3 {
  color: #c96b8a;
  border-left: 3px solid #F2A7BB;
  padding-left: 12px;
  margin: 1.6em 0 0.8em;
  font-size: 1.05rem;
}

/* ===== サイドバー ===== */
.widget__title {
  color: #c96b8a;
  border-bottom: 2px solid #F2A7BB;
  padding-bottom: 6px;
}

/* ===== リンク ===== */
a {
  color: #c96b8a;
}
a:hover {
  color: #e8849f;
}

/* ===== フッター ===== */
.footer {
  background: #e8849f;
  color: #fff;
}
.footer a {
  color: #fff0f5 !important;
}

/* ===== カードグリッド（トップページ） ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 8px 0 24px;
}

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

.card-grid__item {
  display: block;
  text-decoration: none !important;
  color: inherit;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(242,167,187,0.25);
  border: 1px solid #fde8ef;
  transition: transform 0.18s, box-shadow 0.18s;
}

.card-grid__item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(242,167,187,0.45);
  color: inherit;
}

.card-grid__image-wrap {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #fde8ef;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-grid__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.3s;
}

.card-grid__item:hover .card-grid__image {
  transform: scale(1.03);
}

.card-grid__noimage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background: #fde8ef;
}

.card-grid__body {
  padding: 10px 10px 12px;
}

.card-grid__cat {
  display: inline-block;
  background: #F2A7BB;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  margin-bottom: 5px;
  line-height: 1.6;
}

/* ===== カテゴリー一覧ページ ===== */
.cat-terms__header {
  text-align: center;
  padding: 24px 0 16px;
}

.cat-terms__title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #c96b8a;
  margin: 0 0 6px;
}

.cat-terms__lead {
  font-size: 0.9rem;
  color: #999;
  margin: 0;
}

.cat-terms__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 8px 0 32px;
}

@media (min-width: 640px) {
  .cat-terms__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

.cat-card {
  display: block;
  text-decoration: none !important;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(242,167,187,0.25);
  border: 1px solid #fde8ef;
  transition: transform 0.18s, box-shadow 0.18s;
  color: inherit;
}

.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(242,167,187,0.45);
  color: inherit;
}

.cat-card__top {
  background-color: var(--cat-color, #F2A7BB);
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.65) 0%, transparent 50%),
    radial-gradient(circle at 80% 75%, rgba(200,230,255,0.4) 0%, transparent 50%),
    radial-gradient(circle at 55% 90%, rgba(255,220,240,0.35) 0%, transparent 45%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
  min-height: 90px;
  position: relative;
  overflow: hidden;
}

/* 浮かぶお花 */
.cat-card__flower {
  position: absolute;
  font-size: 0.8rem;
  opacity: 0;
  animation: floatFlower 4s ease-in infinite;
  pointer-events: none;
  bottom: -10px;
}

.cat-card__flower.f1 { left: 8%;  font-size: 0.7rem; animation-delay: 0s;    animation-duration: 3.8s; }
.cat-card__flower.f2 { left: 25%; font-size: 0.9rem; animation-delay: 1.1s;  animation-duration: 4.2s; }
.cat-card__flower.f3 { left: 50%; font-size: 0.65rem; animation-delay: 0.5s; animation-duration: 3.5s; }
.cat-card__flower.f4 { left: 70%; font-size: 0.8rem; animation-delay: 1.8s;  animation-duration: 4.6s; }
.cat-card__flower.f5 { left: 88%; font-size: 0.6rem; animation-delay: 0.9s;  animation-duration: 3.9s; }

@keyframes floatFlower {
  0%   { transform: translateY(0)    rotate(0deg)   scale(0.8); opacity: 0; }
  15%  { opacity: 0.65; }
  80%  { opacity: 0.4; }
  100% { transform: translateY(-90px) rotate(25deg) scale(1.1); opacity: 0; }
}

.cat-card__name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--cat-text, #c0506e);
  text-align: center;
  line-height: 1.45;
  margin: 0;
  border: none !important;
  background: none !important;
  padding: 0 !important;
}

.cat-card__body {
  padding: 14px 14px 16px;
}

.cat-card__desc {
  font-size: 0.78rem;
  color: #888;
  margin: 0 0 12px;
  line-height: 1.65;
}

.cat-card__count {
  display: inline-block;
  background: var(--cat-color, #F2A7BB);
  color: var(--cat-text, #c0506e);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 20px;
}

/* カードタイトルを少し大きく */
.card-grid__title {
  font-size: 0.83rem;
  font-weight: 700;
  color: #444;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
