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

/* ページヒーロー */
.page-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--ocean-blue) 100%);
    z-index: 1;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1516321318423-f06f85e504b3?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1920&q=80') center center/cover;
    opacity: 0.4;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- hero-contact-infoのデザイン再調整 --- */
.hero-contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    max-width: 900px;
    margin: 0 auto 2rem auto;
}

.contact-item {
    flex: 1 1 220px;
    min-width: 180px;
    max-width: 260px;
    box-sizing: border-box;
    background: rgba(255,255,255,0.18);
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.25);
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 16px rgba(36,113,163,0.07);
    transition: box-shadow 0.3s, transform 0.3s;
}

.contact-item:hover {
    box-shadow: 0 8px 32px rgba(36,113,163,0.15);
    transform: translateY(-4px) scale(1.03);
}

.contact-icon img, .contact-icon {
    width: 38px;
    height: 38px;
    margin-bottom: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    line-height: 1;
}

.contact-label {
    font-size: 0.95rem;
    color: #eaf6fb;
    opacity: 0.85;
    margin-bottom: 0.2rem;
}

.contact-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
}

/* お問い合わせフォーム */
.contact-form-section {
    padding: 6rem 0 8rem 0; /* 下側のパディングを増やしてシャドウ用の余白確保 */
    background: #f8fafc;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 3rem 3rem 6rem 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin-bottom:50px;
    width: 100%;
}

.form-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--ocean-blue));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
    font-weight: 300;
    line-height: 1.6;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
/* はみ出し防止のためフォーム配下はボックスサイズと最大幅を統一 */
.contact-form, .contact-form * {
    box-sizing: border-box;
    max-width: 100%;
}

.contact-form .form-status {
    min-height: 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-blue);
    text-align: center;
    transition: color 0.2s ease;
}

.contact-form .form-status.is-error {
    color: #e53e3e;
}

.contact-form .form-status.is-success {
    color: #0f8a5f;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.required {
    color: #e53e3e;
    font-weight: 700;
}

.form-input,
.form-select,
.form-textarea {
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
    width: 100%;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #a0aec0;
}

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

.form-error {
    color: #e53e3e;
    font-size: 0.9rem;
    margin-top: 0.25rem;
    display: none;
}

.form-error.show {
    display: block;
}

.privacy-agreement {
    margin-top: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.6;
    flex-wrap: wrap; /* 狭い画面で折返し許可 */
}
.checkbox-text { flex: 1; min-width: 0; word-break: break-word; overflow-wrap: anywhere; }

/* セクション横スクロール抑止 */
.contact-form-section .container {
    overflow-x: hidden;
    overflow-y: visible;
}
.form-container {
    overflow: visible;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
    margin-top: 0.1rem;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
}

.checkbox-text a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
}

.checkbox-text a:hover {
    text-decoration: underline;
}

.form-submit {
    text-align: center;
    margin-top: 2rem;
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary-blue), var(--ocean-blue));
    color: white;
    border: none;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 200px;
    justify-content: center;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn-submit:hover .btn-icon {
    transform: translateX(3px);
}

/* 連絡先情報 */
.contact-info {
    padding: 6rem 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.info-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-blue);
}

.info-icon {
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    display: block;
    margin: 0 auto 1.5rem;
    box-shadow: none;
}

.info-icon img {
    width: auto;
    height: 48px;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

.info-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.info-main {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.info-sub {
    font-size: 1rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.info-note {
    font-size: 0.9rem;
    color: var(--text-gray);
    font-style: italic;
}

/* 会社情報 */
.company-info {
    padding: 6rem 0;
    background: #f8fafc;
}

.company-info-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.company-details .section-title {
    text-align: left;
}

.company-details .section-title::after {
    left: 0;
    transform: none;
}

.company-table {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-top: 2rem;
}

.table-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    border-bottom: 1px solid #e2e8f0;
}

.table-row:last-child {
    border-bottom: none;
}

.table-label {
    padding: 1.5rem;
    background: #f8fafc;
    font-weight: 600;
    color: var(--text-dark);
    border-right: 1px solid #e2e8f0;
}

.table-value {
    padding: 1.5rem;
    color: var(--text-gray);
    line-height: 1.6;
}

.access-info {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.access-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
    position: relative;
}

.access-info h3::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-blue);
    border-radius: 2px;
}

.access-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.access-method {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 15px;
}

.access-icon {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--ocean-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.access-text h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.access-text p {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.6;
}

.map-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.map-container img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.map-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 1.5rem;
}

.map-overlay h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.map-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* よくある質問 */
.faq-section {
    padding: 6rem 0;
    background: white;
}

.faq-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.faq-category {
    background: #f8fafc;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.category-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-blue);
    border-radius: 2px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #f8fafc;
}

.faq-question h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-gray);
    margin: 0;
}

/* 採用ボタンは .fixed-recruit-btn + .btn を使用（共通スタイル） */

/* レスポンシブ対応 */
@media (max-width: 968px) {
    .page-title {
        font-size: 2.5rem;
    }
    
    .hero-contact-info {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .contact-item {
        min-width: 250px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .form-container {
        padding: 2rem 2rem 4rem 2rem;
    }
    
    .company-info-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .faq-categories {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .page-hero {
        height: 50vh;
        min-height: 300px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1.1rem;
    }
    
    .contact-form-section,
    .contact-info,
    .company-info,
    .faq-section {
        padding: 4rem 0;
        padding-bottom: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .form-container {
        padding: 1.5rem 1.5rem 4rem 1.5rem;
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr;
    }
    
    .info-card {
        padding: 2rem 1.5rem;
    }
    
    .access-info {
        padding: 2rem;
    }
    
    .access-method {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .faq-category {
        padding: 2rem;
    }

    .hero-contact-info {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        max-width: 100%;
    }
    .contact-item {
        min-width: 180px;
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.8rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .contact-item {
        min-width: 200px;
        padding: 0.8rem 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .form-container {
        padding: 1rem 1rem 3rem 1rem;
    }
    
    .btn-submit {
        padding: 1rem 2rem;
        font-size: 1rem;
        min-width: 160px;
    }
    
    .info-card {
        padding: 1.5rem;
    }
    
    .info-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .table-row {
        grid-template-columns: 1fr;
    }
    
    .table-label {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }
    
}

/* アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-card,
.faq-item {
    animation: fadeInUp 0.6s ease-out;
}

/* スクロールアニメーション用 */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* フォーム送信中のローディング */
.btn-submit.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-submit.loading .btn-text::after {
    content: '...';
    animation: loading 1s infinite;
}

@keyframes loading {
    0%, 33% { content: '...'; }
    34%, 66% { content: '....'; }
    67%, 100% { content: '.....'; }
} 

/* --- 追加: ヘッダー分の余白をmain/page-heroに追加 --- */
.main,
.page-hero {
    padding-top: 80px;
}

@media (max-width: 968px) {
    .main,
    .page-hero {
        padding-top: 70px;
    }
}

@media (max-width: 480px) {
    .main,
    .page-hero {
        padding-top: 60px;
    }
} 

@media (max-width: 900px) {
    .hero-contact-info {
        gap: 1rem;
        max-width: 100%;
    }
    .contact-item {
        min-width: 140px;
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .hero-contact-info {
        flex-direction: column;
        align-items: center;
        gap: 0.7rem;
    }
    .contact-item {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        margin-bottom: 0;
    }
} 

/* Fix: align section title underline by disabling global decoration on this page */
.site-energy .contact-form-section .section-header h2::after,
.site-energy .contact-info .section-header h2::after,
.site-energy .faq-section .section-header h2::after {
    display: none !important;
} 