/* ============================================================
   ドローン物流ジャーナル ブログ固有スタイル
   （ヘッダー/フッター/ナビは ../styles.css を使用。ここには書かない）
   ============================================================ */

/* ---------------- ブログ共通ヒーロー ---------------- */
.blog-hero {
  background: linear-gradient(120deg, var(--sky-deep) 0%, var(--sky) 70%, #7dd3fc 100%);
  padding: 2.8rem 0 2.4rem;
  position: relative;
  overflow: hidden;
}

.blog-hero::after {
  content: "";
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: 18px;
  border-top: 3px dashed rgba(255, 255, 255, 0.45);
  transform: rotate(-1.5deg);
}

.blog-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.2rem;
  position: relative;
  z-index: 1;
}

.blog-hero .blog-label {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--sky-dark);
  background: #fff;
  padding: 0.2rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 0.7rem;
  font-weight: 700;
}

.blog-hero h1 {
  color: #ffffff;
  font-size: clamp(1.4rem, 3.2vw, 2.1rem);
  font-weight: 900;
  line-height: 1.5;
  text-shadow: 0 2px 10px rgba(3, 74, 110, 0.55);
}

.blog-hero .blog-hero-desc {
  color: #eaf7ff;
  margin-top: 0.6rem;
  font-size: 0.95rem;
  text-shadow: 0 1px 6px rgba(3, 74, 110, 0.5);
}

/* ---------------- 記事一覧（2カラムグリッド） ---------------- */
.blog-list-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2.5rem 1.2rem 3.5rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.8rem;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(3, 105, 161, 0.18);
}

.blog-thumbnail {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.blog-content {
  padding: 1.2rem 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-content h2 {
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.55;
  margin-bottom: 0.4rem;
}

.blog-content h2 a {
  color: var(--sky-dark);
}

.blog-content h2 a:hover {
  color: var(--orange);
}

.blog-content time {
  font-family: var(--font-accent);
  font-size: 0.78rem;
  color: var(--orange-deep);
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: block;
}

.article-summary {
  font-size: 0.86rem;
  color: var(--text-mid);
  flex: 1;
  margin-bottom: 0.8rem;
}

.read-more {
  align-self: flex-start;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--sky-deep);
  border: 1px solid var(--sky);
  border-radius: 999px;
  padding: 0.3rem 1rem;
  transition: var(--transition);
}

.read-more:hover {
  background: var(--sky);
  color: #fff;
}

/* ---------------- 記事ページ（2カラム） ---------------- */
.article-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.4rem 1.2rem 3.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2.2rem;
}

.article-main {
  min-width: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.2rem 2.2rem 2.6rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-mid);
  margin-bottom: 1.2rem;
}

.article-meta .meta-date {
  font-family: var(--font-accent);
  font-weight: 700;
  color: var(--orange-deep);
}

.article-meta .meta-time {
  background: var(--sky-pale);
  color: var(--sky-deep);
  border-radius: 999px;
  padding: 0.15rem 0.8rem;
  font-weight: 700;
}

.article-main .article-hero-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  margin: 0 0 1.6rem;
  display: block;
}

.article-content h2 {
  position: relative;
  font-size: 1.32rem;
  font-weight: 800;
  color: var(--sky-dark);
  margin: 2.4rem 0 1rem;
  padding: 0 0 0.5rem 1.5rem;
  border-bottom: 3px dashed var(--line);
  line-height: 1.5;
}

.article-content h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 14px;
  height: 14px;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--orange-pale);
}

.article-content h2:first-of-type {
  margin-top: 0;
}

.article-content h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--sky-deep);
  margin: 1.6rem 0 0.7rem;
  padding-left: 0.8rem;
  border-left: 4px solid var(--sky);
}

.article-content p {
  margin-bottom: 1.1rem;
}

.article-content ul,
.article-content ol {
  margin: 0 0 1.1rem 0.4rem;
}

.article-content li {
  margin-bottom: 0.35rem;
}

/* シェアボタン */
.share-box {
  margin-top: 2.2rem;
  padding-top: 1.4rem;
  border-top: 3px dashed var(--line);
}

.share-box h3 {
  font-size: 0.9rem;
  color: var(--sky-dark);
  margin-bottom: 0.7rem;
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.share-buttons a {
  display: inline-block;
  padding: 0.45rem 1.2rem;
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 700;
  color: #fff;
}

.share-buttons a.share-x {
  background: #0f1419;
}

.share-buttons a.share-facebook {
  background: #1877f2;
}

.share-buttons a.share-line {
  background: #06c755;
}

.share-buttons a:hover {
  opacity: 0.8;
  color: #fff;
}

/* 記事下ナビ */
.article-nav {
  margin-top: 1.8rem;
  text-align: center;
}

.article-nav a {
  display: inline-block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--sky-deep);
  border: 1px solid var(--sky);
  border-radius: 999px;
  padding: 0.5rem 1.6rem;
}

.article-nav a:hover {
  background: var(--sky);
  color: #fff;
}

/* ---------------- レスポンシブ ---------------- */
@media (max-width: 960px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .article-main {
    padding: 1.5rem 1.2rem 2rem;
  }
}

/* Mobile news-commentary readability baseline (shared site-local rule). */
@media (max-width: 768px) {
  .blog-main, .blog-container, .two-col-layout { min-width: 0; }
  .article-detail, .blog-article, .article-body { min-width: 0; }
  .article-detail .article-body, .blog-article { padding-inline: 16px; }
  .article-content {
    font-size: 1rem;
    line-height: 1.85;
    overflow-wrap: anywhere;
  }
  .article-content h2 { font-size: clamp(1.25rem, 6vw, 1.45rem); line-height: 1.4; }
  .article-content h3 { font-size: clamp(1.12rem, 5vw, 1.25rem); line-height: 1.45; }
  .article-content :is(img, iframe, video) { max-width: 100%; height: auto; }
  .article-content table { display: block; max-width: 100%; overflow-x: auto; }
  .sidebar, .blog-sidebar { position: static; order: 2; }
}
/* Mobile article reading width: keep outer page gutters, remove duplicated inner gutters. */
@media (max-width: 768px) {
  .article-content,
  .article-detail .article-body,
  .blog-article,
  .main-content > article.main-content {
    padding-left: 0;
    padding-right: 0;
  }
  /* Cap article-panel padding without removing deliberate card framing. */
  .article-panel,
  .article-main,
  .post-content,
  .article-detail {
    padding-left: min(16px, 4vw);
    padding-right: min(16px, 4vw);
  }
  .article-body { padding-left: 0; padding-right: 0; }
}
