/* ============================================================
   てがろぐ ギャラリーモード用スキン CSS
   Laymic版
============================================================ */


/* ============================================================
   ▼▼▼ カラー・デザイン設定 ▼▼▼
   ここだけ変更すれば、ギャラリーの色をまとめて変更できます
============================================================ */

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

/* ==============================
  全体
=============================== */

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 0.3s ease;
}


@keyframes poyo {

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

  40% {
    transform: scale(1.05);
  }

}


/* ============================================================
   サムネイル画像読み込み
============================================================ */

.g-thumb {
  position: relative;
  background: var(--color-thumb-bg);
}


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


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

.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 {
  width: 100%;
  min-width: 0;
}


/* 画像がない投稿はギャラリーから除外 */

.g-item:not(:has(.g-thumb img)) {
  display: none !important;
}


/* ============================================================
   サムネイル
============================================================ */

.g-thumb {
  position: relative;

  width: 100%;
  aspect-ratio: 1 / 1;

  overflow: hidden;

  border-radius: var(--color-radius);

  background: var(--color-thumb-bg);

  cursor: pointer;
}


/* 2枚目以降もLaymicが読むためDOMには残す */

.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 {
  display: block;

  width: 100%;
  height: 100%;
}


.g-thumb a:first-of-type img,
.g-thumb > img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;
  object-position: center center;
}


/* figure等が画像を囲む場合 */

.g-thumb figure {
  display: block;

  width: 100%;
  height: 100%;

  margin: 0;
}


.g-thumb figure img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center center;
}


/* Laymic起動対象になったサムネイル */

.g-thumb.laymic-thumbnail-opener {
  -webkit-tap-highlight-color: transparent;
}


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

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


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

.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-title {
  font-size: 18px;
  font-weight: bold;

  line-height: 1.4;
  overflow: hidden;

  text-overflow: ellipsis;
  white-space: nowrap;

  color: var(--color-white);

}


.g-description {
  margin-top: 0.25rem;

  font-size: 0.85rem;
  line-height: 1.4;

  display: -webkit-box;

  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;

  line-clamp: 3;

  overflow: hidden;
}


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

.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;          /* 必要に応じて高さを指定 */
}

/* ============================================================
   Laymicとの干渉防止
============================================================ */

.laymic_root {
  z-index: 99999;
}


/* ============================================================
   レスポンシブ
============================================================ */

@media (max-width: 750px) {

  :root {
    --color-columns: 2;
  }

  .g-meta {
    padding-left: 2px;
    padding-right: 2px;
  }

  .g-title {
    font-size: 14px;
  }

  .g-description {
    font-size: 12px;
  }

}


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


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