/*
Theme Name: studio-tachimachi-child
Template: arkhe
Description: STUDIO Tachimachi専用子テーマ
Version: 1.0.0
*/

/* ここに独自のCSSを記述 */

/* ==============================
   レベルカテゴリーカード
   ============================== */
.my-level-cards {
    font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
    padding: 48px 0;
}
/* ==============================
   レベルカテゴリーカード 見出し
   ============================== */
.my-level-cards__heading {
    text-align: center;
    margin: 0 0 40px;
    font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
}

.my-level-cards__badge-pill {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: #1a6fa8;
    background: #e8f4fd;
    border-radius: 9999px;
    padding: 5px 14px;
    margin-bottom: 16px;
}

.my-level-cards__heading h2 {
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -0.03em;
    color: #1d1d1f;
    margin: 0 0 10px;
}

.my-level-cards__heading p {
    font-size: 15px;
    color: #6e6e73;
    margin: 0;
}

.my-level-cards__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.my-level-card {
    background: #ffffff;
    border: 0.5px solid #d2d2d7;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s;
}

.my-level-card:hover {
    transform: translateY(-3px);
}

.my-level-card__badge {
    padding: 28px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.my-level-card__label {
    font-size: 26px;
    font-weight: 500;
    letter-spacing: -0.03em;
    display: block;
}

.my-level-card__sub {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.06em;
    opacity: 0.7;
    display: block;
}

.my-level-card__body {
    padding: 0 20px 16px;
    flex: 1;
}

.my-level-card__desc {
    font-size: 13px;
    color: #6e6e73;
    line-height: 1.6;
    margin: 0 0 8px;
}

.my-level-card__count {
    font-size: 12px;
    color: #aeaeb2;
    margin: 0;
}

.my-level-card__footer {
    padding: 12px 20px;
    border-top: 0.5px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.my-level-card__footer-text {
    font-size: 13px;
    color: #1d1d1f;
    font-weight: 500;
}

.my-level-card__arrow {
    font-size: 16px;
    color: #aeaeb2;
}

@media (max-width: 699px) {
    .my-level-cards__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 399px) {
    .my-level-cards__grid {
        grid-template-columns: 1fr;
    }
}

/* ==============================
   個別メッセージ
   ============================== */
.my-user-message {
    background: #f5f5f7;
    border-radius: 16px;
    padding: 24px 28px;
    margin: 0 0 40px;
    font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
}

.my-user-message__name {
    font-size: 13px;
    font-weight: 500;
    color: #6e6e73;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}

.my-user-message__text {
    font-size: 16px;
    font-weight: 500;
    color: #1d1d1f;
    line-height: 1.6;
    margin: 0;
    letter-spacing: -0.02em;
}

/* ==============================
   記事カード カテゴリーバッジ
   ============================== */

/* 共通スタイル */
.p-postList__category [data-cat-id] {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.04em;
}

/* 公開記事 */
.p-postList__category [data-cat-id="1"] {
    background: #f1f1f1;
    color: #6e6e73;
}

/* 初級 */
.p-postList__category [data-cat-id="3"] {
    background: #e8f4fd;
    color: #1a6fa8;
}

/* 中級 */
.p-postList__category [data-cat-id="5"] {
    background: #e8f8f0;
    color: #1a7a4a;
}

/* 上級 */
.p-postList__category [data-cat-id="6"] {
    background: #f4edf8;
    color: #6b2fa0;
}

/* 応用 */
.p-postList__category [data-cat-id="7"] {
    background: #fff4e6;
    color: #a05a00;
}

/* ==============================
   ポータルページ共通
   ============================== */
.portal-hero,
.portal-2col,
.portal-section,
.portal-route,
.portal-latest,
.portal-cta {
    font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
}

/* ヒーロー */
.portal-hero {
    text-align: center;
    padding: 64px 24px 56px;
    border-bottom: 0.5px solid #e8e8e8;
    margin-bottom: 56px;
}

.portal-hero__label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: #1a6fa8;
    margin: 0 0 16px;
}

.portal-hero__title {
    font-size: 32px;
    font-weight: 500;
    letter-spacing: -0.03em;
    color: #1d1d1f;
    margin: 0 0 12px;
    line-height: 1.3;
}

.portal-hero__sub {
    font-size: 15px;
    color: #6e6e73;
    margin: 0 0 36px;
    line-height: 1.6;
}

.portal-hero__btns {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ボタン共通 */
.portal-btn {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 9999px;
    text-decoration: none;
    letter-spacing: -0.01em;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.portal-btn.-primary {
    background: #1d1d1f;
    color: #ffffff !important;
    border: 0.5px solid #1d1d1f;
}

.portal-btn.-primary:hover {
    background: #3a3a3c;
    border-color: #3a3a3c;
}

.portal-btn.-outline {
    background: transparent;
    color: #1d1d1f !important;
    border: 0.5px solid #d2d2d7;
}

.portal-btn.-outline:hover {
    background: #f5f5f7;
}

.portal-btn.-ghost {
    background: transparent;
    color: #6e6e73 !important;
    border: 0.5px solid #e8e8e8;
}

.portal-btn.-ghost:hover {
    background: #f5f5f7;
}

/* 2カラム */
.portal-2col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 48px;
}

/* カード */
.portal-card {
    background: #ffffff;
    border: 0.5px solid #d2d2d7;
    border-radius: 16px;
    padding: 28px;
}

.portal-card__title {
    font-size: 17px;
    font-weight: 500;
    color: #1d1d1f;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
}

.portal-card__list {
    font-size: 14px;
    color: #3a3a3c;
    line-height: 1.8;
    padding-left: 20px;
    margin: 0 0 20px;
}

.portal-card__list.-ordered {
    list-style: decimal;
}

.portal-card__btns {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
}

/* セクション共通 */
.portal-section {
    margin-bottom: 56px;
}

.portal-section__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 24px;
}

.portal-section__title {
    font-size: 22px;
    font-weight: 500;
    color: #1d1d1f;
    letter-spacing: -0.03em;
    margin: 0;
}

.portal-section__more {
    font-size: 13px;
    color: #1a6fa8;
    text-decoration: none;
}

.portal-section__more:hover {
    text-decoration: underline;
}

/* 学習ルート */
.portal-route {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.portal-route__step {
    flex: 1;
    min-width: 120px;
    text-align: center;
}

.portal-route__badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 20px;
    border-radius: 12px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 8px;
}

.portal-route__level {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.portal-route__en {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.06em;
    opacity: 0.7;
    margin-top: 2px;
}

.portal-route__desc {
    font-size: 12px;
    color: #6e6e73;
    margin: 0;
    text-align: center;
}

.portal-route__arrow {
    font-size: 24px;
    color: #d2d2d7;
    flex-shrink: 0;
}

.portal-route__note {
    font-size: 13px;
    color: #6e6e73;
    text-align: center;
    margin: 0;
    padding: 16px;
    background: #f5f5f7;
    border-radius: 10px;
}

/* 新着コンテンツ */
.portal-latest {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 0.5px solid #e8e8e8;
}

.portal-latest__item {
    border-bottom: 0.5px solid #e8e8e8;
}

.portal-latest__link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 4px;
    text-decoration: none;
    transition: background 0.15s;
}

.portal-latest__link:hover {
    background: #f5f5f7;
}

.portal-latest__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.portal-latest__date {
    font-size: 12px;
    color: #aeaeb2;
    white-space: nowrap;
}

.portal-latest__cat {
    font-size: 11px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 9999px;
    white-space: nowrap;
}

.portal-latest__title {
    font-size: 14px;
    font-weight: 500;
    color: #1d1d1f;
    margin: 0;
    line-height: 1.5;
}

/* FAQ */
.portal-faq__list {
    font-size: 14px;
    color: #3a3a3c;
    line-height: 1.7;
}

.portal-faq__list dt {
    font-weight: 500;
    color: #1d1d1f;
    margin-top: 16px;
}

.portal-faq__list dt:first-child {
    margin-top: 0;
}

.portal-faq__list dd {
    margin: 4px 0 0 0;
    color: #6e6e73;
}

/* フッターCTA */
.portal-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 48px 0;
    border-top: 0.5px solid #e8e8e8;
    margin-top: 56px;
}

/* SP対応 */
@media (max-width: 599px) {
    .portal-hero__title {
        font-size: 24px;
    }

    .portal-2col {
        grid-template-columns: 1fr;
    }

    .portal-route {
        gap: 4px;
    }

    .portal-route__arrow {
        font-size: 16px;
    }

    .portal-latest__link {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .portal-cta {
        flex-direction: column;
        align-items: center;
    }
}

/* 販売条件ボックス */
.cf7-pricing {
    background: #f5f5f7;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 40px;
}

.cf7-pricing__label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: #1a6fa8;
    margin: 0 0 12px;
}

.cf7-pricing__price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 20px;
}

.cf7-pricing__amount {
    font-size: 36px;
    font-weight: 500;
    color: #1d1d1f;
    letter-spacing: -0.03em;
}

.cf7-pricing__tax {
    font-size: 13px;
    color: #6e6e73;
}

.cf7-pricing__features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    border-top: 0.5px solid #d2d2d7;
    padding-top: 20px;
}

.cf7-pricing__features li {
    font-size: 14px;
    color: #3a3a3c;
    line-height: 1.7;
    padding-left: 18px;
    position: relative;
}

.cf7-pricing__features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #1a7a4a;
    font-size: 12px;
    font-weight: 500;
}

.cf7-pricing__note {
    font-size: 12px;
    color: #6e6e73;
    line-height: 1.7;
    margin: 0;
    padding: 12px 16px;
    background: #ffffff;
    border-radius: 10px;
}

/* ==============================
   Contact Form 7 フォーム本体
   ============================== */
.cf7-form {
    font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
    max-width: 600px;
    margin: 0 auto;
}

.cf7-field {
    margin-bottom: 24px;
}

.cf7-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #1d1d1f;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.cf7-required {
    color: #e34234;
    margin-left: 4px;
}

.cf7-form .wpcf7-form-control.wpcf7-text,
.cf7-form .wpcf7-form-control.wpcf7-email,
.cf7-form .wpcf7-form-control.wpcf7-select,
.cf7-form .wpcf7-form-control.wpcf7-textarea {
    width: 100% !important;
    background: #f5f5f7 !important;
    border: none !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    font-size: 15px !important;
    color: #1d1d1f !important;
    padding: 12px 16px !important;
    box-sizing: border-box !important;
    transition: background 0.15s !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.cf7-form .wpcf7-form-control.wpcf7-text:focus,
.cf7-form .wpcf7-form-control.wpcf7-email:focus,
.cf7-form .wpcf7-form-control.wpcf7-select:focus,
.cf7-form .wpcf7-form-control.wpcf7-textarea:focus {
    background: #ebebeb !important;
    outline: none !important;
    box-shadow: none !important;
}

.cf7-form .wpcf7-form-control.wpcf7-select {
    cursor: pointer !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23aeaeb2' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    padding-right: 40px !important;
}

.cf7-form .wpcf7-form-control.wpcf7-textarea {
    min-height: 160px !important;
    resize: vertical !important;
    line-height: 1.7 !important;
}

.cf7-acceptance {
    margin-bottom: 28px;
}

.cf7-acceptance .wpcf7-acceptance {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #3a3a3c;
    cursor: pointer;
}

.cf7-submit .wpcf7-submit {
    display: block !important;
    width: 100% !important;
    background: #1d1d1f !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    padding: 16px 0 !important;
    border: none !important;
    border-radius: 9999px !important;
    cursor: pointer !important;
    letter-spacing: -0.01em !important;
    transition: background 0.15s !important;
}

.cf7-submit .wpcf7-submit:hover {
    background: #3a3a3c !important;
}

.cf7-form .wpcf7-not-valid-tip {
    font-size: 12px !important;
    color: #e34234 !important;
    margin-top: 6px !important;
    display: block !important;
}

.cf7-form .wpcf7-form-control.wpcf7-not-valid {
    background: #fff2f2 !important;
}

.cf7-form .wpcf7-response-output {
    font-size: 13px !important;
    border-radius: 10px !important;
    border: none !important;
    padding: 12px 16px !important;
    margin-top: 16px !important;
}

.cf7-form .wpcf7-mail-sent-ok {
    background: #e8f8f0 !important;
    color: #1a7a4a !important;
}

.cf7-form .wpcf7-mail-sent-ng,
.cf7-form .wpcf7-aborted {
    background: #fff2f2 !important;
    color: #e34234 !important;
}

@media (max-width: 599px) {
    .cf7-form .wpcf7-form-control.wpcf7-text,
    .cf7-form .wpcf7-form-control.wpcf7-email,
    .cf7-form .wpcf7-form-control.wpcf7-select,
    .cf7-form .wpcf7-form-control.wpcf7-textarea {
        font-size: 16px !important;
    }
}

/* ==============================
   CF7 送信後メッセージ
   ============================== */

/* 共通 */
.wpcf7 .wpcf7-response-output {
    font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 20px 24px !important;
    margin: 24px 0 0 !important;
    text-align: center !important;
}

/* 送信完了 */
.wpcf7 .wpcf7-mail-sent-ok {
    background: #e8f8f0 !important;
    color: #1a7a4a !important;
}

/* 送信エラー */
.wpcf7 .wpcf7-mail-sent-ng,
.wpcf7 .wpcf7-aborted {
    background: #fff2f2 !important;
    color: #e34234 !important;
}

/* 入力エラー */
.wpcf7 .wpcf7-validation-errors,
.wpcf7 .wpcf7-acceptance-missing {
    background: #fff4e6 !important;
    color: #a05a00 !important;
}

/* スパムエラー */
.wpcf7 .wpcf7-spam-blocked {
    background: #fff2f2 !important;
    color: #e34234 !important;
}