@charset "UTF-8";
/*//////////////////////////////////////////////////////////
ポケモン文様（2025/11-）
//////////////////////////////////////////////////////////*/
* { margin: 0; padding: 0; box-sizing: border-box;}
html, body { height:100%;}
html { font-size: 62.5%; line-height: 1; font-family: "Rounded Mplus 1c", sans-serif; -webkit-text-size-adjust: 100%;}
h1, h2, h3, h4, h5, h6 { font-size: 100%;}
article,aside,details,figcaption,figure,footer,header,main,menu,nav,section,summary { display: block;}
audio,canvas,progress,video { display: inline-block;}
a,embed,object,button { outline: none;}
img { border: none; box-sizing: content-box;}
hr { display: none;}
li { list-style: none;}
a { background-color: transparent;}
iframe { border: 0;}


/* Common
//////////////////////////////////////////////////////////*/
:root {
  --c-primary: #68508a;
  --c-primary-10: #e7e2e2;
  --c-primary-20: #d9d2d8;
  --c-primary-30: #cac2ce;
  --c-primary-60: #68508a;
  --c-secondary: #e4c587;

  --bg-primary: #f5f3ec;
  --bg-primary-hover: #ebe8da;

  --icon-disabled: #dcdcdc;

  --easeOutCubic: cubic-bezier(0.33, 1, 0.68, 1);
  --easeOutQuint: cubic-bezier(0.22, 1, 0.36, 1);
  --easeOutQuart: cubic-bezier(0.25, 1, 0.5, 1);

  --inner-width: 96.6%;

}

html {
  overflow-y: scroll;
}

body {
  line-height: 1.5;
  font-weight: 400;
  text-align: center;
  letter-spacing: 0.05em;
  color: var(--c-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--c-primary);
  text-decoration: none;
  transition: 0.2s;
}

@media (hover: none) {
  a.touch-active,
  button.touch-active {
    transition: 0.2s;
  }
}

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

input,
button,
textarea,
select {
  border: none;
  outline: none;
  background: transparent;
  vertical-align: baseline;
  font-family: inherit;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

button {
  cursor: pointer;
}

::before,
::after {
  box-sizing: border-box;
}

::-webkit-input-placeholder {
  color: #b6b6b6;
}

input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

body.scroll-hidden {
  overflow: hidden;
}

/* sprite icon */
.icon {
  width: 24px;
  aspect-ratio: 1 / 1;
  fill: currentColor;
}


/* Contents
//////////////////////////////////////////////////////////*/
.container {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  min-height: 100vh;
  min-width: 1240px;
}

.main {
  min-height: 100vh;
}

.contents {
  padding: 0 20px 120px;
  position: relative;
}

/* loading */
.contents > .loading {
  width: 100%;
  height: 100%;
  font-size: 20px;
  text-align: center;
  background: var(--bg-primary);
  padding-top: 150px;
  position: absolute;
  inset: 0;
  margin: auto;
  z-index: 998;
}

/* error */
.contents > .error {
  font-size: 24px;
  font-weight: 500;
  padding-top: 150px;
  position: absolute;
  inset: 0;
  margin: auto;
  z-index: 998;
}


/* page-header */
.page-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 210px;
  color: var(--c-secondary);
  background: url(../img/bg-pattern1.png) repeat-x top center;
  background-size: auto 460px;
  padding-top: 10px;
}

.page-header-col {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.page-header-col .icon-mb {
  width: 52px;
  margin-left: -20px;
}

.page-header-title {
  display: flex;
  align-items: baseline;
  justify-content: center;
  font-size: 60px;
  font-weight: 500;
  line-height: 1;
}

.page-header-title span {
  font-size: 28px;
}

.page-header-lead {
  font-size: 16px;
  margin-top: 10px;
}

/* section */
.section-block {
  width: var(--inner-width);
  margin:  0 auto;
}

.section-block:not(:last-child) {
  margin-bottom: 90px;
}

.section-header {
  width: fit-content;
  min-width: 400px;
  margin: 0 auto 32px;
}

.section-title {
  font-size: 28px;
  font-weight: 800;
  padding: 0 15px;
  margin-bottom: 5px;
}

.section-title span {
  font-weight: 400;
}

.title-deco {
  display: flex;
  align-items: flex-start;
}

.title-deco::before,
.title-deco::after {
  content: "";
  display: block;
  flex: 1;
  height: 0;
  border-bottom: 1px solid var(--c-primary);
}

.title-deco span {
  display: inline-block;
  width: 26px;
  height: 14px;
  background: url(../img/icon_divider.svg) no-repeat;
  background-size: contain;
}

/* more */
.more-container {
  width: 100%;
  padding-top: 30px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
  display: none;
}

.more-container.is-visible {
  display: block;
}

.btn-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 210px;
  height: 60px;
  font-size: 18px;
  font-weight: 500;
  color: var(--c-primary);
  background: #fff;
  border-radius: 9999px;
  padding: 5px 20px;
}

.more-container.large .btn-more {
  width: min(90%, 635px);
}

.btn-more.large {
  height: 72px;
}


/* ------------------------------
  Search Form
------------------------------ */
.search-area {
  display: flex;
  align-items: center;
  width: min(90%, 600px);
  margin: 13px auto 0;
  position: relative;
}

.search-area input[type="text"],
.search-area input[type="search"] {
  width: 100%;
  height: 50px;
  font-size: 16px;
  font-weight: 500;
  color: var(--c-primary);
  background: #fff;
  border: 3px solid var(--c-primary);
  border-radius: 9999px;
  padding: 0 55px 0 65px;
  transition: border-color .2s;
}

.search-area input[type="text"]:focus,
.search-area input[type="search"]:focus {
  border-color: var(--blue);
}

/* button */
.search-area button {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--c-primary);
  position: absolute;
  top: 0;
}

.search-area .btn-search {
  width: 60px;
  padding: 1px 0 0 15px;
  left: 0;
}

.search-area .btn-clear {
  width: 55px;
  color: var(--icon-disabled);
  padding-right: 10px;
  right: 0;
}

.search-area .icon-search {
  width: 28px;
}

.search-area .icon-clear {
  transition: 0.15s;
}

.search-area .btn-clear:hover {
  color: var(--c-primary);
}


/* ------------------------------
  Search Result
------------------------------ */
.search-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 500;
  line-height: 1.2;
  text-align: left;
  padding: 0 20px;
  margin: -8px 0 15px;
}

.search-keyword {
  font-size: 45px;
}

.search-context {
  font-size: 30px;
  white-space: nowrap;
}

.search-context span {
  font-size: 24px;
  font-weight: 400;
}

.search-empty {
  display: grid;
  place-items: center;
  width: 100%;
  height: 500px;
  font-size: 45px;
  font-weight: 500;
  margin-top: 50px;
  position: relative;
}

.search-empty::before {
  content: "";
  display: block;
  width: 500px;
  height: 500px;
  background: url(../img/icon-mb.svg) no-repeat;
  background-size: contain;
  position: absolute;
  inset: 0;
  margin: auto;
  opacity: 0.13;
}


/* global-nav
//////////////////////////////////////////////////////////*/
.global-nav {
  width: 80px;
  height: 100vh;
  background: var(--bg-primary);
  border-right: 1px solid var(--c-primary-30);
  align-self: start;
  /* overflow: hidden; */
  position: sticky;
  top: 0;
  z-index: 999;
  transition: width 0.3s ease;
}

.global-nav.is-open {
  width: 540px;
}

.nav-inner {
  display: grid;
  grid-template-columns: 80px 1fr;
  height: 100%;
}

.global-nav a,
.global-nav button {
  position: relative;
}


/* tooltip */
.tooltip {
  font-size: 11px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  background: #000;
  padding: 3px 5px;
  border-radius: 3px;
  position: absolute;
  z-index: 999;
  opacity: 0;
  transform: scale(0.8);
  transition: transform 0.1s, opacity 0.15s;
}


/* ------------------------------
  nav-tools
------------------------------ */
.nav-tools {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 60px;
  color: var(--c-primary);
  border-radius: 999px;
  padding: 5px 0;
  position: relative;
  transition: background-color 0.2s, transform 0.1s, opacity 0.1s;
}

.nav-btn::before {
  content: "";
  display: block;
  width: 58px;
  height: 58px;
  background: var(--bg-primary-hover);
  border-radius: 100%;
  position: absolute;
  inset: 0;
  margin: auto;
  opacity: 0;
  transition: opacity 0.2s;
}

.nav-btn img {
  position: relative;
  z-index: 1;
}

.nav-tools .nav-home {
  height: 82px;
  padding-top: 10px;
}

.nav-tools .nav-home::before {
  display: none;
}

.nav-tools .nav-home img {
  width: 55px;
}

.nav-tools .nav-favorite img {
  width: 36px;
}

.nav-tools .nav-ai img {
  width: 45px;
}

.global-nav.is-open .nav-tools .nav-favorite,
.global-nav.is-open .nav-tools .nav-ai {
  opacity: 0;
  pointer-events: none;
}


/* 開閉ボタン */
.nav-toggle {
  height: 60px;
  position: relative;
}

.nav-toggle span:nth-child(1),
.nav-toggle span:nth-child(2) {
  width: 40px;
  height: 1px;
  background: currentColor;
  position: absolute;
  left: 50%;
  transform-origin: center;
  transition: transform 0.25s ease, opacity 0.25s ease;
  translate: -50% 0;
}

.nav-toggle span:nth-child(1) {
  transform: translateY(-6px) rotate(0deg);
}

.nav-toggle span:nth-child(2) {
  transform: translateY(6px) rotate(0deg);
}

.global-nav.is-open .nav-toggle span:nth-child(1) {
  transform: translateY(0) rotate(25deg);
}

.global-nav.is-open .nav-toggle span:nth-child(2) {
  transform: translateY(0) rotate(-25deg);
}


.nav-tools .tooltip {
  left: 90%;
  top: calc(50% - 11px);
  pointer-events: none;
}


.nav-btn:hover::before {
  opacity: 1;
}

.nav-btn:hover .tooltip {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

@media (hover: none) {
  .nav-btn.touch-active {
    opacity: 1;
  }
  .nav-btn.touch-active .tooltip {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
  }
}


/* ------------------------------
  nav-links
------------------------------ */
.nav-links {
  pointer-events: none;
  opacity: 0;
  padding-left: 10px;
  transform: translateX(-8px);
  transition: opacity 0.25s, transform 0.25s;
}

.global-nav.is-open .nav-links {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.nav-link-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-bottom: 1px solid var(--c-primary-20);
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
  font-size: 20px;
  font-weight: 500;
  color: var(--c-primary);
  white-space: nowrap;
  padding: 8px 20px;
}

.nav-link:hover {
  background: var(--bg-primary-hover);
}

.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
}

.nav-links .nav-home {
  font-size: 20px;
  font-weight: 800;
  padding-top: 28px;
  padding-bottom: 28px;
}


/* TOP
//////////////////////////////////////////////////////////*/
.home-header {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  height: 365px;
  position: relative;
}

.home-header-logo {
  display: flex;
  justify-content: center;
  width: 100%;
  position: absolute;
  top: 35px;
  left: 0;
}

.home-header-logo img {
  width: 190px;
}

.home-header-item {
  background: transparent repeat-x;
  background-size: auto 100%;
  padding-top: 205px;
}

.home-header-item.left {
  background-image: url(../img/bg-pattern1.png);
  background-position: top right 728px;
}

.home-header-item.right {
  background-image: url(../img/bg-pattern2.png);
  background-position: top left 728px;
}


/* link */
.home-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0 15px;
  height: 90px;
  background: var(--bg-primary);
  border: 3px solid var(--c-primary);
  border-left: none;
  padding: 10px;
  position: relative;
}

.home-header-item.right .home-link {
  border-right: none;
}

.home-link-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px 0;
  line-height: 1;
  white-space: nowrap;
}

.home-link-text .large {
  font-size: 30px;
  font-weight: 500;
  padding-top: 4px;
}

.home-link-text .small {
  font-size: 14px;
  font-weight: 400;
  padding-top: 2px;
}

/* icon */
.home-link .icon-mb,
.home-link img {
  width: 55px;
}

.home-link .icon-arrow-right-circle {
  width: 40px;
  position: absolute;
  right: 10%;
}


/* ------------------------------
  AIチャット
------------------------------ */
.home-ai-container {
  width: min(800px, 90%);
  margin: -30px auto 40px;
  position: relative;
}

.home-ai-label {
  position: absolute;
  top: -30px;
  left: 23px;
}

.home-ai-label {
  width: 60px;
}

.home-ai-container input {
  width: 100%;
  height: 56px;
  font-size: 18px;
  font-weight: 500;
  color: var(--c-primary);
  background: #fff;
  border: 3px solid var(--c-primary);
  border-radius: 9999px;
  padding: 3px 1.8em 0;
}

.home-ai-example-col {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 10px;
}

.home-ai-example {
  font-size: 18px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.home-ai-example:hover {
  text-decoration: none;
}


/* ------------------------------
  card
------------------------------ */
.home-card-grid {
  position: relative;
  margin: 0 auto;
}

.home-card-grid .grid-sizer {
  width: 190px;
}

.home-card {
  width: 190px;
  height: 190px;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 30px;
  overflow: hidden;
}

.home-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.home-card.card-large {
  width: 400px;
  height: 400px;
  /* calc(190px * 2 + gap); */
}

.sq-card,
.sq-wrap,
.poke-thumb-wrap {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.sq-cap {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  background: rgba(0,0,0,0.2);
  opacity: 0;
  transition: 0.25s;
}

.sq-cap span {
  display: inline-grid;
  place-items: center;
  width: fit-content;
  max-width: 85%;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  background: #fff;
  border-radius: 10px;
  padding: 5px 10px 5px calc(10px + 0.05em);
  position: absolute;
  bottom: 15px;
  left: 0;
  right: 0;
  margin: auto;
}

.sq-card:hover .sq-cap {
  opacity: 1;
}


/* Card
//////////////////////////////////////////////////////////*/
.card-list {
  width: var(--inner-width);
  margin: 0 auto;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px 12px;
}

.card-link {
  display: block;
  width: 100%;
  cursor: pointer;
  position: relative;
}

.card-link .card {
  width: 100%;
  height: 100%;
}

.card-link .thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f9f8f4 no-repeat center;
  background-size: contain;
  border-radius: 30px;
  position: relative;
}

.card-link .thumb::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  border: 3px solid var(--c-primary-30);
  border-radius: 30px;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.15s;
}

.card-link:hover .thumb::before {
  opacity: 1;
}

.card-link .name {
  max-width: 200px;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  margin: 8px auto 0;
}

.card-link .name .sub {
  display: none;
}

.card-link .title {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  background: var(--c-primary);
  border-radius: 9999px;
  padding: 6px 10px 6px 15px;
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  margin: auto;
  opacity: 0;
  transform: translateY(5px);
  transition: 0.25s;
}

.card-link:hover .title {
  opacity: 1;
  transform: translateY(0);
}

/* badge */
.card-link .badge {
  display: inline-block;
  min-width: 75px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: #bf92b2;
  border-radius: 10px;
  padding: 2px 5px;
  position: absolute;
  top: -16px;
  left: 3px;
}

.card-link .badge::after {
  content: "";
  border-style: solid;
  border-width: 12px 7px 0 7px;
  border-color: #bf92b2 transparent transparent;
  translate: -50% 100%;
  position: absolute;
  bottom: 0;
  left: 50%;
}

/* empty */
.card-empty {
  font-size: 24px;
  font-weight: 500;
  padding: 20px 20px 40px;
}


/* Search List
//////////////////////////////////////////////////////////*/
[data-page="pokemon-list"] .card-list,
[data-page="monyou-list"] .card-list {
  padding-top: 40px;
}

.region-block:not(:last-child) {
  margin-bottom: 20px;
}


/* ------------------------------
  header
------------------------------ */
.region-header {
  display: flex;
  align-items: center;
  gap: 13px;
  height: 58px;
  background: var(--bg-primary);
  border: 1px solid var(--c-primary);
  border-radius: 9999px;
  padding: 0 20px;
  cursor: pointer;
}

.region-label {
  font-size: 26px;
  font-weight: 500;
}

.region-arrow,
.region-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.region-arrow {
  width: 32px;
  height: 32px;
}

.region-icon {
  width: 24px;
  height: 24px;
  margin-left: auto;
}

.region-arrow .icon-mb,
.region-icon .icon-plus,
.region-icon .icon-minus {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.region-icon .icon-plus {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.region-icon .icon-minus {
  opacity: 0;
  transform: scale(0.7) rotate(-90deg);
}

.region-icon.is-open .icon-plus {
  opacity: 0;
  transform: scale(0.7) rotate(90deg);
}

.region-icon.is-open .icon-minus {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* ------------------------------
  body
------------------------------ */
.region-body {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 20px 0 50px;
  transition: max-height 0.25s ease, opacity 0.25s ease;
}

.region-body.is-open {
  max-height: 99999px;
  opacity: 1;
}


/* detail
//////////////////////////////////////////////////////////*/
.back-container {
  text-align: left;
  padding: 20px;
}

.back-container.top {
  position: absolute;
  top: 0;
}

.back-container.bottom {
  padding-top: 80px;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 500;
  border-radius: 9999px;
  padding: 5px 20px 5px 18px;
}

.btn-back:hover {
  background: var(--bg-primary-hover);
}

.btn-back span {
  padding-bottom: 1px;
}

/* action */
.action-container {
  display: flex;
  align-items: center;
  /* gap: 10px; */
  height: 60px;
  background: #fff;
  position: absolute;
  top: -65px;
  right: 0;
  padding: 0 10px;
}

.action-container a,
.action-container button {
  display: grid;
  place-items: center;
  width: 65px;
  height: 100%;
}

.btn-yodogawa img {
  width: 48px;
}

.btn-favourite {
  position: relative;
}

.btn-favourite .icon-star {
  width: 35px;
  color: var(--c-primary);
}

.has-action-bubble {
  position: relative;
}

.action-bubble {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  background: var(--c-primary);
  border-radius: 9999px;
  padding: 4px 15px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: calc(100% + 3px);
  left: 50%;
  transform: translate(-50%, -4px) scale(0.9);
  transform-origin: top center;
  z-index: 20;
  transition: opacity 0.22s ease-out, transform 0.22s ease-out;
}

.action-bubble::before {
  content: "";
  border-style: solid;
  border-width: 0 5px 9px 5px;
  border-color: transparent transparent var(--c-primary);
  position: absolute;
  top: 0;
  left: 50%;
  translate: -50% -100%;
}

.action-bubble.show {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}


/* list */
[data-page="pokemon-detail"] .card-list .grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, max-content));
  justify-content: center;
}

/* keyword */
.keyword-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 15px 10px;
  width: fit-content;
  text-align: left;
  padding: 0 50px;
  margin: 0 auto;
}

.keyword-list .keyword {
  font-size: 28px;
  font-weight: 800;
}

.keyword-list .keyword-detail {
  display: flex;
  font-size: 22px;
  padding-top: 4px;
}

.keyword-list .keyword-detail::before {
  content: "：";
}


/* ------------------------------
  detail-header
------------------------------ */
.detail-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: calc(100% + 40px);
  min-height: 395px;
  background: url(../img/bg-pattern3.png) repeat-x top center;
  background-size: auto 460px;
  padding-top: 95px;
  margin-left: -20px;
}

.detail-container {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 60px;
  width: min(90%, 1000px);
  margin: 0 auto;
  position: relative;
}

.detail-content {
  text-align: left;
  font-weight: 500;
}

/* pokemon */
.pokemon-pic {
  width: 400px;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
}

.pokemon-number {
  font-size: 20px;
}

.pokemon-name {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 22px;
}

.pokemon-lead {
  font-size: 18px;
}

.pokemon-info {
  margin-bottom: 20px;
}

.pokemon-info-item {
  display: grid;
  grid-template-columns: auto 1fr;
  font-size: 20px;
  margin-bottom: 5px;
}

.pokemon-type {
  display: flex;
  gap: 8px;
}

.pokemon-type-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.pokemon-type-icon {
  width: 38px;
  aspect-ratio: 1 / 1;
}

.pokemon-type-name {
  font-size: 12px;
}

/* monyo */
[data-page="monyou-detail"] .detail-header {
  margin-bottom: 60px;
}

.monyo-pic {
  width: 450px;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  background: #f9f8f4 no-repeat top center;
  background-size: 100% auto;
}

.monyo-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 30px;
}

.monyo-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.monyo-icon {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  margin: 0 4px 0 -3px;
  background: transparent no-repeat center;
  background-size: contain;
  /* background-color: var(--c-primary);
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
  mask-size: contain;
  -webkit-mask-size: contain; */
}

.monyo-name {
  font-size: 46px;
  font-weight: 500;
}

.monyo-furigana {
  font-size: 18px;
  padding-top: 7px;
}

.monyo-lead {
  font-size: 16px;
  line-height: 2;
}

[data-page="monyou-detail"] .more-container {
  display: none;
  background: var(--bg-primary);
  padding-top: 0;
  padding-bottom: 40px;
  margin: -80px 0 -40px;
}

[data-page="monyou-detail"] .more-container.is-visible {
  display: block;
}

[data-page="monyou-detail"] .more-container::before {
  content: "";
  width: 100%;
  height: 200px;
  background: linear-gradient( 180deg, transparent 0%, var(--bg-primary) 60%);
  pointer-events: none;
  position: absolute;
  bottom: 40px;
  left: 0;
  z-index: -1;
}


/* Modaal
//////////////////////////////////////////////////////////*/
.modaal-container {
  color: var(--c-primary);
  background: var(--bg-primary);
  box-shadow: none;
  overflow: hidden;
}

.modaal-content-container {
  padding: 0;
}

.modaal-fullscreen .modaal-container {
  overflow: hidden;
}

/* close/fullscreen */
.modaal-fullscreen .modaal-close {
  width: 90px;
  height: 90px;
  background: #fff;
  border-radius: 0;
  top: 0;
  right: 0;
}

.modaal-fullscreen .modaal-close::after,
.modaal-fullscreen .modaal-close::before {
  width: 2px;
  height: 60px;
  top: 14px;
  left: 45px;
  background: var(--c-primary);
}

.modaal-close:focus,
.modaal-close:focus,
.modaal-close:hover,
.modaal-close:hover {
  background: var(--c-primary);
}

.modaal-close:focus::after,
.modaal-close:focus::before,
.modaal-close:hover::after,
.modaal-close:hover::before {
  background: #fff;
}

/* close/chat */
.ai-modal-container .modaal-close {
  position: absolute;
}

.ai-modal-container .modaal-close:focus,
.ai-modal-container .modaal-close:hover {
  background: #fff;
}

.ai-modal-container .modaal-close:focus:after,
.ai-modal-container .modaal-close:focus:before,
.ai-modal-container .modaal-close:hover:after,
.ai-modal-container .modaal-close:hover:before {
  background: var(--c-primary);
}

/* scroll bar */
.monyo-body,
.fav-tab-panels {
  scrollbar-width: thin;
  scrollbar-color: var(--c-primary-20) var(--bg-primary);
}
/* Webkit用 */
.monyo-body::-webkit-scrollbar,
.fav-tab-panels::-webkit-scrollbar {
  width: 6px;
}

.monyo-body::-webkit-scrollbar-track,
.fav-tab-panels::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

.monyo-body::-webkit-scrollbar-thumb,
.fav-tab-panels::-webkit-scrollbar-thumb {
  background: var(--c-primary-20);
  border-radius: 10px;
}


/* ------------------------------
  AIチャット画面
------------------------------ */
.ai-modal-container .modaal-container {
  max-width: 900px;
  height: 100%;
  max-height: calc(100vh - 170px);
  border-radius: 30px;
  position: relative;
}

.ai-modal-container .modaal-content {
  height: 100%;
}

.ai-modal-container .modaal-content-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* content */
.ai-container {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.ai-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 95px;
  background: var(--c-primary);
}

.ai-title {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
}

.ai-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding: 40px 0 30px;
  position: relative;
}

/* input */
.ai-search-area {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  width: min(90%, 840px);
  margin: 15px auto 20px;
  position: relative;
}

.ai-search-area textarea {
  width: 100%;
  min-height: 82px;
  font-size: 18px;
  font-weight: 500;
  color: var(--c-primary);
  background: #fff;
  border: 3px solid var(--c-primary);
  border-radius: 30px;
  padding: 12px 110px 12px 25px;
  transition: border-color .2s;
}

.ai-search-area textarea {
  border-color: var(--blue);
}

/* button */
.ai-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  position: absolute;
  right: 18px;
}

.ai-image-upload,
.ai-image-label,
.ai-send {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  overflow: hidden;
  cursor: pointer;
}

.ai-image-upload input[type="file"] {
    display: none;
}

.ai-image-upload .icon-image-plus {
  width: 35px;
}

.ai-send .icon-arrow-up-circle {
  width: 30px;
  color: var(--c-primary);
}

/* loading */
.ai-loading-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90px;
  height: 90px;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  display: none;
  transition: opacity .25s ease;
}

.ai-loading-spinner.show {
  display: block;
  opacity: 1;
}

.ai-loading-spinner img {
  width: 100%;
  height: 100%;
  animation: spin 1.1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.ai-notes {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 50px;
  margin-bottom: 8px;
}

/* chat */
.ai-chat-area {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 0 50px;
}

.chat-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.chat-row.user {
  justify-content: flex-end;
  margin-bottom: 20px;
}

.chat-row.assistant {
  justify-content: flex-start;
  margin: 20px 0;
}

.chat-bubble {
  font-size: 16px;
  font-weight: 500;
  color: var(--c-primary);
  overflow-wrap: anywhere;
  border-radius: 20px;
  padding: 10px 25px;
  position: relative;
}

.chat-row.assistant .chat-bubble {
  line-height: 1.8;
}

.chat-row.user .chat-bubble {
  background: #e5decb;
  border-top-right-radius: 20px;
}

.chat-row.user .chat-bubble::after {
  content: "";
  border-style: solid;
  border-width: 5px 0 5px 10px;
  border-color: transparent transparent transparent #e5decb;
  position: absolute;
  top: 17px;
  right: -10px;
}

.chat-text p,
.chat-text ul,
.chat-text ol {
  margin-bottom: 1.2em;
}

.chat-text h2 {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.5;
  margin-bottom: 0.8em;
}

.chat-text h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 5px;
}

.chat-text a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.chat-text ul,
.chat-text ol {
  padding-left: 20px;
}

.chat-text ul li:not(:last-child),
.chat-text ol li:not(:last-child) {
  margin-bottom: 5px;
}

.chat-text ul li {
  list-style: disc;
}

.chat-bubble img,
.chat-img {
  display: block;
  max-width: 180px;
  height: auto;
  border-radius: 10px;
  margin-top: 6px;
  border: 1px solid rgba(0, 0, 0, .06);
}

.chat-entities {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 10px;
  margin-bottom: 15px;
}

.chat-entity {
  width: 120px;
  flex: 0 0 auto;
  font-size: 14px;
  margin-top: 10px;
  text-align: center;
}

.chat-entity a {
  color: var(--c-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.chat-entity--pokemon img {
  display: block;
  width: 120px;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, .08);
  margin: 6px 0;
}

.chat-entity .thumb {
  width: 120px;
  height: 120px;
  aspect-ratio: 1 / 1;
  background: #f9f8f4 no-repeat center;
  background-size: contain;
  border-radius: 10px;
}

.chat-entity .name {
  font-size: 14px;
  margin-top: 4px;
}


/* ------------------------------
  お気に入り画面
------------------------------ */
.fav-modal-container .modaal-content {
  height: 100%;
}

.fav-modal-container .modaal-content-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.fav-container {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.fav-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 40px 50px 0;
}

.fav-title {
  font-size: 42px;
}

.fav-header .icon-star {
  width: 48px;
  margin-top: -2px;
}

.fav-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding-top: 40px;
}

/* tab */
.fav-tabs {
  display: flex;
  justify-content: center;
  border-bottom: 1px solid var(--c-primary);
  padding: 0 5%;
}

.fav-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 30px;
  font-weight: 500;
  color: var(--c-primary);
  border-bottom: 5px solid transparent;
  cursor: pointer;
  padding: 10px;
  margin-bottom: -3px;
  transition: 0.2s;
}

.fav-tab.is-active {
  border-color: var(--c-primary);
}

.fav-tab .icon-mb {
  width: 48px;
}

.fav-tab img {
  width: 50px;
}

/* panel */
.fav-tab-panels {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: scroll;
  padding: 40px 5% 80px;
}

.fav-tab-panel {
  position: relative;
  display: none;
}

.fav-tab-panel.is-active {
  display: block;
}

.fav-empty {
  width: 100%;
  font-size: 24px;
  font-weight: 500;
  text-align: center;
  padding: 60px 20px 40px;
  position: absolute;
  top: 0;
  left: 0;
}

.fav-tab-panel.card-list .grid {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  justify-content: flex-start;
}

.btn-delete-fav {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  color: var(--c-primary);
  background: #dcdcdc;
  border-radius: 100%;
  position: absolute;
  bottom: -5px;
  right: -7px;
  z-index: 100;
  transition: 0.15s;
}

.btn-delete-fav .icon {
  width: 22px;
}

.btn-delete-fav:hover {
  color: #fff;
  background: var(--c-primary);
}


/* ------------------------------
  文様詳細画面
------------------------------ */
.monyo-modal-container .modaal-container {
  height: 100%;
  position: relative;
  overflow: hidden;
}

.monyo-modal-container .modaal-content {
  height: 100%;
}

.monyo-modal-container .modaal-content-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.monyo-container {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  padding-top: 40px;
  margin: 0 auto;
}

.monyo-container .monyo-header {
  flex: 0 0 auto;
  justify-content: center;
}

.monyo-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: scroll;
  padding-bottom: 80px;
}

/* slider */
.monyo-slide .thumb {
  display: flex;
  justify-content: center;
  align-items: center;
  width: min(80%, 1000px);
  height: 500px;
  margin: 0 auto;
}

.monyo-slide .thumb a {
  display: inline-block;
  line-height: 0;
  position: relative;
}

.monyo-slide .thumb img{
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 500px;
  object-fit: contain;
}

.monyo-slide .thumb-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 100%;
  position: absolute;
  bottom: 10px;
  right: 12px;
  transition: background 0.15s;
}

.monyo-slide .thumb-icon svg {
  width: 28px;
}

.monyo-slide .thumb a:hover .thumb-icon {
  background: var(--c-primary);
}

.monyo-slide .thumb a:hover .thumb-icon svg {
  color: #fff;
}

.monyo-slide .detail {
  width: min(90%, 1000px);
  margin: 70px auto 0;
}

.monyo-slide .header {
  display: flex;
  align-items: flex-start;
  padding-right: 40px;
  position: relative;
}

.monyo-slide .header h3 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 20px;
}

.monyo-slide .header .btn {
  position: absolute;
  top: 2px;
  right: -20px;
}

.monyo-slide .header .btn .icon-star {
  width: 36px;
  color: var(--c-primary);
}

.monyo-slide .text {
  font-size: 18px;
  font-weight: 500;
  line-height: 2;
}

.splide__list { align-items: flex-start; }
.splide__slide { height: auto; }

/*arrow*/
.splide__arrows {
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 10;
  margin: auto;
}

.splide__arrow {
  display: grid;
  place-items: center;
  width: 100px;
  height: 200px;
  background: transparent;
  opacity: 1;
  pointer-events: auto;
  margin-top: -3%;
  transition: background 0.15s;
}

.splide__arrow:hover:not(:disabled) {
  opacity: 1;
}

.splide__arrow::before {
  content: "";
  display: block;
  width: 66px;
  height: 66px;
  background: transparent no-repeat;
  background-size: contain;
}

.splide__arrow--prev::before {
  background-image: url(../img/icon-arrow-left-lg.svg);
}

.splide__arrow--next::before {
  background-image: url(../img/icon-arrow-right-lg.svg);
}

.splide__arrow svg {
  display: none;
}

.splide__arrow:disabled {
  opacity: 0;
}

/*pagination*/
.splide__pagination {
  display: flex;
  align-items: center;
  width: 100%;
  height: 15px;
  position: absolute;
  top: 530px;
}

.splide__pagination__page {
  width: 12px;
  height: 12px;
  background: var(--c-primary-20);
  border-radius: 100%;
  margin: 0 5px ;
  opacity: 1;
}

.splide__pagination__page.is-active {
  background: var(--c-primary);
  transform: scale(1.1);
}
