@charset "UTF-8";

/* =========================================================
   商品リンクβ (TIM) Front Styles
   - Scoped only inside .tim-scope (no theme collision)
   - Modern, clean, mobile-first card UI
   - Force-override theme h3 styles inside tim only
   ========================================================= */

.tim-scope {
    /* Typography (make body readable + modern) */
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI",
        "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: #222;
    font-size: 16.5px;
    /* ←本文は大きめ */
    line-height: 1.75;
    letter-spacing: 0.02em;
}

/* Reset common theme collisions ONLY inside tim */
.tim-scope :is(h1, h2, h3, h4, h5, h6) {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.tim-scope p {
    margin: 0;
}

.tim-scope a {
    color: inherit;
    text-decoration: none;
}

.tim-scope img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ---------------------------------------------------------
   Card
   --------------------------------------------------------- */
.tim-scope.tim-card {
    max-width: 820px;
    margin: 22px auto;
    padding: 16px;
    background: #fff;
    border: 1px solid rgba(20, 20, 20, 0.08);
    border-radius: 16px;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.06),
        0 1px 0 rgba(0, 0, 0, 0.03);
    box-sizing: border-box;
}

@media (min-width: 640px) {
    .tim-scope.tim-card {
        padding: 20px 22px;
        margin: 26px auto;
    }
}

/* ---------------------------------------------------------
   Layout
   --------------------------------------------------------- */
.tim-scope .tim-row {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

@media (min-width: 640px) {
    .tim-scope .tim-row {
        flex-direction: row;
        align-items: center;
        gap: 18px;
    }
}

.tim-scope .tim-image-area {
    width: 100%;
    flex: 0 0 auto;
}

@media (min-width: 640px) {
    .tim-scope .tim-image-area {
        width: 250px;
    }
}

.tim-scope .tim-info-area {
    flex: 1;
    min-width: 0;
    /* ←長文で崩れない */
}

/* ---------------------------------------------------------
   Image
   --------------------------------------------------------- */
.tim-scope .tim-image-area a {
    display: block;
    width: 100%;
}

.tim-scope .tim-image {
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    background: #f6f7f9;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
}

.tim-scope .tim-image .tim-image-img {
    display: block;
    max-width: 100%;
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 520px;
}

@media (min-width: 640px) {
    .tim-scope .tim-image .tim-image-img {
        max-height: 420px;
    }
}

.tim-scope .tim-source {
    margin-top: 8px;
    font-size: 10px;
    /* 注釈は小さめ */
    line-height: 1.4;
    color: rgba(0, 0, 0, 0.62);
    /* 薄すぎないグレー */
    text-align: right;
}

/* ---------------------------------------------------------
   Title (H2/H3/H4)
   - MUST beat theme: article section.content h3 {...}
   --------------------------------------------------------- */

/* ここが勝負：テーマの強いh3装飾をtim内だけ確実に潰す */
article section.content .tim-scope :is(h2, h3, h4).tim-title {
    border-left: 0 !important;
    /* 黄色バー消す */
    padding-left: 0 !important;
    margin-top: 0 !important;

    /* 今っぽい見出し：詰める＋少し小さめ */
    font-size: 17px !important;
    line-height: 1.35 !important;
    font-weight: 750 !important;
    letter-spacing: 0.01em !important;
    color: #111 !important;

    /* 余白のバランス */
    margin-bottom: 12px !important;
    padding-bottom: 10px !important;

    /* “線で整える”だけ（派手にしない） */
    border-bottom: 1px solid rgba(0, 0, 0, 0.10) !important;
}

/* ---------------------------------------------------------
   Price / Notes (make readable)
   --------------------------------------------------------- */
.tim-scope .tim-price {
    font-size: 1.02rem;
    /* 価格は読みやすく */
    font-weight: 650;
    letter-spacing: 0.01em;
    color: #111;
    margin-top: 2px;
}

.tim-scope .tim-note {
    margin-top: 15px;
    font-size: 12px;
    /* 注釈も“薄すぎない” */
    color: rgba(0, 0, 0, 0.70);
    line-height: 1.55;
}

/* 説明文があるなら（エピソード文など） */
.tim-scope .tim-desc {
    margin-top: 10px;
    font-size: 1.0rem;
    color: rgba(0, 0, 0, 0.86);
    line-height: 1.8;
}

/* ---------------------------------------------------------
   Buttons (keep design clean, NOT overdesigned)
   - Button text slightly smaller than body
   --------------------------------------------------------- */
.tim-scope .tim-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
    align-items: flex-end;
}

.tim-scope .tim-btns>* {
    flex: 0 0 calc((100% - 10px) / 2);
    min-width: 0;
}

@media (min-width: 640px) {
    .tim-scope .tim-btns>* {
        flex: 0 0 calc((100% - 20px) / 3);
    }
}

.tim-scope .tim-shop-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    /* Tap target */
    min-height: 40px;
    padding: 4px 8px;

    border-radius: 9px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.10);

    /* ボタン文字 */
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1;

    white-space: nowrap;
    overflow-wrap: anywhere;
    user-select: none;
    -webkit-tap-highlight-color: transparent;

    transition: transform 0.12s ease, filter 0.12s ease, box-shadow 0.12s ease;
}

/* Always white text (visited/hover included) */
.tim-scope .tim-shop-btn,
.tim-scope .tim-shop-btn:visited,
.tim-scope .tim-shop-btn:hover,
.tim-scope .tim-shop-btn:focus,
.tim-scope .tim-shop-btn:active {
    color: #fff !important;
    text-decoration: none !important;
}

/* Hover / active subtle (modern) */
.tim-scope .tim-shop-btn:hover {
    transform: translateY(-1px);
    filter: brightness(0.98);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

.tim-scope .tim-shop-btn:active {
    transform: translateY(0);
    filter: brightness(0.95);
}

/* Brand colors (fixed) */
.tim-scope .tim-shop-amazon {
    background: #111;
}

.tim-scope .tim-shop-rakuten {
    background: #bf0000;
}

.tim-scope .tim-shop-yahoo {
    background: #ff7a00;
}

.tim-scope .tim-shop-qoo10 {
    background: #1f6feb;
}

.tim-scope .tim-shop-official {
    background: #2ea44f;
}

.tim-scope .tim-shop-official:hover {
    filter: brightness(0.92);
}

.tim-scope .tim-shop-ease9 {
    background: linear-gradient(159deg, #f7d1dc, #f091a7, #f75d80);
}

/* ---------------------------------------------------------
   "Other persons" chips (optional)
   --------------------------------------------------------- */
.tim-scope .tim-persons {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.tim-scope .tim-persons-title {
    font-size: 11px;
    font-weight: 720;
    color: rgba(0, 0, 0, 0.82);
    margin-bottom: 10px;
}

.tim-scope .tim-person-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tim-scope .tim-person-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 5px 10px;

    background: rgb(243 190 97 / 15%);

    /* 本文より少し小さく、でも読める */
    font-size: 10px;
    font-weight: 650;
    color: rgb(68 62 62 / 78%);

    transition: background 0.12s ease, transform 0.12s ease;
}

.tim-scope .tim-person-link:hover {
    background: rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

/* Long text safety */
.tim-scope .tim-title,
.tim-scope .tim-note,
.tim-scope .tim-desc,
.tim-scope .tim-price {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Reduce motion friendly */
@media (prefers-reduced-motion: reduce) {

    .tim-scope .tim-shop-btn,
    .tim-scope .tim-person-link {
        transition: none;
    }
}

/* ---------------------------------------------------------
   Ease9 (Fragrance導線)
   --------------------------------------------------------- */
.tim-ease9-wrap {
    display: flex;
    flex-direction: column;
    position: relative;
}

.tim-ease9-note {
    font-size: 10px;
    line-height: 1.35;
    text-align: center;
    color: #d447a5;
    margin-bottom: 4px;
    white-space: nowrap;
    animation: ease9sparkle 2.5s cubic-bezier(1, -0.29, 0, 1.3) infinite;
}

@keyframes ease9sparkle {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.tim-ease9-impression {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}