
/* ===========================
   全体
=========================== */
body {
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    padding: 0;
    background: #EAF6FF; /* 薄い水色背景 */
    color: #333;
}

.screen {
    text-align: center;
    padding: 32px 16px 80px; /* 下部ナビの分だけ余白 */
}

/* ===========================
   アイコン
=========================== */
.home-icon img {
    width: 140px;
    height: 200px;
}

/* ===========================
   タイトル
=========================== */
.screen h1 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.4;
}

/* ===========================
   説明文
=========================== */
.home-text {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 32px;
}

/* ===========================
   ボタン
=========================== */
.home-buttons {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 90%;
    margin: 0 auto;
}

.btn-primary,
.btn-secondary {
    display: block;
    padding: 14px;
    border-radius: 10px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
}

/* 青ボタン（乗車前に登録する） */
.btn-primary {
    background: #0078d4;
    color: white;
    border: 2px solid #0078d4;
}

.btn-primary:hover {
    background: #f2f2f2;
    color: #0078d4;
    border: 2px solid #0078d4;
}

/* 白背景＋濃い青文字（登録済みの内容を確認） */
.btn-secondary {
    background: #ffffff;
    color: #0078d4;
    border: 2px solid #0078d4;
}

.btn-secondary:hover {
    background: #f2f2f2;
    color: #0044cc;
}

/* ===========================
   下部ナビ
=========================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
}

.nav-item {
    text-align: center;
    font-size: 12px;
    text-decoration: none;
}

/* ホーム・設定・その他の文字色をアイコンと同じ青に */
.nav-item span {
    color: #0078d4;
    font-weight: 600;
}

.nav-item:hover {
    background: #f2f2f2;
}

.nav-item img {
    width: 28px;
    height: 28px;
    display: block;
    margin: 0 auto 4px;
}

/* その他アイコンだけサイズを調整 */
.nav-item.other img {
    width: 80px;  /* ← 横幅を少し大きく */
    height: 40px; /* ← 高さも合わせて拡大 */
}
/* ===========================
   出発駅選択画面（全体）
=========================== */
.screen-form {
    padding: 0 16px 100px;
    max-width: 375px;
    margin: 0 auto;
    background: #fff;
}

/* ===========================
   上部ヘッダー（青グラデーション）
=========================== */
.header-gradient {
    width: 100%;
    padding: 22px 0 18px;
    background: linear-gradient(135deg, #0078d4, #4aa8ff);
    color: white;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    margin-bottom: 24px;
}

/* ===========================
   戻るボタン＋タイトル（サブヘッダー）
=========================== */
.page-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.page-header .back {
    font-size: 28px;
    text-decoration: none;
    color: #0078d4;
    font-weight: 600;
}

.page-header h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

/* ===========================
   アイコン＋説明
=========================== */
.page-lead {
    text-align: center;
    margin-bottom: 24px;
}

.page-lead img {
    width: 80px;
    height: 80px;
    margin-bottom: 12px; 
}

.page-lead p {
    font-size: 14px;
    color: #555;
}

/* ===========================
   駅検索フォーム
=========================== */
.search-input {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    border: 2px solid #0078d4;
    border-radius: 10px;
    outline: none;
    margin-bottom: 16px;
}

.search-input:focus {
    background: #f0f8ff;
}

/* ===========================
   エラー表示
=========================== */
.error {
    color: #d40000;
    font-size: 14px;
    margin-bottom: 12px;
}

/* ===========================
   セクションタイトル（青ラベル）
=========================== */
.section-title {
    font-size: 15px;
    font-weight: 700;
    margin: 20px 0 10px;
    color: #0078d4;
    text-align: left;     /* ← 左寄せ */
    margin-left: 8px;     /* ← 少し左に寄せる */
}


/* ===========================
   駅リスト（ラジオボタン）
=========================== */
.station-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.station-list li {
    background: transparent;
    border: none;
    border-bottom: 1px solid #ddd;
    padding: 12px 0;
    margin: 0;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

/* ラジオボタンのサイズ */
.station-list input[type="radio"] {
    width: 20px;
    height: 20px;
}

/* 選択時の強調 */
.station-list li.selected {
    border-color: #0078d4;
    background: #eaf2ff;
}

/* ===========================
   補足
=========================== */
.note {
    font-size: 14px;
    color: #777;
    margin-top: 10px;
}

/* ===========================
   次へボタン
=========================== */
.btn-next {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 20px;
}

/* 無効状態 */
.btn-next:disabled {
    background: #0078d4;
    border: 2px solid #0078d4;
    color: #fcfafa;
}

/* 有効状態 */
.btn-next:not(:disabled) {
    background: #0078d4;
    border: 2px solid #0078d4;
    color: white;
}
/* ===========================
   サブヘッダー（train.png の位置）
=========================== */
.sub-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.sub-header-icon {
    width: 40px;
    height: 60px;
}

.sub-header-text {
    font-size: 15px;
    color: #555;
}
/* ===========================
   page-header を青帯にする
=========================== */
.header-blue {
    background: linear-gradient(135deg, #0078d4, #4aa8ff);
    color: white;
    padding: 14px 16px;
    border-radius: 0 0 10px 10px;
    margin-bottom: 20px;
}

.header-blue h2 {
    color: white;
}

.header-blue .back {
    color: white;
}
/* 青帯を画面端まで伸ばす */
.header-blue {
    width: 100%;
    background: linear-gradient(135deg, #0078d4, #4aa8ff);
    color: white;
    padding: 14px 16px;
    margin: 0 0 20px 0;
    border-radius: 0; /* 角丸を消す */
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-blue h2 {
    color: white;
}

.header-blue .back {
    color: white;
}

/* タイトルと説明文の書体を完全統一 */
.header-blue h2,
.sub-header-text {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 800;   /* h2 と同じ太さ */
    font-size: 20px;    /* h2 と同じサイズ */
    color: #555;       /* h2 と同じ色 */
    margin: 0;
    padding: 0;
}

/* 青帯のタイトルを必ず白にする */
.header-blue h2 {
    color: white !important;
}

/* 出発駅を選んでください の横幅を広げる */
.sub-header-text {
    width: 100%;
    font-size: 30px;        /* タイトルと同じ書体にするならここも揃える */
    font-weight: 700;
    color: #555;           /* 青帯と同じなら白に */
    margin-left: 8px;       /* ちょっと右に寄せる */
}
/* 目的地を選択を中央揃え＋サイズ統一 */
.header-blue h2 {
    font-size: 15px;        /* 出発駅を選んでください と同じ */
    font-weight: 700;
    text-align: center;     /* 中央揃え */
    width: 100%;            /* flex の中でも中央にするため必須 */
}
/* ラジオボタンにカーソルを合わせたときの色変化 */
.station-list li:hover {
    border-color: #0078d4;   /* 水色の枠 */
    background: #eaf2ff;     /* 水色の薄い背景 */
}
.station-list li:first-child {
    border-top: 1px solid #ddd;
}
/* ===========================
   ログイン画面
=========================== */

.screen-form {
    width: 100%;
    max-width: 375px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 38px 20px 80px;
    box-sizing: border-box;
    background: #EAF6FF;
    color: #17649b;
}

/* ===========================
   ヘッダー
=========================== */

.screen-form .page-header {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    margin-bottom: 28px;
}

.screen-form .page-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #07558c;
}

/* 戻るボタン */
.screen-form .back {
    position: absolute;
    left: 0;
    top: 0;

    font-size: 32px;
    line-height: 1;
    color: #1689c9;
    text-decoration: none;
}


/* ===========================
   Djangoフォーム
=========================== */

.screen-form form {
    width: 100%;
    margin: 0;
}

/* form.as_p の p */
.screen-form form p {
    margin: 0 0 11px;
}

/* ラベル */
.screen-form form label {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    font-weight: 700;
    color: #17649b;
}

/* 入力欄 */
.screen-form form input {
    width: 100%;
    height: 30px;
    padding: 0 10px;
    box-sizing: border-box;

    border: 1px solid #cbdde8;
    border-radius: 5px;
    background: #fff;

    font-size: 12px;
    color: #333;
    outline: none;
}

.screen-form form input:focus {
    border-color: #1689c9;
}

/* ===========================
   ログインボタン
=========================== */

.screen-form .btn-primary {
    width: 100%;
    height: 32px;
    margin-top: 5px;

    border: none;
    border-radius: 6px;

    background: #1689c9;
    color: #fff;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;
}

.screen-form .btn-primary:hover {
    background: #087ab9;
}

/* ===========================
   新規登録
=========================== */

.screen-form > p:last-child {
    margin-top: 17px;
    text-align: center;

    font-size: 10px;
    font-weight: 700;
    line-height: 1.7;

    color: #68a8c7;
}

.screen-form > p:last-child a {
    color: #0875ad;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

/* ===========================
   エラー
=========================== */

.screen-form .error {
    margin: 0 0 10px;
    color: #d9534f;
    font-size: 12px;
}
/* ===========================
   ログイン画面 ヘッダー
=========================== */

.screen-form .page-header {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;

    height: 125px;
    margin-bottom: 15px;
}

/* アイコン＋タイトル */
.login-title-area {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 電車アイコン */
.login-icon {
    width: 58px;
    height: 58px;
    object-fit: contain;
    margin-bottom: 8px;
}

/* ログイン文字 */
.screen-form .page-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #07558c;
}

/* 戻るボタン */
.screen-form .back {
    position: absolute;
    left: 0;
    top: 0;

    font-size: 32px;
    line-height: 1;
    color: #1689c9;
    text-decoration: none;
}
/* ===========================
   ログイン画面
=========================== */
/* ===========================
   ログイン画面（左右の余白なし）
=========================== */

/* ログイン画面を他ページと同じ左右余白に統一 */
.screen-form {
    width: 100%;
    max-width: 375px;   /* ← 他ページと同じスマホ幅 */
    margin: 0 auto;     /* ← 中央寄せ（左右余白が揃う） */
    padding: 40px 20px 80px;
    box-sizing: border-box;
    background: #EAF6FF; /* ← 他ページと同じ背景色 */
}


/* ===========================
   ヘッダー
=========================== */

.screen-form .page-header {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;

    height: 125px;
    margin-bottom: 5px;
}

/* 電車＋ログイン */
.login-title {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 電車画像 */
.login-icon {
    width: 55px;
    height: 55px;
    object-fit: contain;
    margin-bottom: 8px;
}

/* ログイン */
.screen-form .page-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #07558c;
}

/* 戻るボタン */
.screen-form .back {
    position: absolute;
    left: 0;
    top: 0;

    font-size: 32px;
    line-height: 1;
    color: #1689c9;
    text-decoration: none;


/* ===========================
   入力フォーム
=========================== */

.screen-form form p {
    margin: 0 0 10px;
}

.screen-form form label {
    display: block;
    margin-bottom: 5px;

    font-size: 12px;
    font-weight: 700;
    color: #17649b;
}

.screen-form form input {
    width: 90%;
    height: 30px;
    padding: 0 10px;

    box-sizing: border-box;

    border: 1px solid #cbdde8;
    border-radius: 5px;

    background: #fff;
    font-size: 12px;
}


/* ===========================
   ログインボタン
=========================== */

/* ログインボタンを他ページの青ボタンと完全統一 */
.screen-form .btn-primary {
    width: 90%;
    padding: 14px;               /* ← 同じ余白 */
    border-radius: 10px;         /* ← 同じ角丸 */
    font-size: 16px;             /* ← 同じ文字サイズ */
    font-weight: 600;            /* ← 同じ太さ */

    background: #0078d4;         /* ← 同じ青 */
    color: white;
    border: 2px solid #0078d4;   /* ← 同じ枠線 */

    cursor: pointer;
}

.screen-form .btn-primary:hover {
    background: #f2f2f2;         /* ← ホバーも統一 */
    color: #0078d4;
    border: 2px solid #0078d4;
}


.screen-form .btn-primary:hover {
    background: #f2f2f2;         /* ← ホバーも統一 */
    color: #0078d4;
    border: 2px solid #0078d4;
}
.screen-form > p:last-child {
    margin-top: 17px;
    text-align: center;

    font-size: 10px;
    font-weight: 700;
    line-height: 1.7;

    color: #68a8c7;
}


.login-footer {
    margin-top: 25px;
    text-align: center;
}

.login-bg {
    width: 100%;
    max-width: 375px;
    height: auto;
    object-fit: contain;
    opacity: 0.95; /* 少し淡くしてUIになじませる */
}
}
