@charset "utf-8";
@import url("https://fonts.googleapis.com/css?family=Exo+2");


/* ==========================
   Variables (Win95)
   ========================== */
:root{
  --w95-bg: #c0c0c0;
  --w95-border-light: #ffffff;
  --w95-border-mid: #dfdfdf;
  --w95-border-dark: #808080;
  --w95-border-black: #000000;
  --w95-title: #000080;
  --w95-title-text: #ffffff;
  --w95-text: #000000;


  --page-bg: #4fa3a6;
  --container: 980px;
}


/* ==========================
   Base
   ========================== */
*,
*::before,
*::after{
  box-sizing: border-box;
}


html{
  font-size: 62.5%;
  overflow-y: scroll;
  -webkit-text-size-adjust: 100%;
}


body{
  margin: 0;
  background: var(--page-bg);
  color: #000;
  font-size: 1.3rem;
  font-family: "メイリオ","ヒラギノ角ゴ",sans-serif;
  letter-spacing: 0.2em;
  line-height: 1.8;


  /* タスクバー分 */
  padding-bottom: 60px;
}


a{
  text-decoration: none;
  color: inherit;
}


/* 余白の暴走を抑える（resetを強くしすぎない） */
p{ margin: 0; padding: 0 1em; }
ul,ol{ margin: 0; padding: 0; list-style: none; }
img{ display:block; max-width:100%; height:auto; }


/* ==========================
   Container layout
   ========================== */
main{
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}


main a{ color: #666; }


/* ==========================
   Header
   - 「headerがflexのまま残ってる」事故を潰す
   ========================== */
header{
  display: block; /* ← ここ重要 */
}


#site-header{
  width: 100%;
  max-width: var(--container);
  margin: 16px auto;
  text-align: center;
}


#site-header img{
  margin: 0 auto;
  width: 600px;      /* 基準サイズ */
  max-width: 100%;
  height: auto;
  image-rendering: pixelated;
}


/* welcome等：ヘッダーを出したくないページ */
.no-header #site-header{
  display: none;
}


/* ==========================
   Win95 window
   ========================== */
.w95-window{
  width: min(92vw, 920px);
  margin: 28px auto;
  background: var(--w95-bg);
  color: var(--w95-text);


  border-top: 2px solid var(--w95-border-light);
  border-left: 2px solid var(--w95-border-light);
  border-right: 2px solid var(--w95-border-black);
  border-bottom: 2px solid var(--w95-border-black);


  box-shadow:
    inset -2px -2px 0 var(--w95-border-dark),
    inset  2px  2px 0 var(--w95-border-mid);


  overflow: hidden; /* welcome画像はみ出し保険 */
}


.w95-titlebar{
  background: var(--w95-title);
  color: var(--w95-title-text);
  font-weight: bold;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}


.w95-title{
  display: inline-flex;
  align-items: center;
  gap: 6px;
}


.w95-title-ico{
  width: 16px;
  height: 16px;
  image-rendering: pixelated;
}


.w95-body{
  padding: 14px 12px 16px;
  background: #fff;
  margin: 10px;
  border: 1px solid var(--w95-border-dark);
}


.w95-body p{ margin: 6px 0; }


/* welcome画像は必ず枠内に */
.welcome-gif{
  width: 100%;
  max-width: 100%;
  height: auto;
}


/* ==========================
   Welcome ENTER button
   ========================== */
.enter-btn{
  display: inline-block;
  padding: 8px 26px;
  background: #c0c0c0;
  color: #000;
  font-size: 14px;


  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;


  box-shadow:
    inset  1px  1px 0 #dfdfdf,
    inset -1px -1px 0 #808080;
}


.enter-btn:active{
  border-top: 2px solid #404040;
  border-left: 2px solid #404040;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;


  box-shadow:
    inset -1px -1px 0 #dfdfdf,
    inset  1px  1px 0 #808080;
}


/* ==========================
   Stars (HOME only: .info-desktop 内)
   ========================== */
.info-desktop{
  position: relative;
  overflow: hidden;
}


.info-desktop .stars-layer{
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}


.info-desktop > *{
  position: relative;
  z-index: 1;
}


.star{
  position: absolute;
  top: -12px;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 0 6px rgba(255,255,255,0.28);
  user-select: none;
  white-space: nowrap;
  will-change: transform, opacity;
  animation: starFall linear 1;
}


@keyframes starFall{
  0%{ transform: translate3d(0,-10px,0); opacity: 0; }
  8%{ opacity: 1; }
  100%{ transform: translate3d(0,110vh,0); opacity: 0; }
}


/* ==========================
   Contact (HOME)
   ========================== */
.contact-form a{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: bold;
  color: #000;
}
.contact-form img{
  width: 32px;
  height: auto;
  image-rendering: pixelated;
}
.note{ font-size: 12px; opacity: 0.8; }
.small{ font-size: 12px; opacity: 0.85; }
.warning{ color: #c00000; font-weight: bold; font-size: 13px; }
.copyright{ font-size: 11px; text-align: right; opacity: 0.8; }


/* ==========================
   Touch devices only (phones/tablets)
   ========================== */
@media (hover: none) and (pointer: coarse){
  /* 星はスマホでは止める */
  .stars-layer{ display: none !important; }
}



/* ==========================
   Welcome: center ENTER button (robust)
   ========================== */
.enter-btn{
  display: block;
  width: fit-content;
  margin: 12px auto 0;
}
