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

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #fdfdfd;
}

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

ul {
    list-style: none;
}

/* 共通レイアウト */
.section-container {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
}

.section-title {
    font-size: 24px;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background-color: #0066cc; /* コーポレートカラー（仮の青） */
}

.section-title span {
    display: block;
    font-size: 14px;
    color: #888;
    font-weight: normal;
    margin-top: 5px;
}

/* ヘッダー */
.site-header {
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo-text {
    font-size: 20px;
    font-weight: bold;
    color: #0066cc;
}

.site-nav ul {
    display: flex;
    gap: 20px;
}

.site-nav a {
    display: block;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    transition: color 0.3s;
}

.site-nav a span {
    font-size: 10px;
    color: #888;
    font-weight: normal;
}

.site-nav a:hover {
    color: #004499;
}

/* メインビジュアル */
.main-visual {
    height: 450px;
    background-color: #e6f2ff; /* 画像がない場合のバックアップ背景 */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.main-visual h2 {
    font-size: 32px;
    color: #111;
    background-color: rgba(255,255,255,0.8);
    padding: 15px 30px;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* 画像グリッド（暮らしを守りますエリア） */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.grid-item {
    background-color: #f0f0f0;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border-radius: 4px;
    border: 1px solid #ddd;
}

/* インスタグラム */
.insta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.insta-item {
    background-color: #eaeaea;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 14px;
    border-radius: 4px;
    transition: opacity 0.3s;
}

.insta-item:hover {
    opacity: 0.8;
}

/* 更新履歴 */
.info-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.info-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.info-date {
    width: 150px;
    font-weight: bold;
    color: #666;
}

/* フッター */
.site-footer {
    background-color: #222;
    color: #fff;
    padding: 40px 20px 20px;
    margin-top: 80px;
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    font-size: 20px;
    font-weight: bold;
}

.footer-info p {
    margin-bottom: 5px;
    font-size: 14px;
    color: #ccc;
}

.footer-tel {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
}

.copyright {
    text-align: center;
    font-size: 12px;
    color: #666;
    margin-top: 40px;
    border-top: 1px solid #333;
    padding-top: 20px;
}

/* トップへ戻るボタン */
.go-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #0066cc;
    color: #fff;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    z-index: 99;
}

/* レスポンシブ対応（スマホ表示） */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    .site-nav ul {
        gap: 10px;
    }
    .main-visual h2 {
        font-size: 20px;
        padding: 10px 15px;
    }
    .insta-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-container {
        flex-direction: column;
    }
}


/* ----------------------------------
   追加ページ用スタイル
---------------------------------- */

/* 下層ページヘッダー共通 */
.page-header {
    height: 200px;
    background-color: #0066cc; /* 画像がない場合の仮背景色 */
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* 各ページの個別ヘッダー背景（画像がある場合はここにurlを指定） */
.company-header { background-color: #3a7bd5; }
.services-header { background-color: #3a6073; }
.contact-header { background-color: #2b5876; }

.page-header-text h2 {
    font-size: 28px;
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.page-header-text p {
    font-size: 14px;
    opacity: 0.8;
}

/* パンくずリスト */
.breadcrumb {
    background-color: #f5f5f5;
    padding: 10px 0;
    font-size: 13px;
    color: #666;
}

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

.breadcrumb a {
    color: #0066cc;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* 各種見出し */
.sub-title {
    font-size: 20px;
    border-left: 5px solid #0066cc;
    padding-left: 10px;
    margin-bottom: 20px;
    margin-top: 40px;
}

/* 会社概要 ページ用 */
.profile-text {
    line-height: 1.8;
}

.profile-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.profile-table th, .profile-table td {
    padding: 15px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

.profile-table th {
    width: 250px;
    background-color: #f9f9f9;
    font-weight: bold;
}

.map-container {
    margin-top: 15px;
    width: 100%;
}

.dummy-map {
    width: 100%;
    height: 350px;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    border: 1px solid #ddd;
}

/* 事業案内 ページ用 */
.services-intro {
    margin-bottom: 40px;
    font-size: 16px;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.service-card {
    display: flex;
    border: 1px solid #eee;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    border-radius: 4px;
    overflow: hidden;
}

.service-img {
    width: 300px;
    background-color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #4a5568;
    min-height: 200px;
}

.service-content {
    padding: 25px;
    flex: 1;
}

.service-content h4 {
    font-size: 18px;
    color: #0066cc;
    margin-bottom: 10px;
}

/* お問い合わせ ページ用 */
.contact-intro {
    margin-bottom: 40px;
    background: #f0f7ff;
    padding: 20px;
    border-radius: 4px;
    border-left: 4px solid #0066cc;
}

.contact-form {
    background: #fff;
    padding: 30px;
    border: 1px solid #eee;
    border-radius: 4px;
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 15px;
}

.form-group .required {
    background-color: #de3636;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 5px;
    vertical-align: middle;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #0066cc;
    outline: none;
}

.form-submit {
    text-align: center;
    margin-top: 30px;
}

.submit-btn {
    background-color: #0066cc;
    color: #fff;
    padding: 15px 50px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #004499;
}

/* 追加分のレスポンシブ対応 */
@media (max-width: 768px) {
    .profile-table th, .profile-table td {
        display: block;
        width: 100%;
    }
    .profile-table th {
        background-color: #f1f1f1;
        border-bottom: none;
        padding-bottom: 5px;
    }
    .service-card {
        flex-direction: column;
    }
    .service-img {
        width: 100%;
        height: 150px;
        min-height: auto;
    }
    .contact-form {
        padding: 15px;
    }
}


/* --- インスタグラム（施工実績）写真のグリッド調整 --- */
.insta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* パソコンでは3列で並べる */
    gap: 15px; /* 写真と写真のすき間 */
}

.insta-item-img {
    display: block;
    width: 100%;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    background-color: #f7f7f7;
}

.insta-item-img img {
    width: 100%;
    height: 280px; /* 縦横比がバラバラの写真でも、高さを統一する */
    object-fit: cover; /* 写真の中心を自動で切り抜いてぴったり収める */
    display: block;
    transition: transform 0.3s ease;
}

/* マウスを写真に乗せたときに、少し拡大するお洒落な動き */
.insta-item-img:hover img {
    transform: scale(1.05);
}

/* スマートフォン（画面が狭いとき）の表示調整 */
@media (max-width: 768px) {
    .insta-grid {
        grid-template-columns: repeat(2, 1fr); /* スマホでは2列にする */
        gap: 10px;
    }
    .insta-item-img img {
        height: 180px; /* スマホ用に写真サイズを少し小さく調整 */
    }
}



/* セクションごとの余白調整 */
.section-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px; /* 上下にしっかりと余白を作って見やすくします */
}

/* 4つのアイコンが並ぶグリッドの調整 */
.image-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4列に並べる */
    gap: 20px;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .image-grid {
        grid-template-columns: repeat(2, 1fr); /* スマホの時は2列×2行にする */
    }
}




/* ==========================================
   メインビジュアル スライドショーの完全版設定
   ========================================== */
.main-visual {
    position: relative;
    width: 100%;
    height: 500px; /* ★ここで高さを指定しています。これがないと表示されません */
    overflow: hidden;
    background-color: #f0f0f0; /* 画像が出ない時のための薄いグレー */
}

.slide-show {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.slide-img {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    animation: sliderAnime 15s infinite; /* 15秒かけてループ */
}

/* 3枚の画像が切り替わるタイミングをずらす */
.slide-img:nth-child(1) {
    animation-delay: 0s;
}
.slide-img:nth-child(2) {
    animation-delay: 5s;
}
.slide-img:nth-child(3) {
    animation-delay: 10s;
}

/* フワッと切り替わるフェードイン・アウトのアニメーション */
@keyframes sliderAnime {
    0% {
        opacity: 0;
    }
    10% {
        opacity: 1; /* 最初の10%の時間をかけてフワッと表示 */
    }
    33% {
        opacity: 1; /* 表示をキープ */
    }
    43% {
        opacity: 0; /* 次の画像に切り替わるためにフワッと消える */
    }
    100% {
        opacity: 0;
    }
}

/* スマホ表示の時の高さ調整 */
@media (max-width: 768px) {
    .main-visual {
        height: 300px; /* スマホでは高さを少し低くする */
    }
}



/* インスタグラム見出しの調整 */
.insta-title {
    display: flex;
    align-items: center;
    justify-content: center; /* 中央寄せ */
    gap: 10px; /* ロゴと文字の間のすき間 */
}

/* ロゴマークのサイズ調整 */
.insta-logo {
    width: 32px;  /* 元ページのバランスに合わせたサイズ */
    height: 32px;
    object-fit: contain;
    vertical-align: middle;
}

/* スマホ表示の際の微調整 */
@media (max-width: 768px) {
    .insta-logo {
        width: 26px;
        height: 26px;
    }
}



/* --- フッターの背景色（暗めの黄色）と文字色（黒）の完全修正 --- */
.site-footer {
    background-color: #c49a2a; /* 暗めの黄色（ダークゴールド） */
    color: #111111;            /* ★フッター全体の文字色を黒に修正 */
    padding: 40px 20px 20px;
    margin-top: 80px;
}

/* フッター内の文字（pタグなど）の黒色指定を確実に反映 */
.site-footer p, 
.site-footer span, 
.site-footer div {
    color: #111111 !important;
}

/* フッターの電話番号リンクも黒色にして、下線を引く */
.footer-tel a {
    color: #111111 !important;
    text-decoration: underline;
    font-weight: bold; /* 電話番号を少し太めに見やすく */
}

/* 一番下のコピーライト部分の調整（文字を黒にし、上の境界線も黒系の透過線に） */
.copyright {
    text-align: center;
    font-size: 12px;
    color: #111111 !important;
    opacity: 0.8; /* ほんの少しだけ透過させて馴染ませる */
    margin-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.15); /* ★境界線も黒ベースの線に変更 */
    padding-top: 20px;
}

/* （参考）以前追加したフッターロゴの白反転処理を解除し、元の色（または黒）に馴染むように調整 */
.site-footer .footer-logo img {
    filter: none !important; /* 白反転をストップ */
}



/* ==========================================
   「電気を通じて皆様の暮らしを守ります」エリアの配色修正
   ========================================== */

/* セクション全体の背景を落ち着いた紺色にし、文字を白にする */
.life-section {
    background-color: #1e2a38; /* ★落ち着いた深い紺色 */
    color: #ffffff;            /* 全体の文字色を白に */
    padding: 60px 20px;        /* 上下にしっかり余白をとる */
    width: 100%;
    box-sizing: border-box;
}

/* タイトル文字（h2）を白色にする */
.life-section .section-title {
    color: #ffffff !important;
}

/* 英語のサブタイトル（Our Servicesなど）の文字色調整 */
.life-section .section-title span {
    color: rgba(255, 255, 255, 0.7); /* ほんのり透過させた白で上品に */
}

/* アイコン画像が紺色の背景に綺麗に映えるよう、枠線の調整など */
.life-section .grid-item-img img {
    background-color: #ffffff; /* 白背景のイラストが浮かないように内側を白に */
    border-radius: 8px;
    padding: 10px;             /* アイコンのまわりに少し余白を作る */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* 紺色背景に対して綺麗に見せる影 */
}


/* ==========================================
   暮らしを守るエリアの画像配置（2行3列・計6枚）
   ========================================== */

/* 紺色の背景セクション */
.life-section {
    background-color: #1e2a38; /* 落ち着いた深い紺色 */
    color: #ffffff;
    padding: 60px 20px;
    width: 100%;
    box-sizing: border-box;
}

/* タイトル文字（白） */
.life-section .section-title {
    color: #ffffff !important;
}
.life-section .section-title span {
    color: rgba(255, 255, 255, 0.7);
}

/* 2行3列を形作るグリッド設定 */
.life-section .image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* カチッと横3列に固定 */
    gap: 25px; /* アイコン同士の上下左右のすき間 */
    max-width: 960px; /* 横幅のバランス調整 */
    margin: 40px auto 0; /* 中央寄せ */
}

/* 各アイコン画像を中央に綺麗に収める */
.life-section .grid-item-img {
    display: flex;
    justify-content: center;
    align-items: center;
}

.life-section .grid-item-img img {
    width: 100%;
    max-width: 260px; /* 大きくなりすぎず綺麗に見えるサイズ */
    height: auto;
    background-color: #ffffff; /* アイコンの背景を白にして映えさせる */
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* 紺色に映える陰影 */
    transition: transform 0.2s ease;
}

/* マウスを乗せたときに少しだけ浮き上がる演出 */
.life-section .grid-item-img img:hover {
    transform: translateY(-3px);
}

/* スマートフォン表示（画面が狭いとき） */
@media (max-width: 768px) {
    .life-section .image-grid {
        grid-template-columns: repeat(2, 1fr); /* スマホでは3行2列（横に2枚ずつ）にする */
        gap: 15px;
    }
}





