/* ベーススタイル */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  color: #1f2933;
  background-color: #f5f7fa;
}

a {
  color: #0b7285;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ヘッダー */
.site-header {
  background: linear-gradient(135deg, #0b7285, #228be6);
  color: #ffffff;
  padding: 16px 0 12px;
}

.site-logo {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  font-weight: 600;
  opacity: 0.85;
}

.site-tagline {
  margin: 4px 0 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 1;
}

/* パンくず */
.breadcrumb {
  background-color: #e9ecef;
  font-size: 0.8rem;
  padding: 6px 0;
  color: #495057;
}

/* レイアウト */
.layout-main {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 24px 16px 40px;
}

.article {
  flex: 1 1 auto;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  padding: 20px 20px 24px;
}

.sidebar {
  flex: 0 0 auto;
}

.sidebar-section {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  padding: 16px 18px 18px;
  margin-bottom: 16px;
}

/* 記事ヘッダー */
.article-header {
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.article-title {
  margin: 0 0 8px;
  font-size: 1.4rem;
  color: #111827;
}

.article-subtitle {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: #4b5563;
}

.article-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.8rem;
  color: #6b7280;
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* セクション */
.article-section {
  padding: 12px 0 4px;
  border-bottom: 1px dashed #e5e7eb;
}

.article-section:last-of-type {
  border-bottom: none;
}

.article-section h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  border-left: 3px solid #0b7285;
  padding-left: 8px;
  color: #0b7285;
}

.subsection {
  margin-top: 8px;
}

.subsection h3 {
  margin: 8px 0 4px;
  font-size: 1rem;
  color: #111827;
}

.model-plan {
  margin: 4px 0 8px;
  font-size: 0.9rem;
  color: #374151;
}

/* リスト */
.bullet-list {
  margin: 4px 0 8px 1.1em;
  padding: 0;
}

.bullet-list li {
  margin-bottom: 3px;
}

/* テーブル */
.route-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-top: 4px;
}

.route-table th,
.route-table td {
  border: 1px solid #e5e7eb;
  padding: 6px 8px;
  text-align: left;
  vertical-align: top;
}

.route-table thead {
  background-color: #f1f5f9;
}

.route-table tbody tr:nth-child(even) {
  background-color: #f9fafb;
}

/* カード */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 8px;
}

.card {
  background-color: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  padding: 10px 12px;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 0.98rem;
  color: #0b7285;
}

.card-note {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: #4b5563;
}

/* 注意・インフォボックス */
.notice-box {
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 6px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
}

.notice-box--highlight {
  background-color: #e7f5ff;
  border-color: #74c0fc;
}

.note-text {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 4px;
}

/* データリスト（サイドバーなど） */
.data-list {
  margin: 4px 0 0;
  font-size: 0.85rem;
}

.data-list dt {
  font-weight: 600;
  margin-top: 6px;
}

.data-list dd {
  margin: 2px 0 0 0;
}

/* フッター */
.site-footer {
  border-top: 1px solid #e5e7eb;
  padding: 10px 0 16px;
  font-size: 0.8rem;
  color: #6b7280;
}

.footer-copy {
  margin: 0;
}

/* ヒーロー画像（トップ） */
.hero {
  width: 100%;
  margin: 0 0 24px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
}

.hero-caption {
  margin: 0;
  padding: 8px 12px;
  font-size: 0.8rem;
  color: #6b7280;
  background-color: #f8fafc;
  text-align: center;
}

/* 観光地セクション（画像付きカード） */
.subsection-with-image {
  display: grid;
  gap: 16px;
  margin-top: 12px;
  padding: 0 0 16px;
  border-bottom: 1px dashed #e5e7eb;
}

.subsection-with-image:last-child {
  border-bottom: none;
}

.subsection-image-wrap {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  aspect-ratio: 16 / 9;
  background-color: #f1f5f9;
}

.subsection-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ニャチャン写真：元データの向きを補正（90度右回転） */
.subsection-image-wrap--rotate90 {
  isolation: isolate;
}

.subsection-image-wrap--rotate90 img {
  transform: rotate(90deg) scale(1.78);
  transform-origin: center center;
}

.subsection-body h3 {
  margin: 0 0 6px;
}

/* トップページ用ヒーロー */
.top-hero {
  max-width: 880px;
  margin: 0 auto 24px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

.top-hero img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

@media (min-width: 768px) {
  .subsection-with-image {
    grid-template-columns: 320px 1fr;
    align-items: start;
  }

  .subsection-image-wrap {
    aspect-ratio: 4 / 3;
  }
}

/* レスポンシブレイアウト */
/* 本家サイトからのクロスリンクボックス */
.airline-news-link {
  border-left: 4px solid #1a4f8a;
  background: #f0f7ff;
  padding: 10px 16px;
  margin: 10px;
  border-radius: 0 6px 6px 0;
  font-size: 0.88rem;
}

.airline-news-link .an-badge {
  display: inline-block;
  background: #1a4f8a;
  color: #fff;
  font-size: 0.72rem;
  font-weight: bold;
  padding: 2px 7px;
  border-radius: 3px;
  margin-right: 8px;
  letter-spacing: 0.05em;
}

.airline-news-link a {
  color: #1a4f8a;
  font-weight: 600;
}

/* レスポンシブレイアウト */
@media (min-width: 768px) {
  .layout-main {
    flex-direction: row;
    align-items: flex-start;
    padding: 32px 16px 48px;
  }

  .article {
    padding: 24px 24px 28px;
  }

  .article-title {
    font-size: 1.6rem;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar {
    flex: 0 0 280px;
  }
}

