/**
 * Unified Auth UI - LPページ用スタイル
 * Version: 1.0.6
 * chronote-LPのデザインを流用（px単位に変換済み）
 */

/* ==========================================================================
   基本設定
   ========================================================================== */

.lp-page-container {
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #333333;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.lp-page-container *,
.lp-page-container *::before,
.lp-page-container *::after {
    box-sizing: border-box;
}

/* ==========================================================================
   セクション
   ========================================================================== */

.lp-section {
    padding: 40px 20px 60px;
    max-width: 960px;
    margin: 0 auto;
}

.lp-section-inner {
    width: 100%;
}

/* ==========================================================================
   見出し（LPのabout2スタイルを流用）
   ========================================================================== */

.lp-heading {
    width: 100%;
    text-align: center;
    position: relative;
    margin-bottom: 50px;
    padding-bottom: 20px;
}

@media (max-width: 750px) {
    .lp-heading {
        margin-bottom: 30px;
        padding: 0 20px 15px;
    }
}

.lp-heading h2 {
    font-family: "Noto Serif JP", serif;
    font-weight: 700;
    color: #1a1a1a;
    display: inline-block;
    position: relative;
    padding-bottom: 10px;
    font-size: 24px;
    letter-spacing: 1.5px;
    margin: 0;
}

@media (max-width: 750px) {
    .lp-heading h2 {
        font-size: 18px;
        letter-spacing: 1px;
    }
}

.lp-heading h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: -1em;
    width: calc(100% + 2em);
    height: 1px;
    background: linear-gradient(90deg, #764ba2 0%, #667eea 100%);
}

.lp-heading h2::before {
    content: "";
    position: absolute;
    bottom: 2px;
    right: calc(-1em - 34px);
    width: 32px;
    height: 28px;
    background: url(images/pen.svg) no-repeat center/contain;
}

@media (max-width: 750px) {
    .lp-heading h2::before {
        width: 24px;
        height: 22px;
        right: calc(-1em - 28px);
        bottom: 4px;
    }
}

/* 旧スタイル（互換性用） */
.lp-title {
    font-family: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.4;
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    position: relative;
    padding-bottom: 20px;
}

.lp-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    border-radius: 2px;
}

/* ==========================================================================
   リード文
   ========================================================================== */

.lp-lead {
    text-align: justify;
    font-size: 18px;
    line-height: 2.5;
    color: #333;
    margin-bottom: 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 30px;
}

@media (max-width: 750px) {
    .lp-lead {
        font-size: 16px;
        padding: 0 30px;
        line-height: 2.2;
    }
}

/* セカンダリリード文 */
.lp-lead--secondary {
    margin-top: 165px;
    margin-bottom: 0;
}

/* セカンダリリード文の後の印刷・製本枠との間隔調整 */
.lp-lead--secondary + .lp-plan-container--single {
    padding-top: 85px;
}

/* ==========================================================================
   料金プランコンテナ
   ========================================================================== */

.lp-plan-container {
    width: 100%;
    display: flex;
    padding-top: 35px;
    padding-bottom: 40px;
}

@media (min-width: 751px) {
    .lp-plan-container {
        justify-content: space-between;
        gap: 15px;
    }
}

@media (max-width: 750px) {
    .lp-plan-container {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
}

/* 2カラムレイアウト（スタンダード・プレミアム用） */
.lp-plan-container--two-col {
    justify-content: center;
    gap: 30px;
    align-items: stretch;
}

.lp-plan-container--two-col .lp-plan-box {
    display: flex;
    flex-direction: column;
}

.lp-plan-container--two-col .lp-plan-list {
    flex: 1;
}

@media (min-width: 751px) {
    .lp-plan-container--two-col {
        padding-top: 85px;
    }

    .lp-plan-container--two-col .lp-plan-box {
        width: 45%;
        max-width: 380px;
    }
}

/* 1カラムレイアウト（印刷・製本用） */
.lp-plan-container--single {
    justify-content: center;
}

@media (min-width: 751px) {
    .lp-plan-container--single .lp-plan-box {
        width: 60%;
        max-width: 500px;
    }
}

/* ==========================================================================
   料金プランボックス
   ========================================================================== */

.lp-plan-box {
    position: relative;
    background-color: #ffffff;
    border: 1px solid #e5e0e8;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding-bottom: 25px;
}

@media (min-width: 751px) {
    .lp-plan-box {
        width: 32%;
        margin: 0;
    }
}

@media (max-width: 750px) {
    .lp-plan-box {
        width: 100%;
        margin: 0;
    }
}

/* プランヘッダー */
.lp-plan-header {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    border: none;
    color: #ffffff;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    height: 40px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(118, 75, 162, 0.3);
    white-space: nowrap;
    width: 180px;
    padding: 0 20px;
    font-size: 14px;
}

/* プランリスト */
.lp-plan-list {
    list-style: none;
    padding: 0;
    padding-left: 1em;
    text-indent: -1em;
    margin: 35px 20px 22px;
}

.lp-plan-list li {
    margin-bottom: 20px;
    line-height: 1.7;
    font-size: 16px;
}

.lp-plan-list li:last-child {
    margin-bottom: 0;
}

/* 注釈付きボックス */
.lp-plan-box--with-note .lp-plan-list {
    margin: 35px 20px 4px;
}

.lp-plan-note {
    margin: 0 20px 10px;
    font-size: 13px;
    color: #666;
    text-align: center;
}

/* 箇条書きのビュレット */
.lp-bullet {
    display: inline-block;
    font-size: 50%;
    margin-right: 0.4em;
    vertical-align: middle;
}

/* 箇条書き行（2行目以降インデント） */
.lp-bullet-line {
    display: block;
    padding-left: 0.7em;
    text-indent: -0.35em;
    line-height: 1.5;
    margin-bottom: 10px;
}

.lp-bullet-line:first-child {
    margin-top: 8px;
}

.lp-bullet-line:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   マーカー（pink-marker）
   ========================================================================== */

.lp-marker {
    display: inline-block;
    font-size: 95%;
    font-weight: 700;
    color: #764ba2;
    margin-top: 10px;
    margin-left: 1.4em;
    margin-bottom: 5px;
}

/* ==========================================================================
   ボタン
   ========================================================================== */

.lp-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 100px;
}

@media (max-width: 750px) {
    .lp-buttons {
        flex-direction: column;
        align-items: center;
    }
}

.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 200px;
}

.lp-btn-primary {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(118, 75, 162, 0.3);
}

.lp-btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(118, 75, 162, 0.4);
    color: #ffffff;
}

.lp-btn-secondary {
    background: #ffffff;
    color: #667eea;
    border: 2px solid #667eea;
}

.lp-btn-secondary:hover {
    background: #667eea;
    color: #ffffff;
}

@media (max-width: 750px) {
    .lp-btn {
        width: 100%;
        max-width: 300px;
    }
}

/* ==========================================================================
   機能紹介コンテナ（将来の使い方マニュアル用）
   ========================================================================== */

.lp-feature-container {
    width: 100%;
    display: flex;
    padding-top: 35px;
    padding-bottom: 40px;
}

@media (min-width: 751px) {
    .lp-feature-container {
        justify-content: space-between;
        gap: 15px;
    }
}

@media (max-width: 750px) {
    .lp-feature-container {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
}

.lp-feature-box {
    position: relative;
    background-color: #ffffff;
    border: 1px solid #e5e0e8;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

@media (min-width: 751px) {
    .lp-feature-box {
        width: 32%;
        margin: 0;
    }
}

@media (max-width: 750px) {
    .lp-feature-box {
        width: 100%;
        margin: 0;
    }
}

.lp-feature-header {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    border: none;
    color: #ffffff;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    height: 40px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(118, 75, 162, 0.3);
    white-space: nowrap;
    width: 180px;
    padding: 0 20px;
    font-size: 14px;
}

.lp-feature-list {
    list-style: none;
    padding: 0;
    padding-left: 1em;
    text-indent: -1em;
    margin: 35px 20px 22px;
}

.lp-feature-list li {
    margin-bottom: 20px;
    line-height: 1.7;
    font-size: 14px;
}

.lp-feature-list li:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   FAQ（アコーディオン）用
   ========================================================================== */

.lp-faq-container {
    max-width: 700px;
    margin: 0 auto;
}

.lp-faq-item {
    background: #ffffff;
    border: 1px solid #e5e0e8;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.lp-faq-question {
    padding: 18px 50px 18px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    position: relative;
    transition: background 0.3s ease;
}

.lp-faq-question:hover {
    background: #f9f9f9;
}

.lp-faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    font-weight: 400;
    color: #667eea;
}

.lp-faq-item.is-open .lp-faq-question::after {
    content: '−';
}

.lp-faq-answer {
    display: none;
    padding: 0 20px 20px;
    font-size: 14px;
    line-height: 1.8;
    color: #555;
}

.lp-faq-item.is-open .lp-faq-answer {
    display: block;
}

/* ==========================================================================
   レスポンシブ調整
   ========================================================================== */

@media (max-width: 750px) {
    .lp-section {
        padding: 30px 15px 50px;
    }

    .lp-title {
        font-size: 20px;
    }

    .lp-plan-header,
    .lp-feature-header {
        font-size: 13px;
        width: 160px;
    }
}

/* ==========================================================================
   SWELLテーマ対応
   ========================================================================== */

/* SWELLの固定ページでのコンテンツ幅調整 */
.post_content .lp-page-container {
    max-width: 100%;
}

/* SWELLのデフォルトスタイルをリセット */
.post_content .lp-plan-list,
.post_content .lp-feature-list {
    list-style: none;
    padding-left: 1em;
    text-indent: -1em;
}

.post_content .lp-plan-list li::before,
.post_content .lp-feature-list li::before {
    content: none;
}

/* SWELLのmargin/paddingリセット */
.post_content .lp-plan-list li,
.post_content .lp-feature-list li {
    padding-left: 0;
    margin-left: 0;
}

/* 枠内の最後の要素のマージン（料金プランボックスは除外） */
.post_content dd>:last-child,
.post_content>:last-child {
    margin-bottom: 20px !important;
}

/* 料金プランボックス内のリストはマージン統一 */
.lp-plan-box .lp-plan-list {
    margin-bottom: 22px !important;
}
