/* AIソリューション相談ページ専用スタイル - 完全に独立したCSS */

/* 変数定義 */
:root {
    --primary-color: #2196f3;
    --secondary-color: #64b5f6;
    --accent-color: #e0e0e0;
    --dark-bg: #121212;
    --dark-bg-lighter: #1e1e1e;
    --text-color: #ffffff;
    --text-color-muted: #bdbdbd;
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    --container-width: 1200px;
}

/* ベーススタイル */
html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--dark-bg);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
}

/* 共通クラス */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    border-radius: 5px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    margin: 1rem;
}

.btn.primary {
    background-color: var(--primary-color);
    color: var(--text-color);
    box-shadow: 0 4px 10px rgba(33, 150, 243, 0.4);
}

.btn.primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(100, 181, 246, 0.5);
}

/* ヘッダー */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

#header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 1.5rem;
}

.logo-text h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 0.3rem 0;
}

.logo-text p {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin: 0;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: var(--transition);
}

.nav-menu {
    display: flex;
}

.nav-menu ul {
    display: flex;
    gap: 3rem;
}

.nav-item a {
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: var(--transition);
}

.nav-item a:hover {
    color: var(--primary-color);
}

/* ヒーローセクション */
.contact-hero {
    padding-top: 150px; /* ヘッダーの高さ + 余白 */
    padding-bottom: 80px;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-bg-lighter) 100%);
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/contact/tech-pattern.png');
    background-size: cover;
    opacity: 0.1;
    z-index: 0;
}

.contact-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-hero h2 {
    font-size: 4.2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(33, 150, 243, 0.3);
}

.contact-hero p {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 3rem;
}

/* お問い合わせフォームセクション */
.contact-form {
    padding: 8rem 0;
    background-color: var(--dark-bg);
    position: relative;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(33, 150, 243, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.contact-form .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

.contact-info {
    padding: 3rem;
    background-color: rgba(30, 30, 30, 0.5);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    height: fit-content;
}

.contact-info h3 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 2.5rem;
    position: relative;
}

.contact-info h3::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.contact-info p {
    font-size: 1.6rem;
    color: var(--text-color);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.contact-details {
    margin-top: 3rem;
}

.contact-detail {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.contact-detail i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 1.5rem;
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(33, 150, 243, 0.1);
    border-radius: 50%;
}

.contact-detail p {
    margin: 0;
    font-size: 1.5rem;
}

.form-container {
    background-color: rgba(30, 30, 30, 0.5);
    border-radius: 10px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 2.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-size: 1.5rem;
    color: var(--text-color);
}

.form-group .required {
    color: var(--primary-color);
    margin-left: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 1.2rem 1.5rem;
    font-size: 1.5rem;
    color: var(--text-color);
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.2);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23ffffff' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 1rem) center;
    padding-right: 3rem;
}

select.form-control option {
    background-color: var(--dark-bg-lighter);
    color: var(--text-color);
}

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

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 2.5rem;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 1rem;
    width: 1.8rem;
    height: 1.8rem;
    accent-color: var(--primary-color);
}

.checkbox-group label {
    margin-bottom: 0;
    font-size: 1.5rem;
    color: var(--text-color);
}

.submit-btn {
    background-color: var(--primary-color);
    color: var(--text-color);
    border: none;
    padding: 1.2rem 3rem;
    font-size: 1.6rem;
    font-weight: 500;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    display: block;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 10px rgba(33, 150, 243, 0.4);
}

.submit-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(100, 181, 246, 0.5);
}

/* AIソリューション概要セクション */
.solutions-summary {
    padding: 8rem 0;
    background-color: var(--dark-bg-lighter);
}

.solutions-summary h3 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 4rem;
    text-align: center;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.solution-card {
    background-color: rgba(30, 30, 30, 0.5);
    border-radius: 10px;
    padding: 2.5rem;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.solution-icon {
    width: 6rem;
    height: 6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.2) 0%, rgba(100, 181, 246, 0.2) 100%);
    border-radius: 50%;
    margin-bottom: 2rem;
}

.solution-icon i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.solution-card h4 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.solution-card p {
    font-size: 1.5rem;
    color: var(--text-color-muted);
    margin-bottom: 2rem;
    flex-grow: 1;
}

.solution-link {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    margin-top: auto;
}

.solution-link i {
    margin-left: 0.8rem;
    transition: var(--transition);
}

.solution-link:hover {
    color: var(--secondary-color);
}

.solution-link:hover i {
    transform: translateX(5px);
}

/* フッター */
footer {
    background-color: var(--dark-bg);
    padding: 5rem 0 2rem;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 5rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 2rem;
}

.footer-logo h3 {
    font-size: 2.2rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.footer-logo p {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.footer-links h4 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    position: relative;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links ul {
    padding: 0;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    font-size: 1.5rem;
    color: var(--text-color-muted);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-services li {
    font-size: 1.5rem;
    color: var(--text-color-muted);
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
}

.footer-services li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.copyright {
    text-align: center;
    padding-top: 3rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright p {
    font-size: 1.4rem;
    color: var(--text-color-muted);
}

/* レスポンシブデザイン */
@media (max-width: 992px) {
    .contact-form .container {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 55%;
    }
    
    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--dark-bg);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 0;
    }
    
    .nav-item {
        margin: 2rem 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 576px) {
    .contact-hero h2 {
        font-size: 3.2rem;
    }
    
    .contact-hero p {
        font-size: 1.6rem;
    }
    
    .solutions-grid {
        grid-template-columns: 1fr;
    }
}

/* フォーム送信成功メッセージ */
.success-message {
    display: none;
    background-color: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #4CAF50;
    padding: 2rem;
    border-radius: 5px;
    margin-bottom: 2rem;
    text-align: center;
}

.success-message.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}