/**
 * Stories一覧ページ
 */

/* ページネーション */
.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid #e5e0d8;
    color: #666;
    transition: all 0.3s;
}
.page-numbers:not(.current):hover {
    border-color: #2a7ab8;
    color: #2a7ab8;
}
.page-numbers.current {
    background-color: #2a7ab8 !important;
    color: #ffffff !important;
    border-color: #2a7ab8 !important;
    pointer-events: none;
}


/**
 * Stories詳細ページ
 */

/* 画像 */
.wp-block-image {
    display: block !important; /* WP標準の display:table を打ち消す（左寄りの原因） */
    text-align: center;        /* これで inline-block の画像が中央に来る */
}
.wp-block-image figcaption {
    display: block !important;   /* WPの display:table-caption を打ち消す */
    text-align: center !important;
}
.wp-block-image img {
    border-radius: 8px;
    max-width: 100%;
    max-height: 80vh;
    width: auto !important;
    height: auto !important;
    display: inline-block;
    vertical-align: middle;
}
/* 画像の注釈 */
/* 画像の注釈 */
.wp-element-caption em {
    font-style: normal;
}

/* 見出し */
article h2 {
    font-family: 'Cormorant', serif;
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 3rem !important;
    margin-bottom: 1.25rem !important;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    line-height: 1.2;
}
article h3 {
    font-family: 'Cormorant', serif;
    font-weight: 700;
    color: #1a1a1a;
    font-size: 1.75rem; 
    margin-top: 2.5rem !important;
    margin-bottom: 1rem !important;
    border-bottom: 1px solid #e5e0d8;
    padding-bottom: 0.5rem;
}
article h4 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    color: #1a1a1a;
    font-size: 1.25rem;
    margin-top: 2rem !important;
    margin-bottom: 0.75rem !important;
}
article h5 {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    color: #4a4a4a;
    font-size: 1.1rem;
    margin-top: 1.5rem !important;
    margin-bottom: 0.5rem !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
article h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    color: #888;
    font-size: 0.9rem;
    margin-top: 1.25rem !important;
    margin-bottom: 0.5rem !important;
    text-transform: uppercase;
}

/* リスト ul */
article ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}
article ul li {
    margin-bottom: 0.5rem;
}

/* 番号付きリスト ol */
article ol {
    list-style-type: decimal;
    padding-left: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}
article ol li {
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

/* 本文の段落 p */
article p {
    margin-bottom: 1.5rem;
    line-height: 1.85;
}

/* 引用 */
article blockquote {
    border-left: 4px solid #2a7ab8;
    padding: 0.75rem 1.5rem;
    margin: 2.5rem 0;
    background-color: #fafafa;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}
article blockquote p {
    font-family: 'Roboto', sans-serif;
    font-size: 1.125rem;
    color: #333;
    font-style: italic;
    line-height: 1.75;
}

/* 本文内の埋め込み（ツアー／記事）＝アイキャッチ付き独自カード */
.hj-embed-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e5e0d8;
    border-radius: 12px;
    overflow: hidden;
    margin: 2rem 0;
}
.hj-embed-card__img {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}
.hj-embed-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
    max-height: none;
    transition: transform .5s ease;
}
.hj-embed-card:hover .hj-embed-card__img img { transform: scale(1.05); }
.hj-embed-card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.25rem 1.5rem;
}
.hj-embed-card__label {
    font-family: 'Roboto', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #2a7ab8;
    margin-bottom: .45rem;
}
.hj-embed-card__title {
    font-family: 'Cormorant', serif;
    font-weight: 700;
    font-size: 1.4rem;
    line-height: 1.25;
    color: #1a1a1a;
}
.hj-embed-card:hover .hj-embed-card__title { color: #2a7ab8; }
.hj-embed-card__desc {
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    line-height: 1.6;
    color: #6b6862;
    margin-top: .55rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hj-embed-card__cta {
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    color: #7a7368;
    margin-top: .65rem;
}
@media (min-width: 640px) {
    .hj-embed-card { flex-direction: row; align-items: stretch; }
    /* 画像カラムはカード高さ（本文高さ）に合わせ、画像は枠いっぱいにクロップ。
       縦長サムネでもカードが縦長にならないよう img を絶対配置でフィルさせる */
    .hj-embed-card__img { width: 44%; flex-shrink: 0; aspect-ratio: auto; position: relative; min-height: 160px; }
    .hj-embed-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
}
/* 書籍/外部リンク = 本文に馴染むブルーの下線リンク */
.hj-book-cta {
    color: #2a7ab8;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
}
.hj-book-cta:hover { color: #1f5e90; }

/* ============================================================
   Newsletter本文の正規化（.hlj-letter-body）

   旧サイトのメルマガHTMLをそのまま移行しているため、WordPress既定パレットの
   緑・青・黒の背景色や、メール用のテーブル組みがそのまま入っている。
   Stories記事と同じ読み心地に揃えるため、ここで見た目だけ上書きする。
   本文データ自体は書き換えていないので、元に戻したくなればこのCSSを外せばよい。
   ============================================================ */

/* 背景色つきブロック（緑・青・黒など）→ サイトのベージュに統一し、文字はインク色に */
.hlj-letter-body .has-background {
    background-color: #F3EBDD !important;
    color: #241F1B !important;
    padding: 1.25rem 1.5rem;
}
/* 区切り線(hr)にも背景色クラスが付いているものがあり、上の余白が乗ると
   細い線が太い帯に化ける。線は線のまま扱う */
.hlj-letter-body hr {
    padding: 0 !important;
    background-color: transparent !important;
    border: 0;
    border-top: 1px solid #e5e0d8;
    margin: 2.5rem 0;
}

/* 本文中に残っている旧パレットの枠線は消す（緑の枠が本文に密着して読みにくいため） */
.hlj-letter-body [class*="-border-color"],
.hlj-letter-body .has-custom-border {
    border-color: transparent !important;
}
.hlj-letter-body .has-background *:not(a) {
    color: inherit !important;
}

/* 旧テーマ(Astra)の色クラスは新サイトに定義が無く、意図しない色になるので無効化 */
.hlj-letter-body [class*="has-ast-global-color"] {
    color: inherit !important;
    background-color: transparent !important;
}

/* 文字色だけ指定されているもの（白文字など）は本文色に戻す。背景を外すと読めなくなるため */
.hlj-letter-body .has-text-color:not(.wp-block-button__link) {
    color: #383838 !important;
}

/* ボタンはサイト標準の丸ボタンに揃える（黒い角ばったボタンが混ざっているため） */
.hlj-letter-body .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #2280c8 !important;
    color: #fff !important;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.75rem 1.75rem !important;
    border-radius: 9999px !important;
    border: 0 !important;
    text-decoration: none;
    transition: background-color 0.3s ease;
}
.hlj-letter-body .wp-block-button__link:hover {
    background-color: #1d6dab !important;
}
.hlj-letter-body .wp-block-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin: 2rem 0;
}

/* メール用のテーブル組みは1カラムに崩して、上から読める形にする */
.hlj-letter-body table,
.hlj-letter-body tbody,
.hlj-letter-body tr,
.hlj-letter-body td,
.hlj-letter-body th {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    padding: 0 !important;
    border: 0 !important;
    text-align: left !important;
}
.hlj-letter-body td + td,
.hlj-letter-body th + th {
    margin-top: 1.5rem !important;
}
.hlj-letter-body table {
    margin: 2rem 0 !important;
}

/* 本文中の画像は幅いっぱい・角丸に（メール由来の固定幅指定を打ち消す） */
.hlj-letter-body img {
    max-width: 100% !important;
    height: auto !important;
}

/* 行き先が無くなった旧サイトへのリンク。
   形は通常のボタン(.btn-primary)と同じにして「ボタンだが押せない」と分かるようにする。
   色をグレーにし、押せる合図である矢印は付けない */
.hlj-letter-body .hlj-dead-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #ebe7e0;
    color: #8a857c;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    text-decoration: none;
    cursor: default;
}

/* 本文中のボタンには、サイトの他のボタンと同じく矢印を付ける。
   他のボタンは w-4 h-4 のSVG線画（stroke-width 2・角丸端）を使っているので、
   文字の「→」ではなく同じ形のSVGをマスクで描く（色は文字色に追従させる） */
.hlj-letter-body .wp-block-button__link::after {
    content: "";
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13.5 4.5 21 12m0 0-7.5 7.5M21 12H3'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13.5 4.5 21 12m0 0-7.5 7.5M21 12H3'/%3E%3C/svg%3E") no-repeat center / contain;
}
