/* ========================================
   各種ページ専用スタイル
======================================== */

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

.about-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.services-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0052A3 100%);
}

.contact-hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #E55A2B 100%);
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://sspark.genspark.ai/cfimages?u1=XHYb2bx517nSvM7S1LCeNfX6afxoKemypvXr4qS40x1Vf5f%2B%2FxXAlY%2FCWmhVqnZ0J3X4te3u6xA6aukHj0ZkYv54koA6bOCz5j7iVgEFifiINg%3D%3D&u2=9eWQDgpyOrXV5hz4&width=2560');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
}

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

.page-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* 会社情報ページ */
.company-philosophy {
    padding: 5rem 0;
    background: white;
}

.philosophy-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.philosophy-image img {
    border-radius: 15px;
    box-shadow: var(--shadow-hover);
}

.section-title-left {
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title-left::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.philosophy-main {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.philosophy-description {
    line-height: 1.9;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.company-info {
    padding: 5rem 0;
    background: var(--bg-gray);
}

.info-table-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table tr {
    border-bottom: 1px solid var(--border-color);
}

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

.info-table th {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eef5 100%);
    padding: 1.5rem 2rem;
    text-align: left;
    font-weight: 700;
    color: var(--text-color);
    width: 30%;
    vertical-align: top;
}

.info-table td {
    padding: 1.5rem 2rem;
    line-height: 1.8;
}

.business-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.business-list li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.business-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

.access-map {
    padding: 5rem 0;
    background: white;
}

.map-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.map-wrapper {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.access-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.access-item {
    display: flex;
    gap: 1.5rem;
}

.access-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.2rem;
}

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

.access-item p {
    line-height: 1.7;
    color: var(--text-light);
}

/* 事業案内ページ */
.service-detail {
    padding: 5rem 0;
    background: white;
}

.service-detail.alt {
    background: var(--bg-gray);
}

.service-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.service-detail-content.reverse {
    direction: rtl;
}

.service-detail-content.reverse > * {
    direction: ltr;
}

.service-detail-image img {
    border-radius: 15px;
    box-shadow: var(--shadow-hover);
}

.service-icon-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon-large.ai-icon {
    background: linear-gradient(135deg, var(--ai-color), #7B1FA2);
}

.service-icon-large i {
    font-size: 2.5rem;
    color: white;
}

.service-detail-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.subtitle-small {
    font-size: 1.2rem;
    font-weight: 500;
    display: block;
    margin-top: 0.5rem;
    color: var(--text-light);
}

.service-detail-intro {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.service-features h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.service-features ul {
    list-style: none;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
}

.service-features li i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* お問い合わせページ */
.contact-content {
    padding: 5rem 0;
    background: var(--bg-gray);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
}

.contact-form-wrapper {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.form-title {
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.form-description {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-group label {
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.required {
    color: #E53935;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Noto Sans JP', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-group textarea {
    resize: vertical;
}

/* フォーム送信ステータス */
.form-status {
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    animation: slideDown 0.3s ease;
}

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

.form-status.success {
    background-color: #E8F5E9;
    border: 2px solid #4CAF50;
    color: #2E7D32;
}

.form-status.error {
    background-color: #FFEBEE;
    border: 2px solid #E53935;
    color: #C62828;
}

.form-status i {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.form-status.success i {
    color: #4CAF50;
}

.form-status.error i {
    color: #E53935;
}

.form-status p {
    margin: 0;
    line-height: 1.6;
}

.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info-box {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.contact-info-box.highlight {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eef5 100%);
    border: 2px solid var(--ai-color);
}

.contact-info-box h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.contact-info-box p {
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.2rem;
}

.info-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.3rem;
}

.info-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.7;
}

.map-section {
    padding: 5rem 0;
    background: white;
}

/* レスポンシブデザイン */
@media (max-width: 992px) {
    .philosophy-content,
    .service-detail-content,
    .map-content,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-detail-content.reverse {
        direction: ltr;
    }
}

@media (max-width: 768px) {
    .page-hero {
        height: 250px;
    }

    .page-title {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .info-table th,
    .info-table td {
        padding: 1rem;
    }

    .info-table th {
        width: 35%;
    }

    .contact-form-wrapper {
        padding: 2rem;
    }

    .form-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 576px) {
    .info-table {
        font-size: 0.9rem;
    }

    .info-table th,
    .info-table td {
        display: block;
        width: 100%;
        padding: 1rem;
    }

    .info-table th {
        background: var(--primary-color);
        color: white;
        border-radius: 8px 8px 0 0;
    }

    .info-table td {
        border-radius: 0 0 8px 8px;
    }

    .info-table tr {
        display: block;
        margin-bottom: 1.5rem;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        overflow: hidden;
    }
}