/*
Theme Name: NAZELIUM for Cocoon
Theme URI: https://ribanimai.com/
Description: ナゼリウム by RIBANIMAI 専用のCocoon子テーマ
Author: RIBANIMAI
Version: 1.0.4
Template: cocoon-master
Text Domain: nazelium
*/

:root {
  --nz-ink: #203236;
  --nz-deep: #123f48;
  --nz-teal: #16857a;
  --nz-paper: #f7f8f2;
  --nz-line: #dfe4dc;
  --nz-yellow: #f4bc44;
  --nz-muted: #667876;
  --nz-white: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.nazelium-view {
  margin: 0;
  background: var(--nz-paper);
  color: var(--nz-ink);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", system-ui, sans-serif;
}
body.nazelium-view #container { width: 100%; }
body.nazelium-view #content { margin: 0; padding: 0; width: 100%; max-width: none; }
body.nazelium-view #main { margin: 0; padding: 0; width: 100%; max-width: none; border: 0; background: transparent; }
body.nazelium-view #sidebar,
body.nazelium-view .breadcrumb { display: none; }
.nz-wrap { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.nz-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Header */
.nz-header { height: 92px; width: min(1240px, calc(100% - 48px)); margin: auto; display: flex; align-items: center; justify-content: space-between; }
.nz-brand { display: flex; gap: 13px; align-items: center; color: inherit; text-decoration: none; }
.nz-brand img { width: 47px; height: 54px; }
.nz-brand strong { display: block; font-size: 22px; letter-spacing: .08em; }
.nz-brand small { display: block; margin-top: 4px; color: #718085; font-size: 10px; letter-spacing: .08em; }
.nz-nav { display: flex; align-items: center; gap: 30px; font-size: 13px; font-weight: 700; }
.nz-nav a { color: inherit; text-decoration: none; padding: 12px 0; border-bottom: 1px solid transparent; }
.nz-nav a:hover, .nz-nav a:focus-visible { border-color: var(--nz-teal); }
.nz-search { border: 1px solid var(--nz-deep); padding: 10px 14px !important; }

/* Hero */
.nz-hero { min-height: 620px; background: var(--nz-deep); color: white; position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(40px,1fr) minmax(440px,580px) minmax(400px,620px) minmax(40px,1fr); align-items: center; }
.nz-hero::after { content: ""; position: absolute; inset: 0; opacity: .08; background-image: linear-gradient(#fff 1px,transparent 1px), linear-gradient(90deg,#fff 1px,transparent 1px); background-size: 42px 42px; pointer-events: none; }
.nz-hero-copy { grid-column: 2; z-index: 2; }
.nz-eyebrow { font: 700 11px/1 monospace; letter-spacing: .2em; color: #9ac6c3; }
.nz-hero h1 { color: #fff; font-family: serif; font-size: clamp(42px,5vw,62px); line-height: 1.25; letter-spacing: .04em; margin: 24px 0; }
.nz-hero h1 em { font-style: normal; color: var(--nz-yellow); }
.nz-hero-copy > p:not(.nz-eyebrow) { max-width: 500px; line-height: 2; color: #d1dedc; }
.nz-hero-link { display: inline-flex; margin-top: 26px; gap: 34px; align-items: center; border-bottom: 1px solid #8ab2af; padding-bottom: 10px; color: #fff; text-decoration: none; font-weight: 700; }
.nz-hero-link span { color: var(--nz-yellow); }
.nz-orbit { grid-column: 3; width: min(470px,42vw); aspect-ratio: 1; margin: auto; position: relative; border: 1px solid #ffffff26; border-radius: 50%; z-index: 2; }
.nz-orbit::before, .nz-orbit::after { content: ""; position: absolute; border: 1px solid #ffffff42; border-radius: 50%; }
.nz-orbit::before { inset: 10%; }
.nz-orbit::after { inset: 18%; border-style: dashed; }
.nz-question { position: absolute; inset: 24%; border: 1px solid #79a7a4; border-radius: 50%; display: grid; place-items: center; font: 400 clamp(90px,10vw,150px)/1 serif; color: var(--nz-yellow); background: #174b55; z-index: 1; }
.nz-orbit-label { position: absolute; font: 700 10px monospace; letter-spacing: .2em; color: #8ec0bb; }
.nz-orbit-label.one { top: 14%; left: 18%; }
.nz-orbit-label.two { right: 12%; bottom: 16%; }
.nz-issue { position: absolute; right: 25px; bottom: 30px; z-index: 2; font: 700 10px/1.5 monospace; letter-spacing: .12em; text-align: right; color: #91b7b4; }

/* Shared sections */
.nz-section { padding: 105px 0; }
.nz-kicker { display: flex; align-items: center; gap: 14px; margin-bottom: 30px; }
.nz-kicker span { font: 700 11px monospace; border: 1px solid #9aa7a5; border-radius: 50%; width: 31px; height: 31px; display: grid; place-items: center; }
.nz-kicker p { margin: 0; font: 700 10px monospace; letter-spacing: .18em; color: #617276; }
.nz-title { display: grid; grid-template-columns: 250px 1fr; margin-bottom: 42px; }
.nz-title .nz-kicker { margin-bottom: 0; }
.nz-title h2 { font: 700 34px/1.4 serif; margin: 0; color: var(--nz-ink); }
.nz-title > div:last-child p { color: #76817f; font-size: 13px; }

/* Today */
.nz-today-card { background: #fff; display: grid; grid-template-columns: 1.02fr 1fr; box-shadow: 0 20px 60px #1c363714; color: inherit; text-decoration: none; }
.nz-visual { min-height: 430px; background: #e8f0e9; position: relative; display: grid; place-items: center; overflow: hidden; }
.nz-specimen { width: 300px; aspect-ratio: 1; border: 1px solid #72a59e; border-radius: 50%; position: relative; display: grid; place-items: center; background: #dcebe5; }
.nz-specimen::before, .nz-specimen::after { content: ""; position: absolute; border: 1px solid #16857a80; border-radius: 50%; }
.nz-specimen::before { inset: 14%; border-style: dashed; }
.nz-specimen::after { inset: 28%; }
.nz-specimen b { color: var(--nz-teal); font: 400 68px serif; }
.nz-number { position: absolute; top: 28px; left: 28px; border: 1px solid #8ba29d; padding: 12px 15px; font: 700 9px/1.4 monospace; letter-spacing: .1em; }
.nz-number strong { display: block; font-size: 19px; }
.nz-today-copy { padding: 64px 68px; }
.nz-meta { font: 700 10px monospace; letter-spacing: .1em; color: #6b7c7c; }
.nz-meta span { color: var(--nz-teal); margin-right: 15px; }
.nz-today-copy h2 { font-family: serif; font-size: 36px; line-height: 1.5; margin: 22px 0; color: var(--nz-ink); }
.nz-today-copy > p { line-height: 2; color: #526468; font-size: 14px; }
.nz-read { display: inline-block; margin-top: 28px; border-bottom: 2px solid var(--nz-yellow); padding-bottom: 7px; font-weight: 700; }

/* Categories */
.nz-categories { background: #eef1eb; }
.nz-category-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.nz-category { min-height: 120px; background: #fff; padding: 26px; display: flex; align-items: center; border-top: 3px solid var(--nz-cat); color: inherit; text-decoration: none; transition: .25s; }
.nz-category:hover { transform: translateY(-4px); box-shadow: 0 14px 30px #142d2d14; }
.nz-category-icon { color: var(--nz-cat); font-size: 30px; width: 55px; }
.nz-category strong, .nz-category small { display: block; }
.nz-category strong { font-size: 18px; }
.nz-category small { font-size: 11px; color: #81908e; margin-top: 8px; }
.nz-category > b { margin-left: auto; color: var(--nz-cat); }

/* Article cards */
.nz-new { background: #153f48; color: #fff; }
.nz-new .nz-title h2 { color: #fff; }
.nz-new .nz-kicker p, .nz-new .nz-title > div:last-child p { color: #abc0be; }
.nz-post-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.nz-post-card { background: #fff; color: var(--nz-ink); text-decoration: none; transition: .25s; overflow: hidden; }
.nz-post-card:hover { transform: translateY(-5px); }
.nz-post-thumb { aspect-ratio: 16/9; background: color-mix(in srgb,var(--nz-card) 14%,white); position: relative; overflow: hidden; display: grid; place-items: center; }
.nz-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.nz-post-thumb.no-image::before, .nz-post-thumb.no-image::after { content: ""; position: absolute; border: 1px solid color-mix(in srgb,var(--nz-card) 60%,transparent); border-radius: 50%; }
.nz-post-thumb.no-image::before { width: 48%; aspect-ratio: 1; }
.nz-post-thumb.no-image::after { width: 68%; aspect-ratio: 1; border-style: dashed; }
.nz-post-thumb.no-image span { color: var(--nz-card); font: 700 36px serif; }
.nz-card-body { padding: 22px 26px 28px; }
.nz-card-meta { display: flex; justify-content: space-between; font: 700 10px monospace; }
.nz-card-meta span { color: var(--nz-card); }
.nz-card-meta small { color: #86908f; }
.nz-post-card h3 { font: 700 19px/1.6 serif; margin: 16px 0 10px; color: var(--nz-ink); }
.nz-post-card p { font-size: 12px; line-height: 1.8; color: #697777; }
.nz-empty { grid-column: 1/-1; background: #fff; color: var(--nz-ink); padding: 55px; text-align: center; }
.nz-empty strong { display: block; font: 700 24px serif; margin-bottom: 10px; }

/* Footer */
.nz-footer { background: #0d3037; color: #fff; padding: 65px max(24px,calc((100% - 1160px)/2)); display: grid; grid-template-columns: 1fr auto; gap: 35px; align-items: center; }
.nz-footer-brand { display: flex; align-items: center; gap: 15px; }
.nz-footer-brand img { width: 43px; }
.nz-footer-brand strong { display: block; font-size: 22px; }
.nz-footer-brand small { color: #93aaa8; }
.nz-footer-links { display: flex; gap: 24px; font-size: 12px; }
.nz-footer a { color: #fff; text-decoration: none; }
.nz-copyright { grid-column: 1/-1; color: #728d8a; font: 9px monospace; letter-spacing: .15em; }

/* Single */
.nz-article { width: min(860px,calc(100% - 40px)); margin: 75px auto; }
.nz-article-header { text-align: left; }
.nz-article-header h1 { font: 700 clamp(36px,5vw,50px)/1.45 serif; margin: 28px 0; color: var(--nz-ink); }
.nz-lead { font-size: 16px; line-height: 2; color: #586967; max-width: 720px; }
.nz-featured { margin: 48px -110px 60px; }
.nz-featured img { width: 100%; max-height: 520px; object-fit: cover; }
.nz-answer { border-left: 5px solid var(--nz-yellow); background: #fff; padding: 30px 38px; margin: 50px 0; }
.nz-answer small, .nz-source-label { font: 700 10px monospace; letter-spacing: .15em; color: var(--nz-teal); }
.nz-answer h2 { font: 700 23px/1.75 serif; margin: 10px 0; color: var(--nz-ink); }
.nz-content { width: min(680px,100%); margin: auto; font-size: 16px; line-height: 2.05; }
.nz-content h2 { font: 700 27px/1.55 serif; margin: 65px 0 23px; border-bottom: 1px solid #bdc9c6; padding-bottom: 14px; color: var(--nz-ink); }
.nz-content h3 { font: 700 21px/1.6 serif; margin-top: 45px; }
.nz-content p { margin: 0 0 1.5em; }
.nz-content blockquote { margin: 40px 0; padding: 28px 34px; background: #fff3d7; border: 0; border-top: 4px solid var(--nz-yellow); }
.nz-content .nz-source-box { background: #dfeeea; border-top: 4px solid var(--nz-teal); padding: 30px 36px; margin: 55px 0; }
.nz-related { border-top: 1px solid var(--nz-line); margin-top: 80px; padding-top: 55px; }
.nz-related h2 { font: 700 28px serif; }
.nz-related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.nz-related-grid a { border: 1px solid var(--nz-line); background: #fff; padding: 22px; color: inherit; text-decoration: none; }
.nz-related-grid strong { display: block; line-height: 1.7; }

/* Archive, search, pages and 404 */
.nz-listing-hero { background: var(--nz-deep); color: #fff; padding: 82px 24px 72px; }
.nz-listing-hero-inner { width: min(1160px,100%); margin: auto; }
.nz-listing-hero h1 { color: #fff; font: 700 clamp(36px,5vw,54px)/1.35 serif; margin: 18px 0 12px; }
.nz-listing-hero p { color: #b8cecb; line-height: 1.9; }
.nz-listing-main { width: min(1160px,calc(100% - 48px)); margin: 70px auto 95px; }
.nz-listing-main .nz-post-grid { grid-template-columns: repeat(3,1fr); }
.nz-listing-main .nz-empty { border: 1px solid var(--nz-line); }
.nz-pagination { margin-top: 46px; display: flex; justify-content: center; }
.nz-pagination .nav-links { display: flex; gap: 8px; align-items: center; }
.nz-pagination a, .nz-pagination span { display: grid; place-items: center; min-width: 42px; height: 42px; border: 1px solid var(--nz-line); background: #fff; color: var(--nz-ink); text-decoration: none; padding: 0 12px; }
.nz-pagination .current { background: var(--nz-deep); color: #fff; border-color: var(--nz-deep); }
.nz-page { width: min(820px,calc(100% - 40px)); margin: 70px auto 95px; }
.nz-page-header { padding-bottom: 28px; border-bottom: 1px solid var(--nz-line); margin-bottom: 42px; }
.nz-page-header h1 { font: 700 clamp(34px,5vw,48px)/1.45 serif; color: var(--nz-ink); margin: 18px 0 0; }
.nz-not-found { width: min(760px,calc(100% - 40px)); margin: 90px auto 120px; text-align: center; }
.nz-not-found strong { display: block; color: var(--nz-yellow); font: 700 13px monospace; letter-spacing: .18em; }
.nz-not-found h1 { font: 700 clamp(38px,6vw,60px)/1.4 serif; margin: 20px 0; }
.nz-not-found p { color: var(--nz-muted); line-height: 2; }
.nz-not-found a { display: inline-block; margin-top: 25px; background: var(--nz-deep); color: #fff; padding: 14px 24px; text-decoration: none; }

@media (max-width: 850px) {
  .nz-header { height: 76px; }
  .nz-nav a:not(.nz-search) { display: none; }
  .nz-hero { display: block; min-height: 670px; padding: 80px 28px 50px; }
  .nz-hero-copy { position: relative; z-index: 2; }
  .nz-orbit { width: 330px; margin: 48px auto 0; }
  .nz-issue { display: none; }
  .nz-wrap { width: min(100% - 32px,680px); }
  .nz-section { padding: 75px 0; }
  .nz-today-card { grid-template-columns: 1fr; }
  .nz-visual { min-height: 340px; }
  .nz-title { display: block; }
  .nz-title .nz-kicker { margin-bottom: 22px; }
  .nz-category-grid, .nz-post-grid { grid-template-columns: 1fr 1fr; }
  .nz-featured { margin-inline: 0; }
  .nz-related-grid { grid-template-columns: 1fr; }
  .nz-listing-main .nz-post-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 540px) {
  .nz-header { width: calc(100% - 28px); }
  .nz-brand small { display: none; }
  .nz-brand strong { font-size: 18px; }
  .nz-brand img { width: 39px; height: 45px; }
  .nz-nav { gap: 0; }
  .nz-search { font-size: 0; border: 0; }
  .nz-search::after { content: "⌕"; font-size: 25px; }
  .nz-hero { min-height: 620px; }
  .nz-hero h1 { font-size: 38px; }
  .nz-orbit { width: 275px; }
  .nz-today-copy { padding: 36px 28px; }
  .nz-today-copy h2 { font-size: 28px; }
  .nz-specimen { width: 225px; }
  .nz-category-grid, .nz-post-grid { grid-template-columns: 1fr; }
  .nz-listing-main { width: min(100% - 32px,680px); margin-top: 50px; }
  .nz-listing-main .nz-post-grid { grid-template-columns: 1fr; }
  .nz-title h2 { font-size: 27px; }
  .nz-footer { grid-template-columns: 1fr; }
  .nz-footer-links { display: none; }
  .nz-article { margin-top: 45px; }
  .nz-article-header h1 { font-size: 32px; }
  .nz-answer { padding: 24px; }
  .nz-content h2 { font-size: 23px; }
}
