/*
Theme Name: Sydney Child - 丸八丸
Template: sydney
Description: 丸八丸サイト用の子テーマです。既存の Sydney テーマの見た目・機能はそのまま維持しつつ、トップページの一番下に「釣果報告」と「Instagram」の2セクションを自動で追加します。テーマ本体(Sydney)には一切手を加えていません。
Author: まーちゃん
Version: 4.5.0
*/

/* ページ内リンク(メニューのアンカー)でスクロールした時、なめらかに移動する */
html {
    scroll-behavior: smooth;
}

/* -----------------------------------------------------------------
   追加セクション共通
   ----------------------------------------------------------------- */
.maruhachimaru-section {
    padding: 70px 0;
    clear: both;
}

.maruhachimaru-section--alt {
    background-color: #f5f6f8;
}

.maruhachimaru-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.maruhachimaru-section__title {
    text-align: center;
    margin: 0 0 40px;
    font-size: 1.9rem;
    letter-spacing: .08em;
}

.maruhachimaru-section__more {
    text-align: center;
    margin-top: 36px;
}

.maruhachimaru-section__more a {
    display: inline-block;
    padding: 12px 32px;
    border: 1px solid currentColor;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.maruhachimaru-section__more a:hover {
    background-color: #16213e;
    border-color: #16213e;
    color: #fff;
}

.maruhachimaru-empty {
    text-align: center;
    color: #888;
}

/* 固定ヘッダーに隠れないよう、アンカー移動時に少し余白を持たせる */
#catch-report,
#instagram {
    scroll-margin-top: 90px;
}

/* -----------------------------------------------------------------
   釣果報告カード一覧
   ----------------------------------------------------------------- */
.maruhachimaru-catch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.maruhachimaru-catch-card {
    display: block;
    color: inherit;
    text-decoration: none;
    border: 1px solid #e4e6ea;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow .2s ease, transform .2s ease;
}

.maruhachimaru-catch-card:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, .1);
    transform: translateY(-2px);
    color: inherit;
}

.maruhachimaru-catch-card__thumb {
    position: relative;
    width: 100%;
    height: 180px;
    background: #eef0f3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.maruhachimaru-catch-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
}

.maruhachimaru-catch-card__noimg {
    color: #b6bcc5;
    font-size: 1.1rem;
    letter-spacing: .2em;
}

.maruhachimaru-catch-card__body {
    padding: 14px 16px 18px;
}

.maruhachimaru-catch-card__body time {
    display: block;
    font-size: .82rem;
    color: #8b929c;
    margin-bottom: 6px;
}

.maruhachimaru-catch-card__body p {
    margin: 0;
    font-size: .98rem;
    line-height: 1.6;
}

/* -----------------------------------------------------------------
   スマートフォン表示の調整
   ----------------------------------------------------------------- */
@media screen and (max-width: 767px) {
    .maruhachimaru-section {
        padding: 48px 0;
    }

    .maruhachimaru-inner {
        padding: 0 16px;
    }

    .maruhachimaru-section__title {
        font-size: 1.5rem;
        margin-bottom: 28px;
    }

    .maruhachimaru-catch-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 16px;
    }

    .maruhachimaru-catch-card__thumb {
        height: 130px;
    }

    .maruhachimaru-catch-card__body {
        padding: 10px 12px 14px;
    }

    .maruhachimaru-catch-card__body p {
        font-size: .88rem;
    }
}
