@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ（永代建設カスタム）
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template: cocoon-master
Version: 1.1.3
*/

/************************************
** 永代建設 共通変数と基本設定
************************************/
:root {
    --primary-color: #0f2350; /* 信頼のネイビー */
    --accent-color: #c69c6d;  /* 伝統のゴールド */
    --text-color: #333;
    --bg-light: #f9f9f9;
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    line-height: 1.6;
    scroll-behavior: smooth;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; padding: 0; }

/************************************
** ヘッダー
************************************/
header {
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo { display: flex; align-items: center; }
.logo img { height: 70px; width: auto; display: block; }

nav ul { display: flex; gap: 30px; align-items: center; }
nav ul li a { font-weight: bold; font-size: 15px; }
nav ul li a:hover { color: var(--accent-color); }

.contact-btn {
    background: var(--accent-color);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 4px;
    transition: opacity 0.3s;
}
.contact-btn:hover { opacity: 0.9; }

/************************************
** メインビジュアル（トップページ）
************************************/
.hero {
    background: linear-gradient(rgba(15, 35, 80, 0.6), rgba(15, 35, 80, 0.6)), url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}
.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.hero p { font-size: 20px; margin-bottom: 40px; }

/************************************
** 固定ページヘッダー（プライバシー等）
************************************/
.page-header {
    background: linear-gradient(rgba(15, 35, 80, 0.8), rgba(15, 35, 80, 0.8)), url('https://images.unsplash.com/photo-1497366216548-37526070297c?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 100px 5% 60px;
    text-align: center;
}
.page-header h1 { font-size: 32px; margin-bottom: 10px; }
.page-header span { color: var(--accent-color); font-weight: bold; font-size: 14px; letter-spacing: 2px; }

/************************************
** セクション共通設定
************************************/
section { padding: 80px 5%; }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 32px; color: var(--primary-color); margin-bottom: 10px; }
.section-title span { color: var(--accent-color); font-weight: bold; letter-spacing: 2px; }

/* --- （PC用） --- */
section[id] {
    scroll-margin-top: 90px; /* PCでのヘッダーの高さを考慮 */
}

/************************************
** 事業案内
************************************/
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.service-card {
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}
.service-card:hover { transform: translateY(-10px); }
.service-img { height: 200px; background-size: cover; background-position: center; }
.service-content { padding: 25px; }
.service-content h3 {
    margin-top: 0;
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 5px;
}

/************************************
** 会社概要
************************************/
.company-profile { background-color: #fff; }
.profile-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    gap: 50px;
    align-items: flex-start;
}
.profile-image { flex: 1; border-radius: 8px; overflow: hidden; }
.profile-image img { width: 100%; height: auto; display: block; }

.profile-table { flex: 1.5; width: 100%; border-collapse: collapse; }
.profile-table th, .profile-table td { padding: 15px; border-bottom: 1px solid #eee; text-align: left; }
.profile-table th {
    width: 30%;
    color: var(--primary-color);
    font-weight: bold;
    background: var(--bg-light);
}

/************************************
** 特徴（選ばれる理由）
************************************/
.features { background-color: var(--bg-light); }
.features-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}
.feature-item { flex: 1; min-width: 300px; text-align: center; }
.feature-icon { font-size: 40px; color: var(--primary-color); margin-bottom: 20px; }

/************************************
** お知らせ
************************************/
.news-list { max-width: 800px; margin: 0 auto; }
.news-item {
    display: flex;
    border-bottom: 1px solid #ddd;
    padding: 20px 0;
    align-items: baseline;
}
.news-date { font-weight: bold; margin-right: 30px; color: var(--primary-color); min-width: 100px; }
.news-tag {
    background: #eee;
    padding: 3px 10px;
    font-size: 12px;
    margin-right: 15px;
    border-radius: 3px;
}

/************************************
** CTA・お問い合わせフォーム
************************************/
.cta { background: var(--primary-color); color: #fff; text-align: center; padding: 60px 20px; }
.cta-btn {
    display: inline-block;
    background: #fff;
    color: var(--primary-color);
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    border-radius: 50px;
}

.contact-form-section { background: var(--bg-light); }
.contact-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-radius: 8px;
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: bold; color: var(--primary-color); }
.form-group label span {
    background: #e74c3c;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
}
.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
}
textarea.form-control { min-height: 150px; }
.submit-btn {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 30px auto 0;
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
}

/************************************
** プライバシーポリシー独自デザイン
************************************/
.content-container {
    max-width: 900px;
    margin: -40px auto 80px;
    background: #fff;
    padding: 60px 80px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-radius: 4px;
    position: relative;
    z-index: 10;
}
.policy-section { margin-bottom: 40px; }
.policy-section h2 {
    font-size: 20px;
    color: var(--primary-color);
    border-left: 4px solid var(--accent-color);
    padding-left: 15px;
    margin-bottom: 20px;
}
.policy-section ul { list-style: disc; padding-left: 20px; }
.policy-section p, .policy-section li { line-height: 1.8; color: #555; }

/************************************
** フッター
************************************/
footer { background: #222; color: #ccc; padding: 50px 5%; font-size: 14px; }
.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
}
.footer-info h3 { color: #fff; margin-top: 0; }
.footer-links ul li { margin-bottom: 10px; }
.footer-links ul li a:hover { color: #fff; text-decoration: underline; }
.copyright {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
    margin-top: 20px;
}

.sp-br {
    display: none;
}
/************************************
** レスポンシブ
************************************/
@media (max-width: 768px) {
    header { flex-direction: column; gap: 15px; }
    nav ul { gap: 15px; flex-wrap: wrap; justify-content: center; }
    .logo img { height: 40px; }
    .hero h1 { font-size: 32px; }
    .profile-container { flex-direction: column; }
    .content-container {
        margin: 20px 5% 60px;
        padding: 30px 20px;
    }
     .sp-br {
        display: block;
    }

    /* 改行した時に文字が詰まりすぎないよう調整（任意） */
    .hero h1 {
        line-height: 1.4;
    }
    .news-item {
        flex-direction: column; /* 横並びを解除して縦並びにする */
        align-items: flex-start; /* 左寄せにする */
        gap: 8px; /* 日付とタイトルの間に少し隙間を作る */
        padding: 15px 0; /* 上下の余白を調整 */
    }

    .news-date {
        margin-right: 0; /* PC用の右余白を消す */
        min-width: auto; /* 幅の制限を解除 */
        font-size: 13px; /* 少し小さくしてスッキリさせる */
    }

    .news-tag {
        margin-right: 0; /* 余白調整 */
        display: inline-block; /* タグとして独立させる */
    }

    .news-title {
        width: 100%; /* タイトルを横幅いっぱいにする */
        line-height: 1.4; /* 折り返しても読みやすくする */
    }
}