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

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

/*=========================================================
  デザインシステム v4（2026-09-18 全面リビルド）
  色・ライト/ダーク自動切替・ヘッダー/ナビ/記事/フッター等の
  サイト全体クロムは skins/konteku/style.css に一本化した
  （旧: この子テーマ側にも別途ライト定義を持っていたが、
  役割が重複するだけなので撤去）。
  ここ（子テーマ）が担当するのはレイアウト（フル幅・サイドバー
  非表示）、フロントページのヒーロー限定ボタン、スクロール演出のみ。
=========================================================*/

/* Apple風タイポグラフィ（システムフォント。和文はヒラギノ/Noto Sans JPへ） */
body,
input,
button,
select,
textarea {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro JP",
    "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP",
    "Yu Gothic", sans-serif;
  letter-spacing: 0.01em;
}

h1, h2, h3, h4, h5, h6,
.article-title,
.entry-title,
.hero-title {
  font-weight: 700;
  letter-spacing: -0.02em;
}

/*=========================================================
  Apple風コンポーネント微調整
  角丸18px、ヒアラインボーダー、押下時のマイクロインタラクション
  （色そのものは --kp-* に委ねる。形状・モーションだけをここで統一）
=========================================================*/
.hero-button,
.article a.button,
input[type="submit"],
button {
  border-radius: 9999px !important;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.2s ease, background-color 0.2s ease;
}
.hero-button:active,
.article a.button:active,
button:active {
  transform: scale(0.95);
}

/*=========================================================
  スクロール演出（GSAP ScrollTrigger、全ページ共通）
=========================================================*/
.kontek-reveal {
  opacity: 0;
  transform: translateY(24px);
}
.kontek-reveal.kontek-revealed {
  opacity: 1;
  transform: translateY(0);
}
/* 画像・カード系はフェード+上昇に加え、軽いスケールイン(Apple製品ページ参考) */
.kontek-reveal-visual {
  transform: translateY(24px) scale(0.94);
}
.kontek-reveal-visual.kontek-revealed {
  transform: translateY(0) scale(1);
}

/* 背景動画（ヒーローセクション内に限定） */
.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: var(--kp-bg);
  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 var(--kp-border);
  color: var(--kp-text);
  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: var(--kp-accent-green-strong);
  border-color: var(--kp-accent-green-strong);
  color: #ffffff;
}

.hero-button.ghost {
  background: var(--kp-bg-panel-soft);
  color: var(--kp-text);
}

.hero-button.secondary {
  background: var(--kp-bg-panel);
  border-color: var(--kp-accent-green);
  color: var(--kp-text);
}

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

.hero-button:hover {
  transform: translateY(-1px);
  background: var(--kp-accent-green);
  border-color: var(--kp-accent-green);
  color: #ffffff;
  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: var(--kp-bg);
}

.section:nth-of-type(even) {
  background: var(--kp-bg-soft);
}

.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;
  }
}

/*=========================================================
  レイアウトをサイト全体で統一（旧: front-page(.home)限定だった処理を拡張）
  サイドバー非表示・フル幅化を全ページに適用し、トップページと
  記事・固定ページの見た目の断絶をなくす。
=========================================================*/

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

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

#main {
  padding: 56px 32px !important;
}

.home #main {
  padding: 0 !important;
}

@media screen and (max-width: 768px) {
  #main {
    padding: 32px 16px !important;
  }
}

.article {
  max-width: 920px;
  margin: 0 auto;
}

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

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

/* 記事・固定ページ本文の読みやすさ確保（フル幅化後の行長調整） */
.article .content-in .wrap,
.single .entry-content,
.page .entry-content {
  max-width: 840px;
  margin-left: auto;
  margin-right: auto;
}

/*=========================================================
  ボタンを見やすくする最終調整（ライト/ダーク自動切替対応）
=========================================================*/

.hero-button {
  border-radius: 9999px !important;
}

.hero-button.primary {
  background: var(--kp-accent-green-strong) !important;
  border-color: var(--kp-accent-green-strong) !important;
  color: #ffffff !important;
}

.hero-button.primary:hover {
  background: var(--kp-accent-green) !important;
  border-color: var(--kp-accent-green) !important;
  color: #ffffff !important;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 30px rgba(22, 163, 74, 0.35);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}
.hero-button.primary:active {
  transform: scale(0.95);
}

.hero-button.ghost {
  color: var(--kp-text) !important;
  background: var(--kp-bg-panel-soft) !important;
  border: 1px solid var(--kp-border) !important;
}
.hero-button.ghost:hover {
  color: var(--kp-accent-green) !important;
  border-color: var(--kp-accent-green) !important;
}

.hero-button.secondary {
  color: var(--kp-text) !important;
  background: var(--kp-bg-panel) !important;
  border: 1px solid var(--kp-accent-green) !important;
}
.hero-button.secondary:hover {
  color: #ffffff !important;
  background: var(--kp-accent-green) !important;
  border-color: var(--kp-accent-green) !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;
  }
}
