/*
Theme Name: Cocoon Child
Template: cocoon-master
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Noto+Serif+JP:wght@300;400&family=Montserrat:wght@200;300;400&display=swap');

:root {
  --otr-cream: #FAF7F2;
  --otr-beige: #EDE4D6;
  --otr-sand: #D4C4AA;
  --otr-brown: #8B6F52;
  --otr-dark-brown: #4A3728;
  --otr-warm-white: #FDFAF6;
  --otr-text: #2C1F14;
  --otr-text-light: #7A6352;
  --otr-accent: #C4A882;
}

/* ── RESET ── */
.otr-wrap *, .otr-wrap *::before, .otr-wrap *::after { box-sizing: border-box; }
body { background: var(--otr-cream); font-family: 'Noto Serif JP', serif; color: var(--otr-text); }

/* ── COCOON HEADER OVERRIDE ── */
#header {
  background: rgba(250,247,242,0.92) !important;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(196,168,130,0.3) !important;
}
#site-title a {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 26px !important;
  font-weight: 600 !important;
  letter-spacing: 0.12em !important;
  color: var(--otr-dark-brown) !important;
}
#nav-header a {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  color: var(--otr-text) !important;
}
#nav-header a:hover { color: var(--otr-brown) !important; }

/* ── HERO ── */
.otr-hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.otr-hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 64px 80px 72px;
  position: relative;
}
.otr-hero-left::after {
  content: '';
  position: absolute;
  top: 15%; left: 40px;
  width: 2px; height: 60%;
  background: linear-gradient(to bottom, transparent, var(--otr-accent), transparent);
}
.otr-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px; font-weight: 300;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--otr-brown); margin-bottom: 28px;
  display: flex; align-items: center; gap: 12px;
  animation: otrFadeUp 0.8s ease forwards;
}
.otr-eyebrow::before {
  content: ''; display: inline-block;
  width: 32px; height: 1px; background: var(--otr-brown);
}
.otr-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px,5vw,64px); font-weight: 300;
  line-height: 1.05; color: var(--otr-dark-brown);
  letter-spacing: -0.01em; margin-bottom: 36px;
  white-space: nowrap;
  animation: otrFadeUp 0.8s 0.15s ease forwards; opacity: 0;
}
.otr-title em { font-style: italic; color: var(--otr-brown); }
.otr-desc {
  font-size: 14px; line-height: 2;
  color: var(--otr-text-light); max-width: 520px;
  margin-bottom: 48px;
  animation: otrFadeUp 0.8s 0.25s ease forwards; opacity: 0;
}
.otr-cta {
  display: inline-flex; align-items: center; gap: 16px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px; font-weight: 400; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--otr-dark-brown);
  text-decoration: none; padding-bottom: 4px;
  border-bottom: 1px solid var(--otr-dark-brown);
  width: fit-content; transition: gap 0.3s;
  animation: otrFadeUp 0.8s 0.35s ease forwards; opacity: 0;
}
.otr-cta:hover { gap: 24px; color: var(--otr-dark-brown); }
.otr-cta::after { content: '→'; }

.otr-hero-right {
  background: var(--otr-beige);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.otr-deco-circle {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(196,168,130,0.3);
}
.otr-deco-circle-1 { width: 300px; height: 300px; top: -80px; right: -80px; }
.otr-deco-circle-2 { width: 180px; height: 180px; top: 60px; right: 60px; }
.otr-deco-circle-3 { width: 500px; height: 500px; bottom: -200px; left: -200px; }
.otr-runway-art {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.otr-plane-icon {
  font-size: 120px;
  filter: sepia(1) saturate(0.5);
  animation: otrPlaneFly 6s ease-in-out infinite; z-index: 2;
}
.otr-runway-lines {
  position: absolute; bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 60%;
  display: flex; flex-direction: column;
  justify-content: space-evenly; align-items: center;
}
.otr-runway-dash {
  width: 12px; height: 40px;
  background: var(--otr-sand); opacity: 0.6;
  animation: otrDash 2s infinite;
}
.otr-runway-dash:nth-child(1) { animation-delay: 0s; }
.otr-runway-dash:nth-child(2) { animation-delay: 0.3s; }
.otr-runway-dash:nth-child(3) { animation-delay: 0.6s; }
.otr-runway-dash:nth-child(4) { animation-delay: 0.9s; }
.otr-runway-dash:nth-child(5) { animation-delay: 1.2s; }
.otr-heart-trail {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 1;
}
.otr-heart-trail svg { width: 100%; height: 100%; }
.otr-trail-path {
  fill: none; stroke: var(--otr-sand);
  stroke-width: 1.5; stroke-dasharray: 6 4;
  stroke-linecap: round; opacity: 0.5;
  animation: otrTrail 4s ease-in-out infinite;
}
.otr-heart-dot {
  fill: var(--otr-accent); opacity: 0;
  animation: otrHeartPop 4s ease-in-out infinite;
}
.otr-heart-dot:nth-child(2) { animation-delay: 0.5s; }
.otr-heart-dot:nth-child(3) { animation-delay: 1s; }
.otr-heart-dot:nth-child(4) { animation-delay: 1.5s; }
.otr-hero-stats {
  position: absolute; bottom: 60px; right: 48px;
  display: flex; gap: 40px;
}
.otr-stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px; font-weight: 300;
  color: var(--otr-dark-brown); line-height: 1;
}
.otr-stat-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 9px; font-weight: 300;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--otr-text-light); margin-top: 6px;
}

/* ── SECTIONS ── */
.otr-section { padding: 100px 72px; }
.otr-latest-section { background: var(--otr-beige); }
.otr-section-header {
  display: flex; align-items: baseline;
  gap: 24px; margin-bottom: 56px;
}
.otr-section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 40px; font-weight: 300;
  color: var(--otr-dark-brown);
}
.otr-section-en {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px; font-weight: 300;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--otr-brown);
}

/* ── CATEGORIES ── */
.otr-categories { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.otr-cat-card {
  background: var(--otr-warm-white);
  border: 1px solid rgba(196,168,130,0.25);
  padding: 36px 28px; cursor: pointer;
  transition: all 0.3s; position: relative;
  overflow: hidden; text-decoration: none;
  display: block;
}
.otr-cat-card::before {
  content: ''; position: absolute;
  bottom: 0; left: 0; height: 2px; width: 0;
  background: var(--otr-accent); transition: width 0.4s;
}
.otr-cat-card:hover::before { width: 100%; }
.otr-cat-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(74,55,40,0.08); }
.otr-cat-icon { width: 36px; height: 36px; margin-bottom: 20px; display: block; color: var(--otr-dark-brown); }
.otr-cat-name {
  font-family: 'Noto Serif JP', serif;
  font-size: 15px; font-weight: 400;
  color: var(--otr-dark-brown); margin-bottom: 10px;
}
.otr-cat-desc {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px; font-weight: 300;
  letter-spacing: 0.1em; color: var(--otr-text-light); line-height: 1.7;
}

/* ── POPULAR POSTS ── */
.otr-posts-section { padding: 0 72px 100px; background: var(--otr-warm-white); }
.otr-posts-section .otr-section-header { padding-top: 80px; }
.otr-posts-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2px; }
.otr-post-card {
  background: var(--otr-beige); padding: 40px 32px;
  cursor: pointer; transition: background 0.3s; position: relative;
}
.otr-post-card:hover { background: var(--otr-sand); }
.otr-post-card.otr-featured {
  grid-row: span 2; display: flex; flex-direction: column;
  justify-content: flex-end; min-height: 400px;
  background: var(--otr-dark-brown); padding: 48px 40px;
}
.otr-featured-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 9px; letter-spacing: 0.3em;
  color: var(--otr-accent);
  position: absolute; top: 32px; left: 40px;
}
.otr-post-card.otr-featured .otr-post-cat { color: var(--otr-accent); }
.otr-post-card.otr-featured .otr-post-title a { color: var(--otr-warm-white); font-size: 22px; }
.otr-post-card.otr-featured .otr-post-excerpt { color: rgba(253,250,246,0.7); }
.otr-post-cat {
  font-family: 'Montserrat', sans-serif;
  font-size: 9px; font-weight: 400;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--otr-brown); margin-bottom: 14px;
}
.otr-post-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 15px; font-weight: 400;
  color: var(--otr-dark-brown); line-height: 1.75; margin-bottom: 12px;
}
.otr-post-title a { color: inherit; text-decoration: none; }
.otr-post-excerpt { font-size: 12px; color: var(--otr-text-light); line-height: 1.8; }

/* ── LATEST POSTS ── */
.otr-latest-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; }
.otr-latest-card {
  background: var(--otr-warm-white); padding: 36px 32px;
  transition: background 0.3s; cursor: pointer;
  display: flex; flex-direction: column; gap: 12px;
}
.otr-latest-card:hover { background: var(--otr-cream); }
.otr-latest-meta { display: flex; align-items: center; gap: 16px; }
.otr-latest-cat {
  font-family: 'Montserrat', sans-serif;
  font-size: 9px; font-weight: 400;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--otr-brown);
}
.otr-latest-date {
  font-family: 'Montserrat', sans-serif;
  font-size: 9px; font-weight: 300;
  letter-spacing: 0.1em; color: var(--otr-text-light); opacity: 0.6;
}
.otr-latest-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 15px; font-weight: 400;
  color: var(--otr-dark-brown); line-height: 1.75;
}
.otr-latest-title a { color: inherit; text-decoration: none; }
.otr-latest-excerpt { font-size: 12px; color: var(--otr-text-light); line-height: 1.9; flex: 1; }
.otr-latest-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px; font-weight: 300;
  letter-spacing: 0.15em; color: var(--otr-brown);
  text-decoration: none; margin-top: 4px; transition: letter-spacing 0.3s;
}
.otr-latest-link:hover { letter-spacing: 0.25em; }

/* ── PROFILE ── */
.otr-profile-section {
  padding: 100px 72px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.otr-profile-visual { position: relative; height: 360px; }
.otr-profile-bg {
  position: absolute; inset: 20px 20px 0 0;
  background: var(--otr-beige);
  border: 1px solid rgba(196,168,130,0.4);
}
.otr-profile-img {
  position: absolute; inset: 0 40px 20px 0;
  background: var(--otr-sand);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; font-size: 64px;
}
.otr-avatar { width: 100%; height: 100%; object-fit: cover; }
.otr-profile-badge {
  position: absolute; bottom: 40px; right: 0;
  background: var(--otr-dark-brown); color: var(--otr-cream);
  padding: 16px 24px;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px; letter-spacing: 0.15em; line-height: 1.8;
}
.otr-profile-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px; font-weight: 300; font-style: italic;
  color: var(--otr-dark-brown); margin-bottom: 8px;
}
.otr-profile-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px; font-weight: 300;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--otr-brown); margin-bottom: 28px;
}
.otr-profile-text { font-size: 14px; line-height: 2.2; color: var(--otr-text-light); }

/* ── ANIMATIONS ── */
@keyframes otrFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes otrPlaneFly {
  0%,100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-24px) rotate(-8deg); }
}
@keyframes otrDash {
  0%,100% { opacity: 0.3; } 50% { opacity: 0.8; }
}
@keyframes otrTrail {
  0% { stroke-dashoffset: 300; opacity: 0; }
  20% { opacity: 0.6; } 80% { opacity: 0.6; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes otrHeartPop {
  0%,100% { opacity: 0; transform: scale(0); }
  30% { opacity: 0.8; transform: scale(1); }
  60% { opacity: 0; transform: scale(1.3) translateY(-8px); }
}

/* ── COCOON FOOTER OVERRIDE ── */
#footer {
  background: var(--otr-dark-brown) !important;
  color: var(--otr-sand) !important;
}
#footer a { color: var(--otr-sand) !important; opacity: 0.7; }
#footer a:hover { opacity: 1; }
/* Cocoonのコンテンツ枠を無効化 */
#content {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}
#primary {
  width: 100% !important;
  padding: 0 !important;
}
.entry-content {
  padding: 0 !important;
  margin: 0 !important;
}
article.post {
  padding: 0 !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
}
/* 外側の余白・ボックスを完全に除去 */
#wrapper {
  max-width: 100% !important;
  padding: 0 !important;
}
#container {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}
#main {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
  width: 100% !important;
}
.wrap {
  max-width: 100% !important;
  padding: 0 !important;
}
article.page {
  padding: 0 !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  margin: 0 !important;
}
/* ── ヘッダー背景色 ── */
#header {background-color: rgba(250,247,242,0.92) !important;
border-bottom: 1px solid rgba(196,168,130,0.3) !important;}

/* サムネイル */
.otr-latest-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  margin-bottom: 8px;
}
.otr-latest-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.otr-latest-card:hover .otr-latest-thumb img {
  transform: scale(1.03);
}
/* ── スマホ対応 ── */
@media (max-width: 768px) {
  /* ヒーロー */
  .otr-hero {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
  }
  .otr-hero-right {
    height: 50vw !important;
    min-height: 300px !important;
  }
  .otr-hero-left {
    padding: 48px 24px !important;
  }
  .otr-title {
    font-size: 36px !important;
    white-space: normal !important;
  }
  .otr-hero-stats {
    position: static !important;
    justify-content: center !important;
    padding: 20px !important;
  }

  /* カテゴリ */
  .otr-categories {
    grid-template-columns: 1fr 1fr !important;
  }
  .otr-section {
    padding: 60px 24px !important;
  }

  /* 人気記事 */
  .otr-posts-grid {
    grid-template-columns: 1fr !important;
  }
  .otr-posts-section {
    padding: 0 24px 60px !important;
  }
  .otr-post-card.otr-featured {
    grid-row: span 1 !important;
  }

  /* 最新記事 */
  .otr-latest-grid {
    grid-template-columns: 1fr !important;
  }

  /* プロフィール */
  .otr-profile-section {
    grid-template-columns: 1fr !important;
    padding: 60px 24px !important;
    gap: 40px !important;
  }
  .otr-profile-visual {
    height: 280px !important;
  }
}