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

body {
  font-family: "Hiragino Sans", "ヒラギノ角ゴシック", "Yu Gothic UI", "Meiryo UI", sans-serif;
  line-height: 1.6;
  color: #08131a;
  background: #e4f5fc;
}

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

a {
  color: #2b3095;
  text-decoration: underline;
  transition: color 0.3s ease;
}

a:hover {
  color: #2b3095;
  text-decoration: none;
}

ul {
  font-size: clamp(14px, 2.5vw, 16px);
  margin: 0 0 20px 20px;
}

li {
  font-size: clamp(14px, 2.5vw, 16px);
  margin-bottom: 10px;
}

li.listnone {
  list-style: none;
  margin-left: -20px;
}

ul .ul-h {
  margin-left: -20px;
  margin-bottom: 5px;
}

ul li ul {
  margin: 0 0 0 20px;
}

/* ヘッダー */
header {
  background: #fff;
}

.header-container {
  /*max-width: 1200px;
    margin: 0 auto;
    padding: 0;*/
  max-width: 800px;
  margin: 0 auto;
  padding: 10px 10px 0;
}

.logo {
  font-size: 20px;
  font-weight: 600;
  color: #0066cc;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.logo img {
  width: 170px;
  height: auto;
}

/* メインコンテンツ */
main {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.content-section {
  background: #fff;
  border-radius: 8px;
  padding: 40px;
  /*box-shadow: 0 2px 8px rgba(0,0,0,0.1);*/
}

.header-img img {
  display: block;
  margin: 0 auto;
  width: 100%;
  height: auto;
}

h1 {
  font-size: clamp(22px, 2.5vw, 24px);
  color: #fff;
  margin-top: 0;
  margin-bottom: 1.5em;
  padding: 15px 20px;
  font-weight: 600;
  background-color: #005699;
  border-radius: 8px;
}

h2 {
  font-size: clamp(18px, 2.5vw, 20px);
  margin-top: 1.6em;
  margin-bottom: 0.8em;
  font-weight: 600;
}

.border {
  border-top: 1px solid #d2d2d2;
  padding-top: 20px;
}

p {
  font-size: clamp(14px, 2.5vw, 16px);
  line-height: 2;
  margin-bottom: 20px;
}

/* チェックボックス */
.notice-section {
  background: #fce4eb;
  border-radius: 8px;
  padding: 20px;
  margin: 0 0 40px;
  /*text-align: center;*/
}

.notice-section h2 {
  color: #d9534f;
  text-align: left;
  margin-top: 0;
}
.notice-section p {
  text-align: left;
}

.agreement-section {
  background: #f8f9fa;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  margin: 0 auto;
  display: inline-block;
}

.checkbox-container {
  display: inline-flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: #005699;
}

.checkbox-label {
  font-size: clamp(14px, 2.5vw, 16px);
  color: #08131a;
  cursor: pointer;
  flex: 1;
}

.contact-section {
  background: #efefef;
  border-radius: 8px;
  padding: 20px;
  margin: 0;
  text-align: center;
}
.contact-section h2 {
  text-align: left;
  margin-top: 0;
}
.contact-section p {
  text-align: left;
  margin-bottom: 0;
  line-height: 1.6;
}

/* 動画セクション */
.video-section {
  /*display: none;*/
  margin: 40px 0;
  padding-top: 30px;
  border-top: 1px solid #d2d2d2;
}

.video-section.show {
  display: block;
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.video-container {
  margin-bottom: 30px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.video-container:last-child {
  margin-bottom: 0;
}

.video-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* フッター */
footer {
  background: #feeed6;
  padding: 30px 0 8px;
  margin-top: auto;
}
footer h2,
footer p {
  text-align: left;
}
footer h2,
footer p {
  text-align: left;
}
.footer-container {
  /*max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;*/
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-content {
  font-size: clamp(12px, 2vw, 14px);
  line-height: 1.8;
}

.footer-content p {
  margin-bottom: 0;
  line-height: 1.5;
}

.copyright {
  margin-top: 30px;
  text-align: center;
  font-size: 0.8em;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
  .content-section {
    padding: 30px 20px;
  }

  .notice-section {
    padding: 20px;
  }

  input[type="checkbox"] {
    margin-top: 0;
  }
}

@media (max-width: 480px) {
  main {
    padding: 20px 10px;
  }

  .content-section {
    padding: 20px 15px;
  }
}

/* アクセシビリティ */
.checkbox-container:focus-within {
  /*outline: 2px solid #0066cc;
    outline-offset: 2px;
    border-radius: 4px;*/
}

@media (prefers-reduced-motion: reduce) {
  .video-section.show {
    animation: none;
  }
}

@media (min-width: 768px) {
  a[href^="tel:"] {
    pointer-events: none;
    color: #08131a;
    text-decoration: none;
  }
}
