@charset "UTF-8";

/* ========================================================================
   イベント個別（悩み別）ページ専用スタイル
   event/{悩み}/index.html 共通
   このページ固有のセクションだけを定義する。
   流用元:
     - breadcrumb / counselor / final-cta → event-list.css
     - worry / approach(flow) / about / features / price → top.css
   ======================================================================== */


/* ========================================================================
   1. HERO
   ======================================================================== */

.p-evdetail-hero {
  position: relative;
  min-height: clamp(560px, 75vh, 600px);
  padding: calc(var(--header-height) + 40px) 0 100px;
  display: grid;
  grid-template-columns: 45fr 55fr;
  grid-template-rows: 1fr auto;
  overflow: visible;
}

/* --- 左カラム: テキスト --- */
.p-evdetail-hero__content {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: var(--space-lg) var(--space-md) var(--space-lg) clamp(var(--space-md), 5vw, 60px);
  overflow: visible;
  z-index: 2;
}

/* --- 右カラム: 画像 --- */
.p-evdetail-hero__visual {
  grid-column: 2;
  grid-row: 1 / 2;
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 100%;
}

.p-evdetail-hero__img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  box-shadow: -8px 0 32px rgba(92, 61, 46, 0.15);
    border-radius: 80px 0 0 80px;
}

/* 白オーバーレイ (ffffff 20%) */
.p-evdetail-hero__visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.2);
  pointer-events: none;
    border-radius: 80px 0 0 80px;
}

/* 右上の植物装飾 */
.p-evdetail-hero__deco {
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: auto;
  z-index: 1;
}

/* --- パンくず（ヒーロー最下部、左カラム幅で） --- */
.p-evdetail-hero__breadcrumb {
  grid-column: 1;
  grid-row: 2;
  padding: var(--space-sm) clamp(var(--space-md), 5vw, 60px);
}

/* --- バッジ --- */
.p-evdetail-hero__badge {
  display: inline-block;
  background-color: var(--color-accent-yellow);
  color: var(--color-primary-dark);
  border-radius: var(--radius-pill);
  padding: 8px 28px;
  font-size: var(--fz-md);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-sm);
}

/* --- タイトル --- */
.p-evdetail-hero__title {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.05em;
  color: var(--color-primary);
  margin: 0 0 var(--space-md);
  white-space: nowrap;
  z-index: 3;
}

.p-evdetail-hero__title::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: var(--color-accent-yellow);
  z-index: -1;
  transform: translate(4px, 4px);
  white-space: pre-line;
  pointer-events: none;
}

/* --- リード文 --- */
.p-evdetail-hero__lead {
  font-size: var(--fz-md);
  line-height: 2.2;
  color: var(--color-text);
  margin: 0 0 var(--space-lg);
}

/* --- 情報ボックス（2x2グリッド） --- */
.p-evdetail-hero__info-bar {
  width: 100%;
  max-width: 520px;
  background-color: var(--color-bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.p-evdetail-hero__info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
}

.p-evdetail-hero__info-item:nth-child(2n) {
  border-right: none;
}

.p-evdetail-hero__info-item:nth-last-child(-n+2) {
  border-bottom: none;
}

.p-evdetail-hero__info-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    background-color: #eee5dc;
    border-radius: 999px;
}

.p-evdetail-hero__info-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.4;
}

.p-evdetail-hero__info-label {
  font-size: var(--fz-xs);
  color: var(--color-text-sub);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.p-evdetail-hero__info-value {
  font-size: var(--fz-sm);
  color: var(--color-text);
  font-weight: 700;
}

.p-evdetail-hero__info-value small {
  font-size: var(--fz-xs);
  font-weight: 400;
  color: var(--color-text-sub);
}

/* --- タブレット (1024px以下) --- */
@media (max-width: 1024px) {
  .p-evdetail-hero__content {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }
  .p-evdetail-hero__breadcrumb {
    padding-left: var(--space-md);
  }
}

/* --- SP (768px以下) --- */
@media (max-width: 768px) {
  .p-evdetail-hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    min-height: 0;
    padding-top: calc(var(--header-height) + 16px);
  }

  .p-evdetail-hero__visual {
    grid-column: 1;
    grid-row: 1;
    max-height: 300px;
  }

  .p-evdetail-hero__img {
    box-shadow: none;
  }

  .p-evdetail-hero__deco {
    width: 60px;
  }

  .p-evdetail-hero__content {
    grid-column: 1;
    grid-row: 2;
    padding: var(--space-md);
  }

  .p-evdetail-hero__breadcrumb {
    grid-column: 1;
    grid-row: 3;
    padding: var(--space-sm) var(--space-md);
  }

  .p-evdetail-hero__title {
    font-size: clamp(26px, 7vw, 34px);
    white-space: normal;
  }

  .p-evdetail-hero__title::before {
    transform: translate(2px, 2px);
  }

  .p-evdetail-hero__lead {
    font-size: var(--fz-sm);
    line-height: 1.9;
  }

  .p-evdetail-hero__lead br {
    display: none;
  }

  .p-evdetail-hero__info-bar {
    grid-template-columns: 1fr;
  }

  .p-evdetail-hero__info-item {
    border-right: none;
    padding: 10px 14px;
  }

  .p-evdetail-hero__info-item:nth-last-child(-n+2) {
    border-bottom: 1px solid var(--color-border);
  }

  .p-evdetail-hero__info-item:last-child {
    border-bottom: none;
  }
}


/* ========================================================================
   2. FLOW（背景・ボックス色・矢印色の上書き＋リード文追加）
   ベースは top.css の .p-approach / .p-step を流用
   ======================================================================== */

/* セクション背景をテクスチャに（top.css のデフォルト .p-approach は bg-image なしのため明示） */
#flow.p-approach {
  background-color: var(--color-bg-base);
  background-image: url(../images/common/common-bg.jpg);
  background-repeat: repeat;
}

/* ステップボックスの背景をベージュに */
#flow .p-step {
  background-color: #f5f0eb;
}

/* 矢印の色をブラウン系に */
#flow .p-approach__arrow {
  border-top-color: var(--color-text-sub);
}

/* タイトル下のリード文 */
.p-evdetail-flow__lead {
  font-size: var(--fz-base);
  line-height: 1.8;
  color: var(--color-text-sub);
  text-align: center;
  margin: calc(var(--space-xl) * -1 + var(--space-sm)) 0 var(--space-xl);
}

/* ステップ下のイラスト */
.p-evdetail-flow__illust {
  display: block;
  width: 100%;
  max-width: 400px;
  height: auto;
  margin: var(--space-xl) auto 0;
}

@media (max-width: 768px) {
  .p-evdetail-flow__lead {
    font-size: var(--fz-sm);
        margin-top: 5px;
}
  .p-evdetail-flow__illust {
    max-width: 280px;
  }
}


/* ========================================================================
   2.3 ABOUT info-box（「対　象」ラベル追加）
   ベースは top.css の .p-about__info-box を流用
   ======================================================================== */

.p-about__info-box-label {
  font-size: var(--fz-sm);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.3em;
  text-align: center;
  margin: 0 auto var(--space-xs);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--color-text-muted);
  display: table;
}


/* ========================================================================
   2.5 WORRY（悩み別・自由配置キャンバス）
   ======================================================================== */

.p-evdetail-worry {
  background-color: transparent;
}

.p-evdetail-worry__canvas {
  position: relative;
  width: 100%;
  max-width: 960px;
  aspect-ratio: 4 / 4;
  margin: 0 auto;
}

.p-evdetail-worry__illust {
  position: absolute;
  width: 36%;
  height: auto;
  display: block;
}

.p-evdetail-worry__illust--1 {
  top: 13%;
  left: 12%;
}

.p-evdetail-worry__illust--2 {
  top: 0%;
  right: 12%;
}

.p-evdetail-worry__illust--3 {
  top: 55%;
  right: 12%;
}

.p-evdetail-worry__label {
  position: absolute;
  background-color: var(--color-bg-white);
  color: var(--color-text);
  font-size: var(--fz-md);
  font-weight: 700;
  line-height: 1.5;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.p-evdetail-worry__label--1 {
  top: 12%;
  left: 8%;
}

.p-evdetail-worry__label--2 {
  top: 37%;
  right: 10%;
}

.p-evdetail-worry__label--3 {
  top: 48%;
  left: 25%;
}

.p-evdetail-worry__label--4 {
  top: 50%;
  right: 8%;
}

.p-evdetail-worry__label--5 {
  top: 58%;
  left: 18%;
}

.p-evdetail-worry__label--6 {
  top: 88%;
  left: 24%;
}

.p-evdetail-worry__message-area {
  width: 100%;
  margin-top: var(--space-2xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.p-evdetail-worry__message {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 600;
  line-height: 2;
  color: var(--color-text);
  text-align: center;
  margin: 0;
}

.p-evdetail-worry__message em {
  font-style: normal;
  color: var(--color-accent-orange);
}

.p-evdetail-worry__message-illust {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
}

.br-sp {
  display: none;
}

@media (max-width: 768px) {
  .p-evdetail-worry__canvas {
    aspect-ratio: 4 / 6;
    max-width: 100%;
  }

  .p-evdetail-worry__illust {
    width: 50%;
  }

  .p-evdetail-worry__label {
    font-size: var(--fz-xs);
    padding: 6px 12px;
    white-space: normal;
    max-width: 46%;
  }

  .p-evdetail-worry__message {
    font-size: var(--fz-md);
    line-height: 1.9;
  }

  .p-evdetail-worry__message-illust {
    max-width: 260px;
  }

  .br-sp {
    display: inline;
  }
    
    
.p-evdetail-worry__illust--1 {
  top: 8%;
  left: 0%;
}

.p-evdetail-worry__illust--2 {
  top: 30%;
  right: 0%;
}

.p-evdetail-worry__illust--3 {
  top: 75%;
  right: 12%;
}


.p-evdetail-worry__label--1 {
  top: 3%;
  left: 15%;
}

.p-evdetail-worry__label--2 {
  top: 25%;
  right: 10%;
}

.p-evdetail-worry__label--3 {
  top: 42%;
  left: 0%;
}

.p-evdetail-worry__label--4 {
  top: 63%;
  right: 3%;
}

.p-evdetail-worry__label--5 {
  top: 70%;
  left: 0%;
}

.p-evdetail-worry__label--6 {
  top: 88%;
  left: 4%;
}


    
    
    
    
    
}


/* ========================================================================
   3. KNOWLEDGE（ADVICE）
   ======================================================================== */

.p-evdetail-knowledge {
  background-color: var(--color-bg-base);
}

/* セクションタイトル（共通 .c-section-head__ja の強調：data-text 影） */
.c-section-head__ja {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.8vw, 40px);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.05em;
  position: relative;
  z-index: 1;
}

.c-section-head__ja::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: var(--color-accent-yellow);
  z-index: -1;
  transform: translate(1px, 1px);
  pointer-events: none;
}

/* --- リード文 --- */
.p-evdetail-knowledge__lead {
  font-size: var(--fz-base);
  line-height: 2;
  color: var(--color-text);
  text-align: center;
  margin: 0 0 var(--space-xl);
}

/* --- アドバイスカード --- */
.p-evdetail-knowledge__cards {
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}


.p-evdetail-advice-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-md);
  background-color: var(--color-bg-cream2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  align-items: stretch;
}

.p-evdetail-advice-card__img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
  object-fit: cover;
}


.p-evdetail-advice-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.p-evdetail-advice-card__title {
  font-family: var(--font-display);
  font-size: var(--fz-lg);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.5;
  margin: 1em 0 0 0;
}

.p-evdetail-advice-card__text {
  font-size: var(--fz-base);
  line-height: 2;
  color: var(--color-text);
  margin: 0;
  padding:  0  0 2em 0;
}

.p-evdetail-advice-card__text strong {
  font-weight: 700;
  color: var(--color-text);
}

/* --- フッター（締めテキスト＋noteリンク） --- */
.p-evdetail-knowledge__footer {
  margin-top: var(--space-xl);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.p-evdetail-knowledge__footer-text {
  font-size: var(--fz-base);
  line-height: 1.8;
  color: var(--color-text);
  margin: 0;
}

.p-evdetail-knowledge__link {
  color: var(--color-accent-orange);
  font-weight: 700;
  font-size: var(--fz-base);
  border-bottom: 1px solid var(--color-accent-orange);
  padding-bottom: 2px;
}

/* --- SP (768px以下) --- */
@media (max-width: 768px) {
  .p-evdetail-knowledge__lead {
    font-size: var(--fz-sm);
    line-height: 1.9;
  }

  .p-evdetail-knowledge__lead br {
    display: none;
  }

  .p-evdetail-advice-card {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
      padding: 1em;
  }

  .p-evdetail-advice-card__img {
    max-width: 240px;
    justify-self: center;
  }

  .p-evdetail-advice-card__title {
    font-size: var(--fz-md);
  }

  .p-evdetail-advice-card__text {
    font-size: var(--fz-sm);
    line-height: 1.9;
  }

  .p-evdetail-advice-card__text br {
    display: none;
  }
}


/* ========================================================================
   4. FAQ
   ======================================================================== */

.p-evdetail-faq {
  background-color: var(--color-bg-white);
}

.p-evdetail-faq__list {
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.p-faq-item {
  background-color: #f5f0eb;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.p-faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  font-size: var(--fz-base);
  font-weight: 700;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
  background-color: transparent;
  border: none;
  font-family: inherit;
  line-height: 1.6;
}

.p-faq-item__q-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background-color: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.p-faq-item__q-icon::before {
  content: 'Q';
}

.p-faq-item.is-open .p-faq-item__q-icon {
  transform: none;
}

.p-faq-item__q-text {
  flex: 1;
}

/* 開閉シェブロン（∨ / ∧） */
.p-faq-item__chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
  margin-left: auto;
}

.p-faq-item__chevron::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--color-text-muted);
  border-bottom: 2px solid var(--color-text-muted);
  transform: translate(-50%, -70%) rotate(45deg);
  transition: transform 0.3s ease;
}

.p-faq-item.is-open .p-faq-item__chevron::before {
  transform: translate(-50%, -30%) rotate(-135deg);
}

.p-faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 24px;
}

.p-faq-item.is-open .p-faq-item__a {
  max-height: 500px;
  padding: 0 24px 18px;
}

/* Aマークアイコン */
.p-faq-item__a-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background-color: var(--color-text-sub);
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  float: left;
  margin-right: 14px;
  margin-top: 2px;
}

.p-faq-item__a p {
  font-size: var(--fz-sm);
  line-height: 2;
  color: var(--color-text-sub);
  margin: 0;
  padding-left: 42px;
}

@media (max-width: 768px) {
  .p-faq-item__q {
    padding: 14px 18px;
    font-size: var(--fz-sm);
    gap: 10px;
  }
  .p-faq-item__q-icon {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }
  .p-faq-item__a {
    padding: 0 18px;
  }
  .p-faq-item.is-open .p-faq-item__a {
    padding: 0 18px 14px;
  }
  .p-faq-item__a p {
    padding-left: 34px;
    font-size: var(--fz-xs);
  }
  .p-faq-item__a-icon {
    width: 24px;
    height: 24px;
    font-size: 12px;
    margin-right: 10px;
  }
  .p-faq-item__chevron {
    width: 16px;
    height: 16px;
  }
  .p-faq-item__chevron::before {
    width: 8px;
    height: 8px;
  }
}
