/* ==========================================================================
   blog.css
   「時の機」ブログ専用スタイル。styles.css を上書きせず、追加分のみを
   ここに書く。本番実装時は /blog/blog.css として styles.css の後に読み込む。
   ========================================================================== */

/* ---------- ブログTOP:キービジュアル ---------- */
.blog-hero{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px clamp(20px, 4vw, 56px) 0;
}
.blog-hero-visual{
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--gold-line);
  box-shadow: 0 30px 70px -30px rgba(0,0,0,0.6);
}
.blog-hero-visual img{
  display: block;
  width: 100%;
  height: auto;
  /* 縦横比は変形させない。画面幅に応じて自然にスケールするだけ */
}
.blog-hero-visual::after{
  /* 画像下端をサイトの背景色へ自然になじませる、ごく薄いグラデーション */
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 40%;
  background: linear-gradient(180deg, transparent, rgba(7,8,17,0.55));
  pointer-events: none;
}

.blog-hero-copy{
  max-width: 640px;
  margin: 34px auto 0;
  text-align: center;
}
.blog-hero-copy h1{
  font-size: clamp(26px, 3.4vw, 36px);
  margin: 6px 0 18px;
}
.blog-hero-copy p{
  font-size: 14px;
  line-height: 2.1;
  color: var(--ivory-dim);
}

/* ---------- ブログ一覧:記事カード ---------- */
.blog-list{
  max-width: 720px;
  margin: 0 auto;
  padding: 48px clamp(20px, 4vw, 56px) 76px;
  display: flex;
  flex-direction: column;
}
.post-card{
  display: flex;
  flex-direction: column;
  padding: 26px 0;
  border-top: 1px solid var(--gold-line);
  text-decoration: none;
}
.blog-list .post-card:last-child{
  border-bottom: 1px solid var(--gold-line);
}
.post-card-thumb{
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--gold-line);
  background: var(--navy);
  flex-shrink: 0;
  opacity: 0.92;
}
.post-card-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.post-card-body{ min-width: 0; }
.post-card-meta{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ivory-faint);
}
.post-card-category{
  color: var(--gold);
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  padding: 1px 10px;
  font-style: normal;
  white-space: nowrap;
}
.post-card-title{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ivory);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
.post-card-excerpt{
  font-size: 13px;
  line-height: 1.9;
  color: var(--ivory-dim);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
}
.post-card-footer{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.post-card-more{
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 12px;
  color: var(--gold-bright);
  letter-spacing: 0.04em;
}
.post-card:hover .post-card-title{ color: var(--gold-bright); }
.post-card:hover .post-card-thumb img{ transform: scale(1.04); }
.post-card-thumb img{ transition: transform .4s ease; }

@media (max-width: 560px){
  .post-card{ padding: 20px 0; }
  .post-card-title{ font-size: 15px; }
  .post-card-thumb{ width: 48px; height: 48px; }
}

/* ---------- 個別記事ページ ---------- */
.post-header{
  max-width: 760px;
  margin: 0 auto;
  padding: 48px clamp(20px, 4vw, 56px) 0;
}
.post-eyecatch{
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--gold-line);
  margin-bottom: 30px;
}
.post-eyecatch img{
  display: block;
  width: 100%;
  height: auto;
}
.post-meta{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ivory-faint);
  margin-bottom: 14px;
}
.post-meta .post-card-category{ font-size: 11px; }
.post-title{
  font-size: clamp(24px, 3.2vw, 32px);
  text-align: center;
  margin-bottom: 40px;
}

.post-body{
  max-width: 680px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px) 20px;
  font-size: 15px;
  line-height: 2.2;
  color: var(--ivory-dim);
}
.post-body h2{
  font-size: 20px;
  text-align: left;
  margin: 48px 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--gold-line);
}
.post-body h3{
  font-size: 17px;
  text-align: left;
  color: var(--gold-bright);
  margin: 36px 0 16px;
}
.post-body p{ margin-bottom: 24px; }
.post-body img{
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  border-radius: 12px;
  margin: 32px 0;
  border: 1px solid var(--gold-line);
}
.post-body a{ color: var(--gold-bright); }
.post-body hr{
  border: none;
  border-top: 1px solid var(--gold);
  margin: 40px 0;
  opacity: 0.6;
}

/* ---------- 記事末尾:前後記事ナビ ---------- */
.post-adjacent{
  max-width: 680px;
  margin: 56px auto 0;
  padding: 0 clamp(20px, 4vw, 56px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.post-adjacent-link{
  text-decoration: none;
  border: 1px solid var(--gold-line);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color .25s;
}
.post-adjacent-link:hover{ border-color: var(--gold); }
.post-adjacent-link.is-next{ text-align: right; align-items: flex-end; }
.post-adjacent-label{
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 11px;
  color: var(--ivory-faint);
  letter-spacing: 0.06em;
}
.post-adjacent-title{
  font-family: var(--font-display);
  font-size: 13.5px;
  color: var(--ivory-dim);
  line-height: 1.6;
}

@media (max-width: 560px){
  .post-adjacent{ grid-template-columns: 1fr; }
  .post-adjacent-link.is-next{ text-align: left; align-items: flex-start; }
}

/* ---------- 記事末尾:LINE予約導線(既存ボタンに馴染ませる) ---------- */
.post-cta{
  max-width: 680px;
  margin: 48px auto 0;
  padding: 0 clamp(20px, 4vw, 56px);
}
.post-cta-panel{
  border: 1px solid var(--gold-line);
  border-radius: 16px;
  padding: 32px 28px;
  text-align: center;
  background: linear-gradient(180deg, rgba(201,162,78,0.05), transparent);
}
.post-cta-panel p{
  font-size: 13.5px;
  color: var(--ivory-dim);
  line-height: 1.9;
  margin-bottom: 20px;
}
.post-cta-panel .eyebrow{ margin-bottom: 10px; }

/* ---------- 一覧へ戻る ---------- */
.post-back{
  max-width: 680px;
  margin: 40px auto 80px;
  padding: 0 clamp(20px, 4vw, 56px);
  text-align: center;
}
.post-back a{
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 13px;
  color: var(--ivory-faint);
  text-decoration: none;
  letter-spacing: 0.04em;
}
.post-back a:hover{ color: var(--gold-bright); }
