@charset "UTF-8";

/* ---------------------------------
リセット
--------------------------------- */

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

:where([hidden]:not([hidden='until-found'])) {
  display: none!important;
}

:where(html) {
  -webkit-text-size-adjust: none;
}

@supports not (min-block-size:100dvb) {
  :where(html) {
    block-size: 100%;
  }
}

@media (prefers-reduced-motion:no-preference) {
  :where(html:focus-within) {
    scroll-behavior: smooth;
  }
}

:where(body) {
  block-size: 100%;
  block-size: 100dvb;
  line-height: 1.5;
  font-family: system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

:where(input, button, textarea, select) {
  font: inherit;
  color: inherit;
}

:where(textarea) {
  resize: vertical;
  resize: block;
}

:where(button, label, select, summary, [role='button'], [role='option']) {
  cursor: pointer;
}

:where(:disabled) {
  cursor: not-allowed;
}

:where(label:has(>input:disabled), label:has(+input:disabled)) {
  cursor: not-allowed;
}

:where(button) {
  border-style: solid;
}

:where(a) {
  text-underline-offset: .2ex;
}

:where(ul, ol) {
  list-style: none;
}

:where(img, svg, video, canvas, audio, iframe, embed, object) {
  display: block;
}

:where(img, picture, svg) {
  max-inline-size: 100%;
  block-size: auto;
}

:where(p, h1, h2, h3, h4, h5, h6) {
  overflow-wrap: break-word;
}

:where(h1, h2, h3) {
  line-height: calc(1em + 0.5rem);
}

:where(hr) {
  border: none;
  border-block-start: 1px solid;
  color: inherit;
  block-size: 0;
  overflow: visible;
}

:where(:focus-visible) {
  outline: 2px solid var(--focus-color, Highlight);
  outline-offset: 2px;
}


/* ---------------------------------
変数
--------------------------------- */

:root {
  --color-brand: #e91e63;
  --color-brand-rgb: 233, 30, 99;
  --color-bg: #fff;
  --color-text: #333;
  --color-text-light: #777;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-normal: 0.5s;
  --duration-slow: 0.8s;
}


/* ---------------------------------
テキスト
--------------------------------- */

html {
  font-size: 10px;
}

body {
  font-size: 1.4rem;
  color: var(--color-text);
  font-family: "ヒラギノ丸ゴ Pro W4", "ヒラギノ丸ゴ Pro", "Hiragino Maru Gothic Pro", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "HG丸ｺﾞｼｯｸM-PRO", "HGMaruGothicMPRO", system-ui, sans-serif;
  font-feature-settings: "palt";
  background: var(--color-bg);
}


/* ---------------------------------
レイアウト
--------------------------------- */

body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.container {
  flex: 1;
}


/* ---------------------------------
リンク
--------------------------------- */

a {
  color: var(--color-brand);
  transition: color 0.3s ease, opacity 0.3s ease;
}

a:active, a:hover {
  opacity: 0.7;
  text-decoration: none;
}

a:focus {
  text-decoration: none;
  outline: none;
}


/* ---------------------------------
ページロードアニメーション
--------------------------------- */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

body {
  animation: fadeIn 0.6s ease-out;
}


/* ---------------------------------
ヘッダー / ナビゲーション
--------------------------------- */

.site-nav {
  padding: 20px;
  text-align: center;
  animation: fadeInUp 0.8s var(--ease-out-expo) both;
}

.site-nav .nav-logo {
  display: inline-block;
  margin-bottom: 16px;
  transition: transform 0.4s var(--ease-out-back);
}

.site-nav .nav-logo:hover {
  transform: scale(1.08) rotate(-2deg);
}

.site-nav .nav-logo img {
  display: inline;
  width: auto;
  height: 45px;
}

/* ナビリンク */
.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.nav-links li {
  animation: fadeInUp 0.6s var(--ease-out-expo) both;
}

.nav-links li:nth-child(1) { animation-delay: 0.1s; }
.nav-links li:nth-child(2) { animation-delay: 0.15s; }
.nav-links li:nth-child(3) { animation-delay: 0.2s; }
.nav-links li:nth-child(4) { animation-delay: 0.25s; }
.nav-links li:nth-child(5) { animation-delay: 0.3s; }
.nav-links li:nth-child(6) { animation-delay: 0.35s; }

.nav-links li a {
  text-decoration: none;
  position: relative;
  padding: 4px 0;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-brand);
  transition: width 0.3s var(--ease-out-expo), left 0.3s var(--ease-out-expo);
}

.nav-links li a:hover::after {
  width: 100%;
  left: 0;
}

/* ハンバーガーメニュー */
.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin: 0 auto 8px;
  border: 0;
  border-radius: 6px;
  background: var(--color-brand);
  cursor: pointer;
  transition: transform 0.3s var(--ease-out-back), background-color 0.3s ease;
}

.nav-toggle:hover {
  transform: scale(1.1);
}

.nav-toggle:active {
  transform: scale(0.95);
}

.nav-toggle .bar {
  position: absolute;
  left: 10px;
  width: calc(100% - 20px);
  height: 2px;
  background: #fff;
  transition: transform 0.4s var(--ease-out-expo), opacity 0.3s ease;
}

.nav-toggle .bar:nth-child(1) { top: 13px; }
.nav-toggle .bar:nth-child(2) { top: 21px; }
.nav-toggle .bar:nth-child(3) { top: 29px; }

.nav-toggle.--active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.--active .bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.--active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media screen and (max-width: 991px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s var(--ease-out-expo), opacity 0.4s ease;
    opacity: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  }

  .nav-links.--active {
    max-height: 500px;
    opacity: 1;
    padding: 8px 0;
  }

  .nav-links li a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    transition: background-color 0.3s ease;
  }

  .nav-links li a:hover {
    background-color: rgba(var(--color-brand-rgb), 0.05);
  }
}


/* ---------------------------------
記事リスト（ホーム）
--------------------------------- */

.list {
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(auto-fill, minmax(min(20%, 100%), 1fr));
  grid-template-rows: masonry;
  padding: 0 4px;
}

@media screen and (max-width: 991px) {
  .list {
    grid-template-columns: repeat(auto-fill, minmax(min(33.333%, 100%), 1fr));
  }
}

@media screen and (max-width: 640px) {
  .list {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 0 12px;
  }
}

/* 各アイテム - スクロールアニメーション対応 */
.item {
  opacity: 0;
  transform: translateY(50px) scale(0.95);
  transition:
    opacity 0.7s var(--ease-out-expo),
    transform 0.7s var(--ease-out-expo);
  overflow: hidden;
  border-radius: 4px;
}

.item.--visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* 各アイテムに遅延をつける（CSS版） */
.item:nth-child(5n+1) { transition-delay: 0s; }
.item:nth-child(5n+2) { transition-delay: 0.06s; }
.item:nth-child(5n+3) { transition-delay: 0.12s; }
.item:nth-child(5n+4) { transition-delay: 0.18s; }
.item:nth-child(5n+5) { transition-delay: 0.24s; }

.item a {
  display: block;
  overflow: hidden;
}

.item img {
  width: 100%;
  height: auto;
  transition: transform 0.6s var(--ease-out-expo), filter 0.4s ease;
  will-change: transform;
}

.item:hover img {
  transform: scale(1.06);
}

.item:active img {
  transform: scale(0.98);
  transition-duration: 0.15s;
}


/* ---------------------------------
もっと読み込むボタン
--------------------------------- */

.pager {
  text-align: center;
  margin: 40px auto;
}

.pager__next {
  display: inline-block;
  padding: 14px 48px;
  background: var(--color-brand);
  color: #fff;
  border-radius: 50px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.4rem;
  transition:
    transform 0.3s var(--ease-out-back),
    box-shadow 0.3s ease,
    background-color 0.3s ease;
  box-shadow: 0 4px 15px rgba(var(--color-brand-rgb), 0.3);
}

.pager__next:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 25px rgba(var(--color-brand-rgb), 0.4);
}

.pager__next:active {
  transform: translateY(0) scale(0.97);
  transition-duration: 0.1s;
}

.has-loaded-ajax-all-posts .pager {
  display: none;
}


/* ---------------------------------
ローディング
--------------------------------- */

.modal-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100vw;
  height: 100vh;
  background-color: rgba(var(--color-brand-rgb), 0.85);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  font-size: 4vh;
  font-weight: bold;
  color: #fff;
  transition: opacity 0.4s ease;
}

.is-loading-ajax .modal-loading {
  opacity: 1;
  pointer-events: auto;
}

.modal-loading img {
  animation: float 1.5s ease-in-out infinite;
}


/* ---------------------------------
フッター
--------------------------------- */

footer {
  padding: 20px;
  font-size: 1.1rem;
  text-align: center;
  color: var(--color-text-light);
  animation: fadeIn 1s ease-out 0.5s both;
}


/* ---------------------------------
トップへ戻る
--------------------------------- */

.to-top {
  display: block;
  position: fixed;
  right: 12px;
  bottom: 12px;
  width: 150px;
  z-index: 50;
}

.to-top:hover {
  animation: float 1s ease-in-out infinite;
}

.to-top img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.15));
  transition: filter 0.3s ease;
}

.to-top:hover img {
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.25));
}

@media screen and (max-width: 767px) {
  .to-top {
    width: 120px;
    right: 8px;
    bottom: 8px;
  }
}


/* ---------------------------------
WYSIWYG
--------------------------------- */

.wysiwyg p + p {
  margin-top: 20px;
}


/* ---------------------------------
固定ページ
--------------------------------- */

.page .article {
  max-width: 576px;
  margin: auto;
  padding: 0 20px;
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.2s both;
}

.page .img-eyecatch {
  display: block;
  margin: 20px 0;
  border-radius: 8px;
}


/* ---------------------------------
個別記事
--------------------------------- */

.single .article {
  max-width: 576px;
  margin: auto;
  padding: 0 20px;
}

.single .page-title {
  animation: fadeInUp 0.6s var(--ease-out-expo) 0.1s both;
}

.single .article > p {
  animation: fadeIn 0.6s ease 0.2s both;
  color: var(--color-text-light);
}

.single .img-eyecatch {
  display: block;
  margin: 20px 0;
  border-radius: 8px;
  animation: scaleIn 0.7s var(--ease-out-expo) 0.3s both;
}

.single .wysiwyg {
  animation: fadeInUp 0.7s var(--ease-out-expo) 0.4s both;
}

.nav-prev-next {
  display: flex;
  justify-content: space-between;
  max-width: 576px;
  margin: 60px auto 0 auto;
  padding: 0 20px;
  animation: fadeIn 0.6s ease 0.5s both;
}

.nav-prev-next a {
  display: inline-block;
  padding: 8px 24px;
  border: 2px solid var(--color-brand);
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    transform 0.3s var(--ease-out-back);
}

.nav-prev-next a:hover {
  background: var(--color-brand);
  color: #fff;
  transform: scale(1.05);
  opacity: 1;
}


/* ---------------------------------
コメント
--------------------------------- */

.comments-area {
  max-width: 576px;
  margin: 60px auto 0 auto;
  padding: 0 20px;
  animation: fadeInUp 0.7s var(--ease-out-expo) 0.6s both;
}

#commentform .form-group label,
#commentform .form-group input,
#commentform .form-group textarea {
  display: block;
  width: 100%;
}

#commentform .form-group label {
  margin-top: 15px;
}

#commentform .form-group input,
#commentform .form-group textarea {
  border: 1px #ccc solid;
  border-radius: 6px;
  padding: 8px 12px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#commentform .form-group input:focus,
#commentform .form-group textarea:focus {
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(var(--color-brand-rgb), 0.15);
  outline: none;
}

#comments {
  margin-bottom: 3em;
  color: var(--color-text-light);
}

#comments .comment-list {
  margin: 3em 0;
}

#comments .comment-list li {
  margin-bottom: 1.5em;
  color: var(--color-text);
}

#comments .form-group label {
  font-style: italic;
  font-weight: normal;
}

#comments input[type="submit"] {
  margin-top: 30px;
  padding: 12px 32px;
  color: #fff;
  background: var(--color-brand);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: bold;
  transition:
    transform 0.3s var(--ease-out-back),
    box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(var(--color-brand-rgb), 0.3);
}

#comments input[type="submit"]:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 20px rgba(var(--color-brand-rgb), 0.4);
}

#comments input[type="submit"]:active {
  transform: translateY(0) scale(0.97);
}


/* ---------------------------------
日付アーカイブ
--------------------------------- */

.archive-title {
  text-align: center;
  margin: 40px 0 20px;
  animation: fadeInUp 0.6s var(--ease-out-expo) both;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  padding: 0 20px;
  max-width: 960px;
  margin: 0 auto;
}

.archive-grid .item {
  border-radius: 8px;
}
