/* ----------------------------------------------------- */
/* 基本設定 (スマホ画面幅を想定) */
/* ----------------------------------------------------- */
body {
    margin: 0;
    padding: 0;
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Arial, sans-serif;
    background-color: #fcfcfc; /* ページ背景 */
    display: flex;
    justify-content: center;
}

.stella-app-container {
    width: 100%;
    max-width: 450px; /* スマホの一般的な最大幅に限定 */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    min-height: 100vh;
}

/* 2. 画面幅が451px以上（PCやタブレット）の時だけ影を出す */
@media (min-width: 451px) {
    .stella-app-container {
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    }
}

* {
    box-sizing: border-box; /* 全要素に適用することをお勧めします */
}

body {
    overflow-x: hidden;
}

/* ----------------------------------------------------- */
/* 1. ヘッダー/アプリ名 */
/* ----------------------------------------------------- */
.app-header {
    text-align: center;
    padding: 15px 0 0;
}

.logo-text {
    font-size: 36px;
    font-weight: 900;
    margin: 0;
    /* stellaのロゴカラーグラデーションを再現 */
    background: linear-gradient(90deg, #ff6b81 0%, #ff8c7e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #ff6b81; /* fallback color */
}

/* ----------------------------------------------------- */
/* 2. メインビジュアルエリア */
/* ----------------------------------------------------- */
.main-visual-section {
    position: relative;
    width: 100%;
    height: 400px; /* 見た目の高さを設定 */
    
    /* 添付画像のようなバーの背景を再現 */
    background-image: url('path/to/background_bar_image.jpg'); 
    background-size: cover;
    background-position: center top;
    
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 20px;
    overflow: hidden;
}

.phone-mockup {
    position: relative;
    width: 60%; /* スマホ画面の幅 */
    max-width: 250px;
    border-radius: 40px; /* スマホの角を丸く */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    z-index: 10;
    /* 下部の丸い切り抜き部分を表現するために、疑似要素や別のdivが必要になるが、ここではシンプルに画像で代替 */
}

.live-screen-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 30px; /* ライブ画面の角を丸く */
}

/* ----------------------------------------------------- */
/* 3. コンテンツエリア */
/* ----------------------------------------------------- */
.content-section {
    padding: 20px;
    text-align: center;
    /* メインビジュアルの下部の白い波線（カーブ）を表現 */
    margin-top: -0px; /* 上のセクションに被せる */
    background-color: #fcfcfc;
    border-top-left-radius: 80px; /* 左上を丸く */
    border-top-right-radius: 80px; /* 右上を丸く */
    position: relative;
    z-index: 20;
    padding-top: 60px; /* 丸み部分を避けるためのパディング */
}

.main-catchphrase {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    line-height: 1.4;
    margin-bottom: 20px;
}

.usage-note {
    font-size: 14px;
    color: #888;
    margin-bottom: 30px;
}

/* --- チェックボックスエリア --- */
.agreement-check-area {
    text-align: left;
    margin: 0 auto 40px;
    max-width: 300px;
}

.check-item {
    font-size: 15px;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.check-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 3px;
    text-align: center;
    line-height: 18px;
    margin-right: 10px;
    font-weight: bold;
    color: white;
}

/* 審査通過済み (✓) のアイコン */
.check-item.passed .check-icon {
    background-color: #e6007e; /* ピンク色 */
    font-size: 12px;
}

/* 同意 (x) のカスタムチェックボックスのスタイル */
.check-item.agree .custom-checkbox {
    /* 実際のチェックボックスを非表示にし、代わりにラベルを使用 */
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid #ccc;
    border-radius: 3px;
    margin: 0 10px 0 0;
    position: relative;
    cursor: pointer;
    background-color: #f0f0f0;
}

/* チェックマーク (✗) の表現 */
.check-item.agree .custom-checkbox:checked::before {
    content: '✗'; /* チェックマークの代わりに✗を使用 */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #e6007e; /* ✗の色 */
    font-size: 16px;
    font-weight: bold;
}

.check-item.agree label {
    cursor: pointer;
}


/* --- 始めるボタン --- */
.start-button {
    /* ... 既存のボタンのスタイルをここに維持 ... */
    display: inline-block; /* aタグをブロック要素のように扱い、幅と高さを設定可能にする */
    text-align: center;
    text-decoration: none; /* リンクの下線を削除 */
    /* 以下は、以前のボタンのスタイルの例 */
    width: 100%;
    max-width: 300px;
    padding: 15px 0;
    font-size: 20px;
    font-weight: bold;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    background: linear-gradient(90deg, #ff6b81 0%, #ff8c7e 100%);
    box-shadow: 0 4px 10px rgba(255, 107, 129, 0.4);
    transition: opacity 0.3s;
}

/* チェックボックスエリア全体 */
.agreement-check-area {
    text-align: left;
    margin: 0 auto 40px;
    max-width: 360px;
}

.check-item {
    font-size: 15px;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start; /* アイコンとテキストの先頭を合わせる */
}

/* 1. 実際のチェックボックスを非表示にする */
.custom-checkbox {
    display: none;
}

/* 2. ラベルをチェックボックスのカスタムアイコンとして使用 */
.check-item label {
    position: relative;
    padding-left: 30px; /* アイコン分のスペースを空ける */
    cursor: pointer; /* ★ユーザーが操作できるようにカーソルをポインターにする★ */
}

/* --- 共通のアイコンボックスデザイン (✓や✗が入る箱) --- */
.check-item label::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    background-color: #f7f7f7; /* 未チェック時の背景色 */
}

/* ----------------------------------------------------- */
/* 3. 18歳以上の誓約 (✓マーク) */
/* ----------------------------------------------------- */

/* 選択状態 (.passed) の箱のデザイン (チェックされた時) */
.check-item.passed input[type="checkbox"]:checked + label::before {
    background-color: #ff6b81; /* ピンク色 */
    border-color: #ff6b81;
}

/* ✓マークの文字の挿入 (チェックされた時だけ表示) */
.check-item.passed input[type="checkbox"]:checked + label::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}


/* ----------------------------------------------------- */
/* 4. 同意チェック (✗マーク) */
/* ----------------------------------------------------- */

/* 選択状態 (.agree) の箱のデザイン (チェックされた時) */
/* ※この項目はデザイン上、チェックされても背景色はほぼ変わらない (薄いグレーのまま) */
.check-item.agree input[type="checkbox"]:checked + label::before {
    background-color: #ff6b81; /* ピンク色 */
    border-color: #ff6b81;
}

/* ✗マークの文字の挿入 (チェックされた時だけ表示) */
.check-item.agree input[type="checkbox"]:checked + label::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
/*
    content: '✗';
    position: absolute;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    color: #ff6b81;
    font-size: 16px;
    font-weight: bold;
*/
}

/* 利用規約・プライバシーポリシーのリンク部分 (変更なし) */
.link-text {
    color: #ff6b81;
    text-decoration: none;
    font-weight: normal;
}

/* ----------------------------------------------------- */
/* ログインコンテンツ */
/* ----------------------------------------------------- */
.stella-login-container {
    width: 100%;
    max-width: 450px; /* スマホの一般的な最大幅に限定 */
    min-height: 100vh;
    box-sizing: border-box; /* paddingがwidthに含まれるように設定 */
    padding: 0 20px; /* 左右の余白 */
}
/* 視覚的には隠すが、スクリーンリーダーで読み上げるためのクラス */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.login-main-content {
    text-align: center;
    padding-top: 50px;
}

.login-title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.login-subtitle {
    font-size: 16px;
    color: #888;
    margin-bottom: 40px;
}

/* --- フォームと入力欄 --- */
.login-form {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
}

.input-group {
    margin-bottom: 20px;
}

.login-form input[type="email"],
.login-form input[type="password"] {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.3s;
}

.login-form input:focus {
    border-color: #ff8c7e; /* フォーカス時にアクセントカラー */
}

/* --- ログインボタン --- */
.login-button {
    width: 100%;
    padding: 15px 0;
    margin-top: 10px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    /* トップ画面と同じグラデーションボタンを再現 */
    background: linear-gradient(90deg, #ff6b81 0%, #ff8c7e 100%);
    box-shadow: 0 4px 10px rgba(255, 107, 129, 0.4);
    transition: opacity 0.3s;
}

.login-button:hover {
    opacity: 0.9;
}


/* --- 新規登録リンク --- */
.register-area {
    margin-top: 30px;
}

.register-link {
    font-size: 16px;
    color: #ff6b81; /* アクセントカラー */
    text-decoration: none;
    font-weight: bold;
}

.container {
    width: 100%;
    max-width: 375px; /* スマホ想定幅 */
    padding: 40px 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between; /* コンテンツとフッターを離す */
    height: 100vh; /* 画面いっぱいに広げる */
}

.content {
    text-align: center;
    margin-top: 60px; /* 上部の余白 */
}

/* 見出しと説明文 */
h1 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.description {
    font-size: 14px;
    color: #777;
    line-height: 1.6;
    margin-bottom: 50px;
}

/* アイコンエリア */
.icon-circle {
    width: 160px;
    height: 160px;
    background-color: #f9f9f4; /* 淡いベージュの背景色 */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto; /* 中央揃え */
}

/* 変更点1: 封筒アイコンの色設定 */
.icon-circle i {
    font-size: 80px; /* アイコンサイズ */
    color: #ffb6c1; /* 淡いピンク色 (LightPink) に変更 */
}

/* フッターボタン */
footer {
    width: 100%;
    padding-bottom: 20px;
}

.top-return-button {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    /* 元の画像のボタン色（サーモンピンクのグラデーション）を再現 */
    background: linear-gradient(to right, #ff8c7e, #ff758c);
    box-shadow: 0 4px 15px rgba(255, 140, 126, 0.4); /* ふんわりした影 */
    transition: opacity 0.2s;
}

.top-return-button:hover {
    opacity: 0.9;
}

/* フッター全体の調整 */
.stella-footer {
    margin-top: 40px;      /* コンテンツとの間に十分な隙間を作る */
    padding: 30px 10px;    /* 上下の余白 */
    text-align: center;
    background-color: transparent; /* 背景に馴染ませる */
}

/* リンクテキストの並び */
.footer-links {
    display: flex;         /* 横並びにする */
    justify-content: center;
    flex-wrap: wrap;       /* 幅が狭い時に折り返す */
    gap: 10px;             /* リンク間の隙間 */
    margin-bottom: 15px;
}

.footer-links a {
    color: #888;           /* 控えめな色 */
    text-decoration: none;
    font-size: 11px;       /* アプリなので少し小さめが綺麗です */
}

/* 区切り線を疑似要素で追加（任意） */
.footer-links a:not(:last-child):after {
    content: "|";
    margin-left: 10px;
    color: #ddd;
}

/* コピーライト */
.copyright {
    color: #bbb;
    font-size: 10px;
    margin: 0;
}

/* containerに高さ制限がある場合の対策 */
.stella-app-container {
    height: auto;          /* 高さを固定せず、フッターまで伸びるようにする */
    min-height: 100vh;     /* 最低でも画面いっぱいの高さにする */
    display: flex;
    flex-direction: column;
}

.content-section {
    flex: 1;               /* コンテンツ部分を伸ばしてフッターを押し下げる */
}

/* 特商法セクションのスタイル */
.legal-section {
    padding: 30px 20px;
    background-color: #fcfcfc;
}

.legal-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-bottom: 30px;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.6;
    color: #444;
}

.legal-table th, 
.legal-table td {
    padding: 15px 10px;
    border-bottom: 1px solid #eee;
    text-align: left;
    vertical-align: top;
}

.legal-table th {
    width: 30%;
    background-color: #f9f9f9;
    font-weight: bold;
    color: #666;
    white-space: nowrap;
}

.legal-table td {
    width: 70%;
    background-color: #fff;
}

.legal-table ul {
    margin: 0;
    padding-left: 18px;
}

.legal-table small {
    display: block;
    color: #888;
    font-size: 12px;
    margin-top: 5px;
}

/* スマホ表示用の調整：表を縦並びにする */
@media (max-width: 480px) {
    .legal-table th, 
    .legal-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    
    .legal-table th {
        border-bottom: none;
        padding-bottom: 5px;
        background-color: transparent;
        color: #ff6b81; /* Stellaのアクセントカラー */
    }
    
    .legal-table td {
        padding-top: 0;
        margin-bottom: 10px;
    }
}

.legal-footer-nav {
    margin-top: 40px;
    text-align: center;
    padding-bottom: 20px;
}

.back-to-top {
    display: inline-block;
    color: #ff6b81; /* Stellaのメインカラー */
    text-decoration: none;
    font-size: 15px;
    font-weight: bold;
    position: relative;
    padding-bottom: 5px;
    transition: opacity 0.3s;
}

/* 下線のアニメーション（任意） */
.back-to-top::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background-color: #ff6b81;
    transform: scaleX(0.8);
    transition: transform 0.3s;
}

.back-to-top:hover {
    opacity: 0.7;
}

.back-to-top:hover::after {
    transform: scaleX(1);
}

/* 利用規約全体のコンテナ */
.terms-container {
    padding: 40px 24px;
    background-color: #ffffff;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", sans-serif;
    color: #333;
    line-height: 1.7;
}

.terms-main-title {
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 8px;
}

.terms-date {
    font-size: 12px;
    color: #999;
    text-align: center;
    margin-bottom: 40px;
}

/* 各セクションの装飾 */
.terms-block {
    margin-bottom: 32px;
}

.terms-block h2 {
    font-size: 16px;
    font-weight: bold;
    color: #ff6b81; /* Stellaカラー */
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.terms-block h2::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 18px;
    background-color: #ff6b81;
    margin-right: 10px;
    border-radius: 2px;
}

.terms-block p {
    font-size: 14px;
    margin-bottom: 10px;
}

.terms-block ul {
    margin: 0;
    padding-left: 20px;
}

.terms-block ul li {
    font-size: 14px;
    margin-bottom: 8px;
    list-style-type: disc;
}

/* 戻るボタンエリア */
.terms-footer-action {
    margin-top: 50px;
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.btn-back {
    color: #ff6b81;
    text-decoration: none;
    font-size: 15px;
    font-weight: bold;
    transition: opacity 0.2s;
}

.btn-back:hover {
    opacity: 0.6;
}

/* プライバシーポリシー全体のスタイル */
.policy-container {
    padding: 40px 24px;
    background-color: #ffffff;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", sans-serif;
    color: #444;
    line-height: 1.8;
}

.policy-main-title {
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    color: #333;
    margin-bottom: 15px;
}

.policy-intro {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-bottom: 40px;
}

.policy-block {
    margin-bottom: 35px;
}

.policy-block h2 {
    font-size: 17px;
    font-weight: bold;
    color: #ff6b81; /* Stellaカラー */
    margin-bottom: 12px;
    border-bottom: 2px solid #fff0f2;
    padding-bottom: 5px;
}

.policy-block p {
    font-size: 14px;
    margin-bottom: 10px;
}

.policy-block ul {
    margin: 0;
    padding-left: 20px;
}

.policy-block ul li {
    font-size: 14px;
    margin-bottom: 8px;
    list-style-type: square;
}

.policy-block strong {
    color: #333;
}

.policy-footer {
    margin-top: 50px;
    text-align: center;
    border-top: 1px dotted #ccc;
    padding-top: 25px;
}

.policy-footer p {
    font-size: 12px;
    color: #999;
    margin-bottom: 15px;
}

.btn-back {
    color: #ff6b81;
    text-decoration: none;
    font-size: 15px;
    font-weight: bold;
}

