/* ============================================================
 * WP Fortune Timeline — スマホ縦型タイムライン用CSS
 * 設計：横幅360〜480px想定。ピンチズーム不要のシングルカラム。
 * ============================================================*/

:root {
    --wpft-bg: #f8f7f2;
    --wpft-fg: #2a2a3e;
    --wpft-accent: #1a1a2e;
    --wpft-accent-2: #8b5a2b;
    --wpft-tenchu: #b03030;
    --wpft-line: #d8d5cc;
    --wpft-card: #ffffff;
    --wpft-radius: 10px;
    --wpft-pad: 14px;
    --wpft-font: "Hiragino Mincho ProN", "游明朝", "Yu Mincho", serif;
}

.wpft-app {
    max-width: 480px;
    margin: 0 auto;
    padding: 16px 12px 80px;
    color: var(--wpft-fg);
    background: var(--wpft-bg);
    font-family: var(--wpft-font);
    line-height: 1.65;
}

/* --- 入力フォーム --- */
.wpft-title {
    font-size: 1.6rem;
    text-align: center;
    margin: 8px 0 4px;
    letter-spacing: 0.06em;
}
.wpft-lead {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 18px;
}
.wpft-field {
    display: block;
    margin-bottom: 14px;
}
.wpft-field > span {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 4px;
    font-weight: bold;
}
.wpft-field > span small {
    font-weight: normal;
    color: #888;
    margin-left: 4px;
}
.wpft-field input[type="number"],
.wpft-field input[type="time"],
.wpft-field select {
    width: 100%;
    padding: 10px 12px;
    font-size: 1rem;
    border: 1px solid var(--wpft-line);
    border-radius: var(--wpft-radius);
    background: #fff;
    box-sizing: border-box;
}
.wpft-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 0.85rem;
}

.wpft-btn {
    display: block;
    width: 100%;
    padding: 14px;
    font-size: 1.05rem;
    border: none;
    border-radius: var(--wpft-radius);
    cursor: pointer;
    margin-top: 10px;
    font-family: inherit;
}
.wpft-btn--primary {
    background: var(--wpft-accent);
    color: #fff;
}
.wpft-btn--primary:active {
    background: #333;
}

/* ============================================================
 * 大運コンテキスト・相互作用セクション（年齢詳細内）
 * ============================================================*/
.wpft-daiun-context {
    background: #fcf7eb;
    border-left: 3px solid var(--wpft-accent-2);
    padding: 10px 12px;
    border-radius: 4px;
}
.wpft-daiun-context h4 {
    color: var(--wpft-accent-2);
}
.wpft-interactions {
    background: #fff8f0;
    border-left: 3px solid var(--wpft-tenchu);
    padding: 10px 12px;
    border-radius: 4px;
}
.wpft-interaction {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px dotted #e0d8c8;
}
.wpft-interaction:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.wpft-interaction strong {
    display: block;
    color: var(--wpft-tenchu);
    font-size: 0.9rem;
    margin-bottom: 3px;
}
.wpft-interaction p {
    margin: 0;
    font-size: 0.85rem;
}

/* ============================================================
 * 大運の切り替わりマーカー（タイムライン内）
 * ============================================================*/
.wpft-daiun-boundary {
    margin: 16px 0 8px;
    padding: 8px 12px;
    background: linear-gradient(to right, var(--wpft-accent-2) 4px, #fcf7eb 4px);
    color: var(--wpft-accent);
    font-size: 0.85rem;
    border-radius: 4px;
    font-weight: 500;
}
.wpft-daiun-boundary strong {
    color: var(--wpft-accent-2);
}

/* ============================================================
 * 大運リスト（強化版）
 * ============================================================*/
.wpft-daiun__lead {
    font-size: 0.8rem;
    color: #666;
    margin: 0 0 8px;
}
.wpft-daiun li {
    padding: 8px 6px;
    background: #f7f4ea;
    border-radius: 6px;
    font-size: 0.82rem;
    text-align: center;
    line-height: 1.4;
}
.wpft-daiun__age {
    font-weight: bold;
    font-size: 0.78rem;
    color: var(--wpft-accent);
}
.wpft-daiun__kanshi {
    font-size: 1.05rem;
    font-weight: bold;
    color: var(--wpft-accent-2);
    margin: 2px 0;
}
.wpft-daiun__star {
    font-size: 0.72rem;
    color: #666;
}

/* ============================================================
 * 歳運アイテム：相互作用ハイライト
 * ============================================================*/
.wpft-item--kango .wpft-item__badge {
    border-color: #c9a86a;
    color: #c9a86a;
    background: #fdf8eb;
}
.wpft-item--cho .wpft-item__badge {
    border-color: #a04040;
    color: #a04040;
    background: #fef0f0;
}

/* ============================================================
 * グラフ凡例の点の色
 * ============================================================*/
.wpft-graph__dot--normal { background: var(--wpft-accent); }
.wpft-graph__dot--kango  { background: #c9a86a; }
.wpft-graph__dot--cho    { background: #a04040; }
.wpft-graph__dot--sango  { background: #4a7c4e; }
.wpft-graph__dot--tenchu { background: var(--wpft-tenchu); }

/* ============================================================
 * 共通カード（本質・現在地・重要な出会い・総括）
 * ============================================================*/
.wpft-card {
    background: var(--wpft-card);
    border: 1px solid var(--wpft-line);
    border-radius: var(--wpft-radius);
    padding: 16px 14px;
    margin: 18px 0;
}
.wpft-card__head {
    margin-bottom: 12px;
}
.wpft-card__head h2 {
    font-size: 1.15rem;
    color: var(--wpft-accent);
    margin: 0;
    letter-spacing: 0.05em;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--wpft-accent);
}
.wpft-card__head h2 small {
    font-size: 0.75rem;
    color: #888;
    font-weight: normal;
    margin-left: 6px;
    letter-spacing: 0.02em;
}
.wpft-card__lead {
    font-size: 0.8rem;
    color: #666;
    margin: 6px 0 0;
}

/* ============================================================
 * 本質カードのヒーロー部分
 * ============================================================*/
.wpft-honshitsu__hero {
    background: linear-gradient(135deg, #fcf7eb 0%, #f7efd9 100%);
    border-radius: 10px;
    padding: 22px 16px 18px;
    margin-bottom: 16px;
    text-align: center;
    box-shadow: inset 0 0 0 1px rgba(139, 90, 43, 0.15);
}
.wpft-hero-label {
    font-size: 0.78rem;
    color: var(--wpft-accent-2);
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}
.wpft-hero-char {
    font-size: 5.5rem;
    line-height: 1;
    font-weight: 500;
    color: var(--wpft-accent);
    font-family: "Hiragino Mincho ProN", "游明朝", "Yu Mincho", serif;
    margin: 4px 0 8px;
    text-shadow: 0 2px 8px rgba(139, 90, 43, 0.15);
}
.wpft-hero-nature {
    font-size: 0.88rem;
    color: var(--wpft-accent);
    margin-bottom: 14px;
    line-height: 1.5;
}
.wpft-hero-chips {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.wpft-hero-chip {
    background: #fff;
    border: 1px solid var(--wpft-line);
    border-radius: 12px;
    padding: 10px 14px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 160px;
}
.wpft-hero-chip em {
    font-style: normal;
    font-size: 0.7rem;
    color: #888;
}
.wpft-hero-chip strong {
    font-size: 1.1rem;
    color: var(--wpft-accent);
    font-weight: bold;
}
.wpft-hero-chip small {
    font-size: 0.75rem;
    color: var(--wpft-accent-2);
}

/* ============================================================
 * 現在地カードのヒーロー部分
 * ============================================================*/
.wpft-genchichi {
    background: linear-gradient(180deg, #fffcf2 0%, var(--wpft-card) 100%);
}
.wpft-genchichi .wpft-card__head h2 {
    color: var(--wpft-accent-2);
    border-bottom-color: var(--wpft-accent-2);
}
.wpft-genchichi__hero {
    background: #fff;
    border: 1px solid var(--wpft-line);
    border-radius: 10px;
    padding: 16px 12px 14px;
    margin-bottom: 16px;
}
.wpft-hero-age {
    text-align: center;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--wpft-line);
    margin-bottom: 14px;
}
.wpft-hero-age-big {
    font-size: 3.5rem;
    line-height: 1;
    font-weight: 500;
    color: var(--wpft-accent-2);
    font-family: "Hiragino Mincho ProN", "游明朝", "Yu Mincho", serif;
    margin: 2px 0;
}
.wpft-hero-age-big small {
    font-size: 1.2rem;
    margin-left: 4px;
    color: #888;
}
.wpft-hero-age-year {
    font-size: 0.85rem;
    color: #666;
}
.wpft-hero-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.wpft-hero-mini {
    background: #fcfbf6;
    border: 1px solid var(--wpft-line);
    border-radius: 8px;
    padding: 10px 8px;
    text-align: center;
}
.wpft-hero-mini--daiun {
    background: #fcf7eb;
    border-color: rgba(139, 90, 43, 0.3);
}
.wpft-hero-mini__label {
    font-size: 0.7rem;
    color: #888;
    margin-bottom: 4px;
}
.wpft-hero-mini__kanshi {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--wpft-accent);
    line-height: 1.2;
    font-family: "Hiragino Mincho ProN", "游明朝", "Yu Mincho", serif;
}
.wpft-hero-mini__star {
    font-size: 0.75rem;
    color: #555;
    margin-top: 3px;
}
.wpft-hero-mini__sub {
    font-size: 0.7rem;
    color: var(--wpft-accent-2);
    margin-top: 2px;
}
.wpft-genchichi__jump {
    text-align: center;
    margin-top: 8px;
}
.wpft-section--advice {
    background: #fff8e8;
    border-left: 3px solid var(--wpft-accent-2);
    padding: 10px 12px;
    border-radius: 4px;
}
.wpft-section--advice h4 {
    color: var(--wpft-accent-2);
}
.wpft-btn-mini {
    background: var(--wpft-accent);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    font-family: inherit;
}
.wpft-btn-mini:active {
    background: #333;
}

/* ============================================================
 * 重要な出会い・転機
 * ============================================================*/
.wpft-milestones__list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.wpft-milestone {
    display: flex;
    gap: 12px;
    padding: 10px 8px;
    border-radius: 6px;
    margin-bottom: 6px;
    cursor: pointer;
    border-left: 3px solid var(--wpft-line);
    background: #fcfbf6;
    -webkit-tap-highlight-color: transparent;
}
.wpft-milestone:hover, .wpft-milestone:active {
    background: #f5f1e3;
}
.wpft-milestone--kijin {
    border-left-color: #c9a86a;
    background: #fdf8eb;
}
.wpft-milestone--tenchu {
    border-left-color: var(--wpft-tenchu);
    background: #fff5f0;
}
.wpft-milestone__age {
    flex-shrink: 0;
    width: 56px;
    text-align: center;
    line-height: 1.2;
    align-self: center;
}
.wpft-milestone__age strong {
    display: block;
    font-size: 1.4rem;
    color: var(--wpft-accent);
    line-height: 1;
    font-family: "Hiragino Mincho ProN", "游明朝", "Yu Mincho", serif;
}
.wpft-milestone__age strong small {
    font-size: 0.65rem;
    color: #888;
    margin-left: 2px;
}
.wpft-milestone__year {
    font-size: 0.72rem;
    color: var(--wpft-accent-2);
    display: block;
    margin-top: 2px;
}
.wpft-milestone__tag {
    display: inline-block;
    font-size: 0.65rem;
    background: var(--wpft-tenchu);
    color: #fff;
    padding: 1px 6px;
    border-radius: 3px;
    margin-left: 6px;
    vertical-align: middle;
}
.wpft-milestone__icon {
    display: inline-block;
    margin-right: 3px;
    color: inherit;
    font-weight: normal;
}

/* 本質カード内のセクションは少しゆとりを */
.wpft-section--honshitsu {
    padding: 4px 0 12px;
}
.wpft-section--honshitsu p {
    line-height: 1.85;
}
.wpft-milestone__body {
    flex: 1;
    font-size: 0.85rem;
}
.wpft-milestone__kanshi {
    font-weight: bold;
    color: var(--wpft-accent-2);
    font-size: 0.95rem;
    margin-bottom: 3px;
}
.wpft-milestone__events {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.wpft-milestone__event {
    background: #fff;
    border: 1px solid var(--wpft-line);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.75rem;
    color: #555;
}
.wpft-milestone__event--tenitsu {
    background: #fdf8eb;
    border-color: #c9a86a;
    color: #8b5a2b;
}
.wpft-milestone__event--day_kango,
.wpft-milestone__event--daiun_kango {
    background: #fdf8eb;
    border-color: #c9a86a;
    color: #8b5a2b;
    font-weight: bold;
}
.wpft-milestone__event--daiun_shicho,
.wpft-milestone__event--day_shicho {
    background: #fef0f0;
    border-color: #a04040;
    color: #a04040;
}
.wpft-milestone__event--daiun_change {
    background: #f5f1e3;
    border-color: var(--wpft-accent-2);
}

/* ============================================================
 * 歳運アイテム：西暦・貴人バッジ・現在年のハイライト
 * ============================================================*/
.wpft-item__main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}
.wpft-item__year {
    font-size: 0.7rem;
    color: #888;
    line-height: 1.1;
}
.wpft-item__badge small {
    font-size: 0.6rem;
    display: block;
    line-height: 1;
}
.wpft-item--kijin .wpft-item__badge {
    border-color: #c9a86a;
    color: #c9a86a;
    background: #fdf8eb;
}
.wpft-item--current .wpft-item__head {
    box-shadow: 0 0 0 2px var(--wpft-accent-2);
    background: #fffcf2;
}
.wpft-item--current .wpft-item__badge {
    background: var(--wpft-accent-2);
    color: #fff;
    border-color: var(--wpft-accent-2);
}
.wpft-badge {
    display: inline-block;
    font-size: 0.65rem;
    padding: 1px 5px;
    border-radius: 3px;
    margin-left: 4px;
    vertical-align: middle;
    line-height: 1.4;
}
.wpft-badge--tenitsu {
    background: #fdf8eb;
    color: #8b5a2b;
    border: 1px solid #c9a86a;
}
.wpft-badge--bunshou {
    background: #f0f4ed;
    color: #4a7c4e;
    border: 1px solid #4a7c4e;
}

/* ============================================================
 * 詳細パネル：貴人セクション
 * ============================================================*/
.wpft-kijin-section {
    background: #fdf8eb;
    border-left: 3px solid #c9a86a;
    padding: 10px 12px;
    border-radius: 4px;
}
.wpft-kijin-section h4 {
    color: #8b5a2b;
}
.wpft-kijin-item {
    margin-bottom: 6px;
    padding-bottom: 6px;
    border-bottom: 1px dotted #e0d8c8;
}
.wpft-kijin-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.wpft-kijin-item strong {
    color: #8b5a2b;
    font-size: 0.9rem;
}
.wpft-kijin-item p {
    margin: 4px 0 0;
    font-size: 0.85rem;
}

/* ============================================================
 * 総括カード
 * ============================================================*/
.wpft-soukatsu {
    background: linear-gradient(135deg, #fffcf2 0%, #fef8e8 100%);
    border-color: var(--wpft-accent-2);
}
.wpft-soukatsu .wpft-card__head {
    border-bottom-color: var(--wpft-accent-2);
}
.wpft-soukatsu__body p {
    font-size: 0.92rem;
    line-height: 1.85;
    margin: 0 0 12px;
    color: #333;
}
.wpft-soukatsu__body p:first-child {
    font-size: 1rem;
    color: var(--wpft-accent);
}
.wpft-soukatsu__body p:last-child {
    border-top: 1px dashed var(--wpft-line);
    padding-top: 10px;
    margin-bottom: 0;
    font-style: italic;
    color: var(--wpft-accent-2);
}

/* --- 四柱表 --- */
.wpft-pillars {
    background: var(--wpft-card);
    border: 1px solid var(--wpft-line);
    border-radius: var(--wpft-radius);
    padding: 12px;
    margin: 14px 0;
    font-size: 0.9rem;
}
.wpft-pillars table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}
.wpft-pillars th,
.wpft-pillars td {
    padding: 6px 4px;
    border-bottom: 1px solid var(--wpft-line);
    font-size: 0.85rem;
}
.wpft-pillars th {
    background: #f0ede5;
    font-weight: normal;
    color: #555;
}
.wpft-kanshi {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--wpft-accent);
}

.wpft-tenchu-note {
    background: #fff8f0;
    border-left: 4px solid var(--wpft-tenchu);
    padding: 8px 12px;
    font-size: 0.9rem;
    margin: 10px 0 20px;
}

/* --- タイムライン本体 --- */
.wpft-timeline {
    position: relative;
    padding-left: 56px;
}
.wpft-timeline::before {
    content: "";
    position: absolute;
    left: 22px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--wpft-line);
}

.wpft-item {
    position: relative;
    margin-bottom: 8px;
}
.wpft-item__badge {
    position: absolute;
    left: -56px;
    top: 6px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--wpft-card);
    border: 2px solid var(--wpft-accent);
    color: var(--wpft-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    box-sizing: border-box;
}
.wpft-item--tenchu .wpft-item__badge {
    border-color: var(--wpft-tenchu);
    color: var(--wpft-tenchu);
    background: #fff5f5;
}

.wpft-item__head {
    background: var(--wpft-card);
    border: 1px solid var(--wpft-line);
    border-radius: var(--wpft-radius);
    padding: 10px 12px;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.wpft-item__head:active {
    background: #f0ede5;
}
.wpft-item__catchphrase {
    font-size: 0.95rem;
    flex: 1;
}
.wpft-item__kanshi {
    font-size: 0.85rem;
    color: var(--wpft-accent-2);
    white-space: nowrap;
}
.wpft-item__caret {
    transition: transform 0.25s ease;
    color: #999;
}
.wpft-item--open .wpft-item__caret {
    transform: rotate(180deg);
}

/* アコーディオン展開部 */
.wpft-item__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #fcfbf6;
    border-radius: 0 0 var(--wpft-radius) var(--wpft-radius);
    margin-top: -1px;
}
.wpft-item--open .wpft-item__body {
    max-height: 2000px;
}
.wpft-item__body-inner {
    padding: 14px 14px 12px;
    border: 1px solid var(--wpft-line);
    border-top: none;
    border-radius: 0 0 var(--wpft-radius) var(--wpft-radius);
}
.wpft-section {
    margin-bottom: 10px;
}
.wpft-section h4 {
    font-size: 0.85rem;
    margin: 0 0 4px;
    color: var(--wpft-accent);
}
.wpft-section p {
    margin: 0;
    font-size: 0.9rem;
}

/* 区切り — 広告枠は廃止 */

/* ============================================================
 * 用語タップ（ポップアップ起動）
 * ============================================================*/
.wpft-term {
    color: var(--wpft-accent);
    border-bottom: 1px dashed rgba(26, 26, 46, 0.4);
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(26, 26, 46, 0.1);
    padding: 0 1px;
}
.wpft-term:hover {
    background: rgba(26, 26, 46, 0.05);
}
.wpft-term:active {
    background: rgba(26, 26, 46, 0.12);
}

/* ============================================================
 * 運気曲線グラフ
 * ============================================================*/
.wpft-graph {
    background: var(--wpft-card);
    border: 1px solid var(--wpft-line);
    border-radius: var(--wpft-radius);
    padding: 12px;
    margin: 14px 0;
}
.wpft-graph__head h2 {
    font-size: 1rem;
    color: var(--wpft-accent);
    margin: 0 0 2px;
}
.wpft-graph__hint {
    font-size: 0.75rem;
    color: #888;
    margin: 0 0 8px;
}
.wpft-graph__scroller {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    /* グラフは横長なので、内側のSVGをそのままスクロール */
    border-left: 1px solid var(--wpft-line);
    border-right: 1px solid var(--wpft-line);
    background:
        linear-gradient(to right, rgba(248,247,242,0.9), rgba(248,247,242,0)) left center / 16px 100% no-repeat,
        linear-gradient(to left,  rgba(248,247,242,0.9), rgba(248,247,242,0)) right center / 16px 100% no-repeat,
        var(--wpft-card);
}
.wpft-graph__svg {
    display: block;
    /* SVG固有幅を保つことで横スクロールが効く */
    width: 1280px;
    height: 240px;
    user-select: none;
}
.wpft-graph__hit {
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(26, 26, 46, 0.08);
}
.wpft-graph__hit:hover {
    fill: rgba(26, 26, 46, 0.04);
}
.wpft-graph__hit:focus {
    outline: none;
    fill: rgba(26, 26, 46, 0.08);
}
.wpft-graph__legend {
    display: flex;
    gap: 18px;
    font-size: 0.75rem;
    color: #666;
    margin-top: 8px;
    flex-wrap: wrap;
}
.wpft-graph__legend span {
    display: flex;
    align-items: center;
    gap: 4px;
}
.wpft-graph__dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--wpft-accent);
    border: 1px solid #fff;
}
.wpft-graph__dot--tenchu {
    background: var(--wpft-tenchu);
}

/* ============================================================
 * 用語ポップアップ（ボトムシート）
 * ============================================================*/
.wpft-popup {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.wpft-popup[hidden] {
    display: none;
}
.wpft-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    animation: wpft-fade-in 0.18s ease-out;
}
.wpft-popup__sheet {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    background: var(--wpft-bg);
    border-radius: 16px 16px 0 0;
    padding: 20px 18px 28px;
    box-sizing: border-box;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    animation: wpft-slide-up 0.22s ease-out;
    font-size: 0.92rem;
    line-height: 1.7;
}
@keyframes wpft-slide-up {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}
@keyframes wpft-fade-in {
    from { opacity: 0; } to { opacity: 1; }
}
.wpft-popup__close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    font-size: 1.8rem;
    line-height: 1;
    color: #888;
    cursor: pointer;
}
.wpft-popup__close:active {
    color: #333;
}
.wpft-popup__title {
    font-size: 1.4rem;
    margin: 0 30px 12px 0;
    color: var(--wpft-accent);
    letter-spacing: 0.04em;
}
.wpft-popup__title small {
    font-size: 0.85rem;
    color: var(--wpft-accent-2);
    font-weight: normal;
    margin-left: 6px;
}
.wpft-popup__nature {
    background: #fcfbf6;
    border-left: 3px solid var(--wpft-accent-2);
    padding: 6px 10px;
    margin: 0 0 12px;
    font-size: 0.85rem;
    color: #666;
}
.wpft-popup__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0 0 12px;
}
.wpft-chip {
    background: #fff;
    border: 1px solid var(--wpft-line);
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 0.75rem;
    color: #555;
}
.wpft-popup__h3 {
    font-size: 0.85rem;
    color: var(--wpft-accent);
    margin: 14px 0 4px;
    padding-bottom: 2px;
    border-bottom: 1px solid var(--wpft-line);
}
.wpft-popup__sheet p {
    margin: 0 0 8px;
    font-size: 0.9rem;
}
.wpft-popup__ul {
    margin: 0 0 8px;
    padding-left: 1.2em;
    font-size: 0.9rem;
}
.wpft-popup__ul li {
    margin-bottom: 3px;
}

/* タップ可能要素にホバー（PCで触ったときに反応） */
@media (hover: hover) {
    .wpft-term:hover {
        background: rgba(26, 26, 46, 0.08);
    }
}

/* 大運リスト */
.wpft-daiun {
    background: var(--wpft-card);
    border: 1px solid var(--wpft-line);
    border-radius: var(--wpft-radius);
    padding: 12px;
    margin: 14px 0;
}
.wpft-daiun h2 {
    font-size: 1rem;
    margin: 0 0 8px;
    color: var(--wpft-accent);
}
.wpft-daiun ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}
.wpft-daiun li {
    padding: 6px;
    background: #f7f4ea;
    border-radius: 6px;
    font-size: 0.85rem;
    text-align: center;
}

/* 下部アクション */
.wpft-actions {
    position: sticky;
    bottom: 0;
    background: linear-gradient(to top, var(--wpft-bg) 80%, transparent);
    padding: 12px 0;
    margin-top: 24px;
    display: flex;
    gap: 8px;
    flex-direction: column;
}
.wpft-share {
    display: flex;
    gap: 6px;
}
.wpft-share button {
    flex: 1;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--wpft-line);
    border-radius: var(--wpft-radius);
    font-family: inherit;
    font-size: 0.9rem;
}

.wpft-loading {
    text-align: center;
    padding: 40px 20px;
    color: #888;
}
