/* ===== レクピン コンポーネント ===== */

/* ===== セクション ===== */
.section {
  margin-bottom: 48px;
  padding: 28px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--vermilion);
}
.section-title .num {
  background: var(--vermilion);
  color: var(--white);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Shippori Mincho', serif;
  font-size: 18px;
}
.section-title h2 { margin: 0; }

/* ===== タグ ===== */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fs-meta);
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--washi);
  color: var(--ink-soft);
  border: 1px solid var(--washi-line);
}
.tag.classic {
  background: var(--vermilion);
  color: var(--white);
  border-color: var(--vermilion);
}

/* ===== 介護現場フィルタータグ ===== */
.care-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: var(--fs-meta);
  font-weight: 500;
  min-height: var(--tap-min);
  border: 1.5px solid var(--washi-line);
}
.care-tag.ok {
  background: #f0f5e6;
  color: var(--green-soft);
  border-color: #c5d6a3;
}
.care-tag.ng {
  background: #fbeae8;
  color: var(--vermilion-dark);
  border-color: #e8b8b3;
}
.care-tag .ico { font-size: 1.1em; }

/* ===== ステータスカード ===== */
.status-card {
  background: var(--washi);
  border: 1px solid var(--washi-line);
  border-radius: var(--radius);
  padding: 20px;
}
.status-card h3 {
  font-size: 18px;
  color: var(--vermilion-dark);
  border-bottom: 1px solid var(--washi-line);
  padding-bottom: 10px;
  margin-bottom: 14px;
}
.status-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: var(--fs-meta);
  border-bottom: 1px dashed var(--washi-line);
}
.status-row:last-child { border-bottom: none; }
.status-row .label { color: var(--ink-soft); }
.status-row .value { font-weight: 700; color: var(--ink); }
.stars { color: var(--vermilion); letter-spacing: 2px; }

/* ===== 動画カード ===== */
.video-card {
  background: var(--washi);
  border: 1px solid var(--washi-line);
  border-radius: var(--radius);
  overflow: hidden;
}
.video-thumb {
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
  background: var(--washi-dark);
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-thumb .play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.4));
  color: white;
  font-size: 56px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
.video-thumb .duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.78);
  color: white;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
}
.video-body { padding: 16px; }
.video-title { font-weight: 700; margin-bottom: 6px; line-height: 1.5; }
.video-channel { font-size: var(--fs-meta); color: var(--ink-soft); margin-bottom: 12px; }
.video-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 12px; }
.video-tags .tag { font-size: 13px; padding: 2px 8px; }

/* ===== 現場メモ ===== */
.care-memo {
  background: var(--white);
  border-left: 3px solid var(--vermilion);
  padding: 12px 14px;
  border-radius: 4px;
  font-size: var(--fs-meta);
  line-height: 1.7;
}
.care-memo .memo-head {
  font-weight: 700;
  color: var(--vermilion-dark);
  margin-bottom: 4px;
  font-size: 13px;
}
.memo-author { color: var(--ink-soft); font-size: 13px; margin-top: 8px; }

/* ===== 材料表 ===== */
.materials-table { width: 100%; border-collapse: collapse; }
.materials-table th, .materials-table td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--washi-line);
  font-size: var(--fs-meta);
}
.materials-table th { background: var(--washi); font-weight: 700; color: var(--ink-soft); }
.shop-links { display: flex; gap: 6px; flex-wrap: wrap; }
.shop-btn {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px;
  text-decoration: none;
  font-weight: 700;
  min-height: 32px;
}
.shop-btn.amazon { background: #ff9900; color: white; }
.shop-btn.rakuten { background: #bf0000; color: white; }
.shop-btn.hyakuyen { background: var(--gold); color: var(--white); }

/* ===== コスト計算カード ===== */
.cost-card {
  background: var(--washi);
  border: 1px solid var(--washi-line);
  border-radius: var(--radius);
  padding: 20px;
  position: sticky;
  top: 88px;
}
.cost-card h3 {
  font-size: 18px;
  color: var(--vermilion-dark);
  border-bottom: 1px solid var(--washi-line);
  padding-bottom: 10px;
  margin-bottom: 14px;
}
.cost-input { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.cost-input input {
  width: 70px;
  padding: 8px;
  border: 1.5px solid var(--washi-line);
  border-radius: 6px;
  font: inherit;
  text-align: center;
  background: var(--white);
}
.cost-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: var(--fs-meta);
}
.cost-total {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 2px solid var(--vermilion);
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 18px;
}
.cost-total .value { color: var(--vermilion); }
.print-btn {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 12px;
  background: var(--vermilion);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  min-height: var(--tap-min);
}
.print-btn:hover { background: var(--vermilion-dark); }

/* ===== ステップ ===== */
.steps { display: flex; flex-direction: column; gap: 20px; }
.step {
  display: grid;
  grid-template-columns: 220px 1fr;
  background: var(--washi);
  border-radius: var(--radius);
  border: 1px solid var(--washi-line);
  overflow: hidden;
}
.step-photo {
  position: relative;
  margin: 0;
  aspect-ratio: 1;
  background: var(--washi-dark);
}
.step-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.step-num {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--vermilion);
  color: var(--white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Shippori Mincho', serif;
  font-size: 20px;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(42, 36, 28, 0.4);
}
.step-body { padding: 18px 22px; }
.step-title { font-weight: 700; margin-bottom: 4px; font-size: calc(var(--fs-base) * 1.05); }
.step-tip {
  margin-top: 10px;
  background: var(--white);
  border-left: 3px solid var(--gold);
  padding: 10px 14px;
  border-radius: 4px;
  font-size: var(--fs-meta);
}
.step-tip .tip-head {
  font-weight: 700;
  color: var(--gold);
  font-size: 13px;
  margin-bottom: 4px;
}

/* ===== 実施報告カード ===== */
.report-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  padding: 18px;
  background: var(--washi);
  border-radius: var(--radius);
  border: 1px solid var(--washi-line);
}
.report-photo {
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--washi-dark);
}
.report-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.report-meta { font-size: 13px; color: var(--ink-soft); margin-bottom: 6px; }
.report-comment { line-height: 1.7; }
.report-engagement {
  display: flex;
  gap: 14px;
  margin-top: 10px;
  font-size: var(--fs-meta);
  color: var(--ink-soft);
}

/* ===== 関連レシピカード ===== */
.related-card {
  background: var(--washi);
  border: 1px solid var(--washi-line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.2s, box-shadow 0.2s;
}
.related-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.related-thumb {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--washi-dark);
}
.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.related-card:hover .related-thumb img { transform: scale(1.06); }
.related-body { padding: 12px; }
.related-title { font-weight: 700; font-size: var(--fs-meta); margin-bottom: 4px; }
.related-meta { font-size: 13px; color: var(--ink-soft); }

/* ===== ヒーロー（クックパッド風：写真主役） ===== */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  grid-template-areas:
    "photo content"
    "photo status";
  margin-bottom: 48px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-photo {
  grid-area: photo;
  margin: 0;
  position: relative;
  background: var(--washi-dark);
  min-height: 380px;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-photo figcaption {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(42, 36, 28, 0.78);
  color: var(--washi);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: var(--fs-meta);
  font-family: 'Shippori Mincho', serif;
  letter-spacing: 0.05em;
}
.hero-content { grid-area: content; padding: 28px 28px 16px; }
.hero .status-card { grid-area: status; margin: 0 28px 28px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.subtitle {
  font-size: var(--fs-meta);
  color: var(--gold);
  font-family: 'Shippori Mincho', serif;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}
.lead { font-size: calc(var(--fs-base) * 1.05); color: var(--ink-soft); }

/* ===== レスポンシブ ===== */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-areas: "photo" "content" "status";
  }
  .hero-photo { aspect-ratio: 4/3; min-height: 0; }
  .hero .status-card { margin: 0 24px 24px; }
  .step { grid-template-columns: 1fr; }
  .step-photo { aspect-ratio: 4/3; }
  .cost-card { position: static; }
  h1 { font-size: calc(var(--fs-hero) * 0.85); }
}
@media (max-width: 540px) {
  .section { padding: 20px 16px; }
  .hero-content { padding: 22px 18px 12px; }
  .hero .status-card { margin: 0 16px 18px; padding: 16px; }
  .report-card { grid-template-columns: 1fr; }
  .report-photo { aspect-ratio: 16/9; }
}
