/* ===================================
   月詠澪 - ブレスレット公開ページ CSS
   カラーパレット：薄紫・ラベンダー基調
   50代女性向けに文字サイズ・強調を最適化
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;600;700&family=Noto+Serif+JP:wght@300;400;500;600;700&display=swap');

/* --- CSS Variables --- */
:root {
  --bg-main: #FBF7FF;
  --bg-section: #F6EEFF;
  --bg-card: #FFFFFF;
  --bg-accent: #FFF9FC;
  --bg-silver: #F4F1FA;
  --purple-light: #DCC8FF;
  --purple-mid: #CDB4F6;
  --purple-deep: #BFA2F2;
  --purple-soft: #E8DEFF;
  --text-dark: #3D2A4F;
  --text-mid: #4A3568;
  --text-body: #5A4570;
  --text-light: #7B6A8E;
  --gold-accent: #E8D7A2;
  --gold-light: #F3E7C4;
  --gold-champagne: #D4C494;
  --sakura: #FFF0F5;
  --white: #FFFFFF;
  --font-sans: 'Noto Sans JP', sans-serif;
  --font-serif: 'Noto Serif JP', serif;
  --shadow-soft: 0 4px 20px rgba(191, 162, 242, 0.12);
  --shadow-card: 0 8px 32px rgba(191, 162, 242, 0.10);
  --shadow-glow: 0 0 40px rgba(191, 162, 242, 0.15);
  --radius: 16px;
  --radius-lg: 24px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--text-body);
  background-color: var(--bg-main);
  line-height: 2;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  text-align: center;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--text-dark);
  font-weight: 500;
  line-height: 1.7;
}

/* --- Layout --- */
.page-wrapper {
  max-width: 480px;
  margin: 0 auto;
  overflow: hidden;
}

.section {
  padding: 56px 24px;
  position: relative;
  text-align: center;
}

.section--alt {
  background-color: var(--bg-section);
}

.section--card {
  background-color: var(--bg-card);
  margin: 0 16px;
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  box-shadow: var(--shadow-card);
  position: relative;
}

/* --- Decorative Elements --- */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 24px;
  gap: 12px;
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple-light), transparent);
}

.section-divider__icon {
  font-size: 14px;
  color: var(--purple-mid);
  opacity: 0.7;
}

.ornament {
  text-align: center;
  font-size: 20px;
  color: var(--purple-mid);
  opacity: 0.5;
  letter-spacing: 12px;
  margin-bottom: 24px;
}

/* --- First View --- */
.firstview {
  background: linear-gradient(180deg, #F6EEFF 0%, #FBF7FF 50%, var(--bg-main) 100%);
  padding: 48px 24px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.firstview::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(220, 200, 255, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

.firstview__image-wrap {
  margin: 0 -8px 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-glow);
  position: relative;
}

.firstview__image {
  width: 100%;
  display: block;
}

.firstview__image-wrap img,
.firstview__image-wrap .image-placeholder {
  width: 100%;
  object-fit: cover;
}

.image-placeholder {
  background: linear-gradient(135deg, var(--purple-soft), var(--bg-section), var(--sakura));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 14px;
  text-align: center;
  padding: 20px;
  line-height: 1.8;
}

.firstview__label {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold-accent), var(--gold-light));
  color: var(--text-dark);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  padding: 7px 22px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.firstview__title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.9;
  color: var(--text-dark);
  margin-bottom: 24px;
  letter-spacing: 0.06em;
}

.firstview__subtitle {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--text-mid);
  line-height: 2.2;
  margin-bottom: 28px;
  font-weight: 400;
}

.firstview__note {
  font-size: 14.5px;
  color: var(--text-body);
  line-height: 2.3;
  margin-bottom: 32px;
}

.firstview__note .highlight-date {
  color: var(--text-dark);
  font-weight: 700;
  background: linear-gradient(transparent 60%, rgba(232, 215, 162, 0.35) 60%);
  padding: 0 2px;
}

/* --- Section Headings --- */
.section-heading {
  text-align: center;
  margin-bottom: 40px;
}

.section-heading__title {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.8;
  color: var(--text-dark);
  letter-spacing: 0.06em;
}

.section-heading__line {
  display: block;
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, var(--purple-light), var(--gold-accent));
  margin: 16px auto 0;
}

/* --- Body Text (50代女性向けに最適化) --- */
.body-text {
  font-size: 15.5px;
  line-height: 2.4;
  color: var(--text-body);
  text-align: left;
}

.body-text p {
  margin-bottom: 28px;
}

.body-text p:last-child {
  margin-bottom: 0;
}

/* --- 強調表現 3パターン --- */

/* パターン1: テキスト強調（濃い色＋太字） */
.body-text .emphasis {
  color: var(--text-dark);
  font-weight: 700;
}

/* パターン2: ゴールド強調（金色＋太字） */
.body-text .gold-emphasis {
  color: #7A6520;
  font-weight: 700;
  background: linear-gradient(transparent 60%, rgba(232, 215, 162, 0.3) 60%);
  padding: 0 2px;
}

/* パターン3: ハイライト（蛍光マーカー風下線） */
.body-text .highlight {
  background: linear-gradient(transparent 55%, rgba(191, 162, 242, 0.2) 55%);
  padding: 0 3px;
  font-weight: 600;
  color: var(--text-dark);
}

/* --- ハイライトボックス（重要な結論文を囲む） --- */
.highlight-box {
  background: linear-gradient(135deg, rgba(246, 238, 255, 0.8), rgba(255, 249, 252, 0.9));
  border: 1px solid rgba(191, 162, 242, 0.2);
  border-left: 3px solid var(--purple-mid);
  border-radius: 12px;
  padding: 24px 20px;
  margin: 32px 0;
  text-align: center;
  font-size: 16px;
  line-height: 2.2;
  color: var(--text-dark);
  font-weight: 500;
}

/* --- CTA Button --- */
.cta-block {
  text-align: center;
  padding: 40px 16px;
}

.cta-block__lead {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--text-mid);
  margin-bottom: 16px;
  line-height: 1.8;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--purple-mid), var(--purple-deep));
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 18px 28px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(191, 162, 242, 0.3);
  transition: all 0.3s ease;
  text-decoration: none;
  line-height: 1.6;
  white-space: nowrap;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(191, 162, 242, 0.4);
}

.cta-button__icon {
  font-size: 20px;
}

.cta-block__note {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 12px;
  line-height: 1.8;
}

/* --- Bracelet Cards --- */
.bracelet-cards {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 0;
}

.bracelet-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(191, 162, 242, 0.15);
  transition: transform 0.3s ease;
}

.bracelet-card:hover {
  transform: translateY(-2px);
}

/* --- Bracelet Card Slider --- */
.bracelet-card__slider {
  width: 100%;
  position: relative;
  overflow: hidden;
  background-color: var(--white);
  /* LINE内ブラウザ等での崩れを防ぐため、aspect-ratioの代わりにpaddingハックを使用 (4:5 = 125%) */
  padding-top: 125%;
}

.bracelet-card__slider-track {
  position: absolute;
  top: 0;
  left: 0;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: nowrap;
  -ms-flex-wrap: nowrap;
  flex-wrap: nowrap;
  width: 300%; /* 3枚の画像用（1 -> 2 -> 1ダミー） */
  height: 100%;
  -webkit-animation: cardSlide 9s infinite cubic-bezier(0.4, 0, 0.2, 1);
  animation: cardSlide 9s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.bracelet-card__slide {
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 33.3333%;
  -ms-flex: 0 0 33.3333%;
  flex: 0 0 33.3333%;
  width: 33.3333%;
  max-width: 33.3333%;
  height: 100%;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.bracelet-card__image {
  width: 100%;
  height: 100%;
  object-fit: contain; 
}

/* 着用画像は左右の余白を消すためcoverを使用 */
.bracelet-card__image--worn {
  object-fit: cover;
  object-position: center;
}

@-webkit-keyframes cardSlide {
  0%, 42% { -webkit-transform: translateX(0); transform: translateX(0); }
  48%, 92% { -webkit-transform: translateX(-33.3333%); transform: translateX(-33.3333%); }
  98%, 100% { -webkit-transform: translateX(-66.6666%); transform: translateX(-66.6666%); }
}

@keyframes cardSlide {
  0%, 42% { -webkit-transform: translateX(0); transform: translateX(0); }
  48%, 92% { -webkit-transform: translateX(-33.3333%); transform: translateX(-33.3333%); }
  98%, 100% { -webkit-transform: translateX(-66.6666%); transform: translateX(-66.6666%); }
}

.bracelet-card .image-placeholder {
  aspect-ratio: 3 / 2;
}

.bracelet-card__body {
  padding: 28px 24px 32px;
}

.bracelet-card__phase {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 5px 16px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.bracelet-card--encounter .bracelet-card__phase {
  background: linear-gradient(135deg, #FFF0F5, #FFE8F0);
  color: #A66B8A;
}

.bracelet-card--silence .bracelet-card__phase {
  background: linear-gradient(135deg, #EDE8FF, #E0D8F8);
  color: #6B5A9E;
}

.bracelet-card--union .bracelet-card__phase {
  background: linear-gradient(135deg, #F3E7C4, #EDE0B8);
  color: #8B7535;
}

.bracelet-card__name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
  letter-spacing: 0.1em;
}

.bracelet-card__reading {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 16px;
  letter-spacing: 0.06em;
}

.bracelet-card__copy {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--text-mid);
  line-height: 2.1;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(191, 162, 242, 0.15);
}

.bracelet-card__desc {
  font-size: 15px;
  color: var(--text-body);
  line-height: 2.3;
  margin-bottom: 28px;
  text-align: left;
}

.bracelet-card__label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  letter-spacing: 0.08em;
  text-align: left;
}

.bracelet-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.bracelet-card__tag {
  font-size: 13px;
  color: var(--text-mid);
  background: var(--bg-section);
  padding: 6px 14px;
  border-radius: 100px;
  letter-spacing: 0.04em;
}

.bracelet-card__roles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bracelet-card__role {
  font-size: 12px;
  color: var(--purple-deep);
  background: rgba(191, 162, 242, 0.08);
  padding: 5px 14px;
  border-radius: 100px;
  letter-spacing: 0.04em;
  border: 1px solid rgba(191, 162, 242, 0.15);
}

/* --- Announcement Banner --- */
.announcement {
  background: linear-gradient(135deg, #F0E8FF, #FFF9FC, #F6EEFF);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  margin: 0 16px;
  text-align: center;
  border: 1px solid rgba(191, 162, 242, 0.2);
  box-shadow: var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.announcement::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--purple-light), var(--gold-accent), var(--purple-light));
}

.announcement__date {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
  letter-spacing: 0.08em;
}

.announcement__time {
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--text-mid);
  margin-bottom: 8px;
}

.announcement__badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold-accent), var(--gold-light));
  color: var(--text-dark);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  padding: 6px 20px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.announcement__text {
  font-size: 15px;
  color: var(--text-body);
  line-height: 2.2;
}

/* --- Signature --- */
.signature {
  text-align: center;
  padding: 48px 24px 64px;
}

.signature__closing {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--text-mid);
  line-height: 2.4;
  margin-bottom: 32px;
}

.signature__line {
  display: block;
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple-light), transparent);
  margin: 0 auto 24px;
}

.signature__title {
  font-size: 13px;
  color: var(--text-light);
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.signature__name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--text-dark);
  letter-spacing: 0.15em;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes softGlow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.7; }
}

.animate-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Scroll Bar --- */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
  background: var(--purple-light);
  border-radius: 4px;
}

/* --- Responsive (Tablet+) --- */
@media (min-width: 481px) {
  .page-wrapper {
    max-width: 520px;
  }

  .section {
    padding: 64px 32px;
  }

  .firstview__title {
    font-size: 26px;
  }

  .section-heading__title {
    font-size: 23px;
  }

  .body-text {
    font-size: 16px;
  }
}

@media (min-width: 768px) {
  .page-wrapper {
    max-width: 600px;
  }
  
  .body-text {
    font-size: 16.5px;
  }
}
