@charset "UTF-8";

/* --- 基本設定 --- */
:root {
    --primary: #004d40; /* 濃い緑 */
    --primary-light: #00695c;
    --accent: #fbc02d; /* 警戒色・強調の黄色 */
    --text: #2c3e50;
    --bg-light: #f4f7f6;
    --white: #ffffff;
    --gray-border: #e0e0e0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text);
    line-height: 1.8;
    margin: 0;
    padding: 0;
    background-color: var(--white);
    letter-spacing: 0.05em;
    overflow-x: hidden;
}

/* 英語部分専用フォント */
.en-title {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; height: auto; vertical-align: bottom; }

/* --- レイアウト用クラス --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
.section {
    padding: 100px 0;
}
.bg-light { 
    background-color: var(--bg-light); 
    background-image: radial-gradient(#cfd8dc 1px, transparent 1px);
    background-size: 20px 20px;
}
.text-center { text-align: center; }

/* --- 見出しデザイン --- */
.section-header {
    margin-bottom: 60px;
    text-align: center;
}
.section-subtitle {
    display: inline-block;
    font-size: 1rem;
    color: var(--accent);
    background: var(--primary);
    padding: 4px 12px;
    margin-bottom: 10px;
    font-weight: 600;
}
.section-title {
    font-size: 2.2rem;
    color: var(--primary);
    margin: 0;
    position: relative;
    padding-bottom: 20px;
}
.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent);
}

/* --- ヘッダー --- */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Oswald', sans-serif;
    border-left: 5px solid var(--accent);
    padding-left: 15px;
    line-height: 1;
}
.logo span { font-size: 0.8rem; display: block; color: #666; font-family: 'Noto Sans JP', sans-serif; font-weight: normal; margin-top: 5px;}

.nav-menu { display: flex; gap: 30px; align-items: center; }
.nav-menu a {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.95rem;
    position: relative;
}
/* お問い合わせ以外のリンクの下線アニメーション */
.nav-menu a:not(.header-cta)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent);
    transition: 0.3s;
}
.nav-menu a:not(.header-cta):hover::after { width: 100%; }

/* ヘッダー内お問い合わせボタン */
.header-cta {
    background-color: var(--accent);
    color: var(--primary);
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.header-cta:hover {
    background-color: #fdd835;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* --- ハンバーガーメニュー（スマホ用） --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1002;
}
.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--primary);
    border-radius: 3px;
    transition: 0.3s;
}

/* --- HEROエリア --- */
.hero {
    background: linear-gradient(135deg, rgba(0, 77, 64, 0.9), rgba(0, 50, 40, 0.7)), url('https://placehold.jp/1200x600.png?text=Solar+Plant+Image');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    color: var(--white);
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        rgba(255,255,255,0.03),
        rgba(255,255,255,0.03) 1px,
        transparent 1px,
        transparent 10px
    );
    pointer-events: none;
}
.hero-content {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s ease forwards 0.5s;
}
@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.3;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    font-weight: 500;
    opacity: 0.9;
}
.hero-btn {
    background-color: var(--accent);
    color: var(--primary);
    padding: 18px 50px;
    font-size: 1.3rem;
    font-weight: bold;
    border-radius: 4px;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(251, 192, 45, 0.4);
    border: 2px solid var(--accent);
}
.hero-btn:hover {
    background-color: transparent;
    color: var(--accent);
}

/* --- Why Us --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}
.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-top: 6px solid var(--primary);
    transition: transform 0.3s ease;
    position: relative;
}
.feature-card:hover { transform: translateY(-10px); }
.feature-num {
    position: absolute;
    top: -25px; right: 20px;
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    color: rgba(0, 77, 64, 0.1);
    font-weight: 700;
}
.feature-card h3 {
    color: var(--primary);
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}
.staff-area {
    background-color: #fff8e1;
    padding: 20px;
    text-align: center;
    border: 1px dashed var(--accent);
    margin-bottom: 15px;
    color: var(--primary);
    font-weight: bold;
}

/* --- Solar Business --- */
.service-block {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 60px;
    display: flex;
    flex-wrap: wrap;
}
.service-block:nth-child(even) { flex-direction: row-reverse; }

.service-img {
    flex: 1;
    min-width: 300px;
    background-color: #ddd;
    position: relative;
}
.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.service-content {
    flex: 1;
    min-width: 300px;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.service-content h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-top: 0;
    margin-bottom: 20px;
}
.service-content p {
    margin-bottom: 25px;
    color: #555;
}
.service-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    font-weight: 700;
    color: var(--primary);
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 8px;
}
.service-list li::before {
    content: "▶";
    font-size: 0.8rem;
    color: var(--accent);
    position: absolute;
    left: 0;
    top: 4px;
}

/* --- Community Works（アイコンとリンクの修正） --- */
.community-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}
.community-item {
    background: var(--white);
    padding: 30px 20px;
    text-align: center;
    border: 2px solid #eee;
    transition: 0.3s;
    border-radius: 8px; /* 角を少し丸く */
    display: block; /* リンク用にblock指定 */
}
.community-item:hover {
    border-color: var(--primary);
    background-color: #fcfcfc;
}

/* 水の配達（リンク）用の特別スタイル */
.community-link {
    border-color: var(--accent); /* 最初から枠線を黄色に */
    background-color: #fffde7; /* 薄い黄色背景 */
    position: relative;
}
.community-link:hover {
    background-color: #fff9c4;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.link-arrow {
    display: block;
    margin-top: 10px;
    font-weight: bold;
    color: var(--primary);
    font-size: 0.9rem;
}

.community-item h4 { margin: 0; color: var(--primary); font-size: 1.2rem; }

/* アイコンスタイルの調整（Google Material Icons） */
.community-icon {
    font-size: 3rem; /* 大きく */
    margin-bottom: 15px;
    color: var(--primary); /* アイコンを緑色に */
    display: block;
}
/* リンクがある水のカードだけアイコンを黄色に */
.community-link .community-icon {
    color: var(--primary);
}


/* --- Company --- */
.company-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border-left: 10px solid var(--primary);
}
.company-table {
    width: 100%;
    border-collapse: collapse;
}
.company-table th, .company-table td {
    padding: 18px 15px;
    border-bottom: 1px solid #eee;
    text-align: left;
}
.company-table th {
    width: 25%;
    color: var(--primary);
    font-weight: 700;
    white-space: nowrap;
}

/* --- Contact --- */
.contact-section {
    background-color: var(--primary);
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.contact-section::after {
    content: "";
    position: absolute;
    top: -50px; right: -50px;
    width: 300px; height: 300px;
    border: 40px solid rgba(255,255,255,0.05);
    border-radius: 50%;
}

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 40px;
}
.contact-col {
    flex: 1;
    min-width: 300px;
}
.contact-col h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    color: var(--accent);
    border-bottom: 2px solid rgba(255,255,255,0.2);
    padding-bottom: 15px;
    margin-bottom: 20px;
}
.contact-list li {
    margin-bottom: 10px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}
.contact-list li::before {
    content: "";
    display: inline-block;
    width: 6px; height: 6px;
    background: var(--accent);
    margin-right: 10px;
    border-radius: 50%;
}
.contact-btn-area {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.btn-contact {
    background: var(--white);
    color: var(--primary);
    padding: 15px 30px;
    border-radius: 4px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.3s;
}
.btn-contact:hover {
    opacity: 0.9;
}
.btn-contact.line {
    background: #06C755;
    color: white;
}

/* --- Footer --- */
footer {
    background-color: #222;
    color: #888;
    padding: 40px 0;
    text-align: center;
    font-size: 0.85rem;
    border-top: 5px solid var(--accent);
}

/* ========================================
    【スマホ対応】 レスポンシブ設定
    ========================================
*/
@media (max-width: 768px) {
    /* 全体の調整 */
    .section { padding: 60px 0; }
    .section-title { font-size: 1.8rem; }
    .container { padding: 0 15px; }

    /* ヘッダー */
    header { height: 70px; }
    .logo { font-size: 1.3rem; }
    .logo span { font-size: 0.65rem; }
    .menu-toggle { display: flex; }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: rgba(0, 77, 64, 0.98);
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        padding-bottom: 40px;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    .nav-menu.active { right: 0; }
    .nav-menu a { color: var(--white); font-size: 1.3rem; }
    .header-cta { 
        background: transparent; 
        color: var(--white); 
        padding: 0; 
        box-shadow: none; 
        font-weight: 700;
        border-radius: 0;
    }
    .header-cta:hover {
        background: transparent;
        transform: none;
        color: var(--accent);
    }

    /* HERO */
    .hero {
        height: auto;
        padding: 120px 0 80px;
        background-attachment: scroll;
    }
    .hero h1 { font-size: 2rem; margin-bottom: 15px; }
    .hero p { font-size: 1rem; margin-bottom: 30px; }
    .hero-btn { width: 100%; box-sizing: border-box; text-align: center; padding: 15px; }

    /* Why Us */
    .features-grid { grid-template-columns: 1fr; }
    .feature-card { padding: 30px 20px; }
    .feature-num { font-size: 2.5rem; top: -15px; }

    /* Solar Business */
    .service-block { flex-direction: column !important; }
    .service-block:nth-child(even) { flex-direction: column !important; }
    .service-img { min-height: 200px; width: 100%; }
    .service-content { padding: 30px 20px; }
    .service-content h3 { font-size: 1.5rem; }

    /* Community */
    .community-list { grid-template-columns: 1fr; }
    .community-link .link-arrow { font-size: 1rem; margin-top: 15px; }

    /* Company Table */
    .company-wrapper { padding: 20px; border-left: 5px solid var(--primary); }
    .company-table th, .company-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
        border: none;
    }
    .company-table th {
        background-color: #f9f9f9;
        padding-bottom: 5px;
        margin-top: 15px;
        color: var(--primary);
        border-left: 3px solid var(--accent);
    }
    .company-table td { padding-top: 5px; border-bottom: 1px solid #eee; }

    /* Contact */
    .contact-wrapper { flex-direction: column; gap: 30px; }
    .contact-col h3 { font-size: 1.5rem; }
    .contact-btn-area { flex-direction: column; }
    .btn-contact { width: 100%; box-sizing: border-box; }
}

/* --- 追加：LP誘導ボタン --- */
.service-lp-btn {
    display: inline-block;
    background-color: var(--accent); /* 黄色 */
    color: var(--primary); /* 緑色の文字 */
    padding: 12px 35px;
    border-radius: 50px; /* 角丸 */
    font-weight: bold;
    text-align: center;
    margin-top: 25px; /* 上に少し隙間 */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: 0.3s;
}
.service-lp-btn:hover {
    background-color: #fdd835;
    transform: translateY(-2px); /* ホバーで少し浮く */
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}