/*
Theme Name: Graphy
Description: Typography for Japanese.
*/
.hash .btn_01 a {
  margin: initial;
}
/* 投稿IDが107の投稿に対するスタイル */
.custom-class-107 .attention_box {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* 他の非表示スタイルを上書き */
.custom-class-107 .fade-section {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.custom-class-107 .accordion-content {
  max-height: none !important;
  display: block !important;
}

.menu-toggle:hover,
.menu-toggle:focus {
  background-color: #fff;
  width: 100vw;
  margin: 0 calc(50% - 50vw);
}
.site {
  max-width: 1200px;
  margin: 0 auto;
}
.content {
  position: relative;
  z-index: 1;
}
.menu-toggle {
  color: #1e1f1e;
  font-size: 100%;
  letter-spacing: normal;
  outline: none;
  text-align: right;
  padding: 0;
  width: 100%;
  position: fixed;
  top: 0;
  background-color: #fff;
  z-index: 8000;
  left: 0px;
  border-radius: 0;
}
.main-navigation {
  border-bottom: none !important;
  border-top: none !important;
}
.main-navigation .search-form {
  display: none !important;
}
.site-branding {
  padding-bottom: 0 !important;
}
.main-navigation ul {
  display: none;
  list-style: none;
  margin: 0;
  position: absolute; /* メニューを画面内に固定 */
  top: 58px; /* ナビゲーションの高さ分だけ下げる */
  left: 0;
  right: 0;
  background: #fff; /* 背景色を設定 */
  z-index: 9999; /* メニューが前面に表示されるよう調整 */
}
.main-navigation.toggled ul {
  display: block;
}

.main-navigation ul ul {
  position: relative;
  left: 0;
}
.menu-toggle {
  width: 100%; /* 画面幅に合わせる */
  max-width: 100vw; /* ビューポート幅を超えないよう制限 */
}

.main-navigation ul {
  width: 100%; /* メニュー全体の幅を画面に合わせる */
  max-width: 100vw;
}

header {
  position: relative;
}

html {
  font-size: 77%;
}
body {
  font-size: 16px;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  line-height: 1.7;
  background-color: #f3f3ee;
  background-image: url(/wp-content/uploads/images/smolaw.png);
  background-repeat: no-repeat;
  background-position: right top; /* 右端の上に配置 */
  background-position: 100% 16%; /* 横方向に75%、縦方向に25%の位置 */
  color: #a88600;
}
h1,
h2,
h3,
h4,
h5,
h6,
.site-title {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700 !important;
  color: #a88600;
}
.main-navigation a {
  border-top: none;
  padding-left: 1em;
}
h4 img {
  max-width: 100px;
  margin: 2em auto;
}
h5 {
  margin-bottom: 0;
  margin-top: 0em;
}
.about_box01 .about_txt_area h4 img {
  max-width: 140px;
}
h2,
h4 {
  text-align: center !important;
}
h5 {
  font-weight: 800;
  font-size: 18px;
}
.grid_area h4 {
  font-size: 20px;
}
.about_txt_area {
  text-align: center;
}
.site-title {
  font-size: 38px;
  font-weight: 400;
}
.entry-title {
  font-weight: 400;
  line-height: 1.4;
}
.widget {
  line-height: 1.6;
}
.site-logo img {
  max-width: 88px;
  position: relative;
  z-index: 9999;
}
.midashi {
  margin: 2em;
  margin-top: 0;
  text-align: center;
  padding-top: 3em;
  font-size: 25px;
}
#illust.midashi {
  margin-top: 0;
  padding-top: 0;
}
.posi02 {
  top: -12%;
  right: 0%;
}
.posi01 {
  top: -12%;
  left: 0;
}
/* アニメーション */
.fade-section {
  opacity: 0;
  transform: translateY(40px); /* 初期位置を少し下に */
  transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.fade-section.visible {
  opacity: 1;
  transform: translateY(0); /* 元の位置に戻る */
}
@keyframes occasionalBounce {
  0%,
  100% {
    transform: translateY(0); /* 元の位置 */
  }
  50% {
    transform: translateY(-10px); /* 上に跳ねる */
  }
}

.posi01.active,
.posi02.active {
  animation: occasionalBounce 0.5s ease-in-out; /* 短時間のアニメーション */
}
@keyframes genieFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg); /* 元の位置 */
  }
  25% {
    transform: translateY(-5px) rotate(-2deg); /* 上に少し揺れる */
  }
  50% {
    transform: translateY(5px) rotate(2deg); /* 下に少し揺れる */
  }
  75% {
    transform: translateY(-3px) rotate(-1deg); /* 軽く戻る */
  }
}
@keyframes smallBounce {
  0%,
  100% {
    transform: translateY(0); /* 元の位置 */
  }
  50% {
    transform: translateY(-8px); /* 軽く跳ねる */
  }
}

.img_position04.bounce {
  animation: smallBounce 0.5s ease-in-out; /* 短時間で軽い跳ね */
}

.img_position03 {
  position: relative; /* アニメーション用に必須 */
  animation: genieFloat 3s ease-in-out infinite; /* ゆらゆら揺れるアニメーション */
}

/* TOPに戻る */
/* ボタンのスタイル */
#topButton {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none; /* 初期状態は非表示 */
  background-color: #a88600;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(156, 143, 118, 0.1);
  z-index: 1000;
}

#topButton:hover {
  background-color: #a88600;
}

/* ボタン */
/* ボタン001 */
.btn_01 a {
  background: #fff;
  border-radius: 50px;
  position: relative;
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 0 auto;
  max-width: 260px;
  padding: 10px 25px;
  color: #6e3527;
  transition: 0.3s ease-in-out;
  font-weight: 500;
  border: 3px solid #6e3527;
  margin-top: 1em;
}
.btn_01 a:after {
  content: "";
  width: 6px;
  height: 6px;
  border: 0;
  border-top: solid 2px #6e3527;
  border-right: solid 2px #6e3527;
  transform: rotate(45deg);
  position: absolute;
  top: 0;
  right: 2em;
  bottom: 0;
  margin: auto;
}
.btn_01:hover a:after {
  border-top: solid 2px #fff;
  border-right: solid 2px #fff;
  right: 1.7em;
  transition: all 0.5s;
}
.btn_01 a:hover {
  background: #6e3527;
  color: #fff;
  text-decoration: none;
  transition: all 0.5s;
  transform: translateY(3px);
}
/* ボタン002 */
.btn_area_box .btn_01 a,
.item .btn_01 a {
  background: #e3c753;
  border-radius: 6px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  max-width: 260px;
  padding: 0px 14px;
  color: #fff;
  transition: 0.3s ease-in-out;
  font-weight: 500;
  border: 3px solid #e3c753;
}
.btn_area_box .btn_01 a:after,
.item .btn_01 a:after {
  content: "";
  width: 0;
  height: 0;
  border: 0;
  border-top: none;
  border-right: none;
  transform: rotate(45deg);
  position: absolute;
  top: 0;
  right: 2em;
  bottom: 0;
  margin: auto;
}
.btn_area_box .btn_01:hover a:after,
.item .btn_01:hover a:after {
  border-top: none;
  border-right: none;
  right: 1.7em;
  transition: all 0.5s;
}
.btn_area_box .btn_01 a:hover,
.item .btn_01 a:hover {
  background: #fff;
  color: #e3c753;
  text-decoration: none;
  transition: all 0.5s;
  transform: translateY(3px);
}

/* TOP画像 */
/* 背景画像のスタイル */
.background-container {
  position: relative; /* 子要素の位置を基準にする */
  width: 100%; /* 横幅を画面全体に設定 */
  height: 100%; /* 高さを設定 */
  background-size: contain; /* 画像を要素全体にカバー */
  background-repeat: no-repeat;
  background-position: top center;
}
.about_box01 .background-container {
  height: 60vh;
}

/* 透明な画像を重ねる */
.background-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("/wp-content/uploads/images/clear.png");
  background-size: content;
  background-repeat: repeat;
  pointer-events: none;
}
.background-container.img_position01 {
  background-image: url("/wp-content/uploads/images/img03.png");
  width: 80px;
  height: 114px;
  padding-top: 0;
}
.background-container.img_position02 {
  background-image: url("/wp-content/uploads/images/img04.png");
  width: 80px;
  height: 114px;
  padding-top: 0;
}
.background-container.img_position03 {
  background-image: url("/wp-content/uploads/images/img01.png");
  max-width: 168px;
  height: 174px;
  margin: 0 auto;
  padding-top: 0;
}
.background-container.img_position04 {
  background-image: url("/wp-content/uploads/images/img02.png");
  max-width: 139px;
  height: 156px;
  padding-top: 0;
}
.yu_img.protected-image.vell {
  display: flex;
  justify-content: center;
  align-items: center;
}
.content section {
  margin-bottom: 10%;
}
/* トップナビ */
#site-navigation .page-id-167,
#site-navigation .page-id-114 {
  overflow: auto;
}
.page-id-167 #site-navigation,
.page-id-114 #site-navigation {
  display: block;
}
footer {
  display: none;
}
#site-navigation footer,
.page-id-114 footer {
  display: block;
}
#site-navigation footer,
.page-id-167 footer {
  display: block;
}
.page-id-167 footer a,
.page-id-114 footer a {
  color: #fff;
}
.page-id-167 footer ul,
.page-id-114 footer ul {
  display: flex;
  justify-content: center;
  margin-left: 0;
  margin-right: 0;
}
.page-id-167 footer li,
.page-id-114 footer li {
  list-style: none;
  padding: 1em;
}
/* アンソロジー概要 */
section.about {
  text-align: center; /* 全体のテキスト揃え */
  position: relative;
}
.store_area,
.yu_img {
  text-align: center;
}

section.about h4 {
  position: relative; /* 子要素の基準を設定 */
}
.sample h4 {
  text-align: center;
}

.posi01,
.posi02 {
  position: absolute; /* .about h4 img を基準に配置 */
}

/* }小説あらすじ */
.recomend_story {
  padding: 12px 0px;
  font-size: 14px;
}
/* サンプル */
.btn_area_box {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.btn_area_box .btn_01 {
  margin: 0.5em;
}
.grid_area,
.anthology-content,
.sample_container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 最小300px、最大均等割り */
  gap: 16px; /* 要素間の間隔 */
  max-width: 100%; /* 親要素がはみ出さないようにする */
  box-sizing: border-box;
}

.item {
  box-sizing: border-box; /* パディングやボーダーを幅に含める */
  overflow: hidden; /* 中身のはみ出しを防ぐ */
  word-wrap: break-word; /* 長い単語を折り返し */
  padding-bottom: 1em;
  border-bottom: 2px solid #a88600;
}

.sample_thusnail {
  height: 150px; /* 固定の高さを設定 */
  width: 100%; /* 横幅を100%にする */
  background-size: cover;
  background-position: center;
  padding-top: 0;
}
.sample_box_title {
  display: flex;
  justify-content: space-between;
  padding-bottom: 0.5em;
  margin-top: 2em;
}
/* アイコン */
.img_icon_members {
  border-radius: 50%;
  width: 100px;
  height: 100px;
  padding-top: 0;
}
.sns_txt_box {
  width: 100%;
}
.sns_area {
  display: flex;
  width: 100%;
}
.sns-icon {
  width: 35px;
}
.sns-icon img {
  max-width: 22px;
}
.sns-icon img:hover {
  opacity: 0.8;
}
/* アコーディオン */
.accordion {
  border: none;
  margin-bottom: 1em;
}

.accordion-item {
  border-bottom: 1px solid #a88600;
}

.accordion-header {
  color: #a88600;
  background: none;
  padding: 12px 16px;
  width: 100%;
  text-align: left;
  border: none;
  outline: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-header:hover {
  background-color: #f9f9f9;
}

.accordion-icon {
  display: inline-block;
  font-size: 18px;
  transition: transform 0.3s ease, content 0.3s ease;
  position: relative;
}

.accordion-icon::before {
  content: "+"; /* 初期状態で + を表示 */
  display: inline-block;
  transition: transform 0.3s ease, content 0.3s ease;
}

.accordion-header.active .accordion-icon::before {
  content: "-"; /* アクティブ時に - に変更 */
}

.accordion-header.active .accordion-icon {
  transform: rotate(180deg); /* 回転アニメーション */
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 16px;
}

.accordion-content p {
  margin: 12px 0;
}
/* 作者・SNS紹介 */
.sample_sns_members {
  display: flex;
}
.sns_txt_box {
  margin-left: 1em;
}
/* モーダル全体 */
.modal {
  display: none;
  position: fixed;
  z-index: 10001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.swiper {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 100%;
  height: 100%;
}

.swiper-button-next,
.swiper-button-prev {
  color: white;
}

.swiper-pagination-bullet {
  background: white;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 20px;
  color: white;
  font-size: 24px;
  cursor: pointer;
  z-index: 1001;
}

.novel_style {
  margin-top: 1em;
}
.sns_txt_box span {
  color: #fff;
  background-color: #e3c753;
  padding: 0.2em 0.5em;
  border-radius: 8px;
  font-size: 0.7em;
}

footer {
  background: #a88600;
  color: #fff;
  width: 100vw;
  margin: 0 calc(50% - 50vw);
  margin-top: 2em;
}
.site-bottom {
  border-top: none;
  margin-top: 0;
}

@media screen and (min-width: 500px) {
  /* サンプル */
  .sample_container {
    grid-template-columns: repeat(2, 1fr); /* 2列にする */
  }
  .site-logo img {
    max-width: 150px;
  }
}
@media screen and (min-width: 900px) {
  /* サンプル */
  .about,
  .anthology-content,
  .sample_container {
    grid-template-columns: repeat(3, 1fr); /* 3列にする */
  }
  .slider .background-container {
    padding-top: 80%;
  }
}

@media screen and (min-width: 783px) {
  #site-navigation footer,
  .page-id-114 footer {
    margin-left: -57px;
  }
  .page-id-167 footer {
    margin: 0 auto;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding-left: -126px;
  }
  .main-navigation div.menu > ul > li,
  .main-navigation ul.menu > li {
    background-color: initial;
  }
  h2,
  .about_txt_area h4 {
    text-align: left !important;
  }
  .about_txt_area {
    text-align: left;
  }
  h2 {
    margin-top: 0;
  }
  .flex_wrapper {
    display: flex;
    justify-content: center;
  }
  .flex_box {
    width: 50%;
  }
  html {
    font-size: 85%;
  }
  body {
    font-size: 17px;
  }
  .site-title {
    font-size: 43px;
  }

  /* TOP */
  .about_txt_area {
    margin-left: 3%;
  }
  .slider {
    margin: 1em;
  }
  .anthology-content {
    order: 3px solid;
    border-radius: 32px;
    margin-bottom: 2em;
    padding: 1em;
  }
  .posi01 {
    top: -25%;
    left: 30%;
  }
  .posi02 {
    top: -25%;
    right: 30%;
  }
}

@media screen and (min-width: 1200px) {
  .slider .background-container {
    padding-top: 60%;
  }
}

@media screen and (max-width: 768px) {
  .menu-toggle {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 8000;
    background: #fff;
  }

  .main-navigation ul {
    position: fixed; /* 固定表示 */
    top: 58px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 10px 0;
    z-index: 9999;
  }

  .main-navigation ul ul {
    position: relative; /* サブメニューの位置を調整 */
    left: 0;
  }
}
