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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/* ============================
   LP復旧用カスタマイズ
   ============================ */

/* カラースキーム */
:root {
  --lp-accent: #b28225;   /* メインカラー（ゴールド系） */
  --lp-sub: #707593;      /* サブカラー（グレー系） */
}

/* 共通ボタンスタイル */
.wp-block-button__link,
a.button-accent {
  background: var(--lp-accent);
  color: #fff !important;
  border-radius: 8px;
  padding: 0.8em 1.5em;
  font-weight: bold;
  text-decoration: none;
}
.wp-block-button__link:hover {
  opacity: 0.85;
}

/* 見出し（h2セクションタイトル風） */
.entry-content h2 {
  border-left: 4px solid var(--lp-accent);
  background: #f7f7f7;
  padding: 0.5em 0.8em;
  font-size: 1.5em;
  margin: 1.5em 0 1em;
}

/* ロゴ（ヘッダー用） */
.header .site-logo img {
  height: 55px;
  width: auto;
}
@media (min-width: 1024px) {
  .header .site-logo img {
    height: 111px;
  }
}

/* FAQのdetailsタグデザイン */
details {
  margin: 1em 0;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 0.8em;
  background: #fff;
}
details summary {
  cursor: pointer;
  font-weight: bold;
  color: var(--lp-accent);
}
details[open] {
  background: #fafafa;
}

/* ヒーローセクションの装飾 */
.hero {
  background: #f7f7f7;
  padding: 6em 1em;
  text-align: center;
}
.hero h1 {
  color: var(--lp-accent);
  font-size: 2.5em;
  margin-bottom: 0.5em;
}
.hero p {
  font-size: 1.2em;
  margin-bottom: 1em;
}


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

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

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


/* ===== フッター（全幅の器＋中身中央） ===== */
#footer.footer-container { max-width:100%; width:100%; margin:0; padding:20px 0; box-sizing:border-box; }
#footer .wrap.cf { margin:0 auto; padding:0 20px; }

/* フッター下部の中央寄せ */
.footer-bottom-content { float:none; text-align:center; }
#navi-footer, .navi-footer { text-align:center; }
#navi-footer-in { display:inline-flex; flex-wrap:wrap; gap:16px; justify-content:center; }
.source-org.copyright { display:block; float:none; text-align:center; margin-top:12px; font-size:.9rem; opacity:.9; }

/* PCのグロナビ中央寄せ（Cocoonのfloat対策） */
@media (min-width:861px){
  #navi, .navi { float:none; text-align:center; }
  #navi .menu, #navi ul.menu, .navi-in > ul {
    display:inline-flex; justify-content:center; align-items:center;
    gap:28px; margin:0; padding:0; list-style:none;
  }
  #navi .menu > li, #navi ul.menu > li, .navi-in > ul > li { float:none; }
}

/* 右寄り・はみ出し保険 */
html { overflow-y: scroll; }
html, body { overflow-x: hidden; }

/* ヘッダー/ナビは前面 */
.site-header, header.header, #navi, .navi, .navi-in { position: relative; z-index: 10000; }

/* ===== 幅を1か所で管理 ===== */
:root{
  --container-max: 1200px;   /* 通常ページの最大幅 */
  --container-wide: 1400px;  /* 「ワイド」ページの最大幅 */
  --gutter: 20px;            /* 左右の余白 */
}

/* ===== 基本の器 ===== */
#main, .main,
#content, .content, .entry-content,
.wrap, .container {
  max-width: var(--container-max);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  box-sizing: border-box;
  float: none;
}

/* ページ設定で「ワイド」を選んだとき */
body[class*="wide"] #main,
body[class*="wide"] #content,
body[class*="wide"] .content,
body[class*="wide"] .entry-content {
  max-width: var(--container-wide);
}

/* Gutenberg フル幅対応 */
.alignfull {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}
.alignwide{
  max-width: min(100vw, calc(var(--container-wide) + 2 * var(--gutter)));
  margin-left: auto; margin-right: auto;
}

/* ===== スマホ時 ===== */
@media (max-width: 768px){
  #main, .main,
  #content, .content, .entry-content,
  .wrap, .container {
    max-width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* LPカード幅を広げる */
  .kiyomeru-lp-plus .card{
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* LP専用 container も広げる */
  .kiyomeru-lp-plus .container,
  .kiyomeru-lp-plus .section .container{
    max-width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}



/* Cocoonのヘッダー部分に出るサイトタイトルを非表示 */
.site-name-text {
  display: none !important;
}

