/* SVGの高さに合わせるため、親要素を調整 */
.pharmacy-banner-container {
  position: relative;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  overflow: hidden;
 
}
.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;
}

.countdown-item {
  text-align: center;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5), 0 0 30px rgba(74, 144, 217, 0.5);
  margin-top: 40px;
  position: relative;
  overflow: visible;
  padding: 0px 0px;
}

.countdown-item.left {
  text-align: right;
}

.countdown-item.right {
  text-align: left;
}
.countdown-item.center {
  text-align: center;
}

.countdown-label {
  float: left;
  font-size: 2.5rem;
  font-weight: 500;
  opacity: 0.9;
  margin: 0px 8px 8px 0px;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  letter-spacing: 0.05em;
}

.countdown-number {
  float: left;
  font-size: 7rem;
  font-weight: 700;
  font-family: "Georgia", "Times New Roman", serif;
  line-height: 1;

  margin-top: -3rem;
  color: #f9a825;
}

.countdown-unit {
  float: left;
  font-size: 2.5rem;
  font-weight: 500;
  opacity: 0.9;
  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: 2;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5), 0 0 30px rgba(74, 144, 217, 0.5);
  text-align: left;
  margin-top: -80px;
}
.concept-text span {
  font-size: 5rem;
  font-weight: normal;
  font-family: "Georgia", "Times New Roman", serif;
  font-weight: 700;
  color: #FAF2B1;
}

/* 100周年後の花火コンテナ  */

/* 花火コンテナ */
.fireworks-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
  /* heightはJSで設定 */
}

/* 花火の粒子 */
.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;
  }
}
/* ===================greeting=================== */

.greeting-section {
  position: relative;
  padding: 40px 0;
}

/* 中央寄せの薄い灰色背景 */
.greeting-bg {
  position: absolute;
  top: 10%;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  background: #f0f0f0;
  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 #0c3388;
  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;
}
/*  関連    */
.info-100 ul {
  list-style: none;
  padding-left: 0px;
  padding-right: 1rem;
}
.info-100 .tnews-list-item {
  display: block;
}
.info-100 .tnews-list-item p{
  line-height: 1.4;
    padding: 0.25rem 1rem 0rem 20px;
    font-size: 1.2rem;
}

/* タブレット以上（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;
  }
}



/* レスポンシブ対応 */
@media (max-width: 1024px) {
  .countdown-wrapper {
    gap: 40px;
  }
  .countdown-label {
    font-size: 2rem;
  }
  .countdown-number {
    margin-top:-2rem;
    font-size: 5rem;
  }
  .countdown-unit {
    font-size: 2rem;
  }
  .countdown-overlay {
  position: absolute;
  top: 25%;
  left: 0;
}
  .countdown-item {
  margin-top: 40px;
}
   .concept-text {
     font-size: 1.6rem
    padding: 0rem 40px;
    margin-top: -60px;
  }
   .concept-text span{
     font-size: 3.5rem
  }
}

@media (max-width: 768px) {
.countdown-overlay {
  position: absolute;
  top: 27%;
  left: 0px;
}
  .countdown-item {
  margin-top: 0px;
}
 .concept-text {
    font-size: 1.2rem;
    padding: 0rem 2rem;
    margin-top: -30px;
   line-height: 1.5;
   letter-spacing: 2px;
  }
    .concept-text span {
    font-size: 2.6rem;
  }
  
}

@media (max-width: 500px) {
.countdown-overlay {
  position: absolute;
  top: 20%;
  left: 0px;
}
  .countdown-item {
  margin-top: 20px;
}
  .countdown-wrapper {
    flex-direction: column;
    gap: 20px;
  }
  .countdown-item.left,
  .countdown-item.right {
    text-align: center;
  }
  .countdown-label {
    font-size: 1.2rem;
  }
  .countdown-number {
    margin-top: -20px;
    font-size: 3rem;
  }
  .countdown-unit {
    font-size: 1.2rem;
  }
  .concept-text {
    font-size: 0.9rem;
    padding: 0rem 1rem;
    margin-top: -30px;
    line-height: 1.5;
  }
   .concept-text span {
    font-size: 2rem;
  }
  
}