@charset "UTF-8";

/* =========================================
   みかじりさんちページ用CSS (完全対応版)
========================================= */

/* 1. 全体レイアウト */
.mikajiri-section {
    padding: 0px 20px 40px; 
    margin-top: -40px;
}
.mikajiri-section .section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* 2. タイトル装飾 */
.page-title {
    margin-top: 0; 
    color: #84D2E5; 
    font-size: 2.4rem; 
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #F7D070; 
    letter-spacing: 0.05em;
}
.page-desc {
    color: #555; 
    font-size: 1.1rem;
    margin-bottom: 60px; 
    line-height: 1.6;
}
.sub-title {
    text-align: center;
    color: #84D2E5;
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 40px;
    letter-spacing: 0.05em;
}

/* 3. コンテンツブロック共通 */
.mikajiri-block { 
    margin-bottom: 100px; 
}
.mikajiri-block:last-child { 
    margin-bottom: 0; 
}

/* 概要エリア */
.mikajiri-intro {
    margin-bottom: 80px;
}
.intro-text {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #333;
}

/* =========================================
   4. 主なコンテンツ（3列カード）
========================================= */
.style-grid { 
    display: flex; 
    justify-content: space-between; 
    gap: 30px; 
    flex-wrap: wrap; 
}
.style-card {
    width: calc((100% - 60px) / 3);
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    display: flex;
    flex-direction: column;
}
.style-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 10px 20px rgba(132, 210, 229, 0.2);
}

.style-badge {
    position: absolute;
    top: -1px;
    left: 20px;
    color: #fff;
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 0 0 8px 8px;
    font-size: 0.9rem;
    z-index: 2;
}
.bg-green { background-color: #8cc63f; }
.bg-yellow { background-color: #F7D070; }
.bg-purple { background-color: #9e7bc1; }
.bg-blue { background-color: #84D2E5; }

.style-img { 
    width: 100%; 
    aspect-ratio: 4/3; 
    overflow: hidden; 
}
.style-img img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.6s ease;
}
.style-card:hover .style-img img {
    transform: scale(1.05); 
}

.style-body { 
    padding: 25px 20px; 
    flex-grow: 1;
}
.style-body h4 { 
    font-size: 1.25rem; 
    margin: 0 0 10px; 
    color: #333; 
    line-height: 1.4;
}
.style-location { 
    font-size: 0.9rem; 
    color: #84D2E5; 
    font-weight: bold; 
    margin-bottom: 15px; 
    border-bottom: 1px dashed #ddd;
    padding-bottom: 10px;
}
.style-body p:last-child {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

/* =========================================
   5. 日常風景（会話風カラフルブロック）
========================================= */
.voice-grid { 
    display: flex; 
    flex-direction: column; 
    gap: 30px; 
}
.voice-box {
    display: flex; 
    gap: 30px; 
    align-items: center;
    background: #fff; 
    padding: 30px 40px; 
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
    border-left: 6px solid #ccc;
}
.voice-header {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 80px;
}
.voice-icon {
    width: 70px; 
    height: 70px; 
    border-radius: 50%; 
    display: flex;
    justify-content: center; 
    align-items: center; 
    color: #fff; 
    font-weight: bold; 
    font-size: 0.95rem;
}
.voice-attr {
    font-size: 0.85rem;
    color: #777;
    font-weight: bold;
    text-align: center;
}
.voice-text { flex-grow: 1; }
.voice-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
    margin: 0;
}

/* 個別カラー設定 */
.voice-blue { border-left-color: #84D2E5; } 
.voice-blue .voice-icon { background: #84D2E5; }
.voice-yellow { border-left-color: #F7D070; } 
.voice-yellow .voice-icon { background: #F7D070; }
.voice-purple { border-left-color: #9e7bc1; } 
.voice-purple .voice-icon { background: #9e7bc1; }

/* =========================================
   6. みかじり通信（お便りリスト型）
========================================= */
.tsushin-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.tsushin-item {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    border: 1px solid #eee;
    transition: all 0.3s ease;
    gap: 20px;
}
.tsushin-item:hover {
    box-shadow: 0 5px 15px rgba(132, 210, 229, 0.15);
    border-color: #84D2E5;
    transform: translateY(-2px);
}
.tsushin-meta {
    flex-shrink: 0;
    width: 100px;
}
.tsushin-date {
    font-size: 0.95rem;
    color: #777;
    font-weight: bold;
    display: inline-block;
    padding: 5px 10px;
    background: #f4f4f4;
    border-radius: 20px;
}
.tsushin-content {
    flex-grow: 1;
}
.tsushin-title {
    font-size: 1.15rem;
    color: #333;
    margin: 0 0 5px 0;
    line-height: 1.4;
    font-weight: bold;
}
.tsushin-excerpt {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}
.tsushin-actions {
    flex-shrink: 0;
    display: flex;
    gap: 10px;
    align-items: center;
}
.btn-readmore {
    font-size: 0.85rem;
    color: #84D2E5;
    font-weight: bold;
    text-decoration: none;
    padding: 8px 15px;
    border: 1px solid #84D2E5;
    border-radius: 30px;
    transition: all 0.3s ease;
}
.btn-readmore:hover {
    background: #84D2E5;
    color: #fff;
}
.btn-pdf-download {
    background: #F7D070;
    color: #333;
    padding: 8px 15px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(247, 208, 112, 0.3);
}
.btn-pdf-download:hover {
    background: #e6be5c;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(247, 208, 112, 0.4);
}

/* =========================================
   7. カレンダー
========================================= */
.calendar-container { 
    background: #fff; 
    border-radius: 20px; 
    padding: 30px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
    border: 1px solid #eee; 
    overflow-x: auto;
}
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}
.cal-current { font-size: 1.6rem; color: #84D2E5; font-weight: bold; }
.cal-nav {
    background-color: #f4f4f4; color: #777; text-decoration: none;
    padding: 8px 18px; border-radius: 50px; font-size: 0.9rem; font-weight: bold;
    transition: all 0.3s ease;
}
.cal-nav:hover { background-color: #84D2E5; color: #fff; }

.calendar-table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.calendar-table th { padding: 15px 0; font-size: 1.1rem; color: #333; border-bottom: 2px solid #eee; }
.calendar-table td { height: 120px; vertical-align: top; padding: 10px; border: 1px solid #f8f8f8; transition: background-color 0.2s;}

.sun { color: #e94e4e; } 
.sat { color: #4e8ce9; } 
.today { background-color: rgba(132, 210, 229, 0.05); }
.today .date-num {
    background: #84D2E5; color: #fff; width: 28px; height: 28px;
    display: inline-flex; align-items: center; justify-content: center; border-radius: 50%;
}
.date-num { font-weight: bold; font-size: 1.1rem; margin-bottom: 5px; display: block; }

.cal-event {
    display: block; background-color: #F7D070; color: #333; font-size: 0.8rem;
    padding: 4px 8px; margin-bottom: 4px; border-radius: 4px; text-decoration: none;
    font-weight: bold; line-height: 1.3; transition: transform 0.2s;
    border-left: 4px solid #e0b955; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cal-event:hover { transform: scale(1.03); background-color: #f9d88a; }

/* =========================================
   8. お問い合わせ（CTA）
========================================= */
.cta-block {
    text-align: center;
    background: #fdfdfd;
    padding: 60px 30px;
    border-radius: 16px;
    border: 1px solid #eee;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.cta-block p {
    font-size: 1.1rem; line-height: 1.6; color: #333; margin-bottom: 40px;
}
.btn-cta {
    display: inline-block; background-color: #84D2E5; color: #fff;
    text-decoration: none; padding: 20px 80px; font-size: 1.15rem;
    font-weight: bold; border-radius: 50px; transition: all 0.3s ease;
    letter-spacing: 0.1em; box-shadow: 0 6px 15px rgba(132, 210, 229, 0.3);
}
.btn-cta:hover {
    transform: translateY(-3px); 
    box-shadow: 0 10px 20px rgba(132, 210, 229, 0.4); 
    background-color: #72c1d4; 
}

/* =========================================
   ★ 新規追加：記事詳細ページ (mikajiri_article.php)
========================================= */
.article-section {
    padding: 0 20px 80px;
    margin-top: 40px;
}
.article-inner {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
    border-top: 8px solid #84D2E5; /* みかじりの水色でアクセント */
}
.article-header {
    margin-bottom: 40px;
    border-bottom: 2px dashed #eee;
    padding-bottom: 20px;
}
.article-date {
    display: inline-block;
    font-size: 1rem;
    color: #777;
    background: #f4f4f4;
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: bold;
    margin-bottom: 15px;
}
.article-title {
    font-size: 2rem;
    color: #333;
    line-height: 1.4;
    margin: 0;
}
.article-body {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #444;
    margin-bottom: 50px;
}
.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-top: 15px;
}
.article-footer {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}
.btn-back-mikajiri {
    display: inline-block;
    background: #f4f4f4;
    color: #555;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}
.btn-back-mikajiri:hover {
    background: #e0e0e0;
    color: #333;
    transform: translateY(-2px);
}
.article-pdf-box {
    background: #fdfdfd;
    border: 2px dashed #F7D070;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 40px;
}
.article-pdf-box p {
    margin: 0 0 15px 0;
    color: #555;
    font-weight: bold;
}

/* =========================================
   9. レスポンシブ（スマホ対応）
========================================= */
@media screen and (max-width: 768px) {
    .page-title { font-size: 2rem; }
    .sp-only { display: block; }
    .pc-only { display: none; }
    
    /* カード・声 */
    .style-grid { flex-direction: column; gap: 30px; }
    .style-card { width: 100%; }
    .voice-box {
        flex-direction: column; text-align: center; padding: 30px 20px;
        border-left: none; border-top: 6px solid #ccc;
    }
    .voice-header { flex-direction: row; width: auto; justify-content: center; }
    .voice-blue { border-top-color: #84D2E5; }
    .voice-yellow { border-top-color: #F7D070; }
    .voice-purple { border-top-color: #9e7bc1; }
    
    /* 通信リスト */
    .tsushin-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        gap: 15px;
    }
    .tsushin-meta { width: auto; }
    .tsushin-actions { width: 100%; justify-content: space-between; }
    .btn-readmore, .btn-pdf-download { flex: 1; text-align: center; padding: 10px 0; }
    
    /* 記事詳細ページ */
    .article-inner { padding: 30px 20px; }
    .article-title { font-size: 1.5rem; }

    /* カレンダー */
    .calendar-container { padding: 15px; }
    .calendar-table td { height: 80px; padding: 5px; }
    .cal-current { font-size: 1.2rem; }
    .cal-event { font-size: 0.7rem; padding: 2px 4px; }
    .date-num { font-size: 0.9rem; }
    
    /* CTA */
    .cta-block { padding: 40px 20px; }
    .btn-cta { padding: 15px 40px; font-size: 1rem; width: 100%; box-sizing: border-box; }
}
.mikajiri-note {
    text-align: center;
    color: #555555;
    margin-bottom: 40px;
}

.mikajiri-empty {
    text-align: center;
    color: #777777;
    padding: 30px;
    background: #ffffff;
    border-radius: 16px;
}

.mikajiri-calendar-block {
    scroll-margin-top: 100px;
}

.calendar-note {
    text-align: center;
    color: #555555;
    margin-bottom: 30px;
}