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

/* 色合い変更：漆喰と木の温もりをイメージした柔らかい色調 */
:root {
  --cocoon-text-color: #4a4a4a; /* 少し柔らかいグレー */
  --cocoon-pallid-text-color: #888; /* 淡いグレー */
  --cocoon-x-pallid-text-color: #aaa; /* さらに淡い */
  --cocoon-basic-border-color: #e8e8e8; /* ライトグレー */
  --cocoon-thin-color: #f0f0f0; /* 薄いグレー */
  --cocoon-x-thin-color: #f8f8f8; /* 非常に薄い */
  --cocoon-xx-thin-color: #fafafa; /* ほぼ白 */
  --cocoon-xxx-thin-color: #fdfdfd; /* 白に近い */
  --cocoon-current-background-color: #f5f5f5; /* ライトグレー背景 */
  --cocoon-select-background-color: #e8f4f8; /* 淡い青白 */
  --cocoon-tab-label-color: #f9f9f9; /* 非常に薄いグレー */
  --cocoon-tab-label-active-color: #d2b48c; /* タン（木の温もり） */
  --cocoon-box-border-color: #d2b48c; /* タン */
  --cocoon-sns-color: #8b7355; /* ブラウン（木の色） */
  /* メインカラー変更 */
  --cocoon-brown-color: #8b7355; /* 柔らかいブラウン */
  --cocoon-light-grey-color: #e8e8e8; /* ライトグレー */
  --cocoon-grey-color: #b0b0b0; /* グレー */
  --cocoon-dark-grey-color: #666666; /* ダークグレー */
  --cocoon-black-color: #333333; /* ブラック */
  --cocoon-white-color: #fefefe; /* オフホワイト（漆喰風） */
  --cocoon-watery-blue-color: #f8f8f8; /* 淡い背景 */
  --cocoon-watery-yellow-color: #fdfdf0; /* 淡いクリーム */
  --cocoon-watery-red-color: #fdf8f8; /* 淡いピンク */
  --cocoon-watery-green-color: #f8fdf8; /* 淡いグリーン */
}

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/
/* トップ画像のセンタリング修正 */
.header {
  margin: 0 auto;
}



/* =====================================================
   高崎経済大学生の取材記事 スタイル
   ===================================================== */

/* --- グリッドレイアウト --- */
.takasaki-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 24px 0;
}

/* --- カード --- */
.takasaki-article-card {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  background: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}
.takasaki-article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}
.takasaki-article-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* --- サムネイル --- */
.takasaki-card-thumb {
  width: 100%;
  padding-top: 65%;
  background-size: cover;
  background-position: center center;
  background-color: #e8d5c0;
}

/* --- カード本文 --- */
.takasaki-card-body {
  padding: 14px 16px 16px;
}
.takasaki-card-title {
  font-size: 0.95rem;
  font-weight: bold;
  margin: 0 0 6px;
  line-height: 1.5;
  color: #333;
}
.takasaki-card-date {
  font-size: 0.78rem;
  color: #888;
  margin: 0 0 6px;
}
.takasaki-card-excerpt {
  font-size: 0.82rem;
  color: #555;
  margin: 0;
  line-height: 1.6;
}

/* --- トップページ用セクション --- */
.takasaki-top-section {
  margin: 40px 0;
}
.takasaki-top-heading {
  font-size: 1.3rem;
  font-weight: bold;
  color: #8b4513;
  border-left: 4px solid #8b4513;
  padding-left: 12px;
  margin-bottom: 20px;
}

/* --- もっと見るリンク --- */
.takasaki-more-wrap {
  text-align: center;
  margin-top: 28px;
}
.takasaki-more-link {
  display: inline-block;
  padding: 10px 36px;
  background: #8b4513;
  color: #fff !important;
  border-radius: 4px;
  text-decoration: none !important;
  font-size: 0.95rem;
  font-weight: bold;
  transition: background 0.2s;
}
.takasaki-more-link:hover {
  background: #a0522d;
}

/* --- 記事なしメッセージ --- */
.takasaki-no-posts {
  text-align: center;
  color: #888;
  padding: 40px 0;
}

/* --- 一覧ページのタイトル --- */
.takasaki-articles-page-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #8b4513;
  margin-bottom: 28px;
  padding-bottom: 10px;
  border-bottom: 2px solid #8b4513;
}


/* トップページでCocoon自動目次を非表示 */
.home #toc,
.front-page #toc {
  display: none !important;
}

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

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

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

/* =====================================================
   Japanese Modern Minimalism Flat Design Overrides
   ===================================================== */

/* Google Fonts のインポート */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&family=Yu+Mincho:wght@400;500;700&display=swap');

/* 投稿ページでサムネイル（アイキャッチ）とトップ画像が重複表示される場合、重ならないようサムネイルを非表示に */
.single .eye-catch-wrap {
  display: none !important;
}

/* 全体のフォント、背景、行間調整 */
body {
  font-family: 'Noto Sans JP', sans-serif;
  background-color: #FFFFFF; /* 白背景 */
  line-height: 1.75; /* 行間調整 */
  color: #333333; /* テキスト色 */
}

/* 見出しのスタイル調整（ベタ塗り廃止、ウェイトと余白調整） */
h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
  line-height: 1.7;
  background: none;
  padding: 0;
  margin: 1.5em 0 0.5em 0;
  color: #333333;
}

/* 記事カードのレイアウト調整 */
.article, .card, .entry-card {
  border: 1px solid #E0E0E0; /* 非常に薄いボーダー */
  border-radius: 4px; /* 角丸 */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); /* 柔らかい影 */
  background: #FFFFFF;
  padding: 1.5em; /* 余白増 */
  margin-bottom: 2em; /* 余白増 */
  transition: box-shadow 0.2s ease; /* ホバー効果 */
}

.article:hover, .card:hover, .entry-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* 画像の角丸調整 */
.article img, .card img, .entry-card img, .entry-thumbnail img {
  border-radius: 4px;
}

/* セクション間の余白調整 */
.section, .content, .main, .sidebar {
  padding: 2em 0; /* 余白増 */
}

/* アクセント（茶色）を細いラインやアイコンに限定 */
.accent-line, .border-accent {
  border-color: #8b7355; /* 茶色アクセント */
}

/* ボタンやリンクのスタイル調整 */
.btn, .button, a.btn {
  border-radius: 4px;
  padding: 0.75em 1.5em;
  background: #FFFFFF;
  border: 1px solid #E0E0E0;
  color: #333333;
  transition: all 0.2s ease;
}

.btn:hover, .button:hover, a.btn:hover {
  background: #F9F9F7; /* 薄いグレー */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* レスポンシブ対応（モバイル優先） */
@media screen and (max-width: 834px) {
  .article, .card, .entry-card {
    padding: 1em;
    margin-bottom: 1.5em;
  }
  .section, .content, .main, .sidebar {
    padding: 1.5em 0;
  }
  h1, h2, h3, h4, h5, h6 {
    margin: 1.2em 0 0.4em 0;
  }
}

@media screen and (max-width: 480px) {
  .article, .card, .entry-card {
    padding: 0.75em;
    margin-bottom: 1em;
  }
  .section, .content, .main, .sidebar {
    padding: 1em 0;
  }
  h1, h2, h3, h4, h5, h6 {
    margin: 1em 0 0.25em 0;
    font-size: 1.2em; /* モバイルで少し小さく */
  }
  body {
    line-height: 1.6; /* モバイルで少し狭く */
  }
}

/* =====================================================
   Modern Typography for Header Hero Text
   ===================================================== */

/* ヒーローオーバーレイ（グラスモーフィズム風） */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 1;
}

/* ヒーローテキストコンテナ */
.hero-text {
  text-align: center;
  color: #2c2c2c; /* 濃いチャコールグレー */
  max-width: 800px;
  padding: 2rem;
  transition: transform 0.3s ease, text-shadow 0.3s ease;
}

/* メインヘッダータイトル */
.hero-title {
  font-family: 'Yu Mincho', serif; /* モダンな明朝体 */
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.05em;
  margin: 0 0 1rem 0;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.1),
    0 2px 4px rgba(0, 0, 0, 0.05),
    0 4px 8px rgba(0, 0, 0, 0.03); /* 多層シャドウで重厚感 */
  position: relative;
}

/* デボス効果（刻印風） */
.hero-title::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  color: rgba(255, 255, 255, 0.1);
  z-index: -1;
  text-shadow: none;
}

/* サブタイトル */
.hero-subtitle {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.02em;
  margin: 0;
  opacity: 0.9;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* ホバーアニメーション */
.hero-text:hover {
  transform: translateY(-5px);
}

.hero-text:hover .hero-title {
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.15),
    0 4px 8px rgba(0, 0, 0, 0.1),
    0 8px 16px rgba(0, 0, 0, 0.05);
}

/* レスポンシブ調整 */
@media screen and (max-width: 834px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .hero-text {
    padding: 1.5rem;
  }
}

@media screen and (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
    letter-spacing: 0.03em;
  }
  .hero-subtitle {
    font-size: 0.9rem;
  }
  .hero-text {
    padding: 1rem;
  }
}

/* =====================================================
   Custom Front Page Design
   ===================================================== */

/* メインコンテンツのマージン調整 */
.main {
  margin-top: 0;
}

/* ヒーローセクション */
.hero-section {
  height: auto;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('<?php echo get_header_background_image_url(); ?>') center/cover no-repeat;
  position: relative;
  overflow: hidden;
  margin-top: 0;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hero-title {
  font-family: 'Yu Mincho', serif;
  font-size: 3rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  color: #2c2c2c;
}

.hero-description {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.25rem;
  line-height: 1.6;
  margin: 0 0 2rem 0;
  color: #555;
}

.hero-cta {
  display: inline-block;
  padding: 1rem 2rem;
  background: #8b7355;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: background 0.3s ease;
}

.hero-cta:hover {
  background: #6b5a45;
}

/* 特徴セクション */
.features-section {
  padding: 2rem 0;
  background: #fff;
}

.section-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 2rem;
  font-weight: 500;
  text-align: center;
  margin: 0 0 3rem 0;
  color: #2c2c2c;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: #f9f9f9;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-card h3 {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0 0 1rem 0;
  color: #2c2c2c;
}

.feature-card p {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  color: #666;
}

/* 最新記事セクション */
.latest-posts-section {
  padding: 4rem 0;
  background: #f5f5f5;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 3rem auto;
}

.post-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.post-thumbnail {
  overflow: hidden;
}

.post-thumbnail img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-card:hover .post-thumbnail img {
  transform: scale(1.05);
}

.post-content {
  padding: 1.5rem;
}

.post-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
}

.post-title a {
  color: #2c2c2c;
  text-decoration: none;
}

.post-title a:hover {
  color: #8b7355;
}

.post-excerpt {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 1rem 0;
  color: #666;
}

.post-date {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.8rem;
  color: #999;
}

.view-all {
  text-align: center;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #8b7355;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #6b5a45;
}

/* レスポンシブ調整 */
@media screen and (max-width: 834px) {
  .hero-section {
    height: 80vh;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-description {
    font-size: 1rem;
  }
  .features-grid, .posts-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .section-title {
    font-size: 1.75rem;
  }
}

@media screen and (max-width: 480px) {
  .hero-section {
    height: 70vh;
  }
  .hero-content {
    padding: 1.5rem;
  }
  .hero-title {
    font-size: 2rem;
  }
  .hero-description {
    font-size: 0.9rem;
  }
  .features-section, .latest-posts-section {
    padding: 2rem 0;
  }
  .feature-card, .post-content {
    padding: 1rem;
  }
}

/* =====================================================
   Hide Table of Contents on About Page
   ===================================================== */

.page-id-14 .toc,
.page-id-14 .toc-wrap {
  display: none !important;
}
/* ========== HERO SLIDER ========== */
.hero { position:relative; width:100%; height:100vh; min-height:560px; overflow:hidden; background:#111; }
.hero__slide { position:absolute; inset:0; opacity:0; transition:opacity 1.8s ease-in-out; pointer-events:none; }
.hero__slide.is-active { opacity:1; pointer-events:auto; }
.hero__bg { position:absolute; inset:-10%; background-size:cover; background-position:center; will-change:transform; }
.hero__slide.is-active .hero__bg { animation:kb-zoom 9s ease-out forwards; }
.hero__slide[data-slide="1"] .hero__bg { animation-name:kb-pan-left; }
.hero__slide[data-slide="2"] .hero__bg { animation-name:kb-pan-right; }
@keyframes kb-zoom { 0%{transform:scale(1.18) translate(1.5%,1%)} 100%{transform:scale(1) translate(0,0)} }
@keyframes kb-pan-left { 0%{transform:scale(1.12) translate(-2%,-1%)} 100%{transform:scale(1.02) translate(1%,.5%)} }
@keyframes kb-pan-right { 0%{transform:scale(1.1) translate(2%,0)} 100%{transform:scale(1) translate(-1%,-.5%)} }
.hero__overlay { position:absolute; inset:0; background:linear-gradient(to right,rgba(0,0,0,.62) 0%,rgba(0,0,0,.15) 60%,rgba(0,0,0,0) 100%),linear-gradient(to top,rgba(0,0,0,.5) 0%,rgba(0,0,0,0) 50%); }
.hero__content { position:absolute; bottom:0; left:0; right:0; padding:clamp(32px,6vw,80px) clamp(28px,7vw,100px) clamp(80px,10vh,120px); color:#fff; }
.hero__eyebrow { font-family:'Cormorant Garamond',serif; font-size:clamp(11px,1.2vw,13px); font-weight:300; font-style:italic; letter-spacing:.28em; color:rgba(255,255,255,.65); opacity:0; transform:translateY(12px); transition:opacity .9s ease .3s,transform .9s ease .3s; }
.hero__title { font-family:'Noto Serif JP',serif; font-size:clamp(32px,4.5vw,62px); font-weight:300; line-height:1.5; letter-spacing:.1em; margin:14px 0 0; opacity:0; transform:translateY(22px); transition:opacity 1s ease .55s,transform 1s ease .55s; }
.hero__divider { width:0; height:1px; background:rgba(255,255,255,.5); margin:22px 0; transition:width .9s ease .75s; }
.hero__caption { font-family:'Noto Serif JP',serif; font-size:clamp(12px,1.4vw,15px); font-weight:300; letter-spacing:.2em; color:rgba(255,255,255,.72); opacity:0; transform:translateY(12px); transition:opacity .8s ease .9s,transform .8s ease .9s; }
.hero__slide.is-active .hero__eyebrow,.hero__slide.is-active .hero__title,.hero__slide.is-active .hero__caption { opacity:1; transform:translateY(0); }
.hero__slide.is-active .hero__divider { width:48px; }
.hero__counter { position:absolute; right:clamp(20px,4vw,56px); bottom:clamp(80px,10vh,120px); color:rgba(255,255,255,.45); font-family:'Cormorant Garamond',serif; font-size:13px; font-weight:300; letter-spacing:.1em; display:flex; flex-direction:column; align-items:flex-end; gap:4px; z-index:20; }
.hero__counter-current { font-size:28px; color:rgba(255,255,255,.85); line-height:1; }
.hero__counter-sep { width:20px; height:1px; background:rgba(255,255,255,.35); margin:2px 0; }
.hero__dots { position:absolute; right:clamp(20px,4vw,56px); top:50%; transform:translateY(-50%); display:flex; flex-direction:column; gap:14px; z-index:20; }
.hero__dot { position:relative; width:5px; height:5px; border-radius:50%; background:rgba(255,255,255,.35); cursor:pointer; transition:background .3s; }
.hero__dot::before { content:''; position:absolute; inset:-6px; border-radius:50%; border:1px solid transparent; transition:border-color .3s; }
.hero__dot.is-active { background:rgba(255,255,255,.9); }
.hero__dot.is-active::before { border-color:rgba(255,255,255,.5); }
.hero__progress { position:absolute; bottom:0; left:0; height:2px; width:0%; background:rgba(255,255,255,.75); z-index:20; }
.hero__scroll { position:absolute; bottom:28px; left:50%; transform:translateX(-50%); display:flex; flex-direction:column; align-items:center; gap:8px; z-index:20; opacity:.55; }
.hero__scroll span { font-family:'Cormorant Garamond',serif; font-size:10px; letter-spacing:.25em; color:#fff; text-transform:uppercase; }
.hero__scroll-line { width:1px; height:36px; background:rgba(255,255,255,.5); animation:scroll-pulse 2.2s ease-in-out infinite; transform-origin:top; }
@keyframes scroll-pulse { 0%,100%{transform:scaleY(1);opacity:.5} 50%{transform:scaleY(.4);opacity:1} }
@media(max-width:768px){ .hero__dots{display:none} .hero__content{padding-bottom:80px} }
```