/* ========================================
   ページ全体：基本設定
   ======================================== */

/* すべての要素で、幅や高さに余白・枠線を含める */
* {
  box-sizing: border-box;
}

/* ページ全体の文字・背景・余白 */
body {
  margin: 8px;
  background: #ffffff;
  color: #000000;
  font-family: sans-serif;
  font-size: 16px;
  line-height: 1.7;
}


/* ========================================
   ページ全体：中央配置
   ======================================== */

/* コンテンツの最大幅を900pxに制限して中央に配置 */
.site-container {
  width: 100%;
  max-width: 900px;
  padding-left: 24px;
  padding-right: 24px;
  margin: 0 auto;
}


/* ========================================
   ヘッダー：サイトロゴ
   ======================================== */

/* ロゴを中央に配置 */
.site-header {
  text-align: center;
}

/* ロゴリンクを画像のサイズに合わせる */
.logo-link {
  display: inline-block;
}

/* ロゴ画像のサイズと配置 */
.site-logo {
  display: block;
  width: 100%;
  max-width: 760px;
  height: auto;
  margin: 5px auto 0;
}


/* ========================================
   メインビジュアル：トップイラスト
   ======================================== */

/* メインイラストを中央に配置 */
.main-visual {
  text-align: center;
}

/* イラスト画像のサイズと配置 */
.main-illustration {
  display: block;
  width: 100%;
  max-width: 760px;
  height: auto;
  margin: 0 auto 16px;
}


/* ========================================
   セクション区切り線
   ======================================== */

/* 水平線のデフォルト装飾を解除して、薄い線を表示 */
.separator {
  border: 0;
  border-top: 1px solid #cccccc;
  margin: 32px auto;
}


/* ========================================
   紹介文・つぶやき
   ======================================== */

/* 本文エリアの幅と配置 */
.about {
  width: 100%;
  max-width: 850px;
  margin: 36px auto;
  text-align: left;
}

/* 見出しは中央揃え */
.about h1,
.about h2 {
  text-align: center;
}

/* 本文は左揃えにして、段落間に余白を設ける */
.about p {
  text-align: left;
  margin: 0 0 1em;
}


/* ========================================
   SNSリンク：見出し・説明文
   ======================================== */

/* SNSセクションの見出しと説明文を中央揃え */
.links h2,
.section-description {
  text-align: center;
}


/* ========================================
   SNSリンク：一覧レイアウト
   ======================================== */

/* PCでは2列、項目間には余白を設ける */
.sns-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 24px;
  width: 100%;
  margin: 32px auto;
}


/* ========================================
   SNSリンク：各リンク項目
   ======================================== */

/* アイコンと説明文を横並びにする */
.sns-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  min-width: 0;
  color: #0000ee;
  text-decoration: none;
}

/* SNS名は青文字・下線あり */
.sns-description strong {
  margin: 0 0 6px;
  color: #0000ee;
  text-decoration: underline;
}

/* 説明文は黒文字・下線なし */
.sns-description > span {
  color: #000000;
  text-decoration: none;
}

/* 訪問済みリンクの色 */
.sns-item:visited {
  color: #551a8b;
}


/* ========================================
   SNSリンク：アイコン画像
   ======================================== */

/* アイコンを正方形の領域に収める */
.sns-icon {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  min-width: 0;
}


/* ========================================
   SNSリンク：SNS名・説明文
   ======================================== */

/* SNS名と説明文を縦に並べる */
.sns-description {
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-align: left;
  overflow-wrap: anywhere;
}

/* 説明文の行間 */
.sns-description span {
  line-height: 1.6;
}


/* ========================================
   フッター：著作権表記
   ======================================== */

/* コピーライトを中央に配置 */
.site-footer {
  margin: 40px auto 20px;
  text-align: center;
  font-size: 14px;
}


/* ========================================
   スマートフォン向けレイアウト
   画面幅600px以下で適用
   ======================================== */

@media (max-width: 600px) {

  /* コンテンツを画面幅に合わせる */
  .site-container {
    max-width: 100%;
  }

  /* 紹介文・つぶやきの左右に余白を設ける */
  .about {
    max-width: 520px;
    padding: 0 8px;
  }

  /* SNS一覧を1列に変更 */
  .sns-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 460px;
    padding: 0 8px;
  }

  /* アイコンを左、説明文を右に配置 */
  .sns-item {
    grid-template-columns: minmax(0, 35%) minmax(0, 1fr);
    gap: 12px;
    justify-content: initial;
  }

}