/* screen - contact (お問い合わせフォーム) */

.contact {
    align-items: center;
    background-color: #F0F0F0;
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    min-height: calc(100vh - 221px);
    max-width: 1920px;
    min-width: 0;
    overflow-x: hidden;
    flex-shrink: 1 !important;
}

/* --- ヘッダー --- */
.contact .view {
    background-color: var(--white);
    height: 53px;
    position: fixed;
    width: 100%;
    max-width: 1920px;
    z-index: 4;
}

/* --- ヒーローセクション --- */
.contact .hero-section {
    align-items: center;
    background-image: url('../img/cardboard-texture_200px.png'), url(../img/file---35-1x-png-1@1x.png);
    background-position: left top, 50% 50%;
    background-size: auto, cover;
    background-repeat: repeat, no-repeat;
    background-blend-mode: multiply;
    border-radius: 0 0 67px 67px;
    display: flex;
    justify-content: center;
    height: 288px;
    margin-top: -60px;
    padding: 60px 40px 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 1;
}

.contact .hero-title {
    color: var(--black);
    font-family: var(--font-family-yugothic-bold);
    font-size: 44px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 83px;
    text-align: center;
    white-space: nowrap;
    margin: 0;
}

/* --- 導入テキスト --- */
.contact .intro-text {
    color: var(--black);
    font-family: var(--font-family-yugothic-medium);
    font-size: 28px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 57px;
    margin-top: 24px;
    text-align: center;
    z-index: 3;
}

.contact .intro-text .highlight {
    color: var(--java);
    font-family: var(--font-family-yugothic-bold);
    font-weight: 700;
}

/* --- ステップインジケーター --- */
.contact .step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
    gap: 0;
    z-index: 5;
}

.contact .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 150px;
}

.contact .step-circle {
    background-color: var(--white);
    border: none;
    border-radius: 50px;
    color: #888;
    font-family: var(--font-family-yugothic-bold);
    font-size: 24px;
    font-weight: 700;
    line-height: 52px;
    padding: 0 32px;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    /* Soft shadow for white pill */
}

.contact .step-circle.active {
    background-color: var(--java);
    border: none;
    color: var(--white);
    box-shadow: none;
}

.contact .step-label {
    color: #888;
    font-family: var(--font-family-yugothic-bold);
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}

.contact .step.active .step-label {
    color: var(--java);
}

.contact .step-line {
    width: 120px;
    height: 4px;
    background-color: #e5e5e5;
    margin-bottom: 30px;
}

/* --- 注意書き --- */
.contact .form-notes {
    color: var(--black);
    font-family: var(--font-family-yugothic-medium);
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 57px;
    margin-top: 40px;
    text-align: left;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    box-sizing: border-box;
    z-index: 4;
}

/* --- フォームコンテナ --- */
.contact .form-container {
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    margin-top: 20px;
    padding: 30px 5% 50px;
    width: 100%;
    max-width: 1200px;
    min-width: 0;
    box-sizing: border-box;
    z-index: 1;
}

/* --- セクション見出し --- */
.contact .form-section-title {
    color: var(--black);
    font-family: var(--font-family-yugothic-bold);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 57px;
    margin-top: 20px;
    margin-bottom: 10px;
}

/* --- フォーム行 --- */
.contact .form-row {
    display: flex;
    flex-wrap: wrap;
    /* Added for tablet responsiveness */
    align-items: center;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid #ddd;
    width: 100%;
}

.contact .form-row.align-top {
    align-items: flex-start;
    padding-top: 18px;
}

/* --- ラベルエリア --- */
.contact .form-label-area {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 250px;
    /* Reduced for better stacking */
    flex-shrink: 0;
}

.contact .form-label {
    color: var(--apple);
    font-family: var(--font-family-yugothic-bold);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 57px;
    white-space: nowrap;
}

.contact .badge-required {
    background-color: var(--apple);
    color: var(--white);
    font-family: var(--font-family-yugothic-medium);
    font-size: 22px;
    font-weight: 500;
    line-height: 1;
    padding: 8px 14px;
    white-space: nowrap;
}

/* --- 入力エリア --- */
.contact .form-input-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.contact .form-input {
    background-color: var(--white);
    border: 1px solid #999;
    border-radius: 8px;
    color: var(--black);
    font-family: var(--font-family-yugothic-medium);
    font-size: 24px;
    font-weight: 500;
    height: 50px;
    padding: 0 16px;
    width: 100%;
    box-sizing: border-box;
}

.contact .form-input::placeholder {
    color: #999;
}

.contact .form-input.half {
    width: 48%;
}

.contact .form-select {
    background-color: var(--white);
    border: 1px solid #999;
    border-radius: 8px;
    color: var(--black);
    font-family: var(--font-family-yugothic-medium);
    font-size: 24px;
    font-weight: 500;
    height: 50px;
    padding: 0 16px;
    width: 100%;
    box-sizing: border-box;
    appearance: auto;
}

.contact .form-select:invalid {
    color: #999;
}

.contact .form-select.unselected {
    color: #999;
}

.contact .form-select option {
    color: var(--black);
}

.contact .form-select option[disabled] {
    color: #999;
}

.contact .form-select.short {
    width: 120px;
}

.contact .form-textarea {
    background-color: var(--white);
    border: 1px solid #999;
    border-radius: 8px;
    color: var(--black);
    font-family: var(--font-family-yugothic-medium);
    font-size: 24px;
    font-weight: 500;
    padding: 16px;
    width: 100%;
    box-sizing: border-box;
    resize: vertical;
}

.contact .form-textarea::placeholder {
    color: #999;
}

/* --- 入力行 --- */
.contact .input-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.contact .input-row .form-input,
.contact .input-row .form-select {
    flex: 1;
    min-width: 0;
}

.contact .input-row.phone {
    gap: 5px;
}

.contact .input-prefix {
    color: var(--black);
    font-family: var(--font-family-yugothic-medium);
    font-size: 24px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.contact .input-suffix {
    color: var(--black);
    font-family: var(--font-family-yugothic-medium);
    font-size: 24px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.contact .input-row .form-input.half {
    flex: 1;
    width: auto;
}

.contact .phone-part {
    width: 100px !important;
}

.contact .phone-sep {
    color: var(--black);
    font-family: var(--font-family-yugothic-medium);
    font-size: 24px;
}

/* --- チェックボックス --- */
.contact .checkbox-label {
    color: var(--apple);
    font-family: var(--font-family-yugothic-bold);
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.contact .checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
}

/* --- プライバシーポリシー --- */
.contact .privacy-agree-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-family: var(--font-family-yugothic-medium);
    font-size: 22px;
    font-weight: 500;
}

.contact .privacy-agree-label span {
    color: var(--black);
}

.contact .privacy-agree-label input[type="checkbox"] {
    width: 24px;
    height: 24px;
}

.contact .privacy-link {
    color: var(--apple);
    text-decoration: underline;
    text-decoration-color: var(--apple);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.contact .privacy-notes {
    font-size: 18px;
    color: #666;
    margin-top: 12px;
    line-height: 1.6;
}

/* --- 送信ボタン --- */
.contact .submit-area {
    display: flex;
    justify-content: center;
    margin: 50px 0 60px;
    z-index: 2;
}

.contact .submit-button {
    align-items: center;
    background-color: var(--java);
    background-image: url('../img/cardboard-texture_200px.png');
    background-blend-mode: multiply;
    border: none;
    border-radius: 50px;
    color: var(--white);
    cursor: pointer;
    display: flex;
    font-family: var(--font-family-yugothic-bold);
    font-size: 32px;
    font-weight: 700;
    gap: 16px;
    justify-content: center;
    letter-spacing: 2px;
    min-width: 400px;
    padding: 20px 50px;
    transition: opacity 0.3s;
}

.contact .submit-button:hover {
    opacity: 0.85;
}

.contact .submit-button .arrow {
    font-size: 24px;
}

/* --- サンクスページ --- */
.contact .thanks-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 60px;
    margin-bottom: 60px;
    padding: 60px 50px;
    width: 100%;
    max-width: 1200px;
    box-sizing: border-box;
}

.contact .thanks-title {
    color: var(--apple);
    font-family: var(--font-family-yugothic-bold);
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
}

.contact .thanks-message {
    color: var(--black);
    font-family: var(--font-family-yugothic-medium);
    font-size: 24px;
    font-weight: 500;
    line-height: 2;
    text-align: center;
}

/* --- 確認ページ --- */
.contact .confirm-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid #ddd;
}

.contact .confirm-label {
    color: var(--apple);
    font-family: var(--font-family-yugothic-bold);
    font-size: 26px;
    font-weight: 700;
    line-height: 1.8;
    min-width: 340px;
    flex-shrink: 0;
}

.contact .confirm-value {
    color: var(--black);
    font-family: var(--font-family-yugothic-medium);
    font-size: 26px;
    font-weight: 500;
    line-height: 1.8;
    flex: 1;
    word-break: break-all;
}

.contact .confirm-buttons {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
    margin-bottom: 20px;
}

.contact .back-button {
    align-items: center;
    background-color: #999;
    border: none;
    border-radius: 50px;
    color: var(--white);
    cursor: pointer;
    display: flex;
    font-family: var(--font-family-yugothic-bold);
    font-size: 28px;
    font-weight: 700;
    gap: 16px;
    justify-content: center;
    letter-spacing: 2px;
    min-width: 320px;
    padding: 18px 40px;
    transition: opacity 0.3s;
}

.contact .back-button:hover {
    opacity: 0.85;
}

.contact .back-button .arrow {
    font-size: 22px;
}

/* --- フッター --- */
.contact .footer-container {
    background-color: var(--fun-green);
    height: 161px;
    position: relative;
    width: 100%;
    max-width: 1920px;
    z-index: 2;
}