@charset "UTF-8";

/* ---- 背景：画像でカバー ---- */
.pharmacy-banner-container {
  position: relative;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  overflow: hidden;
  /* ↓ 画像パスを差し替えてください */
  background-image: url("/e/images/29211378_m.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* SVGは表示したまま、背景画像の上に重ねる
   （SVG内の背景塗りは透明化してモチーフだけ見せる ― 下部メモ参照） */
.pharmacy-banner-svg {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
}

/* ---- カウントダウンオーバーレイ ---- */
.countdown-overlay {
  position: absolute;
  top: 25%;
  left: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.countdown-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  width: 100%;
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
}

.countdown-item {
  text-align: center;
  margin-top: 40px;
  position: relative;
  overflow: visible;
  padding: 0;
  /* 明るい背景でも読めるよう薄い縁取り＋影 */
  text-shadow:
    0 1px 2px rgba(255, 255, 255, 0.8),
    0 0 6px rgba(255, 255, 255, 0.6);
}

.countdown-item.left   { text-align: right; }
.countdown-item.right  { text-align: left; }
.countdown-item.center { text-align: center; }

/* ---- カウントダウン（開始前） ----
   float をやめて block/inline-block にし、英語長文が改行しても
   中央揃えで崩れないようにする */
.countdown-label {
  display: block;            /* ラベルを独立行に（長い英語に対応） */
  font-size: 2.2rem;
  font-weight: 500;
  color: #e83817;            /* JPS赤 */
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  letter-spacing: 0.05em;
  line-height: 1.3;
}

.countdown-number {
  display: block;
  font-size: 7rem;
  font-weight: 700;
  font-family: "Georgia", "Times New Roman", serif;
  line-height: 1;
  color: #f9a825;            /* 単色の黄色（金） */
  /* 明るい背景でも沈まないよう輪郭をつける */
  text-shadow:
    0 1px 2px rgba(120, 72, 0, 0.45),
    0 0 4px rgba(255, 255, 255, 0.5);
  margin: 0 0 4px;
}

.countdown-unit {
  display: inline-block;
  font-size: 2.2rem;
  font-weight: 500;
  color: #e83817;            /* JPS赤 */
  margin-left: 8px;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

.countdown-hidden {
  display: none !important;
}

/* ---- コンセプトテキスト（開始日以降） ---- */
.concept-text {
  font-size: 1.4rem;
  font-weight: normal;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  line-height: 1.8;
  color: #e83817;            /* JPS赤 */
  text-shadow:
    0 1px 2px rgba(255, 255, 255, 0.8),
    0 0 6px rgba(255, 255, 255, 0.6);
  text-align: center;
  margin-top: 0;
  /* 英語の長文対策 */
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
  word-break: normal;
  overflow-wrap: break-word;
}
/* 強調部分（例：100th anniversary）― 数字と同じ黄色で大きくお祝い感 */
.concept-text span {
  display: inline-block;     /* 行間に余裕を持たせ、大きい文字でも崩れにくく */
  font-size: 4.5rem;
  font-weight: 700;
  font-family: "Georgia", "Times New Roman", serif;
  color: #f9a825;            /* 数字と同じ黄色（金） */
  line-height: 1.1;
  padding: 0 0.1em;
  /* 明るい背景でも沈まないよう輪郭をつける */
  text-shadow:
    0 1px 2px rgba(120, 72, 0, 0.45),
    0 0 4px rgba(255, 255, 255, 0.5);
}

/* =========================================================
   花火（既存のまま）
   ========================================================= */
.fireworks-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}

.firework-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd700, #ffec8b);
  box-shadow: 0 0 4px 1px rgba(255, 215, 0, 0.6);
  animation: firework-burst var(--duration, 3.5s) ease-out forwards;
}

@keyframes firework-burst {
  0%   { transform: translate(0, 0) scale(1); opacity: 1; }
  70%  { opacity: 0.7; }
  100% { transform: translate(var(--tx), var(--ty)) scale(0.2); opacity: 0; }
}

/* =========================================================
   レスポンシブ ― 英語の長文を意識した折り返し調整
   ========================================================= */
@media (max-width: 1024px) {
  .countdown-wrapper { gap: 40px; }
  .countdown-label   { font-size: 1.8rem; }
  .countdown-number  { font-size: 5rem; }
  .countdown-unit    { font-size: 1.8rem; }
  .countdown-overlay { top: 22%; }
  .countdown-item    { margin-top: 30px; }
  .concept-text      { font-size: 1.5rem; padding: 0 40px; }
  .concept-text span { font-size: 3.2rem; }
}

@media (max-width: 768px) {
  .countdown-overlay { top: 20%; }
  .countdown-item    { margin-top: 0; }
  .countdown-label   { font-size: 1.5rem; line-height: 1.35; }
  .countdown-number  { font-size: 4rem; }
  .countdown-unit    { font-size: 1.5rem; }
  .concept-text {
    font-size: 1.15rem;
    padding: 0 1.5rem;
    margin-top: 0;
    line-height: 1.6;
    letter-spacing: normal;   /* 英語は文字間隔を詰めない */
  }
  .concept-text span { font-size: 2.4rem; }
}

@media (max-width: 500px) {
  .countdown-overlay { top: 16%; }
  .countdown-wrapper { flex-direction: column; gap: 16px; padding: 0 12px; }
  .countdown-item        { margin-top: 12px; }
  .countdown-item.left,
  .countdown-item.right  { text-align: center; }
  .countdown-label   { font-size: 1.15rem; line-height: 1.4; }
  .countdown-number  { font-size: 3rem; }
  .countdown-unit    { font-size: 1.15rem; }
  .concept-text {
    font-size: 0.95rem;
    padding: 0 1rem;
    line-height: 1.55;
  }
  .concept-text span { font-size: 1.8rem; }
}

/* ===================greeting=================== */

.greeting-section {
  position: relative;
  padding: 40px 0;
}

/* 中央寄せの薄い灰色背景 */
.greeting-bg {
  position: absolute;
  top: 10%;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  background: rgba(183, 28, 28, 0.4);
  z-index: 0;
}

.uk-container {
  position: relative;
  z-index: 1;
}

/* カード本体（モバイル：縦並び・画像上） */
.greeting-card,
.greeting-card--img-left,
.greeting-card--img-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  border: 3px solid #e83817; 
  background: #fff;
  padding: 20px;
  margin: 0 0 30px;
  width: 100%;
  text-align: center;
}

.greeting-card__img {
  flex-shrink: 0;
  width: 140px;
  margin: 0 auto;
}

.greeting-card__img img {
  display: block;
  width: 100%;
  height: auto;
}

.greeting-card__title,
.greeting-card__text {
  margin: 0 0 10px;
  font-size: 1rem;
}
.greeting-card__title span {
  display: block;
  text-align: right;
}

/* タブレット以上（PC） */
@media (min-width: 780px) {
  .greeting-section {
    padding: 60px 0;
  }

  .greeting-bg {
    top: 10%;
    bottom: 10%;
    width: min(80%, 1000px);
  }

  /* 横並びに戻す */
  .greeting-card {
    flex-direction: row;
    align-items: center;
    gap: 40px;
    padding: 30px;
    margin-bottom: 50px;
    width: 70%;
    text-align: left;
  }

  /* 1・3番目（画像が左）→ 左寄せ */
  .greeting-card--img-left {
    margin-left: 0;
    margin-right: auto;
  }

  /* 2番目（画像が右）→ 右寄せ */
  .greeting-card--img-right {
    margin-left: auto;
    margin-right: 0;
  }

  .greeting-card__img {
    width: 180px;
    margin: 0;
  }

  .greeting-card__title,
  .greeting-card__text {
    font-size: 1rem;
  }
}
