@charset "UTF-8";

/*
Theme Name: ぽやぽやてぃてぃ
Author: ぽやんまる
Version: 1.0
Text Domain: poyapoyatiti
*/

/*
  Josh W. Comeau's Custom CSS Reset
  www.joshwcomeau.com
*/

/* 1. ボックスモデルの修正：余白や境界線が幅を壊さないようにする */
*, *::before, *::after {
    box-sizing: border-box;
  }
  
  /* 2. デフォルトの余白を削除 */
  * {
    margin: 0;
  }
  
  /* 3. 本文の行間を整え、フォントのレンダリングを滑らかにする */
  body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
  }
  
  /* 4. メディア要素（画像など）がはみ出さないようにし、ブロック要素化する */
  img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
  }
  
  /* 5. フォーム要素が親のフォント設定を無視するのを防ぐ */
  input, button, textarea, select {
    font: inherit;
  }
  
  /* 6. 長い単語が画面からはみ出して横スクロールが出るのを防ぐ */
  p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
  }
  
  /* 7. ルート（#rootや#__nextなど）にスタック文脈を作成する（Reactなどのフレームワーク用） */
  #root, #__next {
    isolation: isolate;
  }

/* ----------------------------------------
my css
---------------------------------------- */

ul, ol {
  padding: 0;
}

/* ----------------------------------------
表示/非表示
---------------------------------------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.hidden-pc {
  display: none;
}

/* ----------------------------------------
色
---------------------------------------- */

/* * {
  border: 1px solid #333;
} */

/* color変数 */
:root {
  --color-gray: #333;
  --color-lgray: #666;
  --color-blue: #5AC5D6;
  --color-pink: #FF7EA7;
  --color-dpink: #f13873;
  --color-lpink: #fcdfe9;
}

/* ----------------------------------------
フォント
---------------------------------------- */

.m-plus-rounded-1c {
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: 600;
  font-style: normal;
}

/* ----------------------------------------
グラデーションライン
---------------------------------------- */

/* 上下 */
.gradient-border-pc {
  border-top: 2px solid;
  border-bottom: 2px solid;
  border-image: linear-gradient(45deg, var(--color-blue) 40%,var(--color-pink) 60%);
  border-image-slice: 1;
}

/* 下線 */
.gradient-border-short {
  border-bottom: 2px solid;
  border-image: linear-gradient(45deg, var(--color-blue) 20%,var(--color-pink) 30%);
  border-image-slice: 1;
}

/* ----------------------------------------
共通
---------------------------------------- */

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  font-size: 100%;
}

li {
  list-style: none;
}

a {
  color: var(--color-gray);
  text-decoration: none;
}

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

body {
  font-family:
    "Noto Sans JP",
    "Hiragino Sans",
    "Yu Gothic",
    Meiryo,
    sans-serif;
  font-weight: 400;

  color: var(--color-gray);
  background: var(--color-lpink) url("img/bg-circle.svg") top -64px center / 2000px repeat-y;
}

body.menu-open{
  overflow: hidden;
}

.container {
  background-color: #fff;
  padding: 16px 64px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  margin: 1rem 0;
}

/* ----------------------------------------
ヘッダー
---------------------------------------- */

.header__container {
  background-color: #fff;
  max-width: 1100px;
  margin: 0 auto;
  line-height: 0;
}

.header-image-comic {
  margin: -8% auto 0;
  padding: 0 8%;
  max-width: 100%;
}

.header__site-title {
  padding: 16px 24px 8px;
}

.logo-circle {
  display: inline-block;
  max-width: 64px;
}

.logo-line {
  display: inline-block;
  max-width: 320px;
}

.site-header-image img {
  width: 100%;
}

.header__text-container {
  text-align: center;
}

.header__text {
  font-size: 1.2rem;
  color: var(--color-dpink);
}

/* ----------------------------------------
ナビ
---------------------------------------- */

.hamburger {
  display: none;
}

.global-nav {
  font-size: 1rem;
}

.global-nav__list {
  margin: 0 auto;
  max-width: 960px;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2%;
}

.global-nav__list li {
  font-weight: bold;
  position: relative;
  padding: 0.5rem 0 0.5rem 3rem;/*アイコン分のスペース*/
}

.global-nav__list li::before {
  font-family: "Font Awesome 5 Free";/*忘れずに*/
  content: "\f138";/*アイコンのユニコード*/
  font-weight: 900;
  position: absolute;/*絶対位置*/
  font-size: 1rem;/*サイズ*/
  left: 1rem;/*アイコンの位置*/
  top: 0.55rem;/*アイコンの位置*/
  color: var(--color-pink); /*アイコン色*/
}

/* ----------------------------------------
記事リスト
---------------------------------------- */

.post-list {
  display: grid;
	grid-template-columns:repeat(2, 1fr);
  gap: 80px;
}

.post-card {
  padding-bottom: 64px;
  transition: transform 0.3s ease;
}

.post-card:hover {
  transform: translateY(-8px);
}

.post-card:hover .post-card__title {
  color: var(--color-dpink);
}

.post-card a {
  display: block;
}

.post-card__thumb {
  display: flex;
  justify-content: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
}

.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  transition: transform 0.3s ease;
}

.post-card:hover .post-card__thumb img {
  transform: scale(0.95);
  opacity: .7;
}

.post-card__date {
  font-size: 1rem;
}

.post-card__title {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.post-card__excerpt {
  font-size: 1rem;
  font-weight: normal;
}

/* ----------------------------------------
NEWマーク
---------------------------------------- */
.post-card--new {
  position: relative;
}

.post-card--new::before {
  content: "NEW";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;

  background: var(--color-blue);
  color: #fff;

  font-size: 1.4rem;
  font-weight: bold;

  padding: 4px 8px;
  border-radius: 4px;
  pointer-events: none;
}

/* ----------------------------------------
記事ページ
---------------------------------------- */

.post-wrapper {
  margin: 0 auto;
  max-width: 720px;
}

.post-wrapper P {
  margin-bottom: 2rem;
  line-height: 2;
  font-size: 1.125rem;
}

.post-wrapper h2 {
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.post-wrapper h3 {
  margin-top: 2rem;
  margin-bottom: .75rem;
}

.post-header {
  margin: 24px auto;
  max-width: 560px;
}

.post-title {
  font-size: 1.8rem;
}

.post-content {
  margin: 0 auto;
  max-width: 560px;
}

.post-content .zoomable img {
  margin: 0 auto;
  transition: transform 0.3s ease;
  cursor: zoom-in;
  max-width: 100%;
  height: auto;
}

.post-content .zoomable:hover img {
  transform: scale(0.98);
  opacity: .7;
}

/* カテゴリ */
.post-meta {
  font-size: .9rem;
}

.post-category {
  font-size: .9rem;
}

/* ----------------------------------------
タグ
---------------------------------------- */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 48px 0;
  justify-content: right;
}

.post-tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--color-lpink);
  color: var(--color-gray);
  font-size: 14px;
  text-decoration: none;
  transition: .2s;
}

.post-tag:hover {
  color: var(--color-dpink);
}


/* ----------------------------------------
シェアボタン
---------------------------------------- */
.sns-list {
  display: flex;
  justify-content: left;
}

.sns-list li {
  text-align: center;
  margin-right: 10px;
}

/* ----------------------------------------
前の記事・次の記事
---------------------------------------- */

.home {
  text-align: center;
  font-weight: bold;
  position: relative;
  margin: 4rem 0;
}

.home::before {
  font-family: "Font Awesome 5 Free";/*忘れずに*/
  content: "\f139";/*アイコンのユニコード*/
  font-weight: 900;
  font-size: 1rem;/*サイズ*/
  left: 0;/*アイコンの位置*/
  top: 0;
  color: var(--color-pink); /*アイコン色*/
  margin-right: .4rem;
}

.post-nav {
  margin-bottom: 32px;
  padding: 32px 0;
}

.post-nav ul {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
}

.post-nav li {
  width: 48%;
}

.prev-post,
.next-post {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  font-weight: bold;
  position: relative;
  padding: 12px;
  background-color: var(--color-lpink);
  border-radius: 8px;
}

.prev-post img,
.next-post img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.prev-post {
  padding-left: 2rem;
}

.next-post {
  padding-right: 2rem;
}

.prev-post::before {
  font-family: "Font Awesome 5 Free";/*忘れずに*/
  content: "\f137";/*アイコンのユニコード*/
  font-weight: 900;
  position: absolute;/*絶対位置*/
  font-size: 1rem;/*サイズ*/
  left: .6rem;/*アイコンの位置*/
  color: var(--color-pink); /*アイコン色*/
}

.next-post::after {
  font-family: "Font Awesome 5 Free";/*忘れずに*/
  content: "\f138";/*アイコンのユニコード*/
  font-weight: 900;
  position: absolute;/*絶対位置*/
  font-size: 1rem;/*サイズ*/
  right: .6rem;/*アイコンの位置*/
  color: var(--color-pink); /*アイコン色*/
}

/* ----------------------------------------
モーダルウィンドウ
---------------------------------------- */

/* モーダル全体 */
.img-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;

  display: none; /* ← 通常は非表示 */

  overflow-y: auto;
  overflow-x: hidden;
  padding: 40px 20px;
}

/* 開いた状態 */
.img-modal.active {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* 写真だけ上下中央 */
.img-modal.active.is-photo {
  align-items: center;
}

/* 共通 */
.img-modal-content {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

/* 漫画 */
.img-modal-content.is-manga {
  width: 100%;
  max-width: 900px;
}

/* 写真 */
.img-modal-content.is-photo {
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 80px);
}

/* 閉じるボタン */
.img-modal-close {
  position: fixed; /* ← これがポイント（スクロールしても固定） */

  bottom: 24px;    /* ← 下に配置 */
  left: 50%;       /* ← 中央寄せベース */
  transform: translateX(-50%); /* ← 完全中央 */

  width: 48px;
  height: 48px;

  z-index: 10000;
  cursor: pointer;

  /* 見た目ちょい強化（おすすめ） */
  background: rgba(0,0,0,0.5);
  border-radius: 50%;

  touch-action: manipulation;
}

.img-modal-close::before,
.img-modal-close::after {
  content: "";
  position: absolute;
  top: 23px;
  left: 12px;
  width: 24px;
  height: 2px;
  background: #ccc;
}

.img-modal-close::before {
  transform: rotate(45deg);
}

.img-modal-close::after {
  transform: rotate(-45deg);
}

/* ----------------------------------------
ページネーション
---------------------------------------- */

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-weight: bold;
}

.page-numbers {
  display: flex;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 6px;
}

.page-numbers.current {
  background: var(--color-pink);
  color: #fff;
}

.page-numbers.prev {
  font-weight: bold;
  position: relative;
  padding: 0.5rem 0 0.5rem 3rem;
}

.page-numbers.next {
  font-weight: bold;
  position: relative;
  padding: 0.5rem 0 0.5rem 3rem;
}

.page-numbers.prev::before {
  font-family: "Font Awesome 5 Free";/*忘れずに*/
  content: "\f137";/*アイコンのユニコード*/
  font-weight: 900;
  position: absolute;/*絶対位置*/
  font-size: 1rem;/*サイズ*/
  left: 1rem;/*アイコンの位置*/
  top: 0.55rem;/*アイコンの位置*/
  color: var(--color-pink); /*アイコン色*/
}

.page-numbers.next::before {
  font-family: "Font Awesome 5 Free";/*忘れずに*/
  content: "\f138";/*アイコンのユニコード*/
  font-weight: 900;
  position: absolute;/*絶対位置*/
  font-size: 1rem;/*サイズ*/
  left: 1rem;/*アイコンの位置*/
  top: 0.55rem;/*アイコンの位置*/
  color: var(--color-pink); /*アイコン色*/
}

/* ----------------------------------------
登場人物
---------------------------------------- */

.avatar {
  font-size: 0.9rem;
  display: flex;
  justify-content: center;
  gap: 32px;
  padding-bottom: 80px;
}

.avatar > div {
  border: 2px solid;
  width: 100%;
  padding: 32px 24px;
  border-image: linear-gradient(45deg, var(--color-blue) 40%,var(--color-pink) 60%);
  border-image-slice: 1;
}


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

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer > h3 {
  font-size: 1rem;
  font-weight: normal;
  /* margin-bottom: 32px; */
}

footer.container {
  padding-bottom: 120px;
}

.footer__nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .8rem;
  margin: .8rem 0;
  font-size: .8rem;
}

/* SNSアイコン */
.footer__sns {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.6rem;
  margin: 2rem 0;
}

.footer__sns svg {
  width: 2rem;
  height: 2rem;
  display: block;
  fill: currentColor;
}

.footer__sns a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  transition: transform .2s ease, opacity .2s ease;
  color: var(--color-lgray);
}

.footer__sns a:hover {
  transform: translateY(-2px);
  opacity: .75;
  color: var(--color-dpink);
}



/* ----------------------------------------
TB
---------------------------------------- */
@media screen and (max-width: 767px) {
  
  body {
    background-color: #fff;
  }

  .hidden-sp {
    display: none;
  }

  .hidden-pc {
    display: block;
  }

  .gradient-border-pc {
    border: none;
  }

  .container {
    padding: 2% 6%;
  }

  .header__container {
    width: 100%;
  }

  .header__site-title {
    padding: 2%;
  }

  .logo-circle {
    max-width: 40px;
  }

  .logo-line {
    max-width: 196px;
  }

  .header-image-comic {
    margin: -24% auto 0;
    padding: 0;
  }

  .site-header-image img {
    width: 100%;
  }

  /* ----------------------------------------
  投稿一覧
  ---------------------------------------- */

  .post-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  /* ----------------------------------------
  記事ページ
  ---------------------------------------- */

  .post-header {
    margin-top: 0;
  }

  /* ----------------------------------------
  前の記事・次の記事
  ---------------------------------------- */

  .post-nav ul {
    flex-direction: column;
    gap: 8px;
  }

  .post-nav li {
    width: 100%;
  }

  .prev-post,
  .next-post {
    width: 100%;
  }
  
  .next-post {
    justify-content: right;
  }

  /* ----------------------------------------
  ページネーション
  ---------------------------------------- */

  .page-nav {
    font-size: 1rem;
  }
  
  /* ----------------------------------------
  登場人物
  ---------------------------------------- */

  .avatar {
    flex-direction: column;
  }

  .avatar > div {
    max-width: unset;
  }

  /* ----------------------------------------
  フッター
  ---------------------------------------- */
  .footer {
    flex-direction: column;
  }

  .footer > h3 {
    font-size: 0.7rem;
  }


  /* ----------------------------------------
  hamburger menu
  ---------------------------------------- */

  .hamburger {
    position: fixed;
    bottom: 0;
    left: 0;
    /* transform: translateX(-50%); */

    width: 100%;
    height: 64px;

    border: none;
    background: #fff;

    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 16px;

    z-index: 1001;

    gap: 6px;
    flex-direction: column;
  }

  .hamburger span {
    width: 24px;
    height: 2px;
    display: block;
    transition: .3s;
  }

  .hamburger span:nth-child(1) {
    background-color: var(--color-blue);
  }

  .hamburger span:nth-child(2) {
    background-color: var(--color-lgray);
  }

  .hamburger span:nth-child(3) {
    background-color: var(--color-pink);
  }

  .hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active span:nth-child(2) {
    /* transform: translateX(-6px); */
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* ----------------------------------------
  ナビ
  ---------------------------------------- */

  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);

    opacity: 0;
    visibility: hidden;
    transition: .3s;

    z-index: 900;
  }

  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .global-nav {
    position: fixed;
    left: 0;
    bottom: 0;

    width: 100%;
    background: #fff;

    border-radius: 20px 20px 0 0;

    transform: translateY(100%);
    transition: .35s;

    z-index: 1000;

    padding: 8px 20px 72px;
  }

  .global-nav.active {
    transform: translateY(0);
  }

   .global-nav__list {
    height: 100%;
    flex-direction: column;
  }

  .global-nav__list li {
    width: 100%;
    padding: 0;
    text-align: center;
    border-bottom: var(--color-pink) dotted 2px;
  }

  .global-nav__list li::before {
    display: none;
  }

  .global-nav__list li:last-child {
    border-bottom: none;
  }

  .global-nav__list a {
    display: block;
    width: 100%;
    font-size: 18px;
    padding: 20px;
  }


}