@charset "UTF-8";

/*
 Theme Name:   Twenty Twelve Child
 Template:     twentytwelve
*/

/* --- 1. ヘッダー・ロゴ調整 --- */
.custom-logo {
    max-width: 250px;
    height: auto;
}
.site-header .custom-logo-link {
    display: inline-block;
    padding: 10px 0;
}

/* ロゴとボタンの間に細いラインを追加 */
.header-contact-bar {
    border-top: 1px solid #eeeeee;
    padding-top: 15px; /* ラインとボタンの間の余白をしっかり確保 */
    margin-top: 10px;  /* ロゴとラインの間の余白 */
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

/* --- 2. 連絡先バー（ボタン共通設定） --- */
.contact-item {
    font-size: 14px;
    color: #555 !important;
    text-decoration: none;
    background-color: #f0f0f0 !important;
    border: 1px solid #ddd !important;
    padding: 6px 12px;
    border-radius: 4px;
    display: inline-block;
    transition: background 0.3s;
    text-align: center;
}

.contact-item:hover {
    background-color: #e5e5e5 !important;
    color: #000 !important;
}

/* LINEボタンの専用色 */
.contact-item.line-btn {
    background-color: #06C755 !important;
    color: #fff !important;
    border: none !important;
    font-weight: bold;
}

.contact-item.line-btn:hover {
    background-color: #05a346 !important;
    opacity: 0.9;
}

/* --- 3. スマホ表示の調整（3+1レイアウト） --- */
@media (max-width: 600px) {
    .header-contact-bar {
        padding-top: 15px !important; /* スマホでもラインとの隙間を確保 */
        margin-top: 10px !important;
        gap: 6px !important;
        justify-content: center !important;
    }

    .contact-item {
        flex: 0 1 calc(33.33% - 6px) !important;
        width: auto !important; /* 200px固定を解除 */
        font-size: 11px !important;
        padding: 10px 0 !important;
        white-space: nowrap;
    }

    /* 4つ目のボタン（営業日カレンダー）を2段目いっぱいに */
    .contact-item:nth-child(4) {
        flex: 0 1 50% !important;
        margin-top: 4px !important;
        font-size: 13px !important;
    }
}

/* --- 4. フッター調整 --- */
#colophon {
    background-color: #f5f5f5 !important;
    color: #444 !important;
    padding: 40px 0 20px 0 !important;
    border-top: 1px solid #ddd;
}

.footer-widgets-area {
    display: flex !important;
    max-width: 960px;
    margin: 40px auto !important;
    justify-content: space-between !important;
    padding: 0 20px;
}

.footer-widget-column {
    flex: 1 !important;
    padding-left: 30px;
    border-left: 1px solid #ccc !important;
}

.footer-widget-column:first-child {
    border-left: none !important;
    padding-left: 0;
}

.footer-widget-column h3 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.site-info {
    text-align: center !important;
    font-size: 13px;
    color: #666 !important;
    border-top: 1px solid #eee;
    padding-top: 20px;
    font-weight: normal !important;
}

.site-info a {
    color: #444 !important;
    font-weight: normal !important;
    text-decoration: none;
}

@media (max-width: 600px) {
    .footer-widgets-area { flex-direction: column !important; }
    .footer-widget-column {
        border-left: none !important;
        border-top: 1px solid #ddd !important;
        padding-left: 0; padding-top: 20px; margin-top: 20px;
    }
    .footer-widget-column:first-child { border-top: none !important; }
}

/* --- 5. 自作カレンダーのスタイル --- */
.yamane-cal { max-width: 100%; text-align: center; }

.cal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.cal-title {
    font-size: 15px;
    font-weight: normal !important;
    color: #333;
}

.yamane-cal table { width: 100%; border-collapse: collapse; border: none !important; }
.yamane-cal th { color: #ccc; font-size: 11px; font-weight: normal; padding: 5px 0; }
.yamane-cal td { padding: 8px 0; font-size: 14px; border: none !important; }

.yamane-cal td span {
    display: inline-block;
    width: 28px; height: 28px;
    line-height: 28px; border-radius: 50%;
}

.yamane-cal td span.holiday { background-color: #ff99ab; color: #fff !important; }
.yamane-cal td span.event { background-color: #87ceeb; color: #fff !important; cursor: pointer; transition: transform 0.2s; }
.yamane-cal td span.event:hover { transform: scale(1.1); opacity: 0.8; }

.cal-btn { background: none; border: none; color: #999; font-size: 18px; cursor: pointer; padding: 0 10px; }
.cal-btn:hover { color: #333; }

.cal-legend { display: flex; justify-content: center; gap: 15px; margin-top: 15px; font-size: 11px; color: #777; }
.cal-legend span { display: flex; align-items: center; gap: 5px; }
.cal-legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.cal-legend .dot.holiday { background-color: #ff99ab; }
.cal-legend .dot.event { background-color: #87ceeb; }

#my-cal-container { transition: opacity 0.3s ease; }

/* 特定のページ（例：IDが123の場合）のヘッダー画像とキャッチフレーズを消す */
.page-id-3648 .header-image,
.page-id-3648 .site-description {
    display: none !important;
}

/* もしヘッダー周りの余白も詰めたい場合 */
.page-id-3648 .site-header {
    padding-bottom: 0 !important;
}