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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/* Top Page Menu Toggle Styles */
#top-menu-container {
  transition: opacity 0.5s ease;
}

.menu-hidden {
  opacity: 0;
  pointer-events: none;
  height: 0;
  /* Optional: collapse height to bring footer up if desired, or keep spacing */
  overflow: hidden;
}

.menu-visible {
  opacity: 1;
  pointer-events: auto;
  height: auto;
}

:root {
  /* Color Palette - Adjusted for contrast with both white and black text */
  --color-orange: #eb7312;
  /* Updated to #eb7312 as requested */
  --color-pink: #fbd3d7;
  /* Updated to #fbd3d7 as requested */
  --color-pink-dark: #cc8489;
  /* Darker Pink for Outline (Calculated from #fdeff1) */
  /* Light Pink (Paler as requested) */
  --color-blue: #a080c5;
  /* Dodger Blue */
  --color-yellow: #e5cd5e;
  /* Gold (Hard to balance, but better than pale yellow) */
  --color-green: #436842;
  /* Lime Green */
  --color-red: #B35227;
  /* Orange Red */
  --color-gray: #666666;
  /* Gray */
  --color-theme-top: var(--color-gray);
  /* Top Page Theme Color (Default) */

  --bg-color: #FFFFFF;
  --text-color: #333333;

  --font-title: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: 'Zen Kaku Gothic New', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-color);
  overflow-x: hidden;
  /* opacity: 0; Removed to prevent hiding WP Admin Editor */
  padding-bottom: 1rem;
}



a {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  /* Prevent tap highlight on mobile */
  -webkit-tap-highlight-color: transparent;
}

/* Header Override */
/* The layout is handled by php templates, but we need these styles */
/* Note: We might need to scope this if it conflicts with Cocoon's header */
.custom-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: var(--current-theme-color, #666666);
  /* Dynamic Color with fallback */
  color: #fff;
  font-family: var(--font-title);
  font-weight: bold;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--page-color, var(--color-orange));
  /* Dynamic header color or fallback */
}

/* Header Grid/Flex Logic for Perfect Centering */
.custom-header>a:nth-child(1) {
  /* Left item stays in flow, pushed left by space-between */
  z-index: 2;
}

.custom-header>a:nth-child(2) {
  /* Center item: Absolute positioning to ignore side widths */
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  z-index: 1;
  white-space: nowrap;
  /* Prevent wrapping */
  /* Reset flex properties just in case */
  justify-content: center;
}

.custom-header>a:nth-child(3) {
  /* Right item stays in flow, pushed right by space-between */
  z-index: 2;
}

main {
  margin-top: 60px;
  padding: 2rem 1rem;
  /* Reduced from 5rem to avoid huge mobile gaps */
  min-height: calc(100vh - 100px);
  overflow: hidden;
  box-sizing: border-box;
}

/* Mobile Adjustments */
@media screen and (max-width: 768px) {
  main {
    padding: 1rem;
    /* Even smaller padding for mobile */
    min-height: calc(100vh - 60px);
  }

  .custom-header {
    padding: 1rem;
    /* Tighter header padding */
  }
}

.rainbow-border {
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: 50%;
  border: 1px solid var(--item-color, var(--color-theme-top));
  /* Static single color ring using item color, default to Top Page Theme Color */
  z-index: 1;
  pointer-events: none;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Footer Override */
.custom-footer {
  text-align: center;
  background-color: transparent;
  color: #000;
  font-size: 0.8rem;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* Typography */
h1,
h2,
h3 {
  font-family: var(--font-title);
}

/* Transition Overlay */
#transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.transition-circle {
  position: absolute;
  border-radius: 50%;
  /* Initial transform is set by JS */
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  /* Ease-out for "pop" effect */
  pointer-events: none;
  z-index: 9999;
}

.transition-circle.expand {
  transform: translate(-50%, -50%) scale(300);
  /* Expand to cover screen */
}

/* Fade Overlay */
.fade-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.fade-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Circle Button Styles */
.circle-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  transition: transform 0.3s ease;
  margin: 10px;
  color: var(--item-color, transparent);
  /* Text blends with background by default */
}

.circle-btn:hover {
  transform: scale(1.2);
}

.circle-btn .date {
  position: absolute;
  font-size: 0.8rem;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

/* Navigation Hover Overrides */
.custom-header a:hover {
  color: #fff !important;
}

/* Theme Button Hover: Text becomes theme color (blends with bg), Background unchanged */
.circle-btn:hover,
.orbit-item:hover {
  color: var(--item-color, #e53900) !important;
  /* Text "disappears" into the same-colored background */
}

/* Central Circle Hover Exception: Text stays transparent */
.central-circle:hover {
  color: transparent !important;
}

.circle-btn:hover .date {
  opacity: 1;
}

/* Orbit Header Styles */
.orbit-header-container {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto 4rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.central-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-color: var(--color-orange);
  /* Default, overridden inline */
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  color: transparent;
  /* Text blends with background */
  font-size: 1.2rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.orbit-rotator {
  position: absolute;
  width: 100%;
  height: 100%;
  animation: orbit-spin 20s linear infinite;
}

.orbit-header-container:hover .orbit-rotator {
  animation-play-state: paused;
}

.orbit-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  margin-top: -30px;
  margin-left: -30px;
  pointer-events: auto;
  /* Ensure wrapper captures events if needed, though anchor is inside */
}

.orbit-item {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.7rem;
  font-weight: bold;
  color: var(--item-color, transparent);
  /* Text blends with background (invisible) as requested */
  text-decoration: none;
  transition: transform 0.3s ease;
  background-color: #fff;
  /* Fallback */
  position: relative;
  z-index: 1;
}

.orbit-item:hover {
  transform: scale(1.5);
  z-index: 20;
  cursor: pointer;
}

/* Counter-rotate items to keep them upright */
.orbit-item-content {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: orbit-spin-reverse 20s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.orbit-item:hover .orbit-item-content {
  opacity: 1;
}

.orbit-header-container:hover .orbit-item-content {
  animation-play-state: paused;
}

@keyframes orbit-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes orbit-spin-reverse {
  from {
    transform: rotate(360deg);
  }

  to {
    transform: rotate(0deg);
  }
}

/* Top Page Menu Animations */
@keyframes dropBounce {
  0% {
    transform: translateY(-100vh);
    opacity: 0;
  }

  40% {
    transform: translateY(0);
    opacity: 1;
  }

  55% {
    transform: translateY(-40px);
  }

  70% {
    transform: translateY(0);
  }

  85% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}



.home-menu-btn {
  opacity: 0;
  /* Start invisible */
  /* 
       1. dropBounce: 1.2s duration, ease-out for gravity feel
       2. float: 3s duration, infinite, starts after 1.2s (plus individual delay)
    */
  animation:
    dropBounce 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards,
    float 4s ease-in-out infinite;
  /* We will set animation-delay via inline styles for the sequence */
}

/* Ensure the hover effect (scale) still works by applying it to a wrapper or using a different property? 
   The existing .circle-btn has a transition on transform. 
   If we animate transform, the hover transform might conflict or be overridden.
   
   Existing .circle-btn:
   transition: transform 0.3s, box-shadow 0.3s;
   
   If animation is running, it controls transform.
   To allow hover scale, we should probably wrap the content or use a different property for one of them.
   
   OR: Apply the float to the button, and the drop to the button?
   If the animation is running, `transform: scale(1.1)` on hover won't work because the keyframe `transform` takes precedence.
   
   SOLUTION:
   Wrap each button in `index.html` with a `<div>` that handles the Drop animation.
   The Button itself handles the Float animation AND the Hover scale.
   Wait, if the button floats (transform), hover scale (transform) will still conflict.
   
   Better:
   Wrapper: Drop Animation
   Inner Wrapper: Float Animation
   Button: Hover Scale
   
   That's a lot of wrappers.
   
   Alternative:
   Use `margin-top` for float? Performance is okay for just a few items.
   Use `translateY` for float, and `scale` for hover?
   `transform: translateY(...) scale(...)`
   We can't easily merge them without complex CSS variables.
   
   Let's try:
   Wrapper: Drop & Float (The position moves)
   Button: Hover Scale (The size changes)
   
   Yes. I will wrap each `<a>` in `index.html` with a `<div class="menu-item-wrapper">`.
   Apply Drop and Float to the wrapper.
   The `<a>` tag retains its existing hover effects.
*/

.menu-item-wrapper {
  display: inline-block;
  margin: 10px;
  /* animation: float 4s ease-in-out infinite; */
}

/* Responsive */
@media (max-width: 600px) {
  header {
    padding: 1rem;
  }

  main {
    padding: 2.5rem;
  }
}

/* Popup Navigation Styles */

/* Pizza Slice Trigger (Now Semicircle) */
.orbit-trigger {
  position: fixed;
  top: auto;
  bottom: 20px;
  /* Moved to bottom-left */
  left: 20px;
  width: 80px;
  height: 80px;
  /* background-color set inline */
  border-radius: 50%;
  /* Full circle */
  cursor: pointer;
  z-index: 900;
  /* Behind header (1000) */
  display: flex;
  justify-content: center;
  align-items: center;
  /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); Removed as per request */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@keyframes menu-stylish {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.orbit-trigger:hover {
  transform: scale(1.1);
  /* animation: menu-stylish 0.5s cubic-bezier(0.25, 1, 0.5, 1); */
  /* rotation removed */
}

.orbit-trigger-icon {
  /* Removed absolute positioning for centering */
  position: static;
  transform: none;

  color: #fff;
  font-weight: bold;
  font-size: 0.9rem;
  /* Slightly adjusted size */
  pointer-events: none;
  text-transform: uppercase;
  /* Ensure MENU is uppercase */
}

/* Modal Overlay */
.orbit-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  z-index: 3000;
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  backdrop-filter: blur(5px);
}

.orbit-modal.active {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

/* Adjust Orbit Container for Modal */
.orbit-modal .orbit-header-container {
  margin: 0;
  /* Remove default margin */
  transform: scale(0.8);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.orbit-modal.active .orbit-header-container {
  transform: scale(1);
}

/* Close Button (Optional, clicking background also works) */
.orbit-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  cursor: pointer;
  color: #333;
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1279px) {

  /* Responsive Footer */
  .footer-inner {
    flex-direction: column-reverse;
    /* Menu Top, Copyright Bottom */
    gap: 1rem;
  }

  .footer-menu-items {
    justify-content: center;
    /* Center items on mobile */
  }
}

/*1023px以下*/
@media screen and (max-width: 1023px) {
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px) {
  /*必要ならばここにコードを書く*/
}

/* Detail Page Styles */
/* Detail Page Styles */
/* Sakura Theme Specifics for Readability - REMOVED (Color darkened to #FF1493) */
/* .theme-sakura .detail-content h2.wp-block-heading,
.theme-sakura .circle-btn .date,
.circle-btn.theme-sakura .date,
.orbit-item.theme-sakura .orbit-item-content,
.theme-sakura .orbit-trigger-icon,
.theme-sakura .central-circle {
  -webkit-text-stroke: 1px #e2b2b7;
  font-weight: bold;
  paint-order: stroke fill;
} */

.detail-content h2 {
  background-color: var(--page-color, #666);
  color: #fff;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  margin-bottom: 1rem;
  margin-top: 3rem;
  /* Add spacing before new sections */
  font-family: var(--font-title);
  border: none;
  /* Reset standard WP themes */
}

.summary-box,
.detail-content blockquote,
.detail-content .wp-block-quote,
.detail-content .blank-box {
  border-left: 4px solid var(--page-color, #666);
  padding-left: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 3rem;
  color: #666666;
  background: transparent;
  /* Reset standard quote bg */
  border-top: none;
  border-right: none;
  border-bottom: none;
  box-shadow: none;
  /* Reset Cocoon box shadow if any */
  padding-right: 0;
}

.summary-box p,
.detail-content blockquote p,
.detail-content .wp-block-quote p,
.detail-content .blank-box p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 0;
  font-family: var(--font-body);
  font-weight: 500;
}

/* Hide default quotation marks */
.detail-content blockquote::before,
.detail-content blockquote::after,
.detail-content .wp-block-quote::before,
.detail-content .wp-block-quote::after {
  content: none !important;
  display: none !important;
}

.new-mark {
  color: transparent;
  -webkit-text-stroke: 1px #000;
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 2px;
  display: inline-block;
  font-family: var(--font-title);
  margin-bottom: 0.5rem;
}

.page-main-title {
  font-size: 2rem;
  margin: 1rem 0;
  color: #333;
  /* Standard styling */
  font-family: var(--font-title);
}

/* Detail Page Content Styles */
.detail-content {
  padding: 0 1rem;
  /* Default Desktop Padding */
}

.detail-content p {
  margin-bottom: 1.5rem;
  /* Ensure paragraph spacing */
  line-height: 1.8;
}

/* Quote/Summary Block specific */
.detail-content blockquote p {
  margin-bottom: 0 !important;
}

/* Content Links */
.detail-content a {
  text-decoration: underline;
  text-underline-offset: 3px;
  /* Optional: improves readability */
}

@media screen and (max-width: 768px) {
  .detail-content {
    padding: 0 0.5rem;
    /* Half padding for mobile */
  }
}

/* Top Page Menu Interaction */
#top-title {
  position: relative;
  z-index: 1;
  /* Reduced from 9999 to avoid header overlap */
  cursor: pointer;
  /* Explicit cursor */
}

#top-title:hover {
  transform: scale(1.05);
}

.menu-hidden .menu-item-wrapper {
  opacity: 0;
  visibility: hidden;
  /* Ensure it is not clickable */
  transform: scale(0.5);
  /* pointer-events: none; Redundant with visibility: hidden but kept for safety */
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.menu-visible .menu-item-wrapper {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  /* pointer-events: auto; */
}

/* Staggered transition delay when showing */
.menu-visible .menu-item-wrapper:nth-child(1) {
  transition-delay: 0.0s;
}

.menu-visible .menu-item-wrapper:nth-child(2) {
  transition-delay: 0.1s;
}

.menu-visible .menu-item-wrapper:nth-child(3) {
  transition-delay: 0.2s;
}

.menu-visible .menu-item-wrapper:nth-child(4) {
  transition-delay: 0.3s;
}

.menu-visible .menu-item-wrapper:nth-child(5) {
  transition-delay: 0.4s;
}

.menu-visible .menu-item-wrapper:nth-child(6) {
  transition-delay: 0.5s;
}

.menu-visible .menu-item-wrapper:nth-child(7) {
  transition-delay: 0.6s;
}

.menu-item-wrapper {
  /* Base transition defined above in hidden/visible states, 
       but we ensure the base state allows transition */
  display: block;
  /* Ensure they render */
}


/* Footer Menu Styles */
.custom-footer {
  /* Ensure footer handles full width for background if needed, 
       but here transparent. */
  width: 100%;
}

.footer-inner {
  display: flex;
  flex-direction: column-reverse;
  /* Always stacked: Copyright bottom, Menu top */
  justify-content: center;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem;
  gap: 1rem;
}

.footer-menu-container {
  /* Reset margins as parent handles spacing */
  margin: 0;
  padding: 0;
}

.footer-menu-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  /* Always centered */
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-menu-items li {
  margin: 0;
}

.footer-menu-items a {
  color: #666;
  font-size: 0.9rem;
  text-decoration: underline;
  /* Sakura Style */
  text-underline-offset: 3px;
  /* Sakura Style */
  transition: color 0.3s;
}

.footer-menu-items a:hover {
  color: #e53900;
  /* text-decoration is already underline */
}

.footer-copyright {
  font-size: 0.8rem;
  color: #000;
}

/* Front Page Specific Layout */
/* Front Page Specific Layout */
body.home {
  height: 100vh;
  /* Use vh to force full viewport height */
  margin: 0;
  padding: 0;
  overflow: hidden;
  /* Prevent scroll on body */
}

/* Allow scroll only if content overflows (Mobile) */
@media screen and (max-width: 768px) {

  html,
  body.home {
    height: auto;
    min-height: auto !important;
    overflow-y: auto;
    /* Restore scroll for mobile */
  }

  /* Adjust container for mobile */
  .home-container {
    padding-top: 60px !important;
    /* Minimal header offset */
    padding-bottom: 0 !important;
    /* Zero bottom padding */
    min-height: auto !important;
    justify-content: flex-start !important;
    /* Start from top */
  }

  /* Add side padding and remove vertical margins */
  .home-main {
    padding: 0 20px !important;
    /* Side padding only */
    margin-top: 0 !important;
    /* Minimal top margin */
    margin-bottom: 0 !important;
    /* Zero bottom margin */
    min-height: auto !important;
    height: auto !important;
  }

  .main-title {
    margin-top: calc(12vh + 60px) !important;
    /* 12vh + Header Height */
    margin-bottom: 2vh !important;
    /* Adjusted to 2vh as requested */
    font-size: 15vw !important;
    line-height: 0 !important;
    /* Remove vertical spacing around image */
  }

  /* Fix Footer Overlap on Mobile */
  .home-container .custom-footer {
    position: relative !important;
    bottom: auto !important;
    margin-top: 10vh;
    padding-bottom: 20px;
  }

  /* Reduce Logo Size on Mobile (Half of 300px -> Further 1/2 = 75px) */
  #top-title img {
    max-width: 75px !important;
  }
}

.home-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
  box-sizing: border-box;
  padding-top: 60px;
  /* Header offset */
  padding-bottom: 40px;
  /* Footer offset */
}

/* Footer Override for Home */
.home-container .custom-footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding-bottom: 10px;
}

/* Streaming Page Styles */
.streaming-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 600px;
  margin: 4rem auto;
  padding: 0 1rem;
}

.streaming-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border: 1px solid var(--color-green);
  border-radius: 50px;
  /* Pill shape */
  text-decoration: none;
  color: var(--color-green);
  background: transparent;
  transition: all 0.3s ease;
}

.streaming-card:hover {
  background-color: var(--color-green);
  color: #fff;
  transform: scale(1.02);
}

.service-name {
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  font-family: var(--font-title);
}

.arrow-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.intro-text {
  text-align: center;
  margin-top: 2rem;
  font-size: 1rem;
  line-height: 2;
  font-family: serif;
  font-style: italic;
  color: #666;
}

.footer-copyright {
  font-size: 0.8rem;
  color: #000;
}