/*
 * choku.css
 * ちょくちょく 独自スタイル
 * 読み込み: functions.php の wp_enqueue_scripts で追加
 */

/* ============================================
   カラー定義
   キーカラー: 紅樺色（べにかばいろ）#bb5548
     リンク・ボタン・見出しの線など、文字として読ませる場所にも使う
     （白地でのコントラスト比 4.66）
   差し色: 柿色 #ed6d3d
     ホバー・細い装飾線など、文字として読ませない場所に限って使う
   ============================================ */

:root {
    --choku-key:        #bb5548; /* 紅樺色 */
    --choku-key-dark:   #9a4034; /* 紅樺の濃い版（ホバー時の文字など） */
    --choku-accent:     #ed6d3d; /* 柿色（差し色） */
    --choku-ink:        #2b2523; /* 本文・見出しの文字色 */
    --choku-ink-sub:    #6b6260; /* 補足文字 */
    --choku-ink-muted:  #7a706d; /* 日付など */
    --choku-line:       #e4dedb; /* 罫線 */
    --choku-hero-base:  #524748; /* 消炭色（写真がないときのヒーロー下地） */
}

/* ============================================
   フロントページ共通
   ============================================ */

.choku-home {
    max-width: 100%;
    margin: 0 auto;
}

/* フロントページのArkheページタイトルを非表示（functions.php のフィルターが効かない場合の保険） */
.home .l-content__top {
    display: none !important;
}

/* ============================================
   ヒーロー
   ============================================ */

/* コンテナ幅を突き破って全幅に */
.choku-feature {
    display: block !important;
    text-decoration: none;
    color: inherit;
    position: relative;
    border-bottom: 1px solid var(--choku-line);
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.choku-feature__thumb {
    width: 100%;
    height: 560px;
    background-color: var(--choku-hero-base);
    position: relative;
    overflow: hidden;
}

/* 写真は img で出力し、枠いっぱいにトリミング表示 */
.choku-feature__thumb .choku-feature__img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
}

/* 写真の下半分を暗くして文字を読みやすくする */
.choku-feature__thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.05) 0%,
        rgba(0, 0, 0, 0.70) 100%
    );
}

.choku-feature__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 40px 36px;
    z-index: 1;
}

/* コンセプト一文 */
.choku-feature__concept {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.choku-feature__concept::before {
    content: '';
    display: block;
    width: 20px;
    height: 1px;
    background: var(--choku-accent);
    flex-shrink: 0;
}

/* カテゴリタグ */
.choku-feature__cat {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    background: var(--choku-key);
    color: #fff;
    padding: 3px 10px;
    border-radius: 2px;
    margin-bottom: 12px;
}

/* 記事タイトル */
.choku-feature__title {
    font-size: 28px;
    font-weight: 500;
    color: #fff;
    line-height: 1.5;
    letter-spacing: -0.3px;
    margin-bottom: 12px;
}

.choku-feature__meta {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
}

/* ============================================
   サブグリッド（2・3番目の記事）
   ============================================ */

.choku-sub-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    border-bottom: 1px solid var(--choku-line);
}

.choku-sub-item {
    display: block !important;
    text-decoration: none;
    color: inherit;
}

.choku-sub-item:first-child {
    border-right: 1px solid var(--choku-line);
}

.choku-sub-item__thumb {
    width: 100%;
    height: 200px;
    background-color: #f5f5f5;
    overflow: hidden;
}

.choku-sub-item__thumb .choku-sub-item__img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
}

.choku-sub-item__body {
    padding: 14px 20px 20px;
}

.choku-sub-item__cat {
    display: block !important;
    font-size: 10px;
    font-weight: 500;
    color: var(--choku-key);
    margin-bottom: 5px;
    letter-spacing: 0.03em;
}

.choku-sub-item__title {
    font-size: 14px;
    font-weight: 500;
    color: var(--choku-ink);
    line-height: 1.55;
}

.choku-sub-item__meta {
    font-size: 11px;
    color: var(--choku-ink-muted);
    margin-top: 8px;
}

/* カードにマウスを乗せたらタイトルをキーカラーに */
.choku-sub-item:hover .choku-sub-item__title,
.choku-sub-item:focus-visible .choku-sub-item__title {
    color: var(--choku-key-dark);
}

/* ============================================
   サイト説明
   ============================================ */

.choku-about {
    display: flex !important;
    gap: 16px;
    align-items: flex-start;
    padding: 28px 28px;
    border-bottom: 1px solid var(--choku-line);
}

.choku-about__line {
    width: 3px;
    flex-shrink: 0;
    border-radius: 2px;
    background: var(--choku-key);
    align-self: stretch;
    min-height: 40px;
}

.choku-about__text {
    font-size: 13px;
    color: var(--choku-ink-sub);
    line-height: 1.9;
}

.choku-about__text strong {
    font-size: 14px;
    color: var(--choku-ink);
    font-weight: 500;
    display: block;
    margin-bottom: 4px;
}

/* ============================================
   掲載依頼CTA
   ============================================ */

.choku-cta {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 18px 28px;
    border-bottom: 1px solid var(--choku-line);
}

.choku-cta__text {
    font-size: 13px;
    color: var(--choku-ink-sub);
}

.choku-cta__btn {
    font-size: 12px;
    font-weight: 500;
    border: 1.5px solid var(--choku-key);
    color: var(--choku-key);
    padding: 7px 18px;
    border-radius: 4px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}

.choku-cta__btn:hover,
.choku-cta__btn:focus-visible {
    background: var(--choku-key);
    border-color: var(--choku-key);
    color: #fff;
}

/* ============================================
   PR表示（予約）
   カテゴリタグと見分けられるよう、キーカラーは使わず
   グレーの枠線のみで表示する
   ============================================ */

.choku-pr-label {
    display: inline-block;
    font-size: 10px;
    font-weight: 500;
    color: var(--choku-ink-sub);
    border: 1px solid var(--choku-ink-muted);
    padding: 1px 6px;
    border-radius: 2px;
    letter-spacing: 0.05em;
    vertical-align: middle;
}

/* ============================================
   記事なし表示
   ============================================ */

.choku-empty {
    padding: 60px 28px;
    text-align: center;
    color: var(--choku-ink-muted);
    font-size: 14px;
}

/* ============================================
   レスポンシブ
   ============================================ */

@media (max-width: 600px) {
    .choku-feature__thumb {
        height: 360px;
    }

    .choku-feature__title {
        font-size: 20px;
    }

    .choku-feature__overlay {
        padding: 24px 20px 20px;
    }

    .choku-sub-grid {
        grid-template-columns: 1fr;
    }

    .choku-sub-item:first-child {
        border-right: none;
        border-bottom: 1px solid var(--choku-line);
    }

    .choku-cta {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}