@charset "utf-8";

/* フォントの読み込み */
@import url('https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+Antique:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Charmonman&display=swap');

/* 全体設定 */
*{
  font-family: 'Zen Kaku Gothic Antique', sans-serif;
  color: #262626;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 2.0em;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  list-style-type: none;
  text-decoration:none;
  -webkit-appearance: none;
}

body{
  width: 100vw;
  overflow-x: hidden;
  background-color: #F5F5F5;
}

.wrap{
  max-width: 100vw;
  min-height: 100vh;
  position: relative;
  margin: 0 auto;
  display: flex;
  background: #FFF;
}

/* リンク文字 */
a{
  transition: 0.2s;
  border-bottom: 1px solid #B5B5B5;
}
a:hover{
  color: #B59C36;
  border-bottom: none;
}

/* 強調文 */
strong{
  font-weight: 700;
  color: #D82B4C;
}

/* 見出し */
h1{
  font-size: 20px;
  letter-spacing: 0.15em;
  font-weight: 400;
}

h2{
  font-family: 'Charmonman', 'Zen Kaku Gothic Antique', cursive;
  font-size: 20px;
  padding-bottom: 5px;
  margin-top: 10px;
}

/* ★小さい宝石 → 小さい月 */
h2::before{
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 5px;
  margin-bottom: -3px;
  position: relative;
  border-radius: 50%;
  background: #f3e7c9;
  box-shadow: 0 0 6px rgba(191,161,96,.5);
}

h3{
  font-family: 'Charmonman', 'Zen Kaku Gothic Antique', cursive;
  font-size: 14px;
  border-bottom: 4px double #262626;
  width: fit-content;
  margin: 20px 0 5px;
}

/* 2カラムの構成 */
header{
  width: 30%;
  height: (100vh － 60vh);
  text-align: center;
  position: sticky;
  top: 0;
  padding: 80px 30px 0;
  background-color: #F5F5F5;
  z-index: 99;
}

main{
  width: 70%;
  padding: 40px 15% 0 5%;
}

/* ===== 月アイコン ===================== */
/* ベース（位置だけ共通） */
.mv{
  position: relative;
  margin: 40px auto 20px;
}

/* 左メニューの月：小さめの正円（そのまま） */
header .mv{
  width: 40px;
  height: 40px;
  margin: 0 auto 20px;
}

/* 中央の月：かなり小さめに（トタイ3文字くらい） */
.top .mv{
  width: 90px;   /* ★ここでサイズ調整（PC） */
  height: 90px;
}

/* まんまる満月（左も中央も共通） */
.mv::before{
  content:'';
  position:absolute;
  top:50%;
  left:50%;
  width:100%;
  height:100%;
  transform:translate(-50%,-50%);
  border-radius:50%;
  background: radial-gradient(circle at 30% 30%,
              #ffffff,
              #f8f0d5 55%,
              #e4cc8d 100%);
  box-shadow:
    0 0 26px rgba(240,215,140,.9),
    0 14px 22px rgba(0,0,0,.10);
}

/* ヘッダーメニュー（文字側） */
header a{
  border-bottom: none;
}

header h1{
  font-size: 14px;
}

.nav{
  width: 100%;
  margin-top: 50px;
}
.nav li{
  padding-bottom: 20px;
}
.nav li a{
  font-family: 'Charmonman', 'Zen Kaku Gothic Antique', cursive;
  font-size: 16px;
}

.dotted{
  width: 25px;
  height: 1px;
  border-top: 1px dotted #262626;
  margin: 20px auto 30px;
}

.typcn-heart-full-outline{
  font-size: 20px;
  color: #D82B4C;
  transition: 0.2s;
  padding-left: 3px;
}
.typcn-heart-full-outline:hover{
  font-size: 23px;
  color: #262626;
}

/* セクション（見出し＋本文のセット） */
.section+.section{
  margin-top: 70px;
}

/* TOPページ メインコンテンツ */
.top{
  text-align: center;
}

/* 英字 */
.en{
  font-family: 'Charmonman', 'Zen Kaku Gothic Antique', cursive;
  font-size: 14px;
}
.en-ttl{
  font-size: 18px;
}

/* last up ボックス */
.sub{
  width: fit-content;
  padding: 20px;
  border: 1px dotted #262626;
  margin: 50px auto 0;
}

/* 入力フォームと送信ボタン */
input[type="text"],input[type="radio"],input[type="button"],
input[type="reset"],input[type="submit"],select,textarea{
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  -webkit-box-shadow: none;
  box-shadow: none;
  background: #FFF;
  border-radius: 0;
  color: #262626;
  border:1px solid #262626;
  padding: 0 5px;
  width: 30em;
  height:8.0em;
}
textarea{
  margin-bottom: 10px;
}
input:focus, textarea:focus{
  background-color: #F8F8F8;
  outline: none;
  width: 30em;
  height:8.0em;
}

input[type="submit"]{
  width: auto;
  font-size: 11px;
  height: 28px;
  background-color: #262626;
  border: none;
  color: #FFF;
  padding: 0 10px;
  cursor: pointer;
  transition: 0.2s;
}
input[type="submit"]:hover{
  background-color: #B59C36;
  color: #FFF;
}

/* 名前変換フォーム */
.dream{
  display: flex;
}
.dream input{
  width: 7em;
  height: 30px;
  margin-right: 10px;
  padding: 2px 5px 1px;
}
.dream input[type="submit"]{
  width: auto;
  height: 30px;
  padding: 0 10px;
}

/* 小説一覧 */
.long{
  width: 100%;
  display: flex;
  gap: 15px;
  margin-top: 20px;
}
.long a{
  border-bottom: none;
  font-weight: 700;
}

.novel-img{
  width: 50px;
  height: 50px;
  object-fit: cover;
}

/* 拍手 */
.clap{
  width: 100vw;
  height: 100vh;
  text-align: center;
  padding-top: 30px;
  background-color: #F5F5F5;
}
.clap .inner{
  width: 330px;
  margin: 0 auto;
  padding: 50px 20px 70px;
  border: 1px solid #D5C584;
  background-color: #FFF;
}
.clap img{
  width: 200px;
}

.message{
  display: flex;
  gap: 5px;
  justify-content: center;
  padding-top: 20px;
}
.message input[type="text"]{
  width: 14em;
  height: 30px;
}
.message input[type="submit"]{
  padding: 0 10px;
  height: 30px;
}
.message input[type="submit"]:hover{
  background-color: #D82B4C;
}

/* フッター */
.footer{
  text-align: center;
  margin: 90px auto 60px;
  font-size: 11px;
}

/* 子ページ用（wrap に sub が付いているとき） */
.wrap.sub{
  display: block;                 /* 左右2カラムをやめて1カラムにする */
}

.wrap.sub main{
  width: 100%;                    /* 横幅いっぱいに */
  padding: 40px 7% 60px;          /* 上下左右の余白だけちょっとつける */
}

/* ===========================
   子ページ（wrap.sub）のレイアウト
   =========================== */

.wrap.sub{
  display: block;          /* 2カラム → 1カラムへ */
  background: #FFF;        /* 背景を全面白にする */
  width: 100%;             /* 横幅いっぱい */
  min-height: 100vh;
  padding: 0;              /* 不要な余白を削除 */
}

/* 子ページは header を非表示にする */
.wrap.sub header{
  display: none;
}

/* 子ページの main を全幅＆中央寄せ */
.wrap.sub main{
  width: 100%;
  max-width: 900px;        /* ← スマホだと100%、PCだと900px以内で読みやすい */
  margin: 0 auto;          /* 中央寄せ */
  padding: 40px 20px 80px; /* 上下左右の余白 */
  background: #FFF;        /* 念のため白背景 */
  box-sizing: border-box;
}

/* 不要な点線枠を消す（NieruのベースCSS対策） */
.wrap.sub main > div,
.wrap.sub .section{
  border: none !important;
}

/* ===========================
   子ページのレイアウト調整
   =========================== */

/* 子ページは main 全体を左寄せベースにする */
.wrap.sub main{
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 40px 0 80px;
  text-align: left;          /* ← ここで中央寄せをリセット */
  box-sizing: border-box;
}

/* 中身を入れる箱（幅を決めて中央に置く） */
.wrap.sub .page{
  max-width: 520px;          /* 文章幅（広くしたかったらここを増やす） */
  margin: 0 auto;            /* 画面の中央に箱だけを置く */
  padding: 0 20px;
}

/* 見出しと本文のちょっとした余白調整 */
.wrap.sub .page h2{
  margin: 40px 0 20px;
}

.wrap.sub .page h3{
  margin-top: 30px;
}

/* 820px以下のデバイスでの見え方 */
@media screen and (max-width: 820px) {

  header{
    width: 10%;
    padding: 0;
  }

  main{
    width: 90%;
    padding: 40px 7% 0;
  }

  /* スマホ時の中央の月はさらに小さく */
  .top .mv{
    width: 70px;   /* ★スマホサイズ */
    height: 70px;
    margin: 30px auto 10px;
  }

  h1{
    font-size: 16px;
  }

  .en-ttl{
    font-size: 13px;
  }

  header h1,header .mv{
    display: none;
  }

  header .nav{
    margin-top: 0;
  }
  header .nav li a{
    writing-mode: vertical-rl;
  }

  .dotted{
    transform: rotate(90deg);
  }

  header .outer{
    width: 100%;
    height: 100vh;
    position: relative;
  }
  header .inner{
    position: absolute;
    left: 50%;
    top: 40px;
    transform: translate(-50%, -40px);
  }

  textarea{
    width: 100%;
    margin-bottom: 0;
  }
}

/* ===========================
   子ページ用レイアウト
   （ラップだけで完結させる）
   =========================== */

.subpage{
  max-width: 700px;          /* 文章エリアの幅 */
  margin: 40px auto 80px;    /* 上・下に余白 / 中央寄せ */
  padding: 40px 20px 80px;   /* 中の余白 */
  background: #FFF;          /* 紙の色 */
  box-sizing: border-box;
}

/* 子ページ内の見出しとか */
.subpage h2{
  font-family: 'Charmonman', 'Zen Kaku Gothic Antique', cursive;
  font-size: 24px;
  margin: 10px 0 30px;
}

/* h2 の左の小さい月（トップと似た感じ） */
.subpage h2::before{
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  margin-bottom: 2px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%,
              #ffffff,
              #f8f0d5 55%,
              #e4cc8d 100%);
  box-shadow: 0 0 10px rgba(240,215,140,.6);
}

/* 本文・リンクなどは普通に左揃え */
.subpage p{
  margin: 0 0 10px;
}

.subpage .long{
  margin-top: 30px;
}

/* ===============================
   色の上書き設定
   =============================== */

/* 強調（strong） */
strong {
  color: #8da0b6 !important;
}

h1,
h2,
h3 {
  color: #594e52;
}

/* last up... の箱と、子ページの箱の文字色 */
.sub,
.sub p {
  color: #594e52;
}

.subpage,
.subpage p {
  color: #594e52;
}