/* ============================================================
   てがろぐ ギャラリーモード用スキン CSS
   色はすべて :root の変数にまとめてあります。
   「▼色を変更」の行の数値(カラーコード)だけ書き換えれば
   全体の配色が変わります。
============================================================ */
/* ============================================================
   ▼▼▼ カラー・デザイン設定 ▼▼▼
   ここだけ変更すれば、ギャラリーの色をまとめて変更できます
============================================================ */

:root {

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

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

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

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

/* ---------- サブカラー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-border: #AAAAAA;
  /* detailsなどの枠線 */

  --color-border-light: #DDDDDD;
  /* 薄い枠線 */


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

  --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;


  /* ==========================================================
     ▼ レイアウト設定
     色ではないので、必要なときだけ変更
  ========================================================== */

  /* グリッドの列数 */
  --color-columns: 3;

  /* サムネイル同士の余白 */
  --color-gap: 16px;
}

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

.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-weight: 400;
  font-style: normal;

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

  background-repeat: repeat;
  background-attachment: fixed;
  background-size: contain;
}


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

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) 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;
}


/* アニメーション */

.g-grid .g-thumb a {
    display: inline-block;
}

.g-grid .g-thumb a:hover img {
    animation: poyo .3s ease;
}

@keyframes poyo {
    0%, 100% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.05);
    }

}

/* ============================================================
   サムネイル
============================================================ */
.g-thumb{
  position: relative;
  background: #eeeeee;
}

.g-thumb img{
  display: block;
  width: 100%;
  height: auto;

  opacity: 0;
  visibility: hidden;

  transition:
    opacity 0.35s ease,
    visibility 0s linear 0.35s;
}

.g-thumb img.is-loaded{
  opacity: 1;
  visibility: visible;

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

.to-pagetop {
  position: fixed;
  bottom: 58px;
  right: 20px;
  width: 25px;
  text-align: center;
  color: #fff;
  opacity: 0;
  transition: opacity 400ms ease;
  cursor: pointer;
  z-index: 2;
}

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

.to-pagebottom {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 25px;
  text-align: center;
  color: #fff;
  opacity: 0;
  transition: opacity 400ms ease;
  cursor: pointer;
  z-index: 2;
  }

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


/* ============================================================
   ジャンルボタン
============================================================ */

.g-genres {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}


.g-genre-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-genre-btn:hover {
  opacity: 0.8;
}


.parent {
  margin-left: 10%;
  margin-right: 10%;
  margin-top: 20px;
}

@media (max-width: 750px) {
.parent {
  margin-left: 2%;
  margin-right: 2%;
  margin-top: 20px;
}
}

/* ---------- 画像グリッド ---------- */

.g-grid{
  display: grid;
  grid-template-columns: repeat(var(--color-columns), 1fr);
  gap: var(--color-gap);
  padding: 0 16px 16px;
  margin-top: 20px;
}

/* 画像のない投稿はギャラリーから除外 */
.g-item:not(:has(.g-thumb img)){
  display: none !important;
}

.g-item{
  width: 100%;
  min-width: 0;
}

.g-thumb{
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;      /* 正方形 */
  overflow: hidden;
  border-radius: var(--color-radius);
  background: var(--color-thumb-bg);
  <a href="[[PERMAURL:PURE]]&amp;skin=[[SKINNAME]]">
}

/* [[ONEPICT:1]] が出力するimg要素（figureやaで囲まれる場合にも効くよう広めに指定） */
.g-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
/* [[ONEPICT:1]] がa要素やfigure要素で囲まれて出力された場合の保険 */
.g-thumb a,
.g-thumb figure{
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
}

/* ============================================================
   複数枚バッジ
============================================================ */

.g-count {
  position: absolute;

  left: 10px;
  top: 10px;

  background: var(--color-count-bg);
  color: var(--color-sub2);

  font-size: 30px;
  line-height: 1;

  padding: 6px 6px;

  border-radius: 10px;

  pointer-events: none;
}

/* 2枚目以降の画像リンクはサムネイル上で場所をとらないように消す */
.g-thumb a:nth-of-type(n+2) {
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* 1枚目の画像表示 */
.g-thumb a:first-of-type img {
  width: 100%;
  height: 100%;
  display: block;
}

/* アニメーションを滑らかにする設定 */
#baguetteBox-overlay .baguetteBox-button,
#baguetteBox-overlay figure figcaption {
  transition: opacity 0.3s ease;
  opacity: 1;
}

/* タップ時に非表示にする指定 */
#baguetteBox-overlay.is-hidden .baguetteBox-button,
#baguetteBox-overlay.is-hidden figure figcaption {
  opacity: 0;
  pointer-events: none; /* 非表示の時はボタンを押せないようにする */
}

/* baguetteBoxのキャプション領域（画面下部） */
#baguetteBox-overlay figure figcaption {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 20px;
  background: rgba(0, 0, 0, 0.7);
}

/* キャプション内のレイアウト（中央＋右側） */
.bb-caption-inner {
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  max-width: 800px;
  min-height: 18px;
  margin: 0 auto;
  padding: 0 120px;
  font-size: 14px;
  color: #fff;
}

/* 中央：複数枚投稿の枚数カウント */
.bb-counter {
  display: block;
  font-weight: bold;
  letter-spacing: 0.05em;
  text-align: center;
  white-space: nowrap;
}

/* 右側：投稿日時リンク */
.bb-date-link {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #ddd;
  text-decoration: underline;
  white-space: nowrap;
  cursor: pointer;
  z-index: 5;
}

.bb-date-link:hover {
  color: #fff;
}

/* スマホなど画面幅が狭い場合の調整 */
@media (max-width: 750px) {
  .bb-caption-inner {
    padding: 0 90px;
    font-size: 12px;
  }

  .bb-date-link {
    right: 0;
  }
}

/* ============================================================
   投稿情報
============================================================ */

.g-meta {
  padding: 7px 4px 12px;

  text-align: left;

  line-height: 1.45;
}


.g-date {
  font-size: 14px;

  margin-bottom: 3px;

  opacity: 0.65;
}


.g-date a {
  color: inherit;
  text-decoration: none;
}


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


/* ============================================================
   ページ送り
============================================================ */

.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: var(--color-text);

  text-decoration: none;

  padding: 4px 8px;
}


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


.g-nav-list strong,
.g-nav-list .now {
  color: var(--color-white);

  border-radius: 50%;

  padding: 4px 9px;
}


p.pagenums {
  text-align: center;
}


a.pagenumlink {
  display: inline-block;

  text-decoration: none;

  color: var(--color-white);

  width: auto;
  height: 25px;

  line-height: 25px;
}


a.pagenumlink.pagenumhere {
  background: var(--color-page-current-bg);

  border-radius: 3px;
}


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

/* ---------- レスポンシブ（スマホでは2列に） ---------- */
@media (max-width: 750px){
  :root{ --color-columns: 2; }
}

/* ==========================================================================================
  全スキン共通
=========================================================================================== */
/* ==============================
  テキスト系
=============================== */
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-sub2);

  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%);
}


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