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

/************************************
** 子テーマ用のスタイル（ここから追加）
************************************/

/* 全体トーン */
body {
  background: #020617;
  color: #e5e7eb;
}

/* Cocoon 側の背景を抑える（コンテンツ側） */
#container,
#main,
#inner-content,
.article,
.article-inner,
#content {
  background: transparent !important;
  box-shadow: none !important;
}

/* 背景動画（ヒーローセクション内に限定） */
.l-background-movie {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  max-height: 640px;
  pointer-events: none;
}

.l-background-movie video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(6px) brightness(0.25);
  transform: scale(1.05);
}

/* メインラッパー */
.kontek-main {
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.kontek-main-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 80px 24px 80px;
}

/* イントロオーバーレイ */
.p-front-enter {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(circle at top, #0f172a 0, #020617 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.p-front-enter.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.p-front-enter__inner {
  text-align: center;
  max-width: 640px;
  padding: 24px;
}

.p-front-enter__text p {
  position: relative;
  font-size: clamp(24px, 4vw, 32px);
  letter-spacing: 0.25em;
  text-shadow:
    0 0 8px rgba(148, 163, 184, 0.7),
    0 0 18px rgba(15, 23, 42, 0.9);
  animation: enter-glitch 2s infinite steps(2, end);
}

.p-front-enter__hint {
  margin-top: 16px;
  font-size: 12px;
  color: #9ca3af;
  letter-spacing: 0.2em;
}

.p-front-enter__video {
  margin-top: 24px;
  max-width: 360px;
  margin-inline: auto;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95);
}

.p-front-enter__video video {
  display: block;
  width: 100%;
  height: auto;
}

@keyframes enter-glitch {
  0%, 100% {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
  8% {
    transform: translate3d(1px, -1px, 0);
  }
  10% {
    transform: translate3d(-2px, 2px, 0);
  }
  12% {
    transform: translate3d(1px, 1px, 0);
  }
  20% {
    opacity: 0.8;
  }
  22% {
    opacity: 1;
  }
}

/* body 状態 */
body.intro-active {
  overflow: hidden;
}

body.intro-finished {
  overflow: auto;
}

/* HERO */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 96px 24px 64px;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.98) 0, #020617 60%);
  overflow: hidden;
}

.hero-inner {
  max-width: 880px;
  text-align: center;
  margin: 0 auto;
}

.hero-kicker {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #22c55e;
  margin-bottom: 12px;
}

.hero-title {
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 12px;
}

.hero-title span.accent {
  background: linear-gradient(120deg, #22c55e, #2dd4bf);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 14px;
  line-height: 1.9;
  color: #9ca3af;
  margin-bottom: 24px;
}

.hero-meta {
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 24px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid #4b5563;
  color: #e5e7eb;
  background: transparent;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.1s ease,
    box-shadow 0.2s ease;
}

.hero-button.primary {
  background: #22c55e;
  border-color: #22c55e;
  color: #022c22;
}

.hero-button.ghost {
  background: rgba(15, 23, 42, 0.6);
}

.hero-button.secondary {
  background: rgba(15, 23, 42, 0.85);
  border-color: #22c55e;
}

.hero-button.small {
  font-size: 12px;
  padding: 6px 14px;
}

.hero-button:hover {
  transform: translateY(-1px);
  background: #16a34a;
  border-color: #16a34a;
  color: #022c22;
  box-shadow: 0 18px 45px rgba(22, 163, 74, 0.35);
}

/* JSアニメ前の初期状態 */
.hero-kicker,
.hero-title,
.hero-subtitle,
.hero-buttons .hero-button {
  opacity: 0;
  transform: translateY(18px);
}

/* 共通セクション */
.section {
  padding: 64px 24px;
  background: linear-gradient(to bottom, rgba(2, 6, 23, 0.98), rgba(15, 23, 42, 0.98));
}

.section:nth-of-type(even) {
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.96), #020617);
}

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 24px;
}

.section-eyebrow {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #22c55e;
  margin-bottom: 6px;
}

.section-title {
  font-size: 22px;
  margin-bottom: 10px;
}

.section-text {
  font-size: 14px;
  line-height: 1.9;
  color: #9ca3af;
}

/* ScrollTrigger用の基本フェードクラス */
.js-fade-in,
.js-fade-up {
  opacity: 0;
  transform: translateY(18px);
}

/* ABOUT / イントロ */
.p-front-introduction {
  position: relative;
}

.p-front-introduction__canvas {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  pointer-events: none;
  background: radial-gradient(circle at top, rgba(34, 197, 94, 0.09), transparent 65%);
  z-index: -1;
}

.p-front-introduction__track {
  display: grid;
  gap: 24px;
}

.p-front-introduction__block-inner {
  position: relative;
  padding: 24px 20px;
  border-radius: 20px;
  border: 1px solid #1f2937;
  background: rgba(15, 23, 42, 0.92);
  overflow: hidden;
  transition:
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease;
}

.p-front-introduction__block-inner::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at top, rgba(34, 197, 94, 0.25), transparent 60%);
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.p-front-introduction__block-inner.is-active {
  border-color: #22c55e;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.98), #020617);
  box-shadow:
    0 0 0 1px rgba(34, 197, 94, 0.4),
    0 24px 80px rgba(0, 0, 0, 0.9);
}

.p-front-introduction__block-inner.is-active::before {
  opacity: 0.55;
}

.p-front-introduction__block-inner p {
  font-size: 14px;
  line-height: 1.9;
  color: #e5e7eb;
}

/* サーバーカード一覧 */
.p-front-case-mark__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.p-front-case-mark__item {
  border-radius: 18px;
  border: 1px solid #1f2937;
  background: rgba(15, 23, 42, 0.92);
  padding: 16px;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
}

.p-front-case-mark__item:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(34, 197, 94, 0.7);
  background: radial-gradient(circle at top, #020617, rgba(15, 23, 42, 0.96));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.9);
}

.c-case-mark-list__item-link {
  color: inherit;
  text-decoration: none;
  display: block;
  height: 100%;
}

.c-case-mark-list__item-mark p {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 8px;
}

.c-case-mark-list__item-image {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 10px;
}

.c-case-mark-list__item-image-inner {
  position: relative;
  padding-bottom: 56.25%;
  background: #020617;
}

.c-case-mark-list__item-image-inner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.p-front-case-mark__item:hover .c-case-mark-list__item-image-inner img {
  transform: scale(1.04);
}

.c-case-mark-list__item-title {
  font-size: 16px;
  margin-bottom: 6px;
}

.c-case-mark-list__item-description {
  font-size: 13px;
  line-height: 1.8;
  color: #9ca3af;
}

/* NEWSカード */
.p-front-posts__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.post-card {
  border-radius: 16px;
  border: 1px solid #1f2937;
  background: rgba(15, 23, 42, 0.92);
  padding: 16px;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(148, 163, 184, 0.8);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.9);
}

.post-card a {
  color: inherit;
  text-decoration: none;
  display: block;
}

/* ★ アイキャッチ画像用 */
.post-card-thumb {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 10px;
  background: #020617;
}

.post-card-thumb img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.post-card:hover .post-card-thumb img {
  transform: scale(1.04);
}

.post-title {
  font-size: 15px;
  margin-bottom: 6px;
}

.post-date {
  font-size: 11px;
  color: #6b7280;
}

.post-excerpt {
  font-size: 13px;
  color: #9ca3af;
  margin-top: 8px;
}

/* JOINステップ */
.p-front-join__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.join-step {
  border-radius: 16px;
  border: 1px solid #1f2937;
  background: rgba(15, 23, 42, 0.9);
  padding: 16px;
}

.step-num {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #22c55e;
  margin-bottom: 4px;
}

.join-step h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.join-step p {
  font-size: 13px;
  color: #9ca3af;
  line-height: 1.8;
}

/* レスポンシブ */
@media screen and (max-width: 1023px){
  .hero {
    padding-top: 80px;
  }

  .kontek-main-inner {
    padding-inline: 16px;
  }

  .section {
    padding-inline: 16px;
  }
}

@media screen and (max-width: 834px){
  .hero-title {
    font-size: 32px;
  }
}

@media screen and (max-width: 480px){
  .hero-subtitle {
    font-size: 12px;
  }

  .hero-button {
    padding: 8px 14px;
    font-size: 12px;
  }

  .p-front-enter__video {
    margin-top: 20px;
    max-width: 300px;
  }
}

/*=========================================================
  Cocoon から front-page を独立させる（※ヘッダーは触らない）
=========================================================*/

.home #sidebar,
.home .sidebar,
.home #sidebar-left,
.home #sidebar-right {
  display: none !important;
}

/* ★ ここでは #container を触らない。#content / #main だけフル幅化する */
.home #content,
.home #content-in,
.home #main {
  width: 100% !important;
  max-width: none !important;
  margin: 0 auto !important;
  padding: 0 !important;
  float: none !important;
  box-sizing: border-box;
}

/* コンテンツ側の wrap だけフル幅にする */
.home #main .wrap,
.home #content .wrap,
.home #content-in .wrap,
.home #main .main {
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.home .kontek-main {
  margin: 0 !important;
  padding: 0 !important;
}

/*=========================================================
  ボタンを見やすくする最終調整
=========================================================*/

/* すべての hero-button の文字色を白で固定 */
.hero-button {
  color: #ffffff !important;
}

/* primary ボタン（緑）の落ち着いた配色 */
.hero-button.primary {
  background: #15803d !important; /* 濃い緑 */
  border-color: #15803d !important;
  color: #ffffff !important;      /* 文字を白に */
}

/* hover 時も見やすく保つ */
.hero-button.primary:hover {
  background: #16a34a !important; /* 少し明るい緑 */
  border-color: #16a34a !important;
  color: #ffffff !important;      /* 白文字維持 */
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(22, 163, 74, 0.35);
}

/* ghost, secondary も文字色を白に統一 */
.hero-button.ghost,
.hero-button.secondary {
  color: #ffffff !important;
}
.hero-button.ghost:hover,
.hero-button.secondary:hover {
  color: #ffffff !important;
}

/*=========================================================
  ヒーロータイトル専用アニメーション
=========================================================*/
.hero-title.hero-title--stacked {
  position: relative;
  opacity: 1;
  transform: none;
}

.hero-title-line {
  display: inline-block;
  overflow: hidden;
}

.hero-title-chunk {
  display: inline-block;
  transform: translateY(120%);
  opacity: 0;
  animation: hero-title-rise 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.hero-title-line:nth-of-type(1) .hero-title-chunk {
  animation-delay: 0.2s;
}

.hero-title-line:nth-of-type(2) .hero-title-chunk:nth-of-type(1) {
  animation-delay: 0.5s;
}

.hero-title-line:nth-of-type(2) .hero-title-chunk:nth-of-type(2) {
  animation-delay: 0.7s;
}

@keyframes hero-title-rise {
  0% {
    transform: translateY(120%);
    opacity: 0;
  }
  55% {
    opacity: 1;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
