@charset "UTF-8";

/* ==========================================================
   POST / 投稿・お便り・ランキング関連スタイル
   ========================================================== */

/* ----------------------------------------------------------
   共通：投稿フォーム・お便り (From base.css)
   ---------------------------------------------------------- */
.post--status {
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 28px 30px 8px;
    margin: 2em 0 .5em;
}
.post--status dl dt {
    font-size: 0.8em;
    color: #969696;
    line-height: 1em;
    margin-bottom: 0.3em;
}
.post--status dl dd {
    min-height: 1em;
    margin-bottom: 16px;
}
.post--status--p {
    text-align: right;
}
.post--status dl dd a,
.post--status--p a {
    text-decoration: underline;
    font-size: .9em;
    opacity: .5;
}
.post--status dl dd a:hover,
.post--status--p a:hover {
    text-decoration: none;
}

@media(max-width:780px) {
    .post--status {
        border: 1px solid #ccc;
        border-radius: 6px;
        padding: 23px 20px 11px;
        margin: 2em 0 1em;
    }
}

/* 入力フォーム (dl.otayori) */
dl.otayori {}
dl.otayori dt { margin-top: 3em; }
dl.otayori dt p { display: inline; }
dl.otayori dt.must:after {
    content: '★';
    color: #c70000;
    display: inline;
    position: relative;
    top: -0.7em;
    font-size: 0.5em;
    left: -0.4em;
}
dl.otayori input[type="text"],
dl.otayori textarea {
    border: 0;
    width: 96%;
    padding: 1em 2%;
    font-size: 1rem;
    border-radius: 2px;
    outline: none;
    background: #f7f7f7;
    margin-top: 9px;
}
dl.otayori textarea {
    line-height: 1.6;
}

/* セレクトボックス (.cp_ipselect) */
.cp_ipselect {
    overflow: hidden;
    width: 100%;
}
.cp_ipselect select {
    color: #000;
    width: 100%;
    padding-right: 1em;
    cursor: pointer;
    text-indent: 0.01px;
    text-overflow: ellipsis;
    border: none;
    outline: none;
    background: transparent;
    background-image: none;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
}
.cp_ipselect select::-ms-expand { display: none; }
.cp_ipselect.cp_sl01 {
    position: relative;
    border: none;
    border-radius: 4px;
    background: none;
}
.cp_ipselect.cp_sl01 select {
    padding: 1em 2% 1.1em;
    font-size: 1rem;
    background: #f7f7f7;
}

/* 送信ボタン */
dl.otayori input[type="submit"] {
    background: #000;
    color: #fff;
    width: 20%;
    margin: 4em 0 0;
    display: block;
    padding: 1em;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: 3px;
    position: relative;
    border: none;
    -webkit-appearance: none;
}
dl.otayori input[type="submit"]:hover {
    position: relative;
    background: #4c4c4c;
}

/* Contact Form 7 Overrides */
.wpcf7-not-valid-tip { font-size: 1em !important; }
.wpcf7-list-item { margin: 0 !important; }
.wpcf7 form .wpcf7-response-output {
    margin-bottom: 5em !important;
    padding: 0 !important;
    border: 0 !important;
    background: none;
}
.wpcf7-spinner { margin: 0 !important; }

/* ----------------------------------------------------------
   Responsive (Form)
   ---------------------------------------------------------- */
@media(max-width:736px) {
    dl.otayori .left_area,
    dl.otayori .lr .right_area {
        width: 100%;
        float: none;
    }
    dl.otayori input[type="submit"] {
        width: 60%;
        margin: 4em auto 0;
    }
    dl.otayori.gold input[type="submit"] {
        width: inherit;
        margin: 2em 0;
        padding: .5em 2em;
        border-radius: 6px;
    }
}

/* ----------------------------------------------------------
   ナビゲーションタブ：共通スタイル
   ---------------------------------------------------------- */
/* コンテナ（ページごとに若干異なるpadding/alignに対応） */
.tnsb-outer-container { /* Ranking用 */
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 16px;
    text-align: left;
}
.tnsb-nav-container { /* Post用 */
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 16px 0;
}

/* タブ枠 */
.tnsb-nav-tabs {
    display: flex;
    position: relative;
    background: #eeeeee;
    border-radius: 50px;
    margin-bottom: 40px;
    overflow: hidden;
}
/* タブボタン */
.tnsb-nav-btn {
    flex: 1;
    text-align: center;
    padding: 12px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    z-index: 2;
    transition: color 0.4s ease;
    color: #888888 !important;
}
/* スライダー背景 */
.tnsb-tab-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: #000000;
    border-radius: 50px;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
/* アニメーション無効化 */
.tnsb-nav-tabs.no-anim .tnsb-tab-slider,
.tnsb-nav-tabs.no-anim .tnsb-nav-btn {
    transition: none !important;
}

/* ----------------------------------------------------------
   ナビゲーションタブ：ページ別挙動定義 (重要)
   ---------------------------------------------------------- */
/* === ランキングページ (.page-ranking) === */
/* 初期状態：左(POST)待機、activeで右(RANKING)へ */
.tnsb-nav-tabs.page-ranking .tnsb-tab-slider {
    transform: translateX(0);
}
.tnsb-nav-tabs.page-ranking.is-active .tnsb-tab-slider {
    transform: translateX(100%);
}
/* 文字色制御 */
.tnsb-nav-tabs.page-ranking.is-active .nav-ranking {
    color: #ffffff !important;
}
.tnsb-nav-tabs.page-ranking:not(.is-active) .nav-post {
    color: #ffffff !important;
}

/* === 投稿ページ (.page-post) === */
/* 初期状態：右(RANKING)待機、activeで左(POST)へ */
.tnsb-nav-tabs.page-post .tnsb-tab-slider {
    transform: translateX(100%);
}
.tnsb-nav-tabs.page-post.is-active .tnsb-tab-slider {
    transform: translateX(0);
}
/* 文字色制御 */
.tnsb-nav-tabs.page-post.is-active .nav-post {
    color: #ffffff !important;
}
.tnsb-nav-tabs.page-post:not(.is-active) .nav-ranking {
    color: #ffffff !important;
}

/* ----------------------------------------------------------
   ランキングページ専用要素
   ---------------------------------------------------------- */
.ranking-caution {
    padding: 16px 24px;
    font-size: .9em;
    background: #f1f1f1;
    border-radius: 8px;
    margin: 40px 0;
}
.ranking-caution li:before { content: '⚫︎'; }
.ranking-caution li a { text-decoration: underline; }
.ranking-caution li a:hover { text-decoration: none; }

/* ----------------------------------------------------------
   投稿ページ専用要素 (送信完了画面、ボタン位置等)
   ---------------------------------------------------------- */
.form-submit-wrap {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 15px;
    margin-top: 4em;
}
/* 強制上書きの統合 */
.form-submit-wrap dl.otayori input[type="submit"] { margin: 0 !important; }

/* 送信完了画面アニメーション */
#tnsb-post-content {
    transition: opacity 0.5s ease, transform 0.5s ease;
}
#tnsb-thanks-screen {
    display: none;
    opacity: 0;
    text-align: center;
    padding: 60px 20px;
    transition: opacity 0.8s ease;
}
.thanks-icon { display: block; filter: brightness(1.02); }
.thanks-title {
    font-size: 2.5em;
    font-weight: bold;
    letter-spacing: 0.1em;
    margin: 0px;
    color: #000;
}
.thanks-text {
    font-size: 1.1em;
    line-height: 1.8;
    color: #333;
}
@media(max-width:736px){
    #tnsb-thanks-screen { padding: 40px 20px; font-size: 0.9em; }
}

/* コーナー説明文 */
.corner-description-area {
    margin-top: 10px;
    font-size: 0.85em;
    color: #666;
    min-height: 1.5em;
    transition: opacity 0.3s ease;
}