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

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

/*
  ========================================================================
  Orchis Studio 共通デザインコード（子テーマ style.css / 全体追加CSS用）
  ========================================================================
  WordPressの子テーマの style.css、またはカスタマイザーの「追加CSS」に
  貼り付けてサイト全体に適用させてください。
  ========================================================================
*/

/* --- 1. WordPress/Cocoon デフォルトスタイル強力リセット --- */
body.page-template-default .site-inner,
body.page-template-default .content-inner,
body.page-template-default .entry-content,
body.page-template-default #content,
body.page-template-default #main,
.page-template-tmp-content-only .site-inner,
.page-template-tmp-content-only .content-inner,
.page-template-tmp-content-only .entry-content,
.page-template-tmp-content-only #content,
.page-template-tmp-content-only #main {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

/* WordPressの管理者バーがある場合のヘッダー位置自動調整 */
body.admin-bar .oslp-header {
  top: 32px !important;
}
@media screen and (max-width: 782px) {
  body.admin-bar .oslp-header {
    top: 46px !important;
  }
}

/* --- 2. CSS変数 ＆ 基本ラッパー定義 --- */
.oslp-wrapper {
  --oslp-primary: #7c5295;
  --oslp-primary-light: #ebdcf0;
  --oslp-primary-dark: #58336d;
  --oslp-accent: #dfba6b;
  --oslp-accent-dark: #b89243;
  --oslp-bg-light: #fcfbfe;
  --oslp-bg-dark: #f6f3f8;
  --oslp-text: #2e2336;
  --oslp-text-muted: #60526b;
  --oslp-white: #ffffff;
  --oslp-border: rgba(124, 82, 149, 0.12);
  --oslp-shadow-sm: 0 4px 12px rgba(124, 82, 149, 0.04);
  --oslp-shadow-md: 0 10px 30px rgba(124, 82, 149, 0.06);
  --oslp-shadow-lg: 0 15px 40px rgba(124, 82, 149, 0.1);

  font-family: "Noto Sans JP", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", sans-serif;
  color: var(--oslp-text);
  line-height: 1.8;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto !important;
  padding: 0 16px;
  box-sizing: border-box;
  background-color: var(--oslp-white);
  overflow-wrap: break-word;
}

.oslp-wrapper * {
  box-sizing: border-box;
}

.oslp-wrapper p::before,
.oslp-wrapper p::after {
  display: none !important;
}

.oslp-ib {
  display: inline;
  white-space: normal !important;
}

.oslp-wrapper h1,
.oslp-wrapper h2,
.oslp-wrapper h3,
.oslp-wrapper h4,
.oslp-wrapper h5,
.oslp-wrapper h6 {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
}

.oslp-wrapper h2,
.oslp-wrapper h3,
.oslp-wrapper h4,
.oslp-wrapper p,
.oslp-wrapper li,
.oslp-wrapper summary {
  word-break: normal;
  overflow-wrap: break-word;
}

/* --- 3. グローバル透過ヘッダーのスタイル --- */
.oslp-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(to bottom, rgba(13, 11, 14, 0.8) 0%, rgba(13, 11, 14, 0.4) 50%, transparent 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.oslp-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.oslp-logo {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: #ffffff !important;
  text-transform: uppercase;
  text-decoration: none !important;
}

.oslp-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.oslp-nav-link {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.7) !important;
  transition: color 0.3s ease, transform 0.3s ease;
  position: relative;
  padding: 8px 0;
  text-decoration: none !important;
}

.oslp-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #ffffff;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.oslp-nav-link:hover {
  color: #ffffff !important;
}

.oslp-nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.oslp-nav-btn {
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 20px;
  padding: 8px 24px !important;
  transition: all 0.3s ease !important;
}

.oslp-nav-btn:hover {
  background-color: #ffffff !important;
  color: #0d0b0e !important;
  border-color: #ffffff !important;
}

.oslp-nav-btn::after {
  display: none;
}

/* ヘッダースクロール時の背景変化用クラス（JS連携時用） */
.oslp-header.is-scrolled {
  background: rgba(13, 11, 14, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* --- 4. グローバルフッター --- */
.oslp-footer {
  background-color: var(--oslp-white);
  border-top: 1px solid var(--oslp-border);
  margin-left: -16px;
  margin-right: -16px;
  width: calc(100% + 32px);
  padding: 40px 16px;
  box-sizing: border-box;
}

.oslp-footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.oslp-footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.oslp-footer-link {
  font-size: 0.85rem;
  color: var(--oslp-text-muted) !important;
  text-decoration: none !important;
  transition: opacity 0.3s ease;
}

.oslp-footer-link:hover {
  opacity: 0.7;
}

.oslp-footer-copy {
  font-size: 0.75rem;
  color: var(--oslp-text-muted) !important;
  margin: 0 !important;
  letter-spacing: 0.05em;
}

/* --- 5. 固定ページ共通 ＆ テーマ要素非表示リセット --- */
/* .oslp-wrapperが存在するページでのテーマ標準要素の強制非表示 */
body:has(.oslp-wrapper) #header, 
body:has(.oslp-wrapper) .site-header, 
body:has(.oslp-wrapper) .header-container, 
body:has(.oslp-wrapper) #footer, 
body:has(.oslp-wrapper) .site-footer, 
body:has(.oslp-wrapper) .footer-container, 
body:has(.oslp-wrapper) #sidebar, 
body:has(.oslp-wrapper) .sidebar, 
body:has(.oslp-wrapper) .entry-title, 
body:has(.oslp-wrapper) .post-date, 
body:has(.oslp-wrapper) .post-update, 
body:has(.oslp-wrapper) .sns-share, 
body:has(.oslp-wrapper) .author-info, 
body:has(.oslp-wrapper) .page-header,
body:has(.oslp-wrapper) .breadcrumb,
body:has(.oslp-wrapper) #breadcrumb,
body:has(.oslp-wrapper) .breadcrumb-container {
  display: none !important;
}

/* ページ全体の余白と背景色のリセット */
body:has(.oslp-wrapper) {
  background-color: #fcfbfe !important;
}
body:has(.oslp-wrapper) #main, 
body:has(.oslp-wrapper) #content, 
body:has(.oslp-wrapper) .site-inner, 
body:has(.oslp-wrapper) .content-inner, 
body:has(.oslp-wrapper) .entry-content {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

/* 規約コンテンツエリアの基本レイアウト（共通） */
.oslp-legal-container {
  max-width: 800px;
  margin: 120px auto 60px auto !important;
  padding: 40px 20px !important;
  background-color: var(--oslp-white);
  box-sizing: border-box;
}

.oslp-legal-container h1.oslp-title {
  font-size: clamp(1.8rem, 4vw, 2.2rem) !important;
  font-weight: 700 !important;
  color: var(--oslp-text) !important;
  border-bottom: 2px solid var(--oslp-primary) !important;
  padding-bottom: 15px !important;
  margin: 0 0 40px 0 !important;
  letter-spacing: -0.01em !important;
  line-height: 1.3 !important;
  background: none !important;
  box-shadow: none !important;
}

.oslp-legal-container h2.oslp-section-title {
  font-size: clamp(1.2rem, 3.2vw, 1.35rem) !important;
  font-weight: 700 !important;
  color: var(--oslp-primary-dark) !important;
  margin: 45px 0 20px 0 !important;
  padding: 0 0 0 12px !important;
  border-left: 4px solid var(--oslp-accent) !important;
  border-top: none !important;
  border-right: none !important;
  border-bottom: none !important;
  line-height: 1.4 !important;
  background: none !important;
  box-shadow: none !important;
}

.oslp-legal-container p.oslp-text-p {
  font-size: 0.98rem !important;
  color: var(--oslp-text-muted) !important;
  margin: 0 0 20px 0 !important;
  padding: 0 !important;
}

.oslp-legal-container ul.oslp-list {
  list-style: none !important;
  list-style-type: none !important;
  margin: 0 0 25px 0 !important;
  padding-left: 0 !important;
}

.oslp-legal-container ul.oslp-list li {
  font-size: 0.95rem !important;
  color: var(--oslp-text-muted) !important;
  margin: 0 0 10px 0 !important;
  padding-left: 20px !important;
  position: relative !important;
  list-style: none !important;
  line-height: 1.75 !important;
  text-indent: 0 !important;
}

.oslp-legal-container ul.oslp-list li::before {
  content: "•" !important;
  color: var(--oslp-primary) !important;
  font-weight: bold !important;
  position: absolute !important;
  left: 5px !important;
  top: 0 !important;
  display: inline-block !important;
  background: none !important;
}

.oslp-legal-container .meta-info {
  margin-top: 50px !important;
  padding-top: 20px !important;
  border-top: 1px solid var(--oslp-border) !important;
  font-size: 0.85rem !important;
  color: var(--oslp-text-muted) !important;
}

/* --- 6. ページトランジション (ブラックアウト) --- */
.oslp-page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #0d0b0e; /* Orchisのブランドに合わせた極暗の紫黒 */
  z-index: 99999;
  pointer-events: auto;
  opacity: 1;
  transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.oslp-page-transition.is-loaded {
  opacity: 0;
  pointer-events: none;
}
.oslp-page-transition.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* --- 7. 上へ戻るボタン (Back to Top) --- */
body.oslp-is-transitioning .oslp-back-to-top {
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(100%) !important;
  pointer-events: none !important;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease !important;
}

.oslp-back-to-top {
  position: fixed;
  bottom: 0;
  right: 40px;
  width: 120px;
  height: 60px;
  background-color: #dfba6b; /* Orchisアクセントゴールド */
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: none;
  border-radius: 80px 80px 0 0;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(100%);
  transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1),
              visibility 0.4s cubic-bezier(0.25, 1, 0.5, 1),
              transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
              background-color 0.3s ease,
              border-color 0.3s ease,
              color 0.3s ease,
              box-shadow 0.3s ease;
  box-shadow: 0 -4px 15px rgba(223, 186, 107, 0.15);
  padding: 0;
  outline: none;
}

.oslp-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.oslp-back-to-top:hover {
  background-color: #ffffff;
  border-color: #dfba6b;
  color: #dfba6b;
  box-shadow: 0 -6px 20px rgba(223, 186, 107, 0.2);
}

.oslp-back-to-top:hover .oslp-back-to-top-arrow {
  border-color: #dfba6b;
}

.oslp-back-to-top-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
}

.oslp-back-to-top-arrow {
  width: 11px;
  height: 11px;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  transform: rotate(45deg);
  margin-bottom: 2px;
  display: inline-block;
  transition: transform 0.3s ease;
}

.oslp-back-to-top-text {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}


/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /* ヘッダーのレスポンシブ（ロゴ中央揃え＆ナビ非表示） */
  .oslp-header-inner {
    padding: 15px 20px;
    justify-content: center;
  }
  .oslp-logo {
    font-size: 1.2rem;
  }
  .oslp-nav {
    display: none;
  }

  /* フッターのレスポンシブ（パディング調整） */
  .oslp-footer {
    padding: 35px 16px;
  }
  .oslp-footer-links {
    gap: 16px;
    flex-direction: column;
    align-items: center;
  }

  /* 上へ戻るボタンのレスポンシブ（スマホ等で邪魔になるため非表示） */
  .oslp-back-to-top {
    display: none !important;
  }

/* モバイル環境でファーストビューの文字とヘッダーが重なるのを防ぐ */
  .oslp-hero-inner {
    padding: 0 16px 40px 16px !important;
    height: auto !important; /* 高さをコンテンツに合わせて自動で伸ばします */
    display: block !important; /* flexboxによるはみ出しを解消します */
  }
  .oslp-hero-top-space {
    display: none !important; /* 重複する余白スペースを消去します */
  }
  .oslp-hero-content-wrap {
    padding-top: 90px !important; /* ヘッダーを避けるための安全な余白を確保します */
    padding-bottom: 30px !important;
    display: block !important;
  }
}


/*480px以下*/
@media screen and (max-width: 480px){
  /* フッターの余白調整 */
  .oslp-footer {
    margin-left: -12px;
    margin-right: -12px;
    width: calc(100% + 24px);
  }
}
