/**
 * 未ログイントップ（/）に埋め込む「Watch+とは」ブロック用スタイル。
 *
 * マークアップは /watchplus/index.html のものをそのまま使うため、クラス名は
 * watchplus 側に合わせている。ただし配色・ボタン形状はログイン画面（_regist.css）
 * に揃えるため、/watchplus/index.css は読み込まずこのファイルで当て直している。
 *
 * すべて .p-wp スコープ配下に閉じること。素のクラス名（.card / .container など）を
 * グローバルに定義すると、トップページの既存スタイルと衝突する。
 */

.p-wp {
    /* ログイン画面（_regist.css / _base.css）のトークンに合わせる */
    --wp-accent: #039;
    --wp-accent-dark: #026;
    --wp-accent-bg: #edf2f9;
    --wp-accent-bg-light: #f5f8fc;
    --wp-heading: #222;
    --wp-text: #333;
    --wp-sub: #666;
    --wp-line: #e0e0e0;
    --wp-line-light: #eee;

    margin-top: 64px;
}

/* 埋め込み前・埋め込み失敗時に余白だけが残らないようにする */
.p-wp:empty {
    display: none;
    margin-top: 0;
}

/* ======================
   Card
====================== */
.p-wp .card {
    max-width: 900px;
    margin: 0 auto;
    padding: 42px 46px;
    background: #fff;
    border: 1px solid var(--wp-line);
    border-radius: var(--radius-card);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow-x: clip;
    color: var(--wp-text);
    line-height: 1.8;
}

/**
 * 編集部が未知のクラス名で要素を追加しても最低限読めるようにするベース。
 * :where() で詳細度を上げないようにし、以降の個別スタイル（ボタン色など）を
 * 上書きしないようにしている。必ずこのファイルの先頭側に置くこと。
 */
.p-wp .card :where(p) {
    margin: 0 0 16px;
    font-size: var(--font-size-base);
    line-height: 1.85;
}

.p-wp .card :where(ul, ol) {
    margin: 0 0 16px;
    padding-left: 1.4em;
}

.p-wp .card :where(a) {
    color: var(--wp-accent);
}

.p-wp .card :where(img) {
    max-width: 100%;
    height: auto;
}

.p-wp .card :where(table) {
    max-width: 100%;
}

/* ======================
   Header
====================== */
.p-wp .about-header {
    text-align: center;
    margin-bottom: 34px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--wp-line-light);
}

.p-wp .about-header::after {
    content: "";
    display: block;
    width: 46px;
    height: 3px;
    margin: 14px auto 0;
    background: var(--wp-accent);
    border-radius: 2px;
}

.p-wp .about-title {
    margin: 0;
    font-weight: 700;
    font-size: 2rem;
    letter-spacing: 0.05em;
    color: var(--wp-heading);
    line-height: 1.3;
}

.p-wp .title-main,
.p-wp .title-sub {
    font-size: inherit;
    color: inherit;
    font-weight: inherit;
}

.p-wp .title-sub {
    margin-left: 4px;
}

/* ======================
   Lead / Body text
====================== */
.p-wp .about-body p {
    margin-bottom: 18px;
}

.p-wp .about-body--center {
    text-align: left;
    word-break: keep-all;
    overflow-wrap: normal;
}

.p-wp .lead-title {
    margin: 0 0 18px;
    font-size: var(--font-size-xl);
    line-height: 1.5;
    color: var(--wp-heading);
    font-weight: 700;
}

.p-wp .about-intro {
    margin: 0 0 16px;
    font-size: 16px;
    line-height: 1.9;
    color: var(--wp-accent);
    font-weight: 500;
}

.p-wp .about-text {
    margin: 0;
    line-height: 1.9;
}

.p-wp .lead-title,
.p-wp .cta-box-lead,
.p-wp .about-intro,
.p-wp .about-text {
    text-wrap: pretty;
}

/* ======================
   Section Title
====================== */
.p-wp .section-title {
    font-size: var(--font-size-l);
    margin: 30px 0 14px;
    padding-left: 10px;
    color: var(--wp-heading);
    border-left: 4px solid var(--wp-accent);
}

.p-wp .section-title--center {
    text-align: center;
    padding-left: 0;
    border-left: none;
    margin: 36px 0 24px;
}

.p-wp .section-title--center::after {
    content: "";
    display: block;
    width: 42px;
    height: 3px;
    margin: 12px auto 0;
    background: var(--wp-accent);
    border-radius: 2px;
}

/* ======================
   Feature cards
====================== */
.p-wp .feature-list {
    list-style: none;
    padding: 0;
    margin: 18px 0 6px;
}

.p-wp .feature-list--cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.p-wp .feature-item--card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    padding: 24px 20px 20px;
    border: 1px solid var(--wp-line);
    border-radius: var(--radius-list);
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.p-wp .feature-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--wp-accent-bg);
    border-radius: 8px;
    color: var(--wp-accent);
}

.p-wp .feature-item--card .feature-icon {
    margin-bottom: 14px;
}

.p-wp .feature-icon svg {
    width: 20px;
    height: 20px;
}

.p-wp .feature-item--card .feature-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.p-wp .feature-title {
    font-weight: 700;
    color: var(--wp-heading);
}

.p-wp .feature-item--card .feature-title {
    display: block;
    margin-bottom: 10px;
    font-size: var(--font-size-l);
    line-height: 1.4;
}

.p-wp .feature-text p {
    margin: 0 0 10px;
    font-size: var(--font-size-s);
    line-height: 1.75;
    color: var(--wp-text);
    overflow-wrap: anywhere;
}

.p-wp .feature-item--card .feature-text a {
    color: var(--wp-accent);
    font-weight: 700;
    text-decoration: none;
}

.p-wp .feature-item--card .feature-text a:hover {
    text-decoration: underline;
}

.p-wp .feature-item--card img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-top: 12px;
    border: 1px solid var(--wp-line);
    border-radius: 8px;
    object-fit: contain;
    background: #fafbfc;
    box-sizing: border-box;
}

.p-wp .future-features-note {
    margin: 8px 0 0;
    font-size: var(--font-size-s);
    line-height: 1.75;
    color: var(--wp-sub);
    text-align: center;
}

/* ======================
   Plan table
====================== */
.p-wp .plan-table-wrap {
    width: 100%;
    margin: 18px 0 6px;
    overflow-x: auto;
}

.p-wp .plan-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: var(--font-size-base);
    line-height: 1.7;
    border-top: 1px solid var(--wp-line);
    table-layout: fixed;
}

.p-wp .plan-table thead th {
    padding: 14px 12px;
    border-bottom: 1px solid var(--wp-line);
    color: var(--wp-heading);
    font-weight: 700;
    text-align: center;
    background: #f7f8fa;
}

.p-wp .plan-table thead th:first-child {
    width: 50%;
    text-align: left;
}

.p-wp .plan-table thead th:nth-child(2),
.p-wp .plan-table thead th:nth-child(3) {
    width: 25%;
}

.p-wp .plan-table thead th:nth-child(2) {
    background: var(--wp-accent-bg);
}

.p-wp .plan-table thead th span {
    display: block;
}

.p-wp .plan-table thead th small {
    display: block;
    margin-top: 2px;
    font-size: var(--font-size-xxs);
    font-weight: 700;
    color: var(--wp-heading);
}

.p-wp .plan-table tbody td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--wp-line);
    vertical-align: middle;
    color: var(--wp-text);
}

.p-wp .plan-table tbody td:first-child {
    text-align: left;
}

.p-wp .plan-table tbody td:nth-child(2),
.p-wp .plan-table tbody td:nth-child(3) {
    text-align: center;
    font-size: var(--font-size-m);
    font-weight: 700;
    color: var(--wp-accent);
}

.p-wp .plan-table tbody td:nth-child(2) {
    background: var(--wp-accent-bg-light);
}

.p-wp .plan-table-note {
    margin: 10px 0 0;
    font-size: var(--font-size-xs);
    line-height: 1.6;
    color: var(--wp-sub);
}

.p-wp .plan-table sup {
    font-size: 11px;
    vertical-align: super;
}

/* ======================
   CTA
====================== */
.p-wp .cta-box {
    margin: 28px 0;
    padding: 24px 22px;
    background: var(--wp-accent-bg);
    border-radius: var(--radius-card);
    text-align: center;
}

.p-wp .cta-box--bottom {
    margin-bottom: 0;
}

.p-wp .cta-box p {
    margin: 0;
}

.p-wp .cta-box-lead {
    margin: 0 0 16px;
    font-size: var(--font-size-m);
    line-height: 1.55;
    color: var(--wp-heading);
    font-weight: 700;
    overflow-wrap: anywhere;
    word-break: normal;
}

.p-wp .cta-heading {
    margin: 0 0 10px;
    font-size: 17px;
    line-height: 1.6;
    color: var(--wp-heading);
}

.p-wp .cta-box strong {
    color: var(--wp-heading);
}

.p-wp .cta-desc {
    margin: 0;
    font-size: var(--font-size-s);
    line-height: 1.75;
    color: var(--wp-text);
    overflow-wrap: anywhere;
}

.p-wp .cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

/* ボタンはログイン画面の .c-regist-btn（ピル型 / 幅260px / #039）に合わせる */
.p-wp .btn-primary,
.p-wp .btn-secondary {
    display: inline-block;
    box-sizing: border-box;
    width: 260px;
    max-width: 100%;
    margin-top: 0;
    padding: 20px 0;
    border-radius: 35px;
    font-size: var(--font-size-m);
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: background 0.2s, color 0.2s;
}

.p-wp .btn-primary {
    background: var(--wp-accent);
    color: #fff;
    border: none;
}

.p-wp .btn-primary:hover {
    background: var(--wp-accent-dark);
}

.p-wp .btn-secondary {
    background: #fff;
    color: var(--wp-accent);
    border: 1px solid var(--wp-accent);
}

.p-wp .btn-secondary:hover {
    background: var(--wp-accent-bg);
}

.p-wp .btn-primary:focus-visible,
.p-wp .btn-secondary:focus-visible {
    outline: 3px solid rgba(0, 51, 153, 0.35);
    outline-offset: 3px;
}

.p-wp .watchplus-note {
    margin: 14px 0 0;
}

.p-wp .watchplus-note small {
    display: block;
    font-size: var(--font-size-xxs);
    line-height: 1.7;
    color: var(--wp-sub);
}

/* ======================
   Info box
====================== */
.p-wp .info-box {
    margin: 24px 0 0;
    padding: 20px 22px;
    border: 1px solid var(--wp-line);
    border-radius: var(--radius-card);
    background: var(--wp-accent-bg-light);
    min-width: 0;
    overflow-wrap: anywhere;
}

.p-wp .info-box-title {
    margin: 0 0 10px;
    font-size: var(--font-size-m);
    color: var(--wp-heading);
}

.p-wp .info-box p {
    margin: 0 0 10px;
    font-size: var(--font-size-base);
    line-height: 1.85;
    color: var(--wp-text);
    overflow-wrap: anywhere;
    word-break: normal;
}

.p-wp .info-box p:last-child {
    margin-bottom: 0;
}

.p-wp .info-box-links a {
    color: var(--wp-accent);
    font-weight: 700;
    text-decoration: none;
}

.p-wp .info-box-links a:hover {
    text-decoration: underline;
}

/* ======================
   Signup guide
====================== */
.p-wp .signup-guide {
    margin-top: 48px;
}

.p-wp .signup-guide-lead {
    max-width: 760px;
    margin: 0 auto 32px;
    text-align: center;
    word-break: keep-all;
    overflow-wrap: normal;
}

.p-wp .signup-guide-lead p {
    margin: 0;
    font-size: 16px;
    line-height: 1.9;
    color: var(--wp-text);
}

.p-wp .signup-guide-section + .signup-guide-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--wp-line);
}

.p-wp .signup-guide-title {
    margin: 0 0 14px;
    padding-left: 12px;
    border-left: 4px solid var(--wp-accent);
    font-size: var(--font-size-l);
    line-height: 1.5;
    color: var(--wp-heading);
    font-weight: 700;
}

.p-wp .signup-guide-images {
    display: flex;
    flex-direction: column;
    gap: 36px;
    margin-top: 8px;
}

.p-wp .signup-guide-figure {
    margin: 0;
}

.p-wp .signup-guide-figure img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border: 1px solid var(--wp-line);
    border-radius: 8px;
    background: #fafbfc;
}

.p-wp .signup-guide-figure figcaption {
    margin-top: 12px;
    font-size: var(--font-size-s);
    line-height: 1.7;
    color: var(--wp-sub);
    text-align: center;
}

.p-wp .signup-guide-desc {
    margin: 14px 0 0;
    font-size: var(--font-size-base);
    line-height: 1.9;
    color: var(--wp-text);
    text-align: left;
}

.p-wp .signup-guide-num {
    display: inline-block;
    margin: 0 1px;
    color: #fff;
    background: var(--color-accent);
    font-weight: 700;
    font-size: var(--font-size-s);
    line-height: 1;
    padding: 3px 7px;
    border-radius: 999px;
    vertical-align: middle;
}

.p-wp .signup-guide-ui {
    display: inline;
    padding: 1px 5px;
    border-radius: 3px;
    background: var(--wp-accent-bg-light);
    border: 1px solid var(--wp-line);
    color: var(--wp-heading);
    font-weight: 700;
}

.p-wp .signup-guide-ui--link {
    color: var(--wp-accent);
    background: var(--wp-accent-bg);
    border-color: #b9c9e2;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.p-wp .signup-guide-ui--link:hover {
    background: #e2eaf6;
    border-color: var(--wp-accent);
}

.p-wp .signup-guide-ui--link:focus-visible {
    outline: 3px solid rgba(0, 51, 153, 0.35);
    outline-offset: 2px;
}

/* ======================
   FAQ
====================== */
.p-wp .lp-faq {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--wp-line);
    min-width: 0;
}

.p-wp .faq-list {
    margin: 18px 0 4px;
    min-width: 0;
}

.p-wp .faq-item {
    padding: 18px 0;
    border-bottom: 1px solid var(--wp-line-light);
    min-width: 0;
}

.p-wp .faq-item:first-child {
    border-top: 1px solid var(--wp-line-light);
}

.p-wp .faq-question {
    margin: 0 0 6px;
    color: var(--wp-heading);
    font-weight: 700;
    overflow-wrap: anywhere;
    word-break: normal;
    line-height: 1.65;
}

.p-wp .faq-answer {
    margin: 0;
    font-size: var(--font-size-s);
    color: var(--wp-text);
    overflow-wrap: anywhere;
    word-break: normal;
    line-height: 1.85;
}

/* /faq/ 側の回答が複数ブロックの場合、.faq-answer は div で生成される */
.p-wp .faq-answer > :where(p, ul, ol) {
    margin: 0 0 8px;
}

.p-wp .faq-answer > :where(p, ul, ol):last-child {
    margin-bottom: 0;
}

.p-wp .faq-answer > :where(ul, ol) {
    padding-left: 1.4em;
}

.p-wp .faq-more {
    margin: 20px 0 0;
    text-align: center;
}

.p-wp .faq-more a {
    color: var(--wp-accent);
    font-weight: 700;
    text-decoration: none;
}

.p-wp .faq-more a:hover {
    text-decoration: underline;
}

/* ======================
   Responsive line breaks
====================== */
.p-wp br.only-pc {
    display: none;
}

.p-wp br.only-sp {
    display: inline;
}

@media (min-width: 641px) {
    .p-wp br.only-pc {
        display: inline;
    }

    .p-wp br.only-sp {
        display: none;
    }
}

/* ======================
   Responsive
====================== */
@media (max-width: 900px) {
    .p-wp .feature-list--cards {
        grid-template-columns: 1fr;
    }

    .p-wp .feature-item--card img {
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 640px) {
    .p-wp {
        margin-top: 40px;
    }

    .p-wp .card {
        padding: 26px 18px;
        border-left: none;
        border-right: none;
        border-radius: 0;
    }

    .p-wp .about-title {
        font-size: var(--font-size-xl);
    }

    .p-wp .lead-title {
        font-size: 19px;
        line-height: 1.65;
    }

    .p-wp .about-intro,
    .p-wp .about-text {
        font-size: var(--font-size-base);
        line-height: 1.85;
    }

    .p-wp .section-title--center {
        text-align: center;
    }

    .p-wp .cta-box {
        padding: 22px 18px;
    }

    .p-wp .cta-box-lead {
        font-size: 16px;
        line-height: 1.5;
        text-align: center;
    }

    .p-wp .cta-heading {
        font-size: 16px;
    }

    .p-wp .cta-desc {
        font-size: var(--font-size-xs);
    }

    .p-wp .cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    /* ログイン画面の .c-regist-btn と同じく、SPでは全幅 */
    .p-wp .btn-primary,
    .p-wp .btn-secondary {
        display: block;
        width: 100%;
        padding: 14px 0;
    }

    .p-wp .watchplus-note small {
        font-size: 11px;
    }

    .p-wp .info-box {
        padding: 18px 16px;
    }

    .p-wp .info-box p {
        font-size: var(--font-size-s);
        line-height: 1.85;
    }

    .p-wp .plan-table {
        font-size: var(--font-size-xs);
    }

    .p-wp .plan-table thead th,
    .p-wp .plan-table tbody td {
        padding: 10px 8px;
    }

    .p-wp .plan-table tbody td:nth-child(2),
    .p-wp .plan-table tbody td:nth-child(3) {
        font-size: 16px;
    }

    .p-wp .plan-table thead th small {
        font-size: 11px;
    }

    .p-wp .signup-guide {
        margin-top: 40px;
    }

    .p-wp .signup-guide-lead {
        margin-bottom: 28px;
    }

    .p-wp .signup-guide-lead p {
        font-size: var(--font-size-base);
    }

    .p-wp .signup-guide-section + .signup-guide-section {
        margin-top: 40px;
        padding-top: 28px;
    }

    .p-wp .signup-guide-title {
        font-size: var(--font-size-m);
    }

    .p-wp .signup-guide-images {
        gap: 28px;
    }

    .p-wp .lp-faq {
        margin-top: 40px;
        padding-top: 28px;
    }

    .p-wp .lp-faq .faq-question {
        font-size: var(--font-size-base);
    }

    .p-wp .lp-faq .faq-answer {
        font-size: var(--font-size-s);
    }
}
