/**
 * アメットイングリッシュスクール管理システム
 * フロント用スタイル
 * ファイル保存場所: /amet-english-school/assets/css/public.css
 */

.amet-public-wrap {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* 入会フォーム */
.amet-registration-form {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px 30px 40px 30px;
    background: linear-gradient(135deg, #f8fafc 0%, #e3f0ff 100%);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(60, 120, 200, 0.12);
    position: relative;
    overflow: hidden;
}
.amet-registration-form:before {
    content: "";
    position: absolute;
    top: -80px; left: -80px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, #aee1ff 0%, #e3f0ff 100%);
    opacity: 0.4;
    z-index: 0;
    border-radius: 50%;
}
.amet-registration-form:after {
    content: "";
    position: absolute;
    bottom: -60px; right: -60px;
    width: 160px; height: 160px;
    background: radial-gradient(circle, #ffd6e0 0%, #e3f0ff 100%);
    opacity: 0.3;
    z-index: 0;
    border-radius: 50%;
}
.form-section {
    background: rgba(255,255,255,0.95);
    padding: 28px 24px 24px 24px;
    border-radius: 12px;
    margin-bottom: 32px;
    box-shadow: 0 2px 8px rgba(120,160,220,0.07);
    position: relative;
    z-index: 1;
}
.section-title {
    font-size: 22px;
    color: #1976d2;
    margin-bottom: 18px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e9ecef;
    font-weight: 700;
    letter-spacing: 0.04em;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
}
.section-title .optional-label {
    color: #555;
    background: #e3f0ff;
    font-size: 13px;
    font-weight: 500;
    border-radius: 5px;
    margin-left: 8px;
    padding: 2px 10px;
    display: inline-block;
    vertical-align: middle;
}
.course-options {
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}
.course-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    width: 100%;
    box-sizing: border-box;
}
.course-group label {
    display: flex;
    align-items: stretch;
    width: 100%;
    cursor: pointer;
    transition: transform 0.15s;
}
.course-group label:hover {
    transform: translateY(-2px) scale(1.02);
}
.course-card {
    width: 100%;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(120,160,220,0.08);
    padding: 18px 10px 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px solid transparent;
    transition: border 0.2s;
}
.course-group input[type="radio"]:checked + .course-card,
.course-card input[type="radio"]:checked + .course-card {
    border: 2px solid #1976d2;
    background: #e3f0ff;
}
.course-image {
    width: 100%;
    max-width: 180px;
    height: auto;
    display: block;
    margin: 10px auto 8px auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(120,160,220,0.08);
}
.course-name {
    font-size: 18px;
    font-weight: bold;
    color: #1976d2;
    margin-bottom: 8px;
    text-align: center;
    letter-spacing: 0.03em;
}
.course-description {
    color: #6c757d;
    text-align: center;
    margin-bottom: 8px;
    font-size: 14px;
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}
.form-group {
    margin-bottom: 13px;
    position: relative;
}
.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #1976d2;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.01em;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #b6d0f7;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 15px;
    background: #fafdff;
    transition: border 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border: 1.5px solid #1976d2;
    outline: none;
    background: #e3f0ff;
}
.form-group .required {
    color: #e53935;
    margin-left: 4px;
    font-size: 13px;
}
.field-description {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}
.submit-button {
    background: linear-gradient(90deg, #1976d2 0%, #ff80ab 100%);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 24px;
    box-shadow: 0 2px 8px rgba(120,160,220,0.10);
    letter-spacing: 0.04em;
    transition: background 0.2s, box-shadow 0.2s;
}
.submit-button:hover {
    background: linear-gradient(90deg, #1565c0 0%, #ff4081 100%);
    box-shadow: 0 4px 16px rgba(120,160,220,0.13);
}
@media (max-width: 768px) {
    .amet-registration-form { padding: 10px 2vw 30px 2vw; }
    .course-group { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .form-section { padding: 18px 6px 12px 6px; }
}
.postal-code-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}
#search_address, #search_parent2_address {
    white-space: nowrap;
    background: #1976d2;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 15px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}
#search_address:hover, #search_parent2_address:hover {
    background: #145ea8;
    transform: translateY(-1px);
}
#search_address:disabled, #search_parent2_address:disabled {
    background: #cccccc;
    cursor: not-allowed;
}
.optional-label {
    display: inline-block;
    font-size: 12px;
    background: #e3f0ff;
    color: #1976d2;
    padding: 2px 8px;
    margin-left: 7px;
    border-radius: 5px;
    font-weight: 500;
}
.address-toggle-section {
    background-color: #f9f9f9;
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
    border: 1px solid #eee;
}
.error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
}
.error p {
    margin: 5px 0;
}
.terms-section {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 20px;
    margin: 20px 0;
    border-radius: 10px;
}
.terms-content {
    max-height: 300px;
    overflow-y: auto;
    padding: 15px;
    background: #fff;
    border: 1px solid #eee;
    margin-bottom: 15px;
    border-radius: 6px;
}
.terms-content ul {
    margin-left: 20px;
    margin-bottom: 15px;
}
.terms-label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
}
.terms-label input[type="checkbox"] {
    margin-right: 8px;
}
.alert {
    padding: 8px 15px;
    margin-top: 5px;
    border-radius: 4px;
    font-size: 14px;
}
.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.address-alert {
    animation: fadeIn 0.5s;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* マイページ */
.amet-mypage {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
}

/* チケット購入ページ */
.amet-ticket-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.amet-ticket-table th,
.amet-ticket-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

.amet-ticket-table th {
    background-color: #f5f5f5;
}

.ticket-purchase-btn {
    background-color: #0073aa;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
}

.ticket-purchase-btn:hover {
    background-color: #005c8a;
}

/* モーダルスタイル */
.amet-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.amet-modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    border-radius: 5px;
    width: 80%;
    max-width: 500px;
    position: relative;
}

.amet-modal-close {
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
}

/* チケットプラン選択 */
.ticket-plans {
    margin: 20px 0;
}

.ticket-plan-option {
    border: 1px solid #ddd;
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.ticket-plan-option:hover {
    background-color: #f9f9f9;
}

.ticket-plan-option input[type="radio"] {
    margin-right: 10px;
}

.plan-details {
    display: inline-block;
}

.plan-description {
    color: #666;
    font-size: 0.9em;
    margin-left: 25px;
    display: block;
}