/* ページ全体のレイアウト調整 */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ヘッダーをindex.htmlと同じデザインに */
.header {
  font-size: 1em;
  color: #ffffff;
  top: 0;
  left: 0;
  height: 10dvh;
  width: 100%;
  box-sizing: border-box;
  z-index: 10;
  position: fixed; /* トップページと同じく固定ヘッダー */
  background: #fff;
}

/* index.htmlと同じタイトルスタイル */
.main_title_mask {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  overflow: hidden;
  top: 50px;
  left: 50px;
  z-index: 10;
  position: absolute;
}

.main_title {
  position: absolute;
  padding: 0 0 0 10px;
  color: #000;
  top: 0;
  left: 0;
  z-index: 10;
  font-family: Arial, Helvetica, sans-serif;
  transition: ease .4s;
  font-size: 32px;
}

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

main {
  flex: 1;
  padding-top: 100px; /* 固定ヘッダー分の余白を確保（PC） */
}

.about_wrapper {
  padding: 20px;
  max-width: 960px;
  margin: 0 auto;
}

/* policy セクションの各要素のまとまり */
.policy-section {
  margin-bottom: 40px;
  padding: 30px 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border: 1px solid #f0f0f0;
}

.policy-section:last-child {
  margin-bottom: 0;
}

.policy-section h3 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #333;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 10px;
}

/* 戻るリンク */
.back-link-wrapper {
  text-align: center;
  margin-top: 40px;
  padding: 20px 0;
}

.back-link {
  display: inline-block;
  padding: 12px 24px;
  background-color: #333;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.back-link:hover {
  background-color: #555;
}

@media screen and (max-width: 600px) {
  .header {
    font-size: 0.7em;
  }

  .main_title_mask {
    overflow: hidden;
    top: 20px;
    left: 60px;
  }

  .main_title {
    position: absolute;
    border: none;
    z-index: 10;
    letter-spacing: 0.04em;
    font-weight: 100;
    top: 40px;
    font-family: Arial, Helvetica, sans-serif;
    transition: ease .4s;
    padding: 0;
  }

  .main_title_black {
    color: #000;
    border-left: none;
  }

  main {
    padding-top: 80px; /* モバイルの固定ヘッダー分 */
  }

  .about_wrapper {
    width: 100%;
    position: relative;
    padding: 20px;
  }

  /* モバイル版のpolicy-section調整 */
  .policy-section {
    margin-bottom: 30px;
    padding: 20px 15px;
    border-radius: 6px;
  }

  .policy-section h3 {
    font-size: 16px;
    margin-bottom: 15px;
  }

  /* モバイル版の戻るリンク調整 */
  .back-link-wrapper {
    margin-top: 30px;
    padding: 15px 0;
  }

  .back-link {
    padding: 10px 20px;
    font-size: 13px;
  }

  .text-about {
    font-size: 12px;
  }

  h3 {
    font-size: 15px;
    margin-top: 14px;
  }

  .text-wrapper {
    margin-top: 14px;
  }

  .footer {
    color: #000;
    background-color: #f8f8f8;
    border-top: 1px solid #ddd;
    padding: 40px 0 20px;
    margin-top: 0;
  }
}

/* PC版のフッタースタイル */
.footer {
  background-color: #f8f8f8;
  border-top: 1px solid #ddd;
  padding: 40px 0 20px;
  margin-top: 40px;
  text-align: center;
  font-size: 0.8em;
  color: #000;
  position: relative;
  z-index: 1;
}