/* app/webroot/css/interview.css */

/*
 * 面談予定通知の共通スタイル
 * モバイルファーストで記述し、PC用のスタイルはメディアクエリで上書きします。
 */

/* 初期ロード時に要素を完全に非表示にするためのクラス */
.notification-hidden-initially {
    display: none !important; /* JavaScriptが制御するまで非表示を強制 */
}

.m-plus-rounded-1c-medium {
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: 500;
  font-style: normal;
}

.m-plus-rounded-1c-bold {
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.m-plus-rounded-1c-black {
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: 900;
  font-style: normal;
}

.interview-notification-label {
    font-weight: bold;
    padding: 2px 12px;
    background-color: #555;
    color: #fff;
    border-radius: 12px;
}

.mb0 {
    margin-bottom: 0 !important; /* マージンをリセット */
}

.mb10 {
    margin-bottom: 10px !important; /* マージンをリセット */
}

#interview-notification {
    position: fixed;
    top: 62px; /* 画面上からの固定位置 */
    left: 50%; /* モバイル時の中央寄せの基準点 */
    transform: translateX(-50%); /* モバイル時の中央寄せ */
    width: 86%; /* モバイル時の幅（左右に40pxの余白） */
    max-width: 400px; /* モバイル時の最大幅 */
    max-height: 300px; /* 最大高さ */
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 16px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 15px 15px 15px 40px; /* 開いた状態のパディング */
    z-index: 1000; /* 他の要素より手前に表示 */
    color: #333;
    cursor: pointer; /* クリック可能であることを示すカーソル */
    font-size: 10px;
    /* displayプロパティはJavaScriptで制御します */
}

#interview-notification p {
    margin-bottom: 8px;
}

#interview-notification-date-m {
    font-size: 2em;
    font-weight: 900;
}

#interview-notification-date-d {
    font-size: 2em;
    font-weight: 900;
}

#interview-notification-time {
    font-size: 2em;
    font-weight: 900;
}

#interview-notification-icon {
    position: absolute;
    top: calc(50% - 25px);
    left: -18px;
    width: 50px; /* アイコンの幅 */
    height: 50px; /* アイコンの高さ */
    z-index: 1002; /* モーダルのアイコンはモーダルより手前に表示 */
}

#interview-notification-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 画像がコンテナに収まるように調整 */
}

/*
 * アイコン表示のスタイル
 */
#interview-icon {
    position: fixed;
    top: 62px;
    left: 15px;
    width: 50px; /* アイコンの幅 */
    height: 50px; /* アイコンの高さ */
    cursor: pointer;
    z-index: 1000;
    /* displayプロパティはJavaScriptで制御します */
}

.topbarNavi-open #topbarNavi #interview-icon {
    position: fixed;
    top: 62px;
    right: 15px;
    left: auto;
}

#interview-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 画像がコンテナに収まるように調整 */
}

/*
 * 詳細表示（モーダル）のスタイル
 */
#interview-detailed-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5); /* 半透明のオーバーレイ */
    z-index: 1001; /* 他の要素より手前に表示 */
    display: flex;
    justify-content: center;
    align-items: center;
    /* displayプロパティはJavaScriptで制御します */
}

/* モーダルコンテンツボックスのスタイル */
#interview-detailed-modal > div {
    background-color: #fff;
    padding: 30px 15px 15px 15px;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    max-width: 400px; /* 最大幅 */
    width: 90%; /* レスポンシブな幅 */
    position: relative;
    color: #333;
    font-size: 10px;
    line-height: 1.6;
}

#interview-detailed-modal a {
    color: #3D8FCB;
    text-decoration: underline;
}

#interview-detailed-date {
    font-size: 2em;
    font-weight: 900;
    line-height: 1.3em;
}

#interview-detailed-time {
    font-size: 2em;
    font-weight: 900;
    line-height: 1em;
}

.interview-detailed-cancel {
    font-weight: bold;
    text-decoration: underline;
}

.interview-detailed-title {
    margin-bottom: 6px;
}

.interview-detailed-body {
    margin-bottom: 14px;
}

.interview-detailed-body p {
    padding: 0 8px 4px 8px;
}

/* モーダル内のPタグの余白をリセット */
#interview-detailed-modal #detailed-interview-content p {
    margin: 0;
}

/* モーダル内の日付と時間の間の余白 */
#interview-detailed-modal #detailed-interview-content p:first-child {
    margin-bottom: 10px;
}

#interview-detailed-button-wrapper {
    text-align: center;
}

/* モーダル内のOKボタンのスタイル */
#interview-detailed-modal #detailed-ok-button {
    background-color: #EAAD06;
    color: white;
    border: none;
    padding: 2px 28px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1.6em;
    font-weight: bold;
    transition: background-color 0.3s ease; /* ホバーアニメーション */
}

#interview-detailed-modal #detailed-ok-button:hover {
    background-color: #EAAD06;
}

#interview-detailed-icon {
    position: absolute;
    top: -25px;
    left: calc(50% - 25px);
    width: 50px; /* アイコンの幅 */
    height: 50px; /* アイコンの高さ */
    z-index: 1002; /* モーダルのアイコンはモーダルより手前に表示 */
}

#interview-detailed-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 画像がコンテナに収まるように調整 */
}

/*
 * PC表示用のメディアクエリ
 * 画面幅が768px以上の場合に適用されます。
 */
@media (min-width: 768px) {
    #interview-notification {
        top: 160px; /* 画面上からの固定位置 */
        left: 40px; /* 右からの固定位置 */
        transform: none; /* モバイルの中央寄せを解除 */
        width: 340px; /* PC時の幅 */
        max-width: none; /* PC時は最大幅の制限を解除 */
        font-size: 12px;
    }

    #interview-notification-icon {
        left: -24px; /* アイコンの位置を調整 */
        width: 52px; /* アイコンの幅 */
        height: 52px; /* アイコンの高さ */
    }

    #interview-icon {
        top: 160px;
        left: 15px;
        width: 62px;
        height: 62px;
    }

    #interview-detailed-modal > div {
        max-width: 540px;
        font-size: 1.1em;
        padding: 48px 30px 18px 30px;
    }

    #interview-detailed-icon {
        top: -40px;
        left: calc(50% - 40px);
        width: 80px; /* アイコンの幅 */
        height: 80px; /* アイコンの高さ */
    }

    #interview-detailed-modal #detailed-ok-button {
        padding: 2px 34px;
        border-radius: 24px;
    }
}