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

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

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

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

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}
/* ==============================================
   sumai.guide トップページ カスタムCSS
   独自デザイン版
============================================== */

/* ----------------------------------------
   基本設定
---------------------------------------- */
:root {
  --sg-navy: #1a365d;
  --sg-navy-dark: #102a4c;
  --sg-navy-light: #2c5282;
  --sg-text: #2d3748;
  --sg-text-light: #4a5568;
  --sg-text-lighter: #718096;
  --sg-bg: #ffffff;
  --sg-bg-warm: #faf9f7;
  --sg-bg-blue: #f0f7ff;
  --sg-border: #e2e8f0;
  --sg-accent: #3182ce;
  --sg-green: #38a169;
  --sg-red: #e53e3e;
  --sg-orange: #dd6b20;
}

/* ページ設定 */
.page .entry-content,
.page .article,
.page .content {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  background: var(--sg-bg);
}

.page .entry-content > * {
  max-width: 100%;
}

/* 不要要素の非表示 */
.page .entry-title,
.page .breadcrumb,
.page .post-date,
.page .post-update,
.page .author-info,
.page .toc,
.sns-share,
.sns-follow,
.author-info,
.post-author,
.entry-author,
.entry-author-link,
.post-meta .author,
.edit-link,
.post-edit-link,
.entry-footer,
.footer-post-meta {
  display: none !important;
}

/* ----------------------------------------
   ナビゲーション
---------------------------------------- */
.sg-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--sg-border);
  z-index: 1000;
  padding: 14px 20px;
}

.sg-nav-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sg-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--sg-navy);
  text-decoration: none;
}

.sg-logo img {
  height: 36px;
  width: auto;
}

.sg-nav-links {
  display: flex;
  gap: 28px;
}

.sg-nav-links a {
  font-size: 14px;
  color: var(--sg-text-light);
  text-decoration: none;
  transition: color 0.3s;
}

.sg-nav-links a:hover {
  color: var(--sg-navy);
}

/* ----------------------------------------
   ヒーローセクション
---------------------------------------- */
.sg-hero {
  padding: 140px 20px 80px;
  text-align: center;
  background: linear-gradient(180deg, var(--sg-bg-blue) 0%, var(--sg-bg) 100%);
}

.sg-hero-label {
  display: inline-block;
  font-size: 13px;
  color: var(--sg-accent);
  font-weight: 600;
  margin-bottom: 20px;
}

.sg-hero-title {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  color: var(--sg-navy);
  line-height: 1.4;
  margin-bottom: 24px;
}

.sg-hero-text {
  font-size: 16px;
  color: var(--sg-text-light);
  line-height: 1.9;
  margin-bottom: 32px;
}

.sg-hero-catch {
  font-size: 15px;
  color: var(--sg-text);
  font-weight: 500;
}

/* ----------------------------------------
   導入メッセージ
---------------------------------------- */
.sg-intro {
  padding: 70px 20px;
  background: var(--sg-bg);
}

.sg-intro-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.sg-intro-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.sg-intro-quote {
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 700;
  color: var(--sg-navy);
  margin-bottom: 20px;
}

.sg-intro-text {
  font-size: 15px;
  color: var(--sg-text-light);
  line-height: 1.9;
}

/* ----------------------------------------
   こんな不安ありませんか
---------------------------------------- */
.sg-worries {
  padding: 80px 20px;
  background: var(--sg-bg-warm);
}

.sg-section-title {
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 700;
  color: var(--sg-navy);
  text-align: center;
  margin-bottom: 12px;
}

.sg-section-subtitle {
  font-size: 14px;
  color: var(--sg-text-lighter);
  text-align: center;
  margin-bottom: 40px;
}

.sg-worries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto 40px;
}

.sg-worry-card {
  background: var(--sg-bg);
  padding: 24px 20px;
  border-radius: 12px;
  text-align: center;
  border-left: 4px solid var(--sg-orange);
}

.sg-worry-icon {
  font-size: 28px;
  display: block;
  margin-bottom: 12px;
}

.sg-worry-text {
  font-size: 14px;
  color: var(--sg-text);
  line-height: 1.6;
  margin: 0;
}

.sg-worries-message {
  font-size: 16px;
  font-weight: 600;
  color: var(--sg-navy);
  text-align: center;
  line-height: 1.8;
}

@media (max-width: 768px) {
  .sg-worries-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .sg-worries-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
  }
}

/* ----------------------------------------
   このサイトでわかること
---------------------------------------- */
.sg-benefits {
  padding: 80px 20px;
  background: var(--sg-bg);
}

.sg-benefits-list {
  max-width: 750px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sg-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px;
  background: var(--sg-bg-blue);
  border-radius: 12px;
}

.sg-benefit-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sg-bg);
  border-radius: 12px;
  font-size: 24px;
  flex-shrink: 0;
}

.sg-benefit-body {
  flex: 1;
}

.sg-benefit-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--sg-navy);
  margin-bottom: 8px;
}

.sg-benefit-text {
  font-size: 14px;
  color: var(--sg-text-light);
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 600px) {
  .sg-benefit-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 20px;
  }
}

/* ----------------------------------------
   家族への呼びかけ
---------------------------------------- */
.sg-family {
  padding: 70px 20px;
  background: var(--sg-bg-blue);
  border-top: 1px solid var(--sg-border);
  border-bottom: 1px solid var(--sg-border);
}

.sg-family-inner {
  max-width: 650px;
  margin: 0 auto;
  text-align: center;
}

.sg-family-icon {
  font-size: 40px;
  margin-bottom: 20px;
}

.sg-family-title {
  font-size: clamp(20px, 4vw, 24px);
  font-weight: 700;
  color: var(--sg-navy);
  margin-bottom: 24px;
}

.sg-family-text {
  font-size: 15px;
  color: var(--sg-text);
  line-height: 1.9;
  margin-bottom: 16px;
}

/* ----------------------------------------
   CTAセクション
---------------------------------------- */
.sg-cta {
  padding: 80px 20px;
  background: var(--sg-bg-warm);
}

.sg-cta-inner {
  max-width: 480px;
  margin: 0 auto;
  background: var(--sg-bg);
  padding: 40px 32px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--sg-border);
}

.sg-cta-label {
  font-size: 14px;
  color: var(--sg-text-lighter);
  margin-bottom: 8px;
}

.sg-cta-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--sg-navy);
  margin-bottom: 12px;
}

.sg-cta-desc {
  font-size: 14px;
  color: var(--sg-text-light);
  line-height: 1.7;
  margin-bottom: 24px;
}

.sg-cta-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  text-align: left;
}

.sg-cta-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--sg-border);
  font-size: 14px;
  color: var(--sg-text);
}

.sg-cta-list li:last-child {
  border-bottom: none;
}

.sg-cta-list li::before {
  content: '✓';
  color: var(--sg-green);
  font-weight: bold;
  font-size: 16px;
}

.sg-cta-btn {
  display: block;
  width: 100%;
  padding: 18px;
  background: var(--sg-orange);
  color: #fff !important;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.sg-cta-btn:hover {
  background: #c05621;
  color: #fff !important;
  transform: translateY(-2px);
}

.sg-cta-note {
  font-size: 12px;
  color: var(--sg-text-lighter);
  margin-top: 16px;
  margin-bottom: 0;
}

/* ----------------------------------------
   カテゴリーセクション
---------------------------------------- */
.sg-categories {
  padding: 80px 20px;
  background: var(--sg-bg);
}

.sg-categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.sg-category-card {
  display: block;
  padding: 28px 24px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.sg-cat-blue {
  background: linear-gradient(135deg, #ebf4ff 0%, #c3dafe 100%);
  border: 1px solid #a3bffa;
}

.sg-cat-red {
  background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
  border: 1px solid #feb2b2;
}

.sg-cat-green {
  background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
  border: 1px solid #9ae6b4;
}

.sg-category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.sg-category-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 16px;
}

.sg-category-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--sg-navy);
  margin-bottom: 8px;
}

.sg-category-desc {
  font-size: 13px;
  color: var(--sg-text-light);
  margin: 0;
  line-height: 1.5;
}

.sg-category-arrow {
  position: absolute;
  right: 20px;
  bottom: 20px;
  font-size: 18px;
  color: var(--sg-text-lighter);
  transition: all 0.3s;
}

.sg-category-card:hover .sg-category-arrow {
  color: var(--sg-navy);
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .sg-categories-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
  }
}

/* ----------------------------------------
   人気記事セクション
---------------------------------------- */
.sg-popular {
  padding: 80px 20px;
  background: var(--sg-bg-warm);
}

.sg-popular-list {
  max-width: 700px;
  margin: 0 auto;
}

/* Cocoonランキングのカスタマイズ */
.sg-popular-list .widget-entry-cards {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--sg-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.sg-popular-list .widget-entry-card {
  display: flex;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--sg-border);
  transition: background 0.3s;
}

.sg-popular-list .widget-entry-card:last-child {
  border-bottom: none;
}

.sg-popular-list .widget-entry-card:hover {
  background: var(--sg-bg-blue);
}

.sg-popular-list .widget-entry-card-link {
  display: flex;
  align-items: center;
  width: 100%;
  text-decoration: none;
}

.sg-popular-list .card-thumb,
.sg-popular-list .widget-entry-card-thumb {
  display: none;
}

.sg-popular-list .card-content,
.sg-popular-list .widget-entry-card-content {
  flex: 1;
}

.sg-popular-list .card-title,
.sg-popular-list .widget-entry-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--sg-text);
  line-height: 1.5;
  margin: 0;
}

.sg-popular-list .card-snippet,
.sg-popular-list .card-meta,
.sg-popular-list .widget-entry-card-date {
  display: none;
}

/* ランキング番号 */
.sg-popular-list .ranking-item-link-text::before {
  content: counter(ranking);
  counter-increment: ranking;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--sg-navy);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  margin-right: 16px;
}

.sg-popular-list {
  counter-reset: ranking;
}

/* ----------------------------------------
   運営者について
---------------------------------------- */
.sg-profile {
  padding: 80px 20px;
  background: var(--sg-bg);
}

.sg-profile-inner {
  max-width: 650px;
  margin: 40px auto 0;
}

.sg-profile-card {
  background: var(--sg-bg-warm);
  border-radius: 16px;
  padding: 40px;
  border: 1px solid var(--sg-border);
}

.sg-profile-header {
  text-align: center;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--sg-border);
}

.sg-profile-label {
  font-size: 12px;
  color: var(--sg-text-lighter);
  margin-bottom: 8px;
}

.sg-profile-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--sg-navy);
  margin-bottom: 4px;
}

.sg-profile-title {
  font-size: 14px;
  color: var(--sg-text-light);
  margin: 0;
}

.sg-profile-body p {
  font-size: 15px;
  color: var(--sg-text-light);
  line-height: 1.9;
  margin-bottom: 16px;
}

.sg-profile-body p:last-child {
  margin-bottom: 0;
}

/* ----------------------------------------
   フッター
---------------------------------------- */
.sg-footer {
  padding: 50px 20px;
  background: var(--sg-bg-warm);
  text-align: center;
  border-top: 1px solid var(--sg-border);
}

.sg-footer-inner {
  max-width: 900px;
  margin: 0 auto;
}

.sg-footer-logo {
  display: inline-block;
  margin-bottom: 12px;
}

.sg-footer-logo img {
  height: 40px;
  width: auto;
}

.sg-footer-copy {
  font-size: 12px;
  color: var(--sg-text-lighter);
  margin: 0;
}

/* ----------------------------------------
   レスポンシブ
---------------------------------------- */
@media (max-width: 600px) {
  .sg-hero {
    padding: 110px 16px 60px;
  }
  
  .sg-intro,
  .sg-worries,
  .sg-benefits,
  .sg-family,
  .sg-cta,
  .sg-categories,
  .sg-popular,
  .sg-profile,
  .sg-footer {
    padding: 60px 16px;
  }
  
  .sg-cta-inner {
    padding: 32px 20px;
  }
  
  .sg-profile-card {
    padding: 28px 20px;
  }
  
  .sg-popular-list .widget-entry-card {
    padding: 16px;
  }
  
  .sg-nav-links {
    gap: 16px;
  }
  
  .sg-nav-links a {
    font-size: 13px;
  }
  
  .sg-logo {
    font-size: 16px;
  }
  
  .sg-logo img {
    height: 30px;
  }
}
/* Cocoonフッター非表示 */
.footer,
#footer,
.footer-bottom,
.footer-bottom-content,
.copyright,
.footer-left,
.footer-right,
.navi-footer,
.go-to-top {
  display: none !important;
}
/* サイト共通フッター */
.sg-site-footer {
  text-align: center;
  padding: 40px 20px;
}

.sg-site-footer-logo {
  display: inline-block;
  margin-bottom: 12px;
}

.sg-site-footer-logo img {
  height: 40px;
  width: auto;
}

.sg-site-footer-copy {
  font-size: 12px;
  color: #718096;
  margin: 0;
}

/* Cocoonデフォルトのコピーライトを非表示 */
.source-org,
.copyright small,
.footer-bottom-logo,
.navi-footer {
  display: none !important;
}
/* フッターデザイン統一 */
.footer {
  background: #faf9f7 !important;
  border-top: 1px solid #e2e8f0 !important;
  padding: 40px 20px !important;
}

.footer-bottom {
  background: transparent !important;
  padding: 0 !important;
}

.footer-bottom-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* フッターロゴ */
.footer-bottom-logo img {
  height: 40px !important;
  width: auto !important;
  margin-bottom: 12px;
}

/* コピーライト */
.copyright {
  font-size: 12px !important;
  color: #718096 !important;
}

.copyright a {
  color: #718096 !important;
  text-decoration: none !important;
}

/* 不要な要素を非表示 */
.navi-footer,
.footer-left,
.footer-right,
.source-org {
  display: none !important;
}