/* 全体のスタイル */
.footer {
    position: relative;
    color: #fff;
    font-family: 'Noto Sans JP', sans-serif;
    text-align: center;
    overflow: hidden;
    margin-top: 30px;
}

/* 背景画像 */
.footer__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FFC685 0%, #FF9E5E 100%);
    background-size: cover;
    background-position: center;
    z-index: 1;
    opacity: 1; /* ← 不要なら透明度なしに */
}

.footer__content {
    display: flex; /* ← これが必要！ */
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    flex-direction: row; /* ← columnからrowに変更 */
    gap: 40px;
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ロゴ部分 */
.footer__logo {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
}

.footer__logo img {
  max-width: 300px;
  height: auto;
}

/* 横並びの設定 */
.footer__info-hours {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
}

/* 住所と電話番号 */
.footer__info {
    flex: 1;
    line-height: 1.5;
    text-align: left;
    margin-left: 100px;
}

/* 電話番号 */
.footer__phone {
    font-size: 20px;
    font-weight: bold;
    margin-top: 10px;
}

/* 診療時間表 */
.footer__hours {
    flex: 1;
    text-align: left;
}

.footer__hours table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.footer__hours th,
.footer__hours td {
    border: 1px solid #fff;
    padding: 10px;
}

.footer__hours th {
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: bold;
}

.footer__hours-note {
    margin-top: 10px;
    font-size: 16px;
}

/* メニュー */
.footer__menu {
  width: 100%;
  text-align: center;
}

.footer__menu ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 0;
    list-style: none;
    margin: 0;
}

.footer__menu li a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

.footer__menu li a:hover {
    text-decoration: underline;
}

/* Googleマップ */
.footer__map iframe {
    width: 100%;
    height: 400px;
    /* 高さを調整 */
    border: none;
    margin-top: 30px;
}
/* コピーライト */
.footer__copyright {
    margin-top: 20px;
    font-size: 12px;
    opacity: 0.8;
    text-align: center;
    width: 100%; /* 追加: 幅を100%にして中央揃えを適用 */
}

/* モバイル対応 */
@media (max-width: 768px) {
    .footer__info {
        flex: 1;
        font-size: 16px;
        line-height: 1.5;
        text-align: left;
        margin-left: 10px;
    }

    .footer__content {
        padding: 20px;
        gap: 20px;
    }

    .footer__info-hours {
        flex-direction: column;
        gap: 20px;
    }

    .footer__logo img {
        max-width: 150px;
    }

    .footer__hours table,
    .footer__menu ul {
        font-size: 12px;
    }

    /* モバイル対応 */
    .footer__map iframe {
        height: 250px;
        /* モバイル時に高さを調整 */
    }
}


/* サイドバー */
.sidebar {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background-color: #FFA500;
    /* 背景色を#666に変更 */
    display: flex;
    flex-direction: column;
	z-index: 9999;
    padding: 0;
    /* 内側の余白を削除 */
}

.sidebar-item {
    display: flex;
    flex-direction: column;
    /* アイコンと文字を縦に配置 */
    align-items: center;
    color: white;
    text-decoration: none;
    font-size: 16px;
    /* テキストのサイズを少し大きく */
    background-color: transparent;
    /* 背景を透明に */
    padding: 15px;
    /* 内側の余白 */
    transition: background 0.3s ease, color 0.3s ease;
    /* 文字色のトランジションも追加 */
    border-bottom: 1px solid #faca72;
    /* 区切り線を追加 */
}

.sidebar-item:last-child {
    border-bottom: none;
    /* 最後のアイテムには区切り線を表示しない */
}

.sidebar-item img {
    width: 32px;
    /* アイコンを大きく */
    height: 32px;
    margin-bottom: 8px;
    /* アイコンとテキストの間に余白を追加 */
}

.sidebar-item:hover {
    background-color: #faca72;
    color: #ffff;
    /* ホバー時の文字色を変更 */
}

/* モバイル版 */
@media screen and (max-width: 768px) {
    .sidebar {
        flex-direction: row;
        justify-content: space-around;
        bottom: 0;
        right: 0;
        left: 0;
        top: auto;
        transform: none;
        background-color: #FFA500;
        padding: 0;
        /* モバイル版も余白を削除 */
        border-top: 1px solid #faca72;
        /* 上部に線を追加して区切る */
    }

    .sidebar-item {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        font-size: 14px;
        /* モバイル版の文字サイズも調整 */
        padding: 10px;
        border-bottom: none;
        /* モバイルではアイテムごとの区切り線を削除 */
    }

    .sidebar-item img {
        width: 28px;
        /* モバイル版のアイコンサイズを調整 */
        height: 28px;
        margin: 0 0 5px;
    }

    .sidebar-item:hover {
        color: #faca72;
        /* モバイル版でもホバー時の文字色を変更 */
    }
}

/* デフォルトではモバイル専用ボタンを非表示 */
.sidebar-item--mobile-only {
    display: none;
}

@media screen and (max-width: 768px) {
    .sidebar-item--mobile-only {
        display: flex; /* ← ここが抜けてないか確認！ */
    }
}


/* ジャンプボタン */
html {
    scroll-behavior: smooth;
}

.pagetop {
    height: 50px;
    width: 50px;
    position: fixed;
    right: 30px;
    bottom: 120px;
    /* 下からの距離を調整（元の30pxから80pxに変更） */
    background: #fff;
    border: solid 2px #FFA500;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    /* z-indexを大きな値に設定して他の要素よりも前面に表示 */
}

.pagetop__arrow {
    height: 10px;
    width: 10px;
    border-top: 3px solid #FFA500;
    border-right: 3px solid #FFA500;
    transform: translateY(20%) rotate(-45deg);
}

@media screen and (max-width: 768px) {
    .pagetop {
        display: none;
    }
}

.footer__badge img {
  max-width: 400px;  /* ← ここを拡大 */
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 15px;
}


