@charset "utf-8";

/* ==================== CSS変数 ==================== */
:root {
    --primary: #FF5A00;
    --bg-color: #FFF8F0;
    --text-main: #333333;
    --text-white: #FFFFFF;
    --border-radius: 16px;
    --shadow-soft: 0 4px 20px rgba(255, 90, 0, 0.15);
    --font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", Meiryo, sans-serif;
}

/* ==================== 基本スタイル ==================== */
body {
    margin: 0;
    padding: 0;
}

main {
    font-family: var(--font-family);
    font-size: 15px;
    background-color: var(--bg-color);
    background-image: radial-gradient(#FF5A00 1px, transparent 1px);
    background-size: 20px 20px;
    color: var(--text-main);
    line-height: 1.8;
}

a {
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    text-decoration: none;
    color: inherit;
}

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

.cp-orange {
    color: var(--primary);
    font-weight: bold;
}

/* ==================== レイアウト ==================== */
.cp-mybooks {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0 14px;
    box-sizing: border-box;
}

.cp-mybooks__background {
    width: 100%;
    overflow: hidden;
    padding-bottom: 60px;
}

/* ==================== KV画像 ==================== */
.cp-hero__kv {
    margin-bottom: 24px;
}

.cp-hero__kv img {
    max-width: 100%;
    height: auto;
}

/* ==================== セクション共通 ==================== */
.cp-introduction,
.cp-how-to,
.cp-awards,
.cp-period,
.cp-call-to-action,
.cp-share-campaign,
.cp-anniversary,
.cp-personality {
    max-width: 800px;
    width: 100%;
    background-color: var(--text-white);
    border-radius: var(--border-radius);
    padding: 24px 16px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-soft);
    border: 2px solid #FFF0E0;
    position: relative;
    overflow: hidden;
}

/* ==================== イントロダクション ==================== */
.cp-intro__title {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 24px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.cp-intro__title::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 12px auto 0;
    border-radius: 2px;
}

.cp-intro__text {
    font-size: 16px;
    margin-bottom: 32px;
}

.cp-intro__image {
    margin: 0 auto 32px;
    overflow: hidden;
}

.cp-intro__feature {
    background: linear-gradient(135deg, #FFF8F0 0%, #FFFFFF 100%);
    border-radius: var(--border-radius);
    padding: 24px;
    border-left: 6px solid var(--primary);
}

.cp-feature__title {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 12px;
}

.cp-feature__link {
    margin-bottom: 14px;
    margin-left: 5px;
}

.cp-feature__link a {
    color: #0048B4;
    font-weight: bold;
}

.cp-feature__link a:hover {
    border-bottom: 2px solid #0048B4;
}

/* ==================== 賞のセクション ==================== */
.cp-awards__intro {
    margin-bottom: 20px;
}

.cp-award__prize {
    text-align: center;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: bold;
}

.cp-sub-attention__text {
    font-size: 11px;
    color: #777777;
    line-height: 1.2rem;
    display: inline-block;
}

.cp-awards__criteria {
    margin-top: 32px;
}

.cp-sub__title {
    color: var(--primary);
    font-size: 18px;
    font-weight: bold;
    margin: 32px 0 12px;
}

.cp-criteria__text {
    font-size: 15px;
    line-height: 1.8;
}

.cp-criteria__highlight {
    color: var(--primary);
    font-weight: bold;
}

/* ==================== 期間詳細 ==================== */

.cp-period__notes {
    padding: 0;
    border-radius: 0;
    margin: 0;
}

.cp-notes__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cp-notes__list li {
    position: relative;
    padding-left: 1.2em;
    line-height: 1.8;
}

.cp-notes__list li::before {
    content: "・";
    position: absolute;
    left: 0;
    font-weight: bold;
}

.cp-notes__list li.cp-notes__indent {
    padding-left: 2.5em;
}

.cp-notes__list li.cp-notes__indent::before {
    content: "・";
    left: 1.2em;
}

.cp-period__items-sp {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cp-period__item-sp {
    padding: 16px;
}

.cp-period__item-sp:last-child {
    border-bottom: none;
}

.cp-period__item-title-sp {
    color: var(--primary);
    font-weight: bold;
    font-size: 13px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #FFF0E0;
}

.cp-period__item-content-sp {
    font-size: 12px;
    line-height: 1.6;
}

/* ==================== 結果発表ページ ==================== */
.cp-result {
    max-width: 800px;
    width: 100%;
    background-color: var(--text-white);
    border-radius: var(--border-radius);
    padding: 24px 16px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-soft);
    border: 2px solid #FFF0E0;
    position: relative;
    overflow: hidden;
}

.cp-result__thanks {
    text-align: center;
    margin-bottom: 24px;
}

.cp-result__thanks-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 16px;
}

.cp-result__thanks-text {
    font-size: 15px;
    line-height: 1.8;
    text-align: left;
}

/* ==================== 利用方法 ==================== */
.cp-how__step {
    display: flex;
    background: #FFFFFF;
    border: 2px solid #F0F0F0;
    border-radius: var(--border-radius);
    padding: 24px;
    align-items: center;
    flex-direction: column;
    text-align: left;
    transition: transform 0.3s;
}

.cp-step__number {
    width: 56px;
    height: 56px;
    background: var(--primary);
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    margin-right: 0;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.cp-step__content {
    width: 100%;
    text-align: left;
}

.cp-step__image {
    margin: 20px auto;
}

.cp-step-arrow {
    text-align: center;
    font-size: 32px;
    color: var(--primary);
    font-weight: bold;
}

.cp-how__complete {
    padding: 12px;
    border-radius: var(--border-radius);
    text-align: left;
    margin-top: 10px;
}

/* ==================== CTA ==================== */
.cp-cta__title {
    font-size: 17px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
}

/* ==================== コピー完了の吹き出し ==================== */
.copy-tooltip {
    position: absolute;
    bottom: 50px;
    left: 50%;
    background-color: #333333;
    color: #FFFFFF;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translateX(-50%) translateY(5px);
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

.copy-tooltip.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.copy-tooltip.fade-out {
    opacity: 0;
    transform: translateX(-50%) translateY(-5px);
}

.copy-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #333333;
}

/* ==================== ボタン ==================== */
.cp-btn-area {
    display: flex;
    flex-direction: column;
    text-align: center;
    width: 100%;
    gap: 12px;
}

.cp-btn--primary a {
    width: 200px;
    display: inline-block;
    background: var(--primary);
    color: #FFFFFF;
    font-weight: bold;
    font-size: 14px;
    padding: 16px 25px;
    border-radius: 100px;
    box-shadow: 0 4px 15px rgba(255, 90, 0, 0.3);
    border: 2px solid var(--primary);
}

.cp-btn--primary a:hover {
    transition-duration: .5s;
    text-decoration: none;
    background: #D44B00;
    border: 2px solid #D44B00;
}

.cp-btn--secondary a {
    width: 200px;
    display: inline-block;
    background: #FFFFFF;
    color: var(--primary);
    font-weight: bold;
    font-size: 14px;
    padding: 16px 25px;
    border-radius: 100px;
    box-shadow: 0 4px 15px rgba(255, 90, 0, 0.15);
    border: 2px solid var(--primary);
}

.cp-btn--secondary a:hover {
    transition-duration: .5s;
    text-decoration: none;
    background: #F5F5F5;
}

/* PC版：ボタンエリアは横並び */
@media screen and (min-width: 950px) {
    .cp-btn-area {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }
}

/* SP版：ボタンエリアは縦並び */
@media screen and (max-width: 949px) {
    .cp-btn-area {
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
}

.webview_attention {
    font-size: 11px;
    color: #333333;
    margin-top: 2px;
}

/* ==================== シェアボタン ==================== */
.cp-share__title {
    font-size: 17px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 24px;
}

.cp-share__list {
    display: flex;
    justify-content: center;
    gap: 20px;
    list-style: none;
    padding: 0;
}

.cp-share__button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}

.cp-share__button--x {
    background: #000000;
}

.cp-share__button--line {
    background: #06C755;
}

.cp-share__button--copy {
    background-color: #FFFFFF;
    border: 1px solid #333333;
}

.cp-share__button--copy:hover {
    background-color: #F5F5F5;
    transition: background-color 0.2s;
}

.cp-share__icon {
    fill: #FFFFFF;
    width: 28px;
    height: 28px;
}

/* ==================== 周年バナー ==================== */
.cp-anniversary__title {
    font-size: 17px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 24px;
}
.cp-anniversary__link {
    display: block;
}
.cp-anniversary__link img {
    width: 100%;
    height: auto;
    margin: auto;
}

/* ==================== PC表示（950px以上） ==================== */
@media screen and (min-width: 950px) {
    /* レイアウト調整 */
    .cp-result,
    .cp-share-campaign,
    .cp-introduction,
    .cp-how-to,
    .cp-awards,
    .cp-period,
    .cp-call-to-action {
        padding: 40px 32px;
    }

    .cp-hero__kv {
        display: flex;
        justify-content: center;
        margin: 0 auto 32px;
        width: 850px;
    }

    /* 参加方法 ステップ */
    .cp-how__step {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 20px;
        align-items: flex-start;
        text-align: left;
    }
    .cp-step__number {
        grid-column: 1;
        grid-row: 1;
        margin-right: 0;
        margin-bottom: 0;
    }
    .cp-step__content {
        grid-column: 2;
        grid-row: 1;
        text-align: left;
    }
    .cp-how__step .cp-btn-area {
        grid-column: 1 / 3;
        grid-row: 2;
        margin: 0;
    }

    /* ボタンエリア */
    .cp-btn-area {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }
}

/* ==================== パーソナリティの公開リスト ==================== */
.cp-personality__share-list {
    margin-top: 24px;
    text-align: left;
}

/* share-list-detail.css の上書き
   「回表示」の文言分だけ幅が足りず崩れるため、2カラム固定にする */
.cp-personality__share-list .reaction-info {
    grid-template-columns: 1fr 1fr !important;
}
