/*
Theme Name: ENFP Otaku Kawaii
Theme URI: https://example.com/
Author: Otaku Blog
Description: ENFPインドアヲタクの熱しやすく冷めやすい。用のかわいいブログテーマ
Version: 1.2
*/
@import url("https://fonts.googleapis.com/css2?family=Kiwi+Maru:wght@400;500&family=Zen+Maru+Gothic:wght@400;500;700&display=swap");
:root {
  --pink: #f2a5c2;
  --pink2: #ffe7f0;
  --blue: #dceff8;
  --ink: #5e5962;
  --line: #eee1e8;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  font-family: "Zen Maru Gothic", sans-serif;
  background: linear-gradient(#fffafd, #fff, #f7fcff);
  overflow-x: hidden;
}
body:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.24;
  background-image: radial-gradient(#f3b9d0 1px, transparent 1px);
  background-size: 22px 22px;
  z-index: -2;
}
a {
  text-decoration: none;
  color: inherit;
}
.header {
  height: 76px;
  padding: 0 4vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fffdfde8;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
}
.brand {
  font-family: "Kiwi Maru";
  line-height: 1.05;
  color: #7181ae;
  font-size: 15px;
}
.brand span {
  color: #ef9ebc;
}
.brand b {
  font-size: 13px;
}
.brand small {
  display: block;
  color: #c88da5;
  font-size: 8px;
  letter-spacing: 0.12em;
  margin-top: 4px;
}
.header nav {
  display: flex;
  gap: 25px;
  font-size: 11px;
  color: #7181ae;
}
.header nav a:hover {
  color: #ec91b1;
}
.layout {
  max-width: 1370px;
  margin: auto;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 220px;
  gap: 28px;
  padding: 24px;
}
.side-nav {
  position: sticky;
  top: 100px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.side-nav a {
  background: #fff;
  border: 1px solid #f0e3ea;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 11px;
  box-shadow: 0 5px 16px #d6bcc72a;
}
.side-nav a:hover {
  background: #fff0f6;
  color: #c57e9a;
}
.hero {
  min-height: 570px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 18px;
  align-items: center;
}
.hero-text {
  padding: 25px 5px;
}
.hand-title {
  font-family: "Kiwi Maru";
  font-size: 32px;
  line-height: 1.45;
  color: #7481ad;
  transform: rotate(-2deg);
}
.hand-title strong {
  color: #df8cab;
  font-weight: 500;
}
.hero-text p {
  line-height: 2;
  font-size: 13px;
  color: #807780;
  margin: 25px 0;
}
.hero-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pill {
  display: inline-block;
  border: 0;
  border-radius: 999px;
  padding: 10px 17px;
  font-family: inherit;
  font-size: 11px;
  cursor: pointer;
}
.pink {
  background: linear-gradient(90deg, #f3afd0, #f6c4d9);
  color: #fff;
  box-shadow: 0 7px 18px #eeabc633;
}
.blue {
  background: #e5f4fb;
  color: #7284ae;
}
#fortune {
  font-size: 11px;
  color: #bc7895;
  min-height: 20px;
  margin-top: 12px;
}
.hero-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px; /* お好みで角丸に */
  object-fit: cover;
}
.hero-visual img {
  width: 280px;
  height: auto;
  display: block;
}
.fake-illustration {
  height: 440px;
  width: 78%;
  border-radius: 45% 55% 50% 50%;
  background: linear-gradient(135deg, #f9dbe8, #e0f1fa);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 55px #d9bfc933;
}
.glow {
  position: absolute;
  width: 280px;
  height: 280px;
  background: #fff9;
  border-radius: 50%;
  filter: blur(10px);
}
.girl {
  font-size: 100px;
  color: #d994b2;
  z-index: 1;
}
.girl-label {
  text-align: center;
  position: absolute;
  bottom: 80px;
  z-index: 2;
  font-size: 9px;
  letter-spacing: 0.25em;
  color: #b87998;
}
.floating {
  position: absolute;
  color: #ee9fbd;
  font-size: 36px;
  z-index: 3;
}
.f1 {
  left: 12%;
  top: 20%;
}
.f2 {
  right: 12%;
  top: 30%;
  font-size: 24px;
}
.f3 {
  left: 25%;
  bottom: 15%;
}

.gacha-box {
  position: absolute;
  right: -10px;
  top: 300px;
  width: 145px;
  padding: 15px;
  background: #fff;
  border: 1px solid #efdce5;
  border-radius: 25px;
  box-shadow: 0 15px 30px #c9afbc44;
  text-align: center;
}
/* モバイル（スマホ）画面の時だけガチャガチャの位置を下げる */
@media screen and (max-width: 1000px) {
  .gacha-box {
    top: 200px !important; /* 下げたい量に合わせて数字を大きく調整（例: 180px〜220px） */
    right: 20% !important; /* スマホ画面の中央付近に置く場合 */
    transform: translateX(50%); /* 中央寄せ */
  }
}

.gacha-box span {
  font-family: "Kiwi Maru";
  font-size: 11px;
  color: #7481ad;
}
.gacha-box button {
  display: block;
  margin: 12px auto 0;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  border: 6px solid #f5b4cf;
  background: linear-gradient(#fff, #ffe6f0);
  color: #d67f9f;
  font-family: inherit;
  font-size: 11px;
  cursor: pointer;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #7281ae;
  font-family: "Kiwi Maru";
  letter-spacing: 0.12em;
  margin: 15px 0;
}
.section-title span {
  font-size: 18px;
}
.section-title i {
  font-style: normal;
  font-size: 9px;
  color: #d08ca8;
}
.article-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.article-grid article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 9px;
  box-shadow: 0 7px 20px #d7bdc822;
  overflow: hidden;
}
.thumb {
  height: 145px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  text-align: center;
  font-family: "Kiwi Maru";
  font-size: 25px;
  line-height: 1.2;
  color: #fff;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, #b7d8f1, #dcbfe8);
  overflow: hidden;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.tag {
  display: inline-block;
  margin: 10px 3px 2px;
  background: #eef8fc;
  color: #7c8db5;
  padding: 4px 7px;
  border-radius: 99px;
  font-size: 8px;
}
.article-grid h2 {
  font-family: "Kiwi Maru";
  font-size: 13px;
  line-height: 1.55;
  font-weight: 500;
  margin: 7px 3px 12px;
}
.article-grid small {
  font-size: 8px;
  color: #aa9ba3;
}
.lower {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 16px;
  margin-top: 30px;
}
.note-card {
  background: #fff4f8;
  border: 1px solid #f3d9e4;
  border-radius: 25px;
  padding: 30px;
  text-align: center;
}
.note-logo {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0.13em;
  color: #4d596b;
}
.note-card h2 {
  font-family: "Kiwi Maru";
  font-size: 15px;
  line-height: 1.8;
  font-weight: 500;
}
.tiny-hearts {
  color: #eda5bf;
  margin-top: 20px;
}
.categories {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 25px;
  padding: 22px;
}
.section-title.mini span {
  font-size: 13px;
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.cat-grid a {
  background: #f7fbfd;
  border-radius: 13px;
  padding: 13px 5px;
  text-align: center;
  color: #7586ae;
}
.cat-grid a:nth-child(2n) {
  background: #fff4f8;
}
.cat-grid b {
  display: block;
  font-size: 9px;
  margin-top: 5px;
  font-weight: 500;
}
.about {
  margin-top: 30px;
  background: #eef8fc;
  border-radius: 30px;
  padding: 30px;
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 35px;
  align-items: center;
}
.about-photo {
  width: 180px;
  height: 180px;
  border-radius: 42% 58% 52% 48%;
  background: linear-gradient(145deg, #fff, #f6dbe8);
  display: grid;
  place-items: center;
  color: #ec9eb9;
  font-size: 48px;
  text-align: center;
}
.about-photo small {
  font-size: 8px;
  letter-spacing: 0.15em;
}
.about h2 {
  font-family: "Kiwi Maru";
  font-size: 22px;
  color: #7581aa;
  font-weight: 500;
}
.about p {
  font-size: 12px;
  line-height: 2;
  color: #807780;
}
.right-column {
  padding-top: 330px;
}
.profile-mini {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  text-align: center;
  font-size: 10px;
  line-height: 1.8;
  box-shadow: 0 7px 20px #d7bdc822;
}
.mini-avatar {
  width: 75px;
  height: 75px;
  margin: auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f8dfeb;
  color: #ed9db9;
  font-size: 30px;
}
.profile-mini h3 {
  font-family: "Kiwi Maru";
  font-weight: 500;
  margin: 8px 0 0;
  color: #7180ab;
}
.search {
  display: flex;
  margin-top: 13px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 99px;
  overflow: hidden;
}
.search input {
  border: 0;
  outline: 0;
  padding: 11px 13px;
  min-width: 0;
  width: 100%;
  font: inherit;
  font-size: 10px;
}
.search button {
  border: 0;
  background: #e4f1fa;
  color: #7586ae;
  width: 40px;
}
.recent {
  margin-top: 13px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 15px;
  font-size: 9px;
}
.recent a {
  display: block;
  border-top: 1px solid #f2e9ed;
  padding: 10px 0;
  color: #817780;
}
.post-page {
  padding: 50px 0;
}
.post-page .post-hero {
  border-radius: 28px;
  overflow: hidden;
  margin-bottom: 25px;
}
.post-page .post-hero img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  object-position: center;
  display: block;
}
.post-page h1 {
  font-family: "Kiwi Maru";
  font-size: 36px;
  color: #7281ae;
}
.post-content {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 25px;
  padding: 35px;
  line-height: 2;
  font-size: 14px;
}
.post-content img {
  max-width: 100%;
  height: auto;
}
.post-meta {
  font-size: 10px;
  color: #aa9ba3;
}
.pager {
  display: flex;
  justify-content: space-between;
  margin-top: 25px;
  font-size: 11px;
  color: #b97895;
}
.pet {
  position: fixed;
  left: 0;
  top: 0;
  width: 62px;
  height: 62px;
  z-index: 80;
  pointer-events: none;
  filter: drop-shadow(0 5px 5px #8d6f7b33);
  transition: transform 0.16s ease-out;
}
.pet img {
  width: 100%;
  height: 100%;
  display: block;
}
.heart {
  position: fixed;
  z-index: 90;
  pointer-events: none;
  color: #f29dbd;
  font-size: 20px;
  animation: float 0.9s ease-out forwards;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 25px;
  transform: translate(-50%, 20px);
  opacity: 0;
  z-index: 100;
  background: #fff;
  border: 1px solid #efd8e2;
  color: #bd7694;
  border-radius: 99px;
  padding: 10px 18px;
  font-size: 11px;
  transition: 0.25s;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
@keyframes float {
  to {
    opacity: 0;
    transform: translate(calc(var(--dx) * 1px), -85px) rotate(var(--rot));
  }
}
footer {
  text-align: center;
  padding: 55px 20px 40px;
  color: #ad9ba5;
  font-size: 11px;
}
footer small {
  font-size: 8px;
  letter-spacing: 0.15em;
}
@media (max-width: 1050px) {
  .layout {
    grid-template-columns: 150px 1fr;
  }
  .right-column {
    display: none;
  }
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 720px) {
  .header {
    height: 62px;
    padding: 0 15px;
  }
  .header nav {
    gap: 9px;
    font-size: 8px;
  }
  .layout {
    display: block;
    padding: 10px 14px;
  }
  .side-nav {
    display: none;
  }
  .hero {
    display: block;
    min-height: auto;
    padding: 30px 0;
  }
  .hero-visual {
    height: 350px;
    margin-bottom: 20px;
  }
  .fake-illustration {
    width: 88%;
    height: 330px;
  }
  .girl {
    font-size: 70px;
  }
  .gacha-box {
    top: 55px;
    width: 115px;
  }
  .hero-text {
    text-align: center;
  }
  .hand-title {
    font-size: 28px;
  }
  .hero-actions {
    justify-content: center;
  }
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .thumb {
    height: 120px;
  }
  .lower {
    grid-template-columns: 1fr;
  }
  .about {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about-photo {
    margin: auto;
  }
  .cat-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .pet {
    width: 50px;
    height: 50px;
  }
  .post-page h1 {
    font-size: 28px;
  }
  .post-content {
    padding: 22px;
  }
}
/* プロフィール画像の丸枠フィット設定 */
.mini-avatar {
  overflow: hidden; /* 枠からはみ出た部分を隠す */
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 枠に合わせて綺麗にトリミング */
}

/* ===== ENFP Otaku polish / v1.1 ===== */
:root {
  --pink: #ee9fbd;
  --pink-deep: #cf7899;
  --pink2: #fff0f6;
  --blue: #e5f3fb;
  --blue-deep: #7284ae;
  --ink: #5d5962;
  --muted: #958b92;
  --line: #eadfe6;
  --paper: rgba(255, 255, 255, 0.88);
  --shadow: 0 14px 36px rgba(157, 126, 145, 0.11);
}
body {
  background:
    radial-gradient(
      circle at 82% 12%,
      rgba(231, 214, 255, 0.32),
      transparent 23rem
    ),
    radial-gradient(
      circle at 12% 62%,
      rgba(255, 220, 235, 0.28),
      transparent 22rem
    ),
    linear-gradient(180deg, #fffafd 0%, #fff 52%, #f8fcff 100%);
}
body:before {
  opacity: 0.16;
  background-size: 26px 26px;
}
.header {
  height: 78px;
  padding: 0 max(22px, 4vw);
  box-shadow: 0 4px 20px rgba(126, 102, 120, 0.05);
}
.brand {
  font-size: 16px;
}
.header nav a {
  padding: 10px 4px;
  position: relative;
}
.header nav a:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: #f1aec8;
  transform: scaleX(0);
  transition: 0.2s;
}
.header nav a:hover:after {
  transform: scaleX(1);
}
.layout {
  grid-template-columns: 175px minmax(0, 1fr) 220px;
  gap: 30px;
  padding: 30px 24px 20px;
}
.side-nav {
  top: 102px;
  gap: 8px;
}
.side-nav-label {
  color: #b894a5;
  font-size: 9px;
  letter-spacing: 0.16em;
  padding: 0 8px 3px;
  font-family: "Kiwi Maru";
}
.side-nav a {
  transition:
    transform 0.18s,
    box-shadow 0.18s,
    background 0.18s;
}
.side-nav a:hover {
  transform: translateX(3px);
  box-shadow: 0 8px 22px rgba(211, 167, 187, 0.16);
}
.hero {
  min-height: 590px;
  gap: 30px;
}
.hero-text {
  padding: 28px 5px;
}
.eyebrow,
.section-kicker {
  display: block;
  font-size: 8px;
  letter-spacing: 0.2em;
  color: #c48da5;
  font-weight: 700;
}
.hand-title {
  font-size: 38px;
  line-height: 1.38;
  text-shadow: 0 4px 0 rgba(255, 255, 255, 0.8);
}
.hero-text p {
  font-size: 13px;
  margin: 24px 0 22px;
}
.pill {
  transition:
    transform 0.18s,
    box-shadow 0.18s,
    filter 0.18s;
}
.pill:hover {
  transform: translateY(-2px);
  filter: saturate(1.04);
}
.fortune {
  min-height: 22px;
  margin-top: 12px;
  color: #b66f8e;
  font-size: 11px;
}
.hero-visual {
  height: 510px;
}
.fake-illustration {
  width: 82%;
  height: auto;
  aspect-ratio: 1824 / 1104;
  border-radius: 34px 42px 30px 42px;
  box-shadow: 0 28px 65px rgba(202, 166, 190, 0.18);
  background: #f8e6f0;
  overflow: hidden;
}
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  mix-blend-mode: multiply;
  opacity: 0.97;
}
.gacha-box {
  right: -4px;
  top: 330px;
  width: 150px;
  padding: 16px;
}
.gacha-box button {
  transition: transform 0.2s;
}
.gacha-box button:hover {
  transform: rotate(-4deg) scale(1.04);
}
.floating {
  text-shadow: 0 5px 16px rgba(220, 140, 170, 0.25);
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 18px 0 14px;
  gap: 15px;
}
.section-heading h2 {
  margin: 4px 0 0;
  font: 500 22px/1.4 "Kiwi Maru";
  color: #7180ab;
}
.more-link {
  font-size: 10px;
  color: #b97996;
  padding-bottom: 4px;
}
.article-grid {
  gap: 15px;
}
.article-grid article {
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.article-grid article:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(186, 151, 170, 0.15);
}
.thumb {
  height: 154px;
  background: linear-gradient(135deg, #d4e8f6, #efd9e8);
}
.article-grid h2,
.article-grid h3 {
  font-family: "Kiwi Maru";
  font-size: 13px;
  line-height: 1.6;
  font-weight: 500;
  margin: 7px 3px 12px;
}
.post-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 3px 3px;
  color: #aa9ba3;
  font-size: 8px;
}
.empty-card p {
  font-size: 9px;
  margin: 0 3px 8px;
  color: #9d9197;
}
.category-section {
  margin-top: 34px;
}
.section-heading.compact {
  margin-bottom: 12px;
}
.cat-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.cat-grid a {
  border: 1px solid #edf0f3;
  transition:
    transform 0.18s,
    box-shadow 0.18s;
}
.cat-grid a:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(150, 135, 145, 0.1);
}
.cat-grid a span {
  display: block;
  color: #eea4c0;
  font-size: 17px;
  line-height: 1;
}
.cat-grid b {
  margin-top: 7px;
}
.cat-grid small {
  display: block;
  margin-top: 3px;
  font-size: 7px;
  color: #aaa0a6;
}
.lower {
  grid-template-columns: 0.85fr 1.15fr;
  gap: 15px;
  margin-top: 34px;
}
.note-card,
.visual-card {
  border-radius: 25px;
  box-shadow: var(--shadow);
}
.note-card {
  padding: 28px;
}
.note-badge {
  display: inline-block;
  margin: 8px 0 2px;
  padding: 4px 8px;
  border-radius: 99px;
  background: #fff;
  color: #c48ca4;
  font-size: 7px;
  letter-spacing: 0.12em;
}
.note-card h2 {
  margin: 10px 0;
}
.note-card p {
  font-size: 10px;
  line-height: 1.9;
  color: #8b8188;
  margin: 0 auto 18px;
  max-width: 270px;
}
.visual-card {
  position: relative;
  overflow: hidden;
  min-height: 245px;
  background: #eee5f3;
}
.visual-card img {
  width: 100%;
  height: 100%;
  min-height: 245px;
  object-fit: cover;
  display: block;
  opacity: 0.86;
}
.visual-card:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(55, 43, 65, 0.58));
}
.visual-card div {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 20px;
  z-index: 1;
  color: #fff;
}
.visual-card span {
  display: block;
  font-size: 8px;
  letter-spacing: 0.2em;
  opacity: 0.85;
}
.visual-card b {
  display: block;
  margin-top: 5px;
  font: 500 15px/1.55 "Kiwi Maru";
}
.about {
  margin-top: 34px;
  background: linear-gradient(135deg, #eef8fc, #fff4f8);
  border: 1px solid #e6eef1;
  box-shadow: var(--shadow);
  grid-template-columns: 190px 1fr;
}
.profile-block {
  text-align: center;
}
.profile-block > span {
  color: #a89ba2;
  font-size: 9px;
}
.mini-avatar.large {
  width: 150px;
  height: 150px;
}
.about-copy h2 {
  margin: 7px 0 10px;
}
.about-copy p {
  margin: 0;
}
.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}
.about-tags span {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(228, 215, 224, 0.8);
  border-radius: 99px;
  padding: 5px 9px;
  color: #7d86a7;
  font-size: 7px;
  letter-spacing: 0.08em;
}
.right-column {
  padding-top: 300px;
}
.profile-mini {
  box-shadow: var(--shadow);
}
.profile-mini p {
  color: #948990;
  margin: 5px 0 0;
}
.recent b {
  display: block;
  color: #7180ab;
  margin-bottom: 2px;
}
.recent a {
  transition:
    color 0.15s,
    padding-left 0.15s;
}
.recent a:hover {
  color: #c97998;
  padding-left: 4px;
}
.post-page {
  padding: 40px 0;
}
.post-page h1 {
  line-height: 1.45;
}
.post-content {
  box-shadow: var(--shadow);
}
footer {
  padding: 60px 20px 42px;
}
.footer-inner {
  max-width: 1370px;
  margin: auto;
  padding-top: 25px;
  border-top: 1px solid #eee4ea;
}
.footer-title {
  color: #a67f92;
  margin-bottom: 7px;
}
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 1050px) {
  .layout {
    grid-template-columns: 145px minmax(0, 1fr);
    gap: 20px;
  }
  .right-column {
    display: none;
  }
  .hero {
    min-height: 550px;
  }
  .hand-title {
    font-size: 33px;
  }
  .fake-illustration {
    width: 86%;
    height: auto;
    aspect-ratio: 1824 / 1104;
  }
  .gacha-box {
    right: 0;
  }
}
@media (max-width: 720px) {
  .header {
    height: 64px;
  }
  .brand {
    font-size: 14px;
  }
  .brand small {
    display: none;
  }
  .header nav {
    gap: 11px;
    font-size: 8px;
  }
  .header nav a:nth-child(3) {
    display: none;
  }
  .layout {
    padding: 8px 13px 15px;
  }
  .hero {
    padding: 27px 0 20px;
  }
  .hero-text {
    padding: 15px 4px 24px;
  }
  .eyebrow {
    font-size: 7px;
  }
  .hand-title {
    font-size: 29px;
  }
  .hero-text p {
    font-size: 11px;
  }
  .hero-visual {
    height: 330px;
  }
  .fake-illustration {
    width: 100%;
    height: auto;
    aspect-ratio: 1824 / 1104;
    border-radius: 28px;
  }
  .gacha-box {
    top: 185px;
    right: 10px;
    width: 112px;
    padding: 10px;
  }
  .gacha-box button {
    width: 68px;
    height: 68px;
    border-width: 5px;
    font-size: 9px;
    margin-top: 8px;
  }
  .section-heading h2 {
    font-size: 18px;
  }
  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .thumb {
    height: 120px;
  }
  .thumb img {
    object-fit: contain;
  }
  .post-page .post-hero {
    background: #fff;
  }
  .post-page .post-hero img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
  }
  .article-grid h2,
  .article-grid h3 {
    font-size: 11px;
  }
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .lower {
    grid-template-columns: 1fr;
  }
  .visual-card {
    min-height: 210px;
  }
  .visual-card img {
    min-height: 210px;
  }
  .about {
    grid-template-columns: 1fr;
    padding: 24px 20px;
    text-align: center;
  }
  .mini-avatar.large {
    width: 120px;
    height: 120px;
  }
  .about-tags {
    justify-content: center;
  }
  .post-page {
    padding: 25px 0;
  }
  .post-page h1 {
    font-size: 25px;
  }
  .post-content {
    padding: 20px;
    font-size: 13px;
  }
  .pet {
    display: none !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}


/* =========================================================
   IMAGE LAYOUT / RESPONSIVE FIXES
   - Keep thumbnails uniform even when source images differ in size
   - Make the hero artwork fill its frame without becoming tiny
   - Keep profile images neatly cropped inside circular frames
   - Prevent article images from overflowing on small screens
   ========================================================= */

.fake-illustration {
  width: 100%;
  height: 440px;
  aspect-ratio: 1824 / 1104;
}

.fake-illustration > img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: inherit;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb {
  height: 160px;
  aspect-ratio: 4 / 3;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.mini-avatar img,
.mini-avatar.large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: inherit;
}

.post-page .post-hero {
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.post-page .post-hero img {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 650px;
  object-fit: contain;
  object-position: center;
}

.post-content img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  margin-left: auto;
  margin-right: auto;
}

.visual-card {
  min-height: 245px;
  aspect-ratio: 16 / 9;
}

.visual-card img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 1050px) {
  .fake-illustration {
    height: auto;
    aspect-ratio: 1824 / 1104;
  }
  .thumb {
    height: auto;
  }
}

@media (max-width: 720px) {
  .hero-visual {
    height: auto;
  }
  .fake-illustration {
    width: 100%;
    height: auto;
    aspect-ratio: 1824 / 1104;
  }
  .thumb {
    height: auto;
    aspect-ratio: 4 / 3;
  }
  .post-page .post-hero img {
    max-height: none;
  }
  .visual-card {
    min-height: 210px;
    aspect-ratio: 16 / 10;
  }
  .visual-card img {
    min-height: 0;
  }
}

/* ===== Final readability / mobile gacha positioning ===== */
.hero-visual {
  position: relative;
}

/* PC: hero title and supporting text are easier to read */
@media (min-width: 721px) {
  .hand-title {
    font-size: 42px;
    line-height: 1.34;
    color: #59688f;
    font-weight: 600;
    letter-spacing: 0.015em;
    text-shadow: 0 2px 0 rgba(255,255,255,.92), 0 3px 10px rgba(95,105,145,.08);
  }
  .hand-title strong {
    color: #c96f91;
    font-weight: 600;
  }
  .hero-text p {
    color: #66616a;
    font-size: 14px;
    line-height: 2.05;
    font-weight: 500;
  }
  .eyebrow {
    color: #a86f89;
    font-size: 9px;
  }
}

/* Smartphone: keep the gacha anchored to the visual, not the page */
@media (max-width: 720px) {
  .gacha-box {
    top: 225px !important;
    right: 8px !important;
    bottom: auto !important;
    transform: none !important;
    z-index: 10;
  }
}

/* ===== Final UX adjustments ===== */
/* Keep anchored sections visible below the sticky header. */
#home,
#articles,
#category,
#note,
#about {
  scroll-margin-top: 96px;
}

@media (min-width: 1051px) {
  /* Give the PC hero copy enough room so the title is not squeezed by the artwork. */
  .hero {
    grid-template-columns: minmax(390px, 0.95fr) minmax(0, 1.05fr);
    gap: 42px;
  }
  .hero-text {
    min-width: 0;
    padding-right: 18px;
  }
  .hand-title {
    font-size: 38px;
    line-height: 1.42;
    letter-spacing: 0.01em;
    transform: none;
  }
  .hero-visual {
    min-width: 0;
  }
  .fake-illustration {
    width: 100%;
  }
}

@media (max-width: 720px) {
  #home,
  #articles,
  #category,
  #note,
  #about {
    scroll-margin-top: 90px;
  }
  /* Move the gacha below the artwork instead of covering it. */
  .hero-visual {
    padding-bottom: 118px;
  }
  .gacha-box {
    top: auto !important;
    bottom: 4px !important;
    right: 8px !important;
  }
}

/* ===== PC article width + uncropped thumbnails ===== */
@media (min-width: 1051px) {
  /* Article pages: give the reading area more room by removing the right sidebar. */
  .layout:has(.post-page) {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .layout:has(.post-page) .right-column {
    display: none;
  }

  .post-page {
    width: 100%;
    max-width: none;
    padding-left: 10px;
    padding-right: 10px;
  }

  .post-content {
    font-size: 15px;
    line-height: 2.05;
    padding: 42px 48px;
  }

  .post-page h1 {
    font-size: 38px;
    line-height: 1.5;
  }
}

/* Never cut article thumbnails: show the whole source image inside the frame. */
.thumb {
  overflow: hidden;
  background: #fff;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center center;
  background: #fff;
}

@media (max-width: 720px) {
  .thumb img {
    object-fit: contain !important;
  }
}


/* ===== Mobile menu ===== */
.mobile-menu-toggle { display: none; }
.mobile-menu { display: none; }

@media (max-width: 720px) {
  .desktop-nav { display: none !important; }
  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #68739b;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    padding: 10px 4px;
    cursor: pointer;
  }
  .mobile-menu[hidden] { display: none !important; }
  .mobile-menu {
    display: block;
    position: fixed;
    inset: 64px 0 auto 0;
    z-index: 9998;
    padding: 12px 14px 18px;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid rgba(104,115,155,.15);
    box-shadow: 0 12px 30px rgba(70,60,80,.12);
    backdrop-filter: blur(10px);
  }
  .mobile-menu-inner {
    max-width: 520px;
    margin: 0 auto;
    border-radius: 18px;
    background: #fffafd;
    padding: 18px 16px 16px;
  }
  .mobile-menu-title {
    color: #68739b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    margin-bottom: 10px;
  }
  .mobile-menu-title span { color: #d98ca8; }
  .mobile-menu nav { display: grid; gap: 4px; }
  .mobile-menu nav a {
    display: block;
    padding: 12px 10px;
    border-radius: 12px;
    color: #555465;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
  }
  .mobile-menu nav a:active,
  .mobile-menu nav a:hover {
    background: #f8edf3;
    color: #c96f91;
  }
  body.mobile-menu-open { overflow: hidden; }
}
