/* Contact Page - お問い合わせページ専用CSS */

/* カラー変数定義 */
:root {
    --primary: #62A490;
    --dark: #29594F;
    --secondary: #9DC4B9;
    --light: #E5F1EE;
    --accent: #D4A574;
    --gray: #333333;
}

/* =================================
   Simple Page Header
================================= */
/* シンプルなページヘッダー - SVG背景が見えるように改良 */
.simple-page-header {
    position: relative;
    padding: 160px 0 80px;
    background-color: rgba(255, 255, 255, 0); /* 背景を透明に */
    text-align: center;
    overflow: hidden;
    margin-top: 0;
    border-bottom: 1px solid var(--light);
    z-index: 5; /* 上位レイヤーに */
}

.simple-page-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.6));
    z-index: -1;
}

.page-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 52px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0;
    position: relative;
    display: inline-block;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.1), 0 0 20px rgba(255, 255, 255, 0.8);
    transition: transform 0.5s ease;
}

.simple-page-header:hover .page-title {
    transform: translateY(-5px);
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--accent), var(--primary));
}

/* =================================
   Back to Home Button
================================= */
.back-to-home-container {
    text-align: center;
    padding: 60px 0 80px;
    background: #FFFFFF;
}

/* 専用ボタンスタイル */
.back-to-home-link {
    display: inline-block;
    color: var(--gray);
    text-decoration: none;
    font-size: 15px;
    letter-spacing: 1.5px;
    position: relative;
    transition: all 0.3s ease;
    padding-bottom: 3px;
    border-bottom: 1px solid rgba(51, 51, 51, 0.3);
}

.back-to-home-link i,
.back-to-home-link svg {
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.back-to-home-link:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.back-to-home-link:hover i,
.back-to-home-link:hover svg {
    transform: translateX(-5px);
}

/* =================================
   Contact Form Section
================================= */
.contact-form-section {
    padding: 80px 0;
    background: #FFFFFF;
}

.contact-intro {
    text-align: center;
    margin-bottom: 60px;
}

.contact-description {
    font-size: 18px;
    line-height: 1.8;
    color: #333333;
    max-width: 600px;
    margin: 0 auto;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form-wrapper {
    background: white;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(98, 164, 144, 0.08);
    border: 1px solid #E5F1EE;
}

/* =================================
   Snow Monkey Form スタイル
================================= */

/* フォーム全体 */
.smf-form {
    font-family: 'M PLUS 1p', sans-serif;
}

/* 入力フィールド共通スタイル */
.smf-form input[type="text"],
.smf-form input[type="email"],
.smf-form input[type="tel"],
.smf-form input[type="url"],
.smf-form input[type="number"],
.smf-form textarea,
.smf-form select {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #E5F1EE;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'M PLUS 1p', sans-serif;
    background: #FFFFFF;
    transition: all 0.3s ease;
    box-sizing: border-box;
    line-height: 1.5;
}

.smf-form input[type="text"]:focus,
.smf-form input[type="email"]:focus,
.smf-form input[type="tel"]:focus,
.smf-form input[type="url"]:focus,
.smf-form input[type="number"]:focus,
.smf-form textarea:focus,
.smf-form select:focus {
    border-color: #62A490;
    outline: none;
    box-shadow: 0 0 0 4px rgba(98, 164, 144, 0.1);
    background: rgba(229, 241, 238, 0.1);
}

/* テキストエリア */
.smf-form textarea {
    min-height: 150px;
    resize: vertical;
    font-family: 'M PLUS 1p', sans-serif;
}

/* ラベル */
.smf-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #29594F;
    font-size: 15px;
    font-family: 'Noto Sans JP', sans-serif;
}

/* 必須マーク */
.smf-form .required::after {
    content: " *";
    color: #FFB3B3;
    font-weight: bold;
}

/* フォーム項目間隔 */
.smf-form .smf-item {
    margin-bottom: 30px;
}

/* 送信ボタン */
.smf-form input[type="submit"],
.smf-form button[type="submit"] {
    background: linear-gradient(135deg, #62A490 0%, #29594F 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 20px 50px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Noto Sans JP', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    box-shadow: 0 4px 15px rgba(98, 164, 144, 0.3);
}

.smf-form input[type="submit"]:hover,
.smf-form button[type="submit"]:hover {
    background: linear-gradient(135deg, #29594F 0%, #1a3d36 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(98, 164, 144, 0.4);
}

.smf-form input[type="submit"]:active,
.smf-form button[type="submit"]:active {
    transform: translateY(-1px);
}

/* チェックボックス・ラジオボタン */
.smf-form input[type="checkbox"],
.smf-form input[type="radio"] {
    width: auto;
    margin-right: 8px;
    accent-color: #62A490;
    transform: scale(1.2);
}

.smf-form .smf-checkbox-item,
.smf-form .smf-radio-item {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.smf-form .smf-checkbox-item label,
.smf-form .smf-radio-item label {
    margin-bottom: 0;
    font-weight: 400;
    cursor: pointer;
    line-height: 1.6;
}

/* エラーメッセージ */
.smf-form .smf-error {
    color: #FFB3B3;
    font-size: 14px;
    margin-top: 8px;
    font-weight: 500;
}

.smf-form .smf-item.smf-has-error input,
.smf-form .smf-item.smf-has-error textarea,
.smf-form .smf-item.smf-has-error select {
    border-color: #FFB3B3;
    background: rgba(255, 179, 179, 0.05);
}

/* =================================
   Direct Contact Section
================================= */
.direct-contact-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #E5F1EE 0%, rgba(229, 241, 238, 0.3) 100%);
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.contact-method {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(98, 164, 144, 0.1);
    border: 1px solid rgba(98, 164, 144, 0.1);
    transition: all 0.3s ease;
}

.contact-method:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(98, 164, 144, 0.15);
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #62A490 0%, #9DC4B9 100%);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.contact-icon i {
    font-size: 32px;
    color: white;
}

.contact-info h3 {
    font-size: 20px;
    font-weight: 700;
    color: #29594F;
    margin-bottom: 20px;
    font-family: 'Noto Sans JP', sans-serif;
}

.phone-number a,
.email-address a {
    font-size: 20px;
    font-weight: 600;
    color: #62A490;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.phone-number a:hover,
.email-address a:hover {
    color: #29594F;
    border-bottom-color: #29594F;
}

.business-hours,
.email-note,
.visit-note {
    font-size: 14px;
    color: #666666;
    margin-top: 8px;
    line-height: 1.6;
}

.office-address {
    font-size: 16px;
    color: #333333;
    line-height: 1.8;
    font-style: normal;
    margin-bottom: 10px;
}

/* =================================
   Service Area Section
================================= */
.service-area-section {
    padding: 80px 0;
    background: #FFFFFF;
}

.service-area-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
}

.area-info h3,
.service-info h3 {
    font-size: 24px;
    font-weight: 700;
    color: #29594F;
    margin-bottom: 20px;
    font-family: 'Noto Sans JP', sans-serif;
}

.area-info p {
    font-size: 16px;
    line-height: 1.8;
    color: #333333;
}

.service-info .service-list {
    list-style: none;
    padding: 0;
}

.service-info .service-list li {
    padding: 12px 0;
    border-bottom: 1px solid #E5F1EE;
    color: #333333;
    font-size: 16px;
    position: relative;
    padding-left: 25px;
}

.service-info .service-list li:last-child {
    border-bottom: none;
}

.service-info .service-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #62A490;
    font-weight: bold;
}

/* =================================
   Responsive Design
================================= */
@media screen and (max-width: 768px) {
    .simple-page-header {
        padding: 130px 0 60px;
    }
    
    .page-title {
        font-size: 38px;
    }
    
    /* 文字サイズ調整 - index.phpと統一 */
    .contact-description {
        font-size: 13px !important; /* 16px → 13px */
        line-height: 1.4 !important; /* 1.8 → 1.4 */
        letter-spacing: -0.2px !important;
        word-spacing: -1px !important;
    }
    
    .area-info p {
        font-size: 13px !important; /* 16px → 13px */
        line-height: 1.4 !important; /* 1.8 → 1.4 */
        letter-spacing: -0.2px !important;
    }
    
    .service-info .service-list li {
        font-size: 13px !important; /* 16px → 13px */
        line-height: 1.4 !important;
        letter-spacing: -0.2px !important;
    }
    
    .office-address {
        font-size: 13px !important; /* 16px → 13px */
        line-height: 1.4 !important; /* 1.8 → 1.4 */
        letter-spacing: -0.2px !important;
    }
    
    .business-hours,
    .email-note,
    .visit-note {
        font-size: 13px !important; /* 14px → 13px */
        line-height: 1.4 !important; /* 1.6 → 1.4 */
        letter-spacing: -0.2px !important;
    }
    
    .contact-form-section {
        padding: 60px 0;
    }
    
    .contact-form-wrapper {
        padding: 30px 20px;
        margin: 0 20px;
    }
    
    .direct-contact-section {
        padding: 60px 0;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 40px;
    }
    
    .contact-method {
        padding: 30px 20px;
    }
    
    .contact-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }
    
    .contact-icon i {
        font-size: 24px;
    }
    
    .contact-info h3 {
        font-size: 18px;
    }
    
    .phone-number a,
    .email-address a {
        font-size: 18px;
    }
    
    .service-area-section {
        padding: 60px 0;
    }
    
    .service-area-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .smf-form input[type="submit"],
    .smf-form button[type="submit"] {
        width: 100%;
        padding: 18px;
    }
}

@media screen and (max-width: 576px) {
    .simple-page-header {
        padding: 120px 0 50px;
    }
    
    .page-title {
        font-size: 32px;
    }
}

@media screen and (max-width: 480px) {
    .contact-intro {
        margin-bottom: 40px;
    }
    
    .contact-form-wrapper {
        margin: 0 10px;
        padding: 20px 15px;
    }
    
    .contact-method {
        padding: 25px 15px;
    }
    
    .smf-form input[type="text"],
    .smf-form input[type="email"],
    .smf-form input[type="tel"],
    .smf-form input[type="url"],
    .smf-form input[type="number"],
    .smf-form textarea,
    .smf-form select {
        padding: 14px 16px;
        font-size: 16px; /* iOS Safariのズーム防止 */
    }
}

/* =================================
   Print Styles
================================= */
@media print {
    .contact-form-section,
    .direct-contact-section,
    .service-area-section {
        padding: 20px 0;
    }
    
    .contact-form-wrapper {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .contact-method {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
    }
}
