/* --- ベースとなるフォント・文字設定 --- */
:root {
  --main-color: #264235;
  --sub-color: #f2fbf3;
  --accent-color: #6ba28b;
  --green-color: #f9faf7;
  --blue-color: #f0fbfd;
  --gray-color: #f9f9f9	;
  --yellow-color: #fffad8;
  --pink-color: #ffe6f0;
  --purple-color: #f9f4fe;
}

/* 画面はみ出し・縮小ガタつき防止 */
html, body {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: "Hiragino Sans", "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", Meryo, "メイリオ", Osaka, "ＭＳ Ｐゴシック", "MS P Gothic", sans-serif;
  line-height: 1.8;
  letter-spacing: 0.05em;
  color: #333;
  margin:0px;
}

/* --- 見出しのスタイル --- */
h1, h2, h3 {
    color: var(--main-color);
    font-weight: 700;
}

h2 {
font-family: 'Zen Old Mincho', serif;
	font-weight: 700;
    font-size: 1.8rem;
    border-bottom: 2px solid var(--main-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}


/* --- リンクのスタイリング --- */
a {
    color: #2c5e2e;
    text-decoration: none;
	font-weight: bold;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}


/* フォントサイズと改行 */
.fs9 { font-size: 0.9em !important; }
.fs8 { font-size: 0.8em !important; }
.br10 { margin-bottom: 10px !important; }
.br20 { margin-bottom: 20px !important; }
.br30 { margin-bottom: 30px !important; }
.br40 { margin-bottom: 40px !important; }
.br50 { margin-bottom: 50px !important; }
.br100 { margin-bottom: 50px !important; }



/* --- レイアウト部品 --- */
main { width: 100%; }

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

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

img:not(.hero-slider img) {
    border-radius: 12px;
}

/* スライドショーの画像は角丸を打ち消す（保険） */
.hero-slider img {
    border-radius: 0 !important;
}



/* ヒーローエリア全体 */
.page-hero {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    height: 50vh;
    overflow: hidden;
}

.page-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85);
}

/* テキストの配置コンテナ */
.page-hero-content {
    position: absolute;
    top: 75%;
    transform: translateY(-50%);
    z-index: 10;
    width: 100%;
    max-width: 1000px; /* コンテナの幅に合わせる */
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 0 40px;
    display: flex;
}

/* 右に寄せる設定 */
.page-hero-content.is-right {
    justify-content: flex-end;
    text-align: right;
}

/* 左に寄せる設定 */
.page-hero-content.is-left {
    justify-content: flex-start;
    text-align: left;
}

/* キャッチフレーズ：Zen Old Mincho */
.hero-catchphrase {
    font-family: 'Zen Old Mincho', serif;
    color: #fff;
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.8;
    margin: 0;
    letter-spacing: 0.2em; /* 明朝体は少し広めが綺麗です */
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.6);
}

/* スマホ用：画面が狭いので中央付近に戻すか、サイズを微調整 */
@media (max-width: 768px) {
    .page-hero { height: 45vh; }
    .page-hero-content {
        padding: 0 20px;
        justify-content: center !important;
        text-align: center !important;
        top: 85%;
    }
    .hero-catchphrase {
        font-size: 1.6rem;
        letter-spacing: 0.1em;
        line-height: 1.6;
    }
}


/* --- 共通セクションスタイル --- */
.content-section {
    padding: 50px 20px;
    background-color: #fff;
    position: relative;
}

/* 他の gray-bg セクションには影響しません */
.content-section.section-publications {
    padding-bottom: 150px;
}

/* スマホ用の調整（必要であれば） */
@media (max-width: 768px) {
    .content-section.gray-bg {
        padding-top: 60px;
    }
    .content-section.section-publications {
        padding-bottom: 100px;
    }
}

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

.section-title {
    margin-bottom: 30px;
}

/* --- 画像とテキストの配置（Flexbox） --- */
.section-body {
    display: flex;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

/* --- 曲線セクション（curve-top） --- */
.curve-top {
    padding-top: 120px; !important;
}

.curve-top::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: inherit; 
    clip-path: ellipse(100% 100% at 20% 0%);
    z-index: 1;
    background-color: #fff;
}

/* --- テキストエリアドロップシャドウ --- */
.text-box p {
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.8), 0 0 8px rgba(255, 255, 255, 0.8);
}

/* --- レスポンシブ --- */
@media (max-width: 768px) {
    .section-body {
        flex-direction: column;
    }
    .section-title {
        text-align: center;
    }
	h2 {
        display: block;
        margin: 0 auto 20px;
        width: fit-content;
    }
}


/* クラスを繋げて書くことで優先順位を上げます */
.content-section.gray-bg.section-publications {
    padding-bottom: 200px !important; /* 下を大幅に広げる */
}

/* スマホ用の調整 */
@media (max-width: 768px) {
    .content-section.gray-bg.section-publications {
        padding-bottom: 120px !important;
    }
    .curve-top {
        padding-top: 80px !important;
    }
}




/* キャッチコピー */
.catchcopy-wrapper {
    text-align: center;
    margin: 20px auto 40px;
}

.catchcopy-img {
    max-width: 100%;
    height: auto;
    width: 500px;
    display: block;
    margin: 0 auto;
    transform: rotate(5deg);
}

/* ===== お問い合わせ ===== */
/* 1. フォーム全体のレイアウト */
.contact-form-wrapper {
  width: 100%;
}

/* 2. 項目名（ラベル）の設定 */
.contact-form-wrapper label {
  display: block;
  margin-top: 20px;
  margin-bottom: 8px;
  font-weight: bold;
}

/* 3. 入力欄（テキスト・メール・メッセージ共通） */
/* [text*] [email*] [textarea] などに反応 */
.contact-form-wrapper input[type="text"],
.contact-form-wrapper input[type="email"],
.contact-form-wrapper textarea {
  display: block;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 12px;
  box-sizing: border-box;
}

/* 4. Contact Form 7特有の崩れ対策（重要） */
/* 自動で入るspanタグが横幅を邪魔するのを防ぐ */
.contact-form-wrapper .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

/* チェックボックス（回答希望）を横並びにする設定 */
.contact-form-wrapper .wpcf7-checkbox {
  display: flex;
  gap: 20px;
  margin-bottom: 1.2em;
}

/* 5. 送信ボタンの設定 */
.contact-form-wrapper [type="submit"] {
  background-color: var(--accent-color);
  color: #fff;
  border: none;
  padding: 10px 10px;
  border-radius: 12px;
  cursor: pointer;
  width: 120px;
  max-width: 100%;
  display: block;
  margin: 40px auto 0;
  font-size: 1em;
  transition: opacity 0.3s;
}

.contact-form-wrapper [type="submit"]:hover {
  opacity: 0.8;
}

/* 6. スマホ版の微調整 */
@media screen and (max-width: 768px) {
  .contact-form-wrapper input[type="text"],
  .contact-form-wrapper input[type="email"],
  .contact-form-wrapper textarea {
    max-width: 100%;
  }
}


/* --- 共通ダウンロードボタン --- */
.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-color);
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-2px);
    opacity: 1;
}

.download-btn::before {
    content: "<i class="fa-solid fa-file-pdf"></i> ";
    margin-right: 10px;
}



/* 汎用グリッドシステム */
.grid-row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center; 
    align-items: flex-start;
}

/* カラムの共通設定：子要素に直接適用 */
.grid-col {
	min-width: 0;
}

/* スマホ対応：768px以下で縦並び */
@media (max-width: 768px) {
.grid-row {
        gap: 20px !important;
        margin-top: 15px !important;
        justify-content: center !important;
    }
    
    .grid-col {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        text-align: center !important
    }
	
	.download-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 12px 20px !important;
        font-size: 0.9rem;
        width: 100%;
        box-sizing: border-box;
	}
}



/* --- 報告書・定款リスト専用レイアウト --- */
.report-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    gap: 15px;
}

.report-title {
    flex: 1;
    text-align: left;
}

/* 共通ボタンをリスト用に一回り小さくする */
.download-btn.rp-btn-small {
    width: 130px !important;      /* 横幅を固定 */
    padding: 8px 15px !important;  /* 既存の12px 30pxから縮小 */
    font-size: 0.85rem !important; /* 既存の設定より少し小さく */
    min-width: auto !important;
    flex-shrink: 0;                /* ボタンが潰れないように */
    margin: 0 !important;
}

/* 共通設定の疑似要素アイコン(::before)が不要な場合は content: none; に */
/* .download-btn.rp-btn-small::before { content: none !important; } */

/* --- スマホ対応 (768px以下) --- */
@media (max-width: 768px) {
    .report-item {
        flex-direction: column; /* 縦並び */
        justify-content: center;
        text-align: center;
        padding: 20px 0;
    }

    .report-title {
        text-align: center !important;
        width: 100% !important;
        margin-bottom: 5px;
    }

    .download-btn.rp-btn-small {
        margin: 0 auto !important; /* 中央寄せ */
        width: 150px !important;   /* スマホでは少し押しやすく */
    }
}



/* お知らせ・メディア掲載共通 */
.news-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}


/* 画像サイズ設定 */
.news-image {
    flex: 0 0 150px;
    height: 150px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--main-color);
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* スマホ対応 */
@media (max-width: 768px) {
    /* お知らせアイテム全体の調整 */
    .news-item {
        flex-direction: column-reverse;
        align-items: flex-start;
        width: 100%;
        margin-bottom: 20px;
        padding-bottom: 20px;
        box-sizing: border-box;
        overflow: hidden;
    }

    /* テキストエリアの調整 */
    .news-text {
        width: 100%;
        word-break: break-all;
    }

    /* 画像コンテナの調整 */
    .news-image {
        width: 100% !important;
        max-width: 100% !important;
        height: auto;
        aspect-ratio: 16 / 9;
        flex: none;
        margin-bottom: 15px;
        border-radius: 12px;
        overflow: hidden;
    }
}


/* ページネーション */
.pagination {
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
    clear: both;
}

/* ページ番号一つ一つのスタイル */
.pagination a, 
.pagination span {
    display: inline-block;
    padding: 10px;
    margin: 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    line-height: 1;
}

/* 現在地とホバー時のスタイル */
.pagination .current {
    background-color: #f8f8f8;
    border-color: #333;
    font-weight: bold;
}

.pagination a:hover {
    background-color: #eee;
}


/* ボタン本体：丸みと色だけで表現 */
.load-more-btn.btn {
    display: inline-block;
    padding: 14px 48px;
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 50px; /* 完全に丸くして可愛く */
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease; /* 少し速めの反応に */
    margin-top: 20px;
}

/* ホバー：色が変わるだけの清潔感 */
.load-more-btn.btn:hover {
    transform: translateY(-2px);
}

/* 読み込み中：ボタンを半透明にして「お休み中」を表現 */
.load-more-btn.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Contact Form 7 の送信完了・エラーメッセージを非表示にする */
.wpcf7-response-output {
    display: none !important;
}

/* アニメーションの初期状態 */
.js-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* 画面に入った時の状態 */
.js-fade.is-show {
    opacity: 1;
    transform: translateY(0);
}


/* スマホ版の改行 */
.sp-br {
  display: none;
}

/* スマホ版（768px以下） */
@media screen and (max-width: 768px) {
  .sp-br {
    display: block;
  }
}