@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){
  /*必要ならばここにコードを書く*/
}

/* --- Japan Life Compass カスタムデザイン --- */
:root {
  --bg: #f8f6f1;
  --bg-soft: #fcfbf8;
  --surface: #ffffff;
  --text: #1f1f1b;
  --muted: #6d6a63;
  --border: #e6e0d5;
  --accent: #9b642c;
  --accent-dark: #7d4f20;
  --shadow: 0 12px 30px rgba(0,0,0,.06);
  --radius: 18px;
  --container: 1120px;
}

/* Cocoonの標準ヘッダー等をトップページのみ非表示にする */
.jlc-front #header, .jlc-front #nav, .jlc-front #footer { display: none !important; }

body.jlc-front { background: var(--bg); color: var(--text); line-height: 1.75; }
.jlc .container { width: min(var(--container), calc(100% - 32px)); margin: 0 auto; }

.jlc-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(10px); background: rgba(248,246,241,.88); border-bottom: 1px solid rgba(0,0,0,.05); }
.jlc-header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.jlc-brand { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.jlc-logo { width: 40px; height: 40px; border-radius: 12px; background: var(--text); color: #fff; display: grid; place-items: center; font-size: 13px; }
.jlc-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.jlc-nav a { padding: 10px 14px; border-radius: 999px; color: var(--muted); font-size: 14px; }
.jlc-nav-primary { background: var(--accent); color: #fff !important; }

.hero { padding: 72px 0 56px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 64px); line-height: 1.18; margin-bottom: 18px; }
.hero h1 span { color: var(--accent); }
.hero-card { background: linear-gradient(180deg,#fff, #f6f2e8); border: 1px solid var(--border); border-radius: 24px; padding: 28px; box-shadow: var(--shadow); }

.section { padding: 56px 0; }
.emotion-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.emotion-card { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 20px; transition: .2s; }
.emotion-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.podcast-panel { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; }
.podcast-main { background: #fff7ea; border: 1px solid #ead5b8; border-radius: 22px; padding: 24px; }
.story-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }

.cta { background: #1e1d1a; color: #fff; border-radius: 24px; padding: 36px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.btn { display: inline-flex; padding: 14px 18px; border-radius: 12px; font-weight: 700; transition: .2s; cursor: pointer; }
.btn-primary { background: var(--accent); color: #fff; }

@media (max-width: 980px) {
  .hero-grid, .podcast-panel, .story-list, .emotion-grid { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; }
}

.podcast-links a{
  display: inline-block;
  background-color: #f3f8fb;
  border: 1px solid #dbe8ee;
  color: #22384a;
  border-radius: 14px;
  padding: 10px 16px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s ease;
}

.podcast-links a:hover{
  background-color: #eaf4f8;
  border-color: #cfe1e8;
}
.podcast-links a,
.podcast-links a:visited{
  display: inline-block !important;
  background: #f3f8fb !important;
  border: 1px solid #dbe8ee !important;
  color: #22384a !important;
  border-radius: 14px !important;
  padding: 10px 16px !important;
  text-decoration: none !important;
  font-weight: 600 !important;
}

.podcast-links a:hover{
  background: #eaf4f8 !important;
  border-color: #cfe1e8 !important;
  color: #22384a !important;
}

.hero-mini-item{
  background: #f7fbfd;
  border: 1px solid #dbe8ee;
}
.hero-card .hero-mini-item{
  background: #f7fbfd !important;
  border: 1px solid #dbe8ee !important;
}

.emotion-card{
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

.emotion-card:hover{
  background-color: #eef6fb !important;
  border-color: #d6e7f0 !important;
  transform: translateY(-2px);
}

.podcast-links a{
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.podcast-links a:hover{
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(34, 56, 74, 0.08);
}

.hero-title{
  line-height: 1.22;
  letter-spacing: 0.02em;
}

.podcast-side .mini{
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.podcast-side .mini:hover{
  background-color: #fbfdff;
  border-color: #dbe8ee;
  transform: translateY(-1px);
}

.footer-right{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.author-box{
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.9;
}

.author-img{
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #dbe8ee;
}

.author-text{
  text-align: right;
  line-height: 1.2;
}

.author-name{
  font-size: 13px;
  font-weight: 600;
  color: #22384a;
}

.author-role{
  font-size: 11px;
  color: #8a8f98;
  letter-spacing: 0.04em;
}

.footer-right{
  position: relative;
}

.author-box{
  position: absolute;
  right: 0;
  top: -95px;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 12px 18px;
  border-radius: 18px;
  border: 1px solid #dbe8ee;
  box-shadow: 0 8px 20px rgba(0,0,0,0.04);
  z-index: 2;
}
@media (max-width: 768px){
  .footer-right{
    position: static;
    align-items: center;
  }

  .author-box{
    position: static;
    margin-bottom: 12px;
    padding: 10px 14px;
    width: auto;
    max-width: 100%;
  }

  .author-text{
    text-align: left;
  }

  .author-name{
    font-size: 12px;
  }

  .author-role{
    font-size: 10px;
  }
}
@media (max-width: 768px){
  .jlc-footer-inner{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
  }

  .footer-right{
    position: static !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
  }

  .author-box{
    position: static !important;
    margin: 0 auto 6px auto;
    padding: 10px 14px;
    width: fit-content;
    max-width: 92%;
  }

  .author-text{
    text-align: left;
  }

  .jlc-footer-nav{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    width: 100%;
  }

  .jlc-footer-nav a{
    display: inline-block;
  }
}

.hero-title{
  color: #9b642c !important;
}
.hero-title{
  color: #1f1f1b !important;
}

.hero-accent{
  color: #9b642c !important;
}

.jlc-x-follow {
  text-align: center;
  padding: 1.5rem 0 0.5rem;
  border-top: 1px solid rgba(0,0,0,0.06);
  margin-top: 1rem;
}

.jlc-x-follow a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #9a9a90;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.jlc-x-follow a:hover {
  color: #1a1a18;
}