/* =============================
   styles.css（ブログ1ページ＋ヘッダー右上に検索）
   初心者向けコメント付き
   ============================= */

/* === 1) リセット＆基本設定 ====================== */
/* すべての要素のボックスサイズを「枠線込み」に統一（レイアウト崩れを防ぐ） */
*, *::before, *::after { box-sizing: border-box; }

/* ページ全体の高さを100%にしておく（必要に応じて使える） */
html, body { height: 100%; }

/* 基本の文字設定と行間。日本語では少し広めの行間が読みやすい */
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Noto Sans JP", sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

/* 画像は親の幅を超えないようにする */
img { max-width: 100%; height: auto; display: block; }

/* === 2) カラーテーマ（変数） ==================== */
/* ライトモードの色。あとからここを変えるだけで配色を一括調整可能 */
:root{
  --bg: #f8f8f8;      /* 背景色 */
  --fg: #0f172a;      /* 文字色 */
  --muted: #475569;   /* 補助文字色（薄め） */
  --border: #a9a9a9;  /* 罫線色 */
  --surface: #f8fafc; /* カードなどの面の色 */
  --primary: #0ea5e9; /* アクセント色（リンク・ボタン等） */

  --maxw: 920px;      /* コンテンツ最大幅 */
  --radius: 14px;     /* 角丸 */
  --shadow: 0 8px 24px rgba(2,6,23,.08); /* 影 */
}

/* OSがダークモードのときの配色（自動で切替） */
/* 未実装 */

/* ページ全体の背景色と文字色 */
body { background: var(--bg); color: var(--fg); }

/* リンクの色（アクセント色を使用） */
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* アクセシビリティ用：画面には見せないがスクリーンリーダーには読ませる */
.sr-only{
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* === 3) レイアウト共通 =========================== */
/* 中央寄せの共通コンテナ。左右の余白は画面幅に応じて可変 */
.container{
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(16px, 2vw, 24px);
}

/* === 4) ヘッダー（上部固定＆半透明背景） ======== */
.site-header{
  position: sticky;  /* スクロールしても上に張り付く */
  top: 0;
  z-index: 40;
  background: color-mix(in oklab, var(--bg) 90%, transparent); /* 背景をわずかに透過風 */
  backdrop-filter: blur(8px); /* 背景をぼかしてガラス風に */
  border-bottom: 1px solid var(--border);
}

/* ヘッダー内の左右配置（ロゴ・検索・メニュー） */
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 10px;
}

/* サイト名＆ロゴ */
.brand{
  display: flex; align-items: center; gap: 10px;
  font-weight: 700;
}
.logo{
  inline-size: 28px; block-size: 28px;
  border-radius: 8px;
  background: radial-gradient(100% 100% at 30% 30%, var(--primary), #22d3ee);
  box-shadow: var(--shadow);
}
.brand-name{ font-size: 17px; }

/* === 5) ヘッダー右側（検索とナビボタン） ========= */
/* 検索フォームとメニュー開閉ボタンを横並び */
.header-actions{
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0; /* 狭い画面でのオーバーフロー防止 */
}

/* 検索テキストボックス */
.search-input{
  width: clamp(140px, 24vw, 240px); /* 画面幅に応じて自動で伸び縮み */
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--fg);
  outline: none;
}
.search-input:focus{
  border-color: color-mix(in oklab, var(--primary) 60%, var(--border));
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary) 25%, transparent);
}

/* 検索ボタン */
.search-btn{
  padding: 9px 12px;
  border: 1px solid color-mix(in oklab, var(--primary) 60%, var(--border));
/*border-radius: 10px;*/
  background: var(--primary);
  color: #fff;
  cursor: pointer;
}
.search-btn:hover{ filter: brightness(1.05); }

/* ハンバーガー（モバイル） */
.nav-toggle{
  display: none;                /* PCでは非表示 */
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg);
  padding: 8px 10px;
  border-radius: 10px;
}
.nav-toggle .bars{
  display: inline-block;
  inline-size: 18px; block-size: 2px;
  background: currentColor;
  box-shadow: 0 6px 0 0 currentColor, 0 12px 0 0 currentColor; /* 3本線に見せる */
}

/* === 6) グローバルナビ（PC/モバイル） ========== */
.primary-nav{ display: flex; }
.nav-list{
  display: flex; gap: 6px;
  list-style: none; margin: 0; padding: 0;
}
.nav-list a{
  display: inline-block;
  padding: 8px 12px;
  border-radius: 10px;
}
.nav-list a:hover{
  background: color-mix(in oklab, var(--primary) 12%, transparent);
  text-decoration: none;
}

/* 画面幅が狭いときのナビ表示（ドロップダウン風） */
@media (max-width: 880px){
  .nav-toggle{ display: inline-flex; }        /* モバイルで表示 */
  .primary-nav{
    position: absolute;
    inset-inline: 16px;
    top: 54px;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 14px;
    box-shadow: var(--shadow);
    display: none;                            /* 最初は閉じる */
  }
  .primary-nav.open{ display: block; }
  .nav-list{ flex-direction: column; padding: 8px; }

  /* 検索欄が窮屈なときは幅を少し短くする */
  .search-input{ width: clamp(120px, 32vw, 200px); }
}

/* === 7) 記事ヘッダー（タイトルなど） ============ */
.layout{ padding-block: 20px; }
.article-header{ margin-block: 10px 18px; }
.eyebrow{
  font-size: 12px; color: var(--muted);
  letter-spacing: .06em; text-transform: uppercase;
}
.title{
  font-size: clamp(22px, 4.6vw, 40px);
  line-height: 1.15;
  margin: .2em 0;
}
.meta{ color: var(--muted); font-size: 14px; }
.hero{
  margin: 14px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}
.hero figcaption{
  padding: 8px 12px;
  color: var(--muted);
  font-size: 13px;
}

/* === 8) 本文（読みやすさ重視） ================== */
.prose{ font-size: clamp(16px, 2.1vw, 18.5px); line-height: 1.9; }
.prose h2{
  font-size: clamp(20px, 2.8vw, 28px);
  line-height: 1.25;
  margin: 1.6em 0 .6em;
}
.prose h3{ font-size: clamp(18px, 2.5vw, 22px); margin: 1.2em 0 .4em; }
.prose p{ margin: .9em 0; }
.prose ul, .prose ol{ padding-left: 1.2em; margin: .8em 0; }
.prose li{ margin: .3em 0; }
.prose blockquote{
  margin: 1em 0; padding: .6em 1em;
  border-left: 3px solid color-mix(in oklab, var(--primary) 40%, transparent);
  background: color-mix(in oklab, var(--primary) 6%, transparent);
}
.prose code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .95em;
  padding: .1em .3em;
  border-radius: 6px;
  background: color-mix(in oklab, var(--fg) 10%, transparent);
}
.prose pre{
  padding: 12px 14px;
  border-radius: 12px;
  background: color-mix(in oklab, var(--fg) 12%, transparent);
  overflow: auto;
}
figure{ margin: 1em 0; }
figcaption{ color: var(--muted); font-size: .9em; margin-top: .4em; }

/* === 9) 表（横スクロール対応） ================== */
.table-wrap{
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
}
table{ border-collapse: collapse; min-width: 560px; width: 100%; }
th, td{ padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; }
thead th{ position: sticky; top: 0; background: var(--surface); }

/* 注意枠（メモなど） */
.note{
  margin: 1em 0; padding: 10px 12px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  background: color-mix(in oklab, var(--primary) 5%, transparent);
}

/* === 10) 記事フッター（著者情報） ============== */
.article-footer{
  margin-top: 26px; padding-top: 14px;
  border-top: 1px solid var(--border);
}
.author{ display: flex; align-items: center; gap: 12px; }
.avatar{
  inline-size: 48px; block-size: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
}
.author-name{ font-weight: 600; margin: 0; }
.author-bio{ margin: 2px 0 0; color: var(--muted); font-size: 14px; }

/* === 11) サイト全体フッター ====================== */
.site-footer{ margin-top: 28px; border-top: 1px solid var(--border); }
.footer-inner{ padding: 18px 0; color: var(--muted); font-size: 14px; }

/* === 12) 検索結果オーバーレイ ==================== */
/* 画面全体を覆う黒半透明のレイヤー（最初は非表示） */
#searchOverlay{
  display: none;              /* JSで block に切り替え */
  position: fixed;
  inset: 0;                   /* top/right/bottom/left を一括指定 */
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  overflow-y: auto;           /* 結果が長い場合はスクロール */
}

/* オーバーレイ中央の白いカード */
#searchResults{
  background: #fff;
  color: #111;
  margin: 5% auto;
  padding: 20px;
  width: 80%;
  max-width: 600px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

/* 閉じるボタン（右上） */
#closeBtn{
  float: right;
  cursor: pointer;
  background: #f44336;
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
}
#closeBtn:hover{ filter: brightness(1.05); }

/* ダークモードで結果カードの文字色を読みやすく */
@media (prefers-color-scheme: dark){
  #searchResults{
    background: #111827;
    color: #e5e7eb;
  }
}
/* ヘッダーを3カラムに（左：ブランド / 中央：ナビ / 右：検索） */
.header-inner{
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

/* ナビは中央、検索は右端 */
.primary-nav{ justify-self: center; }
.header-actions{ justify-self: end; display: flex; align-items: center; gap: 8px; }

/* 狭い画面での調整：検索幅を抑え、ナビはドロップダウンへ */
@media (max-width: 880px){
  .header-inner{
    grid-template-columns: auto 1fr auto; /* そのままでもOK */
  }
  .search-input{ width: clamp(120px, 40vw, 200px); }
}

/* === 00) ======================================= */
/* === 99) 表示位置 =============================== */
/* 縦・中央揃え */
.button-container {
  display: flex;
  flex-direction: column; /* これで縦並びになる */
  align-items: center;
  gap: 30px; /* ボタン間のスペース（ピクセル） */
}

/* === 00) おしゃれな見出し ======================= */
/* リボン風（青） */
.heading-blue {
    position: relative;
    width: 290px;
    margin: 0 auto;
    padding: .5em .7em;
    background-color: #2589d0;
    color: #fff;
    text-align: center;
}

.heading-blue::before,
.heading-blue::after {
    position: absolute;
    bottom: -10px;
    z-index: -1;
    border-style: solid;
    border-color: #1579c0;
    content: '';
}

.heading-blue::before {
    left: -30px;
    border-width: 25px 25px 25px 15px;
    border-left-color: transparent;
}

.heading-blue::after {
    right: -30px;
    border-width: 25px 15px 25px 25px;
    border-right-color: transparent;
}

.heading-blue span::before,
.heading-blue span::after {
    position: absolute;
    bottom: -10px;
    width: 10px;
    height: 10px;
    background-color: #002970;
    content: '';
}

.heading-blue span::before {
    left: 0;
    clip-path: polygon(0 0, 100% 0%, 100% 100%);
}

.heading-blue span::after {
    right: 0;
    clip-path: polygon(0 0, 100% 0%, 0% 100%);
}

/* リボン風（緑） */
.heading-green {
    position: relative;
    width: 290px;
    margin: 0 auto;
    padding: .5em .7em;
    background-color: #1eaa39;
    color: #fff;
    text-align: center;
}

.heading-green::before,
.heading-green::after {
    position: absolute;
    bottom: -10px;
    z-index: -1;
    border-style: solid;
    border-color: #0e9a29;
    content: '';
}

.heading-green::before {
    left: -30px;
    border-width: 25px 25px 25px 15px;
    border-left-color: transparent;
}

.heading-green::after {
    right: -30px;
    border-width: 25px 15px 25px 25px;
    border-right-color: transparent;
}

.heading-green span::before,
.heading-green span::after {
    position: absolute;
    bottom: -10px;
    width: 10px;
    height: 10px;
    background-color: #004a00;
    content: '';
}

.heading-green span::before {
    left: 0;
    clip-path: polygon(0 0, 100% 0%, 100% 100%);
}

.heading-green span::after {
    right: 0;
    clip-path: polygon(0 0, 100% 0%, 0% 100%);
}

/* リボン風（赤） */
.heading-red {
    position: relative;
    width: 290px;
    margin: 0 auto;
    padding: .5em .7em;
    background-color: #e13134;
    color: #fff;
    text-align: center;
}

.heading-red::before,
.heading-red::after {
    position: absolute;
    bottom: -10px;
    z-index: -1;
    border-style: solid;
    border-color: #d12124;
    content: '';
}

.heading-red::before {
    left: -30px;
    border-width: 25px 25px 25px 15px;
    border-left-color: transparent;
}

.heading-red::after {
    right: -30px;
    border-width: 25px 15px 25px 25px;
    border-right-color: transparent;
}

.heading-red span::before,
.heading-red span::after {
    position: absolute;
    bottom: -10px;
    width: 10px;
    height: 10px;
    background-color: #810000;
    content: '';
}

.heading-red span::before {
    left: 0;
    clip-path: polygon(0 0, 100% 0%, 100% 100%);
}

.heading-red span::after {
    right: 0;
    clip-path: polygon(0 0, 100% 0%, 0% 100%);
}

/* 見出し（王冠） */
.heading-crown {
    display: flex;
    align-items: center;
    gap: 0 7px;
    color: #333333;
}

.heading-crown::before {
    width: 1.25em;
    height: 1.25em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2.00488 19H22.0049V21H2.00488V19ZM2.00488 5L7.00488 8L12.0049 2L17.0049 8L22.0049 5V17H2.00488V5Z' fill='%23ffb500'%3E%3C/path%3E%3C/svg%3E");
    content: '';
}

/* === 99) ボタン ================================ */
/* ボタン（青） */
.button-blue,
.button-blue span {
    display: flex;
    justify-content: center;
    align-items: center;
}

.button-blue {
    position: relative;
    width: 250px;
    margin: 0 auto;
    padding: 0;
    border-radius: 5px;
    border: none;
    font-size: 1em;
}

.button-blue::before {
    position: absolute;
    top: 7px;
    z-index: -1;
    width: 100%;
    height: 100%;
    border: 2px solid #000;
    border-radius: inherit;
    box-sizing: inherit;
    box-shadow: 0 5px 0 0 rgba(0, 0, 0, .2);
    background-color: #0059a0;
    content: '';
}

.button-blue span {
    width: 100%;
    padding: .9em 2em;
    border: 2px solid #000;
    border-radius: inherit;
    background-color: #2589d0;
    color: #000;
    font-weight: 600;
    line-height: 1.5;
}

.button-blue span::after {
    display: inline-block;
    transform: rotate(45deg);
    width: 5px;
    height: 5px;
    margin-left: 10px;
    border-top: 2px solid #000;
    border-right: 2px solid #000;
    content: '';
}

.button-blue:hover::before {
    transition: box-shadow .2s;
    box-shadow: 0 3px 0 0 rgba(0, 0, 0, .2);
}

.button-blue:hover span {
    transition: transform .2s;
    transform: translateY(2px);
}

/* ボタン（緑） */
.button-green,
.button-green span {
    display: flex;
    justify-content: center;
    align-items: center;
}

.button-green {
    position: relative;
    width: 250px;
    margin: 0 auto;
    padding: 0;
    border-radius: 5px;
    border: none;
    font-size: 1em;
}

.button-green::before {
    position: absolute;
    top: 7px;
    z-index: -1;
    width: 100%;
    height: 100%;
    border: 2px solid #000;
    border-radius: inherit;
    box-sizing: inherit;
    box-shadow: 0 5px 0 0 rgba(0, 0, 0, .2);
    background-color: #007909;
    content: '';
}

.button-green span {
    width: 100%;
    padding: .9em 2em;
    border: 2px solid #000;
    border-radius: inherit;
    background-color: #1ea939;
    color: #000;
    font-weight: 600;
    line-height: 1.5;
}

.button-green span::after {
    display: inline-block;
    transform: rotate(45deg);
    width: 5px;
    height: 5px;
    margin-left: 10px;
    border-top: 2px solid #000;
    border-right: 2px solid #000;
    content: '';
}

.button-green:hover::before {
    transition: box-shadow .2s;
    box-shadow: 0 3px 0 0 rgba(0, 0, 0, .2);
}

.button-green:hover span {
    transition: transform .2s;
    transform: translateY(2px);
}

/* ボタン（赤） */
.button-red,
.button-red span {
    display: flex;
    justify-content: center;
    align-items: center;
}

.button-red {
    position: relative;
    width: 250px;
    margin: 0 auto;
    padding: 0;
    border-radius: 5px;
    border: none;
    font-size: 1em;
}

.button-red::before {
    position: absolute;
    top: 7px;
    z-index: -1;
    width: 100%;
    height: 100%;
    border: 2px solid #000;
    border-radius: inherit;
    box-sizing: inherit;
    box-shadow: 0 5px 0 0 rgba(0, 0, 0, .2);
    background-color: #b10104;
    content: '';
}

.button-red span {
    width: 100%;
    padding: .9em 2em;
    border: 2px solid #000;
    border-radius: inherit;
    background-color: #e13134;
    color: #000;
    font-weight: 600;
    line-height: 1.5;
}

.button-red span::after {
    display: inline-block;
    transform: rotate(45deg);
    width: 5px;
    height: 5px;
    margin-left: 10px;
    border-top: 2px solid #000;
    border-right: 2px solid #000;
    content: '';
}

.button-red:hover::before {
    transition: box-shadow .2s;
    box-shadow: 0 3px 0 0 rgba(0, 0, 0, .2);
}

.button-red:hover span {
    transition: transform .2s;
    transform: translateY(2px);
}

/* ヒントボタン（黄） */
.hint-button__wrap input {
    display: none;
}

.hint-button__open-label,
.hint-button__close-label {
    cursor: pointer;
}

.hint-button__open-label {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 250px;
    margin:0 auto;
    padding: .7em 2em .7em 3.2em;
    border: none;
    border-radius: 5px;
    background-color: #F0BB40;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='rgba(255,255,255,1)'%3E%3Cpath d='M9.97308 18H11V13H13V18H14.0269C14.1589 16.7984 14.7721 15.8065 15.7676 14.7226C15.8797 14.6006 16.5988 13.8564 16.6841 13.7501C17.5318 12.6931 18 11.385 18 10C18 6.68629 15.3137 4 12 4C8.68629 4 6 6.68629 6 10C6 11.3843 6.46774 12.6917 7.31462 13.7484C7.40004 13.855 8.12081 14.6012 8.23154 14.7218C9.22766 15.8064 9.84103 16.7984 9.97308 18ZM10 20V21H14V20H10ZM5.75395 14.9992C4.65645 13.6297 4 11.8915 4 10C4 5.58172 7.58172 2 12 2C16.4183 2 20 5.58172 20 10C20 11.8925 19.3428 13.6315 18.2443 15.0014C17.624 15.7748 16 17 16 18.5V21C16 22.1046 15.1046 23 14 23H10C8.89543 23 8 22.1046 8 21V18.5C8 17 6.37458 15.7736 5.75395 14.9992Z'%3E%3C/path%3E%3C/svg%3E");
    background-position: left 3em center;
    background-size: 1.2em;
    background-repeat: no-repeat;
    color: #fff;
    font-weight: 600;
    font-size: 1em;
}

.hint-button__open-label:hover {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 250px;
    margin: 0 auto;
    padding: .7em 2em .7em 3.2em;
    border: none;
    border-radius: 5px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='rgba(240,187,64,1)'%3E%3Cpath d='M9.97308 18H11V13H13V18H14.0269C14.1589 16.7984 14.7721 15.8065 15.7676 14.7226C15.8797 14.6006 16.5988 13.8564 16.6841 13.7501C17.5318 12.6931 18 11.385 18 10C18 6.68629 15.3137 4 12 4C8.68629 4 6 6.68629 6 10C6 11.3843 6.46774 12.6917 7.31462 13.7484C7.40004 13.855 8.12081 14.6012 8.23154 14.7218C9.22766 15.8064 9.84103 16.7984 9.97308 18ZM10 20V21H14V20H10ZM5.75395 14.9992C4.65645 13.6297 4 11.8915 4 10C4 5.58172 7.58172 2 12 2C16.4183 2 20 5.58172 20 10C20 11.8925 19.3428 13.6315 18.2443 15.0014C17.624 15.7748 16 17 16 18.5V21C16 22.1046 15.1046 23 14 23H10C8.89543 23 8 22.1046 8 21V18.5C8 17 6.37458 15.7736 5.75395 14.9992Z'%3E%3C/path%3E%3C/svg%3E");
    background-position: left 3em center;
    background-size: 1.2em;
    background-repeat: no-repeat;
    color: #F0BB40;
    outline: 1px solid #F0BB40;
    font-weight: 600;
    font-size: 1em;
}

.hint-button {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
}

.hint-button__open-input:checked + label + input + .hint-button {
    display: block;
    animation: hint-button-animation .6s;
}

.hint-button__content-wrap {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 650px;
    background-color: #fefefe;
    z-index: 2;
    border-radius: 5px;
}

.hint-button__close-label {
    background-color: #777;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 20px;
    width: 36px;
    height: 36px;
    line-height: 1.6;
    text-align: center;
    display: table-cell;
    position: fixed;
    top: -15px;
    right: -2%;
    z-index: 99999;
    font-size: 1.3em;
}

.hint-button__content {
    max-height: 50vh;
    overflow-y: auto;
    padding: 39px 45px 40px;
}

.hint-button__background {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .45);
    z-index: 1;
}

@keyframes hint-button-animation {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@media only screen and (max-width: 520px) {
    .hint-button__open-label {
        max-width: 90%;
        padding: .94em 2.1em .94em 2.6em;
    }

    .hint-button__close-label {
        top: -17px;
        right: -4%;
    }

    .hint-button__content-wrap {
        width: 90vw;
    }

    .hint-button__content {
        padding: 33px 21px 35px;
        max-width: 100%;
    }
}

.hint-button01__wrap input {
    display: none;
}

.hint-button01__open-label,
.hint-button01__close-label {
    cursor: pointer;
}

.hint-button01__open-label {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 250px;
    margin:0 auto;
    padding: .7em 2em .7em 3.2em;
    border: none;
    border-radius: 5px;
    background-color: #F0BB40;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='rgba(255,255,255,1)'%3E%3Cpath d='M9.97308 18H11V13H13V18H14.0269C14.1589 16.7984 14.7721 15.8065 15.7676 14.7226C15.8797 14.6006 16.5988 13.8564 16.6841 13.7501C17.5318 12.6931 18 11.385 18 10C18 6.68629 15.3137 4 12 4C8.68629 4 6 6.68629 6 10C6 11.3843 6.46774 12.6917 7.31462 13.7484C7.40004 13.855 8.12081 14.6012 8.23154 14.7218C9.22766 15.8064 9.84103 16.7984 9.97308 18ZM10 20V21H14V20H10ZM5.75395 14.9992C4.65645 13.6297 4 11.8915 4 10C4 5.58172 7.58172 2 12 2C16.4183 2 20 5.58172 20 10C20 11.8925 19.3428 13.6315 18.2443 15.0014C17.624 15.7748 16 17 16 18.5V21C16 22.1046 15.1046 23 14 23H10C8.89543 23 8 22.1046 8 21V18.5C8 17 6.37458 15.7736 5.75395 14.9992Z'%3E%3C/path%3E%3C/svg%3E");
    background-position: left 3em center;
    background-size: 1.2em;
    background-repeat: no-repeat;
    color: #fff;
    font-weight: 600;
    font-size: 1em;
}

.hint-button01__open-label:hover {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 250px;
    margin: 0 auto;
    padding: .7em 2em .7em 3.2em;
    border: none;
    border-radius: 5px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='rgba(240,187,64,1)'%3E%3Cpath d='M9.97308 18H11V13H13V18H14.0269C14.1589 16.7984 14.7721 15.8065 15.7676 14.7226C15.8797 14.6006 16.5988 13.8564 16.6841 13.7501C17.5318 12.6931 18 11.385 18 10C18 6.68629 15.3137 4 12 4C8.68629 4 6 6.68629 6 10C6 11.3843 6.46774 12.6917 7.31462 13.7484C7.40004 13.855 8.12081 14.6012 8.23154 14.7218C9.22766 15.8064 9.84103 16.7984 9.97308 18ZM10 20V21H14V20H10ZM5.75395 14.9992C4.65645 13.6297 4 11.8915 4 10C4 5.58172 7.58172 2 12 2C16.4183 2 20 5.58172 20 10C20 11.8925 19.3428 13.6315 18.2443 15.0014C17.624 15.7748 16 17 16 18.5V21C16 22.1046 15.1046 23 14 23H10C8.89543 23 8 22.1046 8 21V18.5C8 17 6.37458 15.7736 5.75395 14.9992Z'%3E%3C/path%3E%3C/svg%3E");
    background-position: left 3em center;
    background-size: 1.2em;
    background-repeat: no-repeat;
    color: #F0BB40;
    outline: 1px solid #F0BB40;
    font-weight: 600;
    font-size: 1em;
}

.hint-button01 {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
}

.hint-button01__open-input:checked + label + input + .hint-button01 {
    display: block;
    animation: hint-button01-animation .6s;
}

.hint-button01__content-wrap {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 650px;
    background-color: #fefefe;
    z-index: 2;
    border-radius: 5px;
}

.hint-button01__close-label {
    background-color: #777;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 20px;
    width: 36px;
    height: 36px;
    line-height: 1.6;
    text-align: center;
    display: table-cell;
    position: fixed;
    top: -15px;
    right: -2%;
    z-index: 99999;
    font-size: 1.3em;
}

.hint-button01__content {
    max-height: 50vh;
    overflow-y: auto;
    padding: 39px 45px 40px;
}

.hint-button01__background {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .45);
    z-index: 1;
}

@keyframes hint-button01-animation {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@media only screen and (max-width: 520px) {
    .hint-button01__open-label {
        max-width: 90%;
        padding: .94em 2.1em .94em 2.6em;
    }

    .hint-button01__close-label {
        top: -17px;
        right: -4%;
    }

    .hint-button01__content-wrap {
        width: 90vw;
    }

    .hint-button01__content {
        padding: 33px 21px 35px;
        max-width: 100%;
    }
}

.hint-button02__wrap input {
    display: none;
}

.hint-button02__open-label,
.hint-button02__close-label {
    cursor: pointer;
}

.hint-button02__open-label {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 250px;
    margin:0 auto;
    padding: .7em 2em .7em 3.2em;
    border: none;
    border-radius: 5px;
    background-color: #F0BB40;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='rgba(255,255,255,1)'%3E%3Cpath d='M9.97308 18H11V13H13V18H14.0269C14.1589 16.7984 14.7721 15.8065 15.7676 14.7226C15.8797 14.6006 16.5988 13.8564 16.6841 13.7501C17.5318 12.6931 18 11.385 18 10C18 6.68629 15.3137 4 12 4C8.68629 4 6 6.68629 6 10C6 11.3843 6.46774 12.6917 7.31462 13.7484C7.40004 13.855 8.12081 14.6012 8.23154 14.7218C9.22766 15.8064 9.84103 16.7984 9.97308 18ZM10 20V21H14V20H10ZM5.75395 14.9992C4.65645 13.6297 4 11.8915 4 10C4 5.58172 7.58172 2 12 2C16.4183 2 20 5.58172 20 10C20 11.8925 19.3428 13.6315 18.2443 15.0014C17.624 15.7748 16 17 16 18.5V21C16 22.1046 15.1046 23 14 23H10C8.89543 23 8 22.1046 8 21V18.5C8 17 6.37458 15.7736 5.75395 14.9992Z'%3E%3C/path%3E%3C/svg%3E");
    background-position: left 3em center;
    background-size: 1.2em;
    background-repeat: no-repeat;
    color: #fff;
    font-weight: 600;
    font-size: 1em;
}

.hint-button02__open-label:hover {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 250px;
    margin: 0 auto;
    padding: .7em 2em .7em 3.2em;
    border: none;
    border-radius: 5px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='rgba(240,187,64,1)'%3E%3Cpath d='M9.97308 18H11V13H13V18H14.0269C14.1589 16.7984 14.7721 15.8065 15.7676 14.7226C15.8797 14.6006 16.5988 13.8564 16.6841 13.7501C17.5318 12.6931 18 11.385 18 10C18 6.68629 15.3137 4 12 4C8.68629 4 6 6.68629 6 10C6 11.3843 6.46774 12.6917 7.31462 13.7484C7.40004 13.855 8.12081 14.6012 8.23154 14.7218C9.22766 15.8064 9.84103 16.7984 9.97308 18ZM10 20V21H14V20H10ZM5.75395 14.9992C4.65645 13.6297 4 11.8915 4 10C4 5.58172 7.58172 2 12 2C16.4183 2 20 5.58172 20 10C20 11.8925 19.3428 13.6315 18.2443 15.0014C17.624 15.7748 16 17 16 18.5V21C16 22.1046 15.1046 23 14 23H10C8.89543 23 8 22.1046 8 21V18.5C8 17 6.37458 15.7736 5.75395 14.9992Z'%3E%3C/path%3E%3C/svg%3E");
    background-position: left 3em center;
    background-size: 1.2em;
    background-repeat: no-repeat;
    color: #F0BB40;
    outline: 1px solid #F0BB40;
    font-weight: 600;
    font-size: 1em;
}

.hint-button02 {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
}

.hint-button02__open-input:checked + label + input + .hint-button02 {
    display: block;
    animation: hint-button02-animation .6s;
}

.hint-button02__content-wrap {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 650px;
    background-color: #fefefe;
    z-index: 2;
    border-radius: 5px;
}

.hint-button02__close-label {
    background-color: #777;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 20px;
    width: 36px;
    height: 36px;
    line-height: 1.6;
    text-align: center;
    display: table-cell;
    position: fixed;
    top: -15px;
    right: -2%;
    z-index: 99999;
    font-size: 1.3em;
}

.hint-button02__content {
    max-height: 50vh;
    overflow-y: auto;
    padding: 39px 45px 40px;
}

.hint-button02__background {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .45);
    z-index: 1;
}

@keyframes hint-button02-animation {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@media only screen and (max-width: 520px) {
    .hint-button02__open-label {
        max-width: 90%;
        padding: .94em 2.1em .94em 2.6em;
    }

    .hint-button02__close-label {
        top: -17px;
        right: -4%;
    }

    .hint-button02__content-wrap {
        width: 90vw;
    }

    .hint-button02__content {
        padding: 33px 21px 35px;
        max-width: 100%;
    }
}

.hint-button03__wrap input {
    display: none;
}

.hint-button03__open-label,
.hint-button03__close-label {
    cursor: pointer;
}

.hint-button03__open-label {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 250px;
    margin:0 auto;
    padding: .7em 2em .7em 3.2em;
    border: none;
    border-radius: 5px;
    background-color: #F0BB40;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='rgba(255,255,255,1)'%3E%3Cpath d='M9.97308 18H11V13H13V18H14.0269C14.1589 16.7984 14.7721 15.8065 15.7676 14.7226C15.8797 14.6006 16.5988 13.8564 16.6841 13.7501C17.5318 12.6931 18 11.385 18 10C18 6.68629 15.3137 4 12 4C8.68629 4 6 6.68629 6 10C6 11.3843 6.46774 12.6917 7.31462 13.7484C7.40004 13.855 8.12081 14.6012 8.23154 14.7218C9.22766 15.8064 9.84103 16.7984 9.97308 18ZM10 20V21H14V20H10ZM5.75395 14.9992C4.65645 13.6297 4 11.8915 4 10C4 5.58172 7.58172 2 12 2C16.4183 2 20 5.58172 20 10C20 11.8925 19.3428 13.6315 18.2443 15.0014C17.624 15.7748 16 17 16 18.5V21C16 22.1046 15.1046 23 14 23H10C8.89543 23 8 22.1046 8 21V18.5C8 17 6.37458 15.7736 5.75395 14.9992Z'%3E%3C/path%3E%3C/svg%3E");
    background-position: left 3em center;
    background-size: 1.2em;
    background-repeat: no-repeat;
    color: #fff;
    font-weight: 600;
    font-size: 1em;
}

.hint-button03__open-label:hover {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 250px;
    margin: 0 auto;
    padding: .7em 2em .7em 3.2em;
    border: none;
    border-radius: 5px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='rgba(240,187,64,1)'%3E%3Cpath d='M9.97308 18H11V13H13V18H14.0269C14.1589 16.7984 14.7721 15.8065 15.7676 14.7226C15.8797 14.6006 16.5988 13.8564 16.6841 13.7501C17.5318 12.6931 18 11.385 18 10C18 6.68629 15.3137 4 12 4C8.68629 4 6 6.68629 6 10C6 11.3843 6.46774 12.6917 7.31462 13.7484C7.40004 13.855 8.12081 14.6012 8.23154 14.7218C9.22766 15.8064 9.84103 16.7984 9.97308 18ZM10 20V21H14V20H10ZM5.75395 14.9992C4.65645 13.6297 4 11.8915 4 10C4 5.58172 7.58172 2 12 2C16.4183 2 20 5.58172 20 10C20 11.8925 19.3428 13.6315 18.2443 15.0014C17.624 15.7748 16 17 16 18.5V21C16 22.1046 15.1046 23 14 23H10C8.89543 23 8 22.1046 8 21V18.5C8 17 6.37458 15.7736 5.75395 14.9992Z'%3E%3C/path%3E%3C/svg%3E");
    background-position: left 3em center;
    background-size: 1.2em;
    background-repeat: no-repeat;
    color: #F0BB40;
    outline: 1px solid #F0BB40;
    font-weight: 600;
    font-size: 1em;
}

.hint-button03 {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
}

.hint-button03__open-input:checked + label + input + .hint-button03 {
    display: block;
    animation: hint-button03-animation .6s;
}

.hint-button03__content-wrap {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 650px;
    background-color: #fefefe;
    z-index: 2;
    border-radius: 5px;
}

.hint-button03__close-label {
    background-color: #777;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 20px;
    width: 36px;
    height: 36px;
    line-height: 1.6;
    text-align: center;
    display: table-cell;
    position: fixed;
    top: -15px;
    right: -2%;
    z-index: 99999;
    font-size: 1.3em;
}

.hint-button03__content {
    max-height: 50vh;
    overflow-y: auto;
    padding: 39px 45px 40px;
}

.hint-button03__background {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .45);
    z-index: 1;
}

@keyframes hint-button03-animation {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@media only screen and (max-width: 520px) {
    .hint-button03__open-label {
        max-width: 90%;
        padding: .94em 2.1em .94em 2.6em;
    }

    .hint-button03__close-label {
        top: -17px;
        right: -4%;
    }

    .hint-button03__content-wrap {
        width: 90vw;
    }

    .hint-button03__content {
        padding: 33px 21px 35px;
        max-width: 100%;
    }
}

/**/
/* ツイートボタン（黒） */
.tweet-button {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 250px;
    margin: 0 auto;
    padding: .9em 2em .9em 3.2em;
    border: none;
    border-radius: 5px;
    background-color: #333333;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='rgba(255,255,255,1)'%3E%3Cpath d='M17.6874 3.0625L12.6907 8.77425L8.37045 3.0625H2.11328L9.58961 12.8387L2.50378 20.9375H5.53795L11.0068 14.6886L15.7863 20.9375H21.8885L14.095 10.6342L20.7198 3.0625H17.6874ZM16.6232 19.1225L5.65436 4.78217H7.45745L18.3034 19.1225H16.6232Z'%3E%3C/path%3E%3C/svg%3E");
    background-position: left 3em center;
    background-size: 1.2em;
    background-repeat: no-repeat;
    color: #fff;
    font-weight: 600;
    font-size: 1em;
}

.tweet-button:hover {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 250px;
    margin: 0 auto;
    padding: .9em 2em .9em 3.2em;
    border: none;
    border-radius: 5px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='rgba(51,51,51,1)'%3E%3Cpath d='M17.6874 3.0625L12.6907 8.77425L8.37045 3.0625H2.11328L9.58961 12.8387L2.50378 20.9375H5.53795L11.0068 14.6886L15.7863 20.9375H21.8885L14.095 10.6342L20.7198 3.0625H17.6874ZM16.6232 19.1225L5.65436 4.78217H7.45745L18.3034 19.1225H16.6232Z'%3E%3C/path%3E%3C/svg%3E");
    background-position: left 3em center;
    background-size: 1.2em;
    background-repeat: no-repeat;
    color: #333333;
    outline: 1px solid #333333;
    font-weight: 600;
    font-size: 1em;
}

/* ロックボタン（緑） */
.button-lock-green {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 250px;
    margin:0 auto;
    padding: .9em 2em;
    border: 1px solid #1eaa39;
    border-radius: 5px;
    background-color: #fff;
    color: #1eaa39;
    font-size: 1em;
}

.button-lock-green:hover {
    animation: anima-button-lock-green 1s;
}

@keyframes anima-button-lock-green {
    0% {
        box-shadow: 0 0 0 0 rgb(30 170 57 / 50%);
    }
    100% {
        box-shadow: 0 0 0 1.2em rgb(0 0 0 / 0%);
    }
}

.button-lock-green::after {
    transform: rotate(45deg);
    width: 5px;
    height: 5px;
    margin-left: 10px;
    border-top: 2px solid #1eaa39;
    border-right: 2px solid #1eaa39;
    content: '';
}

/* ロックボタン（赤） */
.button-lock-red {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 250px;
    margin:0 auto;
    padding: .9em 2em;
    border: 1px solid #e13134;
    border-radius: 5px;
    background-color: #fff;
    color: #e13134;
    font-size: 1em;
}

.button-lock-red:hover {
    animation: anima-button-lock-red 1s;
}

@keyframes anima-button-lock-red {
    0% {
        box-shadow: 0 0 0 0 rgb(225 49 52 / 50%);
    }
    100% {
        box-shadow: 0 0 0 1.2em rgb(0 0 0 / 0%);
    }
}

.button-lock-red::after {
    transform: rotate(45deg);
    width: 5px;
    height: 5px;
    margin-left: 10px;
    border-top: 2px solid #e13134;
    border-right: 2px solid #e13134;
    content: '';
}

/* === 00) 横方向のタイムライン ==================== */
/* 横方向のタイムライン（青） */
.timeline-blue {
    display: flex;
    justify-content: center;
    list-style-type: none;
    padding: 0;
}

.timeline-blue li {
    display: flex;
    flex: 1 1;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    color: #969da3;
    font-size: .8em;
}

.timeline-blue li.prev,
.timeline-blue li.current {
    color: #2589d0;
}

.timeline-blue li::before {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-bottom: 6px;
    content: '';
    border: 2px solid #d6dde3;
    border-radius: 50%;
    background-color: #fff;
}

.timeline-blue li.prev::before,
.timeline-blue li.current::before {
    border-color: #2589d0;
}

.timeline-blue li:not(:last-child)::after {
    position: absolute;
    top: 8px;
    left: 50%;
    z-index: -1;
    width: 100%;
    height: 2px;
    background-color: #d6dde3;
    content: '';
}

.timeline-blue li.current::before,
.timeline-blue li.prev::after {
    background-color: #2589d0;
}

/* 横方向のタイムライン（緑） */
.timeline-green {
    display: flex;
    justify-content: center;
    list-style-type: none;
    padding: 0;
}

.timeline-green li {
    display: flex;
    flex: 1 1;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    color: #969da3;
    font-size: .8em;
}

.timeline-green li.prev,
.timeline-green li.current {
    color: #1eaa39;
}

.timeline-green li::before {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-bottom: 6px;
    content: '';
    border: 2px solid #d6dde3;
    border-radius: 50%;
    background-color: #fff;
}

.timeline-green li.prev::before,
.timeline-green li.current::before {
    border-color: #1eaa39;
}

.timeline-green li:not(:last-child)::after {
    position: absolute;
    top: 8px;
    left: 50%;
    z-index: -1;
    width: 100%;
    height: 2px;
    background-color: #d6dde3;
    content: '';
}

.timeline-green li.current::before,
.timeline-green li.prev::after {
    background-color: #1eaa39;
}

/* 横方向のタイムライン（赤） */
.timeline-red {
    display: flex;
    justify-content: center;
    list-style-type: none;
    padding: 0;
}

.timeline-red li {
    display: flex;
    flex: 1 1;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    color: #969da3;
    font-size: .8em;
}

.timeline-red li.prev,
.timeline-red li.current {
    color: #e13134;
}

.timeline-red li::before {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-bottom: 6px;
    content: '';
    border: 2px solid #d6dde3;
    border-radius: 50%;
    background-color: #fff;
}

.timeline-red li.prev::before,
.timeline-red li.current::before {
    border-color: #e13134;
}

.timeline-red li:not(:last-child)::after {
    position: absolute;
    top: 8px;
    left: 50%;
    z-index: -1;
    width: 100%;
    height: 2px;
    background-color: #d6dde3;
    content: '';
}

.timeline-red li.current::before,
.timeline-red li.prev::after {
    background-color: #e13134;
}

/* === 00) カーテン ============================== */
/* カーテン（青） */
.curtain .animation-bg-blue, .curtain .animation-bg02-blue {
  display: none;
}
body.appear.curtain .animation-bg-blue, body.appear.curtain .animation-bg02-blue {
  display: block;
}
.curtain .animation-bg-blue, .curtain .animation-bg02-blue {
  background: #1579c0;
  content: "";
  position: fixed;
  z-index: 999;
  width: 100%;
  height: 100vh;
  top: 0;
  transform: scaleX(1);
  animation-duration: 1.2s;
  animation-timing-function: ease-in-out;
  animation-fill-mode: forwards;
}
.curtain .animation-bg-blue {
  left: 50%;
  animation-name: PageAnime-curtain01;
}
.curtain .animation-bg02-blue {
  right: 50%;
  animation-name: PageAnime-curtain02;
}

/* カーテン（緑） */
.curtain .animation-bg-green, .curtain .animation-bg02-green {
  display: none;
}
body.appear.curtain .animation-bg-green, body.appear.curtain .animation-bg02-green {
  display: block;
}
.curtain .animation-bg-green, .curtain .animation-bg02-green {
  background: #1eaa39;
  content: "";
  position: fixed;
  z-index: 999;
  width: 100%;
  height: 100vh;
  top: 0;
  transform: scaleX(1);
  animation-duration: 1.2s;
  animation-timing-function: ease-in-out;
  animation-fill-mode: forwards;
}
.curtain .animation-bg-green {
  left: 50%;
  animation-name: PageAnime-curtain01;
}
.curtain .animation-bg02-green {
  right: 50%;
  animation-name: PageAnime-curtain02;
}

/* カーテン（赤） */
.curtain .animation-bg-red, .curtain .animation-bg02-red {
  display: none;
}
body.appear.curtain .animation-bg-red, body.appear.curtain .animation-bg02-red {
  display: block;
}
.curtain .animation-bg-red, .curtain .animation-bg02-red {
  background: #d12124;
  content: "";
  position: fixed;
  z-index: 999;
  width: 100%;
  height: 100vh;
  top: 0;
  transform: scaleX(1);
  animation-duration: 1.2s;
  animation-timing-function: ease-in-out;
  animation-fill-mode: forwards;
}
.curtain .animation-bg-red {
  left: 50%;
  animation-name: PageAnime-curtain01;
}
.curtain .animation-bg02-red {
  right: 50%;
  animation-name: PageAnime-curtain02;
}

/* カーテン左 キーフレーム */
@keyframes PageAnime-curtain01 {
  0% {
    transform-origin: left;
    transform: scaleX(1);
  }
  50% {
    transform-origin: right;
  }
  100% {
    transform-origin: right;
    transform: scaleX(0);
  }
}
/* カーテン右 キーフレーム */
@keyframes PageAnime-curtain02 {
  0% {
    transform-origin: right;
    transform: scaleX(1);
  }
  50% {
    transform-origin: left;
  }
  100% {
    transform-origin: left;
    transform: scaleX(0);
  }
}

/* === 00) 花火 ================================== */
/* パーティクル発生位置の目印 */
/* 左 */
.particle-point-left {
    position: absolute;
    top: 0%;
    left: 40%;
    width: 0px;
    height: 0px;
}

/* 真ん中 */
.particle-point-center {
    position: absolute;
    top: 20%;
    left: 50%;
    width: 0px;
    height: 0px;
}

/* 右 */
.particle-point-right {
    position: absolute;
    top: 0%;
    left: 60%;
    width: 0px;
    height: 0px;
}

/* === 00) 検索ボックス ================================== */
.search-form {
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    border: 2px solid #2589d0;
    border-radius: 3px;
}

.search-form input {
    width: 250px;
    height: 45px;
    padding: 5px 15px;
    border: none;
    box-sizing: border-box;
    font-size: 1em;
    outline: none;
}

.search-form input::placeholder{
    color: #777777;
}

.search-form button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 45px;
    border: none;
    background-color: #2589d0;
    cursor: pointer;
}

.search-form button::after {
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='rgba(255,255,255,1)'%3E%3Cpath d='M1.94607 9.31543C1.42353 9.14125 1.4194 8.86022 1.95682 8.68108L21.043 2.31901C21.5715 2.14285 21.8746 2.43866 21.7265 2.95694L16.2733 22.0432C16.1223 22.5716 15.8177 22.59 15.5944 22.0876L11.9999 14L17.9999 6.00005L9.99992 12L1.94607 9.31543Z'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    content: '';
}

/* === 00) フレーム ================================== */
.image-frame {
    display: block;
    margin: auto;
    border: 5px solid #FFF;
    box-shadow: 0 0 5px #999;
}

/* === 00) クラッカー ================================== */
.party_popper {
  background-image: url('../images/material/party_popper.png');
    background-repeat: no-repeat; /* 画像を繰り返さない */
    background-position: center; /* 中央に配置 */
    background-size: auto 100%; /* 画像の比率に合わせる */
}

/* === 00) 付箋 ================================== */
.box-tape {
    position: relative;
    max-width: 400px;
    margin: 1.5em auto;
    padding: 2.5em 1.5em 1.5em;
    box-shadow: 0 2px 3px rgb(0 0 0 / 20%);
    background-color: #e0efff;
    color: #333333;
}

.box-tape span {
    position: absolute;
    top: -15px;
    transform: translateX(-.3em) rotate(-5deg);
    padding: .5em 2em;
    border-right: 2px dotted rgb(0 0 0 / 10%);
    border-left: 2px dotted rgb(0 0 0 / 10%);
    box-shadow: 0 0 5px rgb(0 0 0 / 20%);
    background-color: rgb(255 255 255 / 40%);
    font-weight: 600;
}

.box-tape p {
    margin: 0;
}

/* === 00) 友達申請 ================================== */
.follow-button__wrap input {
    display: none;
}

.follow-button__open-label,
.follow-button__close-label {
    cursor: pointer;
}

.follow-button__open-label {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 250px;
    flex: 1 0 auto;
    padding: .7em 2em .7em 3.2em;
    border: none;
    border-radius: 5px;
    background-color: #f05550;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='rgba(255,255,255,1)'%3E%3Cpath d='M14 14.252V16.3414C13.3744 16.1203 12.7013 16 12 16C8.68629 16 6 18.6863 6 22H4C4 17.5817 7.58172 14 12 14C12.6906 14 13.3608 14.0875 14 14.252ZM12 13C8.685 13 6 10.315 6 7C6 3.685 8.685 1 12 1C15.315 1 18 3.685 18 7C18 10.315 15.315 13 12 13ZM12 11C14.21 11 16 9.21 16 7C16 4.79 14.21 3 12 3C9.79 3 8 4.79 8 7C8 9.21 9.79 11 12 11ZM18 17V14H20V17H23V19H20V22H18V19H15V17H18Z'%3E%3C/path%3E%3C/svg%3E");
    background-position: left 3em center;
    background-size: 1.2em;
    background-repeat: no-repeat;
    color: #fff;
    font-weight: 600;
    font-size: 1em;
}

.follow-button__open-label:hover {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 250px;
    flex: 1 0 auto;
    padding: .7em 2em .7em 3.2em;
    border: none;
    border-radius: 5px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='rgba(240,85,80,1)'%3E%3Cpath d='M14 14.252V16.3414C13.3744 16.1203 12.7013 16 12 16C8.68629 16 6 18.6863 6 22H4C4 17.5817 7.58172 14 12 14C12.6906 14 13.3608 14.0875 14 14.252ZM12 13C8.685 13 6 10.315 6 7C6 3.685 8.685 1 12 1C15.315 1 18 3.685 18 7C18 10.315 15.315 13 12 13ZM12 11C14.21 11 16 9.21 16 7C16 4.79 14.21 3 12 3C9.79 3 8 4.79 8 7C8 9.21 9.79 11 12 11ZM18 17V14H20V17H23V19H20V22H18V19H15V17H18Z'%3E%3C/path%3E%3C/svg%3E");
    background-position: left 3em center;
    background-size: 1.2em;
    background-repeat: no-repeat;
    color: #f05550;
    outline: 1px solid #f05550;
    font-weight: 600;
    font-size: 1em;
}

.follow-button {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
}

.follow-button__open-input:checked + label + input + .follow-button {
    display: block;
    animation: follow-button-animation .6s;
}

.follow-button__content-wrap {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 650px;
    background-color: #fefefe;
    z-index: 2;
    border-radius: 5px;
}

.follow-button__close-label {
    background-color: #777;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 20px;
    width: 36px;
    height: 36px;
    line-height: 1.6;
    text-align: center;
    display: table-cell;
    position: fixed;
    top: -15px;
    right: -2%;
    z-index: 99999;
    font-size: 1.3em;
}

.follow-button__content {
    max-height: 50vh;
    overflow-y: auto;
    padding: 39px 45px 40px;
}

.follow-button__background {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .45);
    z-index: 1;
}

@keyframes follow-button-animation {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@media only screen and (max-width: 520px) {
    .follow-button__open-label {
        max-width: 90%;
        padding: .94em 2.1em .94em 2.6em;
    }

    .follow-button__close-label {
        top: -17px;
        right: -4%;
    }

    .follow-button__content-wrap {
        width: 90vw;
    }

    .follow-button__content {
        padding: 33px 21px 35px;
        max-width: 100%;
    }
}

.box-window {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    padding: calc(1em + 25px) 1.5em 1em;
    border: 2px solid #2589d0;
    border-radius: 5px;
    overflow: auto;
    background-color: #fff;
}

.box-window svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 25px;
    background-color: #2589d0;
}

.box-window p {
    margin: 0;
    padding: 0;
}

.background-white {
    display: block;
    margin: auto;
    background-color: #fff;
    border: 10px solid #fff;
    box-shadow: 0 0 5px #999;
}


.balloon-line {
    display: grid;
    gap: 1em 0;
    padding: 25px 15px;
    background-color: #769ece;
}

.balloon-line__section {
    display: flex;
    align-items: center;
    gap: 0 15px;
}

.balloon-line__img {
    width: 2.7em;
    height: 2.7em;
    border-radius: 50%;
}

.balloon-line__p {
    display: inline-block;
    position: relative;
    max-width: 80%;
    margin: 0;
    padding: .4em .8em;
    border-radius: 20px;
    color: #333;
    font-size: .9em;
}

.balloon-line__p.left {
    background-color: #fff;
}

.balloon-line__p.right {
    background-color: #30e852;
    margin: 0 10px 0 auto;
}

.balloon-line__p::before {
    position: absolute;
    top: -15px;
    width: 20px;
    height: 30px;
    content: '';
}

.balloon-line__p.left::before {
    left: -10px;
    border-radius: 0 0 0 15px;
    box-shadow: -3px -15px 0 -7px white inset;
}

.balloon-line__p.right::before {
    right: -10px;
    border-radius: 0 0 15px 0;
    box-shadow: 3px -15px 0 -7px #30e852 inset;
}

.heading-today {
    display: inline-flex;
    align-items: center;      /* 縦中央 */
    justify-content: center;  /* 横中央 */
    height: 40px;             /* 高さ固定（ここを調整） */
    padding: 0 24px;          /* 横余白 */
    border-radius: 9999px;    /* 完全な楕円 */
    background-color: #475569;
    color: #fff;
}
