@charset "utf-8";
/* ==========================================================================
   はかせレポート（REPORT）
   Figma: 03_Pages / report / TOP / report・TOP / report_article
   ========================================================================== */

/* --------------------------------------------------------------------------
   一覧
   -------------------------------------------------------------------------- */
.reportpage {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  padding: var(--space-16) 0;
  background: var(--c-wt);
}

.reportpage__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  width: 100%;
  padding: 0 var(--space-16);
}

/* --------------------------------------------------------------------------
   Report_card（343 × 244）
   サムネイル → 日付・NEW・タグ → タイトル
   -------------------------------------------------------------------------- */
.report-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: var(--space-8);
  border-radius: var(--radius-16);
  background: var(--c-wt);
  filter: drop-shadow(0 4px 2px var(--c-lbl));
  transition: transform 0.2s ease;
}

.report-card:hover {
  transform: translateY(-2px);
}

.report-card__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  width: 100%;
}

.report-card__thumb {
  overflow: hidden;
  width: 100%;
  height: 160px;
  border-radius: var(--space-4);
  background: #d9d9d9;
}

.report-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.report-card__meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  width: 100%;
}

.report-card__row {
  display: flex;
  gap: var(--space-8);
  align-items: center;
  width: 100%;
}

.report-card__date {
  flex: 1 0 0;
  min-width: 0;
  color: var(--c-text-primary);
  font-size: var(--fs-h6);
  font-weight: var(--fw-regular);
  line-height: 1;
}

.report-card__title {
  width: 100%;
  color: var(--btn-textlink-text);
  font-size: var(--fs-p);
  font-weight: var(--fw-regular);
  line-height: 32px;
}

/* --------------------------------------------------------------------------
   記事ページ（report_article）
   -------------------------------------------------------------------------- */
.report-article {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  padding: var(--space-16);
  border-radius: var(--space-12);
  background: var(--c-wt);
}

.report-article > * {
  width: 100%;
}

/* タイトル＋メイン画像（間隔 8px） */
.report-article__top {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

/* article/title — 左にタグ、右に日付、その下に大見出し */
.report-article__meta {
  display: flex;
  gap: var(--space-8);
  align-items: center;
}

.report-article__date {
  flex: 1 0 0;
  min-width: 0;
  color: var(--c-text-primary);
  font-size: var(--fs-p);
  font-weight: var(--fw-regular);
  line-height: 32px;
  text-align: right;
}

.report-article__head {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  padding-bottom: var(--space-8);
}

.report-article__title {
  color: var(--btn-textlink-text);
  font-size: var(--fs-h2);
  font-weight: var(--fw-demibold);
  line-height: normal;
}

/* 画像の枠（縦横比は HTML の style で指定。画像が無いあいだはグレーの面） */
.report-article__hero,
.talk__figure {
  margin: 0;
  width: 100%;
  overflow: hidden;
  background: var(--bg-tertiary);
}

.report-article__hero {
  aspect-ratio: 515 / 290;
}

.report-article__hero img,
.talk__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.talk__figure--contain img {
  object-fit: contain;
}

/* --------------------------------------------------------------------------
   会話（fukidashi）
   アイコン 64px ＋ 三角 ＋ 吹き出し。話者で吹き出しの色が変わる。
   -------------------------------------------------------------------------- */
.talk {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  align-items: flex-start;
  width: 100%;
}

.talk__row {
  display: flex;
  gap: var(--space-8);
  align-items: center;
  width: 100%;
}

.talk__icon {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
}

.talk__body {
  display: flex;
  flex: 1 0 0;
  align-items: center;
  min-width: 0;
}

/* 吹き出しのしっぽ */
.talk__tail {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  clip-path: polygon(100% 0, 100% 100%, 0 50%);
  background: var(--talk-bg);
}

.talk__text {
  flex: 1 0 0;
  min-width: 0;
  padding: var(--space-8);
  border-radius: var(--space-8);
  background: var(--talk-bg);
  color: var(--c-text-primary);
  font-size: var(--fs-p);
  font-weight: var(--fw-regular);
  line-height: 32px;
}

.talk__row--scanyan {
  --talk-bg: var(--c-lyw);
}

.talk__row--hakase {
  --talk-bg: var(--c-lbl);
}

.talk__row--anko {
  --talk-bg: var(--c-lgn);
}

/* --------------------------------------------------------------------------
   試料データ（article/infomation）
   グレーの面に「項目｜値」を2列で並べる。
   -------------------------------------------------------------------------- */
.report-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: var(--space-16);
  background: var(--bg-tertiary);
  color: var(--c-text-primary);
  font-size: var(--fs-p);
  line-height: 32px;
}

.report-info__row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.report-info__row dt,
.report-info__row dd {
  flex: 1 0 0;
  min-width: 0;
  margin: 0;
  font-weight: var(--fw-regular);
}

.report-info__note {
  margin: 0;
}

/* --------------------------------------------------------------------------
   引用元（reference）
   -------------------------------------------------------------------------- */
.reference {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
  width: 100%;
  color: var(--c-text-primary);
  font-size: var(--fs-p);
}

.reference__line {
  width: 100%;
  margin: 0;
  border: 0;
  border-top: 1px solid var(--c-bg-subtitle);
}

.reference__title {
  font-size: var(--fs-h4);
  font-weight: var(--fw-demibold);
  line-height: normal;
}

.reference__text {
  font-weight: var(--fw-regular);
  line-height: 32px;
}

/* 段落の間は1行分あける */
.reference__text p + p {
  margin-top: 32px;
}

.reference__url {
  color: var(--c-text-primary);
  line-height: 32px;
  word-break: break-all;
}

.reference__url:hover {
  color: var(--btn-textlink-text);
  text-decoration: underline;
}

/* 関連記事 */
.report-related {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
}

/* --------------------------------------------------------------------------
   一覧 ⇔ 記事ページの切り替えアニメーション（js/report-transition.js）
   押したカードの写真が、記事ページの1枚目の位置へ「ぴょん」と移動し、
   そのあと記事の内容が表示される。非対応ブラウザでは普通に切り替わる。
   -------------------------------------------------------------------------- */
@view-transition {
  navigation: auto;
}

@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }
}

/* 写真：少し行き過ぎてから戻る動き */
::view-transition-group(report-photo) {
  overflow: clip;
  border-radius: var(--space-4);
  animation-duration: 0.6s;
  animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* カード（横長）と記事（16:9）で縦横比が違うので、枠いっぱいに切り抜いて重ねる */
::view-transition-old(report-photo),
::view-transition-new(report-photo) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation-timing-function: ease;
}

/* ページ全体：前のページは残したまま、写真が着地するころに次のページを重ねて表示 */
::view-transition-old(root) {
  animation: none;
}

::view-transition-new(root) {
  animation: report-vt-in 0.35s 0.35s ease both;
}

@keyframes report-vt-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* 2026/11/09: サムネイルリストの日付をなくしたので、NEW!（左上）とカテゴリーのタグ（右上）をサムネイルの上に重ねる
   （Figma: list/thum_report の category-date-tag）。タグは左側だけ丸くして、サムネイルの右端につける */
.report-card__inner {
  position: relative;
}

.report-card__row {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.report-card__row .tag {
  margin-left: auto;
  border-radius: var(--radius-16) 0 0 var(--radius-16);
}
