@charset "utf-8";

/* ==========================================================================
   1. フォント・基本設定 (yaemari.net 準拠)
   ========================================================================== */

:root {
    --main-bg: #ffffff;
    --text-color: #333333;
    --accent-color: #e86964; /* 既存のピンク・赤系 */
    --olive-color: #9b9645; /* 既存のオリーブ系 */
    --light-pink: #F5BFBD;
    
    /* フォント定義 */
    --font-mincho-m: "FOT-クレー Pro M", "FP-ヒラギノ明朝 ProN W6", "HG明朝E", YuMincho, "Yu Mincho", serif;
    --font-mincho-b: "FOT-クレー Pro DB", "HG明朝E", YuMincho, "Yu Mincho", serif;
    --font-gothic: "I-OTF-UDゴ表示Pro B", "FOT-ロダン Pro B", "FP-ヒラギノ角ゴ ProN W6", YuGothic, "Yu Gothic", sans-serif;
}

body {
    font-family: var(--font-mincho-m);
    background-color: var(--main-bg);
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.8;
    margin: 0;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-mincho-b);
    margin: 0.8em 0;
}

p, pre {
    font-family: var(--font-mincho-m);
    margin-bottom: 0.8em;
}

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

a:hover {
    opacity: 0.7;
}

/* ==========================================================================
   2. 基本レイアウト (kebab-case)
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
}

.wrap {
    width: 100%;
    min-width: 320px;
    margin: 0 auto;
    overflow: hidden;
}

.container, .contents {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 15px;
}

.article {
    margin: 0;
    padding: 15px 0 20px 0;
}

.section {
    width: 100%;
    margin: 0;
    padding: 10px 0 20px 0;
}

.mh32 { min-height: 320px; }
.mh48 { min-height: 480px; }

.clear::after, .clearfix::after {
    content: "";
    display: block;
    clear: both;
}

/* ページタイトル */
.page-title {
    background-image: url(/images/pagetitle.jpg);
    background-size: cover;
    background-position: center 100%;
    background-repeat: no-repeat;
    overflow: hidden;
}

.page-title h1 {
    color: #ffffff;
    background-color: rgba(102, 102, 153, 0.8); /* 少し透明度を持たせる */
    margin: 0;
    text-align: center;
    vertical-align: middle;
    line-height: 160%;
    padding: 25px 0; /* 少しだけ詰める */
    font-size: 1.8em; /* 2.2emから1.8emに縮小 */
    letter-spacing: 0.1em;
}

/* パンくず */
.bread-crumb {
    padding: 15px 0;
    font-size: 0.9em;
    color: #666;
}

.bread-crumb i {
    margin: 0 5px;
}

/* ==========================================================================
   3. ヘッダー (header-2026.php 用)
   ========================================================================== */

.header {
    width: 100%;
    background-color: #fff;
    padding: 25px 0 0 0; /* 下のパディングをなくす */
}

.site-title {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.header-logo h1 {
    color: #4d4d4c;
    font-size: 1.8em;
    line-height: 1.2;
    margin: 0;
}

.header-desc {
    text-align: right;
    margin-bottom: 5px; /* 少し下に寄せる */
}

.header-desc p {
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
    color: #666;
}

.header-tel a {
    font-family: var(--font-gothic);
    font-size: 27px;
    color: var(--accent-color);
    display: block;
    margin-top: 5px;
}

/* グローバルナビ */
#gMenu {
    background-color: var(--light-pink);
    width: 100%;
    margin-top: 20px; /* タイトルとの間に隙間を作る */
}

#gMenu.fixed {
    position: fixed;
    top: 0;
    z-index: 1000;
    width: 100%;
    margin-top: 0; /* 固定時はマージンを消す */
}

.gMenuAdjust {
    width: 100%;
}

.g-navi {
    max-width: 960px;
    margin: 0 auto;
}

.g-navi ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.g-navi li {
    flex: 1;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.g-navi li:last-child {
    border-right: none;
}

.g-navi li a {
    display: block;
    padding: 15px 0;
    font-size: 1.1em;
    color: #222;
    font-family: var(--font-mincho-b);
    transition: background-color 0.3s;
}

.g-navi li a:hover,
.g-navi li.current-menu-item a {
    background-color: #fceae9;
}

/* ハンバーガーボタン (スマホ用) */
.s-btn {
    display: none;
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 6px 12px;
    border: 1px solid #aaa;
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
    z-index: 1100;
}

.s-btn i {
    color: #888;
    font-size: 18px;
}

.s-btn span {
    display: inline-block;
    text-indent: -9999px;
}

/* ==========================================================================
   4. メインコンテンツ (page-home2026.php 用)
   ========================================================================== */

/* Swiper */
.home-slider {
    width: 100%;
    height: 420px;
    margin-bottom: 20px;
    margin-top: 0; /* メニューとの隙間をなくす */
    background-color: #f0f0f0; /* 画像がない時のための背景色 */
}

.home-slider .swiper-container,
.home-slider .swiper-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.home-slider .swiper-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
}

.home-slider .message-area {
    background-color: rgba(0,0,0,0.6);
    color: #fff;
    padding: 15px 20px;
    position: absolute;
    bottom: 0;
    width: 100%;
}

/* お知らせエリア */
.home-info {
    height: 200px;
    overflow-y: auto;
    border: 1px solid #eee;
    padding: 10px;
    margin-bottom: 30px;
}

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

.home-info tr {
    border-bottom: 1px dotted #ccc;
}

.home-info td {
    padding: 8px 5px;
}

/* セクションタイトル */
.contents h2 {
    font-size: 1.4em;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 5px;
    margin-bottom: 20px;
}

.contents h2 i {
    margin-right: 8px;
    color: var(--accent-color);
}

/* 案内ボックス (Flex カラムシステム) */
.col2-flex, .col3-flex, .col4-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 4%;
    margin-top: 30px;
}

.col2-flex > * { flex: 0 0 48%; }
.col3-flex > * { flex: 0 0 30.6%; }
.col4-flex > * { flex: 0 0 22%; }

.home-box-item a {
    display: block;
    height: 100%;
}

.home-box {
    text-align: center;
    border: 1px solid #eee;
    transition: transform 0.3s;
}

.home-box:hover {
    transform: translateY(-5px);
}

.home-box .icon-area {
    padding: 30px 0;
    background-color: #bfbdf5;
    color: #fff;
}

.home-box .icon-area i {
    font-size: 40px;
}

.home-box h3 {
    margin: 0;
    padding: 10px;
    background-color: #666699;
    color: #fff;
    font-size: 1.1em;
}

.home-box p {
    padding: 15px;
    background-color: #dbbdf5;
    margin: 0;
    height: 120px;
    text-align: left;
    font-size: 0.95em;
}

/* メッセージボード */
.message-board {
    width: 80%;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    border-radius: 8px;
}

/* ==========================================================================
   5. フッター (footer-2026.php 用)
   ========================================================================== */

.footer {
    border-top: 1px solid #ddd;
    margin-top: 40px;
    padding: 30px 0;
    text-align: center;
}

.f-navi ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.f-navi li a {
    padding: 5px 15px;
    font-size: 0.9em;
}

.copyright {
    font-size: 0.8em;
    color: #888;
}

/* ==========================================================================
   6. レスポンシブ
   ========================================================================== */

@media (max-width: 767px) {
    .site-title {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .header-desc {
        margin-top: 15px;
        text-align: center;
    }
    
    .s-btn {
        display: block;
    }
    
    #gMenu {
        display: none; /* スマホ時は初期状態で非表示 */
    }

    .g-navi {
        width: 100%;
    }
    
    .g-navi ul {
        flex-direction: column;
    }
    
    .g-navi li a {
        padding: 12px 20px;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    
    .home-slider {
        height: 250px;
    }
    
    .main-left, .side-right {
        width: 100%;
    }

    .col2-flex, .col3-flex, .col4-flex {
        display: block;
    }
    .col2-flex > *, .col3-flex > *, .col4-flex > * {
        width: 100%;
        margin-bottom: 20px;
    }

    .message-board {
        width: 95%;
        padding: 20px;
    }

    .br767:before {
        content: "\A";
        white-space: pre;
    }
}

/* 479px 以下 */
@media (max-width: 479px) {
    .br479:before {
        content: "\A";
        white-space: pre;
    }
}

/* ==========================================================================
   7. ユーティリティ
   ========================================================================== */

/* 表示・非表示制御 */
@media (min-width: 480px) { .under479 { display: none !important; } }
@media (max-width: 479px) { .over480 { display: none !important; } }
@media (min-width: 768px) { .under767 { display: none !important; } }
@media (max-width: 767px) { .over768 { display: none !important; } }

/* 配置・回り込み */
.left { float: left; margin-right: 15px; margin-bottom: 10px; }
.right { float: right; margin-left: 15px; margin-bottom: 10px; }
.text-center, .center { text-align: center; }
.text-right { text-align: right; }

/* 画像装飾 */
.photo {
    padding: 10px;
    background: #fff;
    border-top: 2px solid #ccc;
    border-left: 2px solid #ccc;
    border-bottom: 2px solid #c2c2c2;
    border-right: 2px solid #c2c2c2;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}
.photo.mini { padding: 5px; }
.rotate { transform: rotate(15deg); }

/* 幅指定 */
.w100 { width: 100% !important; height: auto; }
.w95  { width: 95% !important; height: auto; }
.w90  { width: 90% !important; height: auto; }
.w80  { width: 80% !important; height: auto; }
.w50  { width: 50% !important; height: auto; }
.w40  { width: 40% !important; height: auto; }
.w33  { width: 33.3% !important; height: auto; }
.w25  { width: 25% !important; height: auto; }

/* 特殊装飾 */
.bandLine {
    border-top: solid 1px; 
    border-bottom: solid 1px; 
}
.underLine {
    border-bottom: solid 2px #ff6666;
    padding: 4px 10px;
    position: relative;
    display: inline-block;
}
.underLine:after {
    content: ''; position: absolute; bottom: -2px; left: 0;
    height: 2px; width: 60%; background-color: #cc6666;
}
.underLine:before {
    content: ''; position: absolute; bottom: -2px; left: 0;
    height: 2px; width: 30%; background-color: #993333;
}

.backColor {
    background-color: #3d8bbb;
    padding: 5px 10px;
    border-radius: 5px;
    color: #fff;
}

.backLine {
    position: relative;
    text-align: center;
}
.backLine:before {
    border-top: 1px solid #2e407f;
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
}
.backLine span {
    background-color: white;
    display: inline-block;
    padding: 0 10px;
    position: relative;
}

/* 2カラムレイアウト */
.contents.clear {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.main-left {
    width: 74%;
}

.side-right {
    width: 24%;
}

.widget-box {
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #eee;
    margin-bottom: 20px;
}

.widget-box ul {
    list-style: none;
    padding: 0;
}

.widget-box li {
    margin-bottom: 10px;
    line-height: 1.4;
}

/* ボタン */
.banner-button {
    display: inline-block;
    width: 250px;
    height: 50px;
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    line-height: 50px;
    text-align: center;
    transition: opacity 0.3s;
    margin: 30px 0; /* 上下に余白を追加 */
}

.banner-button-s {
    display: inline-block;
    width: 200px;
    height: 40px;
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    line-height: 40px;
    text-align: center;
    transition: opacity 0.3s;
    margin: 20px 0; /* 上下に余白を追加 */
}

.banner-button:hover, .banner-button-s:hover {
    opacity: 0.8;
}

/* 共通パーツ */
.indent1 {
    text-indent: -1em;
    padding-left: 1em;
}

/* テーブル */
table.line {
    width: 100%;
    border-collapse: collapse;
}

table.line tr {
    border-top: 1px dotted #333;
}

table.line td {
    padding: 8px 0;
    border-bottom: 1px dotted #333;
}

.mt10 { margin-top: 10px !important; }
.mt20 { margin-top: 20px !important; }
.mt40 { margin-top: 40px !important; }
.mb10 { margin-bottom: 10px !important; }
.mb20 { margin-bottom: 20px !important; }
.mb40 { margin-bottom: 40px !important; }

.mincho { font-family: var(--font-mincho-m); }
.minchob { font-family: var(--font-mincho-b); }
.hand { font-family: 'Mrs Saint Delafield', cursive; }
