/* 全体の基本スタイル */
body {
  margin: 0;
  padding: 0;
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: #f4f4f4;
  font-family: 'Noto Serif JP', serif;
}

/* ヘッダーに背景画像を設定 */
header {
  position: relative;
  background-image: 
  linear-gradient(to bottom, rgba(255, 255, 255, 0) 60%, rgba(255, 255, 255, 1) 85%),
  url('17527.jpg');
  background-size: cover;
  background-position: center;
  width: 100vw;
  height: 100vh;
  padding: 2em;
  color: white;
  box-sizing: border-box;
  overflow: hidden;
}

@media screen and (max-width: 600px) {
  header {
      min-height: 100vh;  /* 最低でも画面いっぱいの高さ */
      height: auto;       /* 中身に応じて伸びる */
  }
}

/* タイトル部分 */
.title-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2.5em;  /* ここでタイトル下の空白を作る */
  color: gold;
  text-shadow:
   -2px -2px 0 black,
    2px -2px 0 black,
   -2px  2px 0 black,
    2px  2px 0 black; /* 白いふちどり */
}


.title-left, .title-right {
  display: flex;
  flex-direction: column;
  gap: 0.3em;
}

.title-right {
  margin-top: 1.2em; /* 右側を少し下げる */
}

.line1 {
  font-size: 3.5em;
  font-weight: bold;
}

.line2 {
  font-size: 3em;
  font-weight: bold;
}

.line3 {
  font-size: 1.6em;
  font-weight: bold;
  text-shadow: none;
}

/* スマホ画面（幅600px以下）のとき文字サイズを縮小 */
@media screen and (max-width: 600px) {
  .line1  {
    font-size: 3em; /* スマホ用に縮小 */
  }

  .line2 {
    font-size: 2.4em; /* スマホ用に縮小 */
  }

  .line3 {
      font-size: 0.8em;
  }

  .title-container {
    flex-direction: column; /* スマホでは上下に */
    align-items: flex-start;
  }

  .title-right {
    margin-top: 1em;
  }
}

/* 画像付きリンク横並び */
.content-links {
  display: flex;
  justify-content: center;
  gap: 30px; /* コンテンツ間の隙間を12pxに設定 */
  padding: 0;
  margin: 100px auto 0 auto;
  max-width: 1000px;
  
}

.content-item {
  position: relative;
  flex: 0 0 auto;
  width: 320px;
  height: 200px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  text-decoration: none;
  color: white;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  border: 3px solid white;
  box-sizing: border-box;

  /* 画像を背景に設定 */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* 薄くするためにオーバーレイも使う */
}

header::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.1); /* 白で30%透明 */
  z-index: 0;
}


.title-container {
  position: relative;
  z-index: 2; /* オーバーレイより前に */
}


/* テキストは絶対配置 */
.overlay-text {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 8px 12px;
  background: rgba(217, 216, 216, 0.6); /*半透明の黒背景 */
  color: black;
  text-shadow:
   -1px -1px 0 white,
    1px -1px 0 white,
   -1px  1px 0 white,
    1px  1px 0 white; 
  font-weight: bold;
  font-size: 1.1em;
  box-sizing: border-box;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  pointer-events: none;
}


/* テキストを画像の上に出すためにz-indexを高く */
.overlay-text {
  position: absolute;
  z-index: 2;
}
@media screen and (max-width: 600px) {
  .content-links {
    flex-direction: column;
    align-items: center;
  }

  .content-item {
    width: 80vw; /* 画面幅の90%に拡大 */
    height: 60vw;
  }
}



.content-item:hover {
  transform: translateY(-5px);
}


.content-item p {
  font-weight: bold;
  font-size: 1.1em;
}


/* ロゴ画像（オプション） */
.logo {
  width: 100px;
  height: auto;
  margin-bottom: 0.5em;
}

/* ナビゲーション（もしあれば） */
nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 1em;
  margin-top: 1em;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
}

/* メインコンテンツ */
main {
  background: white;
  padding: 2em;
}

/* フッター */
footer {
  position: relative;
  background: #ddd;
  color: #333;
  padding: 1em 2em;
  font-size: 0.9em;
  height: 60px;  /* 高さ固定（必要に応じて調整） */
}

/* フッター内のリンクを右下に配置 */
.footer-link {
  position: absolute;
  right: 1em;
  bottom: 1em;
  text-decoration: none;
  color: #0066cc;
  font-weight: bold;
}

@media screen and (max-width: 600px) {
  .footer-link {
    position: relative;
    right: 1em;
    bottom: 1em;
    text-decoration: none;
    color: #0066cc;
    font-weight: bold;
  }
}

.footer-link:hover {
  text-decoration: underline;
}

body, html {
  height: 100%;
  margin: 0;
}

.center-text {
  display: flex;
  flex-direction: column;
  justify-content: center;   /* 縦方向中央 */
  align-items: center;       /* 横方向中央 */
  height: 100vh;             /* 画面全体に対して縦中央 */
  text-align: center;
}

