s/* Font Awesome アイコンのための基本的なスタイル */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css');


/* リセットCSS (必要に応じて追加) */
* {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
  }

  body {
      font-family: '游明朝', 'Meiryo', sans-serif; 
      line-height: 1.6;
      color: #333;
      background-color: #f8f9fa;
  }

  .container {
      max-width: 1000px;
      margin: 0 auto;
      padding: 0 20px;
  }

/* ヘッダー */
  header {
      background: linear-gradient(135deg, #f77c3e 0%, #fff7f0 100%);
      color: white;
      padding: 2rem 0;
      text-align: center;
      box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }

  .pharmacy-name {
      font-size: 3rem;
      font-weight: bold;
      margin-bottom: 0.5rem;
  }

  .subtitle {
      font-size: 1.2rem;
      opacity: 0.9;
  }



  .site-header {
    position: relative; /* 子要素の絶対配置基準にする */
    height: 100px;       /* ヘッダーの高さ（例） */
  }


/* 処方箋受付 */
  
.prescription-button {
  position: absolute;
  bottom: 0;
  right: 0;
  transform: translate(-15%, -30%);
  background-color: #06C755;
  color: white;
  border-radius: 50%;
  width: 120px;
  height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: background 0.3s ease;
}

.prescription-button:hover {
  background-color: #e06b2f;
}

.prescription-button .icon {
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}

.prescription-button .text {
  line-height: 1.2;
}

/* 処方箋受付オーバーレイ */

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.overlay-content {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  max-width: 400px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  color: #333; /* タイトルや本文の文字色を黒系に */
}

.overlay-content h2 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #333; /* タイトルを明確に黒系で指定 */
}

.overlay-line-button {
  display: inline-block;
  background: #00c300; /* LINEグリーン */
  color: #fff;          /* 白抜き文字 */
  font-size: 1.2rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 1rem;
  border: none;
  transition: background 0.3s ease;
}

.overlay-line-button:hover {
  background: #009f00; /* ホバー時に少し濃い緑でアクセント */
}

.close-button {
  margin-top: 1rem;
  background: #ccc;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
}

/* LINE受付閉じるボタン　デフォルトでは非表示（PC向け） */
.close-overlay {
  display: none;
}

/* スマホ表示時のみ表示＆位置調整 */
@media screen and (max-width: 767px) {
  .overlay-content {
    position: relative;
  }

  .close-overlay {
    display: block;
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ccc;
    color: #333;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    z-index: 10000;
  }
}

/* メインコンテンツ */
  main {
      padding: 1.5rem 0;
      max-width: 1200px;
      margin: 0 auto;
      padding: 20px;
  }

  .info-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 1rem;
      margin-bottom: 1.5rem;
  }

  .info-card {
      background: white;
      padding: 1.5rem;
      border-radius: 12px;
      box-shadow: 0 4px 15px rgba(0,0,0,0.1);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .info-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  }

  .info-card h2 {
      color: #f77c3e; /* ブルー → オレンジに変更 */
      font-size: 1.4rem;
      margin-bottom: 1rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
  }

/* サブ見出し（h3）用スタイル */
.info-card h3 {
  font-size: 1.1rem;
  color: #444;
  margin-top: 1rem;
  margin-bottom: 0.3rem;
  font-weight: bold;
}

/* サブ見出しのリスト（info-list） */
.info-list {
  list-style: none; 
  padding-left: 1rem;
  margin-bottom: 1rem;
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

  .icon {
      margin-right: 0.5em;
      font-size: 1.8rem;
  }

  .info-card p {
      font-size: 1rem;
      color: #555;
      margin-top: 0;
      margin-bottom: 0.5rem;
  }

  .phone {
      display: inline-block;
      font-size: 1.5rem;
      color: #007bff;
      font-weight: bold;
      text-decoration: none;
  }

  .phone:hover {
      color: #e8662f;
      text-decoration: underline;
  }


/* 店舗からのお知らせ */
.news-list {
  list-style: none;
  padding: 0;
}
.news-list li {
  margin-bottom: 1em;
  font-size: 1rem;
}
.news-list .date {
  color: #555;
  font-size: 0.9rem;
}
.news-list a {
  color: #0077cc;
  text-decoration: underline;
}

.news-list h3 {
  font-size: 1rem;
  margin: 0;
  font-weight: normal;
  display: inline;
}
.news-list p {
  margin: 0;
  font-size: 0.9rem;
  color: #555;
}

/* 届け出情報 */
.compact-info li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.compact-info li h3 {
  font-size: 1rem;
  margin: 0;
  margin-right: 0.5em;
  font-weight: bold;
  color: #444;
  display: inline;
}

.compact-info li::marker {
  content: none; /* 「・」を消す */
}

.compact-info li {
  list-style: none;
}


/* カルーセル＆画像 */

#carouselSection {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 5px 20px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.carousel {
  width: 600px;
  max-width: 100%;
  height: 450px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.slides {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slides.active {
  opacity: 1;
  z-index: 1;
}

button {
  width: 40px;              /* ボタンのサイズ */
  height: 40px;
  border-radius: 50%;       /* ボタンを丸くする */
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.8);
  border: none;
  font-size: 24px;
  z-index: 10;
  cursor: pointer;
}

button:hover {
  background-color: #999;
}

#prevBtn { left: 10px; }
#nextBtn { right: 10px; }

.caption {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  z-index: 5;
  text-align: center;
  max-width: 90%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.caption.active {
  opacity: 1;
}


/* Googleマップセクション */
.map-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.map-section h2 {
    color: #f77c3e;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.map-container {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* LINE友だち追加セクション */
.line-section {
    background: linear-gradient(135deg, #00b900 0%, #00a000 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 2rem;
}

.line-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.line-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.line-title {
    white-space: nowrap;     /* 折り返しを防止 */
    overflow: hidden;        /* はみ出した部分を隠す */
    text-overflow: ellipsis; /* 省略記号（…）を表示 */
    font-size: calc(1.4rem + 0.6vw) !important; /* 画面幅に応じて文字サイズ調整 */
}

.line-button {
    display: inline-block;
    background: white;
    color: #00b900;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.4rem !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.line-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* フッター */
footer {
  text-align: center;
  padding: 20px 0;
  background: #333;
  color: #fff;
  font-size: 0.9em;
  margin-top: 50px;
}

footer p {
  margin: 0.2rem 0;
}

.back-link {
  display: inline-block;
  background: #f77c3e;
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  margin-bottom: 1rem;
  transition: background 0.3s ease;
}

.back-link:hover {
  background: #e8662f;
}


/* フッターリンク */
.footer-link {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #d94c00;
  text-decoration: underline;
}


/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .pharmacy-name {
    font-size: 2rem;
  }

  .container {
    padding: 0 15px;
  }

  .info-grid {
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .info-card {
    margin-bottom: 1em;
  }

  .info-card h3 {
    font-size: 1rem;
  }

  .info-list {
    padding-left: 1.2em;
  }

  .news-list h3 {
    font-size: 0.95rem;
  }

  /* スマホ版のカルーセル余白設定 */
  #carouselSection {
    padding: 0 10px;
  }

  .carousel {
    height: 300px;
    margin-top: 2px;
  }

  h2.visually-hidden {
    margin-bottom: 0;
  }
}


/* ================================================= */
/* モバイルファーストまたはデスクトップファースト    */
/* ================================================= */

@media (max-width: 768px) {
  body {
    font-family: "YuMincho", "Yu Mincho", "游明朝", "Hiragino Mincho ProN", serif;
  }

  .nav-pc ul {
    gap: 15px;
  }

  .hero-catchphrase-top-left {
    font-size: 3.5rem;
  }

  .header-main {
    padding: 0 15px;
  }

  .header-right {
    gap: 0;
  }
}
  .line-button {
    top: 10px;
    right: 10px;
    font-size: 14px;
    padding: 8px 12px;
  }
}
