/* ========================================
   お問い合わせページ専用スタイル
======================================== */

/* ========================================
   メインコンテンツ（お問い合わせページ用）
======================================== */
/* トップページのpadding-topを無効化 */
.main-content {
    padding-top: 56px !important;
}

@media (min-width: 1080px) {
    .main-content {
        padding-top: 80px !important;
    }

}

/* ========================================
   ページヒーローセクション
======================================== */
.page-hero {
    width: 100%;
    height: clamp(280px, 50vw, 400px);
    position: relative;
    background: url('../images/contact-image.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.page-hero__content {
    width: 100%;
    height: 100%;
    max-width: var(--container-width);
    padding: 0 var(--padding-sp);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.page-hero__title {
    font-family: var(--font-ja);
    font-size: clamp(2rem, 6vw, 3.75rem);
    font-weight: 400;
    color: var(--color-white);
    letter-spacing: var(--heading-letter-spacing);
    line-height: var(--heading-line-height);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
    text-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.5),
        0 4px 16px rgba(0, 0, 0, 0.3);
}

@media (min-width: 1080px) {
    .page-hero {
        height: auto;
        aspect-ratio: 16 / 6;
        min-height: 320px;
        max-height: 560px;
    }
    
    .page-hero__content {
        padding: 0 var(--padding-pc);
    }
}

/* ========================================
   お問い合わせイントロセクション
======================================== */
.contact-intro-section {
    width: 100%;
    padding: var(--section-padding-sp) var(--section-padding-sp);
    position: relative;
    z-index: 2;
    background-color: var(--color-white);
    margin-top: 0px;
}

.contact-intro-section__inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* イントロブロック */
.contact-intro-block {
    display: flex;
    flex-direction: column;
    gap: clamp(0.5rem, 1.5vw, 0.75rem);
}

.contact-intro-block__header {
    background: linear-gradient(180deg, #A389BD 0%, #7c5d94 100%);
    padding: clamp(0.5rem, 1.5vw, 0.75rem) clamp(1rem, 2vw, 1.5rem);
    border-radius: 3px;
}

.contact-intro-block__title {
    font-family:  var(--font-ja);
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    font-weight: 600;
    color: var(--color-white);
    text-align: left;
}

.contact-intro-block__content {
    display: flex;
    flex-direction: column;
    gap: clamp(0.5rem, 1vw, 0.75rem);
}

/* 電話番号グループ */
.contact-intro-block__phone-group {
    display: flex;
    align-items: center;
    gap: clamp(0.5rem, 1vw, 0.75rem);
}

.contact-intro-block__phone-label {
    font-family:  var(--font-ja);
    font-size: clamp(0.875rem, 2vw, 1rem);
    font-weight: 500;
    color: var(--color-text);
}

.contact-intro-block__phone {
    font-family: 'Cormorant Infant', serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-intro-block__phone:hover {
    color: var(--color-primary);
    opacity: 1;
}

.contact-intro-block__hours {
    font-family:  var(--font-ja);
    font-size: clamp(0.875rem, 2vw, 1rem);
    font-weight: 400;
    color: var(--color-text);
}

.contact-intro-block__description {
    font-family:  var(--font-ja);
    font-size: clamp(1rem, 2vw, 1.1rem);
    font-weight: 400;
    color: var(--color-text);
    line-height: 1.7;
}

@media (min-width: 768px) {
    .contact-intro-section {
        padding: var(--section-padding-pc) var(--section-padding-pc);
        margin-top: 64px;
    }
    
    .contact-intro-block__header {
        text-align: center;
        padding: clamp(0.5rem, 1vw, 0.625rem) clamp(1rem, 2vw, 1.5rem);
        border-radius: 4px;
    }
    
    .contact-intro-block__title {
        text-align: center;
        font-size: clamp(1.25rem, 2vw, 1.5rem);
    }
    
    .contact-intro-block__content {
        text-align: center;
    }
    
    .contact-intro-block__phone-group {
        justify-content: center;
    }
    
    .contact-intro-block__phone {
        font-size: clamp(1.75rem, 3vw, 2rem);
    }
}

/* ========================================
   フォームラッパー
======================================== */
.contact-form-wrapper {
    padding: clamp(1.25rem, 3vw, 1.5rem) clamp(0.5rem, 2vw, 1.25rem);
    outline: 1px solid #A3A3A3;
    outline-offset: -1px;
    border-radius: 4px;
}

@media (min-width: 768px) {
    .contact-form-wrapper {
        padding: clamp(1.5rem, 3vw, 1.75rem) clamp(1.25rem, 3vw, 1.5rem);
        border-radius: 6px;
    }
}

/* ========================================
   フォームグループ
======================================== */
.contact-form__group {
    margin-bottom: 1.25rem;
}

.contact-form__group:last-of-type {
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .contact-form__group {
        margin-bottom: 1.5rem;
    }
}

/* ========================================
   ラベルとバッジ
======================================== */
.contact-form__label-wrapper {
    display: flex;
    align-items: center;
    gap: clamp(0.375rem, 1vw, 0.5rem);
    margin-bottom: clamp(0.25rem, 1vw, 0.375rem);
}

.contact-form__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.125rem, 0.5vw, 0.1875rem) clamp(0.25rem, 0.8vw, 0.375rem);
    font-family: 'Noto Sans JP', sans-serif;
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
    font-weight: 500;
    border-radius: 2px;
    line-height: 1;
}

.contact-form__badge--required {
    background: var(--color-primary);
    color: var(--color-white);
}

.contact-form__badge--optional {
    outline: 1px solid var(--color-primary);
    outline-offset: -1px;
    color: var(--color-primary);
}

.contact-form__label {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: clamp(0.875rem, 1.8vw, 1rem);
    font-weight: 600;
    color: var(--color-text);
}

/* ========================================
   入力フィールド共通スタイル
======================================== */
.contact-form__input,
.contact-form__textarea {
    width: 100% !important;
    padding: clamp(0.5rem, 1.5vw, 1rem) clamp(0.5rem, 2vw, 1.25rem);
    font-family: 'Noto Sans JP', sans-serif;
    font-size: clamp(0.875rem, 1.8vw, 1rem);
    line-height: 1.5;
    color: var(--color-text);
    background-color: var(--color-white);
    outline: 1px solid #D5D5D5;
    outline-offset: -1px;
    border: none;
    border-radius: clamp(2px, 0.5vw, 3px);
    transition: outline-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form__input {
    height: clamp(48px, 10vw, 60px);
}

.contact-form__input:focus,
.contact-form__textarea:focus {
    outline-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(106, 76, 147, 0.1);
}

.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
    color: #A3A3A3;
}

/* テキストエリア */
.contact-form__textarea {
    resize: none;
    min-height: clamp(160px, 30vw, 160px);
    height: 160px;
    padding-top: clamp(0.5rem, 1.5vw, 1rem);
    padding-bottom: clamp(0.5rem, 1.5vw, 1rem);
}

/* ========================================
   ラジオボタングループ
======================================== */
.contact-form__radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(0.625rem, 2vw, 1rem);
    padding: clamp(0.5rem, 1.5vw, 1rem);
    height: auto;
    min-height: clamp(48px, 10vw, 60px);
}

.contact-form__radio-label {
    display: flex;
    align-items: center;
    gap: clamp(0.125rem, 0.5vw, 0.25rem);
    cursor: pointer;
    padding: clamp(0.375rem, 1vw, 0.5rem) 0;
}

.contact-form__radio {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid var(--color-primary);
    border-radius: 50%;
    background-color: var(--color-white);
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.contact-form__radio:checked {
    background-color: var(--color-white);
}

.contact-form__radio:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: var(--color-primary);
    border-radius: 50%;
}

/* .contact-form__radio:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
} */

.contact-form__radio-text {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: clamp(0.875rem, 1.8vw, 1rem);
    font-weight: 400;
    color: var(--color-text);
}

@media (min-width: 768px) {
    .contact-form__radio-group {
        gap: clamp(0.75rem, 2vw, 1.25rem);
        padding: clamp(0.75rem, 2vw, 1.25rem);
    }
}

/* ========================================
   送信ボタン
======================================== */
.contact-form__submit {
    text-align: center;
    margin-top: clamp(2rem, 4vw, 3rem);
}

.contact-form__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.5rem, 1.5vw, 0.75rem);
    padding: clamp(0.875rem, 2vw, 1rem) clamp(1.5rem, 3vw, 2rem);
    font-family: 'Noto Sans JP', sans-serif;
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 400;
    color: var(--color-white);
    background: linear-gradient(135deg, #A389BD 0%, #7c5d94 100%);
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(106, 76, 147, 0.3);
}

.contact-form__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(106, 76, 147, 0.4);
    opacity: 0.9;
}

.contact-form__button:active {
    transform: translateY(0);
}

.contact-form__button-icon {
    width: clamp(20px, 4vw, 28px);
    height: clamp(20px, 4vw, 28px);
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .contact-form__button-icon {
        width: 28px;
        height: 28px;
    }
    .contact-form__button {
        border-radius: 4px;
    }
}


/* ========================================
   アコーディオン
======================================== */
.privacy-accordion {
    margin-top: 2rem;
}

.privacy-accordion__header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(1rem, 2vw, 1.25rem) clamp(1.25rem, 3vw, 1.5rem);
    background: linear-gradient(180deg, #A389BD 0%, #7c5d94 100%);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.privacy-accordion__header.is-open {
    border-radius: 3px 3px 0 0;
}

.privacy-accordion__title {
    font-family: var(--font-ja);
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    font-weight: 500;
    color: var(--color-white);
    text-align: left;
}

.privacy-accordion__icon {
    font-family: var(--font-ja);
    font-size: clamp(1.5rem, 3vw, 1.75rem);
    font-weight: 300;
    color: var(--color-white);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

.privacy-accordion__icon:hover {
    opacity: 0.8;
}

/* アコーディオンコンテンツ */
.privacy-accordion__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.privacy-accordion__content.is-open {
    max-height: 480px;
    overflow-y: scroll;
    overflow-x: hidden;
    border: 1px solid #e5e5e5;
    border-top: none;
    border-radius: 0 0 3px 3px;
}

.privacy-accordion__body {
    padding: clamp(1.25rem, 3vw, 1.5rem);
    background: #f8f9fa;
    font-family: var(--font-ja);
    font-size: clamp(0.875rem, 1.8vw, 0.9375rem);
    font-weight: 400;
    color: var(--color-text);
    line-height: var(--body-line-height-sp);
}

.privacy-accordion__body p {
    margin-bottom: 1em;
}

.privacy-accordion__body p:last-child {
    margin-bottom: 0;
}

.privacy-accordion__body strong {
    font-weight: 600;
    color: var(--color-primary);
}

@media (min-width: 768px) {


    .privacy-accordion__header {
        padding: clamp(1rem, 2vw, 1.25rem) clamp(1.5rem, 3vw, 2rem);
        border-radius: 4px;
    }

    .privacy-accordion__header.is-open {
        border-radius: 4px 4px 0 0;
    }
    
    .privacy-accordion__body {
        padding: clamp(1.5rem, 3vw, 2rem);
    }
}

/* ========================================
   送信完了ポップアップ
======================================== */
.thanks-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: clamp(60px, 15vh, 120px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.thanks-popup.is-active {
    opacity: 1;
    visibility: visible;
}

/* 背景オーバーレイ */
.thanks-popup__backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: -1;
}

/* ポップアップコンテンツ */
.thanks-popup__content {
    position: relative;
    width: 90%;
    max-width: 600px;
    background: var(--color-white);
    border-radius: 8px;
    padding: clamp(2rem, 5vw, 3rem) clamp(1.5rem, 4vw, 2.5rem);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: popupSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 閉じるボタン */
.thanks-popup__close {
    position: absolute;
    top: clamp(0.75rem, 2vw, 1rem);
    right: clamp(0.75rem, 2vw, 1rem);
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
    z-index: 1;
}

.thanks-popup__close:hover {
    opacity: 0.7;
}

.thanks-popup__close-bar {
    position: absolute;
    width: 20px;
    height: 2px;
    background: #666;
    transition: background 0.2s ease;
}

.thanks-popup__close-bar:first-child {
    transform: rotate(45deg);
}

.thanks-popup__close-bar:last-child {
    transform: rotate(-45deg);
}

.thanks-popup__close:hover .thanks-popup__close-bar {
    background: #333;
}

/* アイコン */
.thanks-popup__icon {
    display: flex;
    justify-content: center;
    margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
}

.thanks-popup__icon svg {
    width: clamp(60px, 15vw, 80px);
    height: clamp(60px, 15vw, 80px);
    animation: checkmarkDraw 0.6s ease-out 0.2s both;
}

@keyframes checkmarkDraw {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* タイトル */
.thanks-popup__title {
    font-family: var(--font-ja);
    font-size: clamp(1.25rem, 4vw, 1.75rem);
    font-weight: 500;
    color: var(--color-text);
    text-align: center;
    margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
    line-height: var(--heading-line-height);
}

/* テキスト */
.thanks-popup__text {
    font-family: var(--font-ja);
    font-size: clamp(0.9375rem, 2vw, 1.0625rem);
    font-weight: 400;
    color: var(--color-text);
    text-align: center;
    line-height: 1.75;
    letter-spacing: var(--body-letter-spacing);
    margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
}

/* 注釈 */
.thanks-popup__note {
    font-family: var(--font-ja);
    font-size: clamp(0.8125rem, 1.8vw, 0.875rem);
    font-weight: 400;
    color: #666;
    line-height: 1.7;
    letter-spacing: var(--body-letter-spacing);
    padding: clamp(1rem, 2vw, 1.25rem);
    background-color: #f8f9fa;
    border-left: 3px solid var(--color-primary);
    text-align: left;
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

/* ボタン */
.thanks-popup__button {
    display: block;
    width: 100%;
    padding: clamp(0.875rem, 2vw, 1rem) clamp(2rem, 5vw, 2.5rem);
    font-family: var(--font-ja);
    font-size: clamp(1rem, 2vw, 1.125rem);
    font-weight: 500;
    color: var(--color-white);
    background: linear-gradient(135deg, #A389BD 0%, #7c5d94 100%);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(106, 76, 147, 0.3);
}

.thanks-popup__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(106, 76, 147, 0.4);
    opacity: 0.9;
}

.thanks-popup__button:active {
    transform: translateY(0);
}

@media (min-width: 768px) {
    .thanks-popup {
        padding-top: clamp(80px, 15vh, 150px);
    }
    
    .thanks-popup__content {
        padding: clamp(2.5rem, 5vw, 3.5rem) clamp(2rem, 5vw, 3rem);
    }
}

/* ========================================
   送信完了ページ
======================================== */
.thanks-section {
    width: 100%;
    padding: clamp(3rem, 6vw, 4rem) var(--padding-sp);
    position: relative;
    z-index: 2;
    background-color: var(--color-white);
}

.thanks-section__inner {
    max-width: 800px;
    margin: 0 auto;
}

/* 送信完了メッセージ */
.thanks-message {
    text-align: center;
    padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 3vw, 2rem);
}

.thanks-message__icon {
    display: flex;
    justify-content: center;
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

.thanks-message__icon svg {
    width: clamp(60px, 15vw, 80px);
    height: clamp(60px, 15vw, 80px);
}

.thanks-message__title {
    font-family: var(--font-ja);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
    line-height: var(--heading-line-height);
}

.thanks-message__text {
    font-family: var(--font-ja);
    font-size: clamp(1rem, 2vw, 1.125rem);
    font-weight: 400;
    color: var(--color-text);
    line-height: var(--body-line-height-sp);
    letter-spacing: var(--body-letter-spacing);
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

.thanks-message__note {
    font-family:  var(--font-ja);
    font-size: clamp(0.875rem, 2vw, 0.9375rem);
    font-weight: 400;
    color: #666;
    line-height: var(--body-line-height-sp);
    letter-spacing: var(--body-letter-spacing);
    padding: clamp(1rem, 2vw, 1.5rem);
    background-color: #f8f9fa;
    border-left: 4px solid var(--color-primary);
    text-align: left;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.thanks-message__actions {
    display: flex;
    justify-content: center;
}

.thanks-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: clamp(200px, 50vw, 280px);
    padding: clamp(0.875rem, 2vw, 1rem) clamp(2rem, 5vw, 2.5rem);
    font-family:  var(--font-ja);
    font-size: clamp(1rem, 2vw, 1.125rem);
    font-weight: 500;
    color: var(--color-white);
    background: linear-gradient(135deg, var(--color-primary) 0%, #8B6BB7 100%);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: var(--button-letter-spacing);
    box-shadow: 0 4px 12px rgba(106, 76, 147, 0.3);
    text-decoration: none;
}

.thanks-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(106, 76, 147, 0.4);
    opacity: 0.9;
}

.thanks-button:active {
    transform: translateY(0);
}

@media (min-width: 768px) {
    .thanks-section {
        padding: clamp(4rem, 6vw, 5rem) var(--padding-pc);
    }
    
    .thanks-message__text {
        line-height: var(--body-line-height-pc);
    }
    
    .thanks-message__note {
        line-height: var(--body-line-height-pc);
    }
    
    .thanks-button {
        min-width: 280px;
    }
}

/* ========================================
   アクセシビリティ対応
======================================== */
@media (prefers-reduced-motion: reduce) {
    .contact-form__input,
    .contact-form__textarea,
    .contact-form__button,
    .privacy-accordion__header,
    .privacy-accordion__content {
        transition: none;
    }
}

/* ========================================
   印刷時のスタイル
======================================== */
@media print {
    .contact-form-section {
        padding: 2rem 0;
    }
    
    .contact-form__button {
        display: none;
    }
    
    .privacy-accordion__content {
        max-height: none !important;
    }
}
