/*全体のCSS*/

:root {
  --white: #fff;
  --main-color: #fafaff;
  --article-color: #fff;
  --bg-color: #fafaff;
  --tx-color: #1e1e1e;
  --usui-color: #878dc7;
  --hover-color: #ebecf9;
  --link-color: #2f3fd6;
  --content-padding: 16px;
  --gr-color: linear-gradient(80deg, #9082f8, #f6c6ff 25%, #8be3fa 65%, #8db2f9 77%, #e2afec 99%);

  --p-small: 0.8rem;
  --p-nomal: 0.9rem;
}


body {
    margin: 0;
  font-family: "Montserrat","Noto Sans JP", Meiryo, sans-serif;
  width: 100%;
  box-sizing: border-box;
  font-weight: normal;
  
  display: block;
  min-height: 100vh;
  max-width: 100%;
  min-width: 100%;
  overflow-wrap: break-word;
  overflow-x: clip;
  position: relative;
  letter-spacing: .1em;
  color: var(--tx-color);
  background-color: var(--bg-color);
}

h1 {
  font-size: 1.25rem;
  font-weight: 600;
}

h2 {
  font-size: 1.1rem;
  letter-spacing: .2em;
  margin-bottom: 5vh;
  font-weight: 600;
}  

.top-news {
  margin-bottom: 3vh;
}

.top-news-area {
  margin-bottom: 5vh;
}

h2, h3, h4, h5, h6 {
  position: relative;
}

h2::before, h3::before, h4::before, h5::before, h6::before {
  content: "";
  display: inline-block;
  width: 15px;
  height: 15px;
  background-image: url(../images/maru.svg);
  background-repeat: no-repeat;
  background-size: cover;
  margin-right: 11px;
}

a {
  text-decoration: none;
  transition: color 0.2s;
  color: var(--link-color);
}

hr {
  margin: 1.5rem 0;
}

br {
  line-height: 1;
}

.i-honbun a:hover {
  text-decoration: underline wavy var(--link-color);
  text-underline-offset: 6px;
  transition: .2s;
}

ul {
  padding: 0;
  margin: 0;
}

li {
  list-style: none;
  padding: 0;
  margin: 0;
}

p {
  margin: 0;
  line-height: 1.8;
}

b {
  font-weight: 700;
  display: inline-block;
  margin-bottom: 0.9em;
}

img {
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
  padding: 0;
}

/*ボタンのリセットcss*/
button {
  border:none;
  padding: 0;
  margin : 0;
  font: inherit;
  background: transparent;
}

/*「一覧に戻る」ボタン（共通部分）*/
.btn {
  appearance: none;
  background: transparent;
  cursor: pointer;
  transition: 0.2s;
  color: var(--tx-color);
}

.inert {
  color: var(--usui-color);
}

/*-------------------リアクションボタン--------------------*/

/*ローディング中のアニメーション*/
.reaction-buttons.is-loading {
  opacity: 0.5;
  pointer-events: none;
}
.reaction-btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}
.loading {
  margin-top: 8px;
  font-size: 0.9rem;
  transition: opacity 0.3s;
}


/*リアクションボタン全体のラッパー*/
.reaction-box {
  margin: 24px 8vw;
  text-align: center;
}

/*リアクションボタンたちを横並びにするコンテナ*/
.reaction-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  justify-items: center;
}
/*リアクションボタン１個のスタイル*/
.reaction-btn {
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.reaction-btn:hover {
  transform: scale(1.1);
  transition: .3s;
}

.reaction-icon {
  width: 68px;
  height: 68px;
}
.reaction-count {
  font-size: 0.8rem;
  color: #333;
  margin-top: 4px;
}




/*スマホ用メニューpcで非表示*/
.sp-header, .sp-footer {
    display: none;
}


/*スクロールバー色*/
::-webkit-scrollbar {
  width: 15px;
}
::-webkit-scrollbar-track {
  background-color: var(--white);
}
::-webkit-scrollbar-thumb {
  background-image: var(--gr-color);
  background-repeat: no-repeat;
  border-radius: 15px;
}

/*-------------------ヘッダーとメインエリア---------------------*/

/*全体の親コンテナ*/
.wrapper {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    flex-direction: row-reverse;
    background: var(--main-color);
}

/*右にヘッダー*/
.header {
  position: sticky;
  width: 310px;
  height: 100vh;
  top: 0;
  right: 0;
  z-index: 10;
  align-items: center;
  margin-right: 50px;
  padding: 0 16px;
  background: var(--main-color);
  color: var(--tx-color);
}

/*サイトロゴ*/
.header .logo {
  margin-top: 88px;
  padding: 0 16px;
}

.sub-title {
  font-size: 0.8rem;
  color: var(--usui-color);
  margin-top: 8px;
  padding: 0 16px;
}

/*ナビゲーションメニューの親ラッパー*/
.main-nav {
  margin: 24px 12px;
  padding: 22px;
  background-color: var(--article-color);
}

.main-nav ul {
  display: flex;
  flex-flow: column;
  gap: 8px;
  position: relative;

}

.main-nav li {
  margin: 0;
  padding: 0;
  background-image: var(--gr-color);
  background-repeat: no-repeat; /* 背景を繰り返さない */
  background-size: 100% 5px; /* 幅(100%=文字の長さ) | 高さ(線の太さ) */
  background-position: bottom; /* 下に配置 */
  padding-bottom: 5px; /* オフセット */
}

.main-nav li a {
  display:block;
  font-size: 1rem;
  padding: 8px 16px;
  color: var(--tx-color);
  transition: color 0.2s, background-color 0.2s;
}

.main-nav li a:hover {
  margin-left: 8px;
  color: var(--glay-color);
  transition: 0.2s;
}

/*ヘッダーのSNSリスト*/
.link-list {
  margin-top: 16px;
  padding: 0 16px;
}

.link-list ul {
  display: flex;
  justify-content: space-evenly;
  list-style: none;
  padding: 0;
}

.link-list li {
  margin-bottom: 8px;
}

.link-list a {
  color: var(--link-color);
  text-decoration: none;
  font-size: var(--p-small);
}

.link-list a:hover {
  color: #9082f8;
  text-decoration: wavy underline;
  text-underline-offset: 6px;
  transition: color 0.2s, text-decoration 0.2s;
}



/*左のメインエリア（一覧・詳細共通のラッパー）*/
.main-wrapper {
  width: calc(100% - 310px);
  margin: 1vw 2vw 1vw 7vw;
  border-radius: 22px;
  background-color: var(--bg-color);
}

/*---------------漫画一覧ページのコンテナ------------------------*/
.photo-list-container {
  padding: 3.5vw;
}

/*漫画カードの一覧*/
.photo-list {
  display: grid;
  gap: 40px;
  grid-auto-columns: var(--item-list-auto-columns);
  grid-auto-flow: var(--item-list-auto-flow);
  grid-auto-rows: var(--item-list-auto-rows);
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.i-title-photo {
    display: inline-block;
    background: #dfe4ff;
    font-size: 0.65rem;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 5;
    margin: -10px;
    padding: 2px 15px;
    letter-spacing: .28em;
}

/*漫画カード一枚の共通クラス*/
.photo-link {
  display: block;
  border-radius: 0 8px 8px;
  height: 100%;
  max-height: 260px;
  transition: 0.2s;
  position: relative;
  box-sizing: border-box;
  word-break: break-all;
  color: var(--tx-color);
  background-color: var(--article-color);
}

/*漫画カードのサムネイル*/
.photo-thumb {
  aspect-ratio: 16/9;
  display: block;
  height: auto;
  object-fit: cover;
  object-position: center;
  width: 100%;
  transition: all 0.3s ease;
}

.photo-meta {
  margin: 8px 20px;
  line-height: normal;
  transition: all 0.3s ease;
}

.view-area {
  display: none;
  /*display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 10px;
    max-width: 100%;
    font-size: 12px;
    align-items: center;*/
}

.view-area-icon {
  margin-left: 8px;
  width: 30px;
  height: auto;
  transition: transform 0.2s;
}

.view-area p {
  text-align: center;
  font-weight: bold;
}

/* -----------------------一覧カードのホバーアニメーション----------*/

.photo-link::before {
position: absolute;
left: 0;
content: '';
width: 100%;
height: 5px;
background-image: var(--gr-color);
background-repeat: no-repeat;
bottom: -1px;               /*アンダーラインがaタグの下端から現れる*/
transform: scale(0, 1);     /*アンダーラインの縮尺比率。ホバー前はx方向に0*/
transform-origin: left top; /*変形（アンダーラインの伸長）の原点がaタグ（各メニュー）の左端*/
transition: transform 0.2s; /*変形の時間*/
}

.photo-link:hover {
   scale: 1;
  
}



.photo-link:hover .photo-thumb{
  filter: blur(5px) brightness(0.8);
  /*transform: scale(1.03);*/
}
.photo-link:hover::before {
transform: scale(1, 1);     /*ホバー後、x軸方向に1（相対値）伸長*/
}

.photo-link:hover .view-area-icon {
  transform: translateX(4px);
}

/*---------------------詳細ページ全体の親コンテナ----------------*/
.view-detail /*view-areaとは関係ない*/{
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  width: 100%;
  padding: 0;
  min-height: 100vh; 
  background-color: var(--article-color);
  border-radius: 8px;
}

/*詳細ページの「一覧に戻る」ボタンのコンテナ*/
.detail-action {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100px;
  position: sticky;
  top: 0;
  height: 100vh;
  align-items: center;
  overflow: hidden;
}

/*「一覧に戻る」ボタン*/
.button-close {
  display: block;
  width: 100%;
  height: 100vh;
  padding: 16px;
  font-size: 1.1rem;
  writing-mode: vertical-rl;
  letter-spacing: .6em;
  background-color: var(--main-color);
  border-radius: 8px;
  position: relative;
}

.button-close::after {
  position: absolute;
  right: 0;                /* 右端から */
  content: '';
  width: 8px;              /* 線の太さをY軸に */
  height: 100%;            /* ボタンの高さ分 */
  background-image: var(--gr-color);
  background-repeat: no-repeat;
  top: 0;
  bottom: 0;
  transform: scale(1, 0);  /* Y方向に0（縮小） */
  transform-origin: right bottom; /* 右下から伸びる */
  transition: transform 0.2s;
  border-radius: 8px;
}

.button-close:hover {
  letter-spacing: .9em;
  transition: letter-spacing ease-in 0.2s;
}

.button-close:hover::after {
  transform: scale(1, 1);  /* Y方向に1（全体） */
}

/*詳細ページのコンテンツ部分の親コンテナ*/
.detail-layout {
    display: flex;
    flex-flow: column;
    width: calc(100% - 100px);
    padding: 88px 40px;
    box-sizing: border-box;
    align-items: center;
}

/*詳細ページのサムネを包む小コンテナ*/
.detail-content {
  width: 100%;
  max-width: 700px;
  margin-bottom: var(--content-padding);
  display: flex;
  justify-content: center;
  overflow: hidden;
}

/*詳細ページのサムネイル*/
.photo-detail {
  aspect-ratio: 16/9;
  display: block;
  max-width: 100%;  /* 画像の幅を親要素の幅に合わせる */
  height: 100%;  /* 親要素の高さに合わせる */
  object-fit: cover;
  object-position: center;
  filter: blur(5px) brightness(0.8);
  border-radius: 8px;
}

/*詳細ページのサムネ以下の親コンテナ*/
.photo-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 700px;
  padding: var(--content-padding);
  margin-top: 16px;
  overflow: hidden;

  --font-size-title: 1.5rem;
}

/*複数画像エリアの親コンテナ*/
.i-manga {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
  /*repeat(auto-fill, minmax(280px, 1fr));
  padding: var(--content-padding);*/
}


.i-manga img {
  width: 100%;
  height: auto;
  border-radius: 11px;
  box-shadow: #ebecf9 0px 5px 16px 0px;
}

figure img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 11px;
  box-shadow: #ebecf9 0px 5px 16px 0px;
  margin: 22px 0;
}

.i-title {
  display: block;
  margin: 0 auto;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--tx-color);
}

.i-date {
  font-size: var(--p-small);
  color: var(--usui-color);
  display: block;
  margin: 0 auto;
}

.i-tag {
  font-size: var(--p-small);
  color: var(--usui-color);
  margin-top: 8px;
}

.i-honbun {
  font-size: var(--p-nomal);
  margin-top: 16px;
  padding: var(--content-padding);
  color: var(--tx-color);
}

.i-excerpt  {
  font-size: var(--p-small);
  /*text-align: center;*/
  width: 100%;
  color: var(--tx-color);
}








/*--------------------------日記ページ-----------------------*/

/*-------------------日記の一覧ページ---------------------*/

.diary-list-container {
  padding: 3.5vw;
}

.diary-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/*日記ひとつひとつの共通リンク*/
.diary-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 8px;
  overflow: hidden;
  height: 100%;
  transition: 0.2s;
  position: relative;
  padding: 12px;
  box-sizing: border-box;
  color: var(--tx-color);
  background-color: var(--article-color);
  --font-size-title: 1.2rem;
}

/*左側エリア*/
.diary-thumb-container {
  width: 200px;
  height: auto;
}

.diary-thumb {
  aspect-ratio: 1/1;
  display: block;
  max-width: 100%;
  height: 100%;
  border-radius: 50%;
  margin: 0 auto;
  object-fit: cover;
  object-position: center;
}

/*右側エリア*/
.diary-meta {
  width: calc(100% - 200px);
  margin: 8px 0;
  padding: 0.4rem 1rem;
  display: grid;
  gap: 8px;
  transition: all 0.3s ease;
}

.i-title-diary {
  display: block;
  font-size: var(--font-size-title);
}

.i-date-diary {
  font-size: var(--p-small);
  display: block;
}

.i-tag {
  font-size: var(--p-small);
  margin-top: 8px;
}

.i-honbun p {
  margin-bottom: 0.8rem;
}

.i-excerpt-diary  {
  font-size: var(--p-nomal);
  line-height: 2;
  display: block;
  width: 100%;

}
*/

/*ホバー*/
.diary-link::before {
position: absolute;
left: 0;
content: '';
width: 100%;
height: 5px;
background-image: var(--gr-color);
background-repeat: no-repeat;
bottom: -1px;               /*アンダーラインがaタグの下端から現れる*/
transform: scale(0, 1);     /*アンダーラインの縮尺比率。ホバー前はx方向に0*/
transform-origin: left top; /*変形（アンダーラインの伸長）の原点がaタグ（各メニュー）の左端*/
transition: transform 0.2s; /*変形の時間*/
}

.diary-link:hover {
   scale: 1.1;
}

.diary-link:hover .diary-thumb{
  filter: blur(5px);
  transform: scale(1.1);
}
.diary-link:hover::before {
transform: scale(1, 1);     /*ホバー後、x軸方向に1（相対値）伸長*/
}

.diary-link:hover .view-area-icon {
  transform: translateX(4px);
}



/*---------------------日記の詳細ページ----------------------*/

.diary-detail {
  aspect-ratio: 1/1;
  display: block;
  max-width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}

.diary-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 700px;
  padding: var(--content-padding);
  margin-top: 16px;
  overflow: hidden;

  --font-size-title: 1.6rem;
}




/*----------------------------ABOUT------------------------*/

.about-wrapper {
    width: calc(100% - 310px);
    margin: 1vw 2vw 1vw 7vw;
    border-radius: 22px;
    display: flex;
    justify-content: center;
}

.about-container {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  max-width: 700px;
  justify-content: center;
  padding: 88px 40px;
  background-color: var(--article-color);
  overflow: hidden;
}

.about-container h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.about-container ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.about-container li {
  margin-bottom: 8px;
}

.about-container a {
  color: var(--link-color);
  text-decoration: none;
  font-size: var(--p-normal);
}

.about-container a:hover {
  color: #9082f8;
  text-decoration: wavy underline;
  text-underline-offset: 6px;
  transition: color 0.2s, text-decoration 0.2s;
}

.i-honbun-small {
  font-size: var(--p-small);
  color: var(--usui-color);
}

.footer {
  position: relative;

}

.footer .copyright {
  position: fixed;
  bottom: 0;
  right: 0;
  z-index: 48;
  font-size: 0.8rem;
  color: var(--usui-color);
  margin: 8px;
  padding: 0 16px;
  word-break: break-all;
  letter-spacing: .3em;
}

/*---------------------スマホメニュー------------------------------------------*/

@media screen and (max-width: 912px) {

h2 {
  font-size: 1.2rem;
  margin-left: 10px;
}

  /*PC用メニューとフッターをスマホで非表示*/
.header, .footer {
    display: none;
}

.sp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 88px;
    z-index: 50;
    padding: 8px 16px;
    box-sizing: border-box;
    background-color: var(--main-color);
}

.sp-logo {
    margin: 8px 16px;
    width: 100px;
    height: auto;
}

.sp-main-nav {
    display: flex;
    align-items: center;
    margin: 8px 16px;
    font-size: 0.9rem;
}
.sp-main-nav ul {
    display: flex;
    gap: 16px;
    align-items: baseline;
}

.sp-main-nav a {
  color: var(--tx-color);
}

.wrapper {
    justify-content: center;
}

.main-wrapper {
  width: 100vw;
  margin: 88px 16px 0 16px;
  border-radius: 8px;
  box-sizing: border-box;
  background-color: var(--bg-color);
}


.view-detail {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  padding: 0;
  background-color: var(--article-color);
  border-radius: 8px;
}

/*詳細ページの「一覧に戻る」ボタンのコンテナ*/
.detail-action {
  width: 100vw;
  max-width: 100vw !important;
  height: 56px !important;
  position: fixed;
  top: 88px;
  left: 0;
  z-index: 14;
  margin: 0;
  padding: 0;
  background: var(--main-color);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

/*「一覧に戻る」ボタン*/
.button-close {
   width: 100vw;
    max-width: 100vw;
    height: auto;
    font-size: 1rem;
    letter-spacing: .2em;
    border-radius: 8px;
    padding: 8px 0;
    margin: 0;
    background-color: var(--main-color);
    position: relative;
    writing-mode: horizontal-tb;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    
}
/*
.button-close::after {
  display: none;
}

.button-close:hover {
  display: none;
}

.button-close:hover::after {
  display: none;    
}*/

.detail-layout {
    width: 100vw;
    max-width: 100vw;
    padding: 120px 0 60px 0;
    box-sizing: border-box;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.photo-list-container {
  padding: 30px 16px;
}

.photo-list {
  display: grid;
  gap: 40px;
  grid-auto-columns: var(--item-list-auto-columns);
  grid-auto-flow: var(--item-list-auto-flow);
  grid-auto-rows: var(--item-list-auto-rows);
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.photo-link:hover {
   scale: 1;/*スマホでホバーなしにする
   */
}

.photo-details {
  width: 100%;
  max-width: 300px;
}

.photo-meta {
  margin: 8px 20px;
  line-height: normal;
  transition: all 0.3s ease;
}

.i-title {
  font-size: 1rem;
  text-align: center;
  padding-top: var(--content-padding);
}

.i-honbun {
  font-size: 0.85rem;
  padding: 0;
}

.i-honbun p {
  margin-bottom: .6rem;
}

.i-excerpt {
  text-align: center;
  font-size: 0.6rem;
  color: var(--usui-color);
}

.view-area {
  display: none;
}

.reaction-box {
  margin: 38px auto 0;

}

.reaction-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

/*日記（スマホ版）*/

.diary-list-container {
  padding: 30px 16px;
}

.diary-details {
  width: 100%;
  max-width: 310px;
}

.diary-link {
  flex-direction: column;
  padding: 30px 0 15px;
}

.diary-thumb-container {
  margin: 16px 0;
}

.diary-meta {
  width: 100%;
  max-width: 80%;
  gap: 16px;
}

.i-title-diary {
  text-align: center;
}

.i-date-diary {
  text-align: center;
  color: var(--usui-color)
}

.i-excerpt-diary {
  font-size: var(--p-small);

}

/*ABOUTページのスマホ版*/
  .about-wrapper{
   width: 100vw;
   margin: 88px 16px 0 16px;
   border-radius: 8px;
   box-sizing: border-box;
   background-color: var(--bg-color);
  }

  .about-container {
  max-width: 100vw;
  padding: 30px 30px;
  gap: 14px;
}

.about-container .link-list {
  padding: 0;
}

.about-container p {
  line-height: 1.8;
}

.about-container a {
  font-size: var(--p-small);
}

.about-container h2 {
  font-size: 1.2rem;
  margin-bottom: 16px;
}


}





