@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
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/

/* フッターボトム: ロゴとコンテンツの重なり修正 */
/* 元の横並びレイアウト（ロゴ左・コンテンツ右）を維持 */
.footer-bottom {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
}
.footer-bottom-logo {
  position: relative !important;
  float: none !important;
  bottom: auto !important;
  flex-shrink: 0;
}
.footer-bottom-content {
  float: none !important;
  text-align: right;
  flex: 1;
  min-width: 0;
}

/* タブレット以下では上下配置に切り替え */
@media screen and (max-width: 834px) {
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-bottom-logo {
    margin-bottom: 12px;
  }
  .footer-bottom-content {
    text-align: center;
  }
}

/************************************
** フロントランディングページ（front-landing.php）
************************************/
.lp-landing {
  --lp-brand-color: #a83c50;
  --lp-brand-color-dark: #8a3142;
  --lp-brand-color-soft: rgba(168, 60, 80, 0.08);
  overflow: hidden;
}

.lp-landing section p {
  margin: 0 0 1.4em;
  line-height: 1.9;
}

.lp-landing section p:last-child {
  margin-bottom: 0;
}

/* ヒーローセクション */
.lp-hero {
  position: relative;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  margin-top: -36px;
  margin-bottom: 60px;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--lp-brand-color-dark);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
}

.lp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.55));
}

.lp-hero-in {
  position: relative;
  z-index: 1;
  padding: 40px 24px;
  max-width: 900px;
}

.lp-hero-title {
  color: #fff;
  font-size: 2.4em;
  font-weight: bold;
  line-height: 1.6;
  margin: 0 0 20px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.lp-hero-subtitle {
  color: #fff;
  font-size: 1.1em;
  line-height: 1.8;
  margin: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* 導入セクション */
.lp-intro {
  margin-bottom: 60px;
}

.lp-intro-in {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.02em;
  color: var(--cocoon-text-color, #333);
}

/* 「超える」セクション */
.lp-overcoming {
  background-color: var(--lp-brand-color-soft);
  border-radius: 8px;
  padding: 50px 30px;
  margin-bottom: 60px;
}

.lp-overcoming-heading {
  text-align: center;
  font-size: 1.5em;
  font-weight: bold;
  margin: 0 0 36px;
  color: var(--lp-brand-color);
}

.lp-overcoming-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.lp-overcoming-card {
  position: relative;
  flex: 1 1 360px;
  max-width: 480px;
  background-color: #fff;
  border-radius: 10px;
  padding: 32px 28px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.lp-overcoming-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.lp-overcoming-card-number {
  display: inline-block;
  font-size: 0.9em;
  font-weight: bold;
  color: #fff;
  background-color: var(--lp-brand-color);
  border-radius: 999px;
  width: 2.4em;
  height: 2.4em;
  line-height: 2.4em;
  text-align: center;
  margin-bottom: 16px;
}

.lp-overcoming-card-title {
  font-size: 1.25em;
  font-weight: bold;
  margin: 0 0 8px;
  color: var(--lp-brand-color-dark);
}

.lp-overcoming-card-lead {
  font-weight: bold;
  color: var(--cocoon-text-color, #333);
  margin-bottom: 14px !important;
}

.lp-overcoming-card-text {
  font-size: 0.96em;
}

/* 結びセクション */
.lp-closing {
  position: relative;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  margin-bottom: 40px;
  background-color: var(--lp-brand-color);
  color: #fff;
  text-align: center;
  padding: 60px 24px;
}

.lp-closing-in {
  max-width: 720px;
  margin: 0 auto;
}

.lp-closing-in p {
  color: #fff;
}

.lp-closing-lead {
  font-size: 1.3em;
  font-weight: bold;
  line-height: 1.7;
  margin-bottom: 24px !important;
}

.lp-closing-cta-wrap {
  margin-top: 32px;
}

.lp-closing-cta {
  display: inline-block;
  background-color: #fff;
  color: var(--lp-brand-color);
  font-weight: bold;
  padding: 14px 40px;
  border-radius: 999px;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.lp-closing-cta:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.lp-br-sp {
  display: none;
}

/* 1文字段落ち対策（モダンブラウザ向けプログレッシブエンハンスメント） */
.lp-landing .lp-hero-title,
.lp-landing .lp-overcoming-heading,
.lp-landing .lp-overcoming-card-lead,
.lp-landing .lp-closing-lead {
  text-wrap: balance;
  word-break: auto-phrase;
}
.lp-landing section p {
  text-wrap: pretty;
  word-break: auto-phrase;
}
.lp-nowrap {
  white-space: nowrap;
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  .lp-hero {
    min-height: 420px;
  }
  .lp-overcoming-cards {
    flex-wrap: wrap;
  }
}

/*834px以下*/
@media screen and (max-width: 834px){
  .lp-hero {
    min-height: 360px;
    margin-bottom: 40px;
  }
  .lp-hero-title {
    font-size: 1.7em;
  }
  .lp-hero-subtitle {
    font-size: 1em;
  }
  .lp-br-pc {
    display: none;
  }
  .lp-br-sp {
    display: inline;
  }
  .lp-intro,
  .lp-overcoming {
    margin-bottom: 40px;
  }
  .lp-overcoming {
    padding: 36px 20px;
  }
  .lp-overcoming-card {
    flex: 1 1 100%;
  }
  .lp-closing {
    padding: 44px 20px;
  }
}

/*480px以下*/
@media screen and (max-width: 480px){
  .lp-hero {
    min-height: 300px;
  }
  .lp-hero-title {
    font-size: 1.4em;
  }
  .lp-overcoming-card {
    padding: 24px 20px;
  }
  .lp-closing-lead {
    font-size: 1.15em;
  }
  .lp-closing-cta {
    padding: 12px 32px;
    width: 100%;
    box-sizing: border-box;
  }
}


/************************************
** 最新の就職・転職相談会 告知バー
************************************/

/* 告知バー本体 */
.lp-event-notice {
  margin: -36px 0 24px;
  padding: 0;
}

/* 告知がある場合のみヒーロー上部の余白を調整 */
.lp-landing.has-event-notice .lp-hero {
  margin-top: 0;
}

.lp-event-notice-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 28px;

  background: #fff5f5;
  border: 1px solid #edd4d8;
  border-radius: 6px;
  box-sizing: border-box;
}

/* 左側：イベント情報 */
.lp-event-info {
  flex: 1;
  min-width: 0;
}

.lp-event-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 10px;
}

.lp-event-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--lp-brand-color, #a83c50);
  border-radius: 3px;

  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.5;
}

.lp-event-date {
  color: #743143;
  font-size: 0.9rem;
  font-weight: 600;
}

.lp-event-title {
  margin: 0 0 8px;
  padding: 0;
  color: var(--lp-brand-color-dark, #8a3142);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.45;
  border: none;
}

.lp-landing .lp-event-details {
  margin: 0;
  color: #63545a;
  font-size: 0.88rem;
  line-height: 1.7;
}

/* 右側：申込みボタン */
.lp-event-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 12px;

  padding: 14px 24px;
  border-radius: 5px;
  background: var(--lp-brand-color, #a83c50);

  color: #fff !important;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  text-decoration: none !important;
  transition: background-color 0.2s ease;
}

.lp-event-button:hover,
.lp-event-button:focus-visible {
  background: var(--lp-brand-color-dark, #8a3142);
  color: #fff !important;
}

.lp-event-button:focus-visible {
  outline: 3px solid #222;
  outline-offset: 3px;
}

/* スマートフォン */
@media screen and (max-width: 767px) {
  .lp-event-notice {
    margin-bottom: 18px;
  }

  .lp-event-notice-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 18px;
  }

  .lp-event-meta {
    gap: 8px;
  }

  .lp-event-date {
    font-size: 0.82rem;
  }

  .lp-event-title {
    font-size: 1.15rem;
  }

  .lp-landing .lp-event-details {
    font-size: 0.82rem;
  }

  .lp-event-separator {
    display: none;
  }

  .lp-event-button {
    width: 100%;
    box-sizing: border-box;
    min-height: 48px;
  }
}

/* 告知バーがヘッダーに隠れる問題を修正 */
.lp-landing .lp-event-notice {
  margin-top: 0;
}

/* 告知表示中はヒーローの上方向への移動も解除 */
.lp-landing.has-event-notice .lp-hero {
  margin-top: 0;
}
