/* ----------------------------------------------------- */
/* 基本設定 (スマホ画面幅を想定) */
/* ----------------------------------------------------- */
body {
    margin: 0;
    padding: 0;
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Arial, sans-serif;
    background-color: #fcfcfc; /* ページ背景 */
    display: flex;
    justify-content: center;
}

.loveny-app-container {
    width: 100%;
    max-width: 450px; /* スマホの一般的な最大幅に限定 */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    min-height: 100vh;
}

/* ----------------------------------------------------- */
/* 1. ヘッダー/アプリ名 */
/* ----------------------------------------------------- */
.app-header {
    text-align: center;
    padding: 15px 0 0;
}

.logo-text {
    font-size: 36px;
    font-weight: 900;
    margin: 0;
    /* Lovenyのロゴカラーグラデーションを再現 */
    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;
}

/* ----------------------------------------------------- */
/* ログインコンテンツ */
/* ----------------------------------------------------- */
.loveny-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;
}
