@charset "UTF-8";

/* ==========================================================================
   1. 基本設定・カラー変数（黒つぶれしない明るめグリーンパレット）
   ========================================================================== */
:root {
    --primary-color: #0f6838;       /* メインの深緑（見出し・テキスト等） */
    --primary-light: #168a4b;       /* ボタン・アクセント用の中間グリーン */
    --primary-accent: #22c55e;      /* アイコン・強調・送信ボタン等の明るいグリーン */
    --bg-dark: #18522f;             /* お問い合わせ背景（明るく澄んだフォレストグリーン） */
    --bg-dark-card: #23693e;        /* フォーム枠背景（沈まないエメラルドグリーン寄りの深緑） */
    --bg-light: #edf6ef;            /* 薄い背景（ほのかに緑を感じるクリーンな白） */
    --text-main: #2b3b30;           /* 本文テキスト */
    --text-muted: #5a6d61;          /* 補足テキスト */
    --border-color: #e2ede4;        /* 区切り線 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-main);
    background-color: #ffffff;
    line-height: 1.8;
    letter-spacing: 0.03em;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

.text-center {
    text-align: center;
}

/* ==========================================================================
   2. ヘッダー & ナビゲーション
   ========================================================================== */
.header {
    width: 100%;
    position: sticky;
    top: 0;
    background-color: #ffffff;
    box-shadow: 0 2px 12px rgba(15, 104, 56, 0.08);
    z-index: 1000;
}

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

.logo img {
    height: 48px;
    width: auto;
}

.nav ul {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav a {
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
    white-space: nowrap; /* ← 追加：文字の縦折れを完全に防止 */
}

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

.nav a.btn-primary {
    background-color: var(--primary-light);
    color: #ffffff !important;
    padding: 9px 22px;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(22, 138, 75, 0.25);
    white-space: nowrap; /* ← 追加：ボタン内文字の縦折れを防止 */
}

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

/* ハンバーガーメニュー（スマホ用） */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--primary-color);
    border-radius: 3px;
    left: 0;
    transition: 0.3s;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 10px; }
.hamburger span:nth-child(3) { top: 20px; }

.hamburger.active span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* ==========================================================================
   3. メインビジュアル (Hero - 明るめグラデーション)
   ========================================================================== */
.hero {
    background: linear-gradient(135deg, #18522f 0%, #206d3e 50%, #168a4b 100%);
    color: #ffffff;
    padding: 110px 20px;
    text-align: center;
    position: relative;
}

.hero-content h2 {
    font-size: 2.2rem;
    line-height: 1.5;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 35px;
    color: #e6f7ec;
}

.btn-hero {
    background-color: #ffffff;
    color: #18522f; /* 引き締まった深緑の文字 */
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1.05rem;
    font-weight: 700;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.btn-hero:hover {
    background-color: #e6f7ec;
    color: #0f6838;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   4. 共通セクションスタイル
   ========================================================================== */
.section {
    padding: 80px 0;
}

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

.bg-dark {
    background-color: var(--bg-dark); /* 明るめの深緑 */
}

.section-title {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.08em;
    margin-bottom: 5px;
}

.section-title.light {
    color: #86efac; /* 暗い背景でもハッキリ映える明るいライトグリーン */
}

.section-subtitle {
    color: var(--primary-light);
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 45px;
}

.section-subtitle.light {
    color: #d1fae5;
}

/* ==========================================================================
   5. グリッドレイアウト & カード
   ========================================================================== */
.grid {
    display: grid;
    gap: 30px;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

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

.card {
    background: #ffffff;
    border-radius: 12px;
    padding: 35px 25px;
    border-top: 5px solid var(--primary-light);
    box-shadow: 0 4px 15px rgba(15, 104, 56, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(15, 104, 56, 0.15);
}

.feature-card .icon {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.card h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.service-card ul {
    margin-top: 15px;
    border-top: 1px dashed var(--border-color);
    padding-top: 15px;
}

.service-card ul li {
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.service-card ul li::before {
    content: "✔";
    color: var(--primary-accent);
    margin-right: 8px;
    font-weight: bold;
}

/* ==========================================================================
   6. 代表挨拶 (MESSAGE)
   ========================================================================== */
.message-box {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(15, 104, 56, 0.08);
    border-left: 6px solid var(--primary-light);
}

.message-box p {
    margin-bottom: 15px;
    color: var(--text-main);
}

.message-author {
    text-align: right;
    margin-top: 25px;
    font-size: 1rem;
    color: var(--text-muted);
}

.message-author strong {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-left: 8px;
}

/* ==========================================================================
   7. 会社概要テーブル (COMPANY)
   ========================================================================== */
.company-table {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}

.company-table th,
.company-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
    font-size: 0.95rem;
}

.company-table th {
    background-color: var(--bg-light);
    color: var(--primary-color);
    width: 25%;
    font-weight: 700;
}

.company-table td {
    color: var(--text-main);
}

/* ==========================================================================
   8. キャラクターバナー (CTA)
   ========================================================================== */
.banner-cta-section {
    padding: 40px 0 20px 0;
    background-color: #edf6ef;
}

.banner-cta-link {
    display: inline-block;
    max-width: 900px;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(15, 104, 56, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.banner-cta-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(15, 104, 56, 0.18);
    opacity: 0.96;
}

.banner-cta-img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   9. お問い合わせフォーム (CONTACT - 明るめフォレストグリーン)
   ========================================================================== */
.contact-lead {
    color: #e6f7ec;
    margin-bottom: 35px;
    font-size: 1rem;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto 40px auto;
    background: #f4f8f5; /* ほんのり緑を感じる落ち着いた淡いソフトカラー */
    padding: 40px;
    border-radius: 16px;
    border: 1px solid #d5e5da; /* 優しいグリーンの境界線 */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    color: #1f3827; /* 濃いめのフォレストグリーンで視認性を確保 */
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group .required {
    background: #ef4444;
    color: #ffffff;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    font-weight: normal;
}

/* 入力欄（白〜明るいグレー背景にして書きやすく） */
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 15px;
    border-radius: 8px;
    border: 1px solid #c2d8c9;
    background-color: #eaf1ec;
    color: #1a3322;
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box;
    transition: 0.3s;
}

.form-group textarea {
    resize: vertical;      /* 縦方向にのみ伸縮可能にする（横のはみ出しを完全防止） */
    min-height: 140px;     /* 初期の最小の高さ */
    max-height: 400px;     /* 広がりすぎ防止の上限（お好みで調整可） */
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #7d9685; /* プレースホルダーも見やすく調整 */
}

/* フォーカスした時だけフワッと明るく */
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background-color: #f7faf8;
    border-color: #168a4b;
    box-shadow: 0 0 0 3px rgba(22, 138, 75, 0.15);
}

/* 送信ボタン */
.btn-submit {
    background: #168a4b;
    color: #ffffff;
    border: none;
    padding: 15px 55px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(22, 138, 75, 0.3);
}

.btn-submit:hover {
    background: #0f6838;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 104, 56, 0.4);
}

.contact-sub {
    color: #d1fae5;
    font-size: 0.9rem;
    border-top: 1px dashed #3b8756;
    padding-top: 30px;
    max-width: 700px;
    margin: 0 auto;
}

.tel-link {
    display: inline-block;
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: bold;
    margin: 10px 0;
}

.tel-link:hover {
    color: #86efac;
}

.email-note {
    color: #bbf7d0;
    font-size: 0.85rem;
}

/* ==========================================================================
   10. フッター
   ========================================================================== */
.footer {
    background-color: #103820;
    color: #9ec5aa;
    text-align: center;
    padding: 25px 0;
    font-size: 0.85rem;
}

/* ==========================================================================
   11. レスポンシブ対応 (スマホ・タブレット)
   ========================================================================== */
@media (max-width: 1150px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        padding: 25px 0;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    }

    .nav.active {
        display: block;
    }

    .nav ul {
        flex-direction: column;
        gap: 15px;
    }

    .hamburger {
        display: block; /* 三本線アイコンを表示 */
    }

    .hero-content h2 {
        font-size: 1.6rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .section {
        padding: 55px 0;
    }

    .contact-form {
        padding: 25px 18px;
    }

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

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