/* ========================================
   合同会社和ライン - メインスタイルシート
   ======================================== */

/* リセットと基本設定 */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #60a5fa;
    --text-dark: #111827;
    --text-gray: #4b5563;
    --text-light: #6b7280;
    --bg-white: #ffffff;
    --bg-gray: #f9fafb;
    --bg-gray-50: #f3f4f6;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* コンテナ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ========================================
   ヘッダー
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.logo-svg {
    width: 32px;
    height: 32px;
}

.logo-text h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
}

.logo-text p {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* デスクトップナビゲーション */
.nav-desktop {
    display: none;
}

.nav-desktop ul {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
}

.nav-desktop a,
.nav-desktop button {
    color: var(--text-gray);
    font-weight: 500;
    transition: var(--transition);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.nav-desktop a:hover,
.nav-desktop button:hover {
    color: var(--primary-color);
}

/* モバイルメニューボタン */
.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle svg {
    width: 24px;
    height: 24px;
}

/* モバイルナビゲーション */
.nav-mobile {
    display: none;
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

.nav-mobile.active {
    display: block;
}

.nav-mobile ul {
    list-style: none;
}

.nav-mobile li {
    border-bottom: 1px solid var(--border-color);
}

.nav-mobile a,
.nav-mobile button {
    display: block;
    padding: 0.75rem 0;
    color: var(--text-gray);
    font-weight: 500;
    transition: var(--transition);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
    text-align: left;
}

.nav-mobile a:hover,
.nav-mobile button:hover {
    color: var(--primary-color);
}

@media (min-width: 768px) {
    .nav-desktop {
        display: block;
    }

    .menu-toggle {
        display: none;
    }
}

/* ========================================
   ヒーローセクション
   ======================================== */
.hero {
    position: relative;
    padding: 8rem 0 5rem;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(30, 58, 138, 0.9), rgba(55, 48, 163, 0.8));
}

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

.hero h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.hero p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

.btn-primary {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: var(--bg-white);
    color: var(--primary-dark);
    border-radius: 0.5rem;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: #eff6ff;
}

.btn-outline {
    display: inline-block;
    padding: 0.75rem 2rem;
    border: 2px solid white;
    color: white;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: var(--transition);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
    .hero {
        padding: 10rem 0 6rem;
    }

    .hero h2 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.25rem;
    }

    .hero-buttons {
        flex-direction: row;
    }
}

/* ========================================
   事業内容セクション
   ======================================== */
.business {
    padding: 5rem 0;
    background-color: var(--bg-gray);
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    gap: 1.5rem;
}

.service-card {
    background-color: var(--bg-white);
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.service-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}


.service-content {
    padding: 1.5rem;
}

.service-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.service-content p {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.service-link {
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 500;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title {
        font-size: 2.25rem;
    }
}

/* ========================================
   会社概要セクション
   ======================================== */
.about {
    padding: 5rem 0;
    background-color: var(--bg-white);
}

.about-grid {
    display: grid;
    gap: 3rem;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
}

.company-info {
    display: grid;
    gap: 1.5rem;
}

.info-card {
    background-color: var(--bg-gray);
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: var(--transition);
}

.info-card:hover {
    box-shadow: var(--shadow-md);
}

.info-card-inner {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.info-icon {
    padding: 0.75rem;
    background-color: #dbeafe;
    border-radius: 0.5rem;
    flex-shrink: 0;
}

.info-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

.info-text label {
    font-size: 0.875rem;
    color: var(--text-light);
    display: block;
    margin-bottom: 0.25rem;
}

.info-text p {
    font-weight: 600;
    color: var(--text-dark);
}

.info-text .sub-text {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: normal;
    margin-top: 0.25rem;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   お問い合わせセクション
   ======================================== */
.contact {
    padding: 5rem 0;
    background-color: var(--bg-gray);
}

.contact-grid {
    display: grid;
    gap: 3rem;
}

.contact-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

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

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item-icon {
    padding: 0.75rem;
    background-color: #dbeafe;
    border-radius: 0.5rem;
    flex-shrink: 0;
}

.contact-item-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

.contact-item-text label {
    font-size: 0.875rem;
    color: var(--text-light);
    display: block;
    margin-bottom: 0.25rem;
}

.contact-item-text a,
.contact-item-text p {
    font-weight: 600;
    color: var(--text-dark);
    transition: var(--transition);
}

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

.business-hours {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #eff6ff;
    border-radius: 0.5rem;
}

.business-hours h4 {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.business-hours p {
    color: var(--text-gray);
}

.business-hours .note {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* フォーム */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

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

.form-group label .required {
    color: #ef4444;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.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(37, 99, 235, 0.1);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #ef4444;
}

.error-message {
    font-size: 0.875rem;
    color: #ef4444;
    margin-top: 0.25rem;
    display: none;
}

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

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

.btn-submit {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background-color: var(--primary-dark);
}

.form-note {
    font-size: 0.75rem;
    color: var(--text-light);
    text-align: center;
}

/* フォームメッセージ */
.form-message {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.form-message-success {
    background-color: #dcfce7;
    border: 1px solid #86efac;
}

.form-message-error {
    background-color: #fee2e2;
    border: 1px solid #fca5a5;
}

.form-message-content {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.form-message-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-weight: bold;
    flex-shrink: 0;
}

.form-message-success .form-message-icon {
    background-color: #16a34a;
    color: white;
}

.form-message-error .form-message-icon {
    background-color: #dc2626;
    color: white;
}

.form-message-content p {
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
}

.form-message-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.form-message-close:hover {
    color: var(--text-dark);
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   フッター
   ======================================== */
.footer {
    background-color: #111827;
    color: white;
    padding: 3rem 0;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo svg {
    width: 24px;
    height: 24px;
    opacity: 0.9;
}

.footer-logo-text p:first-child {
    font-weight: 700;
}

.footer-logo-text p:last-child {
    font-size: 0.875rem;
    color: #9ca3af;
}

.footer-contact {
    text-align: center;
}

.footer-contact p {
    font-size: 0.875rem;
    color: #9ca3af;
}

.footer-bottom {
    width: 100%;
    border-top: 1px solid #374151;
    margin-top: 2rem;
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: #9ca3af;
}

@media (min-width: 768px) {
    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
    }

    .footer-contact {
        text-align: right;
    }
}

/* ========================================
   サービス詳細ページ
   ======================================== */
.service-page {
    padding-top: 6rem;
    padding-bottom: 5rem;
    min-height: 100vh;
    background-color: var(--bg-white);
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 2rem;
    transition: var(--transition);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.back-button:hover {
    color: var(--primary-dark);
}

.back-button svg {
    width: 20px;
    height: 20px;
}

.service-page-header {
    margin-bottom: 3rem;
}

.service-page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.service-page-header p {
    font-size: 1.125rem;
    color: var(--text-light);
}

.service-section {
    margin-bottom: 3rem;
}

.service-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.service-section > p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.service-list {
    display: grid;
    gap: 1rem;
}

.service-list-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background-color: #eff6ff;
    border-radius: 0.5rem;
}

.service-list-item svg {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.service-list-item span {
    color: var(--text-dark);
}

.feature-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-card {
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
}

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-gray);
}

.service-cta {
    background: linear-gradient(to bottom right, #eff6ff, #e0e7ff);
    padding: 2rem;
    border-radius: 0.5rem;
}

.service-cta h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.service-cta > p {
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-tel {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 0.5rem;
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
}

.btn-tel:hover {
    background-color: var(--primary-dark);
}

.btn-mail {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 0.5rem;
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
}

.btn-mail:hover {
    background-color: #eff6ff;
}

@media (min-width: 768px) {
    .service-page-header h1 {
        font-size: 2.5rem;
    }

    .service-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-buttons {
        flex-direction: row;
    }
}

/* ========================================
   ユーティリティ
   ======================================== */
.max-w-4xl {
    max-width: 896px;
    margin-left: auto;
    margin-right: auto;
}

.max-w-6xl {
    max-width: 1152px;
    margin-left: auto;
    margin-right: auto;
}

/* アイコンカラー */
.text-blue-600 {
    color: var(--primary-color);
}
