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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

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

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

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

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}
/* 目次全体デザイン */
.toc{
	background:#F9F9F9; /* 目次全体の背景色を変える場合はここを変更 */
	border:none;
	display:block;
	border-top:5px solid;
	border-top-color:#FFA726;
	box-shadow: 0 2px 2px rgba(0,0,0,0.2);
	padding: 20px 25px;
}
/* 目次の文字指定 */
.toc-title {
	text-align:left;
	margin: 0 20px 20px -10px;
	padding-left: -20px;
	font-size: 23px;
        font-weight: 700;
	color: #43A047; /* 目次の文字色を変える場合はここを変更 */
}
/* 目次のアイコン設定 */
.toc-title:before {
	top: 0;
        left: -45px;
        width: 50px;
        height: 50px;
	font-family: FontAwesome;
	content : "\f0ca"; /* アイコンを変える場合はここを変更 */
	font-size:20px;
	margin-right:5px;
	color:#ffffff; /* アイコンの色を変える場合はここを変更 */
	background-color:#FFA726; /* アイコンの背景色を変える場合はここを変更 */
	border-radius: 50%;
	-webkit-border-radius: 50%;
 	-moz-border-radius: 50%;
	padding:14px;
}
/* 目次のデザインカスタマイズ */
.toc-content ol {
  	padding: 0 0.5em;
  	position: relative;
}
.toc-content ol li {
  	line-height: 1.5;
  	padding: 0.7em 0 0.5em 1.4em;
  	border-bottom: dashed 1px silver;
  	list-style-type: none!important;
}

/* 目次の各節の先頭にあるアイコンを設定 */
.toc-content ol li:before {
  	font-family: FontAwesome;
  	content: "\f138"; /* アイコンを変える場合はここを変更 */
  	position: absolute;
  	left : 0.5em;
  	color: #FFB74D; /* 色を変える場合はここを変更 */
}
.toc-content ol li:last-of-type {
	border-bottom: none;
}
.toc-content .toc-list li {
	font-weight:700; /* h2のみ太文字に */
}
.toc-content .toc-list li li {
	font-weight:normal; /* h3以降の文字サイズを普通に */
}
/************************************
** プロフィール-サイドバー
************************************/
.sidebar .widget_author_box {
  background: #fff;
  padding-top: 1.2em;
  border-radius: 3px 3px 0 0;
  max-width: 360px;
  margin: 0 auto;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .2);
}
.sidebar .author-box {
  padding: 120px 0 0;
  border: none;
  position: relative;
  margin: 0 0 3em;
  max-width: 100%;
  overflow:hidden;
}
.sidebar .author-content {
background-image: linear-gradient(to right, #868f96 0%, #596164 100%);
  border-radius: 200px 200px 0px 0px / 100px 100px 0px 0px;
  color: #fff;
  padding: 20px;
  width:110%;
  margin-left:-5% !important;
}
.sidebar .author-box .author-name a {
  color: #42ace7;
  text-decoration: none;
  letter-spacing: 1px;
  font-size: 18px;
}
.sidebar .author-box .author-description {
  padding: 45px 25px 0px;
  text-align: justify;
  text-justify: inter-ideograph;
}
.sidebar .author-box p {
  line-height: 1.8;
  font-size: 14px;
}
.sidebar .author-box .author-thumb {
  width: 120px;
  margin: 0 auto;
  position: absolute;
  top: 50px;
  right: 0;
  left: 0;
  bottom: 0;
}
.sidebar .author-box .author-name {
  font-size: 1.1em;
  font-weight: bold;
  position: absolute;
  margin-bottom: 0.4em;
  top: 23px;
  bottom: 0;
  right: 0;
  left: 0;
}
.sidebar .author-box .author-widget-name {
  position: absolute;
  top: 3px;
  bottom: 0;
  right: 0;
  left: 0;
  font-size: 0.7em;
  color: #bbb;
}
.sidebar .author-box .sns-follow {
  padding: 15px 10px;
}
.sidebar .author-box .sns-follow-buttons {
  display: flex;
  justify-content: space-evenly;
}
.sidebar .author-box .sns-follow-buttons a {
  border-radius: 50%;
  border: none;
  width: 45px;
  height: 45px;
  line-height: 45px;
  font-size: 30px;
  box-shadow: 0 0 10px rgba(66, 172, 231, .5), 0 0 5px -5px rgba(66, 172, 231);
  background:#fff;
}
.sidebar .author-box .sns-follow-buttons a:hover {
  box-shadow: 0 10px 20px -2px rgba(0, 0, 0, .2);
  opacity: 1;
}
.sidebar .author-box .sns-follow-buttons .follow-button span:before {
  color: #46CDFF;
}
.sidebar .icon-instagram-new:before {
  content: "\ea92";
  font-size: 24px;
}
.sidebar .author-box .to-profile {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  text-decoration: none;
  color: #46CDFF;
  box-shadow: 0 0 10px rgba(66, 172, 231, .5), 0 0 5px -5px rgba(66, 172, 231);
  top: 105px;
  right: 45px;
  font-size: 0.9em;
  font-weight: bold;
}
.sidebar .author-box .to-profile:hover {
  box-shadow: 0 10px 20px -2px rgba(0, 0, 0, .2);
}
.sidebar .author-box .sns-follow-message {
  margin-bottom: 10px;
  font-size: 13px;
}
.sidebar .author-box .sns-follow-message:before {
  content: "＼";
  margin-right: 5px;
}
.sidebar .author-box .sns-follow-message:after {
  content: "／";
  margin-left: 5px;
}
.sidebar .icon-twitter-logo:before {
  position: absolute;
  top: 8px;
  right: 0;
  bottom: 0;
  left: 0;
}
.sidebar .icon-facebook-logo:before {
  position: absolute;
  top: 6px;
  bottom: 0;
  right: 8px;
  left: 0;
}
.sidebar .icon-hatebu-logo:before {
  position: absolute;
  top: 8px;
  bottom: 0;
  right: 0;
  left: 0;
}
.sidebar .icon-feedly-logo:before {
  position: absolute;
  top: 8px;
  right: 0;
  bottom: 0;
  left: 0;
}
.sidebar .icon-rss-logo:before {
  position: absolute;
  top: 8px;
  right: 0;
  bottom: 0;
  left: 0;
}

/* ボタン */
.btn-shine {
  color: #fff;
  background-color: #c9171e;/*背景色の変更*/
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  line-height: normal;
  text-decoration: none;
  border: 2px solid transparent;
  padding: 14px 20px;
  font-size: 18px;
  margin: 1em;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.btn-shine:hover{
  color: #fff;
}
 
/* ボタンを光らせる */
.btn-shine:before {
  /*光るアニメーション用*/
  animation: shine 3s ease-in-out infinite;/*数字を変更することで光る間隔が変更*/
  background-color: #fff;
  content: " ";
  height: 100%;
  left: 0;
  opacity: 0;
  position: absolute;
  top: -180px;
  transform: rotate(45deg);
  width: 30px;
}
 
@keyframes shine {
  0% {
    transform: scale(0) rotate(45deg);
    opacity: 0;
  }
  80% {
    transform: scale(0) rotate(45deg);
    opacity: 0.5;
  }
  81% {
    transform: scale(4) rotate(45deg);
    opacity: 1;
  }
  100% {
    transform: scale(50) rotate(45deg);
    opacity: 0;
  }
}

/*続きボタン */
.internal-blogcard-site{
float:none;
}
.internal-blogcard-date{
display:none;
}
.internal-blogcard-site:after{
font-family: "FontAwesome";
content: ">読んでみる";
font-weight: bold;
font-size: 100%;
color: #ff963d;
padding: .2em;
border-radius: 4px;
background-color: rgba(0,0,0,0);
border:1px solid #ff963d;
display: inline;
margin-left: auto;
}
.internal-blogcard-site:hover::after{
	opacity: .7;
}
/*要素を画面幅MAX*/
.image {
	margin-right: calc(50% - 50vw);
	margin-left: calc(50% - 50vw);
}

.image img {
	display: block;
	width: 100%;
	height: auto;
}

/* ---------- 基本トーン ---------- */
:root{
  --m-accent: #0ea5e9;
  --m-accent-2:#6366f1;
  --m-text: #0f172a;
  --m-muted:#475569;
  --m-bg:#ffffff;
  --m-card:#0b1220;
}

body{ font-family: 'Noto Sans JP', system-ui, -apple-system, Segoe UI, Roboto, "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", Meiryo, sans-serif; }

/* このテンプレート適用ページだけに効かせる */
.page-template-template-home .entry-title{display:none;}
.page-template-template-home .entry-content{margin:0; padding:0;}
.page-template-template-home #main, /* Cocoonのメイン余白潰し */
.page-template-template-home #content{padding:0;}

/* ---------- ヒーロー ---------- */
.m-hero{
  position:relative;
  color:#fff;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(99,102,241,0.35), transparent 60%),
    radial-gradient(900px 500px at -10% 120%, rgba(14,165,233,0.35), transparent 60%),
    linear-gradient(135deg, #0b1220, #0b1220 60%);
  padding: 84px 20px 72px;
  overflow:hidden;
}
.m-hero__inner{max-width:1100px; margin:0 auto; display:grid; gap:24px;}
.m-hero h1{
  font-size: clamp(28px, 5vw, 44px);
  line-height:1.2;
  letter-spacing: .02em;
  margin:0 0 12px;
}
.m-hero p.m-lead{
  font-size: clamp(15px, 2.4vw, 18px);
  color: #cbd5e1;
  margin: 0 0 24px;
}
.m-cta-row{display:flex; flex-wrap:wrap; gap:12px;}
.m-btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 12px 20px; border-radius: 12px; font-weight:700;
  text-decoration:none; transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.m-btn--primary{
  background: linear-gradient(135deg, var(--m-accent), var(--m-accent-2));
  color:#fff; box-shadow: 0 10px 24px rgba(14,165,233,.35);
}
.m-btn--ghost{
  border:1px solid rgba(255,255,255,.28); color:#fff; backdrop-filter: blur(4px);
}
.m-btn:where(:hover,:focus){ transform: translateY(-1px); opacity:.95; }

/* ---------- セクション共通 ---------- */
.m-section{ padding: 56px 20px; background: var(--m-bg); }
.m-section__inner{ max-width:1100px; margin:0 auto; }
.m-sec-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:22px;}
.m-sec-head h2{ font-size: clamp(20px, 3.6vw, 28px); margin:0; color:var(--m-text); }
.m-sec-head p{ margin:0; color:var(--m-muted); }

/* ---------- 3ポイント（利益の内訳） ---------- */
.m-triad{ display:grid; grid-template-columns: 1fr; gap:16px; }
@media (min-width: 720px){ .m-triad{ grid-template-columns: repeat(3,1fr); } }
.m-card{
  background:#fff; border:1px solid #e5e7eb; border-radius:16px;
  padding:20px; box-shadow: 0 10px 30px rgba(2,6,23,.04);
}
.m-card h3{ margin:0 0 8px; font-size:18px; }
.m-card p{ margin:0; color:#64748b; }

/* ---------- サービス（カード） ---------- */
.m-services-grid{ display:grid; grid-template-columns:1fr; gap:16px; }
@media (min-width: 880px){ .m-services-grid{ grid-template-columns: repeat(3,1fr); } }
.m-service{
  background: linear-gradient(180deg, #0f172a, #0b1220);
  color:#e2e8f0; border-radius:16px; padding:22px;
  border:1px solid rgba(148,163,184,.18);
}
.m-service h3{ margin:0 0 8px; font-size:18px; color:#fff; }
.m-service p{ margin:0 0 12px; color:#94a3b8; }
.m-service .m-chip{ display:inline-block; padding:6px 10px; border-radius:999px; background:rgba(14,165,233,.12); color:#7dd3fc; font-size:12px; }

/* ---------- 事例 ---------- */
.m-cases{ display:grid; grid-template-columns:1fr; gap:16px; }
@media (min-width: 720px){ .m-cases{ grid-template-columns: repeat(2,1fr); } }
.m-case{
  background:#fff; border:1px solid #e5e7eb; border-radius:16px; padding:18px;
}
.m-case h3{ margin:0 0 6px; font-size:17px; }
.m-case p{ margin:0; color:#64748b; }
.m-kpi{ margin-top:10px; display:flex; gap:10px; flex-wrap:wrap; }
.m-kpi span{ background:#f1f5f9; color:#0f172a; font-weight:700; border-radius:12px; padding:6px 10px; font-size:12px; }

/* ---------- 最終CTA ---------- */
.m-cta{
  background: radial-gradient(800px 400px at 100% 0%, rgba(14,165,233,.14), transparent 60%),
              radial-gradient(700px 380px at 0% 100%, rgba(99,102,241,.14), transparent 60%),
              #0b1220;
  color:#fff; text-align:center; padding:64px 20px; border-top:1px solid rgba(148,163,184,.18);
}
.m-cta h2{ margin:0 0 10px; font-size: clamp(22px, 4.5vw, 32px); }
.m-cta p{ margin:0 0 22px; color:#cbd5e1; }

/* 小さな微調整 */
.m-muted{ color:#64748b; }

/* ===== LPテンプレ専用レイアウト調整 ===== */
.page-template-template-home #sidebar,
.page-template-template-home .sidebar,
.page-template-template-home .widget-area{
  display: none !important; /* 右のカテゴリ等を消す */
}

.page-template-template-home #main{
  width: 100% !important;    /* 本文を全幅に */
  max-width: none !important;
}

.page-template-template-home #content{
  max-width: 1100px;         /* サイト中央に整列（好みで数値変更） */
  margin: 0 auto;
  padding: 0 20px;
}

/* ナビとパンくずを隠す（要らなければ外してOK） */
.page-template-template-home #navi,
.page-template-template-home #breadcrumb{
  display: none !important;
}

/* ヘッダー（サイト名ロゴ）も消したい場合は↓も有効化 */
.page-template-template-home #header{
  display: none !important;
}
/* LPテンプレ専用：全幅にする */
.page-template-template-home #content,
.page-template-template-home .content,
.page-template-template-home .wrap {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box;
}

/* 本文を画面いっぱいに */
.page-template-template-home #main {
  max-width: none !important;
  width: 100% !important;
  padding: 0;
}

/* ===== Hero（Cover） ===== */
.m-hero.wp-block-cover{
  min-height: 72vh;          /* 画面の約7割をヒーローに */
  display:grid; place-items:center;
  padding: 48px 20px;
}
.m-hero .wp-block-cover__inner-container{
  text-align:center;
  max-width: 900px;
  margin: 0 auto;
}
.m-hero.wp-block-cover{
  margin-bottom: 0 !important;   /* ← 余白を出さない */
}
.m-hero h1{
  font-weight:700;
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.2;
  margin: 0 0 8px;
  color: #fff;
}
.m-hero p{
  font-size: clamp(15px, 2.2vw, 18px);
  color: #e5e7eb;
  margin: 0 0 18px;
}
.m-hero .wp-block-buttons{
  justify-content: center;
}

/* ===== 悩みセクション ===== */
.m-pains{
  max-width: 1000px;
  margin: 24px auto 8px;
  padding: 0 20px;
}
.m-pains h2, .m-pains h3{
  font-size: clamp(18px, 3.2vw, 24px);
  margin: 0 0 10px;
}
.m-pains ul{
  list-style: none;
  padding: 0; margin: 0;
  display: grid; gap: 10px;
}
.m-pains li{
  position: relative;
  padding-left: 28px;
  line-height: 1.7;
}
.m-pains li::before{
  content: "✓";
  position: absolute; left: 0; top: 0;
  transform: translateY(2px);
  font-weight: 700;
  opacity: .8;
}

/* ボタンの見栄え（任意） */
.m-hero .wp-block-button__link{
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 700;
}

/* ===== セクションの骨組み（Groupに .m-section を付与） ===== */
.m-section{ padding:56px 20px; }
.m-section .m-container{ max-width:1100px; margin:0 auto; }

/* 見出し・小見出し（中央揃え） */
.m-section .m-title{
  text-align:center; margin:0 0 10px;
  font-size: clamp(20px, 3.6vw, 28px); font-weight:700;
}
.m-section .m-sub{ text-align:center; color:#64748b; margin:0 0 22px; }

/* ブロックエディタで段落を中央にしたい時の汎用クラス */
.m-center{ text-align:center; }

/* 1～3列のレスポンシブグリッド */
.m-grid-3{ display:grid; grid-template-columns:1fr; gap:16px; }
@media (min-width: 880px){ .m-grid-3{ grid-template-columns: repeat(3,1fr);} }

.m-grid-2{ display:grid; grid-template-columns:1fr; gap:16px; }
@media (min-width: 720px){ .m-grid-2{ grid-template-columns: repeat(2,1fr);} }

/* カードの見栄え（白カード／濃色カード） */
.m-card{
  background:#fff; border:1px solid #e5e7eb; border-radius:16px;
  padding:20px; box-shadow:0 10px 30px rgba(2,6,23,.04);
  transition: transform .18s ease, box-shadow .18s ease;
}
.m-card:hover{ transform: translateY(-2px); box-shadow:0 16px 40px rgba(2,6,23,.06); }
.m-card h3{ margin:0 0 8px; font-size:18px; }
.m-card p{ margin:0; color:#64748b; }

/* 濃色カード（サービスを強調したい時） */
.m-card--dark{
  background: linear-gradient(180deg,#0f172a,#0b1220);
  color:#e2e8f0; border:1px solid rgba(148,163,184,.18);
}
.m-card--dark h3{ color:#fff; }
.m-chip{
  display:inline-block; padding:6px 10px; border-radius:999px;
  background:rgba(14,165,233,.12); color:#7dd3fc; font-size:12px; margin-bottom:8px;
}

/* お悩み（Groupに .m-pains） */
.m-pains{ max-width:1000px; margin:0 auto; padding:0 20px; }
.m-pains h2{ text-align:center; margin:0 0 12px; font-size: clamp(18px,3.2vw,24px); }
.m-pains ul{
  list-style:none; padding:0; margin:0;
  display:grid; gap:10px; max-width:860px; margin-left:auto; margin-right:auto;
}
.m-pains li{
  position:relative; padding-left:28px; line-height:1.7; color:#334155;
}
.m-pains li::before{
  content:"✓"; position:absolute; left:0; top:0; transform: translateY(2px);
  font-weight:700; opacity:.8;
}

/* ボタンの見栄え（標準ブロックボタンでOK） */
.wp-block-button__link{
  border-radius:12px; padding:12px 18px; font-weight:700;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.wp-block-buttons{ justify-content:center; }

/* 末尾の大CTA（Groupに .m-cta） */
.m-cta{
  background: radial-gradient(800px 400px at 100% 0%, rgba(14,165,233,.14), transparent 60%),
              radial-gradient(700px 380px at 0% 100%, rgba(99,102,241,.14), transparent 60%),
              #0b1220;
  color:#fff; text-align:center; padding:64px 20px; border-top:1px solid rgba(148,163,184,.18);
}
.m-cta h2{ margin:0 0 10px; font-size: clamp(20px, 4.5vw, 30px); }
.m-cta p{ margin:0 0 22px; color:#cbd5e1; }
.m-cta .wp-block-button__link{ color:#fff; }
