@charset "utf-8";

@font-face {
  font-family: 'countfont';
  src: url('../font/TheNeighbors.TTF') format('truetype');
}

:root {
  --party-font: "Megrim", system-ui;
  --font-1: 'Iowan Old Style', 'Palatino Linotype', 'URW Palladio L', P052, serif;
  --font-2: "Kaisei Decol", serif;
  --blog-color: #fffef9;
  --shadow-color: #00000059;
  --footer-color: black;
  --row-gap: 1.2rem;
  /* ディープレッド */
  --a1-color: rgb(167, 33, 38);
  /* ブラック */
  --a2-color: rgb(0, 0, 0);
  /* バーガンディー */
  --a3-color: rgb(59, 16, 26);
  /* ランプブラック */
  --a4-color: rgb(37, 9, 20);
  /* ★赤錆 */
  --a5-color: rgb(138, 26, 31);
  --b5-color: rgb(26, 138, 133);
  /* 紅海老茶 */
  --a6-color: rgb(157, 29, 34);
}

/* ヘッダー */
header {
  color: var(--a6-color);
  background-color: var(--a2-color);
  box-shadow: 0 0 3px 1px var(--shadow-color);
}

/* ハンバーガー */
.openbtn {
  background: var(--a1-color);
}

.openbtn span {
  background: var(--a4-color);
}

.sort,
.main_article,
.footerbox,
.okareco {
  width: 970px;
  max-width: 93%;
  margin-left: auto;
  margin-right: auto;
}

body {
  color: var(--a5-color);
  background: linear-gradient(181deg, black, 71%, red);
}

/* メイン */
/* ブログヘッダー */
.blog_title {
  width: fit-content;
  margin: 2.5rem auto;
  font-family: var(--font-2);
  text-align: center;
}

rt {
  font-size: 16px;
}

.blog_title h2 {
  font-size: 38px;
  font-weight: normal;
  padding-bottom: 2px;
  transition-duration: 0.2s;
}

.blog_title h2:hover {
  filter: brightness(2);
}

.blog_title P {
  font-size: 18px;
  margin-top: 4px;
}

/* ソート */
.sort {
  margin-bottom: 1rem;
  user-select: none;
}

.selectlink {
  padding: 0 0.5em;
  background-color: var(--blog-color);
  border-radius: 2px;
  border: none;
  outline: none;
}

.main_article {
  display: grid;
  grid-template-columns: 3fr 1fr;
  column-gap: 2.4rem;
}


.blogbox {
  display: grid;
  row-gap: 4.8rem;
}

.blog,
.share_etc,
aside>div {
  background-color: var(--blog-color);
  box-shadow: 0 2px 4px var(--shadow-color);
}

/* ブログ記事 */
.blog {
  font-family: var(--font-1);
  padding: 1.6rem 2.5rem 2.5rem;
  border-radius: 44px 0px;
}

.blog hgroup {
  margin-bottom: 1rem;
}

.blog .img {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 2px;
  margin-bottom: 2rem;
  overflow: hidden;
}

.blog .img2 {
  margin-top: 2rem;
}

.blog .img img {
  height: 100%;
  margin: 0 auto;
}

.blog div span {
  display: inline-block;
}

h3 {
  padding-bottom: 0.5rem;
  border-bottom: 1.5px solid #ccc;
}

.time {
  margin-top: 0.5rem;
  color: #555;
  font-size: small;
  font-family: system-ui, sans-serif;
}

.blog>div>p {
  text-align: justify;
  line-height: 1.98;
  margin-top: 2rem;
}

.blog>div>p:nth-child(1) {
  margin-top: 0;
}

/* デコレーション */
.decoration {
  display: flex;
  flex-wrap: wrap;
  justify-content: right;
  column-gap: 1rem;
  margin-top: 2rem;
  user-select: none;
  color: var(--a4-color);
  font-family: system-ui, sans-serif;
}

.decoration>li>span {
  position: relative;
}

.decoration>li>span::before {
  display: none;
  content: '';
  position: absolute;
  bottom: calc(100% + 3px);
  font-size: small;
  padding: 4px 6px;
  width: max-content;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
  background-color: #efefef;
}

.decoration>li>span:nth-child(1)::before {
  content: 'スキ';
}

.decoration>li:nth-child(2)>span::before {
  content: 'シェア';
}

.decoration>li>span:hover::before {
  display: block;
}

.decoration>li>span {
  vertical-align: middle;
}

.share {
  position: relative;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 48;
}

#favoritebtn,
#favoritebtn2,
#favoritebtn3 {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 48;
}

/* シェアボックス */
.share_etc {
  position: absolute;
  z-index: 3;
  bottom: 30px;
  width: 200px;
  padding: 0.8em 0.6em;
  border-radius: 2px;
  font-size: small;
}

#share_etc,
#share_etc2,
#share_etc3 {
  display: none;
}

.share_etc img {
  display: inline-block;
  height: 1.1em;
  margin-right: 1em;
  vertical-align: text-bottom;
}

.share_etc li {
  margin-top: 0.4em;
  padding: 0.3em 0.6em;
  transition-duration: .1s;
}

.share_etc li:hover {
  background-color: #efefef;
}

.share_etc>li:first-child {
  margin-top: 0;
}

#customDialog {
  display: none;
  position: fixed;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--b5-color);
  background: rgb(209, 231, 230);
  padding: 16px 18px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: top 0.3s ease;
  font-weight: bold;
}

#customDialog.show {
  top: 20px;
}

/* 補助欄 */
aside {
  color: var(--a4-color);
  max-width: 300px;
}

h4 {
  text-align: center;
  font-size: 16px;
}

aside>div {
  position: relative;
  display: grid;
  row-gap: 1rem;
  margin-top: var(--row-gap);
  padding: 0.8rem 0.5rem;
  border-radius: 7px;
  max-width: 232.9px;
  font-size: 14px;
}

aside>div:first-child p {
  text-wrap: balance;
  text-align: center;
}

.me {
  width: 100px;
  border-radius: 100px;
  margin: 0 auto;
}

.mex {
  width: 20px;
  margin-left: auto;
  margin-right: auto;
}

aside a {
  transition-duration: 0.1s;
}

aside a:hover {
  opacity: 0.7;
}

aside>div:first-child {
  margin-top: 0;
}

aside ul {
  width: 90%;
  margin: 0 auto;
  display: grid;
  row-gap: 3px;
}

aside ul li a {
  color: var(--b5-color);
  text-decoration: underline;
}

/* 付箋風影 */
/* aside div::after {
  content: "";
  position: absolute;
  bottom: -4px;
  right: 6px;
  z-index: -1;
  transform: rotate(5deg);
  width: 70%;
  height: 50%;
  background-color: var(--shadow-color);
  filter: blur(4px);
} */
aside>div:last-child p {
  padding: 0.5rem;
  font-family: var(--font-1);
  text-align: center;
  font-weight: bold;
  overflow-x: auto;
  white-space: nowrap;
}

.visiter {
  font-family: 'countfont';
  font-size: 36px;
  font-weight: normal;
}

/* prev-top-next */
.ptn {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  font-weight: bold;
}

.ptn>li {
  position: relative;
  overflow: hidden;
  background-color: var(--a2-color);
  box-shadow: 0 1px 2px var(--shadow-color);
  text-align: center;
  border-radius: 100px;
  transition-duration: 0.4s;
}

.ptn>li:hover {
  background-color: var(--b5-color);
}

.ptn>li:nth-child(1) {
  margin-left: 0;
  margin-right: auto;
}

.ptn>li:nth-child(2) {
  margin: 0 auto;
}

.ptn>li:nth-child(3) {
  margin-left: auto;
  margin-right: 0;
}

.ptn>li>a {
  position: relative;
  display: block;
  width: fit-content;
  padding: .5em 1em;
}

.emoji {
  font-size: 1.3em;
  line-height: 1;
  vertical-align: -1px;
}

/* フッター */
footer {
  position: relative;
  font-size: small;
  text-align: center;
  color: gray;
}

.blood {
  vertical-align: bottom;
}

footer article {
  background-color: black;
  height: 220px;
  outline: 2px solid black;
}

.footerbox {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

footer img {
  display: inline;
  height: 18px;
  vertical-align: text-top;
  margin-right: 2px;
}

footer section:first-child {
  display: grid;
  row-gap: 1em;
}

.footer_title {
  font-size: 0.9rem;
  font-weight: bold;
}

footer section:first-child div {
  background-color: var(--a3-color);
  color: white;
  font-weight: bold;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  padding: 4px 0.7em;
  border-radius: 2px;
  transition-duration: .1s;
}

footer section:first-child div:hover {
  opacity: 0.7;
}

.powerd {
  margin-top: 3em;
}

.okareco {
  color: rgba(255, 255, 255, 0.2);
  padding-bottom: 0.5em;
}

/* 一覧用 */
.all {
  display: grid;
  row-gap: 1rem;
  width: 565px;
  max-width: 100%;
  margin: 0 auto 4.8rem;
}

.all li {
  width: 100%;
  background-color: var(--blog-color);
  padding: 4px 1rem;
  border-radius: 4px;
  box-shadow: 0 2px 4px var(--shadow-color);
  font-family: var(--font-1);
  transition-duration: 0.12s;
}

.all li a {
  display: block;
  width: 100%;
}

.all li:hover {
  opacity: 0.88;
}

.all li p {
  font-size: 17px;
  font-weight: bold;
}

.all li time {
  font-size: 14px;
  font-family: system-ui, sans-serif;
}

.allptn {
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  overflow: hidden;
  background-color: var(--a2-color);
  box-shadow: 0 1px 2px var(--shadow-color);
  text-align: center;
  border-radius: 100px;
  transition-duration: 0.4s;
}

.allptn:hover {
  background-color: var(--b5-color);
}

.allptn a {
  position: relative;
  display: block;
  width: fit-content;
  padding: .5em 1em;
}

/* クイズ用 */
.quiz {
  margin-top: 2rem;
  color: var(--a4-color);
}

.quiz .img {
  margin-bottom: 8px;
  aspect-ratio: 7/5;
}

.quiz img {
  box-shadow: 0 1px 2px var(--shadow-color);
}

.radio {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1rem;
  row-gap: 8px;
  justify-content: center;
}

.radio input {
  accent-color: var(--b5-color);
}

.answer {
  display: block;
  margin: 2rem auto 0;
  padding: 6px 12px 7px;
  border-radius: 100px;
  border: none;
  box-shadow: 0 0 3px var(--shadow-color);
  transition-duration: 0.3s;
  background-color: black;
  color: var(--a1-color);
  font-family: system-ui, sans-serif;
  font-weight: bold;
}

.answer:hover {
  color: var(--b5-color);
}

.seigo {
  text-align: center;
  color: var(--blog-color);
  background-image: url(../img/noise/01.png);
  background-color: var(--a5-color);
  width: fit-content;
  margin: 0 auto 8px;
  padding: 4px 10px;
  border-radius: 2px;
}

@media (max-width: 800px) {

  .header_inner {
    background-color: var(--a2-color);
  }

  #nav {
    background-color: var(--a6-color);
    top: -235px;
  }

  /* メイン */
  .main_article {
    display: block;
  }

  /* 記事 */
  .blog {
    padding: 1.8rem 1.2rem 2.5rem;
    border-radius: 33px 0;
  }

  .share_etc {
    right: 0;
    bottom: 30px;
  }

  .ptn {
    font-size: small
  }

  #customDialog {
    width: 60vw;
    text-align: center;
    padding: 16px 0;
  }

  /* 補助欄 */
  aside {
    margin: 4.8rem auto 3.6rem;
  }

  aside>div {
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
  }

  /* フッター */
  footer article {
    position: relative;
    height: auto;
    padding-top: 2rem;
    text-wrap: balance;
  }

  footer article::after {
    position: absolute;
    z-index: -1;
    content: '';
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 2px;
    background-color: black;
  }

  .footerbox {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
  }

  .quiz .img {
    aspect-ratio: 1/1;
  }
}