/* 
==========================================================================
   01. Global Reset & BASE
========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

/* 1. ヘッダー自体の線を消す */
header {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* 2. ページ全体の「要素間の隙間」をリセット */
.wp-site-blocks {
    gap: 0 !important;
}

/* 3. カスタムページの最初の要素の上余白を消す */
main, 
.entry-content,
section:first-of-type {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* 画像の崩れ防止（超重要） */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* リストのリセット */
ul, ol {
    list-style: none;
}

/* リンクの初期化 */
a {
    text-decoration: none;
    color: #000  !important;
}

p {
    margin: 0 !important;
}

/* ボタンのリセット（地味に重要） */
button {
    background: none;
    border: none;
    cursor: pointer;
}


body {
  /* 日本語フォント優先 */
  overflow-x: hidden;
  font-family: "Noto Sans JP", "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400; /* ここは必要に応じて調整 */
  font-style: normal;
  font-variation-settings: "wdth" 100; /* Robotoに適用される */
}

/* Noto Sans JP 用クラス */
.noto-sans-jp {
  font-family: "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400; /* 必要に応じて変更 */
  font-style: normal;
}

/* Roboto 用クラス */
.roboto {
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400; /* 必要に応じて変更 */
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

.limited-width{
    padding: 15px 100px;
}

/* 
==========================================================================
      03. COMMON COMPONENTS (ボタン・アニメーションなどの共通パーツ)

========================================================================== */

.fade-up {
    opacity: 0;
    transform: translateY(50px); /* 移動距離を長く */
    transition: opacity 1.5s ease-out, transform 1.5s ease-out; /
}

.fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.limited-width h2 {
        font-size: 60px;
        border-bottom: 5px solid #292828;
}

.main {
    min-width: 0;
    overflow: hidden;
}

.blog-hero-catchphrase {
    word-break: break-word;
    overflow-wrap: break-word;
}

.lp-content-adjuster {
    display:flex;
    flex-direction: column;
    gap:20px;
}

.past-blog-sidebar h2{
    border-bottom: solid 3px #000;
    margin-bottom: 15px;
}

.post-info a {
    color: #fff !important;
}

.post-info .post-date {
    padding:0 0 15px 0!important;

}

/* 
==========================================================================
      . Mobile (スマホ画面)

========================================================================== */

@media (max-width: 640px) {
.limited-width{
    padding: 15px 10px;
}

.limited-width h2 {
        font-size: 40px;
        border-bottom: 5px solid #292828;
}

.lp-content-adjuster {
    gap:5px;
}
}


/* 投稿テーブル要素 */

/* 投稿記事内のテーブル全体 */
.entry-content table,
.blog-main-article table {
    width: 100%;
    margin-bottom: 20px;
    border-collapse: collapse; /* 隣り合う枠線を重ねる */
    border: 2px solid #000000; /* 外枠：黒 */
    background-color: #F9F7F2; /* 背景：アイボリー */
}

/* テーブルの見出しと中身のセル */
.entry-content th,
.entry-content td,
.blog-main-article th,
.blog-main-article td {
    border: 1px solid #000000; /* セルの区切り線：黒 */
    padding: 12px 15px;        /* セル内の余白 */
    text-align: left;
}

/* 見出しセル（th）に少し色を付ける場合 */
.entry-content th,
.blog-main-article th {
    background-color: #eee; /* 薄いグレーなどで区別 */
    font-weight: bold;
}

/* 投稿記事のh2 */
.blog-main-article h2 {
    margin-top: 60px;    /* 上側の余白：見出しの前に大きなゆとりを作る */
    margin-bottom: 30px; /* 下側の余白：本文との間の適切な距離 */
    padding-left: 15px;  /* 以前のルールに合わせ、左側に少しインデント */
    border-left: 5px solid #000000; /* アクセントとして3px〜5pxの黒線を入れると締まります */
    line-height: 1.4;
    font-size: 1.8rem;
    clear: both;         /* 回り込み解除（画像などがある場合の崩れ防止） */
}

/* 投稿記事の写真統一 */
/*  カード全体 */
.post-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2; /* 3:2 の比率を強制 */
    object-fit: cover;    /* カードに収まるよう中央を切り抜き */
}