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

/************************************
** Medi Select — Design System
** White base + Navy (#1A3A6B) accent
************************************/

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

/* ===== Design Tokens ===== */
:root {
  --ms-navy: #1A3A6B;
  --ms-navy-dark: #112B52;
  --ms-navy-light: #F0F4FA;
  --ms-accent: #2563EB;
  --ms-gray-50: #F9FAFB;
  --ms-gray-100: #F3F4F6;
  --ms-gray-200: #E5E7EB;
  --ms-gray-300: #D1D5DB;
  --ms-gray-500: #6B7280;
  --ms-gray-700: #374151;
  --ms-gray-900: #111827;
  --ms-white: #FFFFFF;
  --ms-radius: 8px;
  --ms-radius-lg: 12px;
  --ms-shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --ms-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --ms-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --ms-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --ms-transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ===== Global Reset ===== */
body, body.public-page {
  background: var(--ms-gray-50) !important;
  color: var(--ms-gray-900) !important;
  font-family: var(--font-sans) !important;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans) !important;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ms-gray-900) !important;
}

.entry-title, .article-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.article h2 {
  font-size: 1.5rem;
  font-weight: 700;
  padding: 0.75rem 1rem;
  margin: 2.5rem 0 1.25rem;
  border-left: 4px solid var(--ms-navy);
  border-bottom: none;
  background: var(--ms-navy-light);
  border-radius: 0 var(--ms-radius) var(--ms-radius) 0;
  color: var(--ms-navy-dark) !important;
}

.article h3 {
  font-size: 1.25rem;
  font-weight: 600;
  padding-bottom: 0.5rem;
  margin: 2rem 0 1rem;
  border-bottom: 2px solid var(--ms-navy);
}

.article h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
  color: var(--ms-navy);
}

p { margin-bottom: 1.25rem; }

/* ===== Header ===== */
.header-container-in, .header .header-in {
  background-color: var(--ms-navy-dark);
}

.site-name-text {
  font-family: var(--font-sans) !important;
  font-size: 1.75rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em;
}
.site-name-text, .site-name-text a {
  color: var(--ms-white) !important;
}
.tagline {
  color: rgba(255,255,255,0.7) !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.04em;
}

/* ===== Global Nav ===== */
#navi .navi-in {
  background-color: var(--ms-navy) !important;
}
.navi-in > ul > li > a {
  color: var(--ms-white) !important;
  font-size: 0.875rem !important;
  font-weight: 500;
  padding: 14px 18px !important;
  letter-spacing: 0.02em;
  transition: background var(--ms-transition);
}
.navi-in > ul > li > a:hover {
  background-color: rgba(255,255,255,0.12) !important;
}

/* ===== Content Area ===== */
.content-in {
  max-width: 1140px;
  margin: 0 auto;
}

.main {
  background: var(--ms-white);
  border-radius: var(--ms-radius-lg);
  box-shadow: var(--ms-shadow);
  padding: 2rem 2.5rem !important;
  margin-bottom: 1.5rem;
}

/* ===== Sidebar ===== */
.sidebar {
  background: transparent;
}
.sidebar .widget-sidebar {
  background: var(--ms-white);
  border-radius: var(--ms-radius-lg);
  box-shadow: var(--ms-shadow);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.sidebar h3, .sidebar .widget-title {
  background: none !important;
  color: var(--ms-navy) !important;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0 0 0.5rem !important;
  border-bottom: 2px solid var(--ms-navy);
  border-radius: 0 !important;
  margin-bottom: 0.75rem;
}

/* ===== Links ===== */
a {
  color: var(--ms-accent);
  text-decoration: none;
  transition: color var(--ms-transition);
}
a:hover {
  color: var(--ms-navy);
}

/* ===== Buttons ===== */
.wp-block-button__link,
.btn, .btn-l, .ranking-item-link-buttons a {
  background: var(--ms-navy) !important;
  border: none !important;
  border-radius: 100px !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  padding: 12px 28px !important;
  letter-spacing: 0.02em;
  transition: all var(--ms-transition) !important;
  box-shadow: var(--ms-shadow-sm);
}
.wp-block-button__link:hover,
.btn:hover, .btn-l:hover {
  background: var(--ms-navy-dark) !important;
  box-shadow: var(--ms-shadow-md) !important;
  transform: translateY(-1px);
}

/* Outline buttons */
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent !important;
  border: 2px solid var(--ms-white) !important;
  color: var(--ms-white) !important;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: rgba(255,255,255,0.15) !important;
}

/* ===== Cards (WP Columns as cards) ===== */
.wp-block-column {
  background: var(--ms-white);
  border: 1px solid var(--ms-gray-200);
  border-radius: var(--ms-radius-lg);
  padding: 1.5rem;
  transition: all var(--ms-transition);
}
.wp-block-column:hover {
  box-shadow: var(--ms-shadow-md);
  border-color: var(--ms-gray-300);
  transform: translateY(-2px);
}

/* ===== Cover Block (Hero) ===== */
.wp-block-cover {
  border-radius: 0;
  min-height: 380px !important;
}
.wp-block-cover .wp-block-cover__inner-container {
  max-width: 720px;
  margin: 0 auto;
}
.wp-block-cover h1, .wp-block-cover h2 {
  font-size: 1.875rem !important;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--ms-white) !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin-bottom: 1rem !important;
}
.wp-block-cover p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.85) !important;
}

/* ===== TOC (目次) ===== */
.toc {
  background: var(--ms-gray-50) !important;
  border: 1px solid var(--ms-gray-200) !important;
  border-radius: var(--ms-radius-lg) !important;
  padding: 1.5rem 2rem !important;
}
.toc-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ms-navy);
}

/* ===== Footer ===== */
.footer {
  background-color: var(--ms-navy-dark) !important;
  color: rgba(255,255,255,0.9) !important;
  font-size: 0.85rem;
}
.footer a {
  color: rgba(255,255,255,0.75) !important;
  transition: color var(--ms-transition);
}
.footer a:hover {
  color: var(--ms-white) !important;
}
.copyright {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5) !important;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  background: transparent;
  font-size: 0.8rem;
  color: var(--ms-gray-500);
  padding: 0.75rem 0;
}

/* ===== SNS Share Buttons ===== */
.sns-share-buttons {
  border-radius: var(--ms-radius);
  overflow: hidden;
}

/* ===== Scroll to Top ===== */
.go-to-top-button {
  background: var(--ms-navy) !important;
  border-radius: 50% !important;
  box-shadow: var(--ms-shadow-md);
  width: 44px;
  height: 44px;
}

/* ===== Admin Bar spacing fix ===== */
.admin-bar .header-container-in {
  margin-top: 0;
}

/* ===== Group Block backgrounds ===== */
.wp-block-group.has-background {
  border-radius: var(--ms-radius-lg);
  padding: 2rem !important;
}

/* ===== Selection ===== */
::selection {
  background: var(--ms-navy);
  color: var(--ms-white);
}

/************************************
** Responsive
************************************/
@media screen and (max-width: 1023px) {
  .main { padding: 1.5rem !important; }
  .site-name-text { font-size: 1.5rem !important; }
}
@media screen and (max-width: 834px) {
  body { font-size: 15px; }
  .main { padding: 1.25rem !important; border-radius: var(--ms-radius); }
  .article h2 { font-size: 1.3rem; }
  .wp-block-cover h1, .wp-block-cover h2 { font-size: 1.5rem !important; }
}
@media screen and (max-width: 480px) {
  body { font-size: 14px; }
  .main { padding: 1rem !important; }
  .article h2 { font-size: 1.2rem; padding: 0.6rem 0.8rem; }
  .wp-block-cover { min-height: 300px !important; }
  .wp-block-cover h1, .wp-block-cover h2 { font-size: 1.25rem !important; }
  .navi-in > ul > li > a { font-size: 0.8rem !important; padding: 10px 12px !important; }
}

/* ============================
   MONO SELECT - MoMA-inspired Minimal Design
   ============================ */

/* --- Layout Width Fix (Cocoon 1256px -> 1140px content) --- */
.main {
  width: 800px;
}
.sidebar {
  width: 336px;
}

/* --- Global Typography & Spacing --- */
body {
  letter-spacing: 0.02em;
  line-height: 1.8;
}
.entry-content p {
  margin-bottom: 1.8em;
}

/* --- Header Polish --- */
.header-container {
  border-bottom: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.navi-in > ul > li > a {
  letter-spacing: 0.08em;
  font-weight: 500;
  transition: opacity 0.2s ease;
}
.navi-in > ul > li > a:hover {
  opacity: 0.7;
  background: transparent;
}

/* --- Entry Cards (Index) --- */
.entry-card-wrap {
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  overflow: hidden;
  margin-bottom: 1.5em;
}
.entry-card-wrap:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.entry-card-title {
  font-weight: 700;
  font-size: 1.05em;
  line-height: 1.5;
}
.entry-card-snippet {
  color: #666;
  font-size: 0.88em;
  line-height: 1.6;
}

/* --- Article Headings --- */
.article h2 {
  border: none;
  border-bottom: 2px solid #1a1a1a;
  padding: 0 0 0.5em 0;
  margin: 2.5em 0 1.2em;
  font-weight: 700;
  font-size: 1.4em;
}
.article h3 {
  border: none;
  border-left: 3px solid #1a1a1a;
  padding: 0.2em 0 0.2em 0.8em;
  margin: 2em 0 1em;
  font-weight: 600;
  font-size: 1.2em;
}
.article h4 {
  border: none;
  font-weight: 600;
  margin: 1.5em 0 0.8em;
}

/* --- Sidebar --- */
.sidebar {
  font-size: 0.92em;
}
.sidebar h3 {
  border: none;
  border-bottom: 1px solid #1a1a1a;
  padding: 0 0 0.4em 0;
  font-size: 0.95em;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 1em;
}

/* --- Breadcrumb --- */
.breadcrumb {
  font-size: 0.82em;
  color: #999;
  padding: 0.8em 0;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid #e8e8e8;
}

/* --- Links --- */
a {
  color: #1a1a1a;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
a:hover {
  opacity: 0.6;
}
.entry-content a {
  color: #1a1a1a;
  border-bottom: 1px solid #ccc;
  padding-bottom: 1px;
}
.entry-content a:hover {
  border-bottom-color: #1a1a1a;
  opacity: 1;
}

/* --- Pagination --- */
.pagination .page-numbers {
  border: 1px solid #e8e8e8;
  border-radius: 2px;
  transition: all 0.2s ease;
}
.pagination .page-numbers:hover,
.pagination .current {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

/* --- Category Labels --- */
.cat-label {
  border-radius: 2px;
  font-size: 0.72em;
  letter-spacing: 0.04em;
}

/* --- Mobile --- */
@media screen and (max-width: 834px) {
  .entry-card-wrap { margin-bottom: 1em; }
  .article h2 { font-size: 1.25em; margin: 2em 0 1em; }
  .article h3 { font-size: 1.1em; }
}