@charset "utf-8";

*,
::before,
::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

button,
input,
select,
textarea {
  font-family: inherit; /* 親要素のフォントファミリーを継承 */
  font-size: 100%; /* 親要素のフォントサイズを継承 */
  margin: 0; /* ブラウザのデフォルトマージンをリセット */
}

html {
  scroll-behavior: smooth;
}

/* ボタンはカーソルをポインターにする */
button {
  cursor: pointer;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  background-color: #f4bd5a;
  color: #d7743b;
  --mouse-x: 0;
  --mouse-y: 0;
  display: flex;
  flex-direction: column;
}

/* オーバーレイの基本スタイル（普段は透明で見えない） */
body::before {
  content: "";
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* 半透明の黒色 */
  z-index: 1; /* メニュー(80)より下、ページコンテンツより上 */

  /* アニメーションの準備 */
  opacity: 0; /* 初期状態では透明 */
  pointer-events: none; /* 透明な時はクリックできないようにする */
  transition: opacity 0.5s ease-in-out; /* フェードイン・アウトのアニメーション */
}

/* メニューが開いたときにオーバーレイを表示 */
body.menu-open::before {
  opacity: 1; /* 透明度を1にして表示 */
  pointer-events: auto; /* オーバーレイをクリックできるようにする (任意) */
}

body.menu-open {
  overflow: hidden; /* メニューオープン時はスクロールを無効にする */
}

body.menu-open .header {
  /* JavaScriptによるインラインスタイルを上書きして、ヘッダーの背景を完全に透明にする */
  background-color: transparent !important;
  backdrop-filter: none !important;
}

/* --- 遷移アニメーションのスタイル --- */

/* ローディング画面のコンテナ */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #f4bd5a; /* 背景を設定 */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  /* フェードアウトのためのトランジション */
  opacity: 1;
  transition: opacity 0.5s ease-out;
}

/* ローディング画面を非表示にするためのクラス */
#loading-screen.is-hidden {
  opacity: 0;
  pointer-events: none; /* クリックなどの操作を無効にする */
}

/* 表示する画像（GIF.webp共通）のスタイル */
#loading-image {
  /* ★修正点: 固定の幅を設定して画像を小さくします */
  width: 250px;
  /* 高さは自動で調整されます */
  height: auto;
}

/* メインコンテンツのスタイル */
.content {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  text-align: center;
  padding: 20px;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

.toggle-menu-button {
  display: none;
}

.menu-btn {
  position: fixed;
  top: 16px;
  right: 10px;
  display: flex;
  height: 60px;
  width: 60px;
  justify-content: center;
  align-items: center;
  z-index: 10;
}
.menu-btn span,
.menu-btn span:before,
.menu-btn span:after {
  content: "";
  display: block;
  height: 3px;
  width: 40px;
  border-radius: 3px;
  background-color: #ffffff;
  position: absolute;
}
.menu-btn span:before {
  bottom: 15px;
}
.menu-btn span:after {
  top: 15px;
}

#menu-btn-check:checked ~ .menu-btn span {
  background-color: rgba(
    255,
    255,
    255,
    0
  ); /*メニューオープン時は真ん中の線を透明にする*/
}
#menu-btn-check:checked ~ .menu-btn span::before {
  bottom: 0;
  transform: rotate(45deg);
}
#menu-btn-check:checked ~ .menu-btn span::after {
  top: 0;
  transform: rotate(-45deg);
}

#menu-btn-check {
  display: none;
}

.menu-content {
  width: 350px;
  height: 100%;
  position: fixed;
  top: 0;
  right: -350px;
  left: auto; /*メニューは画面外に*/
  z-index: 2;
  background-color: #f4bd5a;
  transition: all 0.5s; /*アニメーション設定*/
}
.menu-content ul {
  padding: 70px 10px 0;
  position: static;
}
.menu-content ul li {
  border-bottom: solid 1px #ffffff;
  list-style: none;
}
.menu-content ul li a {
  display: block;
  width: 100%;
  font-size: 15px;
  box-sizing: border-box;
  color: #ffffff;
  text-decoration: none;
  padding: 9px 15px 10px 0;
  position: relative;
}
.menu-content ul li a::before {
  content: "";
  width: 7px;
  height: 7px;
  border-top: solid 2px #ffffff;
  border-right: solid 2px #ffffff;
  transform: rotate(45deg);
  position: absolute;
  right: 11px;
  top: 16px;
}

#menu-btn-check:checked ~ .menu-content {
  right: 0; /*メニューを画面内へ*/
}

.header-logo img {
  position: absolute;
  display: block;
  width: 150px;
  /* height: 200px; */
  top: 10px; /* 上から10px移動 */
  left: 10px; /* 左から10px移動 */
}

.header {
  /* background-color: rgba(213, 82, 34, 0.1); */
  height: 95px;
  width: 100%;
  /* color: white; */
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  z-index: 3;
}

/* .img{
    max-width: 100%;
} */

.container {
  display: flex;
  flex-direction: column;
}
.main {
  flex: 1;
  padding-top: 150px;
}
.contents {
  /* top: 100px; */
  /* background-color: #de20d5; */
  /* width: 200px; */
  /* height: 200px; */
  display: flex;
  justify-content: center;
  align-items: center;
  /* margin: 20px; */
  /* margin-top: 150px; */
}
.footer {
  /* background-color: #29c1e0; */
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* フッター全体 */
.footer-custom {
  padding: 3rem 0; /* 上下の余白 */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background-color: #cfba6f;
  position: relative;
}

/* フッターのコンテナ */
.footer-container {
  width: 90%;
  max-width: 1024px; /* 最大幅 */
  margin: 0 auto;
  display: flex; /* ★横並びにする */
  justify-content: space-between; /* ★両端に寄せる */
  align-items: flex-start;
  gap: 2rem; /* 列間の余白 */
}

/* 各列のテキスト揃え */
.footer-left {
  text-align: left;
}
.footer-center {
  text-align: center;
}
.footer-right {
  text-align: right;
}

.footer-left,
.footer-center,
.footer-right {
  flex: 1;
}

.footer-logo {
  width: 300px; /* ロゴのサイズ */
  height: auto;
  margin-bottom: 1rem;
}

.footer-text {
  font-size: 1rem;
  color: white;
}

.footer-text > span {
  color: #d7743b;
  font-weight: bold;
  font-size: 1.2rem;
}

/* 既存のスタイルも必要に応じて調整 */
.contact-title {
  font-size: 2rem;
  font-weight: bold;
  color: white;
  margin-bottom: 1rem;
}
.contact-description {
  color: white;
  margin-bottom: 0.5rem;
}
.contact-link {
  color: white;
  opacity: 0.8;
  text-decoration: underline;
  transition: opacity 0.2s ease;
}
.contact-link:hover {
  opacity: 0.6;
}
.footer-social-links {
  margin-top: 2rem;
}
.copyright-text {
  font-size: 0.8rem;
  color: #010518;
  margin-top: 2rem;
}

/* --- スマホ表示の調整 --- */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column; /* 縦並びに変更 */
    align-items: center; /* 中央揃え */
  }
  /* スマホではすべて中央揃えに */
  .footer-left,
  .footer-center,
  .footer-right {
    text-align: center;
  }
}

.footer-social-links {
  display: flex; /* 横並びにする */
  justify-content: center; /* 中央揃えにする */
  gap: 1rem; /* 各アイコン間の余白 (space-x-6相当) */
  margin-top: 1rem; /* 上の余白 (mt-12相当) */
}

/* 各SNSアイコン画像のスタイル */
.social-icon {
  width: 80px; /* アイコンのサイズを統一 */
  height: auto;
  transition: opacity 0.2s ease; /* ホバー時のアニメーション準備 */
}

/* アイコンを囲むリンクをホバーした時のスタイル */
.footer-social-links a:hover .social-icon {
  opacity: 0.8; /* 少し透明にする */
}

/* --- 以下はNotion風のロジック --- */

/* コールアウトブロック全体 */
.callout {
  display: flex; /* アイコンとテキストを横並びにする */
  align-items: flex-start; /* 上揃えにする */
  padding: 1.5rem; /* 内側の余白 */
  margin: 1.5rem 0; /* ブロック上下の余白 */
  border-radius: 8px; /* 角を丸くする */
  background-color: #3a3a3a; /* 背景色（ダークグレー） */
  color: #eeeeee; /* 文字色（ライトグレー） */
}

/* ▼▼▼ 色のバリエーションを定義 ▼▼▼ */

/* デフォルト（グレー） */
.callout.callout-default {
  background-color: #e2e8f0; /* ← 背景色をよりはっきりしたライトグレーに */
  border-color: #cbd5e0;
  color: #4a5568;
}

/* 情報（青） */
.callout.callout-blue {
  background-color: #bee3f8df; /* ← 背景色をより鮮やかなパステルブルーに */
  border-color: #63b3ed;
  color: #2c5282;
}

/* 成功（緑） */
.callout.callout-green {
  background-color: #c6f6d5df; /* ← 背景色をより鮮やかなパステルグリーンに */
  border-color: #48bb78;
  color: #276749;
}

/* 警告（黄） */
.callout.callout-yellow {
  background-color: #feebc8df; /* ← 背景色をより鮮やかなパステルイエローに */
  border-color: #f6ad55;
  color: #975a16;
}

/* 危険（赤） */
.callout.callout-red {
  background-color: #fed7d7df; /* ← 背景色をより鮮やかなパステルレッドに */
  border-color: #f56565;
  color: #9b2c2c;
}

/* アイコン部分 */
.callout-icon {
  flex-shrink: 0; /* アイコンが縮まないように */
  margin-right: 0.75rem; /* アイコンとテキストの間の余白 */
  font-size: 1.3rem; /* 絵文字のサイズ */
  padding-top: 0.1em; /* テキストとの微妙な縦位置を調整 */
}

/* テキストコンテンツ部分 */
.callout-content {
  flex-grow: 1; /* 残りのスペースを全て使う */
}

/* コールアウト内のpタグの行間などを調整 */
.callout-content p {
  line-height: 1.6;
  margin: 0 0 0.5em 0; /* 段落下のマージンを少し空ける */
}
.callout-content p:last-child {
  margin-bottom: 0; /* 最後の段落はマージン不要 */
}

/* --- カスタム箇条書きリストのスタイル --- */

/* リスト全体の基本的な余白などを設定 */
main ul {
  list-style: none; /* ブラウザのデフォルトの「・」を消す */
  padding-left: 1em; /* 全体のインデントを調整 */
}

main li {
  padding-left: 0.6em; /* マーカーとテキストの間のスペース */
  margin-bottom: 0.8em; /* 各リスト項目間のスペース */
}

/* --- ▼ 階層ごとのマーカー（・）のスタイルを定義 ▼ --- */

/* 1階層目のマーカー（青い●） */
main ul > li::marker {
  content: "•"; /* マーカーの文字を指定 */
  color: #975a16; /* マーカーの色 */
  font-size: 1.3em; /* マーカーのサイズ */
}

/* 2階層目のマーカー（緑の○） */
main ul ul > li::marker {
  content: "◦"; /* 中抜き丸の文字 */
  color: #975a16; /* マーカーの色 */
  font-size: 1.3em;
}

/* 3階層目のマーカー（オレンジの■） */
main ul ul ul > li::marker {
  content: "▪"; /* 四角の文字 */
  color: #975a16; /* マーカーの色 */
  font-size: 1em; /* 四角は大きく見えがちなので少し小さめに */
}

/* ブックマーク全体（<a>タグ） */
.link-bookmark {
  display: flex; /* テキストエリアと画像エリアを横並びにする */
  text-decoration: none;
  color: inherit;
  border: 2px solid #cfba6f; /* 枠線の色 */
  border-radius: 8px;
  margin: 1.5rem 0;
  background-color: #cfba6f; /* 背景色 */
  overflow: hidden; /* 角丸を画像に適用するため */
  transition: background-color 0.2s ease;
}

.link-bookmark:hover {
  background-color: rgb(215, 203, 154); /* ホバー時に少し明るくする */
}

/* 左側のテキスト情報エリア */
.bookmark-content {
  flex: 2; /* 幅の比率を2にする（広く取る）*/
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.bookmark-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin: 0 0 0.5rem 0;
}

.bookmark-description {
  font-size: 0.9rem;
  color: #ffffff;
  line-height: 1.6;
  flex-grow: 1; /* 残りのスペースを埋めてURL部分を下に押しやる */
}

/* URL表示エリア */
.bookmark-url-area {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.bookmark-favicon {
  width: 16px;
  height: 16px;
}

.bookmark-url {
  font-size: 0.8rem;
  color: #ffffff;
}

/* 右側のプレビュー画像エリア */
.bookmark-preview {
  flex: 1; /* 幅の比率を1にする */
  min-width: 0; /* flexアイテムの縮小問題を回避 */
}

.bookmark-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 画像をコンテナに合わせてトリミング */
  border-left: 1px solid #cfba6f; /* 画像との境界線 */
}

/* スマホなど幅が狭い場合のデザイン */
@media (max-width: 640px) {
  .link-bookmark {
    flex-direction: column-reverse; /* 画像を上に、テキストを下に配置 */
  }
  .bookmark-preview img {
    height: 150px; /* 画像の高さを固定 */
    border-left: none;
    border-bottom: 1px solid #cfba6f;
  }
}

/* ページトップボタンのスタイル */
#page-top-btn {
  position: absolute;
  bottom: 0px;
  right: 10px;
  background-color: transparent;
  border: none;

  cursor: pointer;
  transition: transform 0.3s ease-in-out;
}

#page-top-btn:hover {
  transform: translateY(-8px); /* マイナス値で上に動く */
}

/* <a>タグの中の<img>タグ */
#page-top-btn img {
  width: 250px;
  height: auto;
  display: block;
}

/* ▼ 画面幅が768px以下（タブレットやスマホ）の場合のスタイル ▼ */
@media (max-width: 768px) {
  #page-top-btn {
    bottom: 10px; /* 少し上に移動 */
    right: 5px; /* 少し左に移動 */
  }
  #page-top-btn img {
    width: 120px; /* スマホでは幅を120pxにする */
  }
}

/* ▼ 画面幅が480px以下（特に小さいスマホ）の場合のスタイル ▼ */
@media (max-width: 480px) {
  #page-top-btn img {
    width: 90px; /* さらに小さくする */
  }
}

figcaption {
  font-size: 1rem;
  text-align: center;
}

/* --- 404 Page Style --- */
.not-found-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  min-height: 60vh; /* フッターがすぐ下に来ないように最低限の高さを確保 */
}

.not-found-title {
  font-size: 6rem; /* 数字を大きく表示 */
  font-weight: 700;
  color: #333; /* サイトのテーマに合わせて調整 */
  margin: 0;
  line-height: 1;
}

.not-found-message {
  font-size: 1.5rem;
  font-weight: 500;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.not-found-description {
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.not-found-button {
  display: inline-block;
  padding: 12px 32px;
  background-color: #d7743b; /* ボタンの色はサイトのテーマに合わせる */
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.not-found-button:hover {
  background-color: #c65a2d; /* ホバー時の色 */
}
