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

/************************************
** Turkey-tips Design System
************************************/

/* =============================================
   GLOBAL HEADER — Slim & Sticky
   ============================================= */

/* ===== 全サイズ共通: Cocoonモバイルボタン無効化 ===== */
.mobile-menu-buttons { display: none !important; }
.header-top, .tagline, #header .header-top { display: none !important; }

/* ===== 全サイズ共通: ヘッダー固定 ===== */
#header-container {
  position: fixed !important;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  background: rgba(10, 10, 20, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 8px rgba(0,0,0,0.15);
  height: auto !important;
  padding: 0 !important;
}
.admin-bar #header-container { top: 32px !important; }
#header-container-in {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 !important;
  height: auto !important;
  min-height: auto !important;
}
#header, #header .header-in,
.header-container-in, #header-container {
  height: auto !important;
  min-height: auto !important;
}

/* ===== ロゴ（左側） ===== */
#header {
  flex-shrink: 0;
}
#header .logo-header, #header .site-name-text, #header .logo-text {
  font-size: 0.8em !important;
  letter-spacing: 2px;
  color: #fff !important;
  padding: 10px 16px;
  font-weight: 700;
  white-space: nowrap;
}
#header .logo-header img { max-height: 26px; width: auto; }
.header-in .site-name-text-link { display: block; text-align: left; }

/* ===== ナビメニュー（右側） ===== */
#navi {
  display: block !important;
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
  position: static !important;
  flex-shrink: 0;
}
#navi .navi-in {
  max-width: none !important;
  width: auto !important;
  padding: 0;
}
/* .wrap の幅制限を解除（ヘッダー内） */
#header-container .wrap,
#header-container-in .wrap {
  width: auto !important;
  max-width: 100% !important;
}
/* Cocoonが出力する2つのul: PC版のみ表示、モバイル版は非表示 */
#navi .navi-in > ul.menu-pc {
  display: flex !important;
  justify-content: flex-end;
  flex-wrap: nowrap;
}
#navi .navi-in > ul.menu-mobile {
  display: none !important;
}
#navi .navi-in > ul > li > a {
  color: rgba(255,255,255,0.8) !important;
  font-size: 0.78em !important;
  padding: 12px 14px !important;
  letter-spacing: 1px;
  transition: color 0.15s;
  white-space: nowrap;
}
#navi .navi-in > ul > li > a:hover {
  color: #fff !important;
  background: rgba(255,255,255,0.08) !important;
}
#navi .navi-in > ul > li.current-menu-item > a,
#navi .navi-in > ul > li.current_page_item > a {
  color: #fff !important;
}

/* ===== サブメニュー ===== */
#navi .navi-in > ul > li .sub-menu {
  background: rgba(10, 10, 20, 0.95) !important;
  border: none;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  min-width: 200px;
}
#navi .navi-in > ul > li .sub-menu a {
  color: rgba(255,255,255,0.75) !important;
  font-size: 0.78em !important;
  padding: 10px 18px !important;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
#navi .navi-in > ul > li .sub-menu a:hover {
  color: #fff !important;
  background: rgba(255,255,255,0.06) !important;
}

/* ===== body オフセット ===== */
body { padding-top: 0 !important; }
body:not(.page-id-12284) #content { padding-top: 48px; }
.admin-bar:not(.page-id-12284) #content { padding-top: 80px; }

/* =============================================
   TOP PAGE — Portfolio / Reel Style (v4)
   ============================================= */

/* --- Cocoon overrides for top page --- */
.page-id-12284 .entry-content { max-width: 100%; padding: 0; }
.page-id-12284 .article { padding: 0; }
.page-id-12284 .entry-title,
.page-id-12284 .date-tags,
.page-id-12284 .author-info,
.page-id-12284 .sns-share,
.page-id-12284 .under-entry-content,
.page-id-12284 .breadcrumb { display: none; }

/* ===== Hero Video ===== */
.tt-hero-video {
  position: relative;
  width: 100vw;
  height: 80vh;
  min-height: 420px;
  max-height: 700px;
  margin-left: calc(-50vw + 50%);
  margin-top: -20px;
  overflow: hidden;
  background: linear-gradient(135deg, #0a1628 0%, #1a2a4a 40%, #0d1b2e 100%);
}
.tt-hero-vid,
.tt-hero-video video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.tt-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.15);
  color: #fff;
  text-align: center;
  z-index: 2;
}
.tt-hero-name {
  font-size: 4em !important;
  font-weight: 900 !important;
  letter-spacing: 14px;
  line-height: 1;
  margin: 0 !important;
  text-transform: uppercase;
  color: #ffffff !important;
}
.tt-hero-tagline {
  font-size: 1em !important;
  letter-spacing: 6px;
  margin-top: 18px;
  color: rgba(255,255,255,0.7) !important;
  font-weight: 300;
  text-transform: uppercase;
}
.tt-hero-overlay p {
  color: #ffffff !important;
}
.tt-hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.5) !important;
  font-size: 1.4em;
  z-index: 3;
  animation: tt-bounce 2s infinite;
}
@keyframes tt-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== About ===== */
.tt-about {
  padding: 72px 20px;
  background: #fff;
}
.tt-about-inner {
  max-width: 700px;
  margin: 0 auto;
}
.tt-about-heading {
  font-size: 1.6em !important;
  font-weight: 800 !important;
  text-align: center;
  margin-bottom: 32px;
  color: #1a1a2e !important;
  letter-spacing: 2px;
}
.tt-about-text {
  font-size: 0.95em;
  line-height: 2;
  color: #444 !important;
}
.tt-about-text p { color: #444 !important; }
.tt-about-text p {
  margin-bottom: 16px;
}
.tt-about-text strong {
  color: #1a1a2e;
}
.tt-about-link {
  display: block;
  text-align: center;
  margin-top: 24px;
  color: #0073aa;
  text-decoration: none;
  font-size: 0.9em;
}
.tt-about-link:hover { text-decoration: underline; }

/* ===== Works ===== */
.tt-works {
  padding: 64px 20px;
  background: #f5f5f7;
}
.tt-works-heading {
  font-size: 1.8em;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
  color: #1a1a2e;
  letter-spacing: 4px;
}
.tt-works-sub {
  text-align: center;
  color: #888;
  font-size: 0.9em;
  margin-bottom: 36px;
}
.tt-works-list {
  max-width: 760px;
  margin: 0 auto;
}
.tt-work-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #ddd;
  text-decoration: none;
  transition: background 0.15s;
}
.tt-work-row:first-child {
  border-top: 1px solid #ddd;
}
.tt-work-row:hover {
  background: rgba(0,0,0,0.02);
}
.tt-work-name {
  font-weight: 700;
  color: #1a1a2e;
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 0.95em;
}
.tt-work-desc {
  color: #666;
  font-size: 0.85em;
  line-height: 1.5;
}

/* ===== Blog Section ===== */
.tt-blog-section {
  padding: 64px 20px;
  background: #fff;
}
.tt-text-link {
  color: #0073aa;
  text-decoration: none;
  font-size: 0.9em;
}
.tt-text-link:hover { text-decoration: underline; }

/* ===== Links ===== */
.tt-links {
  padding: 56px 20px;
  background: #f5f5f7;
}
.tt-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 700px;
  margin: 0 auto;
}
.tt-links-group h3 {
  font-size: 0.9em;
  color: #888;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #ddd;
}
.tt-links-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.tt-links-group li {
  margin-bottom: 10px;
}
.tt-links-group a {
  color: #333;
  text-decoration: none;
  font-size: 0.92em;
  transition: color 0.15s;
}
.tt-links-group a:hover { color: #0073aa; }

/* ===== YouTube embed spacing fix ===== */
.wp-block-html iframe,
.entry-content iframe[src*="youtube"] {
  max-width: 100%;
  margin-bottom: 8px !important;
}
.wp-block-html { margin-bottom: 12px !important; }

/* ===== Template Video Switcher ===== */
.ts-video-switcher {
  margin: 24px 0;
}
.ts-video-switcher .ts-video-frame {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  margin-bottom: 12px;
}
.ts-video-switcher .ts-video-frame .video-container {
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 0 !important;
  padding: 0 0 56.25% 0 !important;
  margin: 0 !important;
  overflow: hidden;
}
.ts-video-switcher .ts-video-frame .video-container .video {
  position: absolute !important;
  top: 0 !important; left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}
.ts-video-switcher .ts-video-frame iframe {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  position: absolute !important;
  top: 0 !important; left: 0 !important;
  border: none !important;
}
.ts-video-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ts-video-tab {
  padding: 8px 14px;
  font-size: 0.82em;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #f5f5f5;
  cursor: pointer;
  transition: all 0.15s;
  color: #555;
}
.ts-video-tab:hover { background: #eee; }
.ts-video-tab.active {
  background: #1a1a2e;
  color: #fff;
  border-color: #1a1a2e;
}

/* ===== Author Page Skill List Fix ===== */
.turkey-skill-list li {
  padding-left: 0 !important;
  position: static !important;
}
.turkey-skill-list li::before {
  display: none !important;
}

/* ===== Author Page Products List ===== */
.turkey-products-list {
  max-width: 700px;
}
.turkey-product-row {
  padding: 14px 0;
  border-bottom: 1px solid #eee;
  line-height: 1.6;
  font-size: 0.92em;
  color: #444;
}
.turkey-product-row strong { color: #1a1a2e; }
.turkey-product-row a {
  color: #0073aa;
  text-decoration: none;
  font-size: 0.88em;
  margin-left: 8px;
}
.turkey-product-row a:hover { text-decoration: underline; }

.turkey-history p,
.turkey-strength p,
.turkey-philosophy p {
  margin-bottom: 16px;
  line-height: 1.9;
  color: #444;
}
.turkey-strength p strong,
.turkey-history p strong {
  color: #1a1a2e;
}

/* ===== Contact CTA ===== */
.tt-contact {
  text-align: center;
  padding: 64px 20px;
  background: #1a1a2e;
  color: #fff;
  margin-left: calc(-50vw + 50%);
  width: 100vw;
}
.tt-contact h2 {
  font-size: 1.4em;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
  letter-spacing: 1px;
}
.tt-contact p {
  color: rgba(255,255,255,0.65);
  font-size: 0.92em;
  margin-bottom: 28px;
  line-height: 1.7;
}
.tt-btn-contact {
  display: inline-block;
  padding: 16px 40px;
  border: 1px solid rgba(255,255,255,0.5);
  color: #fff;
  text-decoration: none;
  font-size: 0.95em;
  letter-spacing: 2px;
  border-radius: 4px;
  transition: all 0.2s;
}
.tt-btn-contact:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  color: #fff;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media screen and (min-width: 835px) {
  .sp-only { display: none; }
}

/* --- タブレット (1023px以下): メニュー文字を縮小 --- */
@media screen and (max-width: 1023px) {
  #navi .navi-in > ul > li > a {
    padding: 10px 8px !important;
    font-size: 0.7em !important;
    letter-spacing: 0;
  }
  #header .site-name-text, #header .logo-text {
    font-size: 0.72em !important;
    padding: 10px 10px;
  }
}

/* --- モバイル (768px以下): ハンバーガーメニュー --- */
@media screen and (max-width: 768px) {
  /* PC用ヘッダー非表示 */
  #header-container {
    display: none !important;
  }
  /* Cocoonモバイルボタン表示（ハンバーガー） */
  .mobile-menu-buttons {
    display: flex !important;
    position: fixed !important;
    top: 0; left: 0; right: 0;
    z-index: 99998;
    background: rgba(10, 10, 20, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    height: 46px !important;
    align-items: center;
    padding: 0 4px;
  }
  .admin-bar .mobile-menu-buttons {
    top: 46px !important;
  }
  .mobile-menu-buttons .menu-button {
    color: #fff !important;
    border: none !important;
  }
  .mobile-menu-buttons .menu-button > a,
  .mobile-menu-buttons .menu-button .menu-button-in {
    color: #fff !important;
  }
  /* スライドインメニュー ダーク化 */
  #slide-in-container,
  .navi-menu-content,
  #navi-menu-content {
    background: rgba(10, 10, 20, 0.97) !important;
  }
  #slide-in-container a,
  .navi-menu-content a,
  #navi-menu-content a,
  .menu-content a {
    color: rgba(255,255,255,0.85) !important;
    border-bottom: none !important;
    display: block;
    padding: 12px 16px !important;
  }
  #slide-in-container a:hover,
  .navi-menu-content a:hover,
  #navi-menu-content a:hover,
  .menu-content a:hover {
    background: rgba(255,255,255,0.1) !important;
    color: #fff !important;
  }
  /* 親メニュー項目: 上ボーダーでグループ区切り */
  .menu-content li.menu-item {
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  }
  .menu-content > ul > li.menu-item {
    border-top: 1px solid rgba(255,255,255,0.15) !important;
    border-bottom: none !important;
  }
  .menu-content > ul > li.menu-item:last-child {
    border-bottom: 1px solid rgba(255,255,255,0.15) !important;
  }
  /* 親メニュー: ラベルとトグルボタンを横並び */
  .menu-content .menu-item-has-children {
    position: relative;
  }
  .menu-content .menu-item-has-children > a {
    padding-right: 48px !important;
  }
  /* トグルボタン（JSで挿入） */
  .menu-content .ts-submenu-toggle {
    position: absolute;
    top: 0; right: 0;
    width: 48px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.5);
    font-size: 1.1em;
    transition: transform 0.2s, background 0.15s;
    border-left: 1px solid rgba(255,255,255,0.12);
  }
  .menu-content .ts-submenu-toggle:hover,
  .menu-content .ts-submenu-toggle:active {
    background: rgba(255,255,255,0.15);
    color: #fff;
  }
  .menu-content .ts-submenu-toggle.is-open {
    transform: rotate(180deg);
    background: rgba(255,255,255,0.1);
  }

  /* 子メニュー: デフォルト閉じ */
  .menu-content .sub-menu {
    display: none !important;
    padding-left: 5% !important;
    margin: 0 !important;
    background: rgba(255,255,255,0.03) !important;
  }
  .menu-content .sub-menu.is-open {
    display: block !important;
  }
  .menu-content .sub-menu li {
    padding: 2px 0 !important;
  }
  .menu-content .sub-menu a {
    padding: 10px 16px 10px 32px !important;
    font-size: 0.9em !important;
    color: rgba(255,255,255,0.7) !important;
  }
  .menu-content .sub-menu a:hover {
    color: #fff !important;
  }
  .menu-content {
    height: auto !important;
    overflow: visible !important;
  }
  .menu-close-button {
    text-align: left !important;
    padding-left: 16px !important;
  }
  /* コンテンツオフセット */
  body:not(.page-id-12284) #content {
    padding-top: 46px !important;
  }
  .admin-bar:not(.page-id-12284) #content {
    padding-top: 92px !important;
  }
  /* ページ要素 */
  .tt-hero-video { height: 65vh; min-height: 380px; }
  .tt-hero-name { font-size: 2.4em !important; letter-spacing: 8px; }
  .tt-hero-tagline { font-size: 0.82em !important; letter-spacing: 3px; }
  .tt-work-row { flex-direction: column; gap: 4px; }
  .tt-about { padding: 48px 16px; }
  .tt-links-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* --- スマホ小 (480px以下) --- */
@media screen and (max-width: 480px) {
  #navi .navi-in > ul > li > a {
    padding: 7px 6px !important;
    font-size: 0.62em !important;
  }
  #header .site-name-text, #header .logo-text {
    font-size: 0.65em !important;
    padding: 8px;
  }
  .tt-hero-video { height: 55vh; min-height: 320px; }
  .tt-hero-name { font-size: 1.8em !important; letter-spacing: 5px; }
  .tt-hero-tagline { font-size: 0.72em !important; letter-spacing: 2px; }
  .tt-contact { padding: 40px 16px; }
}
