/**
 * 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: #1a1a1a;
    color: #1a1a1a;
}
.page-numbers.current {
    background-color: #e7ddca !important;
    color: #1a1a1a !important;
    border-color: #e7ddca !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;
}

/* 整形済みテキスト（旅人からの手紙・感想）＝引用レターカード */
article .wp-block-preformatted {
    font-family: 'Roboto', sans-serif;
    font-style: normal;
    font-size: 1rem;
    line-height: 1.5;
    color: #4a4a4a;
    text-align: left;
    white-space: pre-wrap;
    border-left: 2px solid #c9b48f;
    padding: 0.25rem 0 0.25rem 1.5rem;
    margin: 2.5rem 0;
}

/* 本文内の埋め込み（ツアー／記事）＝アイキャッチ付き独自カード */
.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; }
