@charset "utf-8";
/* CSS Document */
/* === ベース設定 === */
html {
  box-sizing: border-box;
  width: 100%;
  overflow-x: hidden;
}
*, *::before, *::after {
  box-sizing: inherit;
}
body {
  font-family: 'Yu Gothic', 'Helvetica', 'Arial', sans-serif;
  line-height: 1.6;
  color: #222;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background-color: #fff;
}
/* === レイアウト全体 === */
header, section {
  padding: 20px;
  max-width: 960px;
  margin: 0 auto;
}
/* === timeline本体 === */
.timeline {
  position: relative;
  margin: 40px 0;
}
.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 40px;
}
.timeline-left {
  width: 10%;
  position: relative;
  text-align: center;
}
.timeline-line {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: #aaa;
  transform: translateX(-50%);
  z-index: 0;
}
.timeline-date {
  position: relative;
  background: #fff;
  padding: 4px 6px;
  font-weight: bold;
  font-size: 14px;
  z-index: 1;
  display: inline-block;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.timeline-right {
  width: 85%;
  padding-left: 20px;
  font-size: 15px;
}
.timeline-event {
  margin-bottom: 15px;
  background: #f9f9f9;
  padding: 10px 12px;
  border-radius: 5px;
  border-left: 4px solid #43B1A3;
}
/* === ボタン === */
.popup-btn {
  display: inline-block;
  background-color: #43B1A3;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-top: 8px;
}
.popup-btn:hover {
  background-color: #379285;
}
/* === ポップアップ共通 === */
.popup-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 5px;
  padding: 10px;
  animation: fadeIn 0.3s ease;
}
.popup-content img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  box-sizing: border-box;
  object-fit: contain;
}
.popup-caption {
  margin-top: 10px;
  font-size: 14px;
  color: #333;
  background: #f5f5f5;
  padding: 10px;
  border-radius: 5px;
  line-height: 1.6;
}
/* === 感情ポップアップ専用 === */
.popup-content.emotion {
  padding: 30px 50px;
  font-size: 24px;
  font-weight: bold;
  text-align: center;
}
/* === トリガー（透明） === */
#secret-trigger {
  position: fixed;
  bottom: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  background: transparent;
  z-index: 10;
  cursor: pointer;
}
/* === アニメーション === */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
/* === モバイル対応 === */
@media screen and (max-width: 767px) {
  header, section {
    padding: 16px;
    max-width: 100%;
  }
  .timeline-item {
    display: block;
  }
  .timeline-left {
    width: 100%;
    text-align: left;
    padding-bottom: 8px;
  }
  .timeline-date {
    margin: 0;
    display: inline-block;
  }
  .timeline-right {
    width: 100%;
    padding-left: 0;
  }
  .popup-content {
    max-width: 95vw;
    max-height: 90vh;
  }
  .popup-content img {
    max-width: 100%;
  }
}
@media screen and (max-width: 767px) {
  .timeline-item {
    display: flex;
    align-items: flex-start;
    flex-wrap: nowrap;
  }
  .timeline-left {
    width: 10%;
    min-width: 50px;
    text-align: center;
    padding-bottom: 0;
  }
  .timeline-right {
    width: 90%;
    padding-left: 10px;
  }
}
.timeline-left {
  width: 10%;
  min-width: 50px;
  position: relative;
  text-align: center;
}
.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #ccc;
  transform: translateX(-50%);
  z-index: 0;
}
@media screen and (max-width: 767px) {
  .timeline-left {
    width: 10%;
    min-width: 50px;
  }
  .timeline-line {
    left: 50%;
    transform: translateX(-50%);
  }
}
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95); /* ← 白に変更 */
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: whiteFade 0.4s ease;
}
@keyframes whiteFade {
  from {
    background: rgba(255, 255, 255, 0);
    opacity: 0;
  }
  to {
    background: rgba(255, 255, 255, 0.95);
    opacity: 1;
  }
}
.popup-content {
  background: transparent;
  box-shadow: none;
  border: none;
}
.emotion-message {
  font-size: 16px;
  font-weight: normal;
  text-align: center;
  color: #222;
  margin: 0 auto;
  animation: floatIn 1.2s ease;
  opacity: 0;
  animation-fill-mode: forwards;
}
@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.popup-content.emotion {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: transparent;
  box-shadow: none;
  border: none;
}
/* タイムライン全体を中央寄せ */
.timeline {
  margin: 40px auto;
  max-width: 960px;
  padding: 0 20px;
}
.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #aaa;
  transform: translateX(-50%);
  z-index: 0;
}
@media screen and (max-width: 767px) {
  .timeline-item {
    display: block;
  }
  .timeline-left {
    width: 100%;
    text-align: left;
    margin-bottom: 8px;
  }
  .timeline-right {
    width: 100%;
    padding-left: 0;
  }
  .timeline-line {
    display: none; /* ← スマホ時は縦線を非表示にするなら */
  }
}
.popup-content.text {
  max-width: 90vw;
  max-height: 80vh;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  overflow-y: auto;
  font-size: 15px;
  color: #333;
  line-height: 1.7;
}
.popup-text p {
  margin-bottom: 1em;
}
.popup-content.text {
  max-width: 90vw;
  max-height: 80vh;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  overflow-y: auto;
  font-size: 15px;
  color: #333;
  line-height: 1.7;
  position: relative;
}
.popup-text p {
  margin-bottom: 1em;
}
.popup-btn, .text-popup-btn {
  display: inline-block;
  background-color: #43B1A3;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-top: 8px;
}
.text-popup-btn:hover {
  background-color: #379285;
}
.opinion-btn {
  display: inline-block;
  background-color: #fff;
  color: #43B1A3;
  border: 2px solid #43B1A3;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0px;
  margin-bottom: 36px;
}
.opinion-btn:hover {
  background-color: #E6F5F3; /* ← ほんのり色づき */
  color: #379285;
  border-color: #379285;
}
.popup-content.multi {
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  position: relative;
}
.multi-img-container img {
  width: 100%;
  height: auto;
  margin-bottom: 12px;
  display: block;
  object-fit: contain;
}
.multi-img-container .caption {
  font-size: 14px;
  color: #555;
  margin-bottom: 20px;
  background: #f5f5f5;
  padding: 8px;
  border-radius: 5px;
}
.popup-content {
  position: relative;
  padding-top: 50px; /* ← 上に余白を作って✕スペース確保 */
}
.popup-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  padding: 50px 10px 10px; /* ← 上に余白追加 */
  overflow: auto;
  background: #fff;
  border-radius: 5px;
}
/* スマホ対応 */
@media screen and (max-width: 767px) {
  .opinion-btn {
    width: 100%;
    box-sizing: border-box;
  }
}
h1 {
  font-size: 24px;
  border-left: 6px solid #43B1A3;
  padding-left: 12px;
  margin-bottom: 20px;
  color: #222;
}
h2 {
  font-size: 18px;
  font-weight: bold;
  border-bottom: 2px solid #43B1A3;
  padding-bottom: 4px;
  margin-top: 40px;
  margin-bottom: 16px;
  color: #333;
}
#concerns ul {
  padding-left: 1.2em;
  margin-top: 16px;
}
#concerns li {
  margin-bottom: 1em;
  line-height: 1.7;
  font-size: 15px;
  color: #333;
}
.popup-content.text {
  max-width: 90vw;
  max-height: 80vh;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  overflow-y: auto;
  font-size: 15px;
  color: #333;
  line-height: 1.7;
  position: relative;
}
@media screen and (min-width: 768px) {
  .popup-content.text {
    max-width: 600px; /* ← PC時だけ狭く表示 */
  }
}
@media screen and (min-width: 768px) {
  .popup-content {
    max-width: 600px; /* ← お好みで調整！ */
  }
}
/* ========== ポップアップ ✕ ボタン（.popup-close） ========== */
.popup-close {
  position: fixed;
  top: 20px;
  right: 10%;
  width: 40px;
  height: 40px;
  line-height: 40px;
  font-size: 32px;
  font-family: 'Hiragino Mincho Pro', '游明朝', 'Yu Mincho', serif;
  color: #333;
  background: #fff;
  border-radius: 50%;
  text-align: center;
  cursor: pointer;
  z-index: 10001;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

@media screen and (max-width: 768px) {
.popup-close {
  position: fixed;
  top: 20px;
  right: 200px;
  width: 40px;
  height: 40px;
  line-height: 40px;
  font-size: 32px;
  font-family: 'Hiragino Mincho Pro', '游明朝', 'Yu Mincho', serif;
  color: #333;
  background: #fff;
  border-radius: 50%;
  text-align: center;
  cursor: pointer;
  z-index: 10001;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
}


#password-lock input[type="text"] {
  font-size: 18px;
  padding: 12px 16px;
  width: 300px;
  max-width: 80%;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 12px;
}

#password-lock button {
  font-size: 18px;
  padding: 12px 24px;
  background-color: #43B1A3;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#password-lock button:hover {
  background-color: #379285;
}
