@charset "UTF-8";

/* =========================================
   マイメモ詳細ページ (about_mymemo.html) 専用スタイル
========================================= */

/* ▼ ヒーローセクション ▼ */
.lp-hero {
  background: linear-gradient(135deg, #01b04a, #018a3a);
  color: white;
  text-align: center;
  padding: 60px 20px;
  margin-bottom: 40px;
  box-sizing: border-box; /* 画面はみ出し防止 */
  width: 100%;
}
.lp-hero h1 {
  font-size: clamp(24px, 5vw, 36px);
  margin-bottom: 20px;
  color: white;
}
.lp-hero p {
  font-size: clamp(14px, 3vw, 16px);
  max-width: 600px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

/* ▼ ボタン ▼ */
.cta-btn {
  display: inline-block;
  background-color: #ff9800;
  color: white;
  padding: 15px 40px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  transition: transform 0.2s, background-color 0.2s;
}
.cta-btn:hover {
  background-color: #f57c00;
  transform: translateY(-2px);
  text-decoration: none;
}

/* ▼ 機能紹介セクション ▼ */
.feature-section {
  max-width: 900px;
  margin: 0 auto 60px;
  padding: 0 20px;
  box-sizing: border-box; /* 画面はみ出し防止 */
  width: 100%;
}
.feature-block {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 50px;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  box-sizing: border-box; /* 画面はみ出し防止 */
  width: 100%;
}
.feature-block.reverse {
  flex-direction: row-reverse;
}
.feature-text {
  flex: 1;
}
.feature-text h2 {
  font-size: 20px;
  color: #01b04a;
  border-bottom: 2px solid #01b04a;
  padding-bottom: 8px;
  margin-bottom: 15px;
}
/* ▼ 画像のスタイルとモーダル設定 ▼ */
.feature-image {
  flex: 1;
  width: 100%;
  max-width: 50%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.2s;
  object-fit: cover; /* 画像の比率崩れ防止 */
}
.feature-image:hover {
  transform: scale(1.02);
}

/* ▼ 動画エリア ▼ */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  margin-top: 20px;
  width: 100%;
}
.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ▼ フッター誘導 ▼ */
.lp-footer-cta {
  text-align: center;
  padding: 50px 20px;
  background: #f0f8f1;
  margin-bottom: 40px;
  box-sizing: border-box;
  width: 100%;
}

/* ▼ モーダル（画像拡大） ▼ */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
}
.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 1000px;
  animation-name: zoom;
  animation-duration: 0.3s;
}
@keyframes zoom {
  from {transform:scale(0)}
  to {transform:scale(1)}
}
.close {
  position: absolute;
  top: 50px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}
.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
}

/* =========================================
   レスポンシブ (スマホ対応)
========================================= */
@media (max-width: 768px) {
  .feature-block, .feature-block.reverse {
    flex-direction: column;
    padding: 20px; /* スマホ時は余白を少し小さく */
  }
  .feature-image {
    max-width: 100%; /* スマホでは画像幅を100%に */
    margin-top: 15px;
  }
}
@media only screen and (max-width: 700px){
  .modal-content {
    width: 100%;
  }
}