/*--------------------------------------全ページ共通部分--------------------------------------*/

/* デフォルト */
body {
    font-family: "Zen Old Mincho", serif;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* フッターを常に最下部に固定（Sticky Footer） */
main,
.mainvj~main,
section.main-section {
    flex: 1;
}

/* 背景画像 */
body {
    background-image: url("../images/bk.webp");
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

/*---------- ヘッダー ----------*/
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99;
    padding: 8px 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(255, 255, 255, 0);
}

@media (max-width: 960px) {
    .site-header {
        padding: 8px 30px;
    }
}

@media (max-width: 600px) {
    .site-header {
        padding: 6px 20px;
    }
}

/* ロゴ画像 */
.logo {
    display: block;
}

.logo img {
    display: block;
    height: 70px;
    margin: 10px 0;
}

@media (max-width: 960px) {
    .logo img {
        height: 50px;
    }
}

@media (max-width: 600px) {
    .logo img {
        height: 40px;
    }
}

/* ロゴホバー時の設定 */
h1 a:hover {
    opacity: 0.5;
    transform: none;
    transition: 0.3s;
}

/*---------- ヘッダーナビ ----------*/
.header__nav {
    position: absolute;
    right: 0;
    left: 0;
    top: 0;
    font-weight: 500;
    width: 100%;
    height: 100vh;
    transform: translateX(100%);
    background-color: rgba(255, 255, 255, 90%);
    transition: ease 0.4s;
}

.nav-items {
    padding-top: 250px;
    padding-bottom: 50px;
}

/* SNS アイコン */
.sns_icon {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.sns_icon img {
    width: 32px;
    height: 32px;
}

/* ナビのリンク
   wp_nav_menu() は .menu-item を出力するため
   .nav-items li でも同時に指定する */
.nav-items__item a,
.nav-items li a {
    color: #222;
    width: 100%;
    display: block;
    text-align: center;
    font-size: 28px;
    margin-bottom: 28px;
}

.nav-items__item:last-child a,
.nav-items li:last-child a {
    margin-bottom: 0;
}

/* リスト自体も中央揃えに */
.nav-items,
.nav__items {
    text-align: center;
    padding-left: 0;
    list-style: none;
}

a:hover {
    transform: scale(1.1);
    transition: 0.2s;
}

@media (hover: hover) {
    a:hover {
        transform: scale(1.2);
    }
}

/* Gutenberg ボタンブロックはホバー時に拡大しない */
.wp-block-button__link:hover,
.wp-block-button .wp-block-button__link:hover,
.wp-block-buttons .wp-block-button__link:hover {
    transform: none;
}

/*---------- ハンバーガーメニュー ----------*/
.header__hamburger {
    width: 50px;
    height: 100%;
}

.hamburger {
    background-color: transparent;
    border-color: transparent;
    z-index: 9999;
}

/* ハンバーガーメニューの線 */
.hamburger span {
    background-color: #222;
    width: 100%;
    height: 2px;
    position: relative;
    transition: ease 0.4s;
    display: block;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    margin: 8px 0;
}

.hamburger span:nth-child(3) {
    top: 0;
}

/* ハンバーガーメニュークリック後のスタイル */
.header__nav.active {
    transform: translateX(0);
}

.hamburger.active span:nth-child(1) {
    background-color: #222;
    top: 5px;
    transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    background-color: #222;
    top: -15px;
    transform: rotate(-45deg);
}

/*---------- WordPress ナビ メニュー共通 ----------*/
/* wp_nav_menu() が出力する .menu クラスをネストリスト対応 */
.nav__items li,
.sitemap li {
    list-style: none;
}

/*--------------------------------------全ページ共通部分・END---------------------------------------*/


/*---------- メインビジュアル ----------*/

/* 固定ヘッダー分の余白をスライダー上部に確保 */
.mainvj {
    padding-top: 106px;
}

@media (max-width: 960px) {
    .mainvj {
        padding-top: 86px;
    }
}

@media (max-width: 600px) {
    .mainvj {
        padding-top: 72px;
    }
}

.slick-dots li button::before {
    font-size: 50px !important;
}


/*---------- コンテンツエリア ----------*/
.container {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 50px;
}

@media (max-width: 960px) {
    .container {
        padding: 0 35px;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 25px;
    }
}

/*---------- メインセクション共通設定 ----------*/
.main-section {
    padding: 50px 0 100px;
}

@media (max-width: 600px) {
    .main-section {
        padding: 25px 0 50px;
    }
}

/* 見出し */
.main-section .heading-group {
    position: relative;
    text-align: center;
    margin: 20px 0 50px;
}

@media (max-width: 600px) {
    .main-section .heading-group {
        margin: 10px 0 25px;
    }
}

.main-section .heading-group h2 {
    position: relative;
    z-index: 20;
    padding: 18px 0 0;
    color: #222222;
    font-size: 24px;
    font-weight: 700;
}


/*---------- ピックアップエリア ----------*/
.pickup .layout {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 60px;
}

@media (max-width: 960px) {
    .pickup .layout {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
}

/* アイキャッチ画像を縦横比を保ったまま表示 */
.pickup .image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

@media (max-width: 960px) {
    .pickup .image {
        text-align: center;
        padding-bottom: 10px;
    }
}

.pickup .image a:hover {
    opacity: 0.7;
    transition: 0.3s;
}

.pickup .text {
    color: #222222;
}

.pickup .text h3 {
    font-size: 18px;
    font-weight: 600;
    padding: 0 0 10px;
}

@media (max-width: 600px) {
    .pickup .text h3 {
        font-size: 16px;
    }
}

.pickup .text p {
    font-size: 16px;
}

@media (max-width: 600px) {
    .pickup .text p {
        font-size: 14px;
    }
}

.pickup .more {
    position: absolute;
    right: 0;
    bottom: 0;
}

@media (max-width: 960px) {
    .pickup .more {
        position: relative;
        text-align: center;
        bottom: -30px;
    }
}

.pickup .more a:hover {
    opacity: 0.7;
}


/*---------- ニュースエリア ----------*/
.news .layout {
    position: relative;
    padding-bottom: 100px;
    margin-bottom: 50px;
}

@media (max-width: 600px) {
    .news .layout {
        padding-bottom: 0;
        margin-bottom: 20px;
    }
}

.news a {
    text-decoration: none;
    color: #222222;
}

.news a:hover {
    opacity: 0.5;
    transform: none;
    transition: 0.3s;
}

.news ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news .news-list {
    margin: 0;
}

.news .news-list-item {
    display: flex;
    padding: 5px 0;
    border-bottom: 1px solid #5F7E93;
}

@media (max-width: 600px) {
    .news .news-list-item {
        display: block;
    }
}

.news .news-list-item a {
    position: relative;
    display: flex;
}

.news .news-list-date {
    font-size: 16px;
    display: flex;
}

@media (max-width: 600px) {
    .news .news-list-date {
        font-size: 12px;
    }
}

.news .news-item {
    color: #fff;
    background: #5F7E93;
    border-radius: 12px;
    width: 6rem;
    text-align: center;
    margin: 0 20px;
}

.news .more {
    position: absolute;
    right: 0;
    bottom: 0;
}

.news .more a {
    color: #fff;
    font-size: 18px;
    background-color: #5F7E93;
    border: none;
    padding: 10px 20px;
}

.news .more a:hover {
    opacity: 0.5;
}


/*---------- プライバシーポリシー ----------*/
.privacy {
    font-size: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
}

@media (max-width: 600px) {
    .privacy {
        padding: 0 20px 10px;
    }
}

.privacy p {
    padding: 0 0 5px;
}

.privacy a:hover {
    opacity: 0.4;
    transform: none;
    color: #010101;
}


/*---------- フッターエリア ----------*/
footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    background-color: #5F7E93;
    padding: 6px 0 0;
}

footer .sitemap {
    display: flex;
    justify-content: center;
}

footer li {
    font-size: 18px;
    padding: 4px 12px 4px 0;
}

footer li:hover {
    color: #f1f1f1;
}

/* フッターリンク */
footer a {
    color: #fff;
    text-decoration: none;
}

footer a:hover {
    opacity: 0.7;
    transform: none;
}

footer .copylight {
    font-size: 10px;
    padding: 0 0 6px;
}


/*---------- レスポンシブ ----------*/
@media (max-width: 600px) {
    h2 {
        font-size: 16px;
    }

    p {
        font-size: 14px;
    }

    .privacy p {
        font-size: 12px;
    }
}


/*---------- 投稿詳細（single）----------*/
.single-main {
    padding-top: 100px;
}

@media (max-width: 960px) {
    .single-main {
        padding-top: 90px;
    }
}

@media (max-width: 600px) {
    .single-main {
        padding-top: 70px;
    }
}

.single-article {
    padding: 40px 0 80px;
}

.single-article .breadcrumb ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0 0 20px;
    gap: 0.5em;
    font-size: 13px;
    color: #666;
}

.single-article .breadcrumb li:not(:last-child)::after {
    content: " >";
    margin-left: 0.5em;
}

.entry-header {
    margin-bottom: 30px;
}

.entry-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #555;
    margin-bottom: 12px;
}

.entry-date {
    color: #555;
}

.entry-title {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    line-height: 1.5;
}

.entry-thumbnail {
    margin-bottom: 30px;
}

.entry-content {
    font-size: 16px;
    line-height: 1.9;
    color: #333;
}

.entry-content p {
    margin-bottom: 1em;
}

/* ==========================================================================
   Gutenberg ブロックエディター対応
   ========================================================================== */

/* フォントサイズ プリセットクラス（!important でテーマ CSS を上書き） */
.has-small-font-size {
    font-size: 0.875rem !important;
}

.has-medium-font-size {
    font-size: 1rem !important;
}

.has-large-font-size {
    font-size: 1.5rem !important;
}

.has-x-large-font-size {
    font-size: 2.25rem !important;
}

.has-xx-large-font-size {
    font-size: 4.75rem !important;
}

/* カスタムサイズ（インラインスタイル）が効くよう
   テーマの p への font-size 指定を entry-content 内では解除 */
.entry-content [style*="font-size"] {
    font-size: revert;
}

/* Gutenberg テキスト色クラスをサポート */
.has-text-color {
    color: var(--wp--custom--color, inherit) !important;
}


/* 前後ナビ */
.post-navigation {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #5F7E93;
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1em;
}


/*---------- アーカイブ ----------*/
.archive-main {
    padding-top: 100px;
}

@media (max-width: 960px) {
    .archive-main {
        padding-top: 90px;
    }
}

@media (max-width: 600px) {
    .archive-main {
        padding-top: 70px;
    }
}

.archive-main .heading-group {
    text-align: center;
    margin: 40px 0;
}

.archive-main .heading-group h1 {
    font-size: 24px;
    font-weight: 700;
    color: #222;
}

.pagination {
    margin-top: 40px;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.pagination a,
.pagination span {
    padding: 8px 12px;
    border: 1px solid #5F7E93;
    font-size: 14px;
    color: #222;
}

.pagination .current {
    background: #5F7E93;
    color: #fff;
}


/*---------- 固定ページ ----------*/
.page-main {
    padding-top: 100px;
}

@media (max-width: 960px) {
    .page-main {
        padding-top: 90px;
    }
}

@media (max-width: 600px) {
    .page-main {
        padding-top: 70px;
    }
}

.page-article {
    padding: 40px 0 80px;
}

.page-article .heading-group {
    text-align: center;
    margin: 20px 0 40px;
}

.page-article .heading-group h1 {
    font-size: 24px;
    font-weight: 700;
    color: #222;
}

/*---------- スライダープレースホルダー ----------*/
.slider-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    background: #f0f0f0;
    color: #888;
    text-align: center;
    padding: 20px;
}


/*=============================================
  Memberページ
=============================================*/

.profile-container {
    margin-top: 50px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 120px;
    margin-bottom: 100px;
    list-style: none;
    padding: 0;
}

@media (max-width: 960px) {
    .profile-container {
        gap: 60px;
        margin-bottom: 80px;
    }
}

@media (max-width: 600px) {
    .profile-container {
        display: block;
        margin-bottom: 20px;
    }

    .profile-container li {
        margin-bottom: 40px;
    }
}

.profile {
    padding: 10px;
}

.profile .icon {
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.profile .link-icon {
    padding: 10px 0;
    display: flex;
    gap: 4px;
}

.profile .link-icon a img {
    margin-right: 6px;
    width: 25px;
    height: 25px;
}

.profile .link-icon a:hover {
    transform: scale(1.05);
    transition: all 0.2s;
    opacity: 0.8;
}

.profile-text {
    text-align: left;
    padding-top: 10px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 14px;
}

@media (max-width: 960px) {
    .profile-text {
        font-size: 12px;
    }
}

.profile-text .name {
    font-weight: 600;
    padding-right: 4px;
}


/*=============================================
  Contactページ
=============================================*/

.contact .heading-group p {
    font-size: 14px;
    color: #555;
    margin-top: 8px;
}

.form-box {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 50px 80px;
}

@media (max-width: 960px) {
    .form-box {
        padding: 0 35px 60px;
    }
}

@media (max-width: 600px) {
    .form-box {
        padding: 0 25px 40px;
    }
}

.form-item {
    margin-bottom: 24px;
}

.form-item label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #222;
    margin-bottom: 6px;
}

.form-item input[type="text"],
.form-item input[type="email"],
.form-item textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #5F7E93;
    background: rgba(255, 255, 255, 0.85);
    font-family: "Zen Old Mincho", serif;
    font-size: 14px;
    color: #222;
    outline: none;
    transition: border-color 0.2s;
}

.form-item input[type="text"]:focus,
.form-item input[type="email"]:focus,
.form-item textarea:focus {
    border-color: #8bbec7;
}

.form-item textarea {
    resize: vertical;
    line-height: 1.8;
}

.position {
    text-align: center;
    margin-top: 10px;
}

.form-item button[type="submit"] {
    background-color: #5F7E93;
    color: #fff;
    border: none;
    padding: 12px 48px;
    font-family: "Zen Old Mincho", serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.form-item button[type="submit"]:hover {
    opacity: 0.7;
}