/*
Theme Name: Cocoon Child
Template: cocoon-master
Version: 1.0.0
*/

@charset "UTF-8";

/************************************
** 共通
************************************/

.site-name-text {
  font-family: 'Klee One', cursive;
  font-weight: 1000;
}

/* 固定ページの投稿日・更新日を消す */
.page .post-date,
.page .post-update,
.page .date-tags {
  display: none;
}

/************************************
** 競馬カード
************************************/

.keiba-card {
  background: #f5f5f7;
  border-radius: 16px;
  padding: 24px;
  margin-top: 30px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  display: flow-root;
  width: 100%;
}

.keiba-header {
  border-bottom: 1px solid #f3c6d3;
  padding-bottom: 12px;
  margin-bottom: 18px;
}

.keiba-header .date {
  font-size: 13px;
  color: #999;
}

.keiba-header .race {
  font-size: 20px;
  font-weight: 700;
  margin-top: 5px;
}

/* 予想 */
.keiba-yosou {
  display: flex;
  gap: 20px;
  margin-top: 15px;
  margin-bottom: 20px;
}

.keiba-yosou > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #fff;
  padding: 14px;
  border-radius: 12px;
  font-size: 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  min-height: 140px;
}

.keiba-yosou .honmei {
  color: black;
  font-weight: bold;
  border: 2px solid #e91e63;
}

.keiba-yosou .taikou {
  color: black;
  font-weight: bold;
  border: 2px solid yellowgreen;
}

.keiba-yosou .tanana {
  color: black;
  font-weight: bold;
  border: 2px solid blueviolet;
}

.jockey {
  margin-top: 10px;
  padding: 8px;
  background: #f7f7f7;
  border-radius: 10px;
  font-size: 0.9em;
  color: #555;
}

/* 買い目 */
.keiba-kaime {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.kaime-label {
  font-size: 12px;
  color: #999;
  margin-bottom: 2px;
}

.kaime-inner {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.kaime-left {
  min-width: 80px;
  border-right: 2px solid #f0f0f0;
  padding-right: 16px;
}

.kaime-right {
  flex: 1;
}

.kaime-row {
  font-size: 14px;
  margin-bottom: 6px;
}

.kaime-row span {
  font-weight: 700;
}

.kaime-free {
  margin-top: 10px;
  font-size: 0.9em;
  color: #777;
}

.kaime-type {
  font-weight: 800;
  font-size: 18px;
  margin: 15px 0;
  color: #7b61ff;
}

.kaime-type.type-sanrentan {
  color: #ff4d4d;
}

.kaime-type.type-sanrenpuku {
  color: #6f5cff;
}

.kaime-type.type-umaren {
  color: #00a86b;
}

.kaime-type.type-wide {
  color: #f39c12;
}

.kaime-flip {
  position: relative;
  padding-left: 15px;
  margin: 20px 0;
  border-left: none;
}

/* コメント */
.keiba-comment {
  margin-top: 20px;
  padding: 15px;
  background: #fff;
  border-radius: 10px;
  line-height: 1.7;
}

/* 結果 */
.keiba-result {
  margin-top: 20px;
  padding: 15px;
  background: #f8f8f8;
  border-radius: 10px;
}

.keiba-result strong {
  display: block;
  margin-bottom: 10px;
}

.keiba-hit {
  display: inline-block;
  margin-top: 10px;
  padding: 5px 12px;
  background: #ff4081;
  color: #fff;
  border-radius: 20px;
  font-size: 13px;
  font-weight: bold;
}

/* 投稿内画像 */
.keiba-post-image {
  display: block;
  width: 100%;
  max-width: 900px;
  height: auto;
  margin: 24px auto;
  border-radius: 8px;
}

/************************************
** アーカイブ・ブログ一覧
************************************/

.archive .sidebar,
.blog .sidebar {
  display: none !important;
}

.archive .content,
.blog .content {
  width: 100% !important;
}

.archive .main,
.blog .main {
  max-width: 900px;
  margin: 0 auto;
}

/************************************
** KAZ-UMA HOME
************************************/

.kaz-home {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 auto !important;
  box-shadow: none !important;
  border: none !important;
}

/* トップページだけCocoonの白い外枠を消す */
.home.page .content,
.home.page .main,
.home.page .article,
.home.page .entry-content {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

.home.page .main,
.home.page .entry-content {
  padding-top: 0 !important;
}

/* ヒーロー */
.kaz-hero {
  position: relative;
  height: 85vh;
  min-height: 500px;
  margin-top: 0 !important;

  background-image: url("http://kaz-uma.com/wp-content/uploads/2026/05/keibaPAUI1760_TP_V.jpg");
  background-size: cover;
  background-position: center;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 20px;
  overflow: hidden;
}

/* 暗幕 */
.kaz-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.28);
  z-index: 1;
}

/* ヒーロー中身 */
.kaz-hero-content {
  position: relative !important;
  z-index: 20 !important;

  width: 100%;
  max-width: 1000px;
  padding: 20px;

  text-align: center;
  color: #fff;

  transform: translateY(-10px);
}

.kaz-subtitle {
  display: inline-block;
  margin-bottom: 18px;
  padding: 0 18px;

  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.28em;

  color: rgba(255,255,255,0.9);
  text-transform: uppercase;
  position: relative;
}

.kaz-subtitle::before,
.kaz-subtitle::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 42px;
  height: 1px;
  background: rgba(255,255,255,0.65);
}

.kaz-subtitle::before {
  right: 100%;
}

.kaz-subtitle::after {
  left: 100%;
}

.kaz-hero h1 {
  font-size: 52px;
  line-height: 1.4;
  margin: 0 auto 24px;
  color: #fff;
  text-align: center;
}

.kaz-text {
  font-size: 18px;
  line-height: 2;
  margin-bottom: 36px;
}

/* ボタン */
.kaz-buttons {
  display: flex !important;
  gap: 24px !important;
  justify-content: center !important;
  align-items: center !important;
}

.kaz-buttons .kaz-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;

  width: 300px;
  height: 88px;
  box-sizing: border-box;
  white-space: nowrap;

  border-radius: 999px;

  text-decoration: none !important;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;

  opacity: 1 !important;
  visibility: visible !important;

  transition:
    transform 0.25s ease,
    background 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
}

.kaz-buttons .kaz-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  opacity: 1;
}

.kaz-buttons .kaz-btn.main {
  background: #fff !important;
  color: #222 !important;
}

.kaz-buttons .kaz-btn.main:hover {
  background: #f5f5f5 !important;
}

.kaz-buttons .kaz-btn.sub {
  background: rgba(255,255,255,0.08) !important;
  color: #fff !important;
  border: 1.5px solid #fff !important;
}

.kaz-buttons .kaz-btn.sub:hover {
  background: rgba(255,255,255,0.18) !important;
}

/* 右上の馬アイコン */
.kaz-profile-link {
  position: absolute;
  top: 48px;
  right: 80px;
  z-index: 30;
  display: inline-block;
  text-decoration: none;
}

.kaz-horse-icon {
  width: 72px;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.kaz-profile-link:hover .kaz-horse-icon {
  transform: scale(1.08);
}

/* ホバー文字 */
.kaz-profile-hover {
  position: absolute;
  top: 86px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);

  background: transparent !important;
  color: #fff !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;

  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;

  opacity: 0;
  visibility: hidden;

  transition: all 0.35s ease;
}

.kaz-profile-link:hover .kaz-profile-hover {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* 手書きメモ */
.kaz-note {
  position: absolute;
  right: 270px;
  bottom: -80px;
  width: 180px;

  transform: rotate(-8deg);
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.25));

  z-index: 25;
}

/************************************
** Latest Archive
************************************/

.kaz-latest {
  margin-top: 90px;
}

.kaz-latest h2 {
  text-align: center;
  font-size: 30px;
  font-weight: 300;
  letter-spacing: 0.14em;
  margin-bottom: 50px;
}

.kaz-latest .new-entry-cards {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.kaz-latest .a-wrap {
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  transition:
    transform 0.35s ease,
    opacity 0.35s ease;
}

.kaz-latest .a-wrap:hover {
  transform: translateY(-8px);
  opacity: 0.92;
}

.kaz-latest .new-entry-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 22px;
  background: #ddd;
}

.kaz-latest .new-entry-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.kaz-latest .a-wrap:hover img {
  transform: scale(1.04);
}

.kaz-latest .new-entry-card-content {
  display: block !important;
  margin-top: 16px;
}

.kaz-latest .new-entry-card-title {
  display: block !important;
  margin-top: 16px;
  padding: 0 10px;

  text-align: center;
  font-size: 16px;
  line-height: 1.8;
  color: #222 !important;
  font-weight: 500;
}

.kaz-latest .new-entry-card-date,
.kaz-latest .new-entry-card-snippet {
  display: none;
}

/************************************
** KAZ-UMA プロフィールページ
************************************/

.kazuma-profile {
  max-width: 760px;
  margin: 60px auto;
  padding: 40px 28px;
  background: #fffdf8;
  color: #2b2b2b;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  line-height: 2.3;
  letter-spacing: 0.04em;
}

.kazuma-header {
  margin-bottom: 60px;
  border-left: 4px solid #8b0000;
  padding-left: 18px;
}

.kazuma-header h1 {
  font-size: 2rem;
  margin-bottom: 12px;
  font-weight: normal;
  color: #1f1f1f;
}

.kazuma-sub {
  font-size: 0.95rem;
  color: #777;
  margin: 0;
}

.kazuma-body p {
  margin: 0 0 34px;
  font-size: 1.05rem;
}

.kazuma-line {
  width: 60px;
  height: 1px;
  background: #999;
  margin: 50px auto;
}

.kazuma-quote {
  margin: 60px 0;
  padding: 28px;
  background: #f5f1e8;
  border-left: 3px solid #8b0000;
  font-size: 1.08rem;
}

.kazuma-end {
  margin-top: 50px;
  color: #555;
}

/************************************
** 新聞風コラムBOX
************************************/

.keiba-column {
  border: 1px solid #222;
  background: #f4f1e8;
  padding: 28px;
  margin: 30px 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  line-height: 2.1;
  color: #222;
  position: relative;
}

.keiba-column::before {
  content: "COLUMN";
  position: absolute;
  top: -12px;
  left: 16px;
  background: #222;
  color: #fff;
  font-size: 11px;
  letter-spacing: 2px;
  padding: 4px 10px;
  font-family: sans-serif;
}

.keiba-column h2 {
  font-size: 26px;
  border-bottom: 2px solid #222;
  padding-bottom: 10px;
  margin-bottom: 24px;
  line-height: 1.5;
  background: transparent;
}

.keiba-column p {
  margin-bottom: 18px;
  text-align: justify;
  background: transparent !important;
  padding: 0;
}

.keiba-column .quote {
  border-left: 4px solid #555;
  padding-left: 14px;
  margin: 24px 0;
  color: #444;
  font-style: italic;
  background: transparent !important;
}

.keiba-column a {
  word-break: break-all;
  color: #222;
}

/************************************
** スマホ調整
************************************/

@media (max-width: 768px) {

  .keiba-yosou {
    display: block !important;
  }

  .keiba-yosou > * {
    width: 100% !important;
    margin-bottom: 16px;
  }

  .wp-block-cover {
    height: auto !important;
    min-height: 60vh !important;
    padding: 80px 20px !important;
  }

  .enter-btn a {
    font-size: 10px;
    padding: 14px 30px;
  }

  .hero-content {
    transform: translateY(80px) !important;
    margin-top: 40px !important;
  }

  .kaz-hero {
    height: 70vh;
    border-radius: 0;
  }

  .kaz-hero h1 {
    font-size: 34px;
  }

  .kaz-text {
    font-size: 15px;
    line-height: 1.8;
  }

  .kaz-buttons {
    flex-direction: column;
    gap: 16px !important;
  }

  .kaz-buttons .kaz-btn {
    width: 280px;
    height: 50px;
  }

  .kaz-profile-link {
    top: 18px;
    right: 20px;
  }

  .kaz-horse-icon {
    width: 58px;
  }

  .kaz-profile-hover {
    top: 66px;
    font-size: 12px;
    letter-spacing: 0.08em;
  }

  .kaz-note {
    right: 12px !important;
    top: 100px !important;
    bottom: auto !important;
    width: 92px !important;
    transform: rotate(-8deg);
    z-index: 25;
  }

  .kaz-latest .new-entry-cards {
    grid-template-columns: 1fr;
  }

  .kaz-latest .new-entry-card-thumb img {
    height: 240px;
  }

  .kazuma-profile {
    padding: 28px 20px;
    margin: 30px auto;
    line-height: 2.1;
  }

  .kazuma-header h1 {
    font-size: 1.6rem;
  }

  .kazuma-body p {
    font-size: 1rem;
  }

  .kazuma-quote {
    padding: 22px;
  }
}

.kaz-note {
  right:60px !important;
  bottom: 50px !important;
  width: 150px !important;
  z-index: 30 !important;
}

@media (max-width: 768px) {
  .kaz-note {
    right: 18px !important;
    top: auto !important;
    bottom: 100px !important;
    width: 92px !important;
  }
}

/* =========================
   HOME ボタン
========================= */

.kaz-buttons {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

.kaz-buttons .kaz-btn {
  display: inline-flex !important;

  align-items: center !important;
  justify-content: center !important;

  width: 300px;
  height: 72px;

  padding: 0 !important;
  line-height: 1 !important;

  border-radius: 999px;

  text-decoration: none !important;

  font-size: 18px;
  font-weight: 700;

  transition:
    transform 0.25s ease,
    background 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
}

/* 白ボタン */

.kaz-buttons .kaz-btn-main {
  background: #fff;
  color: #222;
}

.kaz-buttons .kaz-btn-main:hover {
  background: #f5f5f5;
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

/* 黒ボタン */

.kaz-buttons .kaz-btn-sub {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1.5px solid #fff;
}

.kaz-buttons .kaz-btn-sub:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

/* =========================
   スマホ
========================= */

@media (max-width: 768px) {

  .kaz-buttons {
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
  }

  .kaz-buttons .kaz-btn {
    width: 260px;
    height: 58px;

    font-size: 16px;
  }

}