@font-face{
  font-family:"ChalkS";
  src:url("/static/fonts/Chalk-S-JP.otf") format("opentype");
  font-weight:normal;
  font-style:normal;
}
@import url('https://fonts.googleapis.com/css2?family=Yomogi&display=swap');
:root{--wood:#54280f;--wood2:#754019;--cream:#f7f1e7;--ink:#2b211a;--line:#ddcfbd}
*{box-sizing:border-box}body{margin:0;background:#f6f0e8;color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Yu Gothic",sans-serif}.hero{position:relative;background:#26150c;overflow:hidden}.hero>img{display:block;width:100%;height:auto}.nav{display:flex;overflow-x:auto;position:sticky;top:0;z-index:30;background:linear-gradient(#6e3a19,#47220d);box-shadow:0 2px 8px #0005}.nav a{flex:1 0 auto;padding:14px 17px;color:#fff;text-decoration:none;text-align:center;border-right:1px solid #ffffff22;font-weight:700;white-space:nowrap}.nav a.active{background:#c27929}main{max-width:1500px;margin:auto;padding:18px 24px 28px}h1,h2,h3{font-family:Georgia,"Yu Mincho",serif}h2{font-size:29px;border-bottom:2px solid var(--line);padding-bottom:9px}.layout,.lounge-layout{display:grid;grid-template-columns:minmax(0,3fr) minmax(280px,1fr);gap:22px}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:13px}.card{background:#fff;border:1px solid #eadfd1;border-radius:10px;overflow:hidden;text-decoration:none;color:inherit;box-shadow:0 2px 10px #0001}.card img,.filepic{width:100%;height:140px;object-fit:cover}.filepic{display:grid;place-items:center;background:#eee5d8;font-size:44px}.inner{padding:11px}.inner h3{margin:7px 0}.tag{background:#725034;color:#fff;padding:3px 8px;border-radius:4px;font-size:12px}.panel,.post,.compose,.download,.adminform,.stats,.table>div{background:#fff;border:1px solid #eadfd1;border-radius:10px;padding:17px;margin-bottom:16px;box-shadow:0 2px 8px #0000000b}.post p{line-height:1.75}.postimg{max-width:240px}.compose textarea,.adminform textarea,.adminform input,.adminform select,.loginbox input{width:100%;padding:11px;border:1px solid #cdbba7;border-radius:7px;margin:7px 0;font-size:16px}.compose textarea,.adminform textarea{min-height:110px}.button,button{display:inline-block;background:#754019;color:#fff;border:0;border-radius:7px;padding:10px 14px;text-decoration:none;cursor:pointer}.ghost{background:#92795f}.danger{background:#8b2f28}.signed{margin-bottom:8px}.gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:15px}.gallery figure{margin:0;background:#fff;padding:8px;border-radius:9px}.thumb{width:100%;height:160px;object-fit:cover;border-radius:7px;cursor:pointer}.doc-card{display:flex;justify-content:space-between;width:100%;max-width:760px;margin:10px 0;background:#fff;color:#2b211a;border:1px solid #ddd;text-align:left}.download{display:flex;align-items:center;justify-content:space-between;gap:20px}.member{display:grid;grid-template-columns:18px 1fr;gap:2px 6px;border-bottom:1px solid #eee;padding:9px 0}.member small{grid-column:2}.dot{width:10px;height:10px;border-radius:50%;background:#aaa;margin-top:5px}.dot.on{background:#24a148;box-shadow:0 0 6px #24a148}.empty{padding:25px;background:#fff;border-radius:8px;color:#77695e}.flash{background:#fff1c9;border:1px solid #e1c26b;padding:12px;border-radius:8px;margin-bottom:12px}.modal{display:none;position:fixed;inset:0;background:#000d;z-index:100;align-items:center;justify-content:center;padding:30px}.modal.open{display:flex}.modal img{max-width:94vw;max-height:90vh}.modal iframe{width:92vw;height:90vh;border:0;background:#fff}.close{position:fixed;width:44px;height:44px;border-radius:50%;font-size:28px;background:#fff;color:#222;z-index:101}.close.left{top:18px;left:18px}.close.right{top:18px;right:18px}footer{display:flex;justify-content:space-between;background:#ede1d2;border-top:1px solid #d8c7b3;padding:24px 30px;color:#66503d}
.weather-board{position:absolute;right:5.5%;top:13%;width:14%;height:42%;background:radial-gradient(ellipse at center,#20362e,#10241d);border:10px solid #6b3a1d;box-shadow:inset 0 0 18px #000,0 4px 8px #0006;border-radius:3px;color:#f5efe0;padding:2.2% 2% 1.2%;transform:rotate(-.5deg);text-align:center}.weather-title{font-family:Georgia,"Yu Mincho",serif;font-weight:700;font-size:clamp(13px,1.55vw,28px);border-bottom:2px solid #e9e1c8;padding-bottom:3%;margin-bottom:3%}.chalk{font-family:"Bradley Hand","Comic Sans MS","Yu Mincho",cursive;font-weight:500;color:#f6f1df;text-shadow:0 0 1px #fff,1px 1px 0 #ffffff33;letter-spacing:.04em}.date{font-size:clamp(11px,1.15vw,22px);margin-bottom:3%}.weather-row{display:grid;grid-template-columns:1fr 1fr .55fr;align-items:center;font-size:clamp(10px,1vw,18px);margin:1.5% 0}.weather-row b{font-size:clamp(14px,1.7vw,31px)}.weather-text{grid-column:2/4!important;font-size:clamp(13px,1.5vw,28px)!important}.eraser{position:absolute;width:28%;height:7%;bottom:-7%;left:37%;background:#b39a78;border:3px solid #5c4029;border-radius:2px;box-shadow:0 3px 4px #0005}.secret{position:absolute;background:transparent!important;padding:0;border:0;cursor:default!important;z-index:10}.secret.y{left:47.0%;top:85%;width:1.6%;height:10%}.secret.s{left:50.5%;top:85%;width:1.6%;height:10%}

.loginbody{min-height:100vh;display:grid;place-items:center;background:#3e2415}.loginbox{width:min(430px,92vw);background:#f7f1e7;padding:28px;border-radius:12px}.loginbox label{display:block;margin:12px 0}.admin{max-width:1100px}.adminhead{display:flex;justify-content:space-between;align-items:center}.stats{display:flex;gap:18px;flex-wrap:wrap}.compact textarea{min-height:80px}.table>div{display:grid;grid-template-columns:1fr auto 2fr auto auto;gap:10px;align-items:center}
@media(max-width:900px){.layout,.lounge-layout{grid-template-columns:1fr}.cards{grid-template-columns:repeat(2,1fr)}.weather-board{right:3%;top:9%;width:23%;height:64%;border-width:6px}.nav a{padding:12px 15px}.table>div{grid-template-columns:1fr 1fr}.table form{display:inline}}
@media(max-width:560px){main{padding:12px}.cards{grid-template-columns:1fr}.hero>img{width:145%;max-width:none;transform:translateX(-15%)}.weather-board{right:1.5%;top:8%;width:30%;height:67%;padding:2%;border-width:5px}.weather-title{font-size:11px}.date{font-size:9px}.weather-row{font-size:9px}.weather-row b{font-size:13px}.weather-text{font-size:11px!important}.secret.y{left:53%;top:84%;width:3%;height:12%}.secret.s{left:58%;top:84%;width:3%;height:12%}footer{flex-direction:column}.download{align-items:flex-start;flex-direction:column}}
.weather-board{right:5.5%;top:13%;width:14%!important;height:46%!important;padding:0!important;border:0!important;box-shadow:none!important;background:url("/static/weather_board_live.png") center/130% auto no-repeat!important}
.weather-board{
  position:absolute!important;
  left:81.54%!important;
  top:-2.78%!important;
  right:auto!important;
}

.nav{
  position:relative;
  z-index:100;
}
main{
  position:relative;
  z-index:90;
  background:#f6f0e8;
}
.nav{
  position:relative;
  z-index:100;
}
main{
  position:relative;
  z-index:90;
  background:#f6f0e8;
}
.nav{
  position:relative;
  z-index:100;
}
main{
  position:relative;
  z-index:90;
  background:#f6f0e8;
}
.nav{
  position:relative;
  z-index:100;
}
main{
  position:relative;
  z-index:90;
  background:#f6f0e8;
}
.nav{
  margin-top:0!important;
}
.post{
  overflow:hidden;
}
.post .postimg.thumb{
  float:left;
  width:90px;
  height:auto;
  margin:0 16px 8px 0;
}
.post::after{
  content:"";
  display:block;
  clear:both;
}
.post .postimg.thumb{
  margin-top:0!important;
  vertical-align:top;
}
.secret.y{
  left:81.6979%!important;
  top:46.2345%!important;
  height:5%!important;
  z-index:9999!important;
}

.secret.s{
  left:84.304%!important;
  top:46.2345%!important;
  height:5%!important;
  z-index:9999!important;
}
.weather-board > *{
  display:block!important;
}

.weather-board{
  color:#f4f0df;
  text-align:left;
  font-family:"Comic Sans MS","Yu Mincho",cursive;
}

.weather-title{
  position:absolute;
  left:16%;
  top:14%;
  width:68%;
  text-align:center;
  font-size:clamp(13px,1.4vw,26px);
  font-weight:700;
  letter-spacing:.08em;
  color:#f5f1df;
  text-shadow:
    0 0 1px #fff,
    1px 1px 0 #ffffff33,
    -1px 0 0 #ffffff22;
  border-bottom:2px solid #e8e1c8;
  padding-bottom:3%;
}

.date{
  position:absolute;
  left:20%;
  top:33%;
  width:60%;
  text-align:center;
  font-size:clamp(11px,1.05vw,20px);
}

.weather-row{
  position:absolute;
  left:17%;
  width:68%;
  display:grid!important;
  grid-template-columns:42% 38% 20%;
  align-items:center;
  font-size:clamp(10px,.95vw,18px);
}

.weather-row:nth-of-type(3){
  top:47%;
}

.weather-row:nth-of-type(4){
  top:60%;
}

.weather-row:nth-of-type(5){
  top:73%;
}

.weather-row b{
  font-size:clamp(14px,1.55vw,29px);
  color:#f0df8a;
  font-weight:700;
  text-shadow:
    0 0 1px #fff8c8,
    1px 1px 0 #ffffff22;
}

.weather-text{
  color:#f5f1df!important;
  font-size:clamp(13px,1.35vw,26px)!important;
}

.eraser{
  display:none!important;
/* ===== 黒板文字：手書きチョーク仕上げ ===== */

.weather-board .weather-title,
.weather-board .date,
.weather-board .weather-row{
  font-family:"Segoe Print","Bradley Hand","Comic Sans MS","Yu Mincho",cursive!important;
  font-weight:500!important;
  letter-spacing:.035em;
  color:#f2efdf;
  text-shadow:
    1px 0 0 rgba(255,255,255,.30),
   -1px 0 0 rgba(255,255,255,.16),
    0 1px 0 rgba(255,255,255,.20),
    0 0 2px rgba(255,255,255,.30);
}

.weather-board .weather-title{
  font-weight:600!important;
  letter-spacing:.08em;
}

.weather-board .weather-row b{
  font-family:"Segoe Print","Bradley Hand","Comic Sans MS",cursive!important;
  font-weight:600!important;
  color:#eee29b!important;
  text-shadow:
    1px 0 0 rgba(255,245,180,.35),
   -1px 1px 0 rgba(255,255,255,.16),
    0 0 2px rgba(255,245,180,.25);
}

.weather-board .weather-text{
  font-family:"Segoe Print","Bradley Hand","Comic Sans MS","Yu Mincho",cursive!important;
  font-weight:500!important;
}

.weather-board .weather-title,
.weather-board .date,
.weather-board .weather-row,
.weather-board .weather-row b,
.weather-board .weather-text{
  font-family:"Yomogi",cursive!important;
}

.weather-board .weather-title,
.weather-board .date,
.weather-board .weather-row,
.weather-board .weather-row b,
.weather-board .weather-text{
  font-family:"ChalkS",sans-serif!important;
}
}



/* 談話室・マイカップ画像選択 */
.cup-grid{
  display:grid;
  grid-template-columns:repeat(5, 90px);
  gap:14px;
  margin:12px 0 18px;
}

.cup-choice{
  display:block;
  cursor:pointer;
}

.cup-choice input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.cup-image{
  display:block;
  width:90px;
  height:auto;
  border-radius:12px;
  box-sizing:border-box;
}

.cup-choice input:checked + .cup-image{
  outline:4px solid #c58a4a;
  outline-offset:2px;
}

@media (max-width:1000px){
  .cup-grid{
    grid-template-columns:repeat(2, 90px);
  }
}

.member{
  position:relative;
  display:flex;
  align-items:center;
  gap:10px;
}

.member-cup{
  width:70px;
  height:auto;
  border-radius:8px;
  display:block;
}

.member-info{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.member-callsign{
  font-size:18px;
}

.member .dot{
  margin-left:auto;
  flex:0 0 auto;
}

/* 常連客マイカップ表示・最終調整 */
.member-cup{
  width:60px!important;
  height:auto!important;
  flex:0 0 60px!important;
}

.member-cup-wrap{
  position:relative;
  width:60px;
  flex:0 0 60px;
}

.cup-callsign{
  position:absolute;
  left:0;
  right:0;
  bottom:7px;
  text-align:center;
  font-size:8px;
  font-weight:700;
  color:#111;
  line-height:1;
}

.member-cup-wrap{
  position:relative;
  width:60px;
  flex:0 0 60px;
}

.cup-callsign{
  position:absolute;
  left:0;
  right:0;
  bottom:7px;
  text-align:center;
  font-size:8px;
  font-weight:700;
  color:#111;
  line-height:1;
}


#pwOk{
  width:44px;
  height:38px;
  padding:0;
  font-size:14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}




.cup-choice:hover .cup-image{
  outline:3px solid #c58a4a;
  outline-offset:2px;
}

@media (max-width:1200px){.member-cup{width:45px!important;max-width:45px!important;flex:0 0 45px!important}}

.lounge-layout .post h3{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Yu Gothic",sans-serif!important;}

.lounge-layout .post h3{font-family:Arial,sans-serif!important;font-weight:700;}

.lounge-layout .post h3{font-family:Arial,sans-serif!important;font-weight:700;}

/* 談話室 投稿写真サムネイル */
.lounge-layout .postfiles .thumb{
  width:160px!important;
  height:120px!important;
  object-fit:contain!important;
  object-position:center!important;
  background:#f5f2ea;
  border-radius:8px;
}

/* 談話室 投稿者のマイカップ */
.post-author-cup{
  width:70px;
  height:auto;
  display:block;
  margin:4px 0 10px 0;
  border-radius:8px;
}

.post-author-cup{
  width:70px!important;
  height:64px!important;
  object-fit:cover!important;
  object-position:top!important;
}

/* 常連客リストのカップ番号を隠す */
.member-cup{
  height:55px!important;
  object-fit:cover!important;
  object-position:top!important;
}

@media (max-width:1200px){
  .member-cup{
    height:41px!important;
  }
}

/* カップ下部をもう少しカット */
.post-author-cup{
  height:60px!important;
}

.member-cup{
  height:51px!important;
}

@media (max-width:1200px){
  .member-cup{
    height:38px!important;
  }
}

/* カップ選択リストの番号を隠す */
.cup-image{
  height:82px!important;
  object-fit:cover!important;
  object-position:top!important;
}

/* カップ選択リストをさらに上までカット */
.cup-image{
  height:76px!important;
}

.nav{
  margin-top:-270px!important;
}

.member-link{
  color:inherit;
  text-decoration:none;
  cursor:pointer;
}
.member-link:hover{
  background:#f6efe5;
}

.member-link{
  color:inherit;
  text-decoration:none;
  cursor:pointer;
}
.member-link:hover{
  background:#f6efe5;
}

.nav{
  margin-top:-417px!important;
  margin-bottom:0!important;
}

/* 広いPCで本文左右に出る透けを埋める */
main{
  box-shadow:0 0 0 100vmax #f6f0e8;
  clip-path:inset(0 -100vmax);
}

/* 画面サイズに依存しないタブ配置 */
.hero{
  position:relative;
}

.nav{
  margin-top:0!important;
  position:relative!important;
  top:auto!important;
  transform:none!important;
}

/* 画面サイズに依存しないタブ配置 */
.hero{
  position:relative;
}

.nav{
  margin-top:0!important;
  position:relative!important;
  top:auto!important;
  transform:none!important;
}

/* 本物タブ位置：ヘッダー画像基準 */
.hero{
  position:relative!important;
}

.nav{
  position:absolute!important;
  left:0!important;
  right:0!important;
  top:61.05%!important;
  width:100%!important;
  margin:0!important;
  transform:none!important;
  z-index:100!important;
}


/* PCのみ：本物タブ下に残る画像内タブの端を隠す */
@media (min-width:1201px){
  .nav::after{
    content:"";
    position:absolute;
    left:0;
    right:0;
    top:100%;
    height:24px;
    background:#f6f0e8;
    z-index:101;
  }
}

/* 背景画像に描かれたタブの残りを隠す */
.nav::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:100%;
  height:20px;
  background:#f6f0e8;
  z-index:101;
  pointer-events:none;
}

/* タブの不要なスクロールバーを消す */
.nav{
  overflow:hidden!important;
}

/* 本物タブを少し高くして下の残りを隠す */
.nav a{
  padding-top:16px!important;
  padding-bottom:16px!important;
}

/* 本物タブをさらに高くする */
.nav a{
  padding-top:24px!important;
  padding-bottom:24px!important;
}

/* タブ最終固定 */
.nav{
  top:60.58%!important;
}
.nav a{
  padding-top:36px!important;
  padding-bottom:36px!important;
}
