/*
Theme Name: Cocoon Child
Template: cocoon-master
*/
@charset "UTF-8";

/* ========================================
   CSS Variables
======================================== */
:root {
  --color-main:   #D9C1AE;
  --color-sub:    #F7F4EF;
  --color-accent: #DB9C98;
  --color-text:   #5E524A;
  --color-green:  #A7C4A1;
  --font-serif: 'Noto Serif JP', '游明朝体', serif;
  --font-sans:  'Noto Sans JP', sans-serif;
}

/* ========================================
   Global
======================================== */
body {
  font-family: var(--font-sans);
  color: var(--color-text);
}

a { color: var(--color-accent); }
a:hover { opacity: 0.8; }

/* ========================================
   Header
======================================== */
#header {
  background-color: #fff;
  border-bottom: 1px solid var(--color-main);
}

/* ロゴ画像の高さ制限 */
.site-name-image img,
.header-logo-image img {
  max-height: 56px;
  width: auto;
}

/* ナビゲーション */
#navi .navi-in > ul > li > a {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--color-text);
  padding: 0 14px;
}
#navi .navi-in > ul > li > a:hover {
  color: var(--color-accent);
  background: transparent;
}

/* ヘッダーアイコン（Instagram / Mail / Search） */
.header-icon-link {
  color: var(--color-text);
  font-size: 18px;
  margin-left: 12px;
}
.header-icon-link:hover { color: var(--color-accent); }

/* ========================================
   Hero Section  (.hero-section)
   ※ フロントページの「カスタムHTML」ブロックで使用
======================================== */
.hero-section {
  background-color: var(--color-sub);
  padding: 64px 0 60px;
  overflow: hidden;
  position: relative;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 48px;
}

/* 左：テキストエリア */
.hero-content { flex: 1; position: relative; z-index: 1; }

.hero-heading {
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--color-text);
  margin: 0 0 22px;
}

.hero-description {
  font-size: 14px;
  line-height: 2;
  color: var(--color-text);
  margin-bottom: 32px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--color-accent);
  color: #fff !important;
  padding: 14px 34px;
  border-radius: 30px;
  font-size: 15px;
  text-decoration: none;
  transition: opacity .2s;
}
.hero-btn:hover { opacity: .82; }

/* 右：写真コラージュ */
.hero-photos {
  flex: 1;
  position: relative;
  height: 380px;
}

.hero-photo {
  position: absolute;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(0,0,0,.12);
  overflow: hidden;
}
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

.hero-photo-main  { width: 265px; height: 330px; top: 20px;  left: 0;   transform: rotate(-2deg); }
.hero-photo-sub1  { width: 165px; height: 155px; top: 0;     right: 10px; transform: rotate(2deg); }
.hero-photo-sub2  { width: 165px; height: 155px; bottom: 10px; right: 10px; transform: rotate(-1deg); }

/* デコ画像 */
.hero-deco {
  position: absolute;
  pointer-events: none;
}
.hero-deco-plant  { width: 110px; left: -12px; bottom: -20px; opacity: .75; }
.hero-deco-camera { width: 60px;  left: 20px;  top: 10px;  opacity: .65; }
.hero-deco-plane  { width: 50px;  right: 0;    bottom: 30px; opacity: .6; }

/* ========================================
   Section Heading  (共通)
======================================== */
.mm-section-heading {
  text-align: center;
  margin-bottom: 44px;
}
.mm-section-heading h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-weight: 600;
}
.mm-section-heading h2::before,
.mm-section-heading h2::after {
  content: '';
  display: block;
  width: 55px;
  height: 1px;
  background-color: var(--color-main);
}

/* ========================================
   Featured Slider  (.featured-section)
   ※ Cocoon の「スライダー」設定と組み合わせ
======================================== */
.featured-section {
  padding: 64px 0;
  background-color: #fff;
}

/* 記事バッジ */
.mm-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 4px;
  color: #fff;
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
}
.mm-badge-new        { background-color: #E8A87C; }
.mm-badge-popular    { background-color: var(--color-accent); }
.mm-badge-recommended{ background-color: var(--color-green); }

/* ========================================
   Category Cards  (.category-section)
======================================== */
.category-section {
  padding: 64px 0;
  background-color: var(--color-sub);
}

.category-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.category-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  transition: transform .22s, box-shadow .22s;
  text-decoration: none;
  display: block;
  color: var(--color-text);
}
.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 28px rgba(0,0,0,.1);
  color: var(--color-text);
}

.category-card-image {
  position: relative;
  height: 160px;
  overflow: hidden;
}
.category-card-image img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .3s;
}
.category-card:hover .category-card-image img {
  transform: scale(1.04);
}

.category-card-icon {
  position: absolute;
  bottom: -20px; left: 50%;
  transform: translateX(-50%);
  width: 42px; height: 42px;
  background: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.1);
  z-index: 1;
}
.category-card-icon img { width: 24px; height: 24px; }

.category-card-body {
  padding: 32px 18px 22px;
  text-align: center;
}
.category-card-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 8px;
}
.category-card-desc {
  font-size: 12px;
  color: #999;
  line-height: 1.8;
  margin-bottom: 16px;
}
.category-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1.5px solid var(--color-accent);
  color: var(--color-accent) !important;
  padding: 7px 20px;
  border-radius: 20px;
  font-size: 13px;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.category-card:hover .category-card-btn,
.category-card-btn:hover {
  background-color: var(--color-accent);
  color: #fff !important;
}

/* ========================================
   New Articles + Sidebar  (2カラム)
======================================== */
.new-articles-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 32px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
}

.new-articles-heading {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  border-left: 4px solid var(--color-green);
  padding-left: 12px;
  margin-bottom: 24px;
}

/* サイドバーウィジェット */
.widget {
  background: #fff;
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 2px 14px rgba(0,0,0,.06);
  margin-bottom: 28px;
}
.widget-title {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  border-bottom: 2px solid var(--color-main);
  padding-bottom: 10px;
  margin-bottom: 18px;
}

/* プロフィールウィジェット */
.profile-widget { text-align: center; }
.profile-widget img {
  width: 90px; height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-main);
  margin-bottom: 12px;
}
.profile-widget-name {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 8px;
}
.profile-widget-bio {
  font-size: 12px;
  color: #888;
  line-height: 1.8;
  margin-bottom: 16px;
}
.profile-widget-btn {
  display: inline-block;
  background-color: var(--color-accent);
  color: #fff !important;
  padding: 9px 22px;
  border-radius: 22px;
  font-size: 13px;
  text-decoration: none;
}

/* ========================================
   Footer
======================================== */
#footer {
  background-color: var(--color-sub) !important;
  color: var(--color-text) !important;
  font-size: 14px;
}

/* フッターウィジェットエリア */
#footer .widget,
#footer .widget-wrap {
  background: transparent !important;
}

/* フッターリンク（Cocoonデフォルトを強制上書き） */
#footer a,
#footer .widget a,
#footer ul li a,
#footer-widget-area a {
  color: var(--color-text) !important;
  text-decoration: none !important;
}
#footer a:hover,
#footer .widget a:hover,
#footer ul li a:hover {
  color: var(--color-accent) !important;
}

/* フッターウィジェットタイトル */
#footer .widget-title,
#footer .widgettitle {
  color: var(--color-text) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  border-bottom: 1px solid var(--color-main) !important;
  padding-bottom: 8px !important;
  margin-bottom: 14px !important;
  background: transparent !important;
}

/* リスト */
#footer ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
#footer ul li {
  margin-bottom: 8px !important;
  color: var(--color-text) !important;
}

#footer-bottom {
  border-top: 1px solid var(--color-main);
  text-align: center;
  padding: 20px 0;
  font-size: 12px;
  color: #999;
}

/* ========================================
   フロントページ専用：Cocoonデフォルト要素の非表示
======================================== */

/* ページタイトル非表示 */
.home .entry-title,
.home .article-header,
.home .post-date,
.home .post-author { display: none !important; }

/* SNSシェアボタン非表示 */
.home .sns-share,
.home .sns-follow-buttons,
.home .article-footer-original { display: none !important; }

/* フロントページの余白リセット */
.home .entry-content,
.home .article-body {
  padding: 0 !important;
  margin: 0 !important;
}

/* Cocoon のデフォルト H2 スタイルを上書き */
.mm-section-heading h2 {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  color: var(--color-text) !important;
  font-size: 22px !important;
  font-family: var(--font-serif) !important;
}
.mm-section-heading h2::before,
.mm-section-heading h2::after {
  background-color: var(--color-main) !important;
}

/* フルワイド対応 */
.home #main {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
}
.home .wrap {
  max-width: 100% !important;
  padding: 0 !important;
}

/* ========================================
   Responsive
======================================== */
@media (max-width: 1024px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  #footer-widgets { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero-inner { flex-direction: column; gap: 32px; }
  .hero-heading { font-size: 30px; }
  .hero-photos { width: 100%; height: 260px; }
  .hero-photo-main  { width: 200px; height: 250px; }
  .hero-photo-sub1  { width: 130px; height: 120px; }
  .hero-photo-sub2  { width: 130px; height: 120px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .new-articles-wrapper { grid-template-columns: 1fr; }
  #footer-widgets { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .category-grid { grid-template-columns: 1fr; }
  #footer-widgets { grid-template-columns: 1fr; }
}
