/* 基本レイアウト */
body {
    background-color: #f5f5f5 !important;
}

/* コンテナ設定 */
.main-container {
    margin-top: calc(90px + 1.5rem) !important; /* headerの高さ + 余白 */
}

.container_bg {
    min-height: calc(100vh - 2rem);  /* ビューポートの高さから上下マージンを引く */
}

/* ボタンスタイル */
.btn--shadow {
    box-shadow: 1px 3px 3px #b1b1b1;
}

.btn-sm--shadow {
    box-shadow: 1px 2px 1px #b1b1b1;
}

.btn--no-border{
    border: none;
}

.btn:disabled.btn--disabled--gray {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #fff;
}

/* xID認証ボタン */
.xid_btn a {
    text-decoration: none;
    border-radius: 0.5rem;
    width: 180px;
    height: 65px; 
}

.xid_btn img {
    max-height: 100%;  
    width: 65%; 
    object-fit: cover; 
}

/* 予約関連のスタイル */
.reservation {
    overflow-x:scroll;
}

/* 曜日表示のカラー設定 */
.saturday {
    color: #0a53be;
}

.sunday {
    color: #bb2d3b;
}

.minutes {
    font-weight: bold;
    color: #bb2d3b;
}

#second_date {
    border-top:0;
}

/* オーバーレイ（モーダル）関連 */
.overlay {
    overflow: hidden;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.3);
}

.overlay__content {
    top: 50%;
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-height: 90%;
    max-width: 800px;
}

.overlay__close {
    position: absolute;
    right: 0;
    padding: 0.5rem;
    width: 2rem;
    height: 2rem;
    line-height: 2rem;
    text-align: center;
    background-color: white;
    cursor: pointer;
    border: 3px solid black;
    font-size: 1.5rem;
    margin: -1rem;
    border-radius: 2rem;
    z-index: 100;
    box-sizing: content-box;
}

.overlay__content video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 閉じるボタンのデザイン */
.dli-close {
    display: inline-block;
    vertical-align: middle;
    color: #333;
    line-height: 1;
    width: 1em;
    height: 0.1em;
    background: currentColor;
    border-radius: 0.1em;
    position: relative;
    transform: rotate(45deg);
}

.dli-close::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
    transform: rotate(90deg);
}

/* 利用規約・プライバシーポリシー関連 */
.terms .start-0,
.privacy .start-0{
    left: 0;
}

/* フォームバリデーション関連 */
/* django-bootstrapにおいて、バリデーションを通ったフォームに勝手に付くis-validクラスを無効化 */
/* TODO: この処理はdjango-bootstrap5の機能を活用することにより不要になる可能性がある */
.is-valid {
    border-color: #ced4da !important;
    background-image: none !important;
}

/* ローディングスピナー */
#full-screen-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 9999;
}

/* ブラウザ固有の機能制御 */
/* Edgeのパスワード表示切り替えアイコンを非表示にする */
input::-ms-reveal,
input::-ms-clear {
    display: none;
}

/* ヘッダー関連のスタイル */
.header--blue-border-top {
    border-top: 5px solid #4F81BD;
}

/* ハンバーガーメニュー */
.hamburger-menu__content--open{
    top: 90px;
    transition: all .3s ease;
    right: 0;
    z-index: 10;
    width: 230px;
}

.header__navbar {
    height: 90px;
}

/* レスポンシブ対応 */
@media (max-width : 600px){
    .header__navbar {
        flex-wrap: initial;
    }

    .header__title {
        font-size: 1.0rem;
    }
}

@media (max-width : 400px){
    .header__title {
        font-size: 0.85rem;
    }
}
