/* 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;
    scroll-behavior: smooth;
    overflow-x: hidden; /* 横スクロールバーが出ないように */
}

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

ul {
    list-style: none;
}

/* ================================================= */
/* ヘッダー */
/* ================================================= */
.header {
    background-color: #fff; /* 白背景 */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

.header-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    color: #333;
    font-weight: bold;
    font-size: 1.5rem;
}

.logo-prescription {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  height: 30px;
  width: 150px;
  border-radius: 4px;
  white-space: nowrap;
  font-size: 0.8em;
  color: #fff;
  background-color: #00CC5C; /* PC用の背景色 */
}

.prescription-image {
  display: block;
  max-height: 24px;
  border-radius: 8px; /* ← 角を丸くする */
}

/* テキストと画像の切り替え制御 */
.logo-prescription .prescription-text {
  display: block;
}

.logo-prescription .prescription-image {
  display: none;
  max-height: 50px;
}

/* スマホ表示時のスタイル調整 */
@media screen and (max-width: 768px) {
  .logo-prescription {
    background-color: transparent;
    padding: 0;
    width: auto;
    height: auto;
  }

  .logo-prescription .prescription-text {
    display: none;
  }

  .logo-prescription .prescription-image {
    display: block;
  }
}



/* 実際の画像ファイルがあれば、imgタグのsrcに指定し、上のlogo-prescriptionのスタイルは不要になる可能性あり */

.site-title img {
  width: 200px;    /* お好みで調整可能 */
  height: auto;
  display: block;    /* レイアウトの乱れ防止 */
  border-radius: 3px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 30px; /* PCナビとソーシャルアイコンの間隔 */
}

/* PC用ナビゲーション */
.nav-pc ul {
    display: flex;
    gap: 35px; /* 各メニュー項目間の間隔 */
}

.nav-pc a {
    color: #555;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-pc a::after { /* 下線アニメーション */
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    background-color: #f77c3e; /* ロゴの色に合わせる */
    transition: width 0.3s ease;
}

.nav-pc a:hover {
    color: #f77c3e; /* ホバーで色を変える */
}

.nav-pc a:hover::after {
    width: 100%;
}

/* ソーシャルメディアアイコン (PC版) */
.social-icons-pc {
    display: flex; /* アイコンを横並びに */
}
.social-icons-pc a {
    color: #888;
    font-size: 1.5rem;
    margin-left: 15px;
    transition: color 0.3s ease;
}

.social-icons-pc a:hover {
    color: #f77c3e;
}

/* ハンバーガーメニューアイコン (最初は非表示) */
.hamburger-menu {
    display: none; /* PCでは非表示 */
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 500;
}

.hamburger-menu .bar {
    width: 25px;
    height: 3px;
    background-color: #555; /* ヘッダーの色に合わせる */
    margin: 5px 0;
    transition: 0.4s;
}

/* ハンバーガーメニューがアクティブ（開いている）時のアニメーション (不要になったが念のため残す) */
/* .hamburger-menu.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); } */
/* .hamburger-menu.active .bar:nth-child(2) { opacity: 0; } */
/* .hamburger-menu.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); } */

/* スマホ用オーバーレイメニュー (初期状態は非表示) */
.nav-sp-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(253, 245, 230, 0.92); /* ほぼ不透明の白→淡いオレンジ */
    display: flex;
    flex-direction: column;
    transform: translateX(100%); /* 最初は右に隠す */
    transition: transform 0.4s ease-in-out;
    z-index: 2000; /* 最前面 */
    padding-top: 20px; /* ヘッダー部分のパディング */
}

.nav-sp-overlay.active {
    transform: translateX(0); /* 表示時に左にスライド */
}

.sp-overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* ヘッダーの影 */
    margin-bottom: 20px;
}

.sp-logo-link {
    display: flex;
    align-items: center;
    color: #333;
    font-weight: bold;
    font-size: 1.3rem;
    flex-grow: 1; /* スペースを埋める */
}

.sp-logo-prescription {
    height: 25px;
    margin-right: 8px;
    background-color: #f77c3e;
    width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7em;
    color: #fff;
    border-radius: 4px;
    white-space: nowrap;
}

.sp-overlay-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: #555;
    display: flex; /* flexにしてアイコンとテキストを横並びにする */
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    transition: color 0.3s ease;
}
.sp-overlay-button:hover {
    color: #f77c3e;
}

/* 「CLOSE」ボタンは初期状態では非表示 */
.sp-overlay-button.close-button {
    display: none;
}


.nav-sp-overlay ul {
    text-align: center;
    width: 100%;
    flex-grow: 1; /* 残りのスペースを埋める */
    display: flex;
    flex-direction: column;
    justify-content: center; /* メニュー項目を中央に */
}

.nav-sp-overlay li {
    padding: 5px 0;
}

.nav-sp-overlay a {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
    display: block;
    padding: 6px 16px;
    transition: color 0.3s ease;
}

.nav-sp-overlay a:hover {
    color: #f77c3e;
}

 /* 処方箋受付オーバーレイ */
#overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  overflow: auto; /* ← スクロール可能にする */
  padding: 2em;
  box-sizing: border-box;
}

.overlay-content {
  background-color: #fff;
  padding: 0.5em;
  border-radius: 8px;
  width: 90%;
  max-width: 700px; /* 最大幅を指定 */
  max-height: 90vh; /* ← 画面の90%までの高さに制限 */
  overflow-y: auto; /* ← 内容が多い場合スクロール */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.reception-section {
  background-color: #f9f9f9;
  padding: 2em;
  border-radius: 8px;
  margin: 2em 0;
  font-family: 'Helvetica', sans-serif;
}

.reception-section h2 {
  font-size: 1.8em;
  margin-bottom: 0.5em;
  color: #2c3e50;
}

.reception-section h3 {
  font-size: 1.4em;
  margin-top: 1.5em;
  color: #34495e;
}

.reception-section p {
  line-height: 1.6;
  margin: 1em 0;
}

.reception-section ol {
  padding-left: 1.2em;
}

.reception-section li {
  margin-bottom: 0.5em;
}

.line-buttons ul {
  list-style: none;
  padding: 1em;
}

.line-buttons li {
  margin-bottom: 1.5em;
}

.line-btn {
  display: inline-block;
  background-color: #00c300;
  color: white;
  padding: 0.6em 1.2em;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
}

.line-btn:hover {
  background-color: #009e00;
}


/* ================================================= */
/* ヒーローセクション */
/* ================================================= */

.hero-section {
  position: relative;
  width: 100%;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center; /* キャッチフレーズの初期配置は中央 */
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  overflow: hidden;
}

.hero-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.carousel-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-position: top center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  filter: blur(2px); /* ← ここでぼかしを追加 */
}

.carousel-slide.active {
  opacity: 1;
}

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

/* キャッチフレーズを左上に配置 */
.hero-catchphrase-top-left {
    position: absolute; /* 絶対配置 */
    top: 3%; /* 上からの位置 */
    left: 10%; /* 左からの位置 */
    font-size: 6rem;
    letter-spacing: 0.1em;
    font-weight: bold;
    z-index: 10;
    text-align: left; /* テキストは左寄せ */
    line-height: 1.2;
}

.hero-section::before,
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;   
    width: 20%; /* ← ぼかしの横幅（調整可） */
    height: 100%; 
    z-index: 3;
    pointer-events: none;
}

.hero-section::before {
  left: 0;
  background: linear-gradient(to right, rgba(255,255,255,1.5), rgba(255,255,255,1.5), rgba(255,255,255,1.5), rgba(255,255,255,0));
}

.hero-section::after {
  right: 0;
  background: linear-gradient(to left, rgba(255,255,255,1.5), rgba(255,255,255,1.5), rgba(255,255,255,1.5), rgba(255,255,255,0));
}


/* PC版のリンクグリッドは不要なのでスタイルを削除 (HTMLからも削除済み) */
/* .section-links-grid, .link-item のスタイルは不要 */


/* スクロールダウンインジケータ (前回と変更なし) */
.scroll-down-indicator {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #fff;
    font-size: 0.9rem;
    opacity: 0.7;
    animation: bounce 1.5s infinite;
    z-index: 10;
}

.scroll-down-indicator i {
    display: block;
    font-size: 1.5rem;
    margin-top: 5px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ================================================= */
/* 各セクション共通スタイル (前回と変更なし) */
/* ================================================= */
.content-section {
    max-width: 1000px;
    margin: 0 auto;
        padding: 60px 15px;
    min-height: 50vh;
    border-bottom: 1px solid #eee;
}

.content-section:last-of-type {
    border-bottom: none;
}

.content-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    color: #f77c3e;
    font-weight: bold;
}

.content-section p {
    text-align: center;
}

.news-list { margin-top: 30px; }
.news-item { border-bottom: 1px solid #eee; padding-bottom: 20px; margin-bottom: 20px; }
.news-item:last-child { border-bottom: none; }
.news-item h3 { font-size: 1.3rem; margin-bottom: 10px; }
.news-item h3 a { color: #333; transition: color 0.3s ease; }
.news-item h3 a:hover { color: #f77c3e; }
.news-item p { color: #555; text-align: left;}

.news-link {
  display: inline-block;         /* 左寄せにするため */
  text-align: left;
  color: #666;                /* 通常時の色 */
  text-decoration: none;
  font-weight: bold;
  margin-top: 10px;
}

.news-link:hover {
  color: orange;                 /* ホバー時にオレンジに変化 */
  text-decoration: underline;   /* 任意：下線を追加してもOK */
}

.about-grid { display: flex; flex-wrap: wrap; gap: 30px; justify-content: center; margin-top: 40px; }
.about-item { background-color: #fff; border: 1px solid #ddd; border-radius: 8px; padding: 30px; flex: 1 1 calc(33% - 40px); max-width: 350px; text-align: center; box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
.about-item h3 { margin-bottom: 15px; color: #f77c3e; }

.store-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.store-item { background-color: #f9f9f9; border: 1px solid #ddd; border-radius: 8px; padding: 25px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.store-item h3 { color: #f77c3e; margin-bottom: 10px; }
.store-item p { margin-bottom: 5px; text-align: left;}
.store-item a { display: inline-block; margin-top: 10px; color: #28a745; font-weight: bold; }
.row-1 { grid-template-columns: repeat(2, minmax(300px, 1fr)); }
.row-2 { grid-template-columns: 1fr; }

.recruit-info { text-align: center; margin-top: 40px; }
.recruit-info h3 { font-size: 1.7rem; color: #f77c3e; margin-bottom: 20px; }
.recruit-info p { margin-bottom: 30px; }

.btn-link { display: inline-block; background-color: #f77c3e; color: #fff; padding: 15px 30px; border-radius: 5px; font-weight: bold; transition: background-color 0.3s ease; }
.btn-link:hover { background-color: #e06c30; }

.center-button {
  text-align: center;
  margin-top: 30px;
}

/* ================================================= */
/* 店舗情報ブロック (スマホ版下部にあったもの) */
/* ================================================= */
.store-info-block {
    max-width: 700px;
    margin: 50px auto;
    padding: 40px 20px;
    background-color: #f8f8f8;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.store-details {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    flex-grow: 1;
}

.detail-item {
    background-color: #fff;
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    flex: 1 1 auto;
    min-width: 250px;
}

.detail-item h3 {
    color: #f77c3e;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.detail-item p {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.pharmacy-entrance-img {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 5px;
}

.pharmacy-entrance-img img {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.9); 
}

/* ================================================= */
/* LINEセクション */
/* ================================================= */
.line-section {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    align-items: flex-start;
    margin-top: 40px;
}

.line-qr-container {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    text-align: center;
}

.qr-code-display {
    background-color: #fff;
    border: 2px solid #06C755;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: none;
}

.qr-code-display.active {
    display: block;
}

.qr-code-display #qr-code {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.qr-code-display #qr-code canvas {
    border-radius: 10px;
}

.qr-code-display p {
    color: #333;
    font-weight: bold;
    margin: 0;
}

.line-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.line-add-button, .qr-toggle-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 25px;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.line-add-button {
    background-color: #06C755;
    color: #fff;
}

.line-add-button:hover {
    background-color: #05b04a;
    transform: translateY(-2px);
}

.qr-toggle-button {
    background-color: #fff;
    color: #06C755;
    border: 2px solid #06C755;
}

.qr-toggle-button:hover {
    background-color: #06C755;
    color: #fff;
}

.line-features {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.line-feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: #f8f8f8;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #06C755;
}

.line-feature-item i {
    font-size: 2rem;
    color: #06C755;
    min-width: 30px;
}

.line-feature-item h3 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 1.2rem;
}

.nowrap {
  white-space: nowrap;
}

.line-feature-item p {
    margin: 0;
    color: #666;
    font-size: 1.0rem;
}

.line-contact-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #06C755;
    color: #fff;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.line-contact-button:hover {
    background-color: #05b04a;
    transform: translateY(-2px);
}

/* 画像アップロード機能 */
.file-upload-container {
    margin: 15px 0;
}

.file-upload-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #f77c3e;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.file-upload-label:hover {
    background-color: #e06c30;
}

#image-upload {
    display: none;
}

.image-preview-container {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.image-preview-item {
    position: relative;
    display: inline-block;
}

.image-preview-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    border: 2px solid #ddd;
}

.image-preview-item .remove-image {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff4444;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-preview-item .remove-image:hover {
    background-color: #cc0000;
}

/* ================================================= */
/* フッター (前回と変更なし) */
/* ================================================= */
.footer {
    background-color: #333;
    color: #fff;
    font-size: 0.9rem;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
}

.footer-link {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* ================================================= */
/* レスポンシブデザイン (モバイルファーストまたはデスクトップファースト) */
/* ================================================= */

@media (max-width: 1024px) {
    body {
        font-family: "YuMincho", "Yu Mincho", "游明朝", "Hiragino Mincho ProN", serif;
    }
    .nav-pc ul {
        gap: 15px;
    }
    .hero-catchphrase-top-left {
        font-size: 3.5rem; /* 少し小さく */
    }
}

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

    /* ヘッダー */
    .header-main {
        padding: 0 15px;
    }

    .header-right {
        gap: 0;
    }

    .nav-pc, /* PC用ナビを非表示 */
    .social-icons-pc, /* PC用ソーシャルアイコンを非表示 */
    .scroll-down-indicator { /* スクロールダウンインジケータを非表示 */
        display: none;
    }

    /* ハンバーガーメニューを表示 */
    .hamburger-menu {
        display: block; /* デフォルトで表示 */
    }

    /* スマホ用ロゴの調整 */
    .logo-link {
        font-size: 1.3rem;
    }
    .logo-prescription {
        height: 25px;
        width: 100px;
        font-size: 0.7em;
    }

    /* ヒーローセクション */
    .hero-section {
      position: relative;
      width: 100%;
      min-height: 40vh;
      display: flex;
      flex-direction: column;
      justify-content: flex-start; /* 明示的に縦方向の上寄せを指示 */
      padding-top: 250px; /* キャッチフレーズの余白 */
      overflow: hidden;
    }

    .hero-carousel {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: -1;
    }

    .carousel-slide {
      position: absolute;
      width: 100%;
      height: 100%;
      opacity: 0;
      transition: opacity 1s ease-in-out;
    }

    .carousel-slide.active {
      opacity: 1;
    }

    .carousel-slide img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .hero-catchphrase-top-left {
        position: static; /* 絶対配置を解除 */
        transform: none; /* 中央寄せ解除 */
        top: auto;
        left: auto;
        font-size: 3.5rem; /* スマホでのフォントサイズ */
        margin-bottom: 0; /* マージンをリセット */
        margin-left: 20px; /* 左端からの余白 */
        text-align: left;
    }

    .hero-section::before,
    .hero-section::after {
        width: 10%;
    }
}


    /* LINEセクション スマホ対応 */
    .line-section {
        flex-direction: column;
        gap: 30px;
    }

    .line-qr-container {
        min-width: auto;
        max-width: 100%;
    }

    .line-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .line-add-button, .qr-toggle-button {
        font-size: 1rem;
        padding: 12px 20px;
    }

    .line-features {
        min-width: auto;
        gap: 15px;
    }

    .line-feature-item {
        padding: 15px;
    }

    .line-feature-item i {
        font-size: 1.5rem;
    }

    /* お問い合わせフォーム スマホ対応 */
    .contact-methods {
        flex-direction: column;
        gap: 30px;
    }

    .contact-method {
        min-width: auto;
        max-width: 100%;
        padding: 20px;
    }

    .contact-method h3 {
        font-size: 1.2rem;
    }

    /* 会社概要テーブル */

.company-info-table {
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
  box-sizing: border-box;
}

.company-info-table tr {
  display: block;
  border-bottom: 1px solid #eee;
  margin-bottom: 15px;
}

.company-info-table tr:last-child {
  border-bottom: none;
}

.company-info-table th,
.company-info-table td {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
}

.company-info-table th {
  text-align: center;
  background-color: #FEECBD;
}

.company-info-table td {
  text-align: left;
  margin-bottom: 10px;
}

    /* サービス（今回はサト薬局とは）と店舗リスト */
    .about-item,
    .store-item {
        flex: 1 1 100%;
        max-width: 400px;
    }

    /* 店舗情報ブロック */
    .store-info-block {
        flex-direction: column;
        gap: 30px;
        padding: 30px 15px;
    }

    .detail-item {
        width: 100%;
        padding: 15px 20px;
    }

    .pharmacy-entrance-img {
        max-width: 100%;
    }

}


/* スマホ向け (例: 幅768px以下) のオーバーレイの調整 */
@media screen and (max-width: 768px) {
  #overlay {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 9999;
    padding: 1em 0.5em;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
  }

  .overlay-content {
    font-size: 1rem;
    line-height: 1.6;
    width: 95%;
    padding: 1.5em;
  }

  .reception-section {
    padding: 2em 1em; /* 横の余白を少しだけ残す */
  }

  .line-buttons ul {
    list-style: none;
    padding: 0;
  }

  .line-buttons li {
    margin-bottom: 1em;
    text-align: center;
  }

  .line-btn {
    display: inline-block;
    margin-top: 0.5em;
    padding: 0.6em 1.2em;
    background-color: #00c300;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
  }

  .line-btn:hover {
    background-color: #009900;
  }
}

.close-btn {
  display: none;
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #ccc;
  border: none;
  padding: 0.5em 1em;
  font-size: 1rem;
  border-radius: 5px;
  z-index: 10000;
}

@media screen and (max-width: 768px) {
  .close-btn {
    display: block;
  }
}

/* さらに小さなスマホ向け (例: 幅480px以下) の調整 */
@media (max-width: 480px) {
    body {
        font-family: "YuMincho", "Yu Mincho", "游明朝", "Hiragino Mincho ProN", serif;
    }
    .hero-catchphrase-top-left {
        font-size: 2rem;
        margin-left: 15px; /* さらに狭める */
    }
    .hero-section::before,
    .hero-section::after {
        width: 5%;
    }
    .content-section h2 {
        font-size: 1.8rem;
    }
    .logo-link {
        font-size: 1.1rem;
    }
    .logo-prescription {
        height: 20px;
        width: 80px;
        font-size: 0.6em;
    }
    .sp-overlay-header {
        padding: 10px 15px;
    }
    .sp-logo-link {
        font-size: 1.1rem;
    }
    .sp-logo-prescription {
        height: 20px;
        width: auto;
        font-size: 0.6em;
    }
    .sp-overlay-button {
        font-size: 0.9rem;
        padding: 3px 8px;
    }
    .sp-overlay-button i {
        font-size: 0.9rem;
    }
    .nav-sp-overlay a {
        font-size: 1.4rem;
        padding: 8px 15px;
    }
}
