@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@700&display=swap');

/*!
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
*/




/************************************
** HEADER カスタマイズ（共通）
************************************/
.tagline,
.logo,
.logo-header,
.logo-text,
.search-box.input-box,
#navi,
#navi-in {
  display: none !important;
}

/* 検索フォーム */
.header-search {
  flex: 2;
  align-items: center;
  display: flex;
  justify-content: center;
}
.header-search .search-box {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
}
.header-search input[type="text"] {
  padding: 8px 14px;
  font-size: 14px;
  border-radius: 14px / 50%;
  width: 100%;
}
.header-search .search-submit {
  color: #378cb0;
}
.search-edit {
  border-radius: 40px !important;
  background-color: #d3d3d3;
  width: 100%;
  max-width: 280px;
}
.fa-search:before {
  color: gray;
}

/************************************
** ハンバーガーメニュー（共通）
************************************/
.hamburger-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  width: 48px;
  margin: 0 auto;
  margin-left: 85%;	
}



@media screen and (max-width: 768px) {
.hamburger-menu {
        margin-left: 50%;
  }
}

.hamburger-menu .bar {
  width: 24px;
  height: 3px;
  background-color: #333;
  border-radius: 2px;
  margin: 4px 0;
  transition: all 0.3s ease;
}

.hamburger-menu .menu-label {
  margin-top: 6px;
  font-size: 0.75rem;
  color: #333;
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
}

.hamburger-menu.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}
.hamburger-menu.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/************************************
** モバイルメニュー本体・オーバーレイ
************************************/
.mobile-nav {
  display: none;
  background: #fff;
  padding: 20px;
  border-top: 1px solid #ccc;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.mobile-nav.active {
  display: block;
  max-height: 500px;
}
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
  display: none;
  transition: opacity 0.3s ease;
}
.menu-overlay.active {
  display: block;
}

/************************************
** ヘッダーレイアウト（最終版）
************************************/

/* ヘッダー内部のレイアウト */
.site-header .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px; /* ヘッダーの高さ */
    padding: 0 15px; /* スマホでの左右の余白を詰める */
    width: 100%;
    box-sizing: border-box;
}

/* PC用の古い要素は、常に非表示 */
.header-title-pc,
.header-nav-pc,
.header-search {
    display: none !important;
}

/* 表示させたいロゴとハンバーガーは、常に表示 */
.header-logo,
.hamburger-menu {
    display: flex !important;
    align-items: center;
    position: static !important;
    transform: none !important;
}

/* ロゴ画像のサイズを厳密に指定 */
.header-logo img.site-logo {
    height: 40px !important; /* ロゴの高さを40pxに */
    width: auto !important;   /* 幅は自動 */
    padding: 0 !important;   /* 不要なpaddingをリセット */
    max-width: none !important; /* max-widthをリセット */
    margin-top: 15%;
    margin-left: 8%;
}

/* PC表示（769px以上）の場合の余白 */
@media screen and (min-width: 769px) {
    .site-header .header-inner {
        padding: 0 30px; /* PCでは左右の余白を広げる */
    }
}


/* --- ハンバーガーメニュー視認性向上 --- */
.page-template-template-full-hero .hamburger-menu {
    background-color: rgba(0, 0, 0, 0.25); /* 半透明の黒い背景 */
    width: 52px;   /* 円のサイズ */
    height: 52px;  /* 円のサイズ */
    border-radius: 50%; /* 角を丸めて円にする */
    box-shadow: 0 2px 8px rgba(0,0,0,0.2); /* UIとして少し浮き上がって見えるように影を追加 */
    transition: background-color 0.3s;
}

/* マウスが乗った時に少し濃くする */
.page-template-template-full-hero .hamburger-menu:hover {
    background-color: rgba(0, 0, 0, 0.4);
}

/* 中の線や文字の位置を微調整 */
.page-template-template-full-hero .hamburger-menu .bar {
    margin: 3px 0; /* 線と線の間隔を少し詰める */
}
.page-template-template-full-hero .hamburger-menu .menu-label {
    margin-top: 4px;
}

/************************************
** 20250627　フロントページ　ヒーローイメージ
************************************/ 


/* ===============
 0. レイアウトの基本構造をリセット
 =============== */
/* 原因だった余白を強制的に削除 */
.home #content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
/* 親コンテナの幅制限を解除 */
.home #container.container {
    max-width: none !important;
    padding: 0 !important;
}
/* ページの背景は白に */
body.home {
    background-color: #fff !important;
}

/* ===============
 1. ヒーローセクション
 =============== */

.home .front-page-hero {
    position: absolute;
    top: 0px;
    left: 50%; /* 画面の左端から50%の位置に配置 */
    transform: translateX(-50%); /* 要素自身の幅の50%分、左にずらす */
    height: 100vh;
    width: 100vw; /* 表示領域(viewport)の幅いっぱいに指定 */
    z-index: 1;
}
.home .front-page-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===============
 キャッチコピー（PCは左寄せ、スマホは中央寄せ）
 =============== */
/* まずPC用のスタイルを定義 */
.home .front-page-hero .hero-catchphrase {
    position: absolute;
    top: 50%;
    left: 8%; /* PCでは左から8%の位置 */
    transform: translateY(-50%);
    width: auto;
    color: white;
    font-family: 'Shippori Mincho', serif;
    font-size: 2.8rem;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    line-height: 1.5;
    text-align: left; /* PCでは左寄せ */
    opacity: 0;
    white-space: nowrap; /* PCでは改行させない */
    animation: fadeIn-from-left 1.5s ease-out 0.5s forwards;
}

/* --- スマホ表示（画面幅が768px以下）の場合のスタイル --- */
@media screen and (max-width: 768px) {
    .home .front-page-hero .hero-catchphrase {
        left: 50%; /* スマホでは中央に配置 */
        transform: translate(-50%, -50%);
        width: 90%; /* 横幅も調整 */
        text-align: center; /* スマホでは中央揃え */
        white-space: normal; /* スマホでは自動で改行を許可 */
        font-size: 2.2rem; /* スマホ用に少しフォントを小さく */
        animation-name: fadeIn-and-float-mobile; /* スマホ用のアニメーションに切り替え */
    }
}



/* ===============
 2. ヘッダー
 =============== */
.home header.site-header {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    z-index: 100 !important;
}
.admin-bar.home header.site-header { top: 32px !important; }

.home header.site-header .header-inner {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    height: 80px !important;
    padding: 0 30px !important;
}
/* PC表示でのヘッダー要素の切り替え */
@media (min-width: 769px) {
    /* スマホ用のロゴとメニューをPCでも表示 */
    .home .header-logo,
    .home .hamburger-menu {
        display: flex !important;
    }
    /* PC用のデフォルト要素は非表示に */
    .home .header-title-pc,
    .home .header-nav-pc,
    .home .header-search {
        display: none !important;
    }
}

/* ロゴとメニューの基本スタイル */
.home .header-logo,
.home .hamburger-menu {
    width: 52px;
    height: 52px;
    transition: background-color 0.3s ease;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    margin: 0 !important;
	margin-left: 5% !important;
}

.home .hamburger-menu:hover {
    background-color: rgba(0, 0, 0, 0.4);
}

.home .hamburger-menu .bar {
    width: 24px;
    height: 3px;
    background-color: #fff !important;
    border-radius: 2px;
    margin: 3px 0;
    transition: all 0.3s ease;
}

.home .hamburger-menu .menu-label {
    margin-top: 4px;
    font-size: 0.75rem;
    color: #fff !important;
    font-weight: 500;
}
.home .header-logo img.site-logo {
    height: 40px !important;
    width: auto !important;
}

/* 開いた時のアニメーションも .bar に戻します */
.home .hamburger-menu.active .bar:nth-of-type(1) {
    transform: translateY(9px) rotate(45deg);
}
.home .hamburger-menu.active .bar:nth-of-type(2) {
    opacity: 0;
}
.home .hamburger-menu.active .bar:nth-of-type(3) {
    transform: translateY(-9px) rotate(-45deg);
}


/* ===============
 3. メインコンテンツ
 =============== */
.home .page-content-wrapper {
    padding-top: 100vh;
    position: relative;
    z-index: 10;
}
/* 各コンテンツセクションの幅を通常に戻し、中央に配置 */
.home .page-content-wrapper > section {
    max-width: 1110px; /* Cocoonの標準的なコンテンツ幅 */
    margin-left: auto;
    margin-right: auto;
    padding: 40px 20px;
}

/* ===============
 アニメーションの定義
 =============== */
/* PC用：左からフェードイン */
@keyframes fadeIn-from-left {
    from {
        opacity: 0;
        transform: translateX(-20px) translateY(-50%);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(-50%);
    }
}

/* スマホ用：下からふわっとフェードイン */
@keyframes fadeIn-and-float-mobile {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}


/* --- キャッチコピー視認性向上（グラデーションスタイル） --- */
/* ヒーローイメージに擬似要素を追加して、その上にグラデーションをかける */
.home .front-page-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 下から上へ、黒(透明度40%)から透明へのグラデーション */
    background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
    z-index: 1; /* 画像の上、文字の下に配置 */
}

/* 文字がグラデーションより手前に来るように調整 */
.home .front-page-hero .hero-catchphrase {
    z-index: 2;
}

            


/* --- 【最終対策】menu-overlayを非表示にしてクリック問題を解決 --- */
#menu-overlay {
    display: none !important;
} 



/************************************
** 20250616　フロントページ　スライドショー
************************************/
.featured {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 20px;
}
.featured-heading {
  text-align: center;
  font-size: 1.8rem;
  border-bottom: 2px solid #cc6633;
  padding-bottom: 0.3em;
  margin-bottom: 30px;
}

.featured-button-area {
  text-align: right;
  margin-top: 20px;
  padding-right: 20px;
}

/* スライド全体（画像＋テキスト）を横並びに */
.slide-item {
  display: flex;
  align-items: center; /* ← テキストブロックを縦中央に配置 */
  gap: 30px;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.slide-img {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 = 9 / 16 * 100 */
  flex: 0 0 70%;
  overflow: hidden;
  border-radius: 8px;
}

.slide-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}



.slide-text {
  flex: 0 0 30%;
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  display: block; /* 中央配置にはflex不要 */
}


/* タイトル：中央寄せ（上下マージン無しで） */
.slide-text h4 {
  font-size: 1.3rem;
  color: #333;
  margin: 0 auto;
  text-align: center;
}

.meta {
  font-size: 0.85em;
  color: #777;
}

.custom-field {
  font-size: 0.9em;
  color: #cc6633;
  font-weight: bold;
  margin-top: 10px;
}

.swiper {
  width: 100%;
  overflow: hidden;
  position: relative; /* ← これが無いと子ボタンの left/right が効かない！ */
}
.swiper-wrapper {
  display: flex;
}

/* swiper-slide をフル幅＆中央に */
.swiper-slide {
  flex-shrink: 0 !important;
  width: 100% !important;
  display: flex !important;
  justify-content: center;
}


.slide-text h4 {
  font-size: 1.3rem;
  color: #333;
  margin: 0;
}

/* ① 抜粋文の自動折り返し：最大3行まで表示 */
.excerpt {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #444;
  margin-top: auto; /* ← これが下寄せ */
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* ② ボタンを右側に配置（スライド下） */
.featured-button-area {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
  padding: 0 20px;
}

/* ③ 横長楕円型のボタン：背景グレー・文字黒 */
.flat-button {
  display: inline-block;
  background: #e0e0e0;
  color: #111;
  font-size: 0.9rem;
  padding: 12px 28px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 3px 6px rgba(0,0,0,0.05);
  transition: background 0.2s;
}
.flat-button:hover {
  background: #ccc;
}

/* 「最新記事へ」丸型ボタン */
.circle-button-wrapper {
  margin-top: 10px;
}

.circle-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #cc6633;
  color: #fff;
  text-decoration: none;
  font-size: 0.75rem;
  text-align: center;
  line-height: 1.2;
  padding: 10px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  transition: background 0.2s;
}
.circle-button:hover {
  background: #b2552b;
}

.swiper-button-prev,
.swiper-button-next {
  color: #cc6633;
  width: 40px;
  height: 40px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

/* スライダー枠の少し外（-30px）に出す */
.swiper-button-prev {
  left: -30px;
}
.swiper-button-next {
  right: -30px;
}

/* モバイルでは内側に戻す */
@media screen and (max-width: 768px) {
  .swiper-button-prev,
  .swiper-button-next {
    width: 30px;
    height: 30px;
  }
  .swiper-button-prev {
    left: 10px;
  }
  .swiper-button-next {
    right: 10px;
  }
}



/* モバイル対応 */
@media screen and (max-width: 768px) {
  .slide-item {
    flex-direction: column;
  }
  .slide-img,
  .slide-text {
    flex: 0 0 auto;
    width: 100%;
  }
  .slide-text {
    justify-content: flex-start;
  }
  .circle-button {
    margin-left: 0;
  }
}


/* モバイル対応：中央寄せに変更 */
@media screen and (max-width: 768px) {
  .featured-button-area {
    justify-content: center;
    padding: 0;
    margin-top: 30px;
  }
}



/************************************
** 20250616　フロントページ　「おすすめ」グリッド
************************************/
/************************************
** 「おすすめ」セクション（最終版）
************************************/

/* セクション全体を囲むラッパー */
.recommend-wrapper {
    /* ↓ この数値で全体の幅が決まります。小さくすると、より狭くなります。*/
    max-width: 1000px;

    /* ↓ この2行でブロック全体をページの中央に配置します */
    margin-left: auto !important;
    margin-right: auto !important;

    /* 上下の余白 */
    margin-top: 80px;
    margin-bottom: 80px;
    
    /* 左右の余白 */
    padding-left: 20px;
    padding-right: 20px;
}

/* 「おすすめ」という見出し */
.recommend {
    text-align: center; /* 見出しは左寄せに */
}
.recommend-heading {
    display: inline-block;
    font-size: 1.5rem; /* 見出しを少し小さく、上品に */
    font-weight: bold;
    color: #333;
    border-bottom: none; /* 下線を削除 */
    padding-bottom: 0;
    margin-bottom: 40px; /* 見出しとカードの間の余白 */
    line-height: 1.4;
}
.recommend-heading .sub-en {
    display: block;
    font-size: 0.8em;
    color: #aaa; /* サブタイトルをグレーに */
    letter-spacing: 1px;
    margin-top: 5px;
}

/* カードを並べるコンテナ */
.recommend-cards {
    display: flex;
    flex-direction: column; /* カードを縦に並べる */
    align-items: center; /* ← この1行で中のカードが中央に配置されます */
}

/* 個々のカード（投稿） */
.recommend-card {
    display: flex;
    align-items: center;
　 justify-content: center; /* 水平方向中央揃えを追加 */
    gap: 10%; /* 画像とテキストの間の隙間 */
    border-top: 1px solid #f0f0f0;
	padding: 25px 0px 25px 20%;
}
.recommend-card:first-child {
    border-top: none;
    padding-top: 0;
}

/* カードの画像エリア */
.recommend-card .thumbnail-link {
    width: 35%; /* ← 画像の幅を45%に縮小 */
    flex-shrink: 0;
}
.recommend-card .thumbnail-link img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}

/* カードのテキストエリア */
.recommend-card .card-text {
    width: 59%; /* ← テキストエリアの幅を49%に拡大 */
    text-align: left;
}

/* カードのタイトル */
.recommend-card h4 {
    font-size: 1.1rem; /* フォントサイズを調整 */
    margin: 0 0 25px 0;
    color: #333;
    line-height: 1.7; /* 行間を少し広げる */
    font-weight: normal; /* 太字を解除 */
}

/* VIEW MORE ボタン */
.recommend-card .view-more-button {
    display: inline-block;
    font-size: 0.8rem;
    color: #888;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 1px;
}
.recommend-card .view-more-button::after {
    content: '→';
    display: inline-block;
    margin-left: 8px;
    transition: transform 0.2s ease;
}
.recommend-card .view-more-button:hover::after {
    transform: translateX(4px);
}

/* 不要な要素は非表示 */
.recommend-card .meta,
.recommend-card .excerpt,
.recommend-card .category-tag,
.recommend-sidebar {
    display: none;
}

/* --- スマホ表示（画面幅が768px以下）の場合のスタイル --- */
@media screen and (max-width: 768px) {
    .recommend-wrapper {
        margin: 40px auto;
        padding: 0 15px;
    }
    .recommend-heading {
        margin-bottom: 30px;
    }
    .recommend-cards {
        gap: 0; /* スマホではカード間の余白をなくす */
    }
    .recommend-card {
        flex-direction: column;
        border: none;
        border-top: none;
        padding: 0;
        margin-bottom: 40px;
        gap: 0;
    }
    .recommend-card .thumbnail-link,
    .recommend-card .card-text {
        width: 100%;
    }
    .recommend-card .card-text {
        padding: 20px 0 0 0; /* 画像との間に少し余白 */
        text-align: left; /* スマホでも左寄せに */
    }
    .recommend-card h4 {
        font-size: 1rem;
        margin-bottom: 15px;
    }
}
/************************************
** 20250628　フロントページ　「バナー」
************************************/
.section-banner {
  width: 100vw;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.section-banner img {
  width: 100%;
  height: auto !important;
  object-fit: cover;
  max-height: 700px;
  display: block;
  border-radius: 0; /* フチ丸め解除（好みに応じて） */
  box-shadow: none; /* 影を消す場合 */
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
  .section-banner img {
    max-height: none;
    height: auto;
    width: 100%;
    border-radius: 0;
  }
}




/************************************
** 20250616　フロントページ　「カテゴリ」
************************************/

.category-section {
  padding: 60px 20px 40px;
  background: #fdf7f0;
  text-align: center;
}

.category-heading {
  display: inline-block;
  font-size: 1.8rem;
  font-weight: bold;
  color: #333;
  border-bottom: 2px solid #cc6633;
  padding-bottom: 0.3em;
  margin-bottom: 40px;
  line-height: 1.4;
}

.category-heading .sub-en {
  display: block;
  font-size: 0.85em;
  color: #cc6633;
  letter-spacing: 1px;
  font-weight: normal;
  margin-top: 0.2em;
}

.category-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.category-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.category-image {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.category-card h4 {
  font-size: 1.2rem;
  color: #cc6633;
  margin-bottom: 5px;
}

.category-card p {
  font-size: 0.95rem;
  color: #444;
  margin: 0;
}

/* モバイル対応 */
@media screen and (max-width: 767px) {
  .category-image {
    width: 80px;
    height: 80px;
  }
  .category-card h4 {
    font-size: 1.05rem;
  }
  .category-card p {
    font-size: 0.9rem;
  }
}



/* =================================================================
   カテゴリーページのデザイン（新レイアウト版）
   ================================================================= */

/* --- 1. カテゴリーヘッダー --- */
.category-page-header{padding:60px 30px;background-color:#f5f5f5;background-size:cover;background-position:center;color:#333;text-align:center;margin-bottom:50px;border-bottom:1px solid #eee}.category-header-content{max-width:800px;margin:0 auto}.category-title{font-size:2.5rem;margin:0 0 15px 0}.category-description{font-size:1rem;line-height:1.8}
.category-trivia .category-page-header{background-image:url(http://umeshunavi.com/wp-content/uploads/2025/07/bccef22cf20cb0c3b8b2e454d6f667ba.jpg);color:#fff;text-shadow:1px 1px 5px rgba(0,0,0,.4)}

/* --- 2. ページ全体のコンテナ --- */
.category .main-in {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 50px;
}

/* --- 3. 最新記事1件のヒーロー表示 --- */
.category-latest-post { margin-bottom: 60px; }
.latest-post-card { display: block; position: relative; text-decoration: none; color: white; }
.latest-post-card .card-thumbnail img { width: 100%; height: 500px; object-fit: cover; display: block; border-radius: 12px; }
.latest-post-card::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 12px; background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%); z-index: 2; }
.latest-post-card .card-content { position: absolute; bottom: 30px; left: 30px; right: 30px; z-index: 3; }
.latest-post-card .card-title { font-size: 2.2rem; line-height: 1.4; font-weight: bold; text-shadow: 1px 1px 5px rgba(0,0,0,0.5); }

/* --- 4. 記事グリッド（PC） --- */
.category-post-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}
.list-post-card { display: block; position: relative; text-decoration: none; color: white; }
.list-post-card .card-thumbnail img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; display: block; border-radius: 12px; }
.list-post-card::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 12px; background: rgba(0,0,0,0.3); transition: background-color 0.3s; }
.list-post-card:hover::after { background: rgba(0,0,0,0.5); }
.list-post-card .card-content { position: absolute; bottom: 20px; left: 20px; right: 20px; z-index: 2; }
.list-post-card .card-title { font-size: 1.1rem; line-height: 1.5; font-weight: bold; }

/* --- 5. MOREボタン --- */
.category-more-button { text-align: right; margin-top: 40px; }
.btn-more { display: inline-block; padding: 12px 40px; background: #333; color: #fff; text-decoration: none; border-radius: 5px; font-weight: bold; }

/* =================================================
   スマホ表示（768px以下）
   ================================================= */
@media screen and (max-width: 768px) {
    /* 最新記事 */
    .latest-post-card .card-thumbnail img { height: 300px; }
    .latest-post-card .card-title { font-size: 1.5rem; }
    .latest-post-card .card-content { bottom: 20px; left: 20px; right: 20px; }
    
    /* 記事一覧をジグザグレイアウトに */
    .category-post-list {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }
    .list-post-card {
        display: flex;
        align-items: center;
        gap: 15px;
        color: #333; /* 文字色を黒に */
    }
    .list-post-card::after { display: none; } /* グラデーションを非表示に */
    .list-post-card:nth-child(even) { flex-direction: row-reverse; }
    .list-post-card .card-thumbnail { width: 40%; flex-shrink: 0; }
    .list-post-card .card-thumbnail img { aspect-ratio: 1/1; }
    .list-post-card .card-content { position: static; width: 60%; }
    .list-post-card .card-title { font-size: 1rem; color: #333; }
    
    /* MOREボタン */
    .category-more-button { text-align: center; }
}




/* =================================================================
   梅酒診断ページ専用スタイル（新デザイン）
   ================================================================= */

/* --- ページ全体のレイアウト調整 --- */
.page-diagnose #main {
    padding: 0 !important; /* ページ全体の余白をなくす */
    background-color: #fdfaf6;
    /* 背景に画像を敷く（お好みの画像のURLに変更してください） */
    background-image: url(http://umeshunavi.com/wp-content/uploads/2024/05/drink2.jpg);
    background-size: cover;
    background-position: center;
}

/* --- 診断コンテンツのコンテナ（すりガラス風カード） --- */
#diagnose-container {
    max-width: 600px;
    margin: 100px auto; /* 上下の余白 */
    padding: 50px;
    border-radius: 16px;
    
    /* すりガラス効果 */
    background-color: rgba(255, 255, 255, 0.65); /* 半透明の白 */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.diagnose-title {
    font-size: 1.8rem;
    text-align: center;
    color: #333;
    margin: 0 0 40px 0;
    font-family: 'Shippori Mincho', serif;
}

/* --- 質問と回答の表示スタイル --- */
#question-container p {
    background-color: transparent; /* 質問の背景をなくす */
    padding: 0;
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.7;
    margin: 0 0 30px 0;
    font-weight: bold;
}
#question-container button {
    display: block;
    width: 100%;
    padding: 16px;
    margin: 10px 0;
    font-size: 1rem;
    font-weight: bold;
    
    color: #8c6d3f; /* ブランドカラー */
    background-color: transparent; /* 背景を透明に */
    border: 2px solid #8c6d3f; /* ブランドカラーの枠線 */
    
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}
#question-container button:hover {
    background-color: #8c6d3f; /* ホバー時に背景色を塗る */
    color: #fff; /* ホバー時に文字色を白に */
}

/* --- 最終結果の表示スタイル --- */
#question-container .result-title {
    font-size: 1rem;
    color: #888;
}
#question-container .result-name {
    font-size: 2rem;
    font-weight: bold;
    color: #8c6d3f;
    margin: 10px 0 30px 0;
    border-bottom: 2px solid #8c6d3f;
    padding-bottom: 15px;
}

/* --- スマホ表示の調整 --- */
@media screen and (max-width: 768px) {
    #diagnose-container {
        margin: 40px 15px;
        padding: 30px 25px;
    }
    .diagnose-title {
        font-size: 1.5rem;
    }
    #question-container p {
        font-size: 1.1rem;
    }
}

