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

/************************************
** Wagashi x Investment Fusion Design
************************************/

:root {
  /* Color Palette - Wagashi & Investment */
  --color-main: #132338;
  /* Kachiiro - Victory Blue */
  --color-sub: #4d6411;
  /* Matcha - Deep Green */
  --color-accent: #e6b422;
  /* Kindei - Muted Gold */
  --color-bg: #fbfaf5;
  /* Kinari - Off White */
  --color-text: #333333;
  /* Sumi - Dark Gray */
  --color-chart-bg: #0f1215;
  /* lacquer-ware black for charts */

  /* Typography */
  --font-jp-serif: "Zen Old Mincho", serif;
  --font-jp-sans: "Noto Sans JP", sans-serif;
  --font-en-serif: "Cormorant Garamond", serif;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-jp-sans);
  background-image:
    radial-gradient(#e5e5e5 1px, transparent 1px),
    radial-gradient(#e5e5e5 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
}

/* Header */
#header {
  background-color: rgba(255, 255, 255, 0.9);
  border-bottom: 2px solid var(--color-main);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(5px);
}

.site-name-text {
  font-family: var(--font-jp-serif);
  color: var(--color-main);
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-jp-serif);
  color: var(--color-main);
  letter-spacing: 0.05em;
}

/* Main Content Area */
.main,
.sidebar {
  background-color: transparent;
}

/* Adjust Content Width (Wagashi Style - Generous Spacing) */
/* Override default max-width for PC */
@media screen and (min-width: 1024px) {

  /* Increase container width */
  .wrap {
    width: 1280px;
    max-width: 95%;
    margin: 0 auto;
  }

  /* Main column width */
  .main {
    width: 930px;
    /* Increased to fill the reduced gap */
    float: left;
    margin-right: 20px;
    /* Reduced from 30px */
  }

  /* Sidebar width */
  .sidebar {
    width: 330px;
    float: right;
  }
}

/* Entry Cards (Wagashi Tray Style) */
.entry-card-wrap {
  background-color: #fff;
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
  overflow: hidden;
  margin-bottom: 30px;
}

.entry-card-wrap:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.entry-card-title {
  font-family: var(--font-jp-serif);
  font-weight: 700;
  color: var(--color-main);
}

/* Category Label (Modest & Traditional) */
.cat-label {
  background-color: var(--color-sub);
  color: #fff;
  border-radius: 4px;
  font-family: var(--font-jp-serif);
  font-size: 0.8em;
  padding: 3px 10px;
}

/* Buttons */
.btn-wrap a,
input[type="submit"] {
  background: linear-gradient(135deg, var(--color-main), #1e3a5f);
  border: none;
  border-radius: 4px;
  font-family: var(--font-en-serif);
  letter-spacing: 0.1em;
  transition: opacity 0.3s;
}

.btn-wrap a:hover,
input[type="submit"]:hover {
  opacity: 0.9;
  box-shadow: 0 0 15px rgba(19, 35, 56, 0.4);
}

/* Code Blocks (Urushi / Lacquer Style) */
pre.wp-block-code {
  background-color: var(--color-chart-bg);
  border-left: 4px solid var(--color-accent);
  border-radius: 4px;
  color: #f1f1f1;
  font-family: "Consolas", "Monaco", monospace;
}

/* Footer */
.footer {
  background-color: var(--color-main);
  color: #fff;
}

/*ヘッダー背景透明化*/
#header:after {
  background-color: transparent;
}

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

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

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

/************************************
****　インデックス
************************************/
a.entry-card-wrap.a-wrap.border-element.cf {
  /*カード本体*/
  padding: 0 0 .5em;
  border-radius: 10px;
  width: 48%;
  margin-bottom: 2em;
}

figure.entry-card-thumb.card-thumb.e-card-thumb {
  /*サムネイル大きさ*/
  max-height: 200px;
  border-radius: 10px 10px 0 0/ 10px 10px 0 0;
  overflow: hidden;
  display: flex;
  /*位置をflexで中心に*/
  justify-content: center;
  align-items: center;
}

.e-card-thumb .cat-label {
  /*カテゴリラベルを右に寄せる*/
  margin-left: .8em;
}

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

  /*サムネイル大きさ*/
  figure.entry-card-thumb.card-thumb.e-card-thumb {
    max-height: 120px;
  }
}

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

  /*サムネイル大きさ*/
  figure.entry-card-thumb.card-thumb.e-card-thumb {
    max-height: 180px;
  }
}

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

  /*サムネイル大きさ*/
  figure.entry-card-thumb.card-thumb.e-card-thumb {
    max-height: 160px;
  }
}

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

  /*サムネイル大きさ*/
  figure.entry-card-thumb.card-thumb.e-card-thumb {
    max-height: 130px;
  }
}

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

  /*サムネイル大きさ*/
  figure.entry-card-thumb.card-thumb.e-card-thumb {
    max-height: 250px;
  }

  a.entry-card-wrap.a-wrap.border-element.cf {
    /*画面幅600pxまで、1カラムにする*/
    margin: .5em 1em !important;
  }

  .ect-vertical-card .entry-card-wrap {
    width: 95% !important;
  }
}

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

  /*カード本体*/
  a.entry-card-wrap.a-wrap.border-element.cf {
    margin: .5em 1em !important;
    border-radius: 10px;
  }

  .e-card-thumb .cat-label {
    /*カテゴリラベルを右に寄せる*/
    margin-left: 1em;
  }
}

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

  /*画面幅1023未満はカード本体に影を表示*/
  div#list a {
    box-shadow: 0px 1px 5px 0 rgba(0, 0, 0, .2);
  }
}

@media screen and (min-width: 601px) and (max-width: 834px) {

  /*通常記事本文の周囲の空白にも影響している*/
  div#content.content.cf {
    margin: 1em;
  }
}

h2.entry-card-title.card-title.e-card-title {
  /*カードタイトル*/
  font-size: 0px;
  /*標準　18px*/
  color: #7b7b7b;
  font-weight: bold;
  text-align: center;
  line-height: 1.8em;
  margin-top: 3em;
  margin-bottom: 1em;
  padding: 0 1.5em 0;
}

.entry-card-snippet.card-snippet.e-card-snippet {
  /*スニペット*/
  font-size: 14px;
  color: #7b7b7b;
  text-align: center;
  border-top: 3px dotted #90C31F;
  line-height: 1.8em;
  padding-top: 0.6em;
  margin-left: 2em;
  margin-right: 2em;
  margin-bottom: 4em;
  max-height: 20em;
}

@media (max-width:834px) {
  h2.entry-card-title.card-title.e-card-title {
    /*カードタイトル*/
    font-size: 0em;
    /*標準 1.15em*/
    font-weight: bold;
    line-height: 1.7em;
    padding: 1.5em .8em 1em;
    margin: 0;
  }

  .entry-card-snippet.card-snippet.e-card-snippet {
    /*スニペット*/
    font-size: 13px;
    text-align: center;
    border-top: 3px dotted #79c06e;
    line-height: 1.8em;
    padding: 1em 0.5em 0;
    margin: 0 1em 1.5em;
  }

  main.main,
  div.sidebar {
    /*モバイル表示などの本文全体の周りの空白にも影響している*/
    padding: 0;
  }
}

a.entry-card-wrap.a-wrap.border-element.cf .post-date,
a.entry-card-wrap.a-wrap.border-element.cf .post-update {
  /*日付・更新日*/
  margin-right: 1.5em !important;
  color: #7b7b7b;
  font-size: .86em;
}

.eye-catch .cat-label,
.cat-label {
  /*カテゴリラベル全体デザイン*/
  font-size: .7em;
  border-radius: 10px;
  margin: 0.5em;
  padding: 0 0.5em 0;
  background-color: #e9546b;
  /*#90C31F;*/
  color: #fff;
}

div.admin-pv {
  /*閲覧数を非表示*/
  display: none;
}