/* Contact form styles extracted from HTML */

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

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

#contact {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    font-weight: 300;
    color: #2c3e50;
    position: relative;
}

h2::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

h2 span {
    display: block;
    font-size: 1.2rem;
    color: #7f8c8d;
    font-weight: 400;
    margin-top: 10px;
}

/* 以下省略していたすべてのスタイルを展開 */

/* フォーム全体 */
.p-contact__form {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.c-form__require-info {
    text-align: center;
    margin-bottom: 30px;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    font-weight: 500;
}
.c-form__radios.tenpo label {
  white-space: pre-line; /* 改行コード(\n)を改行として表示 */
}
.c-form__group {
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
    transition: all 0.3s ease;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.c-form__group:nth-child(odd) {
    animation-delay: 0.1s;
}

.c-form__group:nth-child(even) {
    animation-delay: 0.2s;
}

.c-form__group-header {
    margin-bottom: 15px;
}

.c-form__group-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.c-form__group-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.c-form__group-note {
    font-size: 0.9rem;
    color: #e74c3c;
    background: #fdf2f2;
    padding: 10px 15px;
    border-radius: 8px;
    border-left: 4px solid #e74c3c;
    margin-top: 10px;
}

.c-form__group-main {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.c-form__group-main:hover {
    border-color: #667eea;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.1);
}

.c-form__group-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    align-items: start;
    margin-bottom: 20px;
}

.c-form__group-name {
    font-weight: 600;
    color: #495057;
    padding-top: 10px;
}

.c-form__group-input input,
.c-form__group-input select,
.c-form__group-input textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.c-form__group-input input:focus,
.c-form__group-input select:focus,
.c-form__group-input textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.c-form__radios {
    display: grid;
    gap: 15px;
}

.c-form__radios.two-column {
    grid-template-columns: 1fr 1fr;
}

.c-form__radios.tenpo {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.c-form__radios.vertical {
    grid-template-columns: 1fr;
}

.mwform-radio-field,
.mwform-checkbox-field {
    position: relative;
}

.mwform-radio-field label,
.mwform-checkbox-field label {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.mwform-radio-field label:hover,
.mwform-checkbox-field label:hover {
    border-color: #667eea;
    background: #f8f9ff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.1);
}

.mwform-radio-field input[type="radio"],
.mwform-checkbox-field input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    accent-color: #667eea;
}

.mwform-radio-field input[type="radio"]:checked + .mwform-radio-field-text,
.mwform-checkbox-field input[type="checkbox"]:checked + .mwform-checkbox-field-text {
    color: #667eea;
    font-weight: 600;
}

.mwform-radio-field input[type="radio"]:checked,
.mwform-checkbox-field input[type="checkbox"]:checked {
    transform: scale(1.1);
}

.mwform-radio-field-text span,
.mwform-checkbox-field-text span {
    color: #6c757d;
    font-size: 0.9rem;
}

.c-form__group-input.date {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.c-form__group-input.date > div {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.c-form__group-input.date span {
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
}

.c-form__textarea textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

.c-form__inline-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.c-form__inline-group p {
    font-size: 0.85rem;
    color: #6c757d;
}

.c-form__mail-info {
    background: #fff3cd;
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
    font-size: 0.85rem;
    color: #856404;
    margin-top: 10px;
}

.c-form__privacy {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px;
    border-radius: 15px;
    margin: 40px 0;
    text-align: center;
}

.c-form__privacy-intro {
    margin-bottom: 20px;
    font-weight: 500;
    color: #495057;
}

.c-form__privacy-button {
    margin-bottom: 20px;
}

.c-btn,
.c-btn__inner {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.c-btn:hover,
.c-btn__inner:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.c-btn__inner {
    padding: 18px 50px;
    font-size: 1.2rem;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.c-btn__inner:active {
    transform: translateY(-1px);
}

.c-form__privacy-check {
    display: flex;
    justify-content: center;
    align-items: center;
}

.c-form__privacy-check label {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    font-size: 1rem;
    color: #495057;
}

.c-form__submit {
    text-align: center;
    margin-top: 40px;
}

.info {
    font-size: 0.8rem;
    color: #667eea;
    font-weight: normal;
}

.full {
    width: 100%;
}

@media (max-width: 768px) {
    #contact {
        padding: 20px 15px;
    }

    h2 {
        font-size: 2rem;
    }

    .p-contact__form {
        padding: 25px;
    }

    .c-form__group-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .c-form__radios.two-column,
    .c-form__radios.tenpo {
        grid-template-columns: 1fr;
    }

    .c-form__group-input.date {
        grid-template-columns: 1fr;
    }

    .c-form__group-main {
        padding: 20px;
    }
}

.js-form-group[style*="display: none"] {
    display: none !important;
}

.js-form-group[style*="display: block"] {
    display: block !important;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

input:focus, select:focus, textarea:focus {
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }
    to {
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    }
}
.c-btn__inner {
    display: inline-block;
    padding: 18px 50px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 30px;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.c-btn__inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #b19cd9 0%, #8e44ad 100%);
    transition: all 0.5s ease;
    z-index: -1;
}

.c-btn__inner:hover::before {
    left: 0;
}

.c-btn__inner:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(102, 126, 234, 0.4);
}
input::placeholder,
textarea::placeholder {
    color: #999;
    opacity: 1; /* Firefoxで薄すぎないように */
    font-size: 0.95rem;
}
/* お子様 年齢フィールド */
.kids-ages-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-top: 12px;
}
.kids-age-field label {
    display: block;
    font-size: 0.9rem;
    color: #495057;
}
.kids-age-field input {
    width: 100%;
    margin-top: 6px;
    text-align: center;
}
/* お知らせ行を中央寄せ＆やさしいトーンで表示 */
#contact .c-form__notice{
  text-align: center;
  margin: 16px auto 20px;
  font-size: clamp(13px, 1.4vw, 14px);
  color: #666;
  line-height: 1.6;
}

/* （任意）フォーム幅が狭いときだけ少し余白を詰める */
@media (max-width: 767px){
  #contact .c-form__notice{ margin: 12px auto 16px; }
}