.tn-love-tool,
.tn-love-tools-list {
    --tn-love-bg: #fff8fb;
    --tn-love-surface: #ffffff;
    --tn-love-text: #2d2430;
    --tn-love-muted: #746a77;
    --tn-love-accent: #e84f87;
    --tn-love-accent-dark: #c93870;
    --tn-love-border: #f0dce5;
    --tn-love-soft: #fff0f6;
    --tn-love-shadow: 0 18px 45px rgba(71, 35, 55, 0.10);
    color: var(--tn-love-text);
    box-sizing: border-box;
}

.tn-love-tool *,
.tn-love-tools-list * {
    box-sizing: border-box;
}

.tn-love-tool {
    width: 100%;
    max-width: 720px;
    margin: 28px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
}

.tn-love-shell {
    position: relative;
    overflow: hidden;
    padding: clamp(26px, 5vw, 52px);
    border: 1px solid var(--tn-love-border);
    border-radius: 28px;
    background: linear-gradient(180deg, var(--tn-love-surface) 0%, var(--tn-love-bg) 100%);
    box-shadow: var(--tn-love-shadow);
}

.tn-love-shell::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    top: -90px;
    right: -65px;
    border-radius: 50%;
    background: rgba(232, 79, 135, 0.08);
    pointer-events: none;
}

.tn-love-brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 24px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: var(--tn-love-accent-dark);
}

.tn-love-eyebrow,
.tn-love-question-label {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--tn-love-soft);
    color: var(--tn-love-accent-dark);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.tn-love-title,
.tn-love-question,
.tn-love-result-name {
    margin: 18px 0 0;
    color: var(--tn-love-text);
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.tn-love-title {
    font-size: clamp(30px, 6vw, 48px);
}

.tn-love-question {
    margin-bottom: 24px;
    font-size: clamp(22px, 4.7vw, 31px);
}

.tn-love-result-name {
    font-size: clamp(30px, 6vw, 46px);
}

.tn-love-lead,
.tn-love-result-summary {
    margin: 18px 0 0;
    color: var(--tn-love-text);
    font-size: 16px;
    line-height: 1.9;
}

.tn-love-note,
.tn-love-disclaimer {
    margin: 18px 0 0;
    color: var(--tn-love-muted);
    font-size: 12px;
    line-height: 1.7;
}

/*
 * 見出しは画面切り替え時にスクリーンリーダー向けとして
 * JavaScriptから一時的にフォーカスします。テーマ側の汎用
 * フォーカス枠が見えてしまわないよう、見出しだけ非表示にします。
 * ボタン等のキーボードフォーカス表示は下のルールで維持します。
 */
.tn-love-tool [data-tn-focus]:focus,
.tn-love-tool [data-tn-focus]:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.tn-love-button {
    appearance: none;
    width: 100%;
    margin-top: 28px;
    padding: 16px 22px;
    border: 0;
    border-radius: 16px;
    background: var(--tn-love-accent);
    color: #ffffff;
    font: inherit;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.4;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(232, 79, 135, 0.22);
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.tn-love-button:hover,
.tn-love-button:focus-visible {
    background: var(--tn-love-accent-dark);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 13px 28px rgba(232, 79, 135, 0.28);
}

.tn-love-button:focus-visible,
.tn-love-option:focus-visible,
.tn-love-back:focus-visible {
    outline: 3px solid rgba(232, 79, 135, 0.28);
    outline-offset: 3px;
}

.tn-love-button--secondary {
    margin-top: 26px;
    border: 1px solid var(--tn-love-border);
    background: #ffffff;
    color: var(--tn-love-accent-dark);
    box-shadow: none;
}

.tn-love-button--secondary:hover,
.tn-love-button--secondary:focus-visible {
    background: var(--tn-love-soft);
    color: var(--tn-love-accent-dark);
    box-shadow: none;
}

.tn-love-button--small {
    display: inline-block;
    width: auto;
    margin-top: 18px;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 14px;
}

.tn-love-progress {
    margin-bottom: 26px;
}

.tn-love-progress__meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    color: var(--tn-love-muted);
    font-size: 13px;
    font-weight: 700;
}

.tn-love-progress__track {
    width: 100%;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #f2e8ed;
}

.tn-love-progress__bar {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ee77a2 0%, var(--tn-love-accent) 100%);
    transition: width 0.24s ease;
}

.tn-love-options {
    display: grid;
    gap: 12px;
}

.tn-love-option {
    appearance: none;
    width: 100%;
    padding: 16px 17px;
    border: 1px solid var(--tn-love-border);
    border-radius: 16px;
    background: #ffffff;
    color: var(--tn-love-text);
    font: inherit;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.65;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.16s ease, transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.tn-love-option:hover {
    border-color: #e99ab7;
    background: #fffafd;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(71, 35, 55, 0.07);
}

.tn-love-back {
    appearance: none;
    margin-top: 20px;
    padding: 8px 0;
    border: 0;
    background: transparent;
    color: var(--tn-love-muted);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.tn-love-back:hover {
    color: var(--tn-love-accent-dark);
}

.tn-love-shell--analyzing {
    display: flex;
    min-height: 360px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.tn-love-analyzing-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.tn-love-analyzing-heart {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 50%;
    background: var(--tn-love-soft);
    color: var(--tn-love-accent);
    font-size: 27px;
    line-height: 1;
    animation: tn-love-heart-pulse 0.82s ease-in-out infinite alternate;
}

.tn-love-analyzing-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 10px;
}

.tn-love-analyzing-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--tn-love-accent);
    opacity: 0.28;
    animation: tn-love-dot-pulse 0.9s ease-in-out infinite;
}

.tn-love-analyzing-dot:nth-child(2) {
    animation-delay: 0.15s;
}

.tn-love-analyzing-dot:nth-child(3) {
    animation-delay: 0.3s;
}

.tn-love-analyzing-title {
    margin: 0;
    color: var(--tn-love-text);
    font-size: clamp(25px, 5vw, 34px);
    line-height: 1.4;
}

.tn-love-analyzing-text {
    max-width: 420px;
    margin: 10px 0 0;
    color: var(--tn-love-muted);
    font-size: 14px;
    line-height: 1.8;
}

.tn-love-shell--reveal {
    animation: tn-love-result-reveal 0.34s ease-out both;
}

@keyframes tn-love-heart-pulse {
    from {
        transform: scale(0.94);
        opacity: 0.76;
    }
    to {
        transform: scale(1.06);
        opacity: 1;
    }
}

@keyframes tn-love-dot-pulse {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.28;
    }
    30% {
        transform: translateY(-4px);
        opacity: 1;
    }
}

@keyframes tn-love-result-reveal {
    from {
        transform: translateY(8px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.tn-love-result-catch {
    margin: 14px 0 0;
    color: var(--tn-love-accent-dark);
    font-size: clamp(17px, 3.8vw, 21px);
    font-weight: 800;
    line-height: 1.6;
}

.tn-love-secondary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-top: 22px;
    padding: 13px 15px;
    border: 1px dashed #e6b2c6;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
}

.tn-love-secondary__label {
    color: var(--tn-love-muted);
    font-size: 12px;
    font-weight: 700;
}

.tn-love-secondary__name {
    color: var(--tn-love-accent-dark);
    font-size: 14px;
}

.tn-love-result-block {
    margin-top: 16px;
    padding: 18px;
    border: 1px solid var(--tn-love-border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
}

.tn-love-result-block__title {
    margin: 0;
    color: var(--tn-love-text);
    font-size: 15px;
    line-height: 1.4;
}

.tn-love-result-block__text {
    margin: 8px 0 0;
    color: #554b58;
    font-size: 14px;
    line-height: 1.8;
}

.tn-love-result-block--advice {
    background: var(--tn-love-soft);
}

.tn-love-tools-error {
    padding: 14px;
    border: 1px solid #e5c4c4;
    border-radius: 10px;
    background: #fff5f5;
    color: #702c2c;
}

.tn-love-tools-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.tn-love-tool-card {
    padding: 24px;
    border: 1px solid var(--tn-love-border);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(71, 35, 55, 0.07);
}

.tn-love-tool-card__eyebrow {
    color: var(--tn-love-accent-dark);
    font-size: 12px;
    font-weight: 800;
}

.tn-love-tool-card__title {
    margin: 8px 0 0;
    font-size: 21px;
}

.tn-love-tool-card__description {
    margin: 10px 0 0;
    color: var(--tn-love-muted);
    font-size: 14px;
    line-height: 1.75;
}

.tn-love-tool-card__note {
    display: block;
    margin-top: 14px;
    color: var(--tn-love-muted);
    font-size: 12px;
}

@media (max-width: 780px) {
    .tn-love-tools-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .tn-love-tool {
        margin: 18px auto;
    }

    .tn-love-shell {
        padding: 24px 18px 26px;
        border-radius: 22px;
    }

    .tn-love-option {
        padding: 15px;
        border-radius: 14px;
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tn-love-button,
    .tn-love-option,
    .tn-love-progress__bar {
        transition: none;
    }

    .tn-love-analyzing-heart,
    .tn-love-analyzing-dot,
    .tn-love-shell--reveal {
        animation: none;
    }
}

/* 数値型診断（脈あり度など）の共通結果UI */
.tn-love-range-score {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-top: 18px;
    color: var(--tn-love-accent-dark);
}

.tn-love-range-score__number {
    margin: 0;
    color: inherit;
    font-size: clamp(58px, 13vw, 92px);
    font-weight: 850;
    line-height: 1;
    letter-spacing: -0.055em;
}

.tn-love-range-score__suffix {
    font-size: clamp(25px, 6vw, 38px);
    font-weight: 850;
    line-height: 1;
}

.tn-love-range-meter {
    width: 100%;
    height: 12px;
    margin-top: 18px;
    overflow: hidden;
    border-radius: 999px;
    background: #f2e8ed;
}

.tn-love-range-meter__bar {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #f29abb 0%, var(--tn-love-accent) 100%);
    transition: width 0.55s ease-out;
}

.tn-love-range-tier {
    margin: 18px 0 0;
    color: var(--tn-love-text);
    font-size: clamp(23px, 5vw, 32px);
    font-weight: 850;
    line-height: 1.45;
}

.tn-love-result-block--uncertain {
    border-style: dashed;
    background: #fffdf8;
}

@media (prefers-reduced-motion: reduce) {
    .tn-love-range-meter__bar {
        transition: none;
    }
}


/* TN LOVE トップページ */
.tn-love-home {
    --tn-home-text: #2f2430;
    --tn-home-muted: #746a77;
    --tn-home-accent: #e84f87;
    --tn-home-accent-dark: #bd3569;
    --tn-home-pink: #fff1f6;
    --tn-home-border: #f0dce5;
    width: min(1120px, 100%);
    margin: 0 auto;
    color: var(--tn-home-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
}

.tn-love-home *,
.tn-love-home *::before,
.tn-love-home *::after {
    box-sizing: border-box;
}


.tn-love-home-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin-top: 10px;
    padding: clamp(28px, 5vw, 58px);
    border: 1px solid var(--tn-home-border);
    border-radius: 34px;
    background: linear-gradient(135deg, #fff 0%, #fff8fb 48%, #fff1f6 100%);
    box-shadow: 0 22px 55px rgba(83, 42, 62, 0.09);
}

.tn-love-home-hero__glow {
    position: absolute;
    z-index: -1;
    border-radius: 999px;
    pointer-events: none;
}

.tn-love-home-hero__glow--one {
    width: 260px;
    height: 260px;
    top: -130px;
    right: -60px;
    background: rgba(232, 79, 135, 0.10);
}

.tn-love-home-hero__glow--two {
    width: 190px;
    height: 190px;
    bottom: -110px;
    left: 16%;
    background: rgba(242, 154, 187, 0.10);
}

body.home .wp-block-post-title {
    display: none;
}

.tn-love-home-hero__brand {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px 10px;
    margin-bottom: 22px;
    color: var(--tn-home-accent-dark);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .12em;
}

.tn-love-home-hero__brand-mark {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 10px;
    background: var(--tn-home-accent);
    color: #fff;
    font-size: 16px;
    letter-spacing: 0;
    box-shadow: 0 8px 18px rgba(232, 79, 135, .18);
}

.tn-love-home-hero__brand small {
    padding: 5px 9px;
    border: 1px solid #efd4df;
    border-radius: 999px;
    background: rgba(255,255,255,.75);
    color: #8d7180;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
}

.tn-love-home-hero__title {
    max-width: 850px;
    margin: 0;
    color: var(--tn-home-text);
    font-size: clamp(42px, 7.2vw, 82px);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -.055em;
}

.tn-love-home-hero__title span {
    position: relative;
    display: inline-block;
    color: var(--tn-home-accent-dark);
}

.tn-love-home-hero__title span::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: -.05em;
    bottom: .04em;
    left: -.02em;
    height: .18em;
    border-radius: 999px;
    background: rgba(232, 79, 135, .14);
    transform: rotate(-1deg);
}

.tn-love-home-hero__lead {
    max-width: 820px;
    margin: 25px 0 0;
    color: #4b3d49;
    font-size: clamp(17px, 2.2vw, 22px);
    line-height: 1.9;
}

.tn-love-home-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.tn-love-home-tags span {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    padding: 5px 12px;
    border: 1px solid #efd4df;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--tn-home-accent-dark);
    font-size: 12px;
    font-weight: 800;
}



.tn-love-home-section {
    padding: clamp(58px, 8vw, 94px) 0 0;
    scroll-margin-top: 40px;
}

.tn-love-home-section__heading {
    max-width: 720px;
    margin-bottom: 30px;
}

.tn-love-home-section__eyebrow {
    margin: 0 0 9px !important;
    color: var(--tn-home-accent-dark);
    font-size: 12px !important;
    font-weight: 850;
    letter-spacing: .15em;
}

.tn-love-home-section h2,
.tn-love-home-about h2 {
    margin: 0;
    color: var(--tn-home-text);
    font-size: clamp(28px, 4vw, 43px);
    line-height: 1.35;
    letter-spacing: -.025em;
}

.tn-love-home-section__heading > p:last-child {
    margin: 13px 0 0;
    color: var(--tn-home-muted);
    font-size: 15px;
    line-height: 1.8;
}

.tn-love-home-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.tn-love-home-card {
    display: flex;
    min-height: 390px;
    flex-direction: column;
    padding: 26px;
    border: 1px solid var(--tn-home-border);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(71, 35, 55, 0.07);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.tn-love-home-card:hover {
    transform: translateY(-3px);
    border-color: #eab5c9;
    box-shadow: 0 18px 40px rgba(71, 35, 55, 0.10);
}

.tn-love-home-card__top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tn-love-home-card__icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    background: var(--tn-home-pink);
    color: var(--tn-home-accent);
    font-size: 18px;
    font-weight: 900;
}

.tn-love-home-card__category {
    color: var(--tn-home-accent-dark);
    font-size: 12px;
    font-weight: 800;
}

.tn-love-home-card h3 {
    margin: 22px 0 0;
    color: var(--tn-home-text);
    font-size: clamp(21px, 2.2vw, 27px);
    line-height: 1.45;
}

.tn-love-home-card__catch {
    margin: 11px 0 0;
    color: var(--tn-home-accent-dark);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.65;
}

.tn-love-home-card__description {
    margin: 13px 0 0;
    color: var(--tn-home-muted);
    font-size: 14px;
    line-height: 1.8;
}

.tn-love-home-card__footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: auto;
    padding-top: 24px;
}

.tn-love-home-card__meta {
    color: #8a7e88;
    font-size: 11px;
    font-weight: 750;
}

.tn-love-home-card__button {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    margin-top: 11px;
    padding: 13px 16px;
    border-radius: 14px;
    background: var(--tn-home-accent);
    color: #fff !important;
    font-size: 13px;
    font-weight: 850;
    line-height: 1.5;
    text-align: center;
    text-decoration: none !important;
    transition: background .18s ease, transform .18s ease;
}

.tn-love-home-card__button:hover,
.tn-love-home-card__button:focus-visible {
    background: var(--tn-home-accent-dark);
    transform: translateY(-1px);
}

.tn-love-home-about {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
    gap: clamp(34px, 7vw, 78px);
    align-items: start;
    margin-top: clamp(68px, 9vw, 108px);
    padding: clamp(32px, 5vw, 54px);
    border-radius: 30px;
    background: #faf7f9;
}

.tn-love-home-about__copy > p:not(.tn-love-home-section__eyebrow) {
    margin: 16px 0 0;
    color: #625761;
    font-size: 14px;
    line-height: 1.9;
}

.tn-love-home-about__points {
    display: grid;
    gap: 12px;
}

.tn-love-home-about__points > div {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 2px 12px;
    padding: 16px 17px;
    border: 1px solid var(--tn-home-border);
    border-radius: 16px;
    background: rgba(255,255,255,.85);
}

.tn-love-home-about__points strong {
    grid-row: 1 / span 2;
    color: #d95383;
    font-size: 12px;
    letter-spacing: .06em;
}

.tn-love-home-about__points span {
    color: var(--tn-home-text);
    font-size: 14px;
    font-weight: 850;
}

.tn-love-home-about__points small {
    margin-top: 3px;
    color: var(--tn-home-muted);
    font-size: 11px;
    line-height: 1.6;
}

.tn-love-home-disclaimer {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 24px 0 0;
    padding: 17px 19px;
    border: 1px solid var(--tn-home-border);
    border-radius: 16px;
    background: #fff;
    color: #81757e;
}

.tn-love-home-disclaimer > span {
    flex: 0 0 auto;
    color: var(--tn-home-accent);
    line-height: 1.8;
}

.tn-love-home-disclaimer p {
    margin: 0;
    font-size: 11px;
    line-height: 1.8;
}

@media (max-width: 900px) {
    .tn-love-home-grid {
        grid-template-columns: 1fr;
    }

    .tn-love-home-card {
        min-height: 0;
    }

    .tn-love-home-about {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .tn-love-home-hero {
        padding: 27px 20px 29px;
        border-radius: 24px;
    }

    .tn-love-home-pc-only {
        display: none;
    }

    .tn-love-home-section {
        padding-top: 58px;
    }

    .tn-love-home-card {
        padding: 22px 20px;
        border-radius: 20px;
    }

    .tn-love-home-about {
        margin-top: 66px;
        padding: 28px 20px;
        border-radius: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tn-love-home-card,
    .tn-love-home-card__button {
        transition: none;
    }
}

@media (max-width: 560px) {
    .tn-love-home-hero__brand {
        margin-bottom: 18px;
    }

    .tn-love-home-hero__brand small {
        width: 100%;
        margin-left: 40px;
    }

    .tn-love-home-hero__title {
        font-size: clamp(38px, 13vw, 55px);
        line-height: 1.12;
    }
}
