@charset "UTF-8";

/*hearderの1とsearch-cardの0.2は統一透明度のため消さないでください
    ベースカラーを決定し、header-colorとsearch-card-colorのrgbは同じ値を入れること
*/
:root {
    --base-color: #6ecaf3;
    --background-color: rgba(253,235,243,1);
    --header-color: rgba(110, 202, 243,1);
    --sub-header-color: rgba(194, 221, 238,1);
    --sub-color: rgba(0, 66, 116,1);
    --search-card-color: rgba(110, 202, 243,0.2);
    --iframe-header-color: #fbda7f;
    --iframe-title-color: #000;
    --base-btn-color: #daf8b0;
    --base-success-color: #1f6bff;
    --base-success-color-end: #1a9eef;
    --brand-color: #C1341C;
    --brand-color-hover: #a52b17;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
}

.page-area {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    box-sizing: border-box;
}

.page-title {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin: 5px 0 20px;
}

.page-content {
    flex: 1;
    padding: 20px;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    box-sizing: border-box;
}

.header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 20px;
    background-color: #fff;
}

.header-logo img {
    height: 40px;
    width: auto;
}

/* ---------- btn ---------- */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: var(--brand-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    box-sizing: border-box;
}

    .btn:hover {
        background-color: var(--brand-color-hover);
        color: #fff;
        text-decoration: none;
        opacity: 0.95
    }

/* ---------- Form Parts ---------- */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-input-wrapper {
    position: relative;
}

    .form-input-wrapper i {
        position: absolute;
        top: 50%;
        right: 12px;
        transform: translateY(-50%);
        color: #ADADAD;
        cursor: pointer;
    }

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #D4D4D4;
    border-radius: 4px;
    background-color: #fff;
    box-sizing: border-box;
    font-size: 16px;
}

.form-error {
    color: var(--brand-color);
    display: block;
    margin-top: 4px;
}

.form-errors {
    color: var(--brand-color);
}

.form-link {
    display: block;
    color: var(--brand-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    margin-top: 5px;
}

/* ---------- Bottom Navigation ---------- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    background-color: #fff;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 100;
    height: 60px;
}

    .bottom-nav .bottom-nav-item {
        flex: 1;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #ADADAD;
        font-size: 10px;
        height: 100%;
        padding-bottom: 5px;
        text-decoration: none;
    }

.bottom-nav-item.active {
    color: #C1341C;
}

    .bottom-nav-item.active .bottom-nav-icon i {
        color: #C1341C;
    }

.bottom-nav-icon {
    font-size: 24px;
    margin-bottom: 2px;
    display: block;
}

.bottom-nav-qr-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
}

    .bottom-nav-qr-wrapper .bottom-nav-qr-button {
        position: absolute;
        bottom: 10px;
        width: 64px;
        height: 64px;
        background-color: #C1341C;
        border-radius: 50%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #fff;
        box-shadow: 0 4px 8px rgba(193, 52, 28, 0.4);
        border: 4px solid #fff;
        text-decoration: none;
    }

.bottom-nav-qr-icon {
    font-size: 24px;
    line-height: 1;
}

.bottom-nav-qr-text {
    font-size: 10px;
    margin-top: 2px;
}

/* ---------- Common Responsive ---------- */
/* --- 小さいスマホ (375px以下) --- */
@media screen and (max-width: 375px) {
    .page-content {
        padding: 16px;
    }

    .btn {
        font-size: 14px;
    }

    .form-input {
        font-size: 14px;
        padding: 10px;
    }

    .bottom-nav {
        height: 52px;
    }

        .bottom-nav .bottom-nav-item {
            font-size: 9px;
        }

    .bottom-nav-icon {
        font-size: 20px;
    }

    .bottom-nav-qr-wrapper .bottom-nav-qr-button {
        width: 54px;
        height: 54px;
    }

    .bottom-nav-qr-icon {
        font-size: 20px;
    }

    .header {
        padding: 12px 16px;
    }

        .header-logo img {
            height: 32px;
        }

    .footer {
        font-size: 12px;
    }

    .page-title {
        font-size: 20px;
    }
}

/* --- タブレット・PC (768px以上) --- */
@media screen and (min-width: 768px) {
    .page-content {
        max-width: 540px;
        padding: 30px;
    }

    .btn {
        font-size: 18px;
    }

    .form-input {
        font-size: 18px;
        padding: 14px;
    }

    .container-area {
        max-width: 700px;
    }

    .footer {
        font-size: 14px;
        padding: 10px 24px;
    }

    .page-title {
        font-size: 28px;
    }
}