@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: #ffffff;
  --shadow-color: #0000001f;
  --footer-color: #636987;
  --row-gap: 1.2rem;
  /* パステル系（#001154 寄りのブルー） */
  --a1-color: #6d7cff; /* ボタン背景など・やや淡いインディゴ */
  --a2-color: #f5f6ff; /* カード/ナビ背景の淡いブルー */
  --a3-color: #c4ccf3; /* 強調背景（柔らかいブルーグレー） */
  --a4-color: #4a4f6b; /* 本文サブテキスト（落ち着いた紺寄り） */
  --a5-color: #1f275a; /* 本文テキスト（#001154 寄りの紺） */
  --b5-color: #9aa4ff; /* アクセント（パステル寄りブルーラベンダー） */
  --a6-color: #e0e4ff; /* モバイルナビ背景 */
}

/* ヘッダー */
header {
  color: #1f275a;
  background: rgba(245, 246, 255, 0.92);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 12px var(--shadow-color);
}

/* ハンバーガー */
.openbtn {
  background: #e3e6ff;
}

.openbtn span {
  background: #3b4694;
}

.sort,
.main_article,
.footerbox,
.okareco {
  width: 970px;
  max-width: 93%;
  margin-left: auto;
  margin-right: auto;
}

body {
  color: var(--a5-color);
  background: radial-gradient(
      1200px 600px at 50% -100px,
      #e3e6ff 0%,
      #f3f4ff 40%,
      #ffffff 76%
    );
  position: relative;
}

/* △○□モチーフのドット柄風パターン（クレヨン調・パステルブルー） */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.25;
  background-image:
    /* ○ のやわらかい水玉 */
    radial-gradient(circle at 0 0,
      rgba(0, 17, 84, 0.10) 0,
      rgba(0, 17, 84, 0.10) 8px,
      transparent 9px),
    radial-gradient(circle at 50% 50%,
      rgba(0, 17, 84, 0.08) 0,
      rgba(0, 17, 84, 0.08) 7px,
      transparent 8px),
    /* □ を少しだけにじませた感じで */
    linear-gradient(45deg,
      rgba(0, 17, 84, 0.10) 0 2px,
      transparent 2px 100%),
    linear-gradient(-45deg,
      rgba(0, 17, 84, 0.06) 0 2px,
      transparent 2px 100%);
  background-size:
    120px 120px,
    140px 140px,
    160px 160px,
    160px 160px;
  background-position:
    20px 40px,
    80px 100px,
    -40px -20px,
    40px 60px;
}

/* メイン */
/* ブログヘッダー */
.blog_title {
  width: fit-content;
  margin: 2.5rem auto;
  font-family: var(--font-2);
  text-align: center;
}

.logo_container {
  margin-bottom: 1.5rem;
}

.blog_logo {
  max-width: 400px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s ease;
}

.blog_logo:hover {
  transform: scale(1.02);
}

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: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* ブログ記事 */
.blog {
  font-family: var(--font-1);
  padding: 1.6rem 2.5rem 2.5rem;
  border-radius: 24px;
}

.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 #e6e8ef;
}

.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: #3f4b86;
  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;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

#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: #6b6b6b;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 16px 18px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: top 0.3s ease;
  font-weight: bold;
}

#customDialog.show {
  top: 20px;
}

/* 補助欄 */
aside {
  color: #6b6b6b;
  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: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;
   margin-bottom: 5rem; /* この行を追加：下に余白を作る */
}

.ptn>li {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  text-align: center;
  border-radius: 100px;
  transition-duration: 0.4s;
}

.ptn>li:hover {
  background: rgba(127, 184, 255, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(127, 184, 255, 0.2);
}

.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;
  transition: color 0.3s ease;
}

.ptn>li:hover>a {
  color: #4a90e2;
}

.emoji {
  font-size: 1.3em;
  line-height: 1;
  vertical-align: -1px;
}

/* フッター */
footer {
  position: relative;
  font-size: small;
  text-align: center;
  color: #a0a6ad;
  margin-top: 4rem;
  padding-top: 2.4rem;
}

/* フッターの区切り線 */
footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(970px, 93vw);
  height: 1px;
  background: linear-gradient(90deg, rgba(0,0,0,0) 0%, #e6e8ef 12%, #e6e8ef 88%, rgba(0,0,0,0) 100%);
}

footer article {
  background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
  min-height: 220px;
  outline: 2px solid transparent;
}

.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: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #6b6b6b;
  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: #a0a6ad;
  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: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  text-align: center;
  border-radius: 100px;
  transition-duration: 0.4s;
}

.allptn:hover {
  background: rgba(127, 184, 255, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(127, 184, 255, 0.2);
}

.allptn a {
  position: relative;
  display: block;
  width: fit-content;
  padding: .5em 1em;
  transition: color 0.3s ease;
}

.allptn:hover a {
  color: #4a90e2;
}

/* クイズ用 */
.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: rgba(255,255,255,.9);
  }

  #nav {
    background-color: var(--a6-color);
    top: -235px;
  }

  /* メイン */
  .main_article {
    display: block;
  }

  /* 記事 */
  .blog {
    padding: 1.8rem 1.2rem 2.5rem;
    border-radius: 20px;
  }

  .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: #e6e8ef;
  }

  .footerbox {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
  }

  .quiz .img {
    aspect-ratio: 1/1;
  }

  .blog_logo {
    max-width: 280px;
  }
}