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

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

/* ============================================
   Corporate Site - Core CSS System
   PATIOLA株式会社
   WordPress + Cocoon 最適化版
   ============================================ */

/* ============================================
   SECTION 1: COCOON OVERRIDE
   Cocoonデフォルトスタイルの完全無効化
   ============================================ */

/* --- 1.1 Body/HTML基本リセット --- */
html, body {
  margin: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
  height: auto !important;
  background: #fff !important;
}

body.page,
body.single,
body.home {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* --- 1.2 コンテンツ幅・レイアウトの完全リセット --- */
.wrap,
.content-width,
.content-in,
.content,
#content,
.main,
#main,
.no-sidebar .content,
.no-sidebar .main {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  border: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  background: transparent !important;
  float: none !important;
}

.article,
.entry-content,
.post,
.page,
.type-page {
  padding: 0 !important;
  margin: 0 !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  max-width: none !important;
}

/* --- 1.3 Cocoonヘッダー完全非表示 --- */
.header-container,
#header,
.header,
.header-in,
.navi,
.navi-in,
.mobile-menu-buttons,
#navi,
.site-header-container {
  display: none !important;
}

/* --- 1.4 Cocoonフッター完全非表示 --- */
.footer,
#footer,
.footer-bottom,
.footer-in,
.footer-widgets,
#footer-before {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* フッター内の空要素・Pタグも消す */
.footer .credit p,
.footer .copyright p,
.footer p:empty,
.footer *:last-child {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* --- 1.5 不要な要素の完全非表示 --- */
.breadcrumb,
.breadcrumb-in,
.entry-date,
.post-date,
.post-update,
.date-tags,
.author-info,
.eye-catch,
.sns-share,
.sns-follow,
.related-entries,
.comments,
.comment-area,
.pagination,
.pager-links,
.post-navi,
.toc,
.toc-content,
.ad-area,
.ad-label,
.widget-entry-cards,
.sidebar,
#sidebar,
.sidebar-in,
.article-header,
.article-footer {
  display: none !important;
}

/* --- 1.6 記事タイトル非表示（カスタムで実装するため） --- */
.entry-title,
.article-title,
h1.entry-title {
  display: none !important;
}

/* --- 1.7 WordPressブロックの余白リセット --- */
.wp-block-html {
  margin-bottom: 0 !important;
}

/* --- 1.8 セクションの余白リセット --- */
.cp-section,
.cp-hero,
.cp-page-header,
.cp-cta,
.cp-footer,
section.cp-section,
section.cp-section-lg {
  margin-bottom: 0 !important;
}

/* CTAセクション直後の空要素を消す */
.cp-cta + p,
.cp-cta + div:empty,
.cp-cta + br {
  display: none !important;
  margin: 0 !important;
  height: 0 !important;
}

/* ============================================
   SECTION 1.5: AIデザイン保護シールド
   Cocoonの装飾干渉を完全ブロック
   ============================================ */

/* --- リスト（ul, ol, li）の強制リセット --- */
.entry-content .cp-section ul,
.entry-content .cp-section ol,
.entry-content .cp-section li,
.entry-content .cp-nav-list,
.entry-content .cp-footer-links,
.entry-content .cp-footer-links li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
}

.entry-content .cp-section li::before,
.entry-content .cp-section li::after,
.entry-content .cp-nav-list li::before,
.entry-content .cp-footer-links li::before {
  display: none !important;
  content: none !important;
}

/* --- dd（定義リスト回答部分）のマージンリセット --- */
dd,
.entry-content dd,
.cp-card dd {
  margin-left: 0 !important;
  padding-left: 0 !important;
}

/* --- 見出し（h1-h4）の強制リセット --- */
.entry-content .cp-section h1,
.entry-content .cp-section h2,
.entry-content .cp-section h3,
.entry-content .cp-section h4,
.entry-content h1.cp-hero-title,
.entry-content h1.cp-page-title,
.entry-content h2.cp-heading-primary,
.entry-content h2.cp-heading-secondary,
.entry-content h3.cp-heading-tertiary,
.entry-content h3.cp-card-title {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
}

/* --- 見出しの余白調整（Cocoon inline-css上書き） --- */
.article h2,
.article h3,
.entry-content h2,
.entry-content h3,
.entry-content .cp-heading-primary,
.entry-content .cp-heading-secondary,
.entry-content .cp-heading-tertiary {
  margin-bottom: 1rem !important;
}

/* --- テーブルの強制リセット --- */
.entry-content .cp-section table,
.entry-content .cp-table,
.entry-content .cp-table th,
.entry-content .cp-table td {
  background: transparent !important;
}

/* Cocoonのシマシマ模様を消す */
.entry-content .cp-table tr:nth-child(odd),
.entry-content .cp-table tr:nth-child(even) {
  background: transparent !important;
}

/* --- リンク（aタグ）の強制リセット --- */
.entry-content .cp-section a,
.entry-content .cp-btn,
.entry-content .cp-nav-link,
.entry-content .cp-logo,
.entry-content .cp-footer-links a {
  text-decoration: none !important;
  color: inherit !important;
}

.entry-content .cp-section a:hover,
.entry-content .cp-btn:hover {
  text-decoration: none !important;
}

/* ボタンのホバー色は個別に指定 */
.entry-content .cp-btn-primary:hover {
  color: var(--cp-text-inverse) !important;
}

.entry-content .cp-btn-secondary:hover {
  color: var(--cp-accent) !important;
}

.entry-content .cp-nav-link:hover,
.entry-content .cp-footer-links a:hover {
  color: var(--cp-accent) !important;
}

/* --- 画像の影・枠線リセット --- */
.entry-content .cp-section img,
.entry-content .cp-zigzag-media img,
.entry-content .cp-card-img img {
  box-shadow: none !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* zigzag画像には意図的なシャドウを適用 */
.entry-content .cp-zigzag-media img {
  box-shadow: var(--cp-shadow-lg) !important;
}

/* --- Pタグの余白リセット --- */
.entry-content .cp-text,
.entry-content .cp-card-text,
.entry-content .cp-footer-desc,
.entry-content .cp-copyright {
  margin-bottom: 0 !important;
}

/* --- カスタムフッターの保護 --- */
.entry-content .cp-footer {
  margin-bottom: 0 !important;
  padding-bottom: 2rem !important;
}

.entry-content .cp-footer p,
.entry-content .cp-copyright {
  margin-bottom: 0 !important;
}

/* ============================================
   SECTION 2: GOOGLE FONTS & CSS VARIABLES
   ============================================ */

/* --- Google Fonts Import --- */
@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Noto+Sans+JP:wght@400;500;700&display=swap");

/* --- CSS Custom Properties --- */
:root {
  /* Primary Colors - Deep Navy & Cyan Accent */
  --cp-primary: #0f172a;
  --cp-primary-light: #1e293b;
  --cp-secondary: #334155;
  --cp-accent: #06b6d4;
  --cp-accent-hover: #0891b2;
  --cp-accent-soft: #cffafe;

  /* Surface Colors */
  --cp-surface: #f1f5f9;
  --cp-surface-warm: #faf8f5;
  --cp-surface-elevated: #ffffff;
  --cp-border: #e2e8f0;
  --cp-border-light: #f1f5f9;

  /* Text Colors */
  --cp-text: #1e293b;
  --cp-text-muted: #64748b;
  --cp-text-light: #94a3b8;
  --cp-text-inverse: #ffffff;

  /* Typography */
  --cp-font-en: "Manrope", sans-serif;
  --cp-font-jp: "Noto Sans JP", sans-serif;
  --cp-font-base: var(--cp-font-jp);

  /* Font Sizes */
  --cp-text-xs: 0.75rem;
  --cp-text-sm: 0.875rem;
  --cp-text-base: 1rem;
  --cp-text-lg: 1.125rem;
  --cp-text-xl: 1.25rem;
  --cp-text-2xl: 1.5rem;
  --cp-text-3xl: 2rem;
  --cp-text-4xl: 2.5rem;
  --cp-text-5xl: 3.5rem;

  /* Spacing */
  --cp-space-xs: 0.5rem;
  --cp-space-sm: 1rem;
  --cp-space-md: 1.25rem;
  --cp-space-lg: 2rem;
  --cp-space-xl: 3rem;
  --cp-space-2xl: 5rem;
  --cp-space-3xl: 8rem;

  /* Border Radius */
  --cp-radius-sm: 4px;
  --cp-radius-md: 8px;
  --cp-radius-lg: 16px;
  --cp-radius-xl: 24px;

  /* Shadows */
  --cp-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --cp-shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.06),
    0 2px 4px -2px rgba(15, 23, 42, 0.06);
  --cp-shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08),
    0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --cp-shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1),
    0 8px 10px -6px rgba(15, 23, 42, 0.06);
  --cp-shadow-glow: 0 0 40px rgba(6, 182, 212, 0.15);

  /* Transitions */
  --cp-transition-fast: 0.15s ease;
  --cp-transition-base: 0.3s ease;
  --cp-transition-slow: 0.5s ease;
}

/* ============================================
   SECTION 3: BASE STYLES
   ============================================ */

/* --- Box Sizing Reset --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* --- Base Typography --- */
.cp-base,
.entry-content {
  font-family: var(--cp-font-base);
  font-size: var(--cp-text-base);
  line-height: 1.8;
  color: var(--cp-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   SECTION 4: LAYOUT COMPONENTS
   ============================================ */

/* --- Container --- */
.cp-container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 var(--cp-space-md);
}

.cp-container-narrow {
  max-width: 800px;
}

.cp-container-wide {
  max-width: 1400px;
}

/* --- Section --- */
.cp-section {
  padding: var(--cp-space-xl) 0;
  position: relative;
}

.cp-section-lg {
  padding: var(--cp-space-2xl) 0;
}

/* --- Section Backgrounds --- */
.cp-bg-primary {
  background: var(--cp-primary);
  color: var(--cp-text-inverse);
}

.cp-bg-surface {
  background: var(--cp-surface);
}

.cp-bg-warm {
  background: linear-gradient(
    180deg,
    var(--cp-surface-warm) 0%,
    var(--cp-surface) 100%
  );
}

.cp-bg-gradient {
  background: linear-gradient(
    135deg,
    var(--cp-primary) 0%,
    var(--cp-primary-light) 50%,
    var(--cp-secondary) 100%
  );
  color: var(--cp-text-inverse);
}


/* ============================================
   SECTION 5: TYPOGRAPHY
   ============================================ */

.cp-heading-primary {
  font-family: var(--cp-font-en);
  font-size: var(--cp-text-4xl);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--cp-primary);
  margin-bottom: var(--cp-space-md);
}

.cp-heading-secondary {
  font-family: var(--cp-font-jp);
  font-size: var(--cp-text-2xl);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--cp-primary);
  margin-bottom: var(--cp-space-sm);
}

.cp-heading-tertiary {
  font-family: var(--cp-font-jp);
  font-size: var(--cp-text-xl);
  font-weight: 600;
  line-height: 1.5;
  color: var(--cp-text);
  margin-bottom: var(--cp-space-xs);
}

.cp-section-label {
  font-family: var(--cp-font-en);
  font-size: var(--cp-text-sm);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cp-accent);
  margin-bottom: var(--cp-space-xs);
  display: block;
}

.cp-text {
  font-size: var(--cp-text-base);
  line-height: 2;
  color: var(--cp-text-muted);
}

.cp-text-lg {
  font-size: var(--cp-text-lg);
  line-height: 1.9;
}

.cp-lead {
  font-size: var(--cp-text-xl);
  line-height: 1.8;
  color: var(--cp-text);
  font-weight: 400;
}

/* --- Inverse text for dark backgrounds --- */
.cp-bg-primary .cp-heading-primary,
.cp-bg-primary .cp-heading-secondary,
.cp-bg-gradient .cp-heading-primary,
.cp-bg-gradient .cp-heading-secondary {
  color: var(--cp-text-inverse);
}

.cp-bg-primary .cp-text,
.cp-bg-gradient .cp-text {
  color: rgba(255, 255, 255, 0.8);
}

.cp-bg-primary .cp-section-label,
.cp-bg-gradient .cp-section-label {
  color: var(--cp-accent);
}

/* ============================================
   SECTION 6: BUTTONS
   ============================================ */

.cp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--cp-space-xs);
  padding: 1rem 2rem;
  font-family: var(--cp-font-jp);
  font-size: var(--cp-text-base);
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: var(--cp-radius-md);
  cursor: pointer;
  transition: all var(--cp-transition-base);
  position: relative;
  overflow: hidden;
}

.cp-btn-primary {
  background: linear-gradient(
    135deg,
    var(--cp-accent) 0%,
    var(--cp-accent-hover) 100%
  );
  color: var(--cp-text-inverse);
  box-shadow: var(--cp-shadow-md), 0 4px 14px rgba(6, 182, 212, 0.3);
}

.cp-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--cp-shadow-lg), 0 8px 20px rgba(6, 182, 212, 0.4);
  color: var(--cp-text-inverse);
}

.cp-btn-secondary {
  background: var(--cp-surface-elevated);
  color: var(--cp-primary);
  border: 2px solid var(--cp-border);
  box-shadow: var(--cp-shadow-sm);
}

.cp-btn-secondary:hover {
  border-color: var(--cp-accent);
  color: var(--cp-accent);
  transform: translateY(-2px);
  box-shadow: var(--cp-shadow-md);
}

.cp-btn-outline {
  background: rgba(255, 255, 255, 0.85);
  color: var(--cp-primary);
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--cp-shadow-sm);
}

.cp-btn-outline:hover {
  border-color: var(--cp-accent);
  color: var(--cp-accent) !important;
  background: rgba(255, 255, 255, 1);
  transform: translateY(-2px);
  box-shadow: var(--cp-shadow-md);
}

.cp-btn-lg {
  padding: 1.25rem 2.5rem;
  font-size: var(--cp-text-lg);
}

.cp-btn-sm {
  padding: 0.75rem 1.5rem;
  font-size: var(--cp-text-sm);
}

/* ============================================
   SECTION 7: CARDS
   ============================================ */

.cp-card {
  background: var(--cp-surface-elevated);
  border-radius: var(--cp-radius-lg);
  padding: var(--cp-space-lg);
  box-shadow: var(--cp-shadow-md);
  border: 1px solid var(--cp-border-light);
  transition: all var(--cp-transition-base);
  position: relative;
}

.cp-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--cp-shadow-xl);
  border-color: transparent;
}

.cp-card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--cp-accent-soft) 0%, #e0f2fe 100%);
  border-radius: var(--cp-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--cp-space-md);
  font-size: var(--cp-text-2xl);
}

.cp-card-title {
  font-family: var(--cp-font-jp);
  font-size: var(--cp-text-xl);
  font-weight: 700;
  color: var(--cp-primary);
  margin-bottom: var(--cp-space-xs);
  text-align: center;
}

.cp-card-text {
  font-size: var(--cp-text-base);
  color: var(--cp-text-muted);
  line-height: 1.8;
}

/* --- Quote Card (左側アクセントバー) --- */
.cp-quote-card {
  background: var(--cp-surface-elevated);
  border-radius: var(--cp-radius-md);
  padding: var(--cp-space-md) var(--cp-space-lg);
  box-shadow: var(--cp-shadow-sm);
  border: 1px solid var(--cp-border-light);
  border-left: 4px solid var(--cp-accent);
  transition: all var(--cp-transition-base);
  position: relative;
}

.cp-quote-card:hover {
  transform: translateX(4px);
  box-shadow: var(--cp-shadow-md);
  border-left-width: 6px;
}

.cp-quote-text,
.entry-content .cp-quote-text {
  font-family: var(--cp-font-jp);
  font-size: var(--cp-text-base);
  font-weight: 500;
  color: var(--cp-text);
  line-height: 1.7;
  margin: 0 !important;
  margin-bottom: 0 !important;
}

/* --- Card with image --- */
.cp-card-img {
  padding: 0;
  overflow: hidden;
}

.cp-card-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform var(--cp-transition-slow);
}

.cp-card-img:hover img {
  transform: scale(1.05);
}

.cp-card-img-body {
  padding: var(--cp-space-md);
}

/* ============================================
   SECTION 8: GRID SYSTEM
   ============================================ */

.cp-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--cp-space-lg);
}

.cp-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--cp-space-lg);
}

.cp-grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--cp-space-md);
}

@media (min-width: 640px) {
  .cp-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .cp-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .cp-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .cp-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================
   SECTION 9: ZIGZAG LAYOUT
   ============================================ */

.cp-zigzag {
  display: flex;
  flex-direction: column;
  gap: var(--cp-space-2xl);
}

.cp-zigzag-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--cp-space-lg);
  align-items: center;
}

@media (min-width: 768px) {
  .cp-zigzag-item {
    grid-template-columns: 1fr 1fr;
    gap: var(--cp-space-xl);
  }

  .cp-zigzag-item:nth-child(even) .cp-zigzag-media {
    order: 2;
  }

  .cp-zigzag-item:nth-child(even) .cp-zigzag-content {
    order: 1;
  }
}

.cp-zigzag-media img {
  width: 100%;
  border-radius: var(--cp-radius-lg);
  box-shadow: var(--cp-shadow-lg);
}

.cp-zigzag-content {
  padding: var(--cp-space-md) 0;
}

/* ============================================
   SECTION 10: TABLE
   ============================================ */

.cp-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--cp-surface-elevated);
  border-radius: var(--cp-radius-lg);
  overflow: hidden;
  box-shadow: var(--cp-shadow-md);
  border: 1px solid var(--cp-border-light);
}

.cp-table th,
.cp-table td {
  padding: var(--cp-space-md) var(--cp-space-lg);
  text-align: left;
  border-bottom: 1px solid var(--cp-border-light);
}

.cp-table tr:last-child th,
.cp-table tr:last-child td {
  border-bottom: none;
}

.cp-table th {
  width: 30%;
  font-weight: 600;
  font-size: var(--cp-text-sm);
  color: var(--cp-accent-hover);
  background: var(--cp-surface);
  vertical-align: top;
}

.cp-table td {
  color: var(--cp-text);
  line-height: 1.8;
}

@media (max-width: 640px) {
  .cp-table th,
  .cp-table td {
    padding: var(--cp-space-sm) var(--cp-space-md);
    font-size: var(--cp-text-sm);
  }

  .cp-table th {
    width: 35%;
  }
}


/* ============================================
   SECTION 11: FORM STYLES
   ============================================ */

.cp-form-wrapper {
  background: var(--cp-surface-elevated);
  border-radius: var(--cp-radius-xl);
  padding: var(--cp-space-xl);
  box-shadow: var(--cp-shadow-lg);
  border: 1px solid var(--cp-border-light);
}

/* --- Contact Form 7 Override --- */
.cp-form-wrapper .wpcf7-form {
  font-family: var(--cp-font-jp);
}

.cp-form-wrapper .wpcf7-form p {
  margin-bottom: var(--cp-space-md);
}

.cp-form-wrapper .wpcf7-form label {
  display: block;
  font-weight: 500;
  color: var(--cp-text);
  margin-bottom: var(--cp-space-xs);
}

.cp-form-wrapper .wpcf7-form input[type="text"],
.cp-form-wrapper .wpcf7-form input[type="email"],
.cp-form-wrapper .wpcf7-form input[type="tel"],
.cp-form-wrapper .wpcf7-form textarea,
.cp-form-wrapper .wpcf7-form select {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--cp-font-jp);
  font-size: var(--cp-text-base);
  border: 1px solid var(--cp-border);
  border-radius: var(--cp-radius-md);
  background: var(--cp-surface-elevated);
  transition: border-color var(--cp-transition-fast), box-shadow var(--cp-transition-fast);
}

.cp-form-wrapper .wpcf7-form input:focus,
.cp-form-wrapper .wpcf7-form textarea:focus,
.cp-form-wrapper .wpcf7-form select:focus {
  outline: none;
  border-color: var(--cp-accent);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.cp-form-wrapper .wpcf7-form textarea {
  min-height: 150px;
  resize: vertical;
}

.cp-form-wrapper .wpcf7-form input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  font-family: var(--cp-font-jp);
  font-size: var(--cp-text-base);
  font-weight: 600;
  color: var(--cp-text-inverse);
  background: linear-gradient(135deg, var(--cp-accent) 0%, var(--cp-accent-hover) 100%);
  border: none;
  border-radius: var(--cp-radius-md);
  cursor: pointer;
  transition: all var(--cp-transition-base);
  box-shadow: var(--cp-shadow-md), 0 4px 14px rgba(6, 182, 212, 0.3);
}

.cp-form-wrapper .wpcf7-form input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: var(--cp-shadow-lg), 0 8px 20px rgba(6, 182, 212, 0.4);
}

.cp-form-wrapper .wpcf7-not-valid-tip {
  color: #ef4444;
  font-size: var(--cp-text-sm);
  margin-top: var(--cp-space-xs);
}

.cp-form-wrapper .wpcf7-response-output {
  margin-top: var(--cp-space-md);
  padding: var(--cp-space-md);
  border-radius: var(--cp-radius-md);
}

/* ============================================
   SECTION 12: HERO SECTION
   ============================================ */

.cp-hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-top: 80px; /* 固定ヘッダー分の余白 */
}

.cp-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.85) 0%,
    rgba(12, 25, 41, 0.8) 50%,
    rgba(51, 65, 85, 0.85) 100%
  );
  pointer-events: none;
}

.cp-hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      ellipse at 20% 80%,
      rgba(6, 182, 212, 0.2) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 80% 20%,
      rgba(99, 102, 241, 0.1) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.cp-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.cp-hero-title {
  font-family: var(--cp-font-en);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--cp-text-inverse);
  margin-bottom: var(--cp-space-md);
  animation: cp-fadeInUp 0.8s ease forwards;
}

.cp-hero-subtitle {
  font-size: var(--cp-text-xl);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  margin-bottom: var(--cp-space-lg);
  animation: cp-fadeInUp 0.8s ease 0.2s forwards;
  opacity: 0;
}

.cp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--cp-space-sm);
  animation: cp-fadeInUp 0.8s ease 0.4s forwards;
  opacity: 0;
}

/* ============================================
   SECTION 13: ANIMATIONS
   ============================================ */

@keyframes cp-fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cp-fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.cp-animate-in {
  animation: cp-fadeInUp 0.6s ease forwards;
}

.cp-animate-delay-1 {
  animation-delay: 0.1s;
  opacity: 0;
}
.cp-animate-delay-2 {
  animation-delay: 0.2s;
  opacity: 0;
}
.cp-animate-delay-3 {
  animation-delay: 0.3s;
  opacity: 0;
}
.cp-animate-delay-4 {
  animation-delay: 0.4s;
  opacity: 0;
}

/* ============================================
   SECTION 14: HEADER & NAVIGATION
   ============================================ */

.cp-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--cp-border-light);
  padding: var(--cp-space-sm) 0;
}

.cp-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cp-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.cp-logo img {
  height: 40px;
  width: auto;
  display: block;
}

@media (max-width: 767px) {
  .cp-header {
    padding: 0.5rem 0;
  }

  .cp-logo img {
    height: 28px;
  }
}

.cp-logo:hover {
  opacity: 0.8;
}

.cp-nav {
  display: none;
}

.cp-nav-list {
  display: flex;
  gap: var(--cp-space-lg);
  list-style: none !important;
  margin: 0;
  padding: 0;
}

.cp-nav-list li,
.entry-content .cp-nav-list li,
.cp-header .cp-nav-list li {
  list-style: none !important;
  list-style-type: none !important;
  position: relative;
  margin: 0;
  padding: 0;
}

.cp-nav-list li::before,
.entry-content .cp-nav-list li::before,
.cp-header .cp-nav-list li::before,
.cp-nav-list li::marker {
  display: none !important;
  content: none !important;
}

.cp-nav-link {
  font-family: var(--cp-font-jp);
  font-size: var(--cp-text-sm);
  font-weight: 600;
  color: var(--cp-primary);
  text-decoration: none;
  transition: color var(--cp-transition-fast);
  position: relative;
}

.cp-nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cp-accent);
  transition: width var(--cp-transition-base);
}

.cp-nav-link:hover {
  color: var(--cp-accent);
}

.cp-nav-link:hover::after {
  width: 100%;
}

@media (min-width: 768px) {
  .cp-nav {
    display: block;
  }
}

/* ============================================
   SECTION 15: FOOTER
   ============================================ */

.cp-footer {
  background: var(--cp-primary);
  color: var(--cp-text-inverse);
  padding: var(--cp-space-2xl) 0 var(--cp-space-lg);
}

.cp-footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--cp-space-xl);
  margin-bottom: var(--cp-space-xl);
}

@media (min-width: 768px) {
  .cp-footer-inner {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.cp-footer-brand {
  font-family: var(--cp-font-en);
  font-size: var(--cp-text-xl);
  font-weight: 800;
  margin-bottom: var(--cp-space-sm);
}

.cp-footer-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--cp-text-sm);
  line-height: 1.8;
}

.cp-footer-address {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--cp-text-xs);
  line-height: 1.6;
  margin-top: var(--cp-space-sm);
}

.cp-footer-title {
  font-size: var(--cp-text-sm);
  font-weight: 600;
  margin-bottom: var(--cp-space-sm);
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.cp-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cp-footer-links li {
  margin-bottom: var(--cp-space-xs);
}

.cp-footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: var(--cp-text-sm);
  transition: color var(--cp-transition-fast);
}

.cp-footer-links a:hover {
  color: var(--cp-accent);
}

.cp-footer-bottom {
  padding-top: var(--cp-space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.cp-copyright {
  font-size: var(--cp-text-xs);
  color: rgba(255, 255, 255, 0.5);
}


/* ============================================
   SECTION 16: PAGE HEADER (Sub Pages)
   ============================================ */

.cp-page-header {
  padding: calc(80px + var(--cp-space-2xl)) 0 var(--cp-space-2xl);
  background: linear-gradient(
    135deg,
    var(--cp-primary) 0%,
    var(--cp-primary-light) 100%
  );
  color: var(--cp-text-inverse);
}

.cp-page-title {
  font-family: var(--cp-font-en);
  font-size: var(--cp-text-3xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: var(--cp-space-xs);
}

.cp-page-subtitle {
  font-size: var(--cp-text-base);
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   SECTION 17: CTA SECTION
   ============================================ */

.cp-cta {
  background: linear-gradient(
    135deg,
    var(--cp-primary) 0%,
    var(--cp-secondary) 100%
  );
  position: relative;
  overflow: hidden;
}

.cp-cta::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(
    ellipse,
    rgba(6, 182, 212, 0.25) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.cp-cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

/* ============================================
   SECTION 18: UTILITIES
   ============================================ */

/* --- Text Alignment --- */
.cp-text-center {
  text-align: center;
}
.cp-text-left {
  text-align: left;
}
.cp-text-right {
  text-align: right;
}

/* --- Margin Bottom --- */
.cp-mb-0 {
  margin-bottom: 0;
}
.cp-mb-xs {
  margin-bottom: var(--cp-space-xs);
}
.cp-mb-sm {
  margin-bottom: var(--cp-space-sm);
}
.cp-mb-md {
  margin-bottom: var(--cp-space-md);
}
.cp-mb-lg {
  margin-bottom: var(--cp-space-lg);
}
.cp-mb-xl {
  margin-bottom: var(--cp-space-xl);
}

/* --- Margin Top --- */
.cp-mt-0 {
  margin-top: 0;
}
.cp-mt-xs {
  margin-top: var(--cp-space-xs);
}
.cp-mt-sm {
  margin-top: var(--cp-space-sm);
}
.cp-mt-md {
  margin-top: var(--cp-space-md);
}
.cp-mt-lg {
  margin-top: var(--cp-space-lg);
}
.cp-mt-xl {
  margin-top: var(--cp-space-xl);
}

/* --- Centering --- */
.cp-mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* --- Max Width --- */
.cp-max-w-md {
  max-width: 600px;
}
.cp-max-w-lg {
  max-width: 800px;
}

/* ============================================
   SECTION 19: RESPONSIVE TYPOGRAPHY
   ============================================ */

@media (max-width: 768px) {
  :root {
    --cp-text-4xl: 2rem;
    --cp-text-3xl: 1.75rem;
    --cp-text-2xl: 1.375rem;
  }

  .cp-section {
    padding: var(--cp-space-lg) 0;
  }

  .cp-section-lg {
    padding: var(--cp-space-xl) 0;
  }

  .cp-hero {
    min-height: auto;
    padding: calc(70px + var(--cp-space-xl)) 0 var(--cp-space-xl);
  }

  .cp-hero-title {
    font-size: 1.75rem;
    line-height: 1.3;
    margin-bottom: var(--cp-space-sm);
  }

  .cp-section-label {
    font-size: var(--cp-text-xs);
    margin-bottom: 0.25rem;
  }

  .cp-hero-subtitle {
    font-size: var(--cp-text-base);
    line-height: 1.7;
    margin-bottom: var(--cp-space-md);
  }

  .cp-hero-actions {
    flex-direction: row;
    gap: var(--cp-space-xs);
  }

  .cp-hero-actions .cp-btn-lg {
    flex: 1;
    text-align: center;
    padding: 0.75rem 0.5rem;
    font-size: var(--cp-text-sm);
  }
}

/* ============================================
   SECTION 20: MOBILE MENU (CSS Only)
   ============================================ */

/* --- チェックボックス（非表示） --- */
.cp-menu-checkbox {
  display: none;
}

/* --- ハンバーガーボタン --- */
.cp-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.cp-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--cp-primary);
  margin: 2px 0;
  transition: all var(--cp-transition-base);
  border-radius: 2px;
}

/* PC表示時はハンバーガー非表示 */
@media (min-width: 768px) {
  .cp-menu-btn {
    display: none;
  }
}

/* --- モバイルナビゲーション --- */
.cp-mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.97) 0%, rgba(30, 41, 59, 0.97) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  padding-top: 120px;
}

/* チェック時にモバイルナビ表示 */
.cp-menu-checkbox:checked ~ .cp-mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.cp-mobile-nav-list {
  list-style: none !important;
  padding: 0;
  margin: 0;
  text-align: center;
  width: 100%;
  max-width: 300px;
}

.cp-mobile-nav-list li {
  list-style: none !important;
  list-style-type: none !important;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cp-mobile-nav-list li::before,
.cp-mobile-nav-list li::marker {
  display: none !important;
  content: none !important;
}

.cp-mobile-nav-list li:last-child {
  border-bottom: none;
}

.cp-mobile-nav-link {
  font-family: var(--cp-font-jp);
  font-size: var(--cp-text-lg);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: all var(--cp-transition-base);
  padding: var(--cp-space-md) var(--cp-space-lg);
  padding-left: calc(var(--cp-space-lg) + 12px);
  display: block;
  position: relative;
}

.cp-mobile-nav-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 50%;
  background: var(--cp-accent);
  border-radius: 2px;
  transition: height var(--cp-transition-base);
}

.cp-mobile-nav-link:hover {
  color: var(--cp-accent);
}

.cp-mobile-nav-link:hover::before {
  height: 70%;
}

/* --- ハンバーガー → × アニメーション --- */
.cp-menu-checkbox:checked ~ .cp-header .cp-menu-btn span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.cp-menu-checkbox:checked ~ .cp-header .cp-menu-btn span:nth-child(2) {
  opacity: 0;
}

.cp-menu-checkbox:checked ~ .cp-header .cp-menu-btn span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* PC表示時はモバイルナビ非表示 */
@media (min-width: 768px) {
  .cp-mobile-nav {
    display: none !important;
  }
}

/* ============================================
   SECTION 21: PRIVACY PAGE SPECIFIC
   ============================================ */

.entry-content ul {
  padding-left: 1.5rem;
  margin: 1rem 0;
}

.entry-content ul li {
  list-style: disc;
  margin-bottom: 0.5rem;
  color: var(--cp-text-muted);
}

/* ============================================
   SECTION 22: PRINT STYLES
   ============================================ */

@media print {
  .cp-header,
  .cp-footer,
  .cp-cta {
    display: none !important;
  }

  .cp-section {
    padding: 1rem 0;
  }

  .cp-card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* ============================================
   END OF CSS
   ============================================ */