/*
Theme Name: Temp03 Theme
Theme URI:
Author:
Description: Temp03 theme. FLO naming, CSS custom properties, responsive.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: temp03
*/

/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */
:root {
  --color-primary:    #1DA1F2;
  --color-header-bg:  #1DA1F2;
  --color-accent:     #FB8E0B;
  --color-text:       #333333;
  --color-bg:         #ffffff;
  --color-bg-white:   #ffffff;
  --color-title-bg:   #FDFBEF;
  --color-placeholder:#727171;
  --color-separator:  #fff;
  --color-separator-light: #e8dfe0;
  --color-no-thumb:   #dfdfdf;

  --font-sans: 'Noto Sans JP', sans-serif;
  --font-en: 'Montserrat', sans-serif;
  /* SP 14px → PC 768px で 16px、最大16px、その間は可変 */
  --font-size-base: clamp(14px, calc(14px + 2 * (100vw - 320px) / 448), 16px);
  /* SP 13px → PC 768px で 14px、最大14px、その間は可変 */
  --font-size-sm: clamp(13px, calc(13px + 2 * (100vw - 320px) / 448), 14px);
  /* SP 16px → PC 768px で 18px、最大18px、その間は可変 */
  --font-size-md: clamp(16px, calc(16px + 2 * (100vw - 320px) / 448), 18px);
  --font-size-lg: 20px;
  --font-size-xl: 24px;
  --line-height: 1.6;

  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 25px;
  --space-lg: 80px;

  --l-inner-max: 1080px;
  --l-inner-padding: clamp(16px, 4vw, 40px);

  --header-top-h: clamp(10px, calc(10px + 25 * (100vw - 899px)), 35px);
  --header-nav-h: 170px;
}

/* ==========================================================================
   Reset CSS
   ========================================================================== */
html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, address, cite, code,
del, dfn, em, img, ins, kbd, q, samp,
small, strong, sub, sup, var,
b, i,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, figcaption, figure,
footer, header, hgroup, menu, nav, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font-size: 100%;
  vertical-align: baseline;
  background: transparent;
}

body {
  line-height: 1;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

ol, ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
  content: "";
  content: none;
}

a {
  margin: 0;
  padding: 0;
  font-size: 100%;
  vertical-align: baseline;
  background: transparent;
  text-decoration: none;
  cursor: pointer;
}

ins {
  background-color: #ff9;
  color: #000;
  text-decoration: none;
}

mark {
  background-color: #ff9;
  color: #000;
  font-style: italic;
  font-weight: bold;
}

del {
  text-decoration: line-through;
}

abbr[title], dfn[title] {
  border-bottom: 1px dotted;
  cursor: help;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

.wp-block-table th {
  white-space: nowrap;
}

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #cccccc;
  margin: 1em 0;
  padding: 0;
}

input, select {
  vertical-align: middle;
}

input {
  border-radius: 0;
}

[type=number]::-webkit-inner-spin-button,
[type=number]::-webkit-outer-spin-button {
  height: auto;
}

[type=search] {
  -webkit-appearance: textfield;
  appearance: textfield;
  outline-offset: -2px;
}

[type=search]::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

textarea {
  overflow: auto;
  resize: vertical;
}

button,
input,
optgroup,
select,
textarea {
  font: inherit;
}

optgroup {
  font-weight: bold;
}

button {
  overflow: visible;
}

button,
select {
  text-transform: none;
}

button,
[type=button],
[type=reset],
[type=submit],
[role=button] {
  cursor: pointer;
}

button::-moz-focus-inner,
[type=button]::-moz-focus-inner,
[type=reset]::-moz-focus-inner,
[type=submit]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

button:-moz-focusring,
[type=button]::-moz-focus-inner,
[type=reset]::-moz-focus-inner,
[type=submit]::-moz-focus-inner {
  outline: 1px dotted #000;
}

button,
html [type=button],
[type=reset],
[type=submit] {
  -webkit-appearance: button;
  appearance: button;
}

button,
input,
select,
textarea {
  background-color: transparent;
  border-style: none;
}

a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline-width: 0;
  outline: none;
}

select {
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
}

select::-ms-expand {
  display: none;
}

select::-ms-value {
  color: currentColor;
}

legend {
  border: 0;
  color: inherit;
  display: table;
  max-width: 100%;
  white-space: normal;
}

::-webkit-file-upload-button {
  -webkit-appearance: button;
  appearance: button;
  color: inherit;
  font: inherit;
}

[disabled] {
  cursor: default;
}

*,
*::before,
*::after {
  background-repeat: no-repeat;
  box-sizing: border-box;
}

::before,
::after {
  text-decoration: inherit;
  vertical-align: inherit;
}

@media screen and (min-width: 768px) {
  a[href^="tel:"] {
    pointer-events: none;
    user-select: initial !important;
    -webkit-user-select: initial !important;
  }
}

textarea, input[type=text], input[type=email], input[type=tel] {
  font-size: max(1.15rem, 16px);
}
@media screen and (min-width: 768px) {
  textarea, input[type=text], input[type=email], input[type=tel] {
    font-size: max(1rem, 16px);
  }
}

html {
  scroll-behavior: smooth;
}

/* ==========================================================================
   Base
   ========================================================================== */
body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height);
  color: var(--color-text);
  background-color: var(--color-bg);
}

img { max-width: 100%; height: auto; vertical-align: middle; }

a:hover { color: var(--color-accent); }

/* ==========================================================================
   Layout: l-
   ========================================================================== */

/* Header */
.l-header {
  background-color: var(--color-header-bg);
}

.l-header__top {
  height: var(--header-top-h);
  background-color: var(--color-primary);
}

.l-header__nav {
  background-color: var(--color-header-bg);
  display: flex;
  align-items: center;
  padding: 26px 0 15px;
}

.l-header__inner {
  width: 100%;
  max-width: var(--l-inner-max);
  margin: 0 auto;
  padding: 0 var(--l-inner-padding);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

.l-header__row-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.l-header__row-top .c-logo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  grid-column: 2;
  max-width: 180px;
}

.l-header__row-top .c-search {
  grid-column: 3;
  justify-self: end;
}

/* Main */
.l-main {
  min-height: 60vh;
  padding: 60px 0 clamp(80px, calc(80px + 40 * (100vw - 320px) / 448), 120px);
  background-color: var(--color-bg);
}

/* Inner */
.l-inner {
  max-width: var(--l-inner-max);
  margin: 0 auto;
  padding: 0 var(--l-inner-padding);
}

/* Footer */
.l-footer {
  background-color: var(--color-primary);
  padding: var(--space-md) 0;
}

.l-footer__inner {
  max-width: var(--l-inner-max);
  margin: 0 auto;
  padding: 0 var(--l-inner-padding);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  color: #ffffff;
}

.l-footer__copy {
  font-size: var(--font-size-sm);
  text-align: center;
  color: #ffffff;
  margin: 30px 0 0;
}

.l-footer__contact a {
  color: #fdfdfd;
  font-size: var(--font-size-sm);
}
.l-footer__contact a:hover { opacity: 0.8; }

/* ==========================================================================
   Component: c-
   ========================================================================== */

/* Logo */
.c-logo {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}
.c-logo a,
.c-logo__link {
  color: inherit;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.c-logo__text {
  display: block;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
}
.c-logo__link img {
  display: block;
  max-width: 100%;
  height: auto;
  max-height: 60px;
  object-fit: contain;
}
.c-logo__link--image_top .c-logo__text,
.c-logo__link--text_top .c-logo__text {
  font-size: 11px;
}

/* Category Nav */
.c-nav {
  width: 100%;
}
.c-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
}
.c-nav__list li {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 calc(100% / 6);
}
.c-nav__link {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  padding: 2px 5px;
  transition: color 0.3s ease;
}
.c-nav__link:hover { color: var(--color-accent); }
.c-nav__link--current {
  border-bottom: 2px solid #fff;
  padding-bottom: 2px;
}

/* Search */
.c-search {
  display: flex;
  border: none;
  border-radius: 4px;
  padding: 0;
  gap: 0;
  background: transparent;
  width: 100%;
  max-width: 300px;
  overflow: hidden;
}
.c-search__input {
  border: none;
  outline: none;
  font-size: var(--font-size-sm);
  color: var(--color-text);
  background: #fff;
  width: 100%;
  max-width: 300px;
  padding: 7px 12px;
}
.c-search__input::placeholder { color: var(--color-placeholder); }
.c-search__btn {
  background: #6E6E6E;
  border: none;
  padding: 7px 10px;
  cursor: pointer;
  color: #fff;
  line-height: 1;
  flex-shrink: 0;
  transition: background 0.2s ease;
}
.c-search__btn:hover { background: var(--color-accent); }
.c-search__btn svg { display: block; }

/* Footer Nav */
.c-footer-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}
.c-footer-nav__list li {
  display: flex;
  align-items: center;
}
.c-footer-nav__list li + li::before {
  content: '';
  display: inline-block;
  width: 1px;
  height: 20px;
  background-color: rgba(255,255,255,0.4);
  margin: 0 clamp(5px, 2vw, 40px);
}
.c-footer-nav__link {
  color: #ffffff;
  font-weight: 600;
  font-size: var(--font-size-sm);
}
.c-footer-nav__link:hover { opacity: 0.8; color: #ffffff; }

/* Card */
.c-card {
  position: relative;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.c-card__content {
  padding: 5px 0 0;
  transition: opacity 0.25s ease;
}
.c-card__link {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
}
.c-card:hover .c-card__thumb img ,.c-card:hover .c-card__thumb--noimg .custom-logo {
  opacity: 0.6;
}
.c-card:hover .c-card__body {
  opacity: 0.6;
}
.c-card__thumb {
  width: 100%;
  aspect-ratio: 3/2;
  background-color: var(--color-no-thumb);
  overflow: hidden;
}
.c-card__thumb--noimg {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm);
}
.c-card__thumb--noimg img.custom-logo {
  width: auto !important;
  height: auto !important;
  max-width: 80%;
  max-height: 40%;
  object-fit: contain !important;
  display: block;
  transition: opacity 0.25s ease;
}
.c-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}
.c-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xs);
}
.c-card__cat {
  font-size: var(--font-size-sm);
  color: var(--color-text);
  font-weight: 600;
}
.c-card__badge {
  font-size: var(--font-size-sm);
  color: var(--color-accent);
  font-weight: 600;
}
.c-card__date {
  font-size: var(--font-size-base);
  color: var(--color-text);
}
.c-card__body {
  padding: var(--space-xs) 0 0;
  transition: opacity 0.25s ease;
}
.c-card__title {
  font-size: var(--font-size-md);
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 var(--space-xs);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.c-card__excerpt {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 var(--space-xs);
}
.c-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 15px;
}
.c-card__tag {
  position: relative;
  z-index: 1;
  font-size: var(--font-size-sm);
  color: var(--color-text);
}

/* Breadcrumb */
.c-breadcrumb {
  margin-bottom: var(--space-md);
}
.c-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-size: var(--font-size-sm);
  color: var(--color-text);
}
.c-breadcrumb__item + .c-breadcrumb__item::before {
  content: '>';
  color: var(--color-placeholder);
  padding: 0 2px;
}
.c-breadcrumb__item a {
  color: var(--color-text);
}
.c-breadcrumb__item a:hover {
  color: var(--color-accent);
}
.c-breadcrumb__item--current {
  color: var(--color-placeholder);
}

/* Pagination */
.c-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-md);
}
.c-pagination__pages {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}
.c-pagination__prev a,
.c-pagination__prev .c-pagination__btn,
.c-pagination__next a,
.c-pagination__next .c-pagination__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  font-size: 12px;
  color: #fff;
  background: #a0a0a0;
  transition: opacity 0.2s ease;
  border-radius: 18px;
}
.c-pagination__prev a:hover,
.c-pagination__next a:hover {
  opacity: 0.75;
  color: #fff;
}
.c-pagination__btn--disabled {
  background: #d9d9d9;
  color: #fff;
  cursor: default;
}
.c-pagination__pages a,
.c-pagination__pages span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0 6px;
  font-size: var(--font-size-base);
  color: var(--color-text);
  background: transparent;
  transition: color 0.2s ease;
  border-radius: 18px;
}
.c-pagination__pages a:hover {
  color: var(--color-accent);
}
.c-pagination__pages .current {
  background: var(--color-primary);
  color: #fff;
}
.c-pagination__pages .dots {
  background: transparent;
  letter-spacing: 2px;
}

/* Sidebar widgets */
.c-widget__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  line-height: 1;
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid var(--color-primary);
}
.c-widget__title-en {
  font-family: var(--font-en);
  font-size: clamp(22px, calc(22px + 10 * (100vw - 320px) / 448), 32px);
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.c-widget__title-ja {
  font-size: var(--font-size-sm);
  color: var(--color-text);
  font-weight: 600;
  margin: 0;
}
.c-widget-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--color-separator);
  text-decoration: none;
  color: var(--color-text);
  transition: color 0.3s ease;
}
.c-widget-item:has(.c-widget-item__rank):first-of-type {
  padding-top: 15px !important;
}
.c-widget-item:last-child { border-bottom: none; }
.c-widget-item:hover { color: var(--color-accent); }
.c-widget-item__thumb {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background-color: var(--color-no-thumb);
  overflow: visible;
  position: relative;
}
.c-widget-item__thumb--noimg {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}
.c-widget-item__thumb--noimg img.custom-logo {
  width: auto !important;
  height: auto !important;
  max-width: 80%;
  max-height: 100%;
  object-fit: contain !important;
  display: block;
}
.c-widget-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.c-widget-item__body {
  flex: 1;
  min-width: 0;
}
.c-widget-item__rank {
  position: absolute;
  top: -15px;
  left: -6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin: 0;
  z-index: 1;
  width: 40px;
  height: 40px;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}
[data-rank="1"].c-widget-item__rank {
  background-image: url("img/no01-icon.png");
}
[data-rank="2"].c-widget-item__rank {
  background-image: url("img/no02-icon.png");
}
[data-rank="3"].c-widget-item__rank {
  background-image: url("img/no03-icon.png");
}
[data-rank="4"].c-widget-item__rank{
  background-image: url("img/no04-icon.png");
}
[data-rank="5"].c-widget-item__rank {
  background-image: url("img/no05-icon.png");
}
.c-widget-item__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 4px;
}
.c-widget-item__cat {
  font-size: 12px;
  color: var(--color-text);
  font-weight: 600;
}
.c-widget-item__badge {
  font-size: 12px;
  color: var(--color-accent);
  font-weight: 600;
}
.c-widget-item__title {
  font-size: var(--font-size-sm);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Hamburger */
.c-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 25px;
  height: 25px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  grid-column: 3;
  justify-self: end;
}
.c-hamburger__line {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--color-separator);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.c-hamburger.is-open .c-hamburger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.c-hamburger.is-open .c-hamburger__line:nth-child(2) {
  opacity: 0;
}
.c-hamburger.is-open .c-hamburger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Drawer */
.c-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: var(--color-bg-white);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.c-drawer.is-open {
  transform: translateX(0);
}
.c-drawer__inner {
  padding: var(--space-md);
  padding-top: 100px;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.c-drawer__search {
  max-width: 100%;
  border: 1px solid var(--color-text);
}
.c-drawer__list {
  display: flex;
  flex-direction: column;
}
.c-drawer__list > li {
  border-bottom: 1px solid var(--color-separator-light);
}
.c-drawer__item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.c-drawer__link {
  display: block;
  padding: 16px 0;
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-text);
  flex: 1;
}
.c-drawer__link:hover { color: var(--color-accent); }
.c-drawer__toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 16px 4px;
  color: var(--color-text);
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  flex-shrink: 0;
}
.c-drawer__toggle:hover { color: var(--color-accent); }
.c-drawer__sub {
  display: none;
  background: var(--color-bg);
  padding: 0 0 8px;
}
.c-drawer__sub.is-open { display: block; }
.c-drawer__sub li { padding: 0; }
.c-drawer__sub-link {
  display: block;
  padding: 12px var(--space-md);
  font-size: var(--font-size-sm);
  color: var(--color-text);
}
.c-drawer__sub-link:hover { color: var(--color-accent); }
.c-drawer__overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 199;
}
.c-drawer__overlay.is-open {
  display: block;
}

/* ==========================================================================
   Project: p-
   ========================================================================== */

/* Blog layout */
.p-blog {
  display: flex;
  gap: 40px;
}
.p-blog__main { flex: 1 1 0; min-width: 0; }
.p-blog__sidebar {
  flex: 0 0 300px;
  width: 300px;
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 6vw + 20px, 60px);
  /* position: sticky; */
  top: 20px;
}

/* Article grid */
.p-posts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

/* Archive head */
.p-archive-head {
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--color-accent);
}
.p-archive-head__title {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
  line-height: 1.4;
}
.p-archive-head__desc {
  margin: 8px 0 0;
  font-size: var(--font-size-sm);
  color: var(--color-text);
}

/* Single post */
.p-content__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.p-content__cat {
  font-size: var(--font-size-sm);
  color: var(--color-text);
}
.p-content__badge {
  font-size: var(--font-size-sm);
  color: var(--color-accent);
  font-weight: 600;
}
.p-content__title {
  font-size: clamp(22px, calc(22px + 6 * (100vw - 320px) / 448), 28px);
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-text);
  margin: 0 0 var(--space-md);
}
.p-content__thumb {
  margin-bottom: var(--space-md);
}
.p-content__thumb img {
  width: 100%;
  height: auto;
  display: block;
}
.p-content__tags {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: var(--space-md);
}
.p-content__tag {
  font-size: var(--font-size-sm);
  color: var(--color-text);
}
.p-content__tag:hover {
  color: var(--color-accent);
}

/* Content body typography */
.p-content__body {
  font-size: var(--font-size-base);
  line-height: 1.9;
  color: var(--color-text);
}
.p-content__body h2 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-accent);
  margin: var(--space-sm) 0;
  padding: 10px;
  background-color: var(--color-title-bg);
}
.p-content__body h3 {
  font-size: var(--font-size-md);
  font-weight: 600;
  color: var(--color-text);
  margin: var(--space-md) 0 var(--space-sm);
  padding: 0 10px;
  border-left: 3px solid var(--color-accent);
  border-bottom: 1px solid var(--color-accent);
}
.p-content__body p {
  margin: 0 0 var(--space-sm);
}
.p-content__body a {
  color: var(--color-accent);
  text-decoration: underline;
}
.p-content__body a:hover {
  opacity: 0.75;
}
.p-content__body ul,
.p-content__body ol {
  margin: 0 0 var(--space-sm);
  padding-left: 0;
}
.p-content__body ul {
  list-style: none;
}
.p-content__body ul li {
  padding-left: 1em;
  position: relative;
  margin-bottom: 4px;
}
.p-content__body ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0;
  line-height: inherit;
  color: var(--color-text);
}
.p-content__body ol {
  list-style: none;
  counter-reset: ol-counter;
}
.p-content__body ol li {
  counter-increment: ol-counter;
  padding-left: 1em;
  position: relative;
  margin-bottom: 4px;
}
.p-content__body ol li::before {
  content: counter(ol-counter) '.';
  position: absolute;
  left: 0;
  top: 0;
  line-height: inherit;
  color: var(--color-text);
}
.p-content__body img {
  max-width: 100%;
  height: auto;
}
.p-content__body blockquote {
  position: relative;
  margin: var(--space-md) 0;
  padding: var(--space-md) var(--space-md) var(--space-sm);
  border: 1px solid var(--color-text);
  background: var(--color-bg-white);
}
.p-content__body blockquote::before {
  content: '\201C';
  position: absolute;
  top: -12px;
  left: 0;
  height: 24px;
  font-size: 55px;
  line-height: 1;
  color: var(--color-text);
  font-family: serif;
}
.p-content__body blockquote::after {
  content: '\201D';
  position: absolute;
  bottom: -12px;
  right: 0;
  height: 24px;
  font-size: 55px;
  line-height: 1;
  color: var(--color-text);
  font-family: serif;
}
.p-content__body cite {
  display: block;
  text-align: right;
  font-size: var(--font-size-sm);
  color: var(--color-text);
  font-style: normal;
  margin-top: 8px;
}

/* External link block */
.p-content__external {
  margin: var(--space-md) 0;
  text-align: center;
}
.p-content__external-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 32px;
  background-color: var(--color-accent);
  color: #fff;
  font-size: var(--font-size-base);
  font-weight: 700;
  transition: opacity 0.2s ease;
}
.p-content__external-btn:hover {
  opacity: 0.8;
  color: #fff;
}

/* Post navigation */
.p-post-nav {
  display: flex;
  gap: var(--space-sm);
  margin-top: clamp(30px, 8vw, 60px);
}
.p-post-nav__prev,
.p-post-nav__next {
  flex: 1;
}
.p-post-nav__prev a,
.p-post-nav__next a {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary);
  padding: 16px 12px;
  border: 1px solid var(--color-primary);
  font-size: var(--font-size-base);
  color: #fff;
  transition: background 0.2s ease;
  text-align: center;
  border-radius: 30px;
}
.p-post-nav__prev a:hover,
.p-post-nav__next a:hover {
  background: #fff;
  color: var(--color-primary);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 600px) and (max-width: 900px) {
  .p-blog {
    flex-direction: column;
  }
  .p-blog__sidebar {
    flex: none;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-lg);
    position: static;
  }
  .p-blog__sidebar .c-widget {
    flex: 1 1 0;
    min-width: 0;
  }
}

@media (max-width: 899px) {
  .l-main {
    padding-top: 40px;
  }
  .l-header {
    position: sticky;
    top: 0;
    z-index: 2147483647;
  }
  .l-header__row-top {
    align-items: center;
    gap: 0;
  }
  .l-header__row-top .c-logo {
    grid-column: 2;
    justify-self: center;
    width: auto;
    max-width: initial;
    height: auto;
    overflow: visible;
  }
  .l-header__row-top .c-logo img,
  .l-header__row-top .c-logo__link img {
    height: 30px;
    width: auto;
    display: block;
  }
  .l-header__row-top .c-logo__text {
    font-size: 14px;
  }
  .l-header__row-top .c-logo__link--image_top .c-logo__text,
  .l-header__row-top .c-logo__link--text_top .c-logo__text {
    font-size: 10px;
  }
  .l-header__row-top .c-search {
    display: none;
  }
  .l-header__nav {
    padding: 15px 0;
  }
  .c-hamburger {
    display: flex;
    grid-column: 3;
    justify-self: end;
  }
  .c-nav {
    display: none;
  }
}

@media (max-width: 599px) {
  .p-blog {
    flex-direction: column;
    row-gap: 60px;
  }
  .p-blog__sidebarouter {
    flex: none;
    width: 100%;
  }
  .p-blog__sidebar {
    width: 100%;
    row-gap: 30px;
  }
  .p-posts {
    grid-template-columns: 1fr;
  }
  .l-footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
