@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}


/* リスト全体のスタイル */
.custom-post-list {
    margin-bottom: 30px;
}

/* 各記事の枠組み */
.post-item {
    border-bottom: 1px solid #333; /* 下の区切り線 */
    padding: 20px 0 10px 0;
}

.post-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* 日付のスタイル */
.post-date {
    display: block;
    font-size: 0.9rem;
    font-family: serif; /* 明朝体系 */
    margin-bottom: 5px;
}

/* タイトルのスタイル */
.post-title {
    font-size: 1.1rem;
    font-weight: normal;
    margin: 0;
    line-height: 1.6;
}

/* ページネーションの簡易スタイル */
.custom-pagination {
    margin-top: 20px;
    text-align: center;
}
.custom-pagination a, .custom-pagination span {
    padding: 5px 10px;
    margin: 0 5px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
}
.custom-pagination .current {
    background: #333;
    color: #fff;
}

/* 言語選択部分のCSS（PC） */
.elementor-element-3b959de select.gt_selector option {
	color: black;
}

/* 言語変更時、縦書きを横書きに変更 */
.tategaki:has(font) {
    writing-mode: horizontal-tb !important;
}
.tategaki.elementor-widget-navigation-menu:has(font) {
	writing-mode: vertical-rl !important;
}
.tategaki:has(font) h2 {
	white-space: nowrap;
}
/* 言語変更時、スタイル変更 */
html:not(:lang(ja)) .multilingual-yoko {
  display: flex;
  flex-direction: column-reverse;
}
/*html:not(:lang(ja)) .tategaki {*/
.tategaki:has(font) {
  writing-mode: horizontal-tb;
  line-height: 2 !important;
}
html:not(:lang(ja)) .title> .elementor-widget-container {
  border-width: 0 !important;
}

/* -------------------------------------
 * News Slider CSS 
 * ------------------------------------- */
.news-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
}

.news-swiper {
    width: calc(100% - 120px); /* 両端の矢印スペースを確保 */
    margin: 0 auto;
    overflow: hidden;
}

.news-slide-item {
    box-sizing: border-box;
}

.news-slide-link {
    text-decoration: none !important;
    color: #333;
    display: block;
}

.news-slide-thumb {
    margin-bottom: 15px;
}

.news-slide-thumb img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.news-slide-meta {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.news-slide-date {
    font-family: "Times New Roman", Times, serif; /* 明朝体系 */
    font-size: 14px;
    color: #666;
    margin-right: 15px;
    letter-spacing: 0.05em;
}

.news-slide-category {
    background-color: #000;
    color: #fff;
    padding: 3px 12px;
    font-size: 12px;
    letter-spacing: 0.05em;
}

.news-slide-title {
    font-family: "Noto Serif JP", "Mincho", serif;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    color: #333;
    font-weight: normal;
}

.news-swiper-button-prev, .news-swiper-button-next {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 50px;
    height: 30px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-swiper-button-prev {
    left: 0;
}

.news-swiper-button-next {
    right: 0;
}

/* レスポンシブ対応 */
@media screen and (max-width: 767px) {
    .news-swiper {
        width: calc(100% - 110px); /* スライダー部分をさらに小さくし、ページャーとの余白を作る */
    }
    .news-swiper-button-prev, .news-swiper-button-next {
        width: 40px;
    }
    .news-swiper-button-prev {
        left: 5px;
    }
    .news-swiper-button-next {
        right: 5px;
    }
}

/* -------------------------------------
 * News Archive CSS 
 * ------------------------------------- */
.custom-news-archive-wrapper {
    max-width: 1200px;
    margin: 150px auto 0;
    padding: 0 20px;
}

.news-archive-header {
    text-align: center;
    margin: 60px 0 40px;
}

.news-archive-title-container {
    display: inline-block;
    position: relative;
    margin: 0 auto 10px;
}

.news-archive-logo-icon {
    position: absolute;
    left: 0;
    bottom: 5px; /* 下線にぴったり付くように上下位置を調整。NEWSのベースラインに合わせる */
    transform: translateX(-100%);
    height: 58px; /* 少し大きめに */
    margin-bottom: -11px; /* SVGの「下のちょんと出た部分」が下線に触れるようにマイナスマージンで微調整 */
    margin-left: 12px; /* 少し右に寄せて下線の端に合わせる */
}

.news-archive-title-text-wrap {
    border-bottom: 1px solid #d7a87e;
    padding-bottom: 5px;
    padding-left: 70px; /* 左側に線を伸ばす */
    padding-right: 70px; /* 右側に線を伸ばす（左右均等） */
}

.news-archive-title {
    font-family: serif;
    font-size: 42px;
    color: #c98c48;
    letter-spacing: 0.1em;
    line-height: 1;
}

.news-archive-subtitle {
    font-family: serif;
    font-size: 18px; 
    color: #c98c48;
    letter-spacing: 0.2em; 
    /* news-archive-header の text-align: center で自動的に中央揃えになる */
}

.news-archive-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 60px;
}

.news-archive-main {
    flex: 1;
    min-width: 0; /* flexbox bug fix */
}

.news-archive-sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* Archive List Items */
.news-archive-item {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.news-archive-link {
    display: flex;
    gap: 20px;
    text-decoration: none !important;
    color: inherit;
    align-items: flex-start;
}

.news-archive-thumb {
    width: 30%;
    flex-shrink: 0;
}

.news-archive-thumb img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.news-archive-content {
    flex: 1;
}

.news-archive-meta {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.news-archive-date {
    font-family: "Times New Roman", Times, serif;
    font-size: 14px;
    color: #666;
    margin-right: 15px;
}

.news-archive-category {
    background-color: #000;
    color: #fff;
    padding: 3px 10px;
    font-size: 12px;
}

.news-archive-post-title {
    font-family: "Noto Serif JP", "Mincho", serif;
    font-size: 20px;
    line-height: 1.5;
    margin: 0 0 10px 0;
    color: #333;
}

.news-archive-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

/* Pagination */
.news-archive-pagination {
    margin-top: 40px;
    text-align: center;
}

.news-archive-pagination a, .news-archive-pagination span {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 5px;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
}

.news-archive-pagination .current {
    background-color: #333;
    color: #fff;
    border-color: #333;
}

/* Sidebar */
.news-sidebar-widget {
    margin-bottom: 40px;
}

.news-sidebar-title {
    font-family: serif;
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
}

.news-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-sidebar-list li {
    margin-bottom: 10px;
}

.news-sidebar-list a {
    color: #666;
    text-decoration: none;
    font-size: 15px;
}

.news-sidebar-list a:hover {
    color: #bfa37c;
}

.news-sidebar-archive-dropdown select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    font-size: 15px;
    color: #333;
    background-color: #fff;
}

/* -------------------------------------
 * News Single CSS 
 * ------------------------------------- */
.news-breadcrumbs {
    margin: 40px 0 30px;
    font-size: 14px;
    color: #666;
}

.news-breadcrumbs a {
    color: #666;
    text-decoration: none;
    border-bottom: 1px solid #ccc;
    padding-bottom: 2px;
}

.news-breadcrumbs a:hover {
    color: #333;
    border-bottom-color: #333;
}

.news-single-header {
    margin-bottom: 20px;
}

.news-single-title {
    font-family: "Noto Serif JP", "Mincho", serif;
    font-size: 32px;
    line-height: 1.4;
    margin: 15px 0 0;
    color: #333;
    font-weight: normal;
}

.news-single-thumbnail {
    margin-bottom: 40px;
}

.news-single-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.news-single-content {
    font-size: 16px;
    line-height: 2;
    color: #333;
    margin-bottom: 60px;
}

.news-single-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin: 60px 0 80px;
}

.news-single-nav a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
}

.news-single-nav a:hover {
    color: #bfa37c;
}

/* レスポンシブ対応 */
@media screen and (max-width: 834px) {
    .news-archive-layout {
        flex-direction: column;
    }
    
    .news-archive-sidebar {
        width: 100%;
    }
}

@media screen and (max-width: 767px) {
    .news-archive-link {
        flex-direction: column;
    }
    
    .news-archive-thumb {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .news-archive-header {
        margin-top: 100px; /* 上の余白をさらに空ける（固定ヘッダーに隠れないように） */
        position: relative;
        left: 15px;
    }

    .news-archive-title-text-wrap {
        padding-left: 30px; /* スマホでは下線が長すぎて画面外に出ないように短くする */
        padding-right: 30px;
    }

    .news-archive-title {
        font-size: 36px; /* 画面幅に合わせて少し縮小 */
    }

    .news-archive-logo-icon {
        height: 48px; /* アイコンも少し縮小 */
        margin-bottom: -9px; /* 下線にぴったり付くように再調整 */
    }
}