
/* ===== 商品ページ v2 — @cosmeライクリデザイン ===== */

/* --- リセット・ベース --- */
.fp {
  font-family: -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
  color: #333; line-height: 1.8; max-width: 820px; margin: 0 auto;
  -webkit-font-smoothing: antialiased;
}
.fp *, .fp *::before, .fp *::after { box-sizing: border-box; }
.fp img { max-width: 100%; height: auto; display: block; }

/* --- セクション共通 --- */
.fp-section {
  margin: 0 0 48px; padding: 0;
}
.fp-section-title {
  font-size: 1.25em; font-weight: 700; color: #1a1a1a;
  padding-bottom: 12px; margin-bottom: 24px;
  border-bottom: 2px solid #2B6777;
  letter-spacing: 0.02em;
}
.fp-section-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: #2B6777; color: #fff;
  font-size: 0.75em; font-weight: 700;
  margin-right: 10px; vertical-align: middle;
}

/* ===========================
   1. ヒーローセクション
   =========================== */
.fp-hero {
  display: flex; gap: 36px; align-items: flex-start;
  padding: 36px 0; margin-bottom: 8px;
  border-bottom: 1px solid #eee;
}
.fp-hero-img {
  flex: 0 0 320px; position: relative;
}
.fp-hero-img img {
  width: 100%; border-radius: 8px;
  border: 1px solid #f0f0f0;
}
.fp-hero-body { flex: 1; }

.fp-hero-brand {
  font-size: 0.78em; color: #999; letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.fp-hero-name {
  font-size: 1.6em; font-weight: 700; color: #1a1a1a;
  line-height: 1.35; margin-bottom: 14px;
}
.fp-hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.fp-tag {
  display: inline-block; padding: 3px 12px;
  border-radius: 4px; font-size: 0.72em; font-weight: 600;
  letter-spacing: 0.03em;
}
.fp-tag--primary  { background: #E8F5E9; color: #2E7D32; }
.fp-tag--accent   { background: #FFF3E0; color: #BF360C; }
.fp-tag--info     { background: #E3F2FD; color: #1565C0; }

/* 評価ブロック */
.fp-rating {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px; margin-bottom: 18px;
  background: #fafbfc; border-radius: 8px;
  border: 1px solid #f0f0f0;
}
.fp-rating-score {
  font-size: 2.4em; font-weight: 700; color: #2B6777;
  line-height: 1;
}
.fp-rating-detail { display: flex; flex-direction: column; gap: 2px; }
.fp-rating-label {
  font-size: 0.78em; color: #888; font-weight: 500;
}
.fp-rating-stars {
  font-size: 1.2em; color: #F5A623; letter-spacing: 2px;
}
.fp-rating-sub {
  display: flex; gap: 12px; margin-top: 4px;
}
.fp-rating-sub span {
  font-size: 0.72em; color: #999;
  padding: 2px 8px; background: #f5f5f5; border-radius: 3px;
}

/* 価格 */
.fp-price {
  font-size: 0.95em; color: #555; margin-bottom: 20px;
}
.fp-price-amount {
  font-size: 1.5em; font-weight: 700; color: #C0392B;
}
.fp-price-unit { font-size: 0.8em; color: #999; margin-left: 4px; }
.fp-price-sub { font-size: 0.8em; color: #888; margin-left: 8px; }

/* CTAボタン */
.fp-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 36px;
  background: #2B6777; color: #fff;
  font-weight: 700; font-size: 0.95em;
  border-radius: 6px; text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(43,103,119,0.15);
}
.fp-cta:hover {
  background: #225566; color: #fff;
  box-shadow: 0 4px 12px rgba(43,103,119,0.25);
}
.fp-cta-arrow { font-size: 0.8em; }
.fp-cta-note {
  display: block; font-size: 0.72em; color: #999;
  margin-top: 6px;
}

/* ===========================
   2. クイック成分バー
   =========================== */
.fp-quick-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; margin: 0 0 48px;
  border-radius: 8px; overflow: hidden;
  border: 1px solid #e8e8e8;
}
.fp-quick-stat {
  text-align: center; padding: 20px 12px;
  background: #fff;
  border-right: 1px solid #e8e8e8;
}
.fp-quick-stat:last-child { border-right: none; }
.fp-quick-stat-value {
  font-size: 1.8em; font-weight: 700; color: #2B6777;
  line-height: 1.1;
}
.fp-quick-stat-label {
  font-size: 0.75em; color: #888; margin-top: 4px;
  font-weight: 500;
}

/* ===========================
   3. タブナビゲーション
   =========================== */
.fp-tabs {
  display: flex; gap: 0;
  border-bottom: 2px solid #eee;
  margin-bottom: 32px;
  position: sticky; top: 0; z-index: 10;
  background: #fff; padding-top: 8px;
}
.fp-tab {
  padding: 12px 24px;
  font-size: 0.88em; font-weight: 600; color: #888;
  text-decoration: none; cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
  white-space: nowrap;
}
.fp-tab:hover { color: #2B6777; }
.fp-tab.active {
  color: #2B6777;
  border-bottom-color: #2B6777;
}

/* ===========================
   4. こんな子におすすめ（カード）
   =========================== */
.fp-recommend-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin: 24px 0;
}
.fp-recommend-card {
  padding: 24px; border-radius: 8px;
  background: #fff; border: 1px solid #eee;
  transition: box-shadow 0.2s;
}
.fp-recommend-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.fp-recommend-label {
  font-size: 0.7em; font-weight: 700; color: #2B6777;
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.fp-recommend-value {
  font-size: 1em; font-weight: 600; color: #1a1a1a;
  line-height: 1.5; margin-bottom: 4px;
}
.fp-recommend-note {
  font-size: 0.8em; color: #999; line-height: 1.5;
}

/* ===========================
   5. 成分テーブル
   =========================== */
.fp-spec-table {
  width: 100%; border-collapse: collapse;
  margin: 24px 0;
}
.fp-spec-table th,
.fp-spec-table td {
  padding: 14px 16px; text-align: left;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.9em; vertical-align: top;
}
.fp-spec-table th {
  width: 30%; color: #555; font-weight: 600;
  background: transparent;
}
.fp-spec-table td { color: #1a1a1a; }
.fp-spec-val {
  font-weight: 700; color: #2B6777; font-size: 1.05em;
}
.fp-spec-note {
  display: block; font-size: 0.78em; color: #999;
  margin-top: 3px; line-height: 1.4;
}
.fp-spec-source {
  font-size: 0.78em; color: #aaa; margin-top: 8px;
}
.fp-spec-source a { color: #2B6777; }

/* ===========================
   6. 成分の読み方（解説）
   =========================== */
.fp-explain {
  margin: 24px 0; padding: 28px;
  background: #fafbfc; border-radius: 8px;
  border: 1px solid #f0f0f0;
}
.fp-explain-item { margin-bottom: 24px; }
.fp-explain-item:last-child { margin-bottom: 0; }
.fp-explain-title {
  font-size: 1em; font-weight: 700; color: #1a1a1a;
  margin-bottom: 8px;
}
.fp-explain-title .fp-explain-num {
  color: #2B6777; margin-right: 4px;
}
.fp-explain-text {
  font-size: 0.9em; color: #555; line-height: 1.8;
}

/* ===========================
   7. 獣医師レビュー
   =========================== */
.fp-vet-review {
  margin: 24px 0; border-radius: 8px;
  overflow: hidden; border: 1px solid #eee;
}
.fp-vet-header {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 24px;
  background: #f8fafb;
  border-bottom: 1px solid #eee;
}
.fp-vet-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  object-fit: cover; border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.fp-vet-name {
  font-size: 0.95em; font-weight: 700; color: #1a1a1a;
}
.fp-vet-credential {
  font-size: 0.75em; color: #888;
}
.fp-vet-body { padding: 24px; background: #fff; }
.fp-vet-summary {
  font-size: 0.95em; color: #333; line-height: 1.8;
  margin-bottom: 20px; padding-bottom: 20px;
  border-bottom: 1px solid #f5f5f5;
}

/* 良い点・注意点 */
.fp-vet-points {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.fp-vet-points-col h4 {
  font-size: 0.82em; font-weight: 700;
  margin-bottom: 12px; padding-bottom: 8px;
  border-bottom: 2px solid transparent;
}
.fp-vet-points-col.good h4 {
  color: #27ae60; border-bottom-color: #27ae60;
}
.fp-vet-points-col.caution h4 {
  color: #e67e22; border-bottom-color: #e67e22;
}
.fp-vet-point {
  display: flex; gap: 8px; align-items: flex-start;
  margin-bottom: 12px;
}
.fp-vet-point-icon {
  flex-shrink: 0; width: 20px; height: 20px;
  border-radius: 50%; display: flex;
  align-items: center; justify-content: center;
  font-size: 0.65em; font-weight: 700; color: #fff;
  margin-top: 3px;
}
.good .fp-vet-point-icon { background: #27ae60; }
.caution .fp-vet-point-icon { background: #e67e22; }
.fp-vet-point-text {
  font-size: 0.88em; color: #444; line-height: 1.6;
}
.fp-vet-point-text strong { color: #1a1a1a; }

/* ===========================
   8. うちの子チェック表（マトリクス）
   =========================== */
.fp-matrix {
  width: 100%; border-collapse: collapse; margin: 24px 0;
}
.fp-matrix th {
  padding: 12px 14px; text-align: left;
  font-size: 0.78em; font-weight: 700; color: #888;
  text-transform: uppercase; letter-spacing: 0.05em;
  border-bottom: 2px solid #eee; background: transparent;
}
.fp-matrix td {
  padding: 14px; border-bottom: 1px solid #f5f5f5;
  font-size: 0.88em; color: #333;
}
.fp-matrix tr:last-child td { border-bottom: none; }
.fp-fit-great {
  display: inline-block; padding: 2px 10px;
  background: #E8F5E9; color: #2E7D32;
  border-radius: 4px; font-weight: 600; font-size: 0.85em;
}
.fp-fit-ok {
  display: inline-block; padding: 2px 10px;
  background: #E3F2FD; color: #1565C0;
  border-radius: 4px; font-weight: 600; font-size: 0.85em;
}
.fp-fit-caution {
  display: inline-block; padding: 2px 10px;
  background: #FFF3E0; color: #E65100;
  border-radius: 4px; font-weight: 600; font-size: 0.85em;
}

/* ===========================
   9. 給餌量・切り替え
   =========================== */
.fp-feeding {
  margin: 24px 0; padding: 28px;
  background: #fff; border: 1px solid #eee;
  border-radius: 8px;
}
.fp-feeding-schedule {
  display: grid; grid-template-columns: 100px 1fr;
  gap: 0; margin-top: 16px;
}
.fp-feeding-day {
  padding: 10px 12px; font-weight: 700;
  font-size: 0.82em; color: #2B6777;
  border-bottom: 1px solid #f5f5f5;
  display: flex; align-items: center;
}
.fp-feeding-mix {
  padding: 10px 12px; font-size: 0.88em; color: #555;
  border-bottom: 1px solid #f5f5f5;
  display: flex; align-items: center;
}
.fp-feeding-bar {
  height: 6px; border-radius: 3px; margin-top: 4px;
  background: linear-gradient(90deg, #ccc var(--old), #2B6777 var(--old));
}

/* ===========================
   10. FAQ
   =========================== */
.fp-faq { margin: 24px 0; }
.fp-faq-item {
  border-bottom: 1px solid #f0f0f0;
  padding: 20px 0;
}
.fp-faq-item:first-child { padding-top: 0; }
.fp-faq-q {
  font-size: 0.95em; font-weight: 700; color: #1a1a1a;
  margin-bottom: 10px; display: flex; gap: 10px;
}
.fp-faq-q-mark {
  flex-shrink: 0; width: 24px; height: 24px;
  background: #2B6777; color: #fff; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75em; font-weight: 700;
}
.fp-faq-a {
  font-size: 0.9em; color: #555; line-height: 1.8;
  margin-left: 34px;
}

/* ===========================
   11. 他フードへの導線
   =========================== */
.fp-related {
  margin: 48px 0; padding: 28px;
  background: #f8fafb; border-radius: 8px;
  border: 1px solid #eee;
}
.fp-related-title {
  font-size: 1em; font-weight: 700; color: #1a1a1a;
  margin-bottom: 16px;
}
.fp-related-links {
  display: flex; flex-direction: column; gap: 10px;
}
.fp-related-link {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; background: #fff;
  border: 1px solid #eee; border-radius: 6px;
  text-decoration: none; color: #333;
  font-size: 0.9em; font-weight: 500;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.fp-related-link:hover {
  border-color: #2B6777; color: #2B6777;
  box-shadow: 0 2px 8px rgba(43,103,119,0.08);
}
.fp-related-link-arrow {
  margin-left: auto; color: #ccc; font-size: 0.8em;
}

/* ===========================
   12. 免責
   =========================== */
.fp-disclaimer {
  font-size: 0.75em; color: #aaa; line-height: 1.6;
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid #f0f0f0;
}

/* ===========================
   レスポンシブ
   =========================== */
@media screen and (max-width: 768px) {
  .fp-hero { flex-direction: column; gap: 20px; padding: 24px 0; }
  .fp-hero-img { flex: none; width: 100%; max-width: 280px; margin: 0 auto; }
  .fp-hero-name { font-size: 1.3em; }
  .fp-quick-stats { grid-template-columns: repeat(2, 1fr); }
  .fp-quick-stat { border-bottom: 1px solid #e8e8e8; }
  .fp-recommend-grid { grid-template-columns: 1fr; }
  .fp-vet-points { grid-template-columns: 1fr; }
  .fp-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .fp-tab { padding: 10px 16px; font-size: 0.82em; }
  .fp-feeding-schedule { grid-template-columns: 80px 1fr; }
  .fp-rating { flex-direction: column; align-items: flex-start; gap: 8px; }
  .fp-rating-score { font-size: 2em; }
}


/* === 膵炎関連記事リンクボックス === */
.pancreatitis-link-box { border: 2px solid #e5f6f6; border-radius: 12px; padding: 20px; background: #fdfdfd; margin: 40px 0; }
.pancreatitis-link-title { text-align: center; font-size: 1.2em; font-weight: bold; color: #006D77; margin-bottom: 15px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.pancreatitis-cat-label { background: #006D77; color: #fff; font-size: 0.8em; padding: 3px 10px; border-radius: 4px; display: inline-block; margin: 15px 0 5px; }
.pancreatitis-links { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.pancreatitis-links li { margin-bottom: 10px; list-style-type: none !important; }
.pancreatitis-links a { display: flex; align-items: center; text-decoration: none; background: #fff; padding: 12px 15px; border: 1px solid #ddd; border-left: 5px solid #E29578; border-radius: 6px; color: #333; font-weight: bold; font-size: 0.95em; transition: all 0.3s; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.pancreatitis-links a:hover { transform: translateY(-2px); box-shadow: 0 5px 10px rgba(0,0,0,0.1); background: #fffff0; }
@media screen and (max-width: 480px) { .pancreatitis-links a { font-size: 0.9em; padding: 10px; } }

/* === pfbox (product recommendation box) === */
.pfbox{border:2px solid #e8dcc3;border-radius:14px;background:#fffdf7;padding:18px 16px 16px;margin:1.6em 0;box-shadow:0 4px 14px rgba(40,30,10,.07);position:relative}
.pfbox__pr{position:absolute;top:8px;right:10px;font-size:10px;color:#999;background:#f1ece0;padding:1px 7px;border-radius:6px}
.pfbox__head{display:flex;align-items:center;gap:12px;margin-bottom:12px}
.pfbox__img{width:84px;flex:0 0 84px}
.pfbox__img img{width:100%;height:auto;display:block;border-radius:8px}
.pfbox__title{font-size:14px;font-weight:800;line-height:1.45;margin:0}
.pfbox__sub{font-size:11.5px;color:#8a6d2f;font-weight:700;margin:0 0 2px}
.pfbox__merits{list-style:none;margin:0 0 14px;padding:0}
.pfbox__merits li{position:relative;padding-left:24px;font-size:13px;line-height:1.6;margin-bottom:7px}
.pfbox__merits li::before{content:"✓";position:absolute;left:2px;top:0;color:#1f8a54;font-weight:900}
.pfbox__btn{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;box-sizing:border-box;text-decoration:none;background:linear-gradient(135deg,#e8a45e,#d4883e);color:#fff;font-weight:800;font-size:14px;padding:12px;border-radius:8px;transition:.2s}
.pfbox__btn:hover{filter:brightness(1.08);color:#fff;text-decoration:none}
@media(max-width:480px){.pfbox{padding:14px 12px 12px}.pfbox__img{width:68px;flex:0 0 68px}}
