/*
Theme Name: Cocoon Child Maguro
Template: cocoon-master
Version: 1.0.0
*/

/* =========================
   TRAVEL MAGURO：記事デザイン
========================= */

.tm-single-wrap{
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}
.tm-title-section{
  position: relative;
  margin: 2.5rem 0 2.5rem;
}
.tm-title-inner{
  background: #ffffff;
  padding: 3rem 2rem 4.5rem;
  border-radius: 40px;
  position: relative;
  box-shadow: 0 15px 40px rgba(0,0,0,0.03);
  border: 5px double transparent;
  background-image: linear-gradient(#ffffff, #ffffff),
                    linear-gradient(135deg, #bae6fd 0%, #3b82f6 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}
.tm-entry-title{
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.7;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  color: #334155;
}
.tm-meta-row{
  position: absolute;
  right: 2rem;
  bottom: 1.8rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.tm-meta-tag{
  background: #f1f5f9;
  color: #64748b;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
}
.tm-meta-date{
  font-size: 12px;
  color: #94a3b8;
}
.tm-thumb-wrap{
  margin-bottom: 3rem;
  padding: 12px;
  background: #fff;
  border-radius: 35px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}
.tm-thumb-wrap img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 25px;
}
.tm-article-body p{
  line-height: 2.1;
  letter-spacing: 0.04em;
  color: #4b5563;
  margin-bottom: 2rem;
  font-size: 16px;
}
.tm-article-body h2{
  font-size: 1.5rem;
  font-weight: 700;
  color: #334155;
  margin: 5rem 0 2rem;
  padding: 0.4rem 1rem;
  display: inline-block;
  background: linear-gradient(transparent 70%, #bae6fd 70%);
}
.tm-article-body h3{
  font-size: 1.2rem;
  font-weight: 700;
  color: #334155;
  margin: 3rem 0 1.2rem;
}
.tm-article-body img{
  max-width: 100%;
  height: auto;
  border-radius: 20px;
}
.tm-article-body figure,
.tm-article-body .wp-block-image{
  margin: 2rem 0;
}
.tm-follow-section{
  background: #ffffff;
  border-radius: 35px;
  padding: 3rem 2rem;
  text-align: center;
  margin-top: 6rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}
.tm-follow-title{
  font-size: 0.9rem;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
}

@media (max-width: 768px){
  .tm-entry-title{
    font-size: 1.45rem;
    line-height: 1.6;
  }
  .tm-title-inner{
    padding: 2rem 1.2rem 4rem;
    border-radius: 28px;
  }
  .tm-meta-row{
    position: static;
    margin-top: 1.5rem;
    justify-content: center;
  }
}

/* 投稿ページだけサイドバー非表示（Cocoon用） */
.single #sidebar,
.single-post #sidebar { display:none; }

.single #main,
.single-post #main { width:100%; }

/* ===== TRAVEL MAGURO Header (single) ===== */
.tm-header{
  position: sticky;
  top: 0;
  z-index: 9999;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #eef2f7;
}
.tm-header-inner{
  max-width: 1200px;
  margin: 0 auto;
  height: 75px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.tm-logo{
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  color: #0f172a;
}
.tm-nav{
  display: flex;
  gap: 22px;
}
.tm-nav a{
  text-decoration: none;
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
  position: relative;
  padding: 8px 0;
}
.tm-nav a:hover{ color:#3b82f6; }
.tm-search{
  text-decoration:none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#2563eb;
  color:#fff;
}

@media (max-width: 900px){
  .tm-nav{ display:none; }
}

.nav-link{
  position:relative;
  padding:1.5rem .5rem;
  font-weight:bold;
  font-size:14px;
  color:#333;
  transition:color .3s;
  text-decoration:none;
}
.nav-link:hover{ color:#005bac; }
.nav-link.active::after{
  content:'';
  position:absolute;
  bottom:-1px; left:0;
  width:100%; height:3px;
  background:#005bac;
}

/* === TRAVEL MAGURO Global Header === */
.nav-link{
  position: relative;
  padding: 1.5rem 0.5rem;
  font-weight: 700;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  transition: 0.3s;
  text-decoration: none;
}
.nav-link:hover{ color:#005bac; }
.nav-link.active::after{
  content:'';
  position:absolute;
  bottom:-1px; left:0;
  width:100%;
  height:3px;
  background:#005bac;
}

/* 右の3カード（Cuisine/Roadbike/Hobby） */
.category-card{
  position:relative;
  height:140px;
  border-radius:1.5rem;
  overflow:hidden;
  cursor:pointer;
  transition:all .5s cubic-bezier(0.165,0.84,0.44,1);
}
.category-image{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
  transition:transform .8s;
  filter:brightness(.85);
}
.category-overlay{ position:absolute; inset:0; mix-blend-mode:multiply; opacity:.35; }
.overlay-food{ background:#f97316; }
.overlay-bike{ background:#2563eb; }
.overlay-hobby{ background:#16a34a; }

.category-bg-text{
  position:absolute; right:-10px; bottom:-20px;
  font-size:6rem; font-weight:900; color:#fff; opacity:.15;
  font-style:italic; pointer-events:none;
}
.category-card:hover{ transform:translateY(-5px); }
.category-card:hover .category-image{ transform:scale(1.08); }