/* リセット */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 基本設定 */
body {
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fdedff;
  
  /* タータンチェック柄 */
  background-image:
    linear-gradient(to right, rgba(180,150,240,0.2) 1px, transparent 2px),   /* 薄紫細線 */
    linear-gradient(to bottom, rgba(180,150,240,0.2) 1px, transparent 2px),
    linear-gradient(to right, rgba(150,220,240,0.15) 4px, transparent 4px),  /* 淡水色太線 */
    linear-gradient(to bottom, rgba(150,220,240,0.15) 4px, transparent 4px);
  background-size: 20px 20px, 20px 20px, 40px 40px, 40px 40px;
}

/* ヘッダー */
.page-header {
  width: 100%;
  max-width: 600px; /* PCでの上限幅 */
  margin: 0 auto;
  text-align: center;
  position: relative;
}

/* ヘッダー背景画像 */
.page-header::before {
  content: "";
  display: block;
  width: 100%;
  padding-top: 40%; /* 画像比率維持（例: 画像縦横比40%） */
  background: url('/img/header.png') no-repeat center center;
  background-size: contain;
}

/* ヘッダーテキスト */
.page-header h1,
.page-header .subtitle,
.page-header .author {
  position: absolute;
  width: 100%;
  left: 50%;
  transform: translateX(-50%);
  color: #222;
}

.page-header h1 {
  top: 20%;
  font-size: 2rem;
}

.page-header .subtitle {
  top: 35%;
  font-size: 1.2rem;
}

.page-header .author {
  top: 45%;
  font-size: 1rem;
}

/* メイン */
main {
  max-width: 600px;
  margin: 20px auto;
  padding: 0 20px;
}

/* セクション */
section {
  background-color: rgba(255, 255, 255, 0.85); /* 半透明の白 */
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
  section {
    padding: 15px;
    margin-bottom: 35px;
  }
}


/* Google Fonts 読み込み */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&family=Kaisei+Decol&display=swap');

/* 本文 */
body {
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fcfcfc;
  overflow-x: hidden;
}

/* H2 見出し（セクションタイトル） */
h2 {
  text-align: center;
  font-family: 'Kaisei Decol', serif;
  font-weight: 500;
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #34A4F7;
}


/* H3 見出し（小見出し） */
h3 {
  text-align: center;
  font-family: 'Kaisei Decol', serif;
  font-weight: 400;
  font-size: 1.2rem;
  margin: 10px;
  color: #B667D4;
}

/* 段落 */
p {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1rem;
  margin-bottom: 10px;
  color: #484848;
}

/* リスト */
ul, ol {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1rem;
  margin-left: 25px;
  margin-right: 25px;
  margin-bottom: 15px;
}

ul li, ol li {
  margin-bottom: 8px;
}

/* リンク */
a {
  color: #B667D4;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* フッター */
footer {
  text-align: center;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.9rem;
  color: #999;
}


/* フッター */
footer {
  text-align: center;
  font-size: 0.9rem;
  color: #999;
  margin: 40px 0 20px;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
  .page-header::before {
    padding-top: 50%; /* スマホ比率調整 */
  }

  .page-header h1 { font-size: 1.5rem; top: 15%; }
  .page-header .subtitle { font-size: 1rem; top: 30%; }
  .page-header .author { font-size: 0.9rem; top: 40%; }
}

