/* ブログ記事のスタイル */
.blog-post {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px 40px;
    line-height: 1.8;
}

.post-header {
    margin-bottom: 30px;
    text-align: center;
    padding-top: 110px;
    margin-top: -110px;
}

.post-header h1 {
    font-size: 2.2em;
    margin-bottom: 15px;
    color: #2c3e50;
    line-height: 1.3;
}
.summary-back-link {
	float:left;
}
.post-meta {
	text-align:right;
    color: #7f8c8d;
    font-size: 0.95em;
    /*margin-bottom: 30px;*/
}

.post-content {
    padding-top:10px;
    font-size: 1.05em;
    color: #2c3e50;
}

.post-content h1 {
    margin-top: 0;
}

.post-content h2 {
    font-size: 1.4em;
    margin: 1.8em 0 1em;
    padding-bottom: 0.3em;
    border-bottom: 2px solid #eaecef;
    color: #2c3e50;
}

.post-content h3 {
    font-size: 1.2em;
    margin: 1.6em 0 0.8em;
    color: #2c3e50;
    font-weight: 600;
}

.post-content p {
    margin: 1.2em 0;
}

.post-content ul,
.post-content ol {
    margin: 1.2em 0;
    padding-left: 1.5em;
}

.post-content li {
    margin: 0.5em 0;
}

.post-content td{
	padding:5px;
}



/* サムネイル画像 */
.post-thumbnail {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 30px;
    border-radius: 4px;
}

/* ブログ一覧ページのサムネイル */
.blog-grid .post-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-grid .blog-post-preview:hover .post-thumbnail {
    transform: scale(1.03);
}

/* モバイル表示の調整 */
@media (max-width: 768px) {
    .post-thumbnail {
        max-height: 200px;
        margin-bottom: 15px;
    }
}

/* テーブルスタイル */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin: 20px 0;
    -webkit-overflow-scrolling: touch;
}

.standard-comparison {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.95em;
    min-width: 600px;
}

.standard-comparison th,
.standard-comparison td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.standard-comparison th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
    white-space: nowrap;
}

.standard-comparison tr:hover {
    background-color: #f5f7fa;
}

.standard-comparison td:first-child {
    font-weight: 600;
    color: #1a365d;
    white-space: nowrap;
    width: 120px;
}

/* ブログ一覧ページ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.blog-post-preview {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post-preview:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.post-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.post-preview-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-thumbnail-container {
    width: 100%;
    height: 120px;
    overflow: hidden;
}

.post-thumbnail-container .post-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-preview-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-preview-content h2 {
    font-size: 1.25rem;
    margin: 0 0 0.75rem;
    color: #2c3e50;
    line-height: 1.4;
}

.post-preview-content time {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-bottom: 0.75rem;
    display: block;
}

.post-preview-content p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin: 0 0 1rem;
    flex-grow: 1;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .post-thumbnail-container {
        height: 150px;
    }
}

/* ナビゲーション */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 50px 0;
    flex-wrap: wrap;
    gap: 15px;
}

.post-navigation .btn {
    padding: 10px 20px;
    background-color: #f8f9fa;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.post-navigation .btn:hover {
    background-color: #e9ecef;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .blog-post {
        padding: 30px 15px;
    }
    
    .post-header h1 {
        font-size: 1.8em;
    }
    
    .standard-comparison {
        font-size: 0.9em;
        min-width: 100%;
    }
    
    .standard-comparison th,
    .standard-comparison td {
        padding: 10px 8px;
    }
    
    .post-navigation {
        flex-direction: column;
    }
    
    .post-navigation .btn {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
}

div.form_link_space{
	margin-top:70px;
	text-align:center;
}

/* ────────────────
   Post Navigation
   ──────────────── */
.post-nav {
  display: flex;                 /* 水平に並べる */
  justify-content: space-between;
  gap: 1rem;                     /* スマホ時に少し余白 */
  margin: 3rem 0 4rem;           /* 上下余白 */
}

.post-nav .prev,
.post-nav .next {
  flex: 1 1 0;                   /* どちらも同じ幅で伸縮 */
}

.post-nav a {
  display: block;
  padding: 1rem 1.5rem;
  border-radius: 6px;
  text-align: center;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--c-border, #ccc);
  background: var(--c-bg, #f9f9f9);
  color: var(--c-text, #333);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* ホバー時に少しインパクト */
.post-nav a:hover,
.post-nav a:focus {
  background: var(--c-accent, #1e90ff);
  border-color: var(--c-accent, #1e90ff);
  color: #fff;
}

/* スマホ（幅 ? 480px）は縦積み */
@media (max-width: 480px) {
  .post-nav {
    flex-direction: column;
  }
}

/* ────────────────
   「記事一覧へ戻る」ボタン
   ──────────────── */
.post-more-links {
  margin: 4rem 0 0;              /* 本文との余白 */
  text-align: center;            /* ボタン中央寄せ */
}

.post-more-links .btn-back {
  display: inline-block;
  padding: 0.8rem 2.4rem;
  border: 2px solid var(--c-accent, #1e90ff);
  background: var(--c-accent-light, #eef6ff);
  color: var(--c-accent, #1e90ff);
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

/* ホバー／フォーカス */
.post-more-links .btn-back:hover,
.post-more-links .btn-back:focus {
  background: var(--c-accent, #1e90ff);
  color: #fff;
  border-color: var(--c-accent, #1e90ff);
}

/* スマホで横幅が狭いときは全幅にしても OK */
@media (max-width: 480px) {
  .post-more-links .btn-back {
    width: 100%;
  }
}

/* ── 備考欄（remarks）スタイル ───────────────────────── */

.remarks{
  font-size: 0.9rem;          /* 本文より一段階小さく */
  line-height: 1.6;
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  border: 1px solid #d0d7de;  /* うすいグレーの枠線 */
  border-radius: 6px;
  background:#f9fafb;         /* わずかにトーンを落とした背景 */
}

.remarks p{
  margin: 0 0 0.8rem 0;       /* 各備考段落の間隔を狭める */
}
.remarks p:last-child{
  margin-bottom: 0;           /* 末尾だけ余白をなくす */
}

/* ※番号をもう少し目立たせたい場合 */
.remarks sup{
  font-weight: 600;
}
