@charset "utf-8";

/*
Base style
*/

/*
Theme Name: sapporomedical_university/
*/

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ========= ヘッダー基本 ========= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  width: 100%;
  height: auto;
  background: #fff;
  padding: 10px 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  display: flex;
  flex-wrap: wrap; /* スマホ対応 */
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}

/* ロゴ */
.logo img {
  height: 100px;
  max-width: 100%;
}

/* ========= ナビゲーション共通 ========= */
.main-nav .menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 100vw;
  box-sizing: border-box;
  overflow-wrap: break-word;
}

.main-nav .menu li {
  position: relative;
}

.main-nav .menu li a {
  display: inline-block;
  padding: 6px 8px;
  text-decoration: none;
  color: #000;
  font-weight: bold;
  font-size: 16px;
  white-space: nowrap;
}

/* サブメニュー */
.has-submenu:hover .submenu {
  display: block;
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #ccc;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  min-width: 160px;
  z-index: 1000;
}

.submenu li {
  padding: 8px 12px;
  list-style: none; /* ← ●を消す */
}

.submenu li a {
  display: block;
  color: #000;
  white-space: nowrap;
}


/***********index.php*******************/
/* body上部の余白を確保 */
body {
  padding-top: 110px;
}


/*head 写真*/
.slideshow {
  position: relative;
  width: 100vw;
  max-width: 100%;
  height: 700px;
  overflow: hidden;
}

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

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

@media screen and (max-width: 800px) {
  header,
  .site-header {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  .slideshow {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}



/* ======================== */
/* スポーツ医学講座について&診療のご案内 */
/* ======================== */

.container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 50px;
  flex-wrap: wrap; /* 小さい画面で折り返しやすくする */
}

/* リンクボックス */
.box-link {
  text-decoration: none;
  width: 400px;
  max-width: 100%; /* スマホで横にはみ出さない */
}

/* ボックス全体 */
.box {
  height: 180px;
  background-color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 10px;
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
  transition: 0.3s;
}

.box:hover {
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
  transform: translateY(-3px);
}

.title {
  font-size: 18px;
  font-weight: bold;
  color: black;
}

.icon {
  width: 100px;
  height: 100px;
  margin: 10px 0;
}

.box div {
  color: black;
}


/* お知らせ */
.news-section {
padding: 40px 20px;
background-color: #f8f9fa;
max-width: 1200px;
margin: 0 auto;
}

.section-news-title {
text-align: center;
font-size: 28px;
font-weight: bold;
margin-bottom: 30px;
border-bottom: 2px solid #00bcd4;
display: inline-block;
padding-bottom: 5px;
}

.news-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 20px;
}

.news-card {
background: #fff;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
text-decoration: none;
color: #333;
transition: transform 0.2s, box-shadow 0.2s;
}

.news-card:hover {
transform: translateY(-4px);
box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.news-thumbnail img {
width: 100%;
height: 180px;
object-fit: cover;
}

.news-meta {
padding: 15px;
}

.news-date {
font-size: 14px;
color: #888;
margin-bottom: 5px;
}

.news-title {
font-size: 18px;
font-weight: 600;
}

/* 過去のお知らせリンク */
.news-more {
text-align: center;
margin-top: 30px;
}

.news-more-link {
display: inline-block;
padding: 10px 20px;
color: #00bcd4;
font-weight: bold;
text-decoration: none;
border: 2px solid #00bcd4;
border-radius: 30px;
transition: background-color 0.2s, color 0.2s;
}

.news-more-link:hover {
background-color: #00bcd4;
color: white;
}

.sns-links img {
  width: 60px; /* ← お好みでサイズ調整（例：50〜80px） */
  height: auto;
  display: inline-block;
  margin: 0 auto;
}


/* ========== バナーセクション修正 ========== */
/* バナーのスタイル調整：PCで横幅いっぱいに表示 */
.banner-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
  background-color: #00afb7; /* ご希望の色 */
  padding: 20px 40px;
  margin: 40px 0;
  width: 100%;
  box-sizing: border-box;
  border-radius: 0; /* ← 角丸をなくす */
  box-shadow: 0 2px 8px rgba(0, 175, 183, 0.2);
}

.banner-container a {
  display: inline-block;
  padding: 5px;
}

.banner-container img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

/*********************** フッター *************/
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: white;
  padding: 10px 20px;
  border-top: 2px solid #ccc;
  position: relative; /* 他の要素と重ならないようにする */
  z-index: 10; /* フッターを前面に表示 */
  margin-top: 20px; /* 上部のバナーと適切に距離を取る */
}


.footer-logo img{
  height: 60px;
}

.address {
  font-size: 14px;
  color: #333;
}

/********************* コンテンツエリアの基本スタイル **************************/
.Content {
  position: relative;
  padding: 60px 20px;
  margin-bottom: 30px;
  border: 1px solid #000; /* 枠線 */
  overflow: hidden; /* 背景がはみ出さないように */
  min-height: 300px; /* ← 高さを確保 */
}

/* 背景画像用のスタイル */
.Content-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: -1;
  opacity: 0.4; /* 50%の透明度 */
}

/**********************下位ページ****************************************/
/* タイトルのスタイル */
.Content-title {
  font-size: 50px;
  font-weight: bold;
  color: black;
  position: relative;
  z-index: 1; /* テキストを背景より前面に */
  text-align: center; /* テキストを中央揃えに */
  width: 100%; /* 幅いっぱいに広げて中央揃えが効くようにする */
}

/**********************教授挨拶****************************************/
/* セクションタイトル */
.section-title {
  font-size: 40px;
  font-weight: bold;
  color: rgb(0, 175, 183);
  text-align: center;
  position: relative;
  margin-bottom: 40px;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 90%;
  height: 2px;
  background-color: rgb(0, 175, 183);
  transform: translateX(-50%);
  border-radius: 3px;
}

/* 教授挨拶 全体 */
.greeting {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  padding: 0 5%;
  flex-wrap: wrap;
}

/* テキストボックス */
.greeting-textbox {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
}

/* タイトル */
.greeting-small-title {
  font-size: 25px;
  font-weight: bold;
  line-height: 1.8;
  margin-bottom: 20px;
  position: relative;
  padding-left: 20px;
}

.greeting-small-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 5px;
  height: 80%;
  background-color: rgb(0, 175, 183);
  border-radius: 3px;
}

/* 本文 */
.greeting-content {
  font-size: 16px;
  line-height: 1.8;
}

/* 写真 */
.photo-box {
  width: 250px;
  flex-shrink: 0;
  margin-top: 10em; /* ← ここで調整 */
}

.photo-box img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.professor-name {
  margin-top: 10px;
  text-align: center;
  font-size: 25px;
}

.section-nav {
  text-align:center;          /* 左寄せに変更 */
  font-size: 18px;           /* 少し大きめの文字に */      
}

.section-nav a {
  text-decoration: underline;
  color: #008c8c;
}

/*******************************講座理念セクション ***********************************/
.section-vision {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 20px;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  line-height: 1.8;
  color: #333;
}

.section-vision .philosophy {
  font-size: 30px;
  font-weight: bold;
  margin-bottom: 10px;
  text-align: center;
}

.section-vision .bold {
  font-weight: bold;
}

.section-vision .mission {
  font-size: 16px;
  text-align: center;
  margin-bottom: 30px;
}

.section-vision .three-columns {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.section-vision .three-columns .column {
  flex: 1;
  min-width: 250px;
  background: #f8f8f8;
  padding: 20px;
  border-left: 4px solid #7fc6c5;
  border-radius: 4px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
}

.section-vision .column-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}


.section-vision .etymology {
  font-size: 16px;
  color: #333;
}

/********************** 診察案内リンク表示 共通スタイル **********************/
.intro-lead-wrapper {
  text-align: center;
  margin: 30px auto;
  max-width: 1000px;
}

.intro-line {
  font-size: 20px;
  font-weight: bold;
  margin: 10px 0;
  text-align: left;
}

.intro-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5em;
  font-size: 25px;
  font-weight: bold;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
}

.intro-links a {
  color: #00afb7;
  text-decoration: underline;
}

.intro-links .divider {
  color: #000;
  margin: 0 4px;
}
.post-line {
  font-size: 20px;
  font-weight: bold;
  margin: 10px 0;
  text-align: right;
}


@media screen and (max-width: 768px) {
  .intro-links {
    flex-direction: column;
    gap: 0;
  }

  .intro-links .divider {
    display: none;
  }

  .intro-links a {
    display: block;
    margin-bottom: 5px;
  }
}

/********************** セクション内容 **********************/
.section {
  position: relative;
  scroll-margin-top: 100px;
  padding: 40px 20px;
  text-align: center;
}

.section-header {
  background-color: #f1f1f1;
  padding: 20px 0;
  margin-bottom: 30px;
}

.section-header h2 {
  font-size: 32px;
  font-weight: bold;
  margin: 0;
}

.section-text {
  font-size: 20px;
  line-height: 1.8;
  max-width: 1000px;
  margin: 0 auto 50px auto;
  text-align: left;
}

/********************** 画像など **********************/
.examination-image img {
  width: 100%;
  height: auto;
  max-width: 1000px;
  margin: 40px auto 0 auto; /* ← これが効く */
  display: block;
}

/********************** 予約ボックス **********************/
.reservation-box {
  border: 1px solid #001f4d;
  padding: 20px;
  max-width: 700px;
  margin: 0 auto;
}

.reservation-text {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
}

/* 予約リンクのスタイルを明確に再定義 */
.link {
  font-size: 24px;
  color: #00afb7 !important;
  text-decoration: underline !important;
  margin-left: 5px;
}

.reservation-note {
  font-size: 18px;
}

/* =====================オプトアウト案内セクション====================== */
.optout-link-section {
  background-color: #f7f7f7;
  padding: 40px 20px;
  margin-top: 60px;
  border-top: 2px solid #ccc;
  text-align: center;
}

.optout-link-container {
  max-width: 900px;
  margin: 0 auto;
}

.optout-title {
  font-size: 28px;
  font-weight: bold;
  color: #000;
  margin-bottom: 20px;
}

.optout-text {
  font-size: 18px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 30px;
}

.optout-button {
  display: inline-block;
  padding: 12px 24px;
  font-size: 18px;
  color: #fff;
  background-color: #00afb7;
  text-decoration: none;
  border-radius: 30px;
  transition: background-color 0.3s ease;
}

.optout-button:hover {
  background-color: #008c8c;
}




/****************************お知らせ*****************************************/
.inform-title {
  position: relative;
  width: 100%;
  height: 400px;
  background-size: cover;
  background-position: center;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

.inform-title h1 {
  font-size: 2.5em;
  margin: 0;
}

.inform-title .date {
  font-size: 1.2em;
  margin: 0;
}

.inform-content {
  padding: 40px 20px;
  max-width: 800px;
  margin: auto;
}

.inform-content p {
  font-size: 1.1em;
  line-height: 1.6;
}

.image-gallery img {
  max-width: 100%;
  margin-top: 20px;
  border-radius: 8px;
}

/************************スタッフ紹介*********************************/
/* スタッフ紹介ページナビゲーション */
.staff-nav {
  background-color: #f2f2f2;
  padding: 12px 20px;
  margin: 40px auto;
  width: 100%;
  max-width: 1000px;
  border-radius: 4px;
  font-weight: bold;
  display: block;
  box-sizing: border-box;
}

.staff-nav::before {
  content: "ページ内目次";
  margin-right: 20px;
  color: #333;
}

.staff-nav-list {
  display: inline;
  list-style: none;
  padding: 0;
  margin: 0;
}

.staff-nav-list li {
  display: inline;
  margin-right: 20px;
}

.staff-nav-list li a {
  color: rgb(0, 175, 183);
  text-decoration: none;
}

.staff-nav-list li a:hover {
  text-decoration: underline;
  opacity: 0.8;
}

/* 職位見出しにスクロール位置を調整（固定ヘッダーがある場合も考慮） */
.staff-rank-heading {
  scroll-margin-top: 120px; /* 固定ヘッダー等がある場合は調整 */
}


/* 全体を中央に寄せる */
.staff-type-heading {
  font-size: 2em;
  margin-top: 80px;
  color: #1a3e78;
  border-left: 5px solid #1a3e78;
  padding-left: 12px;
}

/* 統一されたセクション見出し（例：「教授」「准教授」など） */
.staff-rank-heading {
  font-size: 40px;
  font-weight: bold;
  color: rgb(0, 175, 183);
  text-align: center;
  position: relative;
  margin-bottom: 40px;
}

.staff-rank-heading::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 90%;
  height: 2px;
  background-color: rgb(0, 175, 183);
  transform: translateX(-50%);
  border-radius: 3px;
}

.staff-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 60px; /* スタッフ間のスペースを追加 */
}

.staff-card {
  display: flex;
  align-items: flex-start;
  max-width: 800px;
  width: 100%;
}

/* 写真部分 */
.staff-photo {
  width: 120px;
  height: 160px;
  color: white;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 80px;
}

.staff-photo img {
  margin-top: 80px;
  vertical-align: top; 
  width: 180px;
  height: 240px;
  object-fit: cover;
}

/* 情報ブロック */
.staff-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.info-block {
  display: flex;
  flex-direction: column;
}

.label {
  background-color: #ddd;
  font-weight: bold;
  padding: 6px 10px;
}

.value {
  padding: 6px 12px;
  background-color: #f9f9f9;
}

.introistudent {
  text-align: left;
  margin: 40px 0;
}  

/* スマホ対応レイアウト */
@media screen and (max-width: 768px) {
  
  /* ページ内目次 */
  .staff-nav {
    font-size: 14px;
    text-align: center;
  }

  .staff-nav-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
  }

  .staff-nav-list li {
    display: inline-block;
    margin: 5px;
  }

  /* スタッフ紹介カード全体縦並び */
  .staff-wrapper {
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
  }

  .staff-card {
    flex-direction: column;
    align-items: center;
    width: 90%;
  }

  .staff-photo {
    margin: 0 0 20px 0;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .staff-photo img {
    width: 150px;
    height: 200px;
    margin-bottom: 20px;  /* ← スマホのときだけ余白をつける */
  }

  .staff-info {
    width: 100%;
  }
}



/*****************************お知らせ一覧*****************************************/
.news-section {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 20px;
  box-sizing: border-box;
}

.news-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-decoration: none;
  color: #333;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.news-thumbnail {
  width: 100%;
  height: 200px; /* スマホでも見切れない高さ */
  overflow: hidden;
}

.news-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-meta {
  padding: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.news-date {
  font-size: 14px;
  color: #888;
  margin-bottom: 5px;
}

.news-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  word-break: break-word;
}

/* スマホ調整 */
@media screen and (max-width: 600px) {
  .news-thumbnail {
    height: 160px;
  }

  .news-title {
    font-size: 16px;
  }
}

/*====================== 学生・研修医の皆様ページ専用 ======================*/
.student-page .student-text {
  font-size: 20px;
  line-height: 1.8;
  max-width: 1000px;
  margin: 0 auto 40px auto;
  text-align: left;
  padding: 0 15px;
}

.student-page .student-link-center {
  text-align: center;
  padding: 0 10px;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
  .student-page .student-text {
    font-size: 16px;
    line-height: 1.7;
    padding: 0 10px;
  }

  .student-page .section-title h3 {
    font-size: 20px;
    text-align: center;
  }

  .student-page .student-link-center {
    padding: 0 10px;
  }
}

/*****************************オプトアウト*****************************************/

.optout-table-section {
  padding: 40px 20px;
  max-width: 1000px;
  margin: auto;
}

.optout-table {
  width: 100%;
  max-width: 1000px;
  border-collapse: collapse;
  margin: 40px auto;
}
.optout-table th,
.optout-table td {
  border: 1px solid #ccc;
  padding: 12px;
  text-align: left;
}
.optout-table th {
  background-color: #f5f5f5;
}
.optout-table td a {
  color: #007a7a;
  text-decoration: underline;
}




/*****************************お問い合わせ*****************************************/

.contact-info {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  text-align: left; /* ← 左揃えに変更 */
}

.contact-row {
  margin-bottom: 10px;
  line-height: 1.4;
}

.contact-label {
  font-weight: bold;
  color: #000;
  margin-right: 5px;
}

.contact-row p {
  font-size: 18px;
  display: inline-block;
  margin: 0;
}



/* スマホ対応 */
@media (max-width: 768px) {
  .header {
      flex-direction: column;
      align-items: flex-start;
}
}

/* ハンバーガーボタン（右上に配置） */
.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: #000;
  padding: 10px;
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1001;
}

@media screen and (max-width: 768px) {
  .logo img{
    height: 60px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none !important;
    flex-direction: column;
    position: absolute;
    top: 100px;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 1000;
    padding: 10px 20px;
  }

  .main-nav.active {
    display: flex !important;
  }

  .main-nav .menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .main-nav .menu li a {
    display: block;
    width: 100%;
    padding: 10px;
    border-bottom: 1px solid #ccc;
    font-size: 16px;
  }

  .submenu {
    display: block !important;
    position: static;
    border: none;
    box-shadow: none;
    padding-left: 20px;
  }

  .submenu li {
    list-style: none; /* ← ●を消す */
    margin: 0;         /* 隙間をリセット（必要に応じて） */
    padding: 0;        /* 上下の空白も詰める */
  }

  .submenu li a {
    font-size: 14px;
    padding: 8px 0;   /* 上下の余白だけ、左右はなし */
    display: block;
    width: 100%;
  }


  .has-submenu > a::after {
    display: none; /* ▼などのアイコンがあれば消す */
  }
}

/* ======================== */
/* スマホ対応（縦並び） */
/* ======================== */
@media screen and (max-width: 1000px) {
  .container {
    flex-direction: column;
    align-items: center;
    margin: 20px;
  }

  .box-link {
    width: 90%;
    margin-bottom: 20px;
  }

  .box {
    width: 100%;
    height: auto;
    padding: 20px 10px;
  }

  .icon {
    width: 80px;
    height: 80px;
  }
}