html {
    scroll-behavior: smooth;
}
body {
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
    font-size: 16px;
    line-height: 2.0;
}

/* PC版の背景グラデーション */
@media (min-width: 768px) {
    body {
        background: linear-gradient(135deg, #C95367 0%, #e08090 25%, #d67183 50%, #b84359 75%, #d6607a 100%);
        min-height: 100vh;
    }
}

.container {
    max-width: 400px;
    margin: 16px auto;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background-color: #fff;
}

/* PC版のコンテナサイズ */
@media (min-width: 768px) {
    .container {
        max-width: 1200px;
        margin: 40px auto;
        box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.15);
        border-radius: 16px;
    }
}

.content {
    padding: 20px;
}

/* PC版のコンテンツパディング */
@media (min-width: 768px) {
    .content {
        padding: 40px 60px;
    }
}

.line {
    border: solid 1px #796661;
    margin-bottom: 28px;
}

/* PC版のライン */
@media (min-width: 768px) {
    .line {
        margin-bottom: 40px;
    }
}

header {
    position: relative;
}

header h1 {
    margin: 0;
}

header h1 img {
    width: 100%;
}

/* ロゴ画像切り替え */
.logo-pc {
    display: none;
}

/* PC版のヘッダーレイアウト */
@media (min-width: 768px) {
    header {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 30px 30px 10px 30px;
        background-color: #fff;
        border-bottom: 2px solid #f0f0f0;
        border-radius: 16px 16px 0 0;
    }

    .logo-pc {
        display: inline;
    }
    .logo-sp {
        display: none;
    }

    header h1 {
        flex: 0 0 auto;
        max-width: 500px;
    }

    header h1 img {
        width: 100%;
        height: auto;
    }
}

.message {
    text-align: left;
    margin-bottom: 24px;
}

/* PC版のメッセージ */
@media (min-width: 768px) {
    .message {
        font-size: 18px;
        margin-bottom: 32px;
        line-height: 2.2;
    }
}

.search {
    margin-bottom: 24px;
}

/* PC版の検索リンク */
@media (min-width: 768px) {
    .search {
        margin-bottom: 32px;
    }
    .search a {
        font-size: 18px;
        padding: 12px 24px;
        display: inline-block;
    }
}

h2 {
    font-size: 18px;
    margin-bottom: 10px;
}

/* PC版の見出し */
@media (min-width: 768px) {
    h2 {
        font-size: 24px;
        margin-bottom: 16px;
    }
}

/* p {
    font-size: 16px;
    margin-bottom: 20px;
} */

form {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}

.input-text {
    text-align: left;
    font-size: 14px;
    margin-bottom: 4px;
}

/* PC版の入力テキスト */
@media (min-width: 768px) {
    .input-text {
        font-size: 18px;
        margin-bottom: 8px;
    }
}

.error-text {
    color: #ff0000;
    text-align: center;
    font-size: 18px;
}

/* PC版のエラーテキスト */
@media (min-width: 768px) {
    .error-text {
        font-size: 22px;
    }
}

label {
    font-size: 14px;
    text-align: left;
    margin-top: 10px;
}

/* PC版のラベル */
@media (min-width: 768px) {
    label {
        font-size: 18px;
        margin-top: 16px;
    }
}

input {
    padding: 8px;
    font-size: 16px;
    /* margin-top: 5px; */
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 12px;
}

/* PC版の入力フィールド */
@media (min-width: 768px) {
    input {
        padding: 14px 16px;
        font-size: 20px;
        margin-bottom: 20px;
        border-radius: 8px;
    }
}

button {
    margin: 24px auto;
    padding: 10px;
    background-color: #015fcb;
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 200px;
    text-align:center;
}

/* PC版のボタン */
@media (min-width: 768px) {
    button {
        margin: 32px auto;
        padding: 16px 24px;
        font-size: 20px;
        width: 280px;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

    button:hover {
        background-color: #0056b3;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }
}

.backbuttonarea {
    margin-bottom:12px;
}

/* PC版の戻るボタンエリア */
@media (min-width: 768px) {
    .backbuttonarea {
        margin-bottom: 20px;
    }
}

.backbutton {
    background-color:#bce2e8;
}

button:hover {
    background-color: #0056b3;
}

.clinic-name {
    font-weight: bold;
    color:#007bff;
    font-size: 20px;
}

/* PC版のクリニック名 */
/* @media (min-width: 768px) {
    .clinic-name {
        display: none;
    }
} */

hr.line{
    border: none;
    border-top: 1px dotted #007bff;
}

.infoarea {
    text-align:left;
    padding: 10px 30px;
}

/* PC版の情報エリア */
@media (min-width: 768px) {
    .infoarea {
        font-size: 18px;
        padding: 20px 40px;
        line-height: 2.2;
    }
}

/* 動画一覧 */
.video-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

/* PC版の動画一覧 */
@media (min-width: 768px) {
    .video-list {
        flex-direction: row;
        gap: 24px;
        align-items: stretch;
        justify-content: center;
    }
}

.video-container {
    background-color: #ebe9e9;
    padding: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-align: left;
    position: relative;
    width: 100%;
}

/* PC版の動画コンテナ */
@media (min-width: 768px) {
    .video-container {
        padding: 20px;
        border-radius: 12px;
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
    }
}

.title-container {
    background-color: #fff;
    font-size: 16px;
    margin-bottom: 10px;
    border-radius: 8px;
    padding: 0 8px;
}

.title-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.video-number {
  font-size: 20px;
  font-weight: bold;
}

.title-sub {
  margin-top: 4px;
  font-size: 20px;
  font-weight: bold;
}

/* PC版のタイトルコンテナ */
@media (min-width: 768px) {
    .title-container {
        font-size: 18px;
        margin-bottom: 12px;
        padding: 6px 12px;
        border-radius: 10px;
        height: 120px;
    }


}

.duration {
    font-size: 14px;
    color: #555;
}

/* PC版の時間表示 */
@media (min-width: 768px) {
    .duration {
        font-size: 16px;
    }
}

.thumbnail {
    position: relative;
    width: 100%;
}

.thumbnail img {
    width: 100%;
    border-radius: 8px;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 24px;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
}

/* PC版の再生ボタン */
@media (min-width: 768px) {
    .play-button {
        font-size: 40px;
        padding: 20px;
        transition: all 0.3s ease;
    }

    .play-button:hover {
        background: rgba(0, 0, 0, 0.9);
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.description {
    font-size: 14px;
    color: #333;
    margin-top: 10px;
    text-align: left;
    padding-bottom: 40px;
}

/* PC版の説明文 */
@media (min-width: 768px) {
    .description {
        font-size: 16px;
        margin-top: 12px;
        padding-bottom: 50px;
        line-height: 1.8;
        flex: 1;
    }
}

.watched-btn {
    background-color: #007bff;
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 20px;
    margin-top: 10px;
    position: absolute;
    right: 15px;
    bottom: 15px;
}

/* PC版の視聴済みボタン */
@media (min-width: 768px) {
    .watched-btn {
        padding: 10px 16px;
        font-size: 14px;
        border-radius: 20px;
        right: 20px;
        bottom: 20px;
    }
}

.nowatch {
    background-color: red;
}

/* 動画視聴ページで動画を画面いっぱいに表示 */
.video-area {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

video {
    width: 100%;
    height: auto;
    margin: 40px 0px;
}

/* PC版の動画プレイヤー */
@media (min-width: 768px) {
    video {
        width: 100%;
        height: auto;
        max-height: 675px;
        margin: 60px 0px;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
}

.pdf-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pdf-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ガイドブック画像とリンクのスタイル */
.guidebook-img {
    max-width: 100%;
    height: auto;
    margin: 16px 0;
}

.guidebook-link {
    color: #015fcb;
    text-decoration: underline;
    font-size: 16px;
}

/* PC版のガイドブックセクション */
@media (min-width: 768px) {

    .pdf-list {
        flex-direction: row;
        justify-content: space-around;
    }

    .pdf-item {
        width: 30%;
    }

    .guidebook-img {
        margin: 24px 0;
        max-width: 300px;
    }

    .guidebook-link {
        font-size: 20px;
        font-weight: bold;
        transition: color 0.3s ease;
    }

    .guidebook-link a:hover {
        color: #0056b3;
    }
}

/* TOPへ戻る */
#pageTop {
    position: fixed;
    bottom: 30px;
    right: 20px;
    z-index:1;
}
#back-to-top {
  background-color: #333;
  color: white;
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
}

/* footer */
.site-footer {
  height: 100%;
}

.footer-content {
  height: 100%;
  display: flex;
  align-items: center;
  border: 1px solid #4b2e1e;
}

/* PC版のフッターコンテント */
@media (min-width: 768px) {
  .footer-content {
    border-radius: 0 0 16px 16px;
    overflow: hidden;
  }
}

.footer-iconarea {
  background-color: #fff;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 8px;
}

/* PC版のフッターアイコンエリア */
@media (min-width: 768px) {
  .footer-iconarea {
    padding: 0 16px;
  }
}

.footer-image {
  width: auto;
}

/* PC版のフッター画像 */
@media (min-width: 768px) {
  .footer-image {
    height: 80px;
  }
}

.footer-text {
  font-size: 12px;
  text-align:left;
  background-color: #4b2e1e;
  color: white;
  padding: 4px;
  letter-spacing: 1px;
  width:100%;
}

/* PC版のフッターテキスト */
@media (min-width: 768px) {
  .footer-text {
    font-size: 16px;
    padding: 12px 20px;
    letter-spacing: 1.5px;
    line-height: 1.8;
  }
}
