/*
==================================================
madameFIGARO.jp Login Modal Styles
CCCMH OAuth Integration
==================================================
*/

/* ハンバーガーメニュー内のログインボタン */
.hamburger__signin button {
    background: none;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: inherit;
    padding: 0;
    color: inherit;
    font: inherit;
}

.hamburger__signin button:hover {
    opacity: 0.7;
}

/* ログイン状態別の表示制御 */
[data-login-state="logged-out"],
[data-login-state="logged-in"] {
    transition: opacity 0.3s ease;
}

/* モーダルオーバーレイ */
.login-overlay,
.login-wrapper {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.login-overlay {
    background: rgba(102, 102, 102, 0.9);
    position: fixed;
    z-index: 9999;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
}

/* モーダルラッパー */
.login-wrapper {
    position: fixed;
    z-index: 10000;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    overflow: auto;
    text-align: center;
    -webkit-overflow-scrolling: touch;
}

.login-wrapper::after {
    vertical-align: middle;
    display: inline-block;
    height: 100%;
    margin-left: -0.05em;
    content: "";
}

/* モーダルボックス */
.login-modal {
    box-sizing: border-box;
    width: 90%;
    max-width: 500px;
    height: auto;
    max-height: 90vh;
    padding: 35px;
    background: #fff;
    outline: none;
    color: #000;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateY(-50%) translateX(-50%);
    -webkit-transform: translateY(-50%) translateX(-50%);
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* モーダルコンテンツ */
.login-content {
    font-size: 14px;
}

.login-title {
    font-family: 'Crimson Pro', serif;
    font-weight: 500;
    font-size: 24px;
    margin: 0 0 10px;
}

.login-description {
    margin: 0 0 20px;
    font-size: 14px;
    color: #666;
}

/* CCCMH ログインフォーム挿入先 */
#idc3mhV2 {
    margin: 20px 0;
}

/* CCCMHフォームスタイル（元のログインプロジェクトから流用） */
#idc3mhV2 .f-login,
#idc3mhV2 .f-login input,
#idc3mhV2 .f-login button{
	font-size:14px;
}
#idc3mhV2 .f-login .f-login__title{
	font-family: 'Crimson Pro', serif;
	font-weight: 500;
	font-size:24px;
}
#idc3mhV2 .f-login .f-login__form {
	padding-top: 8px;
}
#idc3mhV2 .f-login .f-login__form-control{
	margin-top: 30px;
}
#idc3mhV2 .f-login .f-login__form-control input {
	width: 100%;
	height: 40px;
	box-sizing: border-box;
	padding-right: 10px;
	padding-left: 10px;
	border: 1px solid #000;
	border-radius: 0;
	box-shadow: none;
	-webkit-appearance: none;
}
#idc3mhV2 .f-login .f-login__form-button {
	margin-top: 30px;
}
#idc3mhV2 .f-login .f-login__form-button button {
	box-sizing: border-box;
	width: 100%;
	height: 48px;
	border: 1px solid #000;
	background-color: #000;
	color: #fff;
	transition: background-color .4s ease, color .4s ease;
}
#idc3mhV2 .f-login .f-login__reminder {
	margin-top: 28px;
}
#idc3mhV2 .f-login .f-login__reminder a {
	color: #86878D;
	text-decoration: underline;
}
#idc3mhV2 .f-login .f-login__register {
	margin-top: 30px;
	padding-top: 30px;
	border-top: 1px solid #86878D;
}
#idc3mhV2 .f-login .f-login__register a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 170px;
	height: 48px;
	border: 1px solid #000;
	transition: background-color .4s ease, color .4s ease;
}
#idc3mhV2 .f-login .f-login__register svg {
	margin-left: 9px;
	transition: fill .4s ease;
}
#idc3mhV2 .f-login .modal-close{
	top: 10px;
	right: 10px;
	position: absolute;
	display: block;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	cursor: pointer;
	background: none;
	border: none;
	-webkit-appearance: none;
	appearance: none;
}
@media (max-width: 420px){
	#idc3mhV2 .f-login .f-login__form-control:first-of-type {
		margin-top: 20px;
	}
}

/* 注釈 */
.login-note {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #86878d;
    font-size: 12px;
    color: #666;
}

.login-note a {
    color: #000;
    text-decoration: underline;
}

.login-note a:hover {
    opacity: 0.7;
}

/* 閉じるボタン */
.login-close {
    top: 10px;
    right: 10px;
    position: absolute;
    display: block;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: #000;
    transition: opacity 0.3s ease;
}

.login-close:hover {
    opacity: 0.6;
}

/* レスポンシブ対応 */
@media (max-width: 420px) {
    .login-modal {
        width: calc(100% - 40px);
        padding: 57px 20px;
    }

    .login-close {
        top: 0;
        right: 0;
    }

    .login-title {
        font-size: 20px;
    }
}
