/* ======================================= */
/* 💻 PC/共通スタイル (769px 以上) */
/* ======================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, Helvetica, "Segoe UI", "Noto Sans JP", sans-serif;
    line-height: 1.6;
    color: #343034; 
    background-image: url('../mv_bg.webp');
    background-size: cover; 
    background-attachment: fixed; 
    background-position: center center;
    background-color: #f5f5f7;
}

.container {
    max-width: 900px;
    margin: 20px auto 32px;
    padding: 0 20px;
}

.form-card {
    background: white;
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: none; 
}

/* ロゴのスタイル */
.logo-area {
    text-align: center;
    margin-bottom: 10px;
}

.logo-image {
    max-width: 280px; 
    height: auto;
    display: inline-block;
}

h1 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #343034;
    text-align: center;
}

.subtitle {
    text-align: center;
    color: #6e6e73;
    margin-bottom: 40px;
    font-size: 14px;
}

.form-group {
    margin-bottom: 30px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 2px;
    color: #343034;
    font-size: 16px;
}

.form-group > label:not(.checkbox-item label):not(.radio-item label) {
    font-size: 16px; 
    margin-bottom: 4px;
}

.required {
    color: #ff3b30;
    margin-left: 4px;
}

.sub-text {
    font-weight: 400; 
    font-size: 14px; 
    color: #8e8e93; 
    margin-left: 8px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 14px 12px;
    border: 1px solid #d2d2d7;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    outline: none;
    border-color: #FE4C7F;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(254, 76, 127, 0.1); 
}

/* ラジオボタンとチェックボックスのスタイリング */
.radio-group,
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.radio-group .radio-item,
.checkbox-group .checkbox-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    background: #f5f5f7;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    padding-left: 42px; 
}

.radio-group .radio-item:hover,
.checkbox-group .checkbox-item:hover {
    background: #e8e8ed;
}

.radio-group input[type="radio"],
.checkbox-group input[type="checkbox"] {
    position: absolute; 
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none; 
}

.radio-group .radio-item span,
.checkbox-group .checkbox-item span {
    position: relative;
    z-index: 2; 
}

/* カスタムチェックボックスのスタイル (枠) */
.checkbox-group .checkbox-item::before {
    content: '';
    display: block;
    position: absolute;
    left: 12px; 
    top: 50%;
    transform: translateY(-50%);
    width: 18px; 
    height: 18px; 
    border: 2px solid #d2d2d7; 
    border-radius: 4px; 
    background-color: #fff;
    z-index: 1;
    transition: all 0.2s ease;
}

/* カスタムチェックボックスのスタイル (チェックされた状態のアイコン) */
.checkbox-group .checkbox-item.checked::before {
    border-color: #FE4C7F; 
    background-color: #FE4C7F; 
    content: '\f00c'; 
    font-family: "Font Awesome 6 Free"; 
    font-weight: 900; 
    color: white; 
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px; 
}

.checkbox-group .checkbox-item.checked {
    background: #FFE0E9; 
    border-color: #FE4C7F; 
}


/* カスタムラジオボタンのスタイル (枠) */
.radio-group .radio-item::before {
    content: '';
    display: block;
    position: absolute;
    left: 12px; 
    top: 50%;
    transform: translateY(-50%);
    width: 18px; 
    height: 18px; 
    border: 2px solid #d2d2d7; 
    border-radius: 50%; 
    background-color: #fff;
    z-index: 1;
    transition: all 0.2s ease;
}

/* カスタムラジオボタンのスタイル (チェックされた状態のアイコン) */
.radio-group .radio-item.checked::before {
    border-color: #FE4C7F; 
    background-color: #FE4C7F; 
    content: '\f111'; 
    font-family: "Font Awesome 6 Free"; 
    font-weight: 900; 
    color: white; 
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px; 
}

.radio-group .radio-item.checked {
    background: #FFE0E9; 
    border-color: #FE4C7F; 
}

/* 面談方法 */
.meeting-notes {
    font-size: 14px;
    color: #6e6e73;
    margin-top: 10px;
    padding-left: 4px;
}

/* アカウント入力欄 */
.account-input-group {
    margin-top: 10px;
}

.account-item {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: center;
}

.account-item select {
    padding: 14px 10px;
    border: 1px solid #d2d2d7;
    border-radius: 10px;
    font-size: 16px;
    background-color: #fafafa;
    flex-grow: 0;
    width: 150px;
}

.account-item input[type="text"] {
    flex-grow: 1;
}

.add-account-btn, .remove-account-btn {
    background: none;
    border: 1px solid #d2d2d7;
    color: #343034;
    border-radius: 10px;
    font-weight: bold;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.add-account-btn {
    background: #343034;
    color: white; 
    border: none;
    padding: 12px 13px; 
    width: 46px; 
    font-size: 18px;
    cursor: pointer;
}

.add-account-btn:hover {
    background: #5a5757;
}

/* PC/共通の削除ボタン（x）スタイル */
.remove-account-btn {
    width: 28px; 
    height: 28px; 
    padding: 0;
    background: #ffcccc; 
    color: #ff3b30; 
    border: 1px solid #ff3b30; 
    border-radius: 8px; 
    font-size: 14px; 
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-account-btn:hover {
    background: #ffaaaa; 
}

/* -------------------------------------- */
/* 週カレンダー関連のスタイル (PC) */
/* -------------------------------------- */

.calendar-container {
    height: 540px; 
    overflow-y: auto; 
    background: #f5f5f7;
    border-radius: 12px;
    padding: 0 20px 20px 20px; 
    margin-top: 10px;
    border: 1px solid #d2d2d7; 
}

.week-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background: white;
    padding: 15px 0; 
    border-radius: 0; 
    position: sticky;
    top: 0; 
    z-index: 10;
    box-shadow: none;
    border-bottom: 1px solid #e0e0e0;
    
    width: calc(100% + 40px); 
    margin: 0 -20px; 
}

.week-nav-buttons {
    display: flex;
    gap: 10px;
    padding-left: 20px; 
}

.week-nav-buttons button {
    background: #343034;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.week-nav-buttons button:hover {
    background: #5a5757;
    transform: translateY(-1px);
}

.week-nav-buttons button:disabled {
    background: #c7c7cc;
    cursor: not-allowed;
    transform: none;
}

.week-info {
    font-size: 18px;
    font-weight: 600;
    color: #343034; 
    padding-right: 20px; 
}

.week-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px; 
    padding-top: 1px;
    padding-left: 0;
    padding-right: 0;
}

.day-column {
    background: white;
    border-radius: 12px;
    padding: 10px 10px; 
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
}

.day-header {
    text-align: center;
    margin-bottom: 10px; 
    padding-bottom: 8px;
    border-bottom: 2px solid #f5f5f7;
    position: sticky;
    top: 48px; 
    z-index: 5;
    background: white;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    box-shadow: 0 2px 0 rgba(245, 245, 247, 1); 
    
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: baseline; 
    gap: 4px;
}

.day-name {
    font-size: 14px;
    color: #6e6e73;
    font-weight: 600;
    display: none; 
    margin: 0;
}

.day-date {
    font-size: 18px; 
    font-weight: 700;
    color: #343034;
    margin: 0;
}

.day-header .day-date::after {
    content: '（' attr(data-day-name) '）'; 
    font-size: 14px;
    color: #6e6e73;
    font-weight: 600;
    margin-left: -2px;
}

.time-slots {
    display: flex;
    flex-direction: column;
    gap: 5px; 
}

.time-slot {
    display: flex;
    align-items: center;
    padding: 4px 10px; 
    background: #f5f5f7;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.time-slot:hover {
    background: #e8e8ed;
    border-color: #d2d2d7;
}

.time-slot input[type="checkbox"] {
    display: none;
    
    margin-right: 6px; 
    width: 16px; 
    height: 16px; 
    cursor: pointer;
    accent-color: #FE4C7F;
}

.time-slot span {
    font-size: 13px; 
    font-weight: 500;
    color: #343034;
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    max-width: 100%; 
}

.time-slot.selected {
    background: #FFE0E9;
    border-color: #FE4C7F;
}

.time-slot.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.time-slot.disabled input {
    cursor: not-allowed;
}

.selected-summary {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid #d2d2d7;
}

.selected-summary h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #343034;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.selected-count {
    background: #FE4C7F;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.clear-selection {
    color: #FE4C7F;
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

.clear-selection:hover {
    opacity: 0.7;
}

.submit-button {
    width: 100%;
    padding: 16px;
    background: #FE4C7F;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0px;
}

.submit-button:hover {
    background: #FF6B98;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(254, 76, 127, 0.3);
}

/* フッターのスタイル */
.site-footer {
    background-color: #f5f5f7;
    padding: 40px 20px 32px 20px;
    text-align: center;
    color: #8e8e93;
    font-size: 13px;
}

.footer-links {
    margin-bottom: 0px;
}

.footer-links a {
    color: #8e8e93;
    text-decoration: none;
    margin: 0 4px;
    display: inline-block;
    position: relative;
    padding-right: 16px;
    line-height:1;
}

.footer-links a::after {
    content: "/";
    position: absolute;
    right: 0;
    color: #8e8e93;
}

.footer-links a:last-child::after {
    content: none;
}

.footer-links a:hover {
    color: #343034;
}

.copyright {
    margin-top: 10px;
    font-size: 12px;
}


/* ======================================= */
/* 📱 SP向けスタイル (768px 以下) */
/* ======================================= */

@media (max-width: 768px) {
    
    .form-card {
    border-radius: 16px;
    padding: 20px 16px;
    }
    
    h1 {
    font-size: 24px;
    margin-bottom: 2px;
    }
    
    .sub-text {
        display: block;
        margin-left: 0;
        margin-top: 4px;
        font-size: 13px;
    }

    .calendar-container {
        height: 540px;
        padding: 0 20px 20px 20px; 
        border: 1px solid #d2d2d7;
    }
    
    .form-group > label:not(.checkbox-item label):not(.radio-item label) {
    font-size: 15px; 
    margin-bottom: 6px;
    }
    
    .radio-group,
    .checkbox-group {
    gap: 8px;
    margin-top: 10px;
    }
    
    .week-navigation {
        flex-direction: column; 
        align-items: flex-start;
        padding: 15px;
        top: 0;
        border-bottom: 1px solid #e0e0e0;
        
        width: auto;
        left: auto;
        right: auto;
        margin-left: -20px;
        margin-right: -20px;
    }

    .week-nav-buttons {
        width: 100%; 
        justify-content: space-between; 
        gap: 5px;
        padding-left: 0; 
    }

    .week-nav-buttons button {
        flex-grow: 1; 
        padding: 8px 10px;
    }

    .week-info {
        margin-top: 15px;
        font-size: 16px;
        padding-right: 0; 
    }
    
    .week-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        padding-left: 0;
        padding-right: 0;
    }
    
    .day-column {
        padding: 10px 15px;
    }
    
    .day-header {
        top: 61px; 
    }


    /* アカウント入力欄のSP修正 */
    .account-item {
        flex-direction: row; 
        gap: 8px; 
        margin-bottom: 10px; 
        align-items: center; 
    }

    .account-item select {
        width: 120px; 
        flex-grow: 0;
    }

    .account-item input[type="text"] {
        flex-grow: 1; 
        height: 50px; 
    }
    
    .add-account-btn {
        width: 44px; 
        height: 44px; 
        padding: 0;
        margin-top: 0;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .remove-account-btn {
        width: 28px; 
        height: 28px; 
        padding: 0;
        margin-top: 0;
        flex-shrink: 0;
        background: #ffcccc; 
        color: #ff3b30; 
        border: 1px solid #ff3b30; 
        border-radius: 8px; 
        
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .remove-account-btn:hover {
        background: #ffaaaa; 
    }
    
    .remove-account-btn i.fas.fa-times {
        font-size: 14px; 
    }
    
    /* フッター SP修正 */
    .site-footer {
        padding: 0px 10px 32px 10px;
    }
    
    .footer-links a {
        display: block;
        display: inline-block; 
        margin: 10px 5px;
    }
}