/*
Theme Name: 一燈会テーマ
Theme URI: https://www.ittokai.or.jp/
Description: 社会福祉法人一燈会 専用WPテーマ
Author: Ittokai
Version: 1.2.7
Text Domain: ittokai-theme
*/

/* ── ベースタイポグラフィ（親サイト font-size:62.5% 対応） ── */
main {
    font-size: 1.6rem;
    line-height: 1.8;
    color: #333;
}

/* ── 記事コンテナ ── */
.it-article {
    max-width: 1000px !important;
    margin: 140px auto 40px !important;
    padding: 40px 5% !important;
    background: #fff !important;
    border: none !important;
    border-radius: 0 !important;
}

.it-article .entry-title {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.5;
    margin: 0 0 16px;
    color: #333;
}

.it-article .entry-dates {
    font-size: 1.3rem;
    color: #999;
    margin-bottom: 24px;
}

.it-article .entry-dates span + span::before {
    content: "／";
    margin: 0 0.5em;
}

.it-article .post-thumbnail {
    margin-bottom: 32px;
}

.it-article .post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ── ブロックエディタ内コンテンツ ── */
.it-article h2 {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.5;
    margin: 40px 0 16px;
    padding: 0 0 8px 0;
    border-bottom: 3px solid #f39800;
    border-left: none;
    color: #333;
    letter-spacing: .06em;
}

.it-article h3 {
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.5;
    margin: 36px 0 14px;
    padding: 8px 16px;
    border-left: 4px solid #f39800;
    background: #fef6ec;
    color: #333;
    border-radius: 0;
}

.it-article h4 {
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.5;
    margin: 32px 0 12px;
    padding: 6px 0;
    border-bottom: 1px solid #f39800;
    color: #333;
    letter-spacing: .04em;
}

.it-article p {
    font-size: 1.6rem;
    line-height: 1.9;
    margin: 0 0 1.2em;
}

.it-article ul {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.it-article ol {
    list-style: none;
    padding: 0;
    margin: 16px 0;
    counter-reset: it-ol;
}

.it-article ul > li {
    font-size: 1.6rem;
    line-height: 1.8;
    padding: 8px 0 8px 22px;
    position: relative;
    border-bottom: 1px dashed #e8e8e8;
}

.it-article ul > li:last-child {
    border-bottom: none;
}

.it-article ul > li::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 7px solid #f39800;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

.it-article ol > li {
    font-size: 1.6rem;
    line-height: 1.8;
    padding: 8px 0 8px 28px;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
    counter-increment: it-ol;
}

.it-article ol > li:last-child {
    border-bottom: none;
}

.it-article ol > li::before {
    content: counter(it-ol, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    font-weight: 700;
    font-family: Roboto, sans-serif;
    color: #f39800;
}

.it-article li > ul,
.it-article li > ol {
    margin-top: 6px;
    margin-bottom: 0;
}

.it-article img {
    max-width: 100%;
    height: auto;
}

.it-article a {
    color: #f39800;
    text-decoration: underline;
}

.it-article a:hover {
    color: #e08600;
}

.it-article blockquote {
    margin: 32px 0;
    padding: 20px 24px;
    border: 1px solid #d0d0d0;
    border-left: none;
    background: #fafafa;
    color: #555;
    font-style: normal;
    font-size: 1.5rem;
    line-height: 1.8;
    border-radius: 6px;
    position: relative;
}

.it-article blockquote::before {
    content: "\201C";
    position: absolute;
    top: -10px;
    left: 16px;
    background: #fafafa;
    padding: 0 8px;
    font-size: 24px;
    color: #f39800;
    font-family: Georgia, serif;
    line-height: 1;
}

.it-article blockquote p:last-child {
    margin-bottom: 0;
}

.it-article table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 13px;
    word-break: normal;
}

.it-article th {
    background: #333;
    color: #fff;
    padding: 10px 12px;
    text-align: center;
    font-weight: 500;
    font-size: 13px;
    border-bottom: 2px solid #f39800;
}

.it-article td {
    padding: 10px 12px;
    border-bottom: 1px solid #e8e8e8;
    text-align: center;
    font-size: 13px;
    line-height: 1.6;
    color: #333;
    vertical-align: middle;
}

.it-article tr:nth-child(even) td {
    background: #f9f9f9;
}

/* ── カード一覧（トップ・アーカイブ） ── */
.it-card-grid {
    max-width: 1000px !important;
    margin: 140px auto 40px !important;
    padding: 0 20px !important;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}
.archive-hero + .it-card-grid {
    margin-top: 32px !important;
}
.archive-hero + .it-article {
    margin-top: 32px !important;
}

.it-card {
    display: block;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: #333;
    transition: box-shadow 0.2s, transform 0.2s;
}

.it-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.it-card__thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.it-card__nothumb {
    width: 100%;
    height: 200px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 1.4rem;
}

.it-card__body {
    padding: 16px 20px 20px;
}

.it-card__date {
    font-size: 1.2rem;
    color: #999;
}

.it-card__title {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.5;
    margin: 6px 0 8px;
}

.it-card__excerpt {
    font-size: 1.3rem;
    line-height: 1.6;
    color: #777;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── アーカイブタイトル ── */
.archive-hero {
    max-width: 1000px !important;
    margin: 0 auto !important;
    padding: 20rem 20px 0 !important;
    text-align: center !important;
    box-sizing: border-box !important;
    position: static !important;
    transform: none !important;
    float: none !important;
    display: block !important;
}
.archive-title {
    font-size: 5rem !important;
    font-weight: 700 !important;
    color: #f39800 !important;
    letter-spacing: .24em !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    text-align: center !important;
    display: block !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    -webkit-transform: none !important;
    width: auto !important;
}
.archive-title::after {
    content: '' !important;
    display: block !important;
    width: 120px !important;
    height: 10px !important;
    margin: 10px auto 0 !important;
    background: #f39800 !important;
    border-radius: 4px !important;
    position: static !important;
}
.archive-desc {
    font-size: 1.5rem !important;
    color: #777 !important;
    line-height: 1.8 !important;
    margin: 24px auto 0 !important;
    padding: 0 !important;
    max-width: 600px !important;
    text-align: center !important;
    position: static !important;
    transform: none !important;
}

/* ── パンくず ── */
.it-breadcrumb {
    font-size: 1.3rem !important;
    margin: 24px auto 0 !important;
    padding: 1em 20px !important;
    max-width: 1100px !important;
}
.it-breadcrumb ol {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    counter-reset: none !important;
}
.it-breadcrumb ol li {
    display: inline-flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: none !important;
    position: static !important;
}
.it-breadcrumb ol li::before {
    content: none !important;
    display: none !important;
}
.it-breadcrumb ol li::after {
    content: none !important;
    display: none !important;
}
.it-breadcrumb a {
    color: #999 !important;
    text-decoration: none !important;
}
.it-breadcrumb a:hover {
    color: #f39800 !important;
}
.it-breadcrumb span {
    color: #999 !important;
}

/* ── ナビゲーション ── */
.nav-links {
    max-width: 1000px;
    margin: 24px auto;
    padding: 0 20px;
    font-size: 1.4rem;
}

.nav-links a {
    color: #f39800;
}

/* ── レスポンシブ ── */
@media (max-width: 768px) {
    main {
        font-size: 1.5rem;
    }

    .it-article {
        margin: 80px 12px 24px !important;
        padding: 24px 16px 32px !important;
        border-radius: 18px !important;
        border-width: 3px !important;
    }

    .it-article .entry-title {
        font-size: 1.8rem;
    }

    .it-article p {
        font-size: 1.5rem;
    }

    .it-article h2 {
        font-size: 1.8rem;
    }

    .it-article h3 {
        font-size: 1.5rem;
    }

    .it-article h4 {
        font-size: 1.5rem;
    }

    .it-article ul > li,
    .it-article ol > li {
        font-size: 1.5rem;
    }

    .it-article blockquote {
        font-size: 1.4rem;
    }

    .it-article table {
        font-size: 1.3rem;
    }

    .it-card-grid {
        margin-top: 80px !important;
        grid-template-columns: 1fr;
    }

    .it-card__title {
        font-size: 1.5rem;
    }

    .archive-hero {
        padding: 8rem 16px 0 !important;
    }
    .archive-title {
        font-size: 2.4rem !important;
        letter-spacing: .12em !important;
    }
    .archive-title::after {
        width: 80px !important;
        height: 6px !important;
    }
    .archive-desc {
        font-size: 1.3rem !important;
        margin-top: 16px !important;
    }
}
