/*
Theme Name: FRENCH DROP Theme
Description: FRENCH DROPサイト用テーマ
Version: 1.0
Author: FRENCH DROP
*/

html {
    font-size: 16px;
}

/* Custom styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #ffffff;
    color: #2d2d2d;

    /* ボトムに固定する場合 */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, dl, dt, dd, li,
form, select, option, address, pre, blockquote, code {
    text-align: left;
}

.site-header {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    background-color: #ffffff;
}

.navbar-brand {
    font-weight: bold;
    color: #2d2d2d !important;
}

.post-meta {
    color: #6b7280;
    font-size: 0.9rem;
}

.post-excerpt {
    margin-top: 1rem;
}

.pagination {
    justify-content: center;
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #2563eb;
}

main {
    /* ボトムに固定する場合 */
    flex: 1;
}

.footer {
    background-color: #f9fafb;
    color: #2d2d2d;
    padding: 2rem 0;
    margin-top: 3rem;

    /* ボトムに固定する場合 */
    flex-shrink: 0;
}

.footer a {
    color: #2563eb;
    text-decoration: none;
}

.footer a:hover {
    color: #1e40af;
    text-decoration: underline;
}

/* Swiper */
swiper-container {
    width: 100%;
    height: 100%;
}

swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #444;
    display: flex;
    justify-content: center;
    align-items: center;
}

swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

swiper-container {
    width: 100%;
    height: 300px;
    margin-left: auto;
    margin-right: auto;
}

swiper-slide {
    background-size: cover;
    background-position: center;
}

.mySwiper {
    height: 162px;
    width: 100%;
}

.mySwiper2 {
    height: 20%;
    box-sizing: border-box;
    padding: 10px 0;
}

.mySwiper2 swiper-slide {
    width: 25%;
    height: 100%;
    opacity: 0.4;
}

.mySwiper2 .swiper-slide-thumb-active {
    opacity: 1;
}

/** FD↓ */
.fd-wrap {
    margin: 1.5rem 0 1.5rem 0;
}

.fd-pager {
    margin: 2rem 0 2rem 0;
}

.fd-hover {
    transition: background-color 0.2s ease-in-out;
}

.fd-hover:hover {
    background-color: #f3f4f6;
}

.fd-hover img {
    transition: 0.2s ease-in-out;
}

.fd-hover img:hover {
    filter: brightness(95%);
}

/* 最大3行で省略 */
.multi-line-truncate {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

/* アイコン縦中央 */
.navigation i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/** WordPress Post↓ */
.wp-block-image img,
.wp-block-image>a {
    width: 100%;
    max-width: 100%;
}

figure.is-type-video .wp-block-embed__wrapper {
    display: inline-block;
    position: relative;
    width: 100%;
    height: 0;
    padding-top: 56.25%;
}

figure.is-type-video .wp-block-embed__wrapper>iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    position: absolute;
    top: 0;
    left: 0;
}

/* 記事本文（シンプル） */
article {
    color: #2d2d2d;
    line-height: 1.7;
    font-size: 1rem;
}

article p,
article ul,
article ol {
    margin-bottom: 1rem;
}

h1, h2, h3, h4 {
    font-weight: bold;
    line-height: 1.4;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: .5rem;
    margin-top: 0;
}

h2 {
    font-size: 1.75rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: .25rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

article .post-content p {
    /* メルマガのハイフン連続の折り返し対応 */
    overflow-wrap: break-word;
}

/* 引用 */
blockquote {
    border-left: 4px solid #e5e7eb;
    padding: .5rem 1rem;
    margin: 1.5rem 0;
    color: #374151;
    background-color: #f9fafb;
    font-style: italic;
}

blockquote cite {
    display: block;
    margin-top: .5rem;
    text-align: right;
    color: #6b7280;
    font-size: .9em;
}

/** WordPress Post↑ */

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}