/* --- リセット & 基本レイアウト --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; height: 100%; overflow-x: hidden; overflow-y: auto; }

body {
    background-color: #e0e0e0;
    font-family: sans-serif;
    display: flex;
    justify-content: center;
    padding-top: 40px;
    padding-bottom: 40px;
}

.main-container {
    width: 90%;
    max-width: 400px;
}

/* --- ヘッダー --- */
.header-logo {
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo { width: 200px; height: auto; display: block; }

.login-img-btn { 
    height: 50px; 
    width: auto; 
    cursor: pointer; 
    transition: opacity 0.2s; 
    display: block;
}
.login-img-btn:hover { opacity: 0.8; }

/* ログイン画面表示時：ログインボタンを薄くして無効化 */
body.show-login #headerLoginBtn {
    opacity: 0.3;
    pointer-events: none;
    cursor: default;
}

/* --- 表示制御 --- */
#hero-content, #login-section { display: none; opacity: 0; }
.is-visible { display: block !important; animation: fadeIn 0.4s ease forwards; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- ヒーローセクション --- */
.catchphrase { font-size: 2.0rem; font-weight: 900; line-height: 1.2; margin-bottom: 25px; text-align: center; }
.sub-text { font-size: 1.1rem; font-weight: bold; margin-bottom: 20px; font-style: italic; color: #444; text-align: center; }
.english { display: block; font-family: 'Courier New', monospace; font-size: 0.9rem; margin-top: 5px; }

.cat-image { 
    width: 250px; 
    height: auto; 
    margin: 0 auto 30px; 
    display: block; 
}

.btn-area { text-align: center; }

.btn {
    background-color: #0097d1; color: #fff; border: none;
    padding: 12px 0; width: 100%; font-size: 1.3rem; font-weight: bold;
    border-radius: 8px; cursor: pointer; box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-info {
    display: block; margin: 20px auto 0; background: none; border: 1px solid #0097d1;
    color: #0097d1; padding: 8px 20px; border-radius: 20px; font-size: 0.85rem; cursor: pointer;
}

/* --- モーダル（暗転） --- */
.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7); z-index: 1000; backdrop-filter: blur(4px);
}

.info-modal {
    display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 90%; max-width: 500px; background: #fff; padding: 30px; border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4); z-index: 1001; animation: modalFadeIn 0.3s ease forwards;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translate(-50%, -45%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.close-btn { background: none; border: none; font-size: 2rem; color: #aaa; cursor: pointer; }
.modal-body li { padding: 12px 0; border-bottom: 1px dashed #eee; font-size: 1rem; color: #444; list-style: none; }
.modal-body li strong { color: #0097d1; margin-right: 8px; }

/* --- ログインカード --- */
.login-card { background-color: #ffffff; padding: 35px 30px; border-radius: 20px; box-shadow: 0 15px 35px rgba(0,0,0,0.1); }
.input-group { margin-bottom: 20px; text-align: left; }
.input-group label { display: block; margin-bottom: 8px; font-weight: bold; color: #555; }
.input-group input { width: 100%; padding: 12px; border: 2px solid #eee; border-radius: 8px; font-size: 1rem; background: #f9f9f9; }
.error-msg { color: #d10000; margin-top: 15px; font-weight: bold; display: none; text-align: center; }
.back-btn { background: none; border: none; color: #0097d1; margin-top: 25px; cursor: pointer; text-decoration: underline; width: 100%; text-align: center; }
