@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: #fff8f6; /* やわらかい生成りピンク */
  --shadow-color: #0000001f;
  --footer-color: #603138;
  /* footer 用カラーパレット（#600212 寄りのローズベージュ） */
  --footer-bg: linear-gradient(180deg, #fff4f2 0%, #f9e0db 60%);
  --footer-text: #603138;
  --footer-muted: #b48c93;
  --row-gap: 1.2rem;
  /* #600212 寄りのパステル系（ローズ / ワイン / ベージュ） */
  --a1-color: #f7b3b8; /* ボタン背景など（淡いローズ） */
  --a2-color: #fff4f4; /* カード/ナビ背景（ごく薄いピンクベージュ） */
  --a3-color: #f3c2c7; /* 強調背景（サーモンローズ） */
  --a4-color: #8a4a4f; /* 本文サブテキスト（ややくすんだワイン） */
  --a5-color: #600212; /* 本文テキスト（基調カラー） */
  --b5-color: #f18b98; /* アクセント（少し鮮やかなピンク） */
  --a6-color: #ffe9ec; /* モバイルナビ背景（淡いローズ） */
}

/* ヘッダー */
header {
  color: var(--a4-color);
  background: rgba(255, 244, 244, 0.9);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 12px var(--shadow-color);
}

/* ハンバーガー */
.openbtn {
  background: #ffe3e6;
}

.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: radial-gradient(
      1200px 600px at 50% -100px,
      #ffe6eb 0%,
      #fff5f6 40%,
      #ffffff 72%
    );
}

/* メイン */
/* ブログヘッダー */
.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: #8a4a4f;
  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;
  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::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;
}

/* しずくっぽいフォントのスタイル */
.droplet-font {
  font-family: 'Dancing Script', cursive;
  font-size: 32px;
  font-weight: 600;
  color: var(--a5-color); /* フォント色を本文色に合わせる */
  text-shadow: 0 2px 4px rgba(182,106,80,0.3); /* --a5-color (#b66a50) の rgba */
  letter-spacing: 1px;
  transform: rotate(-2deg);
  display: inline-block;
  animation: droplet-glow 3s ease-in-out infinite alternate;
}

/* アニメーション内のシャドウも本文色に合わせる */
@keyframes droplet-glow {
  0% {
    text-shadow: 0 2px 4px rgba(182,106,80,0.3);
    transform: rotate(-2deg) scale(1);
  }
  100% {
    text-shadow: 0 4px 8px rgba(182,106,80,0.5), 0 0 12px rgba(182,106,80,0.2);
    transform: rotate(-2deg) scale(1.02);
  }
}

/* アクセスカウンターのレイアウト */
.access-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 8px;
}

.access-counter .counter-label {
  font-family: var(--font-1);
  font-size: 12px;
  color: #8a4a4f;
  background: rgba(96, 2, 18, 0.06);
  border: 1px solid rgba(96, 2, 18, 0.18);
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
}

.access-counter .counter-value {
  letter-spacing: 2px;
}

.access-counter .counter-value.droplet-font {
  font-size: 24px;
}

.access-counter .counter-unit {
  font-family: var(--font-1);
  color: #8a4a4f;
}

@keyframes droplet-glow {
  0% {
    text-shadow: 0 2px 4px rgba(96, 2, 18, 0.25);
    transform: rotate(-2deg) scale(1);
  }
  100% {
    text-shadow: 0 4px 8px rgba(96, 2, 18, 0.45), 0 0 12px rgba(96, 2, 18, 0.2);
    transform: rotate(-2deg) scale(1.02);
  }
}

/* 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(241, 139, 152, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.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: var(--footer-text);
  margin-top: 4rem;
  padding: 2.8rem 1rem 3rem;
  background: var(--footer-bg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 -2px 8px rgba(0,0,0,0.03);
  border-top: 1px solid rgba(0,0,0,0.04);
}

/* フッターの区切り線 */
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%, rgba(107,77,69,0.06) 12%, rgba(107,77,69,0.06) 88%, rgba(0,0,0,0) 100%);
}

/* footer 内リンク色 */
footer a {
  color: var(--footer-text);
  text-decoration: underline;
}
.footerbox {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  max-width: 970px;
  width: 93%;
}
/* footer article 背景を透明にして親のベージュを活かす */
footer article {
  background: transparent;
  min-height: 220px;
  outline: 2px solid transparent;
}

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-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: 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;
  }
}