@charset "UTF-8";

/*
Theme Name: Twenty Twenty-One Child
Theme URI: https://wordpress.org/themes/twentytwentyone/
Template: twentytwentyone
Description: Twenty Twenty-One の子テーマです。カスタマイズはこのテーマで行ってください。
Author: Your Name
Author URI: https://example.com
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentyone-child
*/

/* カスタムスタイル */

@media only screen and (min-width: 822px) {
    :root {
        --responsive--aligndefault-width: min(calc(100vw - 8 * var(--global--spacing-horizontal)), 810px);
        --responsive--alignwide-width: min(calc(100vw - 8 * var(--global--spacing-horizontal)), 1040px);
    }
}

@media only screen and (min-width: 652px) {
    :root {
        --global--font-size-xxl: 2.2rem;
        --global--font-size-xxxl: 3rem;
    }
}

@media only screen and (max-width: 651px) {
    :root {
        --global--font-size-xxl: 2.2rem;
    }
}

body.archive{
  & h1.page-title{
    font-size: 1.8rem;
  }
  & .page-header{
    margin-bottom: 2rem;
    padding-bottom: 2rem;
  }
  & article.post{
    margin-top: 3rem;
  }
}

.p-global-nav-top {
    line-height: 0;
    margin-bottom: 15px;
}
p.p-global-nav-top__phone {
    line-height: 1;
}
.p-sub-header__content-nav,
.p-sub-header__social-nav{
    line-height: 1;
}
.p-sub-header a {
    font-size: 14px;
}
.byline{
    display: none !important;
}

.p-global-header .p-layout-container{
    display: flex;
    justify-content: space-between;
}

#primary.content-area {
    padding-top: 50px;
    & .entry-header {
      margin-bottom: 50px;
      padding-bottom: 35px;
    }
    & .entry-title {
      font-size: 24px;
    }
}

body.home #primary.content-area {
    & .entry-header {
      margin-bottom: 0;
      padding-bottom: 25px;
      border-bottom: none;
    }
}

.p-global-header .p-layout-container::after{
  display: none;
}
.p-global-header .p-layout-container::before{
  display: none;
}
.p-global-header .p-global-header__logo {
    width: 48%;
    max-width: 430px;
    margin: 0;
}
a.p-global-header__logo.p-global-header__logo--image.js-header-logo img {
    max-width: 100%;
}
.p-global-nav {
    width: 52%;
}
div#js-sp-header, .open-search-form, .open-drawer-nav {
    font-size: 14px;
}
.p-drawer-nav {
    font-size: 14px;
    line-height: 1.2;
}
span.c-sp-list__value {
    font-size: 14px;
    font-weight: normal;
}
label.c-sp-list.c-sp-list--close-menu {
    margin-bottom: 0;
}
dd.p-drawer__pulldown {
    padding-left: 0;
}
.p-global-nav__unit:last-child{
    border-right: none;
}
.p-global-nav__blog {
    line-height: 22px;
}
a.p-global-header__home {
    width: 48%;
    max-width: 500px;
    margin: 0;
}
.p-global-header__logo:focus,.p-global-header__logo:active{
  background:inherit !important;
}
.wpp-no-data{
    text-align: center;
}
body.single-post .entry-content h2,
body.single-post .entry-content h3,
body.single-post .entry-content h4,
body.single-post .entry-content h5{
    margin-top: 5rem !important;
}
body.single-post h1.entry-title{
    border-top: 4px double #C0C300;
    border-bottom: 4px double #C0C300;
    padding: 18px 0;
    font-size: 1.8rem !important;
    font-weight: bold;
}
body.single-post .entry-content h2.wp-block-heading{
    position: relative;
    overflow: hidden;
    padding: 1rem 2rem 1rem 120px;
    border: solid 2px #C0C300;
    font-size: 1.7rem;
    font-weight: bold;
    counter-increment: num;
    &:before {
        position: absolute;
        content: '';
        top: -150%;
        left: -100px;
        width: 200px;
        height: 300%;
        transform: rotate(25deg);
        background: #C0C300;
    }
    &:after, & span {
        position: absolute;
        display: block;
        top: 0;
        left: 0;
        z-index: 1;
        font-size: 30px;
        font-size: 3rem;
        padding-left: 16px;
        color: #fff;
    }
    &:after {
        content: '0' counter(num);
    }
}
body.single-post .entry-content h3.wp-block-heading{
    background: linear-gradient(transparent 60%, #e0e196 60%)
}
body.single-post .entry-content h4.wp-block-heading{
    border-bottom: solid 3px #C0C300;
	padding: 10px 0;
}
body.single-post .entry-content h5.wp-block-heading{
    border-bottom: dashed 2px #C0C300;
	padding: 10px 0;
}


@media only screen and (max-width: 651px) {

    body.single-post .entry-content h2.wp-block-heading{
        padding: 1rem 2rem 1rem 85px;
        font-size: 1.4rem;
        &:before {
            left: -125px;
        }
        &:after, & span {
            padding-left: 9px;
            font-size: 2.5rem;
        }
    }
        
    body.single-post .entry-content h3.wp-block-heading{
        background: linear-gradient(transparent 50%, #e0e196 50%);
        font-size: 1.4rem;
    }
        
    body.single-post .entry-content h4.wp-block-heading{
        font-size: 1.3rem;
    }

}

/* ========================================
   グリッドレイアウト - 記事一覧
   ======================================== */

/* グリッドラッパー - 最大幅を制限 */
.posts-grid-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* グリッドコンテナ */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    width: 100%;
}

/* カード全体のリンク */
.posts-grid .post-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.posts-grid .post-card-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.has-background-white .site a:focus:not(.wp-block-button__link):not(.wp-block-file__button){
    background: none;
}

/* 各記事アイテム */
.posts-grid article.post {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0;
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* サムネイル画像 - 横長で統一 */
.posts-grid .post-thumbnail {
    margin-top: 0;
    margin-bottom: 0;
    flex-shrink: 0;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
}

.posts-grid .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin-top: 0;
}

/* カテゴリバッジ */
.posts-grid .post-category {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #C0C300;
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    margin-top: 0;
    padding: 3px 8px;
    border-radius: 3px;
    line-height: 1.3;
    z-index: 1;
}

/* 記事コンテンツ部分 */
.posts-grid .post-content {
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* 記事ヘッダー */
.posts-grid .entry-header {
    margin-bottom: 0.5rem !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
    margin-top: 10px;
    flex-shrink: 0;
}

/* 記事タイトル - PC時に少し大きく、高さ固定（2行分） */
.posts-grid .entry-title {
    font-size: 1rem !important;
    line-height: 1.4 !important;
    margin-top: 0;
    margin-bottom: 0.4rem !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.66em;
    color: #333;
}

/* 投稿メタ情報（日付など）- 小さめのフォント */
.posts-grid .entry-meta {
    font-size: 0.7rem !important;
    color: #888;
    flex-shrink: 0;
}

.posts-grid .posted-on,
.posts-grid .posted-on time {
    font-size: 0.7rem !important;
    color: #888;
}

/* 抜粋テキスト - 高さを固定（3行分） */
.posts-grid .entry-summary {
    font-size: 0.75rem !important;
    line-height: 1.5;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 0.4rem;
    height: 3.375em;
    flex-grow: 1;
}

/* カテゴリー・タグ */
.posts-grid .cat-links,
.posts-grid .tags-links {
    font-size: 0.65rem !important;
}

/* 続きを読むリンク */
.posts-grid .more-link {
    font-size: 0.7rem !important;
}

/* レスポンシブ対応 */
@media only screen and (max-width: 1200px) {
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media only screen and (max-width: 900px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media only screen and (max-width: 600px) {
    .posts-grid-wrapper {
        padding: 0 0.5rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .posts-grid .post-card-link:hover {
        transform: none;
    }
    
    .posts-grid .entry-title {
        font-size: 1rem !important;
        height: auto;
        -webkit-line-clamp: 3;
    }
    
    .posts-grid .entry-meta,
    .posts-grid .posted-on,
    .posts-grid .posted-on time {
        font-size: 0.75rem !important;
    }
    
    .posts-grid .entry-summary {
        font-size: 0.85rem !important;
        height: auto;
    }
}