/* ==========================================================
   サイト全体のカラー設定
   ----------------------------------------------------------
   色を変更したいときは、基本的にここだけ変更すればOK
========================================================== */

:root {

/* ---------- メインカラー ---------- */

  --color-main: #00aecc;
  /* 一番強い色：メニュー系、見出しテキスト */
  --color-dot-overlay: #c4972e59;
  /* ヘッダー画像のドットレイヤー */

  /* ---------- サブカラー ---------- */

  --color-sub: #573400;
  /* サブ（濃）：見出し装飾、p/cなど */

  --color-text: #573400; 
  /* 基本文字色 */

/* ---------- サブカラー2 ---------- */

  --color-sub2: #c4972e;
  /* サブ（薄）：リンク */
  --color-white-transparent: rgba(255, 255, 255, 0.873);
  /* a-BGの白背景 */

  /* ---------- サイト背景 ---------- */

  --color-background: #e1e1e1;
  /* 薄く落ち着いた色：ページ全体の背景 */

  /* ---------- 明るい文字 ---------- */

  --color-light: #573400; 
  /* 明るいグレー：bodyの文字など */

  --color-white: #FFFFFF;
  /* 白：白文字、メニューの区切り線など */

  --color-white-header: rgba(255, 255, 255, 0.6);

  /* ---------- 濃い文字 ---------- */

  --color-text: #333333;
  /* 通常の濃い文字 */

  --color-gray: #666666;
  /* グレー文字 */

  --color-gray-light: #A0A0A0;
  /* 薄いグレー */


  /* ---------- 半透明カラー ---------- */

  --color-overlay: rgba(0, 0, 0, 0.5);
  /* メニュー展開時の暗いオーバーレイ */

  --color-menu-shadow: rgba(0, 0, 0, 0.2);
  /* 展開メニューの影 */


  /* ---------- 特殊 ---------- */

  --color-image-placeholder: #EEEEEE;
  /* loading-imageの読み込み前背景 */

  /* ----------------------------------------------------------
     薄いグレー
     サムネイル背景など
  ---------------------------------------------------------- */
  --color-thumb-bg: #EEEEEE;

  /* ----------------------------------------------------------
     複数枚バッジの背景
  ---------------------------------------------------------- */
  --color-count-bg: rgba(0, 0, 0, 0.7);

  /* ----------------------------------------------------------
     ページ送りの現在ページ背景
  ---------------------------------------------------------- */
  --color-page-current-bg: rgba(51, 51, 51, 0.8);

  /* ----------------------------------------------------------
     サムネイルの角丸
  ---------------------------------------------------------- */
  --color-radius: 18px;

}

/* ========================================
   年齢確認ポップアップ
======================================== */

.age-check-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;

  display: flex;
  justify-content: center;
  align-items: center;

  padding: 20px;
  box-sizing: border-box;

  /* 黒い半透明レイヤー */
  background: rgba(0, 0, 0, 0.65);

  /* 背景をぼかす */
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);

  opacity: 1;
  visibility: visible;

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

/* ポップアップを閉じた状態 */
.age-check-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ウィンドウ本体 */
.age-check-window {
  width: 100%;
  max-width: 420px;

  padding: 32px 24px;
  box-sizing: border-box;

  background: #eeeeee;
  color: #222222;

  border-radius: 12px;

  text-align: center;

  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* 英字タイトル */
.age-check-window h2 {
  margin: 0 0 20px;

  color: #e30000;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
}

/* 日本語タイトル */
.age-check-heading {
  margin: 0 0 16px;
  color: #222222;
  font-size: 1.2rem;
  font-weight: bold;
}

/* 説明文 */
#age-check-description {
  margin: 0 0 26px;
  color: #222222;
  font-size: 0.95rem;
  line-height: 1.9;
}

/* ボタン配置 */
.age-check-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* ボタン共通 */
.age-check-buttons button {
  flex: 1;

  min-width: 0;
  padding: 12px 16px;

  border: none;
  border-radius: 6px;

  color: #FFFFFF;
  font-family: inherit;
  font-size: 1rem;
  font-weight: normal;

  cursor: pointer;

  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

/* はい */
#age-check-yes {
  background: #2b2b2b;
}

/* いいえ */
#age-check-no {
  background: #838383;
}

/* ホバー */
.age-check-buttons button:hover {
  opacity: 0.8;
}

/* クリック */
.age-check-buttons button:active {
  transform: scale(0.97);
}

/* スマホ */
@media (max-width: 480px) {
  .age-check-window {
    padding: 28px 20px;
  }

  .age-check-window h2 {
    font-size: 1.15rem;
  }

  #age-check-description {
    font-size: 0.88rem;
  }
}


body{
margin: 0;
padding: 0;

font-family: "Zen Antique", serif;
font-size: 1.1rem;
font-style: normal;
background: var(--color-background);
color: var(--color-light);
background-repeat: repeat;
background-attachment: fixed;
background-size: contain;
}

/* ==============================
  飾り枠
=============================== */
.frame {
  position: relative;
  width: 80%;
  max-width: 800px;
  margin: 6rem auto;
  padding: 2em 2em;
}
.frame::before {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  content: "";
  background:
    radial-gradient(circle at top left, transparent 20px, #ca4 20px, #ca4 23px, transparent 23px) left top / 23px 23px no-repeat,
    radial-gradient(circle at top right, transparent 20px, #ca4 20px, #ca4 23px, transparent 23px) right top / 23px 23px no-repeat,
    radial-gradient(circle at bottom left, transparent 20px, #ca4 20px, #ca4 23px, transparent 23px) left bottom / 23px 23px no-repeat,
    radial-gradient(circle at bottom right, transparent 20px, #ca4 20px, #ca4 23px, transparent 23px) right bottom / 23px 23px no-repeat,
    linear-gradient(90deg, transparent 20px, #ca4 23px) left top / 51% 3px no-repeat,
    linear-gradient(-90deg, transparent 20px, #ca4 23px) right top / 51% 3px no-repeat,
    linear-gradient(90deg, transparent 20px, #ca4 23px) left bottom / 51% 3px no-repeat,
    linear-gradient(-90deg, transparent 20px, #ca4 23px) right bottom / 51% 3px no-repeat,
    linear-gradient(180deg, transparent 20px, #ca4 23px) left top / 3px 51% no-repeat,
    linear-gradient(0deg, transparent 20px, #ca4 23px) left bottom / 3px 51% no-repeat,
    linear-gradient(180deg, transparent 20px, #ca4 23px) right top / 3px 51% no-repeat,
    linear-gradient(0deg, transparent 20px, #ca4 23px) right bottom / 3px 51% no-repeat;
}
.frame::after {
  position: absolute;
  top: 10px;
  right: 10px;
  bottom: 10px;
  left: 10px;
  content: "";
  box-shadow: 0 0 0 1px #ca4;
}
.frame h2 {
  text-align: center;
  color: #ca4;
}

/* ==============================
  ヘッダー
=============================== */

header {
  display: flex;
  flex-direction: column;

  justify-content: center;
  align-items: center;

  text-align: center;

  width: 100%;
  height: 100%;

  background-color: var(--color-main);
  color: var(--color-white);
}


.header-bg {
  width: 100%;
  height: 160px;

  background-image: url('https://tasteec.lsv.jp/souko/images/0.top.jpg');

  background-size: cover;
  background-position: 50% 12%;
  background-repeat: no-repeat;
}


/* ==============================
  ヘッダー画像＋ドット＋テキスト
=============================== */

.is-layer-dot {
  position: relative;
  z-index: 0;
}


/* ドット */

.is-layer-dot::after {
  position: absolute;

  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  content: "";

  display: block;

  background-color: var(--color-dot-overlay);

  background-image: radial-gradient(
    var(--color-white-header) 15%,
    transparent 0
  );

  background-size: 8px 8px;

  z-index: 1;

  pointer-events: none;
}


/* ヘッダーテキストを最前面へ */

.is-layer-dot .anim-box {
  position: relative;
  z-index: 10;
}

.is-layer-dot .header-text {
  position: relative;
  z-index: 10;
  margin: 5%;
}

.is-layer-dot .header-text-main {
  position: relative;
  z-index: 10;
  margin: 10%;
  color: var(--color-white);
  text-shadow: #3d2f0fbf 3px 0 30px;
  font-family: "Cinzel Decorative", serif;
  font-size: 4rem;
  font-weight: 400;
  font-style: normal;
}

/* ==============================
  リンク
=============================== */

a {
  color: var(--color-sub2);
  text-decoration: none;
  font-weight: 500;
}


.a-BG {
  display: inline-flex;
  justify-content: center;
  align-items: center;

  padding: 4px 10px;
  line-height: 1.4;

  background-color: var(--color-white-transparent);
  border-radius: 20px;

  box-sizing: border-box;
}

.taglink {
  color: var(--color-main);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin: 6px;
  padding: 4px 10px;
  line-height: 1.4;

  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 20px;

  box-sizing: border-box;

  transition: 0.3s ease;
}


.taglink:hover {
  filter: brightness(1.15);
  cursor: pointer;           /* マウスカーソルを指マークに */
  transform: translateY(-3px);
}

.url {
  color: var(--color-main);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin: 6px;
  padding: 4px 10px;
  line-height: 1.4;

  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 20px;

  box-sizing: border-box;

  transition: 0.3s ease;
}

.url:hover {
  filter: brightness(1.15);
  cursor: pointer;           /* マウスカーソルを指マークに */
  transform: translateY(-3px);
}

/* =================================
   画像読み込み中のプレースホルダー
   ================================= */

.onelogbox img {
  display: block;
  max-width: 100%;
  height: auto;

  background: #eeeeee;

  opacity: 0;
  transition: opacity 0.35s ease;
}

.onelogbox img.is-loaded {
  opacity: 1;
}



/* ジャンルボタン */
.g-category{
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.g-category-btn{
  display: inline-block;
  padding: 6px 18px;
  background: var(--color-sub2);
  color: var(--color-white);
  border-radius: 999px; /* 楕円形のボタン（スケッチ通り） */
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  white-space: nowrap;
}
.g-category-btn:hover{
  opacity: 0.8;
}




/*フッター*/
footer {
    display: flex;
    justify-content: center; /* 水平方向の中央寄せ */
    align-items: center;    /* 垂直方向の中央寄せ */
    height: 100px;          /* 必要に応じて高さを指定 */
}




/*
てがろぐ部分
*/


	/* ---------------------------------------------------- */
	/* ▼汎用装飾(てがろぐ専用記法で書かれた場合のみ)：文字 */
	/* ---------------------------------------------------- */
	/* B:太字(Bold) */
	.decorationB {
		font-weight: bold;		/* 太字 */
	}
	/* D:削除(Delete) */
	.decorationD {
		color: var(--color-main);	/* 文字色 */
		text-decoration-line: line-through;	/* 取り消し線 */
		text-decoration-color: var(--color-main);			/* 線の色 */
	}
	/* E:強調(Emphasis) */
	.decorationE {
		color: #c4972e;	/* 文字色 */
    font-family: "Zen Antique", serif;
		font-style: normal;
		font-weight: 700;
		font-size: 22px;
	}
	/* I:斜体(Italic) */
	.decorationI {
		font-style: italic;		/* 斜体 */
	}
	/* Q:引用(Quote) */
	.decorationQ {
		margin: 1em 0.3em 1em 1em;		/* 外側の余白(上→右→下→左) */
		padding: 0.75em 0.5em;			/* 内側の余白(上下→左右) */
		border-left: 5px double #ffffff;	/* 左端の枠線 */
		background-color: #efe;			/* 背景色 */
		font-size: 0.95em;				/* 文字サイズ */
		display: block;					/* ※Ver 2.2.0以降必須の記述 */
	}
	.decorationQ::before,
	.decorationQ::after {
		content: '';			/* 標準で付加されてしまう引用符を無効にする */
	}
	.decorationQ + br {
		display: none;	/* 引用直後の改行を無効化する */
	}
	/* S:小文字(Small) */
	.decorationS {
		font-size: 0.8em;	/* 文字サイズ */
	}
	/* T:極小文字(Tiny) */
	.decorationT {
		font-size: 0.6em;	/* 文字サイズ */
	}
	/* U:下線(Underline) */
	.decorationU {
		text-decoration-line: underline;	/* 線位置 */
		text-decoration-style: double;		/* 線種類 */
		text-decoration-color: var(--color-main);		/* 線配色 */
	}


section.tegalog {
    max-width: 100%;
    margin: 40px auto 0;
}



iframe {
    max-width: 100%;
}
.onelogbox img {
    max-width: 100%;
    height: auto;
}
.postarea form {
    background: #f6f6f6;
    padding: 10px;
}
.postarea textarea.tegalogpost {
    width: 100%;
    border: 1px solid #ccc;
    padding: 8px;
    font-family: 'メイリオ', Meiryo,'ヒラギノ丸ゴ ProN','Hiragino Maru Gothic ProN','Hiragino Kaku Gothic ProN','ヒラギノ角ゴ ProN W3',sans-serif;
    line-height: 1.6em;
}
.postarea p.line-textarea {
    margin: 0;
}
.postarea p.line-control {
    margin: 10px 0 0;
}
.postarea input.postbutton {
    background: #5babfa;
    color: white;
    border: none;
    border-radius: 3px;
    padding: 6px 20px;
    cursor: pointer;
    transition: .3s;
}
.postarea input.postbutton:hover {
    background: #7cc8ff;
}
.decoBtns input[type=button] {
    border-radius: 3px;
    border: 1px solid #cccccc;
    background: white;
    margin: 0 2px 10px;
}
span.catChecks label {
    margin-right: 5px;
    font-size: 90%;
}

/* ==============================
   全体のレイアウト
=============================== */

.parent {
  margin-left: 15%;
  margin-right: 15%;
  display: flex;
  justify-content: center;
  align-items: center;

  text-align: center;
}


  @media (max-width: 750px) {
.parent {
    margin: 5%;

    display: flex;

    justify-content: center;
    align-items: center;

    text-align: center;
  }
  }


div.onelogbox {
    max-width: 50%;
    margin: 30px auto;
    border-bottom: 2px solid #ffffff;

}
  @media (max-width: 750px) {
div.onelogbox {
    max-width: 80%;
    margin: 30px auto;
    border-bottom: 2px solid #ffffff;
}
  }



p.oneloginfo {
    text-align: right;
    font-size: 90%;
	color: #ffffff;
}

.date {
    text-align: left;
    font-family: "Zen Antique", serif;
    font-size: 26px;
	color: #ffffff;
  text-decoration: none;
  margin-bottom: 20px;
}

p.oneloginfo a.categorylink {
    display: inline-block;
    text-decoration: none;
    background-color: var(--color-white-transparent);
    color: var(--color-sub2);
    padding: 1px 6px;
    border-radius: 2px;
    margin: 0 8px;
}
p.oneloginfo a.categorylink:hover {
    border-color: var(--color-sub2);
	background: var(--color-sub2);
	color: white;
}
p.situation {
    font-size: 90%;
    color: #ccc;
}
span.situation-postno {
    border: 1px solid;
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    line-height: 1.6em;
}
p.dateseparator {
    display: none;
    font-size: 90%;
    color: white;
    background: #ccc;
    width: fit-content;
    padding: 3px 5px;
    line-height: 1.6em;
    margin: 0 auto -20px 0;
}
p.dateseparator.fixedseparator {
    display: block;
}

.comment {
    word-break: break-word;
    font-family: "Noto Sans JP", sans-serif;
}


a.readmorebutton {
    margin: 20px auto;
    text-decoration: none;
    background-color: white;
    color: var(--color-sub);
    width: 100%;
    text-align: center;
    padding: 10px;
    border-radius: 3px;
}
a.readmorebutton.readmoreclose {
  margin: 45%;
    background-color: var(--color-sub);
    color: white;
    padding: 1px 8px;
    font-size: 100%;
    width: 100%;
    text-align: center;

}
p.poweredby {
    text-align: center;
    color: var(--color-white);
    font-size: 12px;
}


a.nsfw {
    position: relative;
    overflow: hidden;
    display: block;
  }
  a.nsfw img {
    filter: blur(15px);
  }
  a.nsfw:before {
    font-family: 'Line Awesome Free';
    font-weight: 900;
    content: "\f071";
    vertical-align: middle;
    margin-right: 5px;
    color: #ffffff;
    display: block;
    width: 100%;
    height: 100%;
    background: #0000003a;
    position: absolute;
    z-index: 1;
    text-align: center;
    font-size: 50px;
    margin: auto;
    top: 0;
    padding: 20% 0 0;
  }
  @media (min-width: 768px) {
    a.nsfw:before {
      font-size: 70px;
    }
  }


/* ---------- ページ送り ---------- */

.g-pagenav{
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 20px 16px 40px;
  font-size: 14px;
}

.g-pagenav a{
  color: #333333;
  text-decoration: none;
  padding: 4px 8px;
}

.g-pagenav a:hover{
  text-decoration: underline;
}

.g-nav-list strong,
.g-nav-list .now{
  color: white;
  border-radius: 50%;
  padding: 4px 9px;
}


p.pagenums {
    text-align: center;
}
a.pagenumlink {
    display: inline-block;
    text-decoration: none;
    color: white;
    width: auto;
    height: 25px;
    line-height: 25px; 
}
a.pagenumlink.pagenumhere {
      background: rgba(51 51 51 / 80%);
      border-radius: 3px;
}

/* ============================================================
   baguetteBox.js
   日記本文中の画像をクリックしたときだけライトボックス表示
   ============================================================ */
#baguetteBox-overlay {
    z-index: 9999 !important;
}

#baguetteBox-overlay .baguetteBox-button {
    z-index: 10000 !important;
}

#baguetteBox-overlay figure {
    z-index: 9999;
}

/* 日記本文の画像は今まで通り本文中に表示する */
.onelogbox .comment img {
  max-width: 100%; /* 画面幅が狭い場合は縮小 */
  width: 100%;    /* 基本の最大横幅を指定 */
  height: auto;    /* 縦横比を維持 */
  cursor: zoom-in;
  margin-top: 10px;
  margin-bottom: 10px;
}

/* ==============================
   ホバー・明度
=============================== */

.hover-bright {
  transition: 0.3s ease;
}


.hover-bright:hover {
  filter: brightness(1.15);
  cursor: pointer;           /* マウスカーソルを指マークに */
  transform: translateY(-3px);
}

/* ==========================================================================================
  全スキン共通
=========================================================================================== */
/* ==============================
  テキスト系
=============================== */
p {
  color: var(--color-sub);
  text-decoration: none;

  font-weight: bold;
  font-size: 18px;
}


c {
  color: var(--color-sub);

  font-weight: bold;
  font-size: 18px;

  padding: 3px;
}

.text {
  padding-bottom: 3px;

  color: var(--color-main);

  background-image: linear-gradient(
    var(--color-main),
    var(--color-main)
  );

  background-repeat: no-repeat;
  background-position: bottom right;
  background-size: 0 1.5px;

  transition: background-size 0.2s;
}


.text:hover {
  background-position: bottom left;
  background-size: 100% 2px;
}

.custom-underline {
  text-decoration: underline;
  text-decoration-style: dotted; /* 下線のスタイルを点線（ドット）に変更 */
  text-decoration-thickness: 2px; /* 下線の太さを2ピクセルに変更 */
}

/* ==============================
  ページトップ・ページボトム
=============================== */

.to-pagetop {
  position: fixed;
  bottom: 100px;
  right: 20px;

  width: 25px;

  text-align: center;
  color: var(--color-white);

  opacity: 0;
  transition: opacity 400ms ease;

  cursor: pointer;
  z-index: 2;
}

.to-pagetop.is-shown {
  opacity: 1;
}


.to-pagebottom {
  position: fixed;
  bottom: 70px;
  right: 20px;

  width: 25px;

  text-align: center;
  color: var(--color-white);

  opacity: 0;
  transition: opacity 400ms ease;

  cursor: pointer;
  z-index: 2;
}

.to-pagebottom.is-shown {
  opacity: 1;
}

/*
==========================================================================================
  下部メニューバー
==========================================================================================
*/

#sp-fixed-menu {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;

  width: 100%;
  height: 60px;

  padding: 0;
  margin: 0;

  background: var(--color-main);
  opacity: 0.95;

  z-index: 9999;

  box-sizing: border-box;

  transition: transform 0.4s ease;
}


/* ==============================
   メニューバー
============================== */

#sp-fixed-menu > ul {
  display: grid;

  grid-template-columns: repeat(6, 1fr);

  width: 100%;
  height: 60px;

  padding: 0;
  margin: 0;

  list-style: none;

  box-sizing: border-box;
}


/* ==============================
   6個のメニュー
============================== */

#sp-fixed-menu > ul > li {
  width: 100%;
  height: 60px;

  padding: 0;
  margin: 0;

  display: flex;

  justify-content: center;
  align-items: center;

  box-sizing: border-box;

  border-right: 1px solid var(--color-white);

  min-width: 0;
  transition: background-color 0.3s ease;

}

#sp-fixed-menu > ul > li:hover {
  background-color: rgba(255, 255, 255, 0.3);  
  cursor: pointer;           /* マウスカーソルを指マークに */
}

/* ==============================
   通常メニュー
============================== */

#sp-fixed-menu > ul > li > a {
  display: flex;

  justify-content: center;
  align-items: center;

  width: 100%;
  height: 60px;

  padding: 0;

  box-sizing: border-box;

  color: var(--color-white);

  text-align: center;

  white-space: nowrap;

  font-size: 14px;
}


/* ==============================
   ハンバーガーのマス
============================== */

#sp-fixed-menu > ul > li:last-child {
  width: 100%;
  height: 60px;

  padding: 0;
  margin: 0;

  display: flex;

  justify-content: center;
  align-items: center;

  box-sizing: border-box;

  border-right: none;

  min-width: 0;

  overflow: visible;
}


/* ==============================
   ハンバーガーボタン
============================== */

.menu-icon {
  position: relative;
  display: block;

  width: 100%;
  height: 60px;

  padding: 0;
  margin: 0;

  box-sizing: border-box;

  cursor: pointer;
  overflow: visible;
  z-index: 10004;
}


/* ==============================
   3本線
============================== */

.menu-icon span {
  position: absolute;

  left: 50%;

  display: block;

  width: 24px;
  height: 4px;

  margin: 0;
  padding: 0;

  background: var(--color-white);
  border-radius: 2px;

  transform-origin: center center;

  transition:
    top 0.3s ease,
    transform 0.3s ease,
    opacity 0.3s ease;

  box-sizing: border-box;
}


/* 上 */

.menu-icon span:nth-child(1) {
  top: 21px;
  transform: translateX(-50%);
}


/* 中 */

.menu-icon span:nth-child(2) {
  top: 28px;
  transform: translateX(-50%);
}


/* 下 */

.menu-icon span:nth-child(3) {
  top: 35px;
  transform: translateX(-50%);
}


/* ==============================
   開いたとき → ×
============================== */

#menu-toggle:checked ~ ul .menu-icon span:nth-child(1) {
  top: 28px;
  transform: translateX(-50%) rotate(45deg);
}

#menu-toggle:checked ~ ul .menu-icon span:nth-child(2) {
  opacity: 0;
}

#menu-toggle:checked ~ ul .menu-icon span:nth-child(3) {
  top: 28px;
  transform: translateX(-50%) rotate(-45deg);
}


/* ==============================
   オーバーレイ
============================== */

.overlay {
  position: fixed;

  inset: 0;

  background: var(--color-overlay);

  opacity: 0;

  pointer-events: none;

  transition: opacity 0.4s ease;

  z-index: 10001;
}


#menu-toggle:checked ~ .overlay {
  opacity: 1;

  pointer-events: auto;
}


/* ==============================
   展開メニュー
============================== */

.menu {
  position: fixed;

  left: 0;
  bottom: -320px;

  width: 100%;
  height: 320px;

  background: var(--color-main);
  color: var(--color-gray-light);

  box-shadow:
    2px 0 8px var(--color-menu-shadow);

  transition: bottom 0.4s ease;

  z-index: 10002;

  overflow-y: auto;

  box-sizing: border-box;
}


/* メニューを開いた状態 */

#menu-toggle:checked ~ .menu {
  bottom: 0;
}


/* ==============================
   展開メニューの中身
=============================== */

.menu ul {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 10px 10px;

  list-style: none;

  padding: 30px;

  margin: 0;

  width: 100%;

  box-sizing: border-box;

  text-align: center;
}


.menu li {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s;
}

.menu li:hover {
  background-color: rgba(255, 255, 255, 0.3);  
  cursor: pointer;           /* マウスカーソルを指マークに */
}

.menu a {
  display: flex;

  justify-content: center;
  align-items: center;

  flex-direction: column;

  width: 100%;

  min-height: 40px;

  padding: 8px;

  box-sizing: border-box;

  text-decoration: none;

  color: var(--color-white);

  font-size: 1.2rem;

  text-align: center;

  transition: color 0.3s;
}




/* ==============================
   スクロールで下部メニューを隠す
============================== */

#sp-fixed-menu.menu-scroll-hide {
  transform: translateY(100%);
}


/*
==========================================================================================
  メニュー系ここまで
==========================================================================================
*/