/* ===== contact.css - お問合せページ専用スタイル ===== */

/* ===================================================
   ページ導入文
   ================================================ */
.page-intro {
    text-align: center;
    padding: 80px 20px 60px;
    background-color: #f8f9fa;
}

.page-intro p {
    font-size: 20px;
    color: #334636;
    margin: 0;
    line-height: 1.6;
    font-weight: 600;
}

/* ===================================================
   お問合せ方法セクション
   ================================================ */
.page-contact {
    padding: 0 20px 40px;
}

.page-contact__container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding: 0 20px;
}

.page-contact__method {
    flex: 1;
    text-align: center;
    padding: 40px 30px;
    background-color: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 5px;
    
    /* 初期表示アニメーション */
    opacity: 0;
    transform: translateY(30px);
    animation: contactMethodShow 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

/* 順次表示のディレイ */
.page-contact__method:nth-child(1) {
    animation-delay: 0.2s;
}

.page-contact__method:nth-child(2) {
    animation-delay: 0.4s;
}

.page-contact__method:nth-child(3) {
    animation-delay: 0.6s;
}

/* 初期表示アニメーション定義 */
@keyframes contactMethodShow {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ホバー効果 */
.page-contact__method:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* ホバー時の装飾効果 */
.page-contact__method::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(73, 150, 92, 0.1) 0%, transparent 70%);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 0;
}

.page-contact__method:hover::after {
    width: 200px;
    height: 200px;
}

.page-contact__method:hover .page-contact__icon {
    transform: scale(1.1) rotate(5deg);
}

.page-contact__method:hover .page-contact__icon img {
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
}

.page-contact__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.page-contact__icon img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.page-contact__content {
    position: relative;
    z-index: 1;
}

.page-contact__title {
    font-size: 24px;
    color: #334636;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.page-contact__label {
    font-size: 15px;
    color: #666;
    margin: 0 0 5px 0;
    font-weight: 500;
}

.page-contact__detail {
    font-size: 20px;
    color: #333;
    font-weight: bold;
    margin: 0 0 10px 0;
}

.page-contact__info {
    font-size: 15px;
    line-height: 1.4;
    color: #666;
    margin: 0;
}

.page-contact__method--clickable {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

/* ===================================================
   フォームセクション
   ================================================ */
.contact-form-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 80px;
}

.contact-form__title {
    font-size: 28px;
    color: #334636;
    text-align: center;
    margin: 0 0 40px 0;
    font-weight: 600;
}

.contact-form {
    background-color: #fff;
    padding: 50px 60px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border-radius: 5px;
}

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

.form-group label {
    display: block;
    font-size: 16px;
    color: #333;
    margin-bottom: -10px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #49564b;
}

.form-group select {
    background-color: #fff;
    cursor: pointer;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-checkbox {
    margin: 32px 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.form-checkbox input[type="checkbox"] {
    margin: 0;
    flex-shrink: 0;
}

.form-checkbox label {
    font-size: 14px;
    color: #333;
    margin: 0;
    cursor: pointer;
    line-height: 1.4;
}

.form-submit {
    text-align: center;
    margin-top: 32px;
}

.form-note {
    font-size: 13px;
    color: #999;
    margin: 8px 0 0 0;
    line-height: 1.4;
    font-weight: 400;
}

.submit-btn {
    background-color: #49564b;
    color: #fff;
    border: none;
    padding: 16px 80px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-width: 200px;
}

.submit-btn:hover {
    background-color: #3a453c;
}

/* ===================================================
   Contact Form 7 設定
   ================================================ */
/* ボタンセンター配置 */
.wpcf7-form p:has(.wpcf7-submit) {
    text-align: center;
}

/* 元のスピナーを完全に非表示 */
.wpcf7-spinner {
    display: none !important;
}

/* 画面全体のローディングオーバーレイ */
.wpcf7-form.submitting::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ローディングスピナー */
.wpcf7-form.submitting::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #49564b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10000;
}

/* スピナーアニメーション */
@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ローディング中のボタン状態 */
.wpcf7-form.submitting .submit-btn {
    opacity: 0.7;
    pointer-events: none;
}

/* ===================================================
   レスポンシブ対応
   ================================================ */
@media (max-width: 1024px) {
    .page-contact__container {
        gap: 30px;
    }
    
    .page-contact__method {
        padding: 35px 25px;
    }
}

@media (max-width: 768px) {
    .page-intro {
        padding: 60px 35px;
    }

    .page-intro p {
        font-size: 18px;
    }
    
    .page-contact {
        padding: 0 0 40px;
    }
    
    .page-contact__container {
        flex-direction: column;
        gap: 25px;
        padding: 0;
    }
    
    /* スマホ版：横並びレイアウト */
    .page-contact__method {
        display: flex;
        align-items: flex-start;
        text-align: left;
        gap: 35px;
        padding: 25px 30px;
        margin: 0 auto;
        max-width: 100%;
        width: 100%;
    
    /* モバイル用アニメーション調整 */
    animation: contactMethodShowMobile 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
    
    /* モバイルでのディレイ調整 */
    .page-contact__method:nth-child(1) {
        animation-delay: 0.1s;
    }
    
    .page-contact__method:nth-child(2) {
        animation-delay: 0.2s;
    }
    
    .page-contact__method:nth-child(3) {
        animation-delay: 0.3s;
    }
    
    /* モバイル用アニメーション定義 */
    @keyframes contactMethodShowMobile {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* モバイルではホバー効果の装飾を無効化 */
    .page-contact__method::after {
        display: none;
    }
    
    .page-contact__method:hover .page-contact__icon {
        transform: none;
    }
    
    .page-contact__method:hover .page-contact__icon img {
        filter: none;
    }
    
    /* アクティブ状態でシンプルな反応 */
    .page-contact__method:active {
        transform: translateY(-1px);
        transition: transform 0.1s ease;
    }
    
    .page-contact__icon {
        flex-shrink: 0;
        margin: 20px 0;
    }
       
    .page-contact__content {
        flex: 1;
    }
    
    .page-contact__title {
        font-size: 18px;
        margin: 0 0 5px;
    }
    
    .page-contact__detail {
        font-size: 16px;
    }
    
    .page-contact__info {
        font-size: 13px;
    }
    
    .contact-form-section {
        padding: 20px 0 60px;
    }
    
    .contact-form__title {
        font-size: 20px;
        margin-bottom: 30px;
    }
    
    .contact-form {
        padding: 30px 20px;
    }

    .form-checkbox p {
        font-size: 15px;
    }
    
    .submit-btn {
        padding: 14px 60px;
        font-size: 15px;
        min-width: 180px;
    }
}

@media (max-width: 480px) {
    .page-contact__method {
        padding: 20px 30px;
    }
    
    .contact-form {
        padding: 25px 15px;
    }
    
    .submit-btn {
        padding: 12px 40px;
        min-width: 160px;
    }
	
	.page-contact__icon img {
        width: 65px;
        height: 65px;
	}

/* ===================================================
   アクセシビリティ対応
   ================================================ */
@media (prefers-reduced-motion: reduce) {
    .page-contact__method {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    
    .page-contact__method::after {
        display: none !important;
    }
    
    .page-contact__method:hover .page-contact__icon,
    .page-contact__method:hover .page-contact__icon img {
        transform: none !important;
        filter: none !important;
    }
}