@charset "UTF-8";
/* Google Fonts の読み込み */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&family=Sawarabi+Mincho&display=swap');

/* =========================================================
   1. ベース設定・変数
========================================================= */
:root {
    --primary-color: #1b4d22;
    --secondary-color: #388e3c;
    --accent-color: #ff9800;
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f5f8f5;
    --white: #fff;
}

body {
    /* 全体を Noto Sans JP に。文字間隔をわずかに広げて可読性を向上 */
    font-family: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.8;
    /* 行間を少しゆったりさせる */
    letter-spacing: 0.03em;
    /* 文字の間隔を調整 */
    margin: 0;
    padding: 0;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: 0.3s;
}

a:hover {
    opacity: 0.7;
}

/* =========================================================
   2. 共通レイアウト・ユーティリティ
========================================================= */

/* 画像のはみ出し防止（安全対策） */
img {
    max-width: 100%;
    height: auto;
}

.section-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 20px;
}

.bg-light {
    background-color: var(--bg-light);
}

.section-title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 2.2rem;
    letter-spacing: 0.05em;
    position: relative;
    padding-bottom: 15px;
    font-family: "Sawarabi Mincho", serif;
    /* 見出しを明朝体に */
    font-weight: normal;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

.section-desc {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 40px;
}

/* ボタン */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
    border: 1px solid var(--primary-color);
}

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

.btn-large {
    padding: 15px 50px;
    font-size: 1.1rem;
}

.center-btn-wrapper {
    text-align: center;
    margin-top: 40px;
}

/* ダミー画像用プレースホルダー */
.placeholder-img {
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.9rem;
}

/* ページ内リンク用オフセット（ヘッダー追従の被り防止） */
.scroll-anchor {
    padding-top: 80px;
    margin-top: -80px;
}

/* =========================================================
   3. [NEW] 共通コンポーネント
========================================================= */

/* --- メディアブロック（画像＋テキスト） --- */
.media-block {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 60px;
}

.media-block.reverse {
    flex-direction: row-reverse;
}

.media-text {
    flex: 1;
}

.media-text p {
    margin-bottom: 20px;
}

.media-image {
    flex: 1;
    height: 350px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* --- カードグリッド（3カラム） --- */
.card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
}

.card {
    flex: 1 1 calc(33.333% - 30px);
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.card-img {
    height: 220px;
    width: 100%;
}

.card-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-body h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.25rem;
    border-bottom: 2px solid var(--secondary-color);
    /* デザイン統一 */
    padding-bottom: 10px;
}

/* カード内のタイトルも明朝体にしてプロ感を出す */
.card-body h3,
.media-text h3,
.service-title {
    font-family: "Sawarabi Mincho", serif;
    font-weight: bold;
}

.card-body p {
    color: var(--text-light);
    margin-bottom: 20px;
    flex-grow: 1;
}


/* =========================================================
   4. ヘッダー・ナビゲーション
========================================================= */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

header h1 a {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: bold;
}

header h1 a:hover {
    opacity: 1;
}

.global-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.global-nav>li {
    position: relative;
    margin-left: 25px;
}

.global-nav>li>a {
    color: var(--text-color);
    font-weight: bold;
    padding: 10px 0;
    display: block;
}

.global-nav>li>a:hover {
    color: var(--secondary-color);
}

.nav-contact-btn {
    background-color: var(--secondary-color);
    color: var(--white) !important;
    padding: 10px 20px !important;
    border-radius: 4px;
}

.nav-contact-btn:hover {
    background-color: var(--primary-color);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 10px 0;
    min-width: 200px;
    border-radius: 4px;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    padding: 10px 20px;
    display: block;
    color: var(--text-color);
    font-size: 0.95rem;
}

.dropdown-menu li a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

/* PC表示ではハンバーガーボタンを非表示 */
.menu-toggle {
    display: none;
}

/* =========================================================
   5. フッター
========================================================= */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 20px 20px;
    margin-top: 100px;
}

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

.footer-info h3 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 20px;
    color: #fff;
}

.footer-info p {
    margin-bottom: 10px;
    opacity: 0.9;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--white);
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
   /* padding-left: 5px;*/
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* =========================================================
   6. トップページ固有スタイル
========================================================= */
.hero {
    /* background: linear-gradient(rgba(27, 77, 34, 0.6), rgba(27, 77, 34, 0.6)), url('img/top.jpg') no-repeat center center/cover;*/
    background: linear-gradient(rgb(169 255 216 / 15%), rgb(88 88 88 / 30%)), url('../img/service1_photo02.jpg') no-repeat center center/cover;
    height: 70vh;
    min-height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

.hero-content h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* 当社の強み セクション用 */
.feature-icon {
    display: inline-block;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 10px;
    border: 1px solid var(--secondary-color);
    padding: 2px 10px;
    border-radius: 20px;
}

.features .card {
    border-top: 5px solid var(--primary-color);
    /* 上部にラインを入れて強調 */
}

.features .card-body h3 {
    border-bottom: none;
    /* お知らせ風にならないよう線を消す */
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* =========================================================
   7. サブページ（下層ページ）共通スタイル
========================================================= */
.sub-hero {
    height: 30vh;
    min-height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
}

/* 各ページのヒーロー画像設定 */
.services-hero {
    background: url('../img/image-07.jpg') no-repeat center center/cover;
}

.company-hero {
    background: url('../img/image-04.jpg')  no-repeat center center/cover;
}

.contact-hero {
    background: url('../img/image-05.jpg') no-repeat center center/cover;
}

.landscaping-hero {
    
    background:url('../img/image-07.jpg') no-repeat center center/cover;
}

.civil-hero {
    background:url('../img/image-02.jpg') no-repeat center center/cover;
}

.exterior-hero {
    background: url('../img/image-14.jpg') no-repeat center center/cover;
}

.sub-hero-content h2 {
    font-size: 2.2rem;
    margin-bottom: 5px;
    letter-spacing: 0.1em;
}

.sub-hero-content p {
    font-size: 1rem;
    letter-spacing: 0.2em;
    opacity: 0.8;
}

.breadcrumb {
    font-size: 0.9rem;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--text-color);
}

.breadcrumb a:hover {
    text-decoration: underline;
    color: var(--primary-color);
}

/* リストスタイル（事業内容ページ用） */
.service-list {
    background-color: var(--bg-light);
    padding: 20px 20px 20px 40px;
    border-radius: 4px;
    margin-top: 20px;
}

.service-list li {
    margin-bottom: 10px;
}

.service-list li:last-child {
    margin-bottom: 0;
}

.service-title {
    color: var(--primary-color);
    font-size: 1.8rem;
    border-left: 5px solid var(--secondary-color);
    padding-left: 15px;
    margin-top: 0;
    margin-bottom: 20px;
}

/* ギャラリー（施工事例） */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    height: 250px;
    border-radius: 8px;
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

/* CTAブロック */
.contact-cta {
    text-align: center;
    border-radius: 8px;
}

/* =========================================================
   8. 会社概要・沿革ページ固有スタイル
========================================================= */
.table-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.history-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 20px;
    border-bottom: 1px solid #eee;
    text-align: left;
    vertical-align: top;
}

.data-table tr:last-child th,
.data-table tr:last-child td {
    border-bottom: none;
}

.data-table th {
    width: 25%;
    background-color: #f0f7f0;
    color: var(--primary-color);
    font-weight: bold;
    border-right: 1px solid #fff;
}

.data-table td ul {
    margin: 0;
    padding: 0;
    /* 左側の余白をなくす */
    list-style: none;
    /* 黒丸を消す */
}

.data-table td ul li {
    margin-bottom: 5px;
    padding-left: 0;
    /* 必要に応じて調整 */
}

.history-table {
    background-color: transparent;
}

.history-table th {
    background-color: transparent;
    border-right: 2px solid var(--secondary-color);
    width: 20%;
    white-space: nowrap;
    position: relative;
    padding-right: 30px;
}

.history-table th::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 25px;
    width: 12px;
    height: 12px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    border: 3px solid var(--bg-light);
}

.history-table td {
    padding-left: 30px;
    border-bottom: 1px dashed #ccc;
}

/* =========================================================
   9. お問合せページ固有スタイル
========================================================= */
.contact-info-box {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.info-item {
    background-color: var(--white);
    border: 2px solid var(--secondary-color);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    flex: 1;
    min-width: 300px;
    max-width: 400px;
}

.info-item h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.tel-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-color);
    margin: 10px 0;
}

.business-hours {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

.form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 30px;
}

.form-label {
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--primary-color);
}
/*
.required,
.optional {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: normal;
    margin-left: 10px;
    vertical-align: middle;
}

.required {
    background-color: #d32f2f;
    color: #fff;
}

.optional {
    background-color: #9e9e9e;
    color: #fff;
}
*/
/* --- 必須・任意バッジ（クラス名変更） --- */
.req-badge,
.opt-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: normal;
    margin-left: 10px;
    vertical-align: middle;
}

.req-badge {
    background-color: #d32f2f;
    color: #fff;
}

.opt-badge {
    background-color: #9e9e9e;
    color: #fff;
}

/* --- フォーム構造変更に伴うリセットとエラー装飾 --- */
.form-group dt {
    margin: 0 0 10px 0;
    padding: 0;
}

.form-group dd {
    margin: 0;
    padding: 0;
}

span.error_blank, 
span.error_format, 
span.error_match {
    display: block;
    color: #d32f2f;
    font-size: 0.9rem;
    margin-top: 5px;
    font-weight: bold;
}/***/

.form-input {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
    background-color: var(--white);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(27, 77, 34, 0.2);
}

textarea.form-input {
    resize: vertical;
}

.privacy-policy-check {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.privacy-policy-check input[type="checkbox"] {
    transform: scale(1.5);
    margin-right: 10px;
    vertical-align: middle;
}

.privacy-policy-check a {
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    max-width: 300px;
    cursor: pointer;
    border: none;
}


/* =========================================================
   10. プライバシーポリシーページ固有スタイル
========================================================= */
/* ヒーロー画像（汎用的な会社イメージなどを指定。必要に応じて画像パスを変更してください） */
.privacy-hero {
    background: linear-gradient(rgba(27, 77, 34, 0.7), rgba(27, 77, 34, 0.7)), url('../img/image-04.jpg') no-repeat center center/cover;
}

/* 本文を囲む白いボックス */
.privacy-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.privacy-intro {
    font-size: 1.05rem;
    margin-bottom: 40px;
    line-height: 1.8;
}

.privacy-content h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    border-left: 4px solid var(--secondary-color);
    padding-left: 15px;
    margin-top: 45px;
    margin-bottom: 20px;
    font-family: "Sawarabi Mincho", serif;
}

.privacy-content p {
    margin-bottom: 15px;
}

.privacy-content ul {
    margin-top: 0;
    margin-bottom: 25px;
    padding-left: 1.5em;
}

.privacy-content li {
    margin-bottom: 8px;
    list-style-type: disc;
    /* 黒丸リスト */
}

.privacy-contact-info {
    background-color: var(--bg-light);
    padding: 20px;
    border-radius: 4px;
    margin-top: 20px;
    line-height: 1.8;
}


/* =========================================================
   11. メディアクエリ（レスポンシブ対応）
========================================================= */

/* タブレット〜PC向けの中間ブレイクポイント */
@media (max-width: 850px) {

    /* 共通コンポーネント */
    .media-block,
    .media-block.reverse {
        flex-direction: column;
        gap: 30px;
    }

    .media-image {
        width: 100%;
        height: 300px;
        /* タブレット以下での高さ統一 */
    }

    .card {
        flex: 1 1 100%;
    }
}

/* タブレット・スマホ向けブレイクポイント */
@media (max-width: 768px) {

    /* --- 余白のスマホ最適化 --- */
    .section-container {
        padding: 40px 20px;
    }

    .media-block {
        margin-bottom: 40px;
    }

    /* --- ハンバーガーメニューとヘッダー --- */
    .header-container {
        padding: 0px 20px;
        position: relative;
        min-height: 50px;
        /* 必要最低限の高さを確保 */
    }

    header h1 a {
        font-size: 1.25rem;
        /* 1.5remから一回り小さく調整 */
    }

    /* ハンバーガーボタンの表示 */
    .menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 35px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 2000;
        width: 30px;
        height: 24px;
    }

    .menu-toggle span {
        display: block;
        position: absolute;
        width: 100%;
        height: 3px;
        background-color: var(--primary-color);
        border-radius: 3px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .menu-toggle span:nth-child(1) {
        top: 0;
    }

    .menu-toggle span:nth-child(2) {
        top: 10px;
    }

    .menu-toggle span:nth-child(3) {
        bottom: 0;
    }

    /* ✕ボタンへのアニメーション */
    .menu-toggle.is-active span:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }

    .menu-toggle.is-active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.is-active span:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }

    /* スライドしてくるナビゲーションメニュー */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        /* メニュー幅を少し広げてゆったりと */
        max-width: 340px;
        height: 100vh;
        background-color: var(--white);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);
        /* 影を濃くして浮遊感を演出 */
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        padding-top: 70px;
        z-index: 1500;
        overflow-y: auto;
    }

    .nav-menu.is-active {
        right: 0;
    }

    .global-nav {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 20px 40px;
        /* 全体の余白 */
    }

    .global-nav>li {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
        /* 薄く上品な実線 */
    }

    .global-nav>li:last-child {
        border-bottom: none;
        margin-top: 30px;
        /* お問合せボタンの上に余白 */
    }

    .global-nav>li>a {
        padding: 16px 0;
        width: 100%;
        font-size: 1.1rem;
        color: var(--text-color);
    }

    /* スマホ時のドロップダウン（事業内容の下層メニュー） */
    .dropdown-menu {
        display: block;
        position: static;
        box-shadow: none;
        padding: 10px 20px 15px;
        margin: 0 -25px;
        /* 親の余白を打ち消して背景を横幅いっぱいに */
        background-color: #f6fbf6;
        /* ほんのり緑色の背景でグループ化 */
        border-radius: 0;
        min-width: 100%;
        border-top: 1px solid #f0f0f0;
    }

    .dropdown-menu li {
        margin: 0;
    }

    .dropdown-menu li a {
        padding: 12px 0 12px 15px;
        border-bottom: none;
        font-size: 0.95rem;
        color: #555;
        position: relative;
    }

    /* サブメニューの先頭に小さな丸ポチをつける */
    .dropdown-menu li a::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 5px;
        height: 5px;
        background-color: var(--secondary-color);
        border-radius: 50%;
    }

    /* お問合せボタンを「押しやすいボタン風」に装飾 */
    .global-nav>li>a.nav-contact-btn {
        background-color: var(--primary-color) !important;
        color: #fff !important;
        text-align: center;
        border-radius: 8px;
        padding: 16px;
        box-shadow: 0 4px 8px rgba(27, 77, 34, 0.2);
        display: block;
        /* ブロック要素にする */
        width: 100%;
        /* 幅をいっぱいに広げる */
        box-sizing: border-box;
        /* ★重要：パディングを含めて計算し、はみ出しを防ぐ */
    }

    /* プライバシーポリシー用レスポンシブ */
    .privacy-content {
        padding: 30px 20px;
    }

    .privacy-content h3 {
        margin-top: 35px;
    }

    /* --- トップページ --- */
    .hero-content h2 {
        font-size: 2rem;
    }

    .news-list li {
        flex-direction: column;
        align-items: flex-start;
    }

    .news-date {
        margin-bottom: 5px;
    }

    /* --- フッター --- */
    .footer-container {
        flex-direction: column;
    }
}

/* スマホ向けブレイクポイント */
@media (max-width: 600px) {

    .data-table th,
    .data-table td {
        display: block;
        width: 100%;
    }

    .data-table th {
        border-right: none;
        border-bottom: 1px solid #ddd;
        background-color: #e8f3e8;
    }

    .history-table th {
        border-right: none;
        border-bottom: none;
        padding-bottom: 5px;
    }

    .history-table th::after {
        display: none;
    }

    .history-table td {
        padding-left: 20px;
        padding-top: 5px;
        border-bottom: 1px solid #ccc;
    }

    .form-wrapper {
        padding: 30px 20px;
    }

    .contact-info-box {
        gap: 20px;
    }

    .info-item {
        min-width: 100%;
    }

    .tel-number {
        font-size: 1.5rem;
    }
}


/* --- フォーム構造変更に伴うリセットとエラー装飾 --- */
.form-group { margin: 0 0 30px 0; padding: 0; }
.form-group dt { margin: 0 0 10px 0; padding: 0; }
.form-group dd { margin: 0; padding: 0; }

span.error_blank, 
span.error_format, 
span.error_match {
    display: block;
    color: #d32f2f;
    font-size: 0.9rem;
    margin-top: 5px;
    font-weight: bold;
}