/* 重ね掛け背景 */

:root {
  --active: rgba(253, 253, 0, 0.8);
  --creative: rgba(204, 241, 255, 0.8);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --theme-light: rgba(190, 208, 183, 0.9);
  --theme-green: rgba(16, 124, 16, 0.6);
  --theme-dark: rgba(38, 72, 38, 0.7);
  --accent-pink: rgba(255, 181, 238, 0.8);
  --accent-dpink: rgba(179, 0, 85, 0.7);
  --text-light: rgba(230, 232, 235, 1.0);
  --card-bg: rgba(28, 31, 28, 0.9);
  --card-bl: rgba(0, 14, 68, 0.9);
  --font-sans: "Noto Sans JP",
               "Hiragino Sans",
               "Hiragino Kaku Gothic ProN",
               "Yu Gothic",
               "Meiryo",
               "MS PGothic",
               sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 読みやすさ優先 疲れ目＆老眼対策 */
html {
  font-size: 18px; /* 基準を大きめに */
}

body {
  font-size: 1rem; /* 18px */
  line-height: 1.7; /* ゆったり読みやすい */
}

main {
  margin-bottom: 5%;
}

h1 {
  font-size: 2.4rem; /* 約43px */
  line-height: 1.3;
}

h2 {
  font-size: 2rem; /* 約36px */
  line-height: 1.4;
  border-left: 60px solid var(--card-bl);
}

h3 {
  font-size: 1.6rem; /* 約29px */
  border-left: 40px solid var(--card-bl);
}

h4 {
  font-size: 1.3rem; /* 約23px */
  border-left: 20px solid var(--card-bl);
}

h5 {
  font-size: 1.1rem; /* 約20px */
  border-left: 12px solid var(--card-bl);
}

h6 {
  font-size: 1rem; /* 18px */
  border-left: 8px solid var(--card-bl);
}

h2,h3,h4,h5,h6 {
  background: var(--accent-pink);
  padding: 4px 8px;
  border-radius: 2%;
  margin: 0 0 12px;
  color: var(--card-bl);
  font-weight: bolder;
}
p,.tx {
  background: var(--bg-glass);
  padding: 4px 8px;
  border-radius: 2%;
  margin-top: 12px;
  color: var(--text-light);
}


rt {
  font-size: 0.8rem; /* 14px */
  padding: 4px 0 0;
}

/* 閑話休題 余白 */
.break {
  display: block;      /* ブロック要素化 */
  margin: 10% 0;     /* 余白を追加 */
}


/* 本体 */
body {
  font-family: var(--font-sans);
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  background: linear-gradient(0deg,#135297 40%, #0164be);
  color: var(--text-light);
  display: grid;
  grid-template-areas:
    "header header"
    "sidemenu main"
    "footer footer";
  grid-template-columns: 240px 1fr;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
}

/* Header */
.header {
  grid-area: header;
  /* background: var(--accent-pink); */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
}
.logo {
  color: var(--active);
  font-weight: 900;
}
a.logo {
  color: var(--active);
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}
a.logo:hover {
  color: var(--theme-light);
}

a {
  word-break: break-all;

}

.navi ul {
  display: flex;
  gap: 16px;
}
.navi a {
  background: var(--theme-green);
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid var(--active);
  margin-bottom: 8px;
  transition: background 0.2s;
}
.navi a:hover {
  color: var(--text-light);
  background: var(--theme-dark);
  border: 1px solid var(--active);
}

li {
  list-style: none;
}

p {
  margin: 16px 0;
  text-align: left;
}

b {
  font-weight: 900;
}

.num { /* 数値の場合、右揃え */
  text-align: right;
}


.hot::before { /* idxアイキャッチ */
  font: bolder 16px monospace;
  content: "UPDATE";
  color: var(--card-bg);
  background-color: var(--accent-pink);
  font-weight: bolder;
  text-decoration: none;
  text-align: center;
  padding: 8px 12px;
  margin: 0;
  border-radius: 2px;
  border-top: 2px solid var(--accent-pink);
  border-left: 2px solid var(--accent-pink);
  border-rught: 2px solid var(--accent-pink);
  display: block;
}

strong {
  display: block;
  font-weight: bold;
  color: var(--accent-pink);
  background: var(--card-bg);
  padding: 8px 12px;
  border-radius: 6px;
  margin: 6px 0;
}

small {
  display: block;
  font-size: 0.85rem;
  color: var(--theme-light);
  background: #2a2a2a;
  padding: 6px 10px;
  margin: 4px 0;
  border-radius: 4px;
}

.center {
  text-align: center;
}

.tx { /* 読ませる文章はすべて左揃え pタグ省略用 */
  text-align: left;
  padding: 12px;
}
.notes,a.notes {
  font-size: 0.8rem;
  color: #ccc;
  padding: 1rem;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}


.highlight {
 background-color: #ffa;
  color: #f00;
 border-radius: 8px;
 padding: 2px;
}

.point {
  font-size: 1.1rem;
  background-color: var(--card-bl);
  color: var(--accent-pink);
  padding: 1rem;
  border-radius: 2px;
  margin: 20px 0 4px;
  font-weight: bolder;
  border-left: 24px solid var(--active);
}

.catch {
  font-size: 1.2rem;
  background-color: var(--card-bg);
  color: var(--active);
  padding: 0.8rem;
  border-radius: 2px;
  margin-top: 12px;
  font-weight: bolder;
  border-left: 32px solid var(--active);
}

.tag,code,textarea {
    background-color: var(--card-bg);
    color: var(--creative);
    padding: 2px 8px;
    margin: 2px 0 0;
    border-radius: 2px;
    font-size: 0.7rem;
    border-top: 1px solid var(--accent-pink);
}
.tag {
  width: 100%;
}


code {
  display: block;
  white-space: pre;
  overflow-x: scroll;
  overflow-y: scroll;
  scrollbar-gutter: stable;l
  max-height: 280px;
  background: #111; 
  color: #0f0;
  padding: 1rem;
  border-radius: 8px;
}

code::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

code::-webkit-scrollbar-track {
  background: #222;
  border-radius: 8px;
}

code::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #00ff66, #008844);
  border-radius: 8px;
  border: 2px solid #111;
}

code::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(36deg, #33ff99, #000f07);
}


/* Side menu (aside) */
.sidemenu {
  grid-area: sidemenu;
  background: rgba(50, 73, 122,0.4);
  padding: 6px 8px 8px;
  align-self: start;
  height: auto;
  border-radius: 80%;
  box-shadow: 0 0 60px rgba(39, 21, 49,0.8);
}

.sidemenu ul {
  display: grid;
  gap: 8px;
}
.sidemenu a {
  color: var(--text-light);
  background-color: var(--theme-green);
  text-decoration: none;
  padding: 4px 6px;
  border-radius: 8px;
  display: block;
  transition: background 0.3s ease, color 0.3s ease;
}
.sidemenu a:hover {
  color: var(--text-light);
  background: var(--theme-dark);
}

a.submit {
  color: var(--text-light);
  background-color: var(--theme-green);
  text-decoration: none;
  text-align: center;
  padding: 8px 12px;
  border-radius: 6px;
  display: block;
  transition: background 0.3s ease, color 0.3s ease;
}
a.submit:hover {
  background-color: var(--accent-pink);
  color: var(--card-bg);
}

/* サイドメニューを開くと広告を無効化 */
.side_pr {
  transition: opacity 0.3s ease;
}

.side_pr.hidden {
  opacity: 0;
  pointer-events: none; /* クリックも無効化 */
}

/* スクロール量によって変化 */
.sidemenu.fixed-bottom {
  position: fixed;
  border-radius: 2px;
  bottom: 0;
  left: 0;
  width: 240px;
  max-height: 100vh;
  overflow-y: auto;
  z-index: 998;
  background: rgba(50, 73, 122, 0.9);
}

/* スクロールバー全体 */
.sidemenu.fixed-bottom::-webkit-scrollbar {
  width: 18px; /* スマホでも操作しやすい太さ */
}

/* トラック部分 */
.sidemenu.fixed-bottom::-webkit-scrollbar-track {
  background: rgba(0, 20, 0, 0.8);
  border-radius: 12px;
  box-shadow: inset 0 0 8px rgba(0, 255, 128, 0.3);
}

/* つまみ部分 */
.sidemenu.fixed-bottom::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #00ff80, #00cc44);
  border-radius: 12px;
  border: 3px solid rgba(0, 0, 0, 0.8);
  min-height: 40px;
  box-shadow: 0 0 10px #00ff80, 0 0 20px #00ff80; /* ネオン発光 */
  transition: all 0.3s ease;
}

/* ホバー時（PC用） */
.sidemenu.fixed-bottom::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #00ffcc, #00ff80);
  box-shadow: 0 0 15px #00ffcc, 0 0 30px #00ffcc;
}

/* Firefox対応 */
.sidemenu.fixed-bottom {
  scrollbar-width: auto;
  scrollbar-color: #00ff80 rgba(0, 20, 0, 0.8);
}



/* affiliate Links */
.banners {
  display: flex;
  justify-content: center;
  gap: 0.1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  text-align: center;
  box-shadow: -1px 2px 20px rgba(0, 0, 0,0.6);
}
.banners a {
  text-decoration: none;
  font: bold 14px monospace;
  background-color: var(--theme-green);
  color: white;
  width: 100%;
  border-radius: 6px;
  padding: 12px 4px;
  margin: 2px 0px;
  cursor: pointer;
  border-bottom: 1px solid #0080FF;
  transition: background 0.3s ease, color 0.3s ease;
}
.banners a:hover {
  background-color: var(--accent-pink);
  color: black;
}
.banners a::before {
  font: bolder 8px monospace;
  content: "PR";
  margin: 0 2px 0 0;
  color:black;
  padding: 2px;
  border-radius: 8px;
}

/* リンク */
a.anker,
summary,
a.link,
.pr a {
  display: block;
  margin-top: 4px;
  background: var(--theme-green);
  color: var(--text-light);
  text-decoration: none;
  text-align: center;
  font-weight: bold;
  padding: 4px;
  border-radius: 8px;
  border: 1px solid var(--creative);
  transition: background 0.3s ease, color 0.3s ease;
}

a.link:hover,
.pr a:hover,
a.anker:hover,summary:hover {
  background-color: var(--theme-dark);
  color: var(--theme-light);
  border: 1px solid var(--active);
}

.anker.title {
  font-size: 1.2rem;
  padding: 8px;
}

/* 外部リンク */
a.link::before,
.pr a::before {
  font-size: 8px;
  content: "PR🔗";
  margin: 2px;
  color:black;
  padding: 4px;
  border-radius: 50%px;
}



/* 操作ボタン */
.controls {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.controls button {
  background: #00ff88;
  color: #0f0f0f;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
  transition: background 0.2s;
}
.controls button:hover {
  background: #00cc66;
}

/* 区切り線 */
hr {
  border: none;
  height: 2px;
  background: linear-gradient(to right, transparent, #c2d5f3, transparent);
  margin: 2rem 0;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}
hr,.space:hover {
  opacity: 1;
}


/* プレビューキャンバス */
canvas {
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(0,255,128,0.3);
  margin: 8px 0 4px;
  width: 280px;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* 模様 */
canvas#wallpaper {
  max-width: 100%;
  width: 280px;
  z-index: 999;
  height: auto;
  border-radius: 2px;
  outline: 1px solid #1b2228;
  background: #92b0c2 url("bg/bg_creative.webp") repeat;
}

/* 表計算表示 */

 table {
     width: 100%;
     border-collapse: collapse;
 }

 th, td {
     border: 1px solid var(--theme-dark);
     padding: 2px;
     text-align: left;
 }
 
td.center {
     text-align: center;
 }
 
 th {
     background-color: var(--text-light);
     color: var(--card-bg);
     vertical-align: bottom;
 }

th a {
  text-decoration: none;
  color: var(--card-bg);
  background-color: var(--theme-green);
}

th a:hover {
  color: var(--card-bg);
  background-color: var(--theme-dark);
}



 tr:nth-child(even) {
     background-color: var(--card-bg);
 }

 tr:hover {
     background-color: var(--accent-pink);
     color: var(--card-bg);
 }



/* フォーム */
form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  background: rgba(0, 5, 57,0.2);
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(0,255,128,0.2);
}

form.kcal {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 20px;
  color: var(--text-light);
  text-decoration: none;

}


label {
  display: block;
  font-size: 0.85em;
  margin: 20px 0 6px;
  padding: 0 4px;
  color: #9fe89f;
  text-align: right;
}
input, select {
  width: 99%;
  padding: 8px 10px;
  font-size: 1em;
  border: 1px solid #02c11b;
  border-radius: 8px;
  background: var(--theme-dark);
  color: #eeeeee;
  transition: all 0.2s ease;
}
input[type="color"] {
  padding: 16px;
}
input:focus, select:focus {
  outline: 2px solid #00ff88;
}

/* スイッチ */
.light-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 32px;
}
.light-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #444;
  transition: 0.4s;
  border-radius: 32px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 24px;
  width: 24px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}
.light-switch input:checked + .slider {
  background-color: #00ff88;
}
.light-switch input:checked + .slider:before {
  transform: translateX(28px);
}

/* Main content */
.main {
  grid-area: main;
  max-width: 1280px;
  padding: 24px;
  display: grid;
  align-self: start;   /* 同じく上寄せ */
  gap: 20px;
  /*grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));*/
  flex: 1;
  grid-template-columns: repeat(2, 1fr);
}

.main4 {
  grid-area: main4;
  padding: 4px;
  display: grid;
  align-self: start;   /* 同じく上寄せ */
  gap: 4px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  max-width: calc(180px * 4 + 8px * 4);
  margin: 0 auto;
}

/* menu */
ol.swimmenu {
  margin: 10px 0;
  padding: 16px;
  border-radius: 16px;
  box-shadow: 0 40px 120px rgba(101, 124, 254,0.6);

}
    
button.save  {
  background: var(--theme-green);
  color: var(--text-light);
  font-weight: bold;
  border: none;
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
  transition: background 0.2s;
}
button.save:hover {
  background: var(--theme-dark);
  color: var(--active);
}

/* ラベルをボタン風に */
label input.save {
  display: none;
}

label.save-option {
  display: inline-block;
  background: var(--theme-green);
  color: var(--text-light);
  font-weight: bold;
  border: none;
  border-radius: 8px;
  padding: 12px 16px; 
  cursor: pointer;
  transition: background 0.2s;
  font-size: 1rem;
  text-align: center;
}

label.save-option input.save:checked + span {
  color: var(--active);
}

label.save-option:hover,
label.save-option:focus-within {
  background: var(--theme-dark);
  color: var(--active);
}



/* main内部 */
.card {
 /* display: flex;
  flex-wrap: wrap;*/
  color: var(--text-light);
  background-color: rgba(0,0,0,0.4);
  padding: 16px;
  border-radius: 50%;
  box-shadow: 0 40px 120px rgba(0,0,0,0.4);
}

.card.accent,.step {
  text-align: left;
  padding: 1rem;
  box-shadow: 10px 20px 40px rgba(0,0,0,0.4);
}

.card.pickup {
  background: var(--bg-glass);
}


/* card内画像サイズ */
.card img {
  width: 99%;
  /*max-width: 300px;
  height: auto;*/
  border-radius: 2px;
  overflow: hidden;
}

img.full {
  width: 100%;
  max-width: 100%;
}

img.sam {
  width: auto;
  height: 64px;
}

.block {
  grid-column: 1 / -1;
  display: block;
  width: 100%;
  margin-top: 8px;
  color: var(--text-light);
  background-color: rgba(0,0,0,0.4);
  padding: 16px;
  border-radius: 50%;
  box-shadow: 0 40px 120px rgba(0,0,0,0.4);
  text-decoration: none;
}

.pr {
  grid-column: 1 / -1;
  display: block;
  width: 100%;
  margin-top: 8px;
  text-decoration: none;
}

/* カード内を横並び */
.row {
  flex: 1;
  display: grid;
  gap: 8px;
  padding: 8px 12px;
  margin: 16px 0;
  grid-template-columns: repeat(2, 1fr);
  border-radius: 50%;
  box-shadow: 0 -20px 40px rgba(2, 0, 91, 0.4),
              inset 0 -20px 60px rgba(58, 56, 152, 0.3);
  background: var(--card-bg);
}


/* card内にリスト表示 */
.lilist {
  margin: 8px 0 12px;
  padding-left: 0;
}


ul.lilist{
  color: var(--accent-pink);
}
.lilist li {
  list-style: none; 
  position: relative;
  margin: 8px 0;
  padding: 4px 12px 6px 36px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-light);
  border: 1px solid rgba(88, 1, 3, 0.2);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.06s ease;
}

.lilist ol,
.lilist ul {
  margin: 8px 0 0 8px;
  padding-left: 0;
  border-left: 2px solid rgba(255, 79, 163, 0.25);
}

.lilist ol li,
.lilist ul li {
  margin: 6px 0;
  background: rgba(255, 255, 255, 0.03);
}

.lilist.compact li {
  margin: 6px 0;
  padding: 8px 10px 8px 32px;
  border-radius: 6px;
}

.lilist .label {
  color: var(--theme-light);
  font-weight: 700;
}

.lilist .note {
  color: var(--theme-light);
  font-size: 0.9rem;
  opacity: 0.9;
}



/* Profile card */
.profile p {
  line-height: 1.6;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

/* Accordion info grid */
.info-grid {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}
.info-item {
  background-color: var(--card-bg);
  border: 1px solid var(--theme-light);
  border-radius: 6px;
  box-shadow: -1px 2px 20px rgba(0, 0, 0,0.6);
  overflow: hidden;
}
.info-item p{
  padding: 8px;
  font-size: 0.8rem;
  color: #aca;
}
.info-toggle {
  width: 100%;
  text-align: left;
  padding: 1rem;
  font-size: 1rem;
  background-color: var(--theme-green);
  color: var(--text-light);
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border: none;
}
.info-toggle:hover {
  background-color: rgba(16, 124, 16, 0.6);
}

.info-toggle h2 {
  color: var(--text-light);
}

.info-content {
  padding: 0.5rem;
  display: none;
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}
.info-item.active .info-content {
  display: block;
}




/* サイドバー */
.sidebar {
  background: var(--theme-green);
  color: var(--text-light);
  border-left: 6px solid var(--accent-pink);
}

/* Footer */
.footer {
  grid-area: footer;
  text-align: center;
  position: fixed;
  border-radius: 8px;
  border: 1px solid var(--accent-pink);
  bottom: 0;
  left: 10%;
  width: 80%;
  max-height: auto;
  overflow-y: auto;
  z-index: 1000;
  background: rgba(50, 73, 122, 0.8);
}

.footer-idx, .footer-link {
  display: block; 
  background: var(--theme-green);
  color: var(--text-light);
  font-size: 12px;
  text-decoration: none;
  padding: 2px;
  transition: background 0.3s ease, color 0.3s ease;
}

.footer-idx,.footer-link:hover {
  background: var(--theme-dark);
  color: var(--active);
}

.footer-link::before {
  font-size: 16px;
  content: "⏎ SiteTop : ";
  margin: 2px;
  color:var(--active);
  padding: 2px;
  border-radius: 50%px;
}




/* 背景透過演出 */
.psd {
  background-image:url("bg/bg_creative.webp");
  background-repeat:repeat;
}


/* イメージビュアー */

.viewer {
  cursor: pointer;
  border: 4px solid var(--theme-green);
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0, 255, 128,0.3);
}

    .overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgb(0,0,0,0.9);
      justify-content: center;
      align-items: center;
      z-index: 9989;
    }

    .overlay img {
      max-width: 90%;
      max-height: 90%;
      cursor: pointer;
    }

    .overlay.show {
      display: flex;
    }


/* Responsive */
@media (max-width: 960px) {
  body {
    grid-template-areas:
      "header"
      "main"
      "sidemenu"
      "footer";
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto auto;
  }

  .header {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }

  .navi ul {
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 16px;
  }

  .sidemenu {
    padding: 4px;
    text-align: center;
  }

.sidemenu.fixed-bottom {
  position: fixed;
  border-radius: 8px;
  bottom: 15%;
  left: 10%;
  width: 80%;
  max-height: 30vh;
  overflow-y: auto;
  z-index: 998;
  background: rgba(50, 73, 122, 0.8);
}

  .main,.main4,.row {
    grid-template-columns: 1fr;
    padding: 2px;
  }

aside,main {
  margin-bottom: 50%;
}
  .card {
    padding: 4px;
  }

.card img {
    text-align: center;
}


.point,.catch {
  padding: 8px;
  border-radius: 2px;
  margin: 4px 0;
  font-weight: bolder;
  border-left: 24px solid var(--active);
}


  canvas {
    width: 100%;
    max-width: 320px;
    position: fixed;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    z-index: 100; 
    opacity: 0.9;
    transition: opacity 0.3s ease;
  }

  .controls {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    z-index: 998; 
    opacity: 0.9;
  }

footer {
  position: fixed;
  border-radius: 8px;
  bottom: 0;
  left: 0;
  width: 100%;
  max-height: auto;
  overflow-y: auto;
  z-index: 1000;
  background: rgba(50, 73, 122, 0.8);
}

  /* スクロール時にフェードアウト */
  body.scrolling canvas {
    opacity: 0.5;
  }


}


/* EUクッキー同意バナー用ルート（最前面レイヤー） */
#consent-root {
  position: fixed;
  inset: 0; /* top:0; right:0; bottom:0; left:0 と同じ */
  z-index: 11000; /* 他のオーバーレイより優先 */
  pointer-events: none; /* 中身が出るまではクリック無効 */
}

/* 半透明の全画面オーバーレイ */
.consent-banner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.6);
  pointer-events: auto; /* バナーをクリック可能に */
  box-sizing: border-box;
}

/* 下部に表示される本体カード */
.consent-content {
  max-width: 960px;
  width: 100%;
  background: var(--card-bg);
  color: var(--text-light);
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  border-left: 8px solid var(--accent-pink);
  border-top: 1px solid var(--theme-light);
  border-right: 1px solid var(--theme-dark);
}

/* テキスト部分 */
.consent-content p {
  margin: 4px 0;
  background: transparent;
  padding: 0;
}

/* 見出しっぽく強調 */
.consent-title {
  font-size: 1rem;
  font-weight: bolder;
  color: var(--accent-pink);
  margin-bottom: 4px;
}

/* ボタン行 */
.consent-buttons {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

/* ボタン共通 */
.consent-button {
  min-width: 120px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--theme-light);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: bold;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* 同意ボタン */
.consent-button.accept {
  background: var(--theme-green);
  color: var(--text-light);
}
.consent-button.accept:hover {
  background: var(--theme-dark);
  color: var(--active);
  border-color: var(--active);
}

/* 拒否ボタン（同じ重要度でダークパターン回避） */
.consent-button.deny {
  background: var(--card-bg);
  color: var(--text-light);
}
.consent-button.deny:hover {
  background: var(--theme-dark);
  color: var(--accent-pink);
}

/* 詳細・設定リンク風ボタン */
.consent-button.more {
  background: transparent;
  color: var(--theme-light);
  border-style: dashed;
}
.consent-button.more:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--active);
}

/* スマホ時は全面フル幅で読みやすく */
@media (max-width: 960px) {
  .consent-banner {
    align-items: flex-end;
    padding: 8px;
  }
  .consent-content {
    width: 100%;
    border-radius: 8px 8px 0 0;
  }
}

