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

/* ============================================================
   MODERN JAPANESE HEADER — fasttrendylook.com
   ============================================================ */


:root {
  --mk-primary:    #1a1a2e;
  --mk-accent:     #c0392b;
  --mk-bg:         #ffffff;
  --mk-nav-bg:     rgba(255, 255, 255, 0.97);
  --mk-shadow-sm:  0 2px 16px rgba(0, 0, 0, 0.07);
  --mk-shadow-md:  0 4px 28px rgba(0, 0, 0, 0.13);
  --mk-ease:       0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Header container: card with red accent bottom border ── */
#header-container {
  background: var(--mk-bg);
  box-shadow: var(--mk-shadow-sm);
  border-bottom: 3px solid var(--mk-accent);
}

#header {
  padding: 22px 0 18px;
  background: transparent;
}

/* ── Logo text (site title, no image) ── */
.logo-header .site-name-text {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--mk-primary);
  letter-spacing: 0.1em;
}

.logo-header a.site-name-text-link {
  text-decoration: none;
  transition: opacity var(--mk-ease);
}

.logo-header a.site-name-text-link:hover {
  opacity: 0.7;
}

/* ── Tagline ── */
.tagline {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.72rem;
  color: #999;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

/* ── Sticky navigation: frosted glass card ── */
#navi {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: var(--mk-nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--mk-shadow-md);
  border-bottom: 2px solid rgba(192, 57, 43, 0.12);
  transition: box-shadow var(--mk-ease);
}

.navi-in {
  padding: 0;
}

/* ── Menu items ── */
.menu-top {
  display: flex;
  align-items: stretch;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

.menu-top > li > a {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--mk-primary);
  letter-spacing: 0.04em;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  text-decoration: none;
  position: relative;
  transition: color var(--mk-ease);
}

/* Sliding underline on hover & active */
.menu-top > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--mk-accent);
  transition: width var(--mk-ease);
}

.menu-top > li > a:hover {
  color: var(--mk-accent);
}

.menu-top > li > a:hover::after,
.menu-top > li.current-menu-item > a::after,
.menu-top > li.current-menu-ancestor > a::after {
  width: 65%;
}

.menu-top > li.current-menu-item > a,
.menu-top > li.current-menu-ancestor > a {
  color: var(--mk-accent);
  font-weight: 700;
}

/* item-label inside caption-wrap */
.menu-top .item-label {
  font-family: 'Noto Sans JP', sans-serif;
}

/* ── Dropdown sub-menu card ── */
.navi .sub-menu {
  background: #fff;
  border-top: 2px solid var(--mk-accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.13);
  border-radius: 0 0 8px 8px;
  min-width: 220px;
  overflow: hidden;
}

.navi .sub-menu li a {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.8125rem;
  color: var(--mk-primary);
  padding: 12px 20px;
  transition: background var(--mk-ease), color var(--mk-ease);
}

.navi .sub-menu li a:hover {
  background: #f8f8f8;
  color: var(--mk-accent);
}

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

/* 1023px and below */
@media screen and (max-width: 1023px) {
  #header {
    padding: 16px 0 12px;
  }
  .logo-header .site-name-text {
    font-size: 1.4rem;
  }
}

/* 834px and below */
@media screen and (max-width: 834px) {
  .logo-header .site-name-text {
    font-size: 1.25rem;
    letter-spacing: 0.06em;
  }
  #navi {
    position: sticky;
    top: 0;
  }
}

/* 480px and below */
@media screen and (max-width: 480px) {
  .logo-header .site-name-text {
    font-size: 1.1rem;
    letter-spacing: 0.04em;
  }
  .menu-top > li > a {
    padding: 14px 14px;
    font-size: 0.8125rem;
  }
}
