/**
 * Front Page Styles
 */

/* メイン */
.front-page-main {
    margin-top: 0;
}

/* ヒーローセクション */
.hero-section {
    padding: 0 var(--wp--preset--spacing--50);
}

.hero-image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: fit-content;
    margin: 0 auto;
}

.hero-figure {
    margin: 0;
}

.hero-image {
    max-width: 100%;
    height: auto;
    display: block;
}

.hero-caption {
    align-self: flex-end;
    padding-bottom: 20px;
    font-size: 0.9rem;
    color: #666;
}

/* セクション共通 */
.section-inner {
    max-width: var(--wp--style--global--wide-size, 1200px);
    margin: 0 auto;
    padding: 0 var(--wp--preset--spacing--50);
}

.section-header {
    display: flex;
    align-items: flex-end;
    border-bottom: 3px solid black;
    padding-bottom: 0.2em;
    margin-bottom: var(--wp--preset--spacing--40);
    justify-content: center;
}

.section-header-centered {
    justify-content: center;
}

.brush-icon {
    width: 50px;
    height: auto;
}

.section-title {
    font-size: 2.5em;
    margin: 0 0 0 10px;
    line-height: 1;
}

/* 書展のお知らせセクション */
.shoten-section {
    margin-top: 0;
    margin-bottom: 0;
    padding: var(--wp--preset--spacing--50);
}

.shoten-section.has-base-2-background-color {
    background-color: var(--wp--preset--color--base-2);
}

.shoten-content {
    margin-top: var(--wp--preset--spacing--40);
}

.shoten-columns {
    display: flex;
    flex-wrap: wrap;
    gap: var(--wp--preset--spacing--40);
    align-items: center;
}

.shoten-text {
    flex: 1 1 40%;
    min-width: 280px;
}

.shoten-heading {
    font-size: 1.5rem;
    margin: 0 0 1em;
}

.shoten-heading a {
    color: inherit;
    text-decoration: none;
}

.shoten-heading a:hover {
    text-decoration: underline;
}

.shoten-image {
    flex: 1 1 50%;
    min-width: 280px;
}

.shoten-image figure {
    margin: 0;
}

.shoten-photo {
    width: 100%;
    height: auto;
    display: block;
}

/* Instagramリンク */
.instagram-link-section {
    text-align: center;
    padding: 20px;
    margin-top: 20px;
}

.instagram-link-section a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 8px 16px;
    border: 1px solid #999;
    border-radius: 4px;
    background: #fff;
    transition: all 0.3s ease;
}

.instagram-link-section a:hover {
    border-color: #333;
    background: #f5f5f5;
}

/* お知らせセクション */
.news-section {
    margin-top: 0;
    margin-bottom: 0;
    padding: var(--wp--preset--spacing--50);
}

.news-list {
    margin-top: var(--wp--preset--spacing--40);
}

.news-item {
    margin: 0;
}

.news-separator {
    border: none;
    border-top: 1px solid var(--wp--preset--color--contrast-3, #ccc);
    margin: 0;
}

.news-item-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: var(--wp--preset--spacing--20) 0;
    gap: var(--wp--preset--spacing--20);
}

.news-title-col {
    flex: 1 1 72%;
    min-width: 200px;
}

.news-title {
    font-size: clamp(0.984rem, 0.984rem + ((1vw - 0.2rem) * 0.86), 1.5rem);
    line-height: 1.1;
    margin: 0;
    font-weight: normal;
}

.news-title a {
    color: inherit;
    text-decoration: none;
}

.news-title a:hover {
    text-decoration: underline;
}

.news-date-col {
    flex: 0 0 28%;
    text-align: right;
}

.news-date-col time {
    font-size: 0.9rem;
    color: #666;
}

.news-date-col a {
    color: inherit;
    text-decoration: none;
}

/* ページネーション */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--wp--preset--spacing--40);
    padding-top: var(--wp--preset--spacing--20);
}

.pagination-numbers {
    display: flex;
    gap: 0.5em;
}

.pagination-numbers a,
.pagination-numbers .current {
    padding: 0.3em 0.6em;
    text-decoration: none;
}

.pagination-numbers .current {
    font-weight: bold;
}

.pagination-numbers a {
    color: inherit;
}

.pagination-numbers a:hover {
    text-decoration: underline;
}

.next-page {
    display: flex;
    align-items: center;
    gap: 0.3em;
    color: inherit;
    text-decoration: none;
}

.next-page:hover {
    text-decoration: underline;
}

.next-page .arrow {
    font-size: 1.2em;
}

/* レスポンシブ */
@media screen and (max-width: 768px) {
    .section-title {
        font-size: 1.8em;
    }

    .shoten-columns {
        flex-direction: column;
    }

    .shoten-text,
    .shoten-image {
        flex: 1 1 100%;
    }

    .news-item-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .news-date-col {
        flex: 1 1 100%;
        text-align: left;
    }

    .pagination {
        flex-direction: column;
        gap: 1em;
    }
}
