/* ==========================================
   エレロジ株式会社 - グリーンベース デザイン
   カラーテーマ: 緑色（安全・環境・成長）
   ========================================== */

/* カラー変数 */
:root {
    /* メインカラー: グリーン系 */
    --primary-color: #2d7a4f;        /* フォレストグリーン（メイン） */
    --primary-dark: #1e5339;         /* ダークグリーン */
    --primary-light: #3d9960;        /* ライトグリーン */
    --secondary-color: #52b788;      /* 明るいエメラルドグリーン */
    --accent-color: #95d5b2;         /* パステルグリーン（アクセント） */
    
    /* ニュートラルカラー */
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #495057;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    
    /* その他 */
    --shadow: 0 4px 6px rgba(45, 122, 79, 0.1);
    --shadow-lg: 0 10px 30px rgba(45, 122, 79, 0.15);
    --transition: all 0.3s ease;
    --border-radius: 8px;
}

/* リセット＆基本スタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

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

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

.logo-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo-image {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

.company-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Noto Sans JP', sans-serif;
    white-space: nowrap;
}

.logo-link:hover .logo-image {
    opacity: 0.8;
}

.logo-link:hover .company-name {
    color: var(--primary-dark);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

/* ==========================================
   ヒーローセクション
   ========================================== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 50%, var(--secondary-color) 100%);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(149, 213, 178, 0.2) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    text-align: center;
    color: var(--white);
    z-index: 1;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn {
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--light-gray);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator span {
    display: block;
    width: 20px;
    height: 30px;
    border: 2px solid var(--white);
    border-radius: 15px;
    position: relative;
}

.scroll-indicator span::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background-color: var(--white);
    border-radius: 2px;
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0%, 100% { top: 5px; opacity: 1; }
    50% { top: 15px; opacity: 0.3; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   共通セクションスタイル
   ========================================== */
section {
    padding: 5rem 0;
}

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

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

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}
/* ==========================================
   お知らせセクション
   ========================================== */
.news {
    background-color: var(--white);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.news-card {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border-left: 4px solid var(--primary-color);
}

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

.news-date {
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.news-title {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.news-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.news-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.news-link:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
}

.news-link i {
    font-size: 0.9rem;
}

/* ==========================================
   サービスセクション
   ========================================== */
.services {
    background-color: var(--light-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
}

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

.service-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

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

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -40px auto 1.5rem;
    position: relative;
    z-index: 1;
}

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

.service-card > :not(.service-image) {
    padding: 0 2.5rem 2.5rem;
}

.service-card > .service-icon {
    padding: 0;
}

.service-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.service-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

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

.service-features li {
    padding: 0.5rem 0;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.service-features i {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

/* ==========================================
   強みセクション
   ========================================== */
.strengths {
    background-color: var(--white);
}

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

.strength-card {
    text-align: center;
    padding: 2rem;
    border-radius: var(--border-radius);
    background-color: var(--light-gray);
    transition: var(--transition);
}

.strength-card:hover {
    background-color: var(--accent-color);
    transform: scale(1.05);
}

.strength-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.strength-icon i {
    font-size: 3rem;
    color: var(--white);
}

.strength-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.strength-description {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==========================================
   企業理念セクション
   ========================================== */
.philosophy {
    background-color: var(--white);
    padding: 5rem 0;
}

.philosophy-image {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 3rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.philosophy-image img {
    width: 100%;
    height: auto;
    display: block;
}

.philosophy-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.philosophy-card {
    background-color: var(--light-gray);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.philosophy-heading {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.philosophy-subtitle {
    font-size: 1.4rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.philosophy-text {
    color: var(--text-secondary);
    line-height: 2;
    font-size: 1.05rem;
}

/* バリュー（価値観）のスタイル */
.values-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.value-item {
    display: flex;
    gap: 1.5rem;
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.value-item:hover {
    background-color: var(--accent-color);
    transform: translateX(10px);
}

.value-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.value-content h5 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.value-content p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ==========================================
   会社概要セクション
   ========================================== */
.about {
    background-color: var(--light-gray);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.company-info {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.company-info.full-width {
    grid-column: 1 / -1;
}

.info-item {
    display: flex;
    padding: 1rem 0;
    border-bottom: 1px solid var(--medium-gray);
}

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

.info-item.permits {
    flex-direction: column;
}

.info-label {
    font-weight: 600;
    color: var(--primary-color);
    min-width: 120px;
}

.info-value {
    color: var(--text-primary);
    flex: 1;
}

.permits-list {
    list-style: none;
    padding-left: 0;
    margin-top: 0.5rem;
}

.permits-list > li {
    padding: 0.8rem 0;
    color: var(--text-primary);
    line-height: 1.8;
    border-left: 3px solid var(--secondary-color);
    padding-left: 1rem;
    margin-bottom: 0.8rem;
    background-color: var(--light-gray);
    border-radius: 4px;
}

.permit-title {
    font-weight: 600;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.3rem;
}

.sub-permits {
    list-style: none;
    padding-left: 1rem;
    margin-top: 0.5rem;
}

.sub-permits li {
    padding: 0.4rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    position: relative;
    padding-left: 1.2rem;
}

.sub-permits li::before {
    content: '●';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-size: 0.7rem;
}

/* ==========================================
   お問い合わせセクション
   ========================================== */
.contact {
    background-color: var(--white);
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

/* フォームスタイル */
.contact-form {
    background-color: var(--light-gray);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    position: relative;
}

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

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

.required {
    color: #e74c3c;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.9rem;
    border: 2px solid var(--medium-gray);
    border-radius: var(--border-radius);
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1rem;
    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(45, 122, 79, 0.1);
}

.form-group textarea {
    resize: vertical;
}

/* フォームメッセージ */
.form-message {
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    margin-top: 1rem;
}

.form-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.form-message h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.form-message p {
    font-size: 1rem;
    line-height: 1.6;
}

.form-success {
    background-color: #d4edda;
    border: 2px solid #c3e6cb;
    color: #155724;
}

.form-success i {
    color: #28a745;
}

.form-error {
    background-color: #f8d7da;
    border: 2px solid #f5c6cb;
    color: #721c24;
}

.form-error i {
    color: #dc3545;
}

/* 送信ボタンのローディング状態 */
.btn-submit {
    position: relative;
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-submit {
    width: 100%;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem;
    font-size: 1.1rem;
}

.btn-submit:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ==========================================
   フッター
   ========================================== */
.footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-section a:hover {
    opacity: 1;
    padding-left: 5px;
}

.footer-section i {
    margin-right: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0.8;
}

/* ==========================================
   スクロールトップボタン
   ========================================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-lg);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(45, 122, 79, 0.3);
}

.scroll-top i {
    font-size: 1.2rem;
}

/* ==========================================
   レスポンシブデザイン
   ========================================== */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-image {
        height: 220px;
    }
    
    .philosophy-card {
        padding: 2rem;
    }
    
    .value-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .logo-image {
        height: 40px;
    }
    
    .company-name {
        font-size: 1rem;
    }
    
    .nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--white);
        transition: var(--transition);
        box-shadow: var(--shadow);
    }
    
    .nav.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .strengths-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .logo-image {
        height: 35px;
    }
    
    .company-name {
        font-size: 0.9rem;
    }
    
    .logo-link {
        gap: 0.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.7rem;
    }
    
    .service-image {
        height: 180px;
    }
    
    .service-card > :not(.service-image) {
        padding: 0 1.5rem 1.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}
