@charset "utf-8";
/* CSS Document - DENBA Health LP最適化版 */
img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  padding: 0;
  vertical-align: top;
  transition: 1.0s;
}

/* Lazy loading styles */
img.lazy {
  opacity: 0;
  transition: opacity 0.3s;
}

img.loaded {
  opacity: 1;
}
.container {
  padding-right: 0px;
  padding-left: 0px;
  margin-right: auto;
  margin-left: auto;
  max-width: 640px;
  font-size: 0;
  line-height: 0;
}

/* Video overlay styles - 追加部分 */
.video-overlay {
  position: relative;
  display: block;
  max-width: 640px;
  margin: 0 auto; /* 中央寄せのため追加推奨 */
}

.video-overlay img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  transition: 1.0s;
}

.video-overlay iframe {
  position: absolute;
  top: 71.9%; /*数字を上げるとさがるよ */
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  max-width: 380px;
  height: 250px;
  z-index: 10;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* YouTube Facade */
.youtube-facade {
  position: absolute;
  top: 71.9%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  max-width: 380px;
  height: 250px;
  background-color: #000;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  overflow: hidden;
}

.youtube-facade::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.3);
  transition: background 0.3s;
}

.youtube-facade:hover::before {
  background: rgba(0,0,0,0.1);
}

.youtube-play-button {
  font-size: 60px;
  color: #fff;
  opacity: 0.9;
  transition: all 0.3s;
  z-index: 1;
  position: relative;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.youtube-facade:hover .youtube-play-button {
  opacity: 1;
  transform: scale(1.1);
}

@media (max-width: 770px) {
    
    /* Video overlay mobile styles - 追加部分 */
    .video-overlay iframe {
        width: 90%;
        max-width: 300px;
        height: 168px;
    }
    
    .youtube-facade {
        width: 90%;
        max-width: 300px;
        height: 168px;
    }
}
/*2024.01.18追加分*/
.footer{
    text-align: center;
    margin-top: 30px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.4;
}
.footer li{
    display: inline-block;
    margin-right: 10px;
    margin-left: 10px;
}
.footer a{
    text-decoration: none;
    color: #000;
}

/* お問い合わせフォーム */
.contact-form-section {
    max-width: 640px;
    margin: 40px auto;
    padding: 30px 20px;
    background-color: #f8f8f8;
    text-align: left;
}

.contact-form-section h2 {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
    font-weight: bold;
    line-height: 1.5;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    line-height: 1.5;
}

.form-group textarea {
    resize: vertical;
}

.required {
    color: #e74c3c;
    font-weight: bold;
    margin-right: 4px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

.form-submit {
    text-align: center;
    margin-top: 30px;
}

.form-submit button {
    background-color: #3498db;
    color: white;
    font-size: 18px;
    font-weight: bold;
    padding: 15px 60px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.form-submit button:hover {
    background-color: #2980b9;
}

@media (max-width: 770px) {
    .contact-form-section {
        padding: 20px 15px;
    }
    
    .contact-form-section h2 {
        font-size: 20px;
    }
    
    .form-group label {
        font-size: 14px;
    }
    
    .form-group input[type="text"],
    .form-group input[type="tel"],
    .form-group input[type="email"],
    .form-group select,
    .form-group textarea {
        font-size: 14px;
    }
    
    .form-submit button {
        font-size: 16px;
        padding: 12px 40px;
    }
}

/* スムーズスクロール */
html {
    scroll-behavior: smooth;
}

/* スクロール時のオフセット調整 */
#contact-form {
    scroll-margin-top: 50px;
}

