/*
 * GINZA AGENT — 言の葉の玉手箱 / v1.7.8
 * Scoped to the standalone omikuji page. No external images or dependencies.
 * Each article is semantic, pre-rendered HTML within native <details>.
 */
body.gaom-standalone-page .gaom-editorial{
  display:block;
  width:min(100%,880px);
  min-width:0;
  margin:36px auto 50px;
  padding:32px clamp(12px,3.2vw,29px) 36px;
  border:1px solid #dec68f;
  border-radius:24px;
  background:
    radial-gradient(ellipse at 50% 0%,rgba(255,233,184,.58) 0,transparent 55%),
    repeating-linear-gradient(0deg,rgba(160,112,58,.025) 0 1px,transparent 1px 9px),
    #fffdf7;
  box-shadow:0 14px 40px rgba(91,55,28,.09),inset 0 0 0 5px rgba(255,247,227,.8);
  color:#34251e;
}
body.gaom-standalone-page .gaom-editorial *,
body.gaom-standalone-page .gaom-editorial *::before,
body.gaom-standalone-page .gaom-editorial *::after{box-sizing:border-box}
body.gaom-standalone-page .gaom-editorial-header{
  position:relative;
  text-align:center;
  max-width:720px;
  margin:0 auto 22px;
  padding:0 5px 19px;
  border-bottom:1px solid #e4d0a5;
}
body.gaom-standalone-page .gaom-editorial-header::after{
  content:'✦';position:absolute;bottom:-11px;left:50%;transform:translateX(-50%);
  width:35px;color:#b68c43;background:#fffaf0;font-size:15px;
}
body.gaom-standalone-page .gaom-editorial-kicker{
  display:block;color:#92693c;font-size:12px;font-weight:700;
  letter-spacing:.19em;margin-bottom:9px;
}
body.gaom-standalone-page .gaom-editorial-heading{
  margin:0 0 9px!important;color:#5b2a34!important;
  font-family:'Yu Mincho','Hiragino Mincho ProN','Noto Serif JP',serif;
  font-size:clamp(25px,4vw,35px)!important;font-weight:700;
  line-height:1.4;letter-spacing:.1em;
}
body.gaom-standalone-page .gaom-editorial-intro{
  color:#665347!important;font-size:13px!important;margin:0!important;line-height:1.75!important;
}
body.gaom-standalone-page .gaom-chest-grid{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:start;gap:17px 21px;width:100%;min-width:0;
}
body.gaom-standalone-page details.gaom-chest{
  --lacquer:#762d3c;--lacquer-dark:#481421;--gold:#c9a25c;
  display:block!important;position:relative!important;min-width:0!important;
  margin:0!important;padding:0!important;
  border:1px solid #e0c99b!important;border-radius:16px!important;
  background:linear-gradient(135deg,#fffaf0 0%,#f8f0dd 50%,#fff9ec 100%)!important;
  box-shadow:0 5px 12px rgba(105,69,36,.09),inset 0 0 0 3px #fffaf2!important;
  overflow:visible;
  transition:border-color .2s,box-shadow .2s;
}
body.gaom-standalone-page details.gaom-chest:hover,
body.gaom-standalone-page details.gaom-chest:focus-within{
  border-color:#bc9043!important;
  box-shadow:0 8px 19px rgba(99,55,28,.15),inset 0 0 0 3px #fff9ea!important;
}
body.gaom-standalone-page details.gaom-chest[open]{
  grid-column:1 / -1;
  border-color:#b88a49!important;
  box-shadow:0 9px 29px rgba(88,52,27,.14),inset 0 0 0 4px #fff7e5!important;
}
body.gaom-standalone-page .gaom-chest--1{--lacquer:#882c40!important;--lacquer-dark:#571829!important}
body.gaom-standalone-page .gaom-chest--2{--lacquer:#344e87!important;--lacquer-dark:#172d54!important}
body.gaom-standalone-page .gaom-chest--3{--lacquer:#337660!important;--lacquer-dark:#174a3d!important}
body.gaom-standalone-page .gaom-chest--4{--lacquer:#785091!important;--lacquer-dark:#472759!important}
body.gaom-standalone-page .gaom-chest--5{--lacquer:#b35532!important;--lacquer-dark:#733119!important}
body.gaom-standalone-page .gaom-chest--6{--lacquer:#267c89!important;--lacquer-dark:#114e5a!important}
body.gaom-standalone-page .gaom-chest--7{--lacquer:#a3446b!important;--lacquer-dark:#672641!important}
body.gaom-standalone-page .gaom-chest--8{--lacquer:#4e5c80!important;--lacquer-dark:#263650!important}
body.gaom-standalone-page .gaom-chest--9{--lacquer:#8d7136!important;--lacquer-dark:#5a4119!important}
body.gaom-standalone-page .gaom-chest--10{--lacquer:#a85a76!important;--lacquer-dark:#70364b!important}
body.gaom-standalone-page summary.gaom-chest-trigger{
  display:block!important;position:relative;cursor:pointer;
  padding:13px 11px 10px!important;margin:0!important;
  min-height:209px;
  border-radius:15px;
  text-align:center;list-style:none!important;
  background:
    radial-gradient(circle at 17% 39%,rgba(201,161,83,.17) 0 2px,transparent 3px),
    radial-gradient(circle at 83% 62%,rgba(201,161,83,.2) 0 3px,transparent 4px),
    transparent;
  outline-offset:4px;
  user-select:none;
}
body.gaom-standalone-page summary.gaom-chest-trigger::-webkit-details-marker{display:none}
body.gaom-standalone-page summary.gaom-chest-trigger::marker{content:''}
body.gaom-standalone-page summary.gaom-chest-trigger:focus-visible{
  outline:3px solid #926ab5;
}
/* Rectangular lacquered tamatebako, echoing the site's gold-rimmed omikuji tube. */
body.gaom-standalone-page .gaom-chest-graphic{
  position:relative;display:block;
  width:min(100%,255px);height:152px;
  margin:0 auto 5px;
  filter:drop-shadow(0 7px 5px rgba(51,28,19,.19));
  transition:transform .22s ease;
  pointer-events:none;
}
body.gaom-standalone-page .gaom-chest:hover .gaom-chest-graphic,
body.gaom-standalone-page .gaom-chest:focus-within .gaom-chest-graphic{
  transform:translateY(-2px);
}
body.gaom-standalone-page .gaom-chest-box{
  position:absolute;left:9%;right:9%;bottom:4px;top:25px;display:block;
  border-radius:10px 10px 19px 19px;
  background:
    linear-gradient(90deg,rgba(16,7,6,.59) 0%,transparent 18%,rgba(255,248,208,.10) 49%,transparent 79%,rgba(16,7,6,.57) 100%),
    linear-gradient(180deg,var(--lacquer) 0%,var(--lacquer-dark) 100%);
  border:3px solid #d6b16e;
  box-shadow:
    inset 0 0 0 2px #473020,
    inset 0 0 0 6px rgba(246,196,106,.35),
    inset 0 7px 13px rgba(0,0,0,.28),
    0 2px 2px #7a522a;
}
body.gaom-standalone-page .gaom-chest-face{
  position:absolute;left:7px;right:7px;top:8px;bottom:8px;
  border:1px solid rgba(248,215,151,.6);border-radius:8px 8px 13px 13px;
  box-shadow:inset 0 0 0 1px rgba(42,17,13,.35);
}
body.gaom-standalone-page .gaom-chest-base{
  position:absolute;left:3px;right:3px;bottom:-8px;height:13px;border-radius:6px 6px 11px 11px;
  border:2px solid #9b742e;
  background:linear-gradient(180deg,#f6d88b,#b78237 60%,#6d4c24);
  box-shadow:inset 0 1px 0 #fff1bf;
}
body.gaom-standalone-page .gaom-chest-lid{
  position:absolute;z-index:3;left:5%;right:5%;top:13px;height:34px;
  border:2px solid #d5ad63;
  border-radius:54% 54% 14px 14px / 78% 78% 12px 12px;
  background:
    linear-gradient(180deg,rgba(255,247,202,.32) 0%,transparent 25%),
    linear-gradient(90deg,#29211c,#24201b 23%,#4d3826 50%,#211c1a 76%,#30241d);
  box-shadow:inset 0 2px 1px rgba(255,222,156,.35),inset 0 -3px 0 #6c491d,0 3px 4px rgba(0,0,0,.33);
}
body.gaom-standalone-page .gaom-chest-lid::after{
  content:'';position:absolute;left:50%;top:3px;transform:translateX(-50%);
  width:32%;height:7px;border-radius:50%;border:1px solid #d9b772;
  background:linear-gradient(180deg,#4e3a2a,#191612);
}
body.gaom-standalone-page .gaom-chest-jewel{
  position:absolute;z-index:5;top:-29px;left:50%;transform:translateX(-50%);
  width:6px;height:9px;border-radius:6px 6px 0 0;background:#d8ac60;
  border:1px solid #a47a30;
}
body.gaom-standalone-page .gaom-chest-jewel::before,
body.gaom-standalone-page .gaom-chest-jewel::after{
  content:'';position:absolute;top:4px;width:4px;height:5px;
  background:#d9b371;border-radius:5px;
}
body.gaom-standalone-page .gaom-chest-jewel::before{left:-10px}
body.gaom-standalone-page .gaom-chest-jewel::after{right:-10px}
body.gaom-standalone-page .gaom-chest-label{
  position:absolute;z-index:2;inset:24px 29px 9px;
  display:flex;align-items:center;justify-content:center;
  padding:8px 9px;
  background:
    repeating-linear-gradient(90deg,rgba(177,131,61,.05) 0 1px,transparent 1px 7px),
    linear-gradient(120deg,#fffdf1,#f5eacb 52%,#fff9e4);
  border:2px solid #e5bf78;border-radius:5px;
  outline:1px solid rgba(87,41,16,.58);outline-offset:2px;
  box-shadow:inset 0 0 0 1px #fff9e6,0 2px 4px rgba(0,0,0,.24);
  color:#543125!important;
  font-family:'Yu Mincho','Hiragino Mincho ProN',serif;
  font-size:clamp(12px,1.7vw,17px)!important;font-weight:700;
  letter-spacing:.02em;line-height:1.45;
  overflow-wrap:anywhere;text-shadow:0 1px 0 rgba(255,255,255,.85);
}
body.gaom-standalone-page .gaom-chest-spark{
  position:absolute;z-index:2;top:48%;color:#ffdf85;
  text-shadow:0 0 7px rgba(255,225,151,.5);font-size:15px;
}
body.gaom-standalone-page .gaom-chest-spark--left{left:5px}
body.gaom-standalone-page .gaom-chest-spark--right{right:5px}
body.gaom-standalone-page .gaom-chest-toggle{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  color:#825636;font-size:12px;font-weight:700;letter-spacing:.09em;
  line-height:1.7;pointer-events:none;
}
body.gaom-standalone-page .gaom-chest-toggle-arrow{
  display:inline-block;font-family:Arial,sans-serif;font-size:21px;font-weight:400;
  line-height:1;transform:translateY(-3px);transition:transform .2s ease;
}
body.gaom-standalone-page .gaom-chest[open] .gaom-chest-toggle-arrow{transform:rotate(180deg) translateY(-3px)}
body.gaom-standalone-page .gaom-chest[open] .gaom-chest-toggle-copy::after{content:'（開いています）';font-size:10px}
body.gaom-standalone-page .gaom-chest[open] .gaom-chest-trigger{
  padding-bottom:12px!important;
}
body.gaom-standalone-page .gaom-chest[open] .gaom-chest-graphic{max-width:260px}
/* Opened article: full-width ivory scroll with thin gold tracery. */
body.gaom-standalone-page .gaom-chest-scroll{
  display:block;min-width:0;
  margin:0 12px 13px;
  padding:5px;
  border:1px solid #c9a365;
  border-radius:14px;
  background:linear-gradient(120deg,#dcc18b,#faefce 20%,#d5b676 54%,#f4e6c0 87%,#bd945b);
  box-shadow:0 5px 14px rgba(94,59,30,.13);
}
body.gaom-standalone-page .gaom-chest-content{
  padding:clamp(20px,4vw,35px) clamp(16px,5vw,43px) 22px;
  background:
    linear-gradient(90deg,rgba(184,143,73,.05),transparent 9%,transparent 91%,rgba(184,143,73,.05)),
    repeating-linear-gradient(0deg,rgba(100,66,33,.019) 0 1px,transparent 1px 8px),
    #fffdf7;
  border:1px solid rgba(181,142,81,.5);
  border-radius:10px;
}
body.gaom-standalone-page .gaom-chest-content-kicker{
  display:block;color:#a17843;font-family:Georgia,'Times New Roman',serif;
  font-size:11px;font-weight:700;letter-spacing:.14em;
  margin:0 0 13px;text-align:center;
}
body.gaom-standalone-page .gaom-chest-content h2{
  color:#5a2735!important;
  font-family:'Yu Mincho','Hiragino Mincho ProN',serif;
  font-size:27px!important;font-weight:700;
  line-height:1.65!important;letter-spacing:.035em;
  border:0!important;border-bottom:1px solid #d3b778!important;
  background:none!important;
  box-shadow:none!important;
  padding:0 0 18px!important;margin:0 0 25px!important;
  text-align:left!important;
  overflow-wrap:anywhere;
}
body.gaom-standalone-page .gaom-chest-text p{
  margin:0 0 1.15em!important;padding:0!important;
  border:0!important;background:transparent!important;
  font-family:'Hiragino Kaku Gothic ProN','Yu Gothic',Meiryo,sans-serif;
  color:#362b26!important;font-size:17px!important;
  font-weight:500;line-height:1.95!important;
  letter-spacing:.017em;overflow-wrap:anywhere;
}
body.gaom-standalone-page .gaom-chest-text p:last-child{margin-bottom:0!important}
@media(max-width:600px){
  body.gaom-standalone-page .gaom-editorial{margin-top:26px;padding:25px 10px 27px;border-radius:16px}
  body.gaom-standalone-page .gaom-chest-grid{gap:11px 10px}
  body.gaom-standalone-page summary.gaom-chest-trigger{min-height:175px;padding:8px 5px 5px!important}
  body.gaom-standalone-page .gaom-chest-graphic{height:129px;width:min(100%,225px);margin-bottom:4px}
  body.gaom-standalone-page .gaom-chest-box{top:23px;left:5%;right:5%;bottom:5px}
  body.gaom-standalone-page .gaom-chest-lid{top:13px;left:3%;right:3%;height:30px}
  body.gaom-standalone-page .gaom-chest-label{inset:19px 19px 8px;padding:5px 6px;font-size:clamp(11px,2.5vw,14px)!important}
  body.gaom-standalone-page .gaom-chest-spark{font-size:11px}
  body.gaom-standalone-page .gaom-chest-toggle{font-size:10px;gap:3px;letter-spacing:.04em}
  body.gaom-standalone-page .gaom-chest-scroll{margin:0 7px 8px;padding:3px}
  body.gaom-standalone-page .gaom-chest-content{padding:22px 16px 18px}
  body.gaom-standalone-page .gaom-chest-content h2{font-size:22px!important;line-height:1.55!important;margin-bottom:18px!important}
  body.gaom-standalone-page .gaom-chest-text p{font-size:16px!important;line-height:1.9!important}
}
@media(max-width:360px){
  body.gaom-standalone-page .gaom-editorial{padding-left:7px;padding-right:7px}
  body.gaom-standalone-page .gaom-chest-grid{gap:8px 7px}
  body.gaom-standalone-page summary.gaom-chest-trigger{min-height:167px}
  body.gaom-standalone-page .gaom-chest-graphic{height:122px}
  body.gaom-standalone-page .gaom-chest-label{inset:18px 13px 8px;font-size:11px!important;line-height:1.38}
  body.gaom-standalone-page .gaom-chest-toggle{font-size:9px}
}
@media(prefers-reduced-motion:reduce){
  body.gaom-standalone-page .gaom-chest-graphic,
  body.gaom-standalone-page .gaom-chest-toggle-arrow,
  body.gaom-standalone-page details.gaom-chest{transition:none!important}
}


/* v1.8.8 — 明るい彩漆の玉手箱。原稿、開閉、配置は変更しない。 */
body.gaom-standalone-page .gaom-chest--1{--lacquer:#ff7457!important;--lacquer-dark:#e12e3b!important;} /* 朱赤 */
body.gaom-standalone-page .gaom-chest--2{--lacquer:#76a4ff!important;--lacquer-dark:#3469d8!important;} /* 瑠璃 */
body.gaom-standalone-page .gaom-chest--3{--lacquer:#57dabc!important;--lacquer-dark:#14957f!important;} /* 翡翠 */
body.gaom-standalone-page .gaom-chest--4{--lacquer:#c49bef!important;--lacquer-dark:#8653cb!important;} /* 藤 */
body.gaom-standalone-page .gaom-chest--5{--lacquer:#ffb3c7!important;--lacquer-dark:#ef688a!important;} /* 桜 */
body.gaom-standalone-page .gaom-chest--6{--lacquer:#59e4e3!important;--lacquer-dark:#159eaf!important;} /* 浅葱 */
body.gaom-standalone-page .gaom-chest--7{--lacquer:#ffb275!important;--lacquer-dark:#ec633f!important;} /* 珊瑚朱 */
body.gaom-standalone-page .gaom-chest--8{--lacquer:#b4c4ff!important;--lacquer-dark:#647dd3!important;} /* 花紺 */
body.gaom-standalone-page .gaom-chest--9{--lacquer:#ffe291!important;--lacquer-dark:#d9a02d!important;} /* 琥珀 */
body.gaom-standalone-page .gaom-chest--10{--lacquer:#fda3b6!important;--lacquer-dark:#d85878!important;} /* 紅梅 */
body.gaom-standalone-page details.gaom-chest{
  border-color:#efd19d!important;
  background:linear-gradient(140deg,#fffdf6 0%,#fff7e9 45%,#fffaf0 100%)!important;
  box-shadow:0 6px 17px rgba(166,105,48,.1),inset 0 0 0 3px rgba(255,255,255,.9)!important;
}
body.gaom-standalone-page details.gaom-chest:hover,
body.gaom-standalone-page details.gaom-chest:focus-within{
  border-color:#d4a34f!important;
  box-shadow:0 9px 23px rgba(145,83,34,.17),inset 0 0 0 3px #fffdf8!important;
}
body.gaom-standalone-page .gaom-chest-graphic{
  filter:drop-shadow(0 7px 5px rgba(121,68,30,.16));
}
body.gaom-standalone-page .gaom-chest-box{
  border:3px solid #eab85e;
  background:
    linear-gradient(90deg,rgba(79,30,25,.2) 0%,transparent 17%,rgba(255,255,255,.34) 36%,rgba(255,255,255,.16) 55%,transparent 77%,rgba(73,27,31,.2) 100%),
    linear-gradient(180deg,var(--lacquer) 0%,var(--lacquer) 37%,var(--lacquer-dark) 96%);
  box-shadow:
    inset 0 0 0 2px #fff3c6,
    inset 0 0 0 6px rgba(255,229,162,.36),
    inset 0 9px 12px rgba(255,255,255,.13),
    inset 0 -6px 8px rgba(104,29,15,.13),
    0 3px 3px rgba(123,75,29,.2);
}
body.gaom-standalone-page .gaom-chest-face{
  border-color:rgba(255,242,179,.85);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.30);
}
body.gaom-standalone-page .gaom-chest-lid{
  border:2px solid #d39a3c;
  background:
    linear-gradient(180deg,rgba(255,255,255,.78) 0%,transparent 37%),
    linear-gradient(180deg,#fff7cd 0%,#ffe8a2 27%,#f6ce72 52%,#cc8d34 74%,#fff0b9 83%,#c88133 100%);
  box-shadow:inset 0 3px 2px #fffde5,inset 0 -3px 0 #c83c29,0 3px 4px rgba(136,69,16,.22);
}
body.gaom-standalone-page .gaom-chest-lid::before{
  content:'';
  position:absolute;
  left:3%;right:3%;bottom:3px;
  height:5px;
  border-radius:2px 2px 4px 4px;
  background:linear-gradient(90deg,#b82921,#f45432 22%,#fa8054 50%,#f45432 78%,#b82921);
  box-shadow:0 -1px 0 rgba(255,252,226,.82);
}
body.gaom-standalone-page .gaom-chest-lid::after{
  border-color:#eab767;
  background:linear-gradient(180deg,#fff8d4,#f1c064 55%,#bf7427);
  box-shadow:0 1px 2px rgba(124,72,18,.2),inset 0 1px 1px #fffef2;
}
body.gaom-standalone-page .gaom-chest-base{
  border-color:#b98533;
  background:linear-gradient(180deg,#fff8d2 0%,#f5d382 30%,#dbac4f 68%,#b87b31 100%);
  box-shadow:inset 0 2px 0 #fffef2,0 2px 2px rgba(137,91,32,.18);
}
body.gaom-standalone-page .gaom-chest-label{
  border-color:#e3b86a;
  outline-color:rgba(173,104,34,.68);
  background:
    repeating-linear-gradient(90deg,rgba(177,131,61,.035) 0 1px,transparent 1px 7px),
    linear-gradient(125deg,#fffefa,#fff5dd 53%,#fffdfa);
  color:#542b24!important;
  box-shadow:inset 0 0 0 1px #fffdf0,0 2px 4px rgba(104,58,30,.18);
}
body.gaom-standalone-page .gaom-chest-spark{
  color:#fff2ae;
  text-shadow:0 0 4px rgba(255,255,236,.95),0 1px 2px rgba(130,72,22,.5);
}
