/* ========================================
   投稿・記事関連CSS
   #article, #post_title_area, #post_list など
======================================== */

/* 記事全体 */
#article {
    /* ここに記事のカスタマイズを追加 */
}

/* 投稿タイトルエリア */
#post_title_area {
    /* ここに投稿タイトルのカスタマイズを追加 */
}

/* 投稿一覧 */
#post_list {
    /* ここに投稿一覧のカスタマイズを追加 */
}

/* ========================================
   カスタム投稿テンプレート用スタイル
======================================== */

/* ----------------------------------------
   1. ワイドレイアウト（サイドバーなし）
---------------------------------------- */
.template-wide #main_col.full-width {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.template-wide #article {
    max-width: 100%;
}

.template-wide #post_image .image {
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
}

/* ----------------------------------------
   2. ミニマルレイアウト
---------------------------------------- */
.template-minimal {
    background: #fafafa;
}

.template-minimal #main_col.minimal-layout {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
    background: #fff;
}

.entry-header-minimal {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.entry-header-minimal .entry-title {
    font-size: 2.5rem;
    line-height: 1.4;
    margin-bottom: 20px;
    font-weight: 700;
    color: #222;
}

.entry-header-minimal .entry-meta {
    font-size: 0.9rem;
    color: #666;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.entry-header-minimal .entry-meta .separator {
    color: #ccc;
}

.entry-header-minimal .entry-meta .categories a {
    color: #9e2339;
    text-decoration: none;
    transition: opacity 0.3s;
}

.entry-header-minimal .entry-meta .categories a:hover {
    opacity: 0.7;
}

.featured-image-minimal {
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: hidden;
}

.featured-image-minimal img {
    width: 100%;
    height: auto;
    display: block;
}

.entry-content-minimal {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.entry-content-minimal p {
    margin-bottom: 1.5em;
}

.entry-content-minimal h2 {
    font-size: 1.8rem;
    margin-top: 2em;
    margin-bottom: 1em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid #9e2339;
}

.entry-content-minimal h3 {
    font-size: 1.5rem;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
}

.author-profile-minimal {
    display: flex;
    gap: 20px;
    margin-top: 50px;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 8px;
}

.author-profile-minimal .author-avatar {
    flex-shrink: 0;
}

.author-profile-minimal .author-avatar img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
}

.author-profile-minimal .author-info {
    flex: 1;
}

.author-profile-minimal .author-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.author-profile-minimal .author-name a {
    color: #222;
    text-decoration: none;
}

.author-profile-minimal .author-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
}

.minimal-share {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.post-tags-minimal {
    margin-top: 30px;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 4px;
}

.post-tags-minimal .tags-label {
    font-weight: 700;
    margin-right: 10px;
    color: #666;
}

.post-tags-minimal a {
    display: inline-block;
    padding: 4px 12px;
    margin: 4px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.post-tags-minimal a:hover {
    background: #9e2339;
    color: #fff;
    border-color: #9e2339;
}

.minimal-nav {
    margin-top: 50px;
}

.related-minimal {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #e0e0e0;
}

.related-minimal .related-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
}

.related-minimal .related-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.related-minimal .related-item a {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s;
}

.related-minimal .related-item a:hover {
    transform: translateY(-5px);
}

.related-minimal .related-image {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.related-minimal .related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-minimal .related-item-title {
    font-size: 1.1rem;
    line-height: 1.4;
    font-weight: 600;
}

/* ----------------------------------------
   3. 特集記事レイアウト
---------------------------------------- */
.template-featured {
    background: #f9f9f9;
}

.featured-image-hero {
    width: 100%;
    height: 600px;
    position: relative;
    overflow: hidden;
}

.featured-image-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-image-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    align-items: flex-end;
    padding: 60px 40px;
}

.featured-image-hero .hero-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.entry-title-hero {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.entry-meta-hero {
    display: flex;
    gap: 20px;
    align-items: center;
    font-size: 1rem;
    color: #fff;
}

.entry-meta-hero .category-hero {
    background: #9e2339;
    color: #fff;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
}

.featured-header-no-image {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 40px 40px;
}

.entry-title-featured {
    font-size: 2.8rem;
    line-height: 1.3;
    margin-bottom: 20px;
    font-weight: 800;
    color: #222;
}

.entry-meta-featured {
    display: flex;
    gap: 20px;
    align-items: center;
    font-size: 0.95rem;
    color: #666;
}

.entry-meta-featured .category {
    background: #9e2339;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.featured-content-wrapper {
    max-width: 900px;
    margin: -80px auto 0;
    background: #fff;
    padding: 60px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    position: relative;
    z-index: 10;
}

.template-featured .featured-header-no-image+.featured-content-wrapper {
    margin-top: 0;
    box-shadow: none;
}

.featured-share-top {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.entry-content-featured {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #444;
}

.entry-content-featured p {
    margin-bottom: 1.5em;
}

.entry-content-featured h2 {
    font-size: 2rem;
    margin-top: 2em;
    margin-bottom: 1em;
    padding-left: 15px;
    border-left: 4px solid #9e2339;
}

.entry-content-featured h3 {
    font-size: 1.6rem;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
}

.featured-author {
    margin-top: 50px;
    padding: 40px;
    background: #f9f9f9;
    border-radius: 8px;
}

.featured-share-bottom {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.featured-meta {
    margin-top: 30px;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 4px;
}

.featured-nav {
    max-width: 900px;
    margin: 40px auto;
}

.featured-related {
    margin-top: 60px;
    padding: 60px 0;
    background: #fff;
}

.featured-related-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.featured-comments-wrapper {
    max-width: 900px;
    margin: 40px auto;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
}

/* ========================================
   レスポンシブ対応
======================================== */

/* タブレット */
@media screen and (max-width: 1024px) {
    .template-wide #main_col.full-width {
        padding: 30px 15px;
    }

    .featured-content-wrapper {
        margin-top: -60px;
        padding: 40px 30px;
    }

    .featured-related-inner {
        padding: 0 30px;
    }
}

/* モバイル */
@media screen and (max-width: 768px) {

    /* ワイドレイアウト */
    .template-wide #main_col.full-width {
        padding: 20px 15px;
    }

    .template-wide #post_image .image {
        height: 300px;
    }

    /* ミニマルレイアウト */
    .template-minimal #main_col.minimal-layout {
        padding: 40px 15px;
    }

    .entry-header-minimal .entry-title {
        font-size: 1.8rem;
    }

    .entry-content-minimal {
        font-size: 1rem;
    }

    .entry-content-minimal h2 {
        font-size: 1.5rem;
    }

    .entry-content-minimal h3 {
        font-size: 1.3rem;
    }

    .author-profile-minimal {
        flex-direction: column;
        padding: 20px;
    }

    .related-minimal .related-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* 特集記事レイアウト */
    .featured-image-hero {
        height: 400px;
    }

    .featured-image-hero .hero-overlay {
        padding: 40px 20px;
    }

    .entry-title-hero {
        font-size: 2rem;
    }

    .entry-meta-hero {
        font-size: 0.85rem;
        flex-wrap: wrap;
    }

    .featured-content-wrapper {
        margin-top: -40px;
        padding: 30px 20px;
    }

    .featured-header-no-image {
        padding: 40px 20px 20px;
    }

    .entry-title-featured {
        font-size: 2rem;
    }

    .entry-content-featured {
        font-size: 1rem;
    }

    .entry-content-featured h2 {
        font-size: 1.6rem;
    }

    .entry-content-featured h3 {
        font-size: 1.4rem;
    }

    .featured-author {
        padding: 20px;
    }

    .featured-related {
        padding: 40px 0;
    }

    .featured-related-inner {
        padding: 0 20px;
    }

    .featured-comments-wrapper {
        padding: 20px;
    }
}

@media screen and (max-width: 480px) {
    .featured-image-hero {
        height: 300px;
    }

    .entry-title-hero {
        font-size: 1.5rem;
    }

    .entry-header-minimal .entry-title {
        font-size: 1.5rem;
    }

    .entry-title-featured {
        font-size: 1.6rem;
    }
}

/* ----------------------------------------
   4. Type1（標準レイアウト）
---------------------------------------- */

/* PC表示（1080px以上） */
@media screen and (min-width: 1080px) {
    .type1_title_area {
        padding-top: 0px !important;
        padding-left: 50px !important;
        padding-right: 50px !important;
    }

    .type1_title_area .title {
        font-size: 32px !important;
        font-weight: bold !important;
    }

    .type1_post_image {
        padding: 0 50px !important;
        box-sizing: border-box;
    }

    .type1_post_content {
        padding: 0 150px !important;
        font-size: 16px !important;
        line-height: 1.5 !important;
        box-sizing: border-box;
    }

    .type1_post_content p,
    .type1_post_content div,
    .type1_post_content span,
    .type1_post_content li {
        line-height: 1.5 !important;
    }

    .type1_post_content img {
        display: block;
        margin: 0 auto;
        max-width: 700px;
        width: auto;
        height: auto;
    }

    /* Type1 tcdce-body pタグ中央揃え */
    .type1_post_content .tcdce-body p {
        text-align: center !important;
    }

    /* Type1 サイドバー調整 */
    .type1_layout .side_banner_area {
        display: none !important;
    }

    .type1_layout .side_category_area {
        height: auto !important;
    }

    .type1_layout .side_category_list {
        height: auto !important;
        overflow-y: visible !important;
        min-height: 723px;
    }
}

/* タブレット表示（651px〜1079px） */
@media screen and (min-width: 651px) and (max-width: 1079px) {
    .type1_title_area {
        padding-top: 0px !important;
        padding-left: 40px !important;
        padding-right: 40px !important;
    }

    .type1_title_area .title {
        font-size: 24px !important;
        font-weight: bold !important;
    }

    .type1_post_image {
        padding: 0 30px !important;
        box-sizing: border-box;
    }

    .type1_post_content {
        padding: 0 150px !important;
        font-size: 16px !important;
        line-height: 1.5 !important;
        box-sizing: border-box;
    }

    .type1_post_content p,
    .type1_post_content div,
    .type1_post_content span,
    .type1_post_content li {
        line-height: 1.5 !important;
    }

    .type1_post_content img {
        display: block;
        margin: 0 auto;
        max-width: 550px;
        width: auto;
        height: auto;
    }

    /* Type1 tcdce-body pタグ中央揃え */
    .type1_post_content .tcdce-body p {
        text-align: center !important;
    }

    /* Type1 サイドバー調整（タブレット） */
    .type1_layout .side_banner_area {
        display: none !important;
    }

    .type1_layout .side_category_area {
        height: auto !important;
    }

    .type1_layout .side_category_list {
        height: auto !important;
        overflow-y: visible !important;
        min-height: 500px;
    }
}

/* SP表示（650px以下） */
@media screen and (max-width: 650px) {
    .type1_title_area {
        padding-top: 0px !important;
        padding-left: 30px !important;
        padding-right: 30px !important;
    }

    .type1_title_area .title {
        font-size: 16px !important;
        font-weight: medium !important;
    }

    .type1_post_image {
        padding: 0 10px !important;
        box-sizing: border-box;
    }

    .type1_post_content {
        padding: 0 30px !important;
        font-size: 16px !important;
        line-height: 1.5 !important;
        box-sizing: border-box;
    }

    .type1_post_content p,
    .type1_post_content div,
    .type1_post_content span,
    .type1_post_content li {
        line-height: 1.5 !important;
    }

    .type1_post_content img {
        display: block;
        margin: 0 auto;
        max-width: 750px;
        width: auto;
        height: auto;
    }

    /* Type1 tcdce-body pタグ中央揃え */
    .type1_post_content .tcdce-body p {
        text-align: center !important;
    }

    /* Type1 サイドバー調整（SP） */
    .type1_layout #side_col {
        max-height: 274px !important;
        overflow: hidden;
    }

    .type1_layout .side_banner_area {
        display: none !important;
    }

    .type1_layout .side_category_area {
        height: auto !important;
        max-height: 274px !important;
    }

    .type1_layout .side_category_list {
        height: auto !important;
        overflow-y: scroll !important;
        max-height: 192px !important;
        min-height: auto;
    }
}

/* ----------------------------------------
   5. Contact Page Layout
---------------------------------------- */
.contact_layout #main_col.full_width {
    width: 100% !important;
    max-width: 100% !important;
    float: none;
    margin: 0 auto;
}

.contact_layout .post_content.clearfix {
    width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Contact Form 7 フォームレイアウト */
.contact_layout .contact-form-wrapper .form-input-group {
    display: flex;
    gap: 20px;
}

.contact_layout .contact-form-wrapper .form-input-half {
    flex: 1;
}

.contact_layout .contact-form-wrapper .form-input-half .sub-label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

.contact_layout .contact-form-wrapper .form-input-half .wpcf7-form-control {
    width: 100%;
}

/* Contact Page Responsive */
@media screen and (max-width: 950px) {
    .contact_layout .post_content.clearfix {
        width: 100%;
        padding: 0 30px;
    }
}

@media screen and (max-width: 650px) {
    #main_contents.contact_layout {
        padding-top: 0 !important;
    }

    .contact_layout .design_headline.blog_header {
        height: 44px !important;
        min-height: 44px !important;
        max-height: 44px !important;
        line-height: 44px !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 0 10px !important;
        margin: 0 0 30px 0 !important;
        box-sizing: border-box !important;
        font-size: 16px !important;
        overflow: hidden !important;
    }

    .contact_layout .design_headline.blog_header::before,
    .contact_layout .design_headline.blog_header::after {
        display: none !important;
        content: none !important;
    }

    .contact_layout .design_headline.blog_header.clearfix::before,
    .contact_layout .design_headline.blog_header.clearfix::after {
        display: none !important;
        content: none !important;
    }

    .contact_layout .post_content.clearfix {
        width: 100%;
        padding: 0 20px;
    }

    .contact_layout .contact-form-wrapper .form-input-group {
        flex-direction: column;
        gap: 10px;
    }
}