:root {
    --main-green: #4e8e36;
    --accent-green: #ddecae;
    --light-green: #e9efd5;
    --accent-yellow: #FFB800;
    --text-color: #333;
    --bg-light: #fbf8ee; /* わずかにベージュがかった温かい白 */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Zen Maru Gothic", sans-serif;
    color: var(--text-color);
    background-color: #ffffff;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    margin: 0px;
    padding: 0px;
}

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

/* 見出しのデザイン */
h1, h2, h3 {
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--main-green);
}

/* 共通のコンテナ設定 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* --- レイアウト：セクションの余白 --- */
.section-padding {
    padding: 100px 0;
}
@media (max-width: 768px) {
    .section-padding { padding: 60px 0; }
}

/* --- コンテナ：中央寄せの幅 --- */
.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 25px;
}

/* --- タイトル：下線とアイコン用スペース --- */
.common-title {
    font-size: 1.75rem;
    font-weight: bold;
    color: var(--main-green);
    margin-bottom: 50px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--main-green);
    display: flex;
    align-items: center;
}

.common-title::before {
    content: "";
    display: inline-block;
    width: 0;
    height: 40px;
    transition: width 0.3s;
}

/* --- 画像：角丸とSafari対策 --- */
.common-img-deco {
    border-radius: 12px;
    overflow: hidden;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    line-height: 0;
    margin-bottom: 30px;
}
.common-img-deco img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* --- テキスト：読みやすさの追求 --- */
.common-text {
    font-size: 1.1rem;
}
.common-text p:first-child {
    margin-top: 0;
}

/* --- フォントバリエーション --- */
.text-standard { font-size: 1rem; line-height: 2; }
.text-small { font-size: 0.95rem; line-height: 1.6; }
.text-xs { font-size: 0.85rem; line-height: 1.5; color: #666; }
.text-tiny { font-size: 0.75rem; line-height: 1.4; color: #777; }
.text-bold-s { font-size: 0.9rem; font-weight: bold; }

/* 2カラムレイアウト */
.common-2col {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}
.common-2col-text { flex: 1; }
.common-2col-img { flex: 0 0 40%; }
.common-2col-img img { width: 100%; height: auto; display: block; }

@media screen and (max-width: 768px) {
    .common-2col { flex-direction: column !important; gap: 20px; }
    .common-2col-img { width: 100% !important; flex: none !important; }
}

.btn {
    display: inline-block;
    background-color: #fff;
    color: var(--main-green);
    border: 2px solid var(--main-green);
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}
.btn:hover { background-color: var(--main-green); color: #fff; }

/* --- ニュースグリッド --- */
.news-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important; 
    gap: 50px 30px;
    margin-top: 40px;
}

.news-card {
    position: relative;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: visible; 
    transition: all 0.3s ease;
    min-width: 0;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.news-card-link {
    display: block;
    text-decoration: none;
    color: #333;
}

/* リンクがない場合の挙動（divタグになるため） */
div.news-card-link {
    cursor: default;
}

/* カード画像エリアの基本スタイル */
.news-card-img {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
    background-color: var(--bg-light); /* ★画像がない時の背景色 */
}

/* サムネイルがある場合のみ表示 */
.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ★タイトルラベル：画像有無に関わらず共通のデザインと位置 */
.news-card-body-overlay {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 10px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 2;
}

.news-card-title-full {
    font-size: 0.85rem;
    font-weight: bold;
    line-height: 1.4;
    margin: 0;
    color: var(--text-color);
}


/* リンクがない（divになっている）時の挙動 */
div.news-card-link {
    cursor: default !important;
    pointer-events: none; /* クリックを完全に無効化 */
}

/* リンクがない時はホバー時のカード浮き上がりを抑制したい場合 */
.news-card:has(div.news-card-link):hover {
    transform: none;
    box-shadow: none;
}


/* 地域タグ（寺分・上町屋） */
.loc-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    color: #fff;
}
.is-terabun { background-color: var(--main-green); }
.is-kamimachiya { background-color: #e67e22; }

/* 申込ボタン */
.card-btn-area {
    position: absolute;
    bottom: -15px;
    right: -10px;
    z-index: 10;
}

.entry-btn-round {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: var(--accent-yellow);
    color: #fff !important;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 50%;
    border: 3px solid #fff;
    transition: all 0.3s ease;
}

.entry-btn-round:hover {
    transform: scale(1.1);
}

/* --- レスポンシブ --- */
@media screen and (max-width: 768px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 40px 12px !important;
        padding: 0 5px;
    }
    .entry-btn-round {
        width: 54px;
        height: 54px;
        font-size: 0.8rem;
    }
    .card-btn-area {
        bottom: -10px;
        right: -5px;
    }
}