:root{
  --bg: #F7CE3E;
  --ink: #1A1255;
  --border: #1A1255;
  --maxw: 720px;
  --frame-radius: 15px;

  /* ===== サンプル画像寄せ：固定位置パラメータ ===== */
  --frame-top-pad: 100px;     /* 枠内の上余白（STORE開始高さ） */
  --logo-out-top: -87px;      /* ロゴを枠の外に出す量（上へ） */
  --logo-width: 640px;        /* title.png の表示幅 */
  --avatar-size: 112px;       /* icon.png のサイズ */
  --avatar-over: -56px;       /* 枠上辺に跨る量（マイナスで上へ） */
  --handle-gap: 74px;         /* アイコン中心から@まで */
  --sns-gap-to-frame: 8px;    /* SNSと枠の距離 */
}

/* ===== Reset ===== */
*,
*::before,
*::after{
  box-sizing: border-box;
}

html{
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans JP", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
}

/* ===== Page layout ===== */
.page{
  display: flex;
  justify-content: center;
  padding: 130px 24px 24px; /* ロゴが枠外に出るので上を確保 */
}

/* ===== Frame ===== */
.frame{
  width: min(var(--maxw), 100%);
  border: 1px solid var(--border);
  border-radius: var(--frame-radius);
  padding: var(--frame-top-pad) 0 16px;
  position: relative;
}

/* ===== Hero：枠の上辺(top:0)を基準に固定 ===== */
.hero{
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: var(--frame-top-pad);
  text-align: center;
}

/* ロゴ画像（title.png）：枠の外に出す */
.logo-img{
  position: absolute;
  left: 50%;
  top: var(--logo-out-top);
  transform: translateX(-50%);
  width: var(--logo-width);
  height: auto;
  display: block;
  z-index: 1;
}

/* icon.png：枠の上辺に跨る */
.hero-avatar{
  position: absolute;
  left: 50%;
  top: var(--avatar-over);
  transform: translateX(-50%);
  width: var(--avatar-size);
  height: var(--avatar-size);
  border-radius: 50%;
  border: 1px solid var(--ink);
  background: var(--bg);
  object-fit: cover;
  z-index: 3;
}

/* @handle：枠内の上部に固定 */
.handle{
  position: absolute;
  left: 50%;
  top: calc((var(--avatar-size) / 2) + var(--handle-gap) - 60px);
  transform: translateX(-50%);
  font-style: oblique;
  font-synthesis: style;
  letter-spacing: 0.06em;
  white-space: nowrap;
  font-family:
    "Helvetica Light Oblique",
    "Helvetica Neue Light",
    "HelveticaNeue-Light",
    "Helvetica Neue",
    "Helvetica",
    -apple-system,
    system-ui,
    sans-serif;
  z-index: 4;
}

/* ===== 左フローティングSNS：枠の左に沿わせる ===== */
.sns-rail{
  position: fixed;
  top: 150px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  left: calc(50% - (min(var(--maxw), 100%) / 2) - var(--sns-gap-to-frame));
  transform: translateX(-100%);
}

.sns-rail a{
  width: 54px;
  height: 54px;
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 120ms ease;
  will-change: transform;
  overflow: hidden; /* 角丸クリップ用 */
}

.sns-rail a.round img{
  border-radius: 6px;
}

.sns-rail a.wavebox img{
  max-height: 52px;
}

.sns-rail img{
  max-height: 46px;
  width: auto;
  height: auto;
  display: block;
}

.sns-rail a:hover{
  transform: scale(0.92);
}

.sns-rail a:active{
  transform: scale(0.90);
}

/* ===== Sections ===== */
.block:first-of-type{
  margin-top: 28px;
}

.block-title{
  text-align: center;
  font-size: 18px;
  font-weight: 400;
  font-style: italic;
  font-synthesis: style;
  font-family:
    "HoeflerText-Italic",
    "Hoefler Text",
    "Didot",
    "Bodoni 72",
    "Playfair Display",
    serif;
  letter-spacing: 0em;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 4px 0 0;
  margin: 0;
}

.store-links{
  display: grid;
  gap: 12px;
}

.store-link{
  display: block;
  color: var(--ink);
  text-decoration: none;
  border: 2px solid var(--ink);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.14);
  transition: transform 120ms ease, background 120ms ease;
}

.store-link:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.20);
}

.store-link .title{
  font-weight: 800;
}

.store-link .desc{
  display: block;
  margin-top: 4px;
  font-size: 13px;
  opacity: 0.9;
}

/* ===== Schedule ===== */
.schedule{
  list-style: none;
  padding: 18px 120px;
  margin: 0;
  display: grid;
  gap: 2px;
  font-size: 12px;
}

.schedule li{
  display: flex;
  align-items: flex-start;
  gap: 12px;
  white-space: nowrap;
}

.date{
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.schedule a{
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: wrap;
  flex: 1;
}

.schedule a:hover{
  text-decoration: underline;  /* hover時だけ下線 */
  text-underline-offset: 2px;
}
.tag{
  border: 1px solid var(--ink);
  border-radius: 3px;
  padding: 1px 6px;
  font-size: 7px;
  font-weight: 600;
  flex-shrink: 0;
  margin: 3px 0 0 6px;
}

/* ===== Banner ===== */
.banner{
  position: relative;
  display: block;
  text-decoration: none;
}

/* バナー画像 */
.banner img{
  width: 100%;
  height: auto;
  display: block;
}

/* バナー上のボタン */
.banner-btn{
  position: absolute;
  right: 16px;
  bottom: 12px;
  width: 120px;
  height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--ink);
  border-radius: 60px;
  padding: 0;
  transition: transform 120ms ease;
  will-change: transform;
  pointer-events: none;
}

/* ボタン文字1行目 */
.btn-main{
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.1em;
  font-weight: 500;
}

/* ボタン文字2行目 */
.btn-sub{
  font-size: 10px;
  line-height: 1.5;
  opacity: 0.9;
}

/* hover / active は今まで通り */
.banner:hover .banner-btn{
  transform: scale(0.92);
}

.banner:active .banner-btn{
  transform: scale(0.90);
}

/* バナー画像 */
.banner img{
  width: 100%;
  height: auto;
  display: block;
}

/* ===== Footer ===== */
.footer{
  width: min(var(--maxw), 100%);
  margin: 32px auto 0;
  padding: 12px 0;

  text-align: center;
}

.footer-text{
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.04em;
  opacity: 0.75;
}

/* ===== DISCORD ===== */
.dw-widget{
  padding: 16px 18px 18px;
}

.dw-top-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.dw-server-name{
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.03em;
  color: var(--ink);
}

.dw-online-badge{
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 60px;
  padding: 3px 10px;
  white-space: nowrap;
}

.dw-dot{
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
  flex-shrink: 0;
}

.dw-member-list{
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 240px;
  overflow-y: auto;
  margin-bottom: 14px;
  padding-right: 2px;
}

.dw-member-list::-webkit-scrollbar{
  width: 4px;
}
.dw-member-list::-webkit-scrollbar-thumb{
  background: var(--ink);
  border-radius: 4px;
  opacity: 0.3;
}

.dw-member{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 6px;
  border-radius: 10px;
  transition: background 120ms ease;
}

.dw-member:hover{
  background: rgba(26,18,85,0.08);
}

.dw-avatar-wrap{
  position: relative;
  flex-shrink: 0;
}

.dw-avatar{
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  background: var(--bg);
  display: block;
  object-fit: cover;
}

.dw-presence-dot{
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid var(--bg);
}
.dw-presence-dot.online{ background: #3ba55c; }
.dw-presence-dot.idle{ background: #d99a1b; }
.dw-presence-dot.dnd{ background: #c1442e; }

.dw-member-name{
  font-size: 12.5px;
  font-weight: 400;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dw-msg{
  font-size: 12px;
  color: var(--ink);
  opacity: 0.75;
  padding: 10px 0;
  text-align: center;
}

.dw-join-btn{
  display: block;
  text-align: center;
  color: var(--ink);
  background: rgba(255,255,255,0.14);
  border: 1px solid var(--ink);
  border-radius: 60px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  padding: 9px 16px;
  transition: transform 120ms ease;
}

.dw-join-btn:hover{
  transform: scale(0.97);
}

.dw-join-btn:active{
  transform: scale(0.94);
}

@media (max-width: 520px){
  .dw-widget{
    padding: 14px 14px 16px;
  }
  .dw-top-row{
    flex-wrap: wrap;
  }
}
.dw-avatar-blank{
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  background: var(--bg);
}

/* ===== Responsive ===== */
@media (max-width: 520px){
  :root{
    --frame-top-pad: 74px;
    --logo-out-top: -44px;
    --logo-width: 330px;
    --avatar-size: 80px;
    --avatar-over: -42px;
    --handle-gap: 68px;
    --sns-gap-to-frame: 14px;
  }

  .page{
    padding-top: 80px;
  }

  .sns-rail{
    left: 10px;
    transform: none;
    top: 110px;
  }

  .frame{
    padding: var(--frame-top-pad) 0px 12px;
  }

  .block-title{
    font-size: 16px;
  }
.schedule{
 padding: 18px;
}
  .schedule li{
    gap: 10px;
  }

  .tag{
    justify-self: start;
  }
.banner-btn{
    width: 110px;
    height: 40px;
    right: 10px;
    bottom: 8px;
  }

  .btn-main{
    font-size: 11px;
  }

  .btn-sub{
    font-size: 9px;
  }
    .footer{
    margin-top: 24px;
  }

  .footer-text{
    font-size: 10px;
  }
}
