
.PC {
  display: none !important;
}

/* 旧アイコンナビ非表示 */
#spNav {
  display: none !important;
}

/* ===== ヘッダーバー ===== */
.kobasemi {
  position: relative;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
  padding: 0 1rem;
  margin: 0;
  background: #fff;
}

.kobasemi h1 {
  font-size: clamp(1.1rem, 6vw, 1.6rem);
  line-height: 1.2;
  margin: 0.7rem 0;
  display: inline-block;
  vertical-align: middle;
}

.topIcon {
  width: clamp(36px, 9vw, 50px);
  display: inline-block;
  vertical-align: middle;
  margin: auto 0.5rem;
}

/* ===== ハンバーガーボタン ===== */
.hamburger-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
}

.hamburger-btn span {
  display: block;
  width: 26px;
  height: 2.5px;
  background-color: #333;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-btn.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.hamburger-btn.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger-btn.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ===== ナビゲーションメニュー（上部からスライドイン） ===== */
.hamburger-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.10);
  z-index: 190;
  transform: translateY(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  padding-top: 10vh;
  box-sizing: border-box;
}

.hamburger-nav.open {
  transform: translateY(0);
  pointer-events: auto;
}

.hamburger-nav ul {
  padding: 0.5rem 0;
  margin: 0;
}

.hamburger-nav li {
  border-bottom: 1px solid #f0f0f0;
}

.hamburger-nav li:first-child {
  border-top: 1px solid #f0f0f0;
}

.hamburger-nav li a {
  display: flex;
  align-items: center;
  padding: 0.9rem 1.5rem;
  font-size: 0.95rem;
  letter-spacing: 3px;
  color: #333;
  transition: background-color 0.2s ease, letter-spacing 0.2s ease;
}

.hamburger-nav li a:active {
  background-color: #f5f5f5;
}

/* ===== welcome ===== */
#welcome ul {
  font-size: 0.93rem;
}

/* ===== レイアウト ===== */
h1 {
  margin: 4vh auto;
  line-height: 1.4;
  font-size: clamp(1.3rem, 5.5vw, 1.8rem);
}

.otherHeader {
  height: 55vh;
}

.topSlide {
  height: 68vh;
}

.otherSlide {
  height: 38vh;
}

#topUnder {
  height: 2vh;
}

#topicBtn {
  font-size: 2rem;
  margin: 1vh auto;
}

/* ===== ニュースセクション ===== */
#news {
  margin: auto;
  padding: 0;
  background-image: url(../img/newsSP.jpg);
  background-attachment: local;
  background-size: cover;
}

.bgImgBox > img {
  height: 100%;
}

#newsBox {
  width: 90%;
  padding: 0.75rem;
}

#newsBox ul {
  width: 100%;
  max-height: 28vh;
  overflow-y: auto;
  scrollbar-width: thin;
}

#newsBox li {
  font-size: 0.95rem;
  line-height: 1.5em;
  margin: 0.4rem 0;
}

/* ===== フッター ===== */
footer {
  width: 100%;
  height: auto;
  min-height: auto;
  padding: 4vh 0 5vh;
}

/* ロゴ：横ラインを非表示にしてシンプルに */
#footer-logo {
  text-align: center;
  margin: 0 auto 1vh;
}

#footer-logo::before,
#footer-logo::after {
  display: none;
}

#footer-logo img {
  width: clamp(40px, 11vw, 56px);
  margin: 0 auto 1.5vh;
  display: block;
}

/* コンテンツを縦並びに */
.footer {
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
}

.footer > div {
  width: 100%;
  padding: 2vh 2rem;
  text-align: center;
  box-sizing: border-box;
  border-top: 1px solid #eeeeee;
}

.footer > div:last-child {
  border-bottom: 1px solid #eeeeee;
}

.footer li {
  line-height: 2.2;
  font-size: 0.88rem;
  letter-spacing: 0.3px;
  color: #666;
}

.footer a {
  color: #666;
}

/* サイトマップ */
#sitemap > ul {
  margin: 0 auto;
  text-align: center;
}

#sitemap > ul > li {
  letter-spacing: 0;
  text-align: center;
  width: auto;
  margin: 0 auto;
  display: block;
}

/* Instagram */
.instagram-icon-wrapper {
  margin-top: 0;
  padding: 1vh 0;
}

.instagram-link {
  width: 2.4rem;
  margin-bottom: 0.4rem;
}

/* コピーライト */
footer small {
  position: static;
  -webkit-transform: none;
  transform: none;
  display: block;
  text-align: center;
  margin-top: 2.5vh;
  font-size: 0.72rem;
  color: #aaa;
  letter-spacing: 0.5px;
}

/* ===== トピック ===== */
.topicHeader {
  height: 10vh;
}

.topicImg {
  width: 100%;
  height: auto;
}

.topic-content-card {
  padding: 1.2rem 1.2rem;
}

.topicWrap p {
  font-size: 0.97rem;
  line-height: 1.95;
}

/* トピックリスト：行高さとテキスト表示 */
#topicItem {
  width: 92%;
  height: 76vh;
}

#topicItem ul li ul li {
  height: 18vh;
}

/* テキスト列をflexで縦積み → タイトル固定 + 説明が残りスペースをぴったり埋める */
#topicItem ul li ul li:last-child {
  display: inline-flex;
  flex-direction: column;
  overflow: hidden;
}

#topic h3 {
  flex-shrink: 0;
  white-space: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 0.88rem;
  line-height: 1.4;
  letter-spacing: 0.3px;
  margin-bottom: 0.3rem;
}

#topic p {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  white-space: normal;
  display: block;
  height: 0; /* flex: 1 が伸ばすので 0 でよい */
  font-size: 0.78rem;
  line-height: 1.5;
}

#topicItem p {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== About ===== */
#teacher dt {
  text-align: center;
}

#teacher > ul > li:first-child {
  text-align: center;
  padding-right: 0;
  margin-top: 1em;
}

#teacher_name {
  line-height: 2em;
}

/* ゼミ履修者数 */
#memlist {
  margin: 4em auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#memlist section {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

#memlist h3 {
  display: block;
  text-align: center;
  margin-bottom: 0.5rem;
}

.memnumlist {
  display: block;
  width: auto;
  margin: 0 auto;
}

.memnumlist li {
  text-align: center;
}

/* 在籍者の資格取得実績 */
.achievementBG {
  background-attachment: scroll;
}

.achievementBox {
  display: block;
  box-sizing: border-box;
  width: 96vw;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.achievementBox table {
  width: 100%;
  margin: 0;
}

table {
  display: table;
  width: 100%;
  margin: 0.5rem 0;
}

/* ===== Office Hour ===== */
#messageWrap {
  width: 100%;
  padding: 0;
  position: static;
  margin: 6vh auto;
}

#messageWrap > img {
  opacity: 1;
  width: 80%;
  transform: translate(0, 0);
}

#messageWrap .message {
  width: 90%;
  margin: 2.5em auto;
}

#messageWrap .message p {
  position: static;
  width: 80%;
  margin: 2.5em auto;
}

#dateList {
  margin: auto;
}

ul#dateList > li > ul:first-child > li {
  font-size: 1em;
}

ul#dateList > li > ul > li:first-child {
  width: 8rem;
}

ul#dateList > li > ul > li {
  width: 5rem;
  font-size: 0.9rem;
}

#numB2 {
  font-size: 1rem;
}

.office_hourDocSP {
  text-align: center;
  margin: 3em auto;
}

.office_hourDocSP a {
  color: #87cefa;
}

#annual {
  font-size: 1rem;
}

#annual > ul > li:first-child {
  font-size: 1.1em;
}

/* 行頭ずれ修正：flexbox で3列を揃える */
#annual > ul > li > ul {
  display: flex;
  align-items: flex-start;
  width: 100%;
  box-sizing: border-box;
  padding: 0.15rem 0;
}

#annual > ul > li > ul > li {
  display: block;
  flex: 1;
  width: auto;
  line-height: 1.6;
  padding: 0.2rem 0.4rem;
  vertical-align: top;
  word-break: break-word;
  min-width: 0;
}

#annual > ul > li > ul > li:first-child {
  flex: 0 0 3rem;
  line-height: 1.6;
  font-weight: bold;
  padding-left: 0;
}

/* ===== 超小型スマートフォン (max-width: 480px) ===== */
@media (max-width: 480px) {
  html, body {
    letter-spacing: 0.3px;
    overflow-x: hidden;
    word-wrap: break-word;
  }

  h1, h2 {
    font-size: clamp(1.1rem, 5.5vw, 1.4rem);
    letter-spacing: 4px;
    margin: 2.5vh auto;
  }

  .kobasemi h1 {
    font-size: clamp(0.95rem, 5.5vw, 1.2rem);
  }

  .topIcon {
    width: 11vw;
    margin: auto 2vw;
  }

  .otherHeader {
    height: 50vh;
  }

  .topSlide {
    height: 55vh;
  }

  .otherSlide {
    height: 30vh;
  }

  .topicHeader {
    height: 8vh;
  }

  .topicImg {
    width: 100%;
    height: auto;
  }

  /* 極小画面のトピックリスト */
  #topicItem {
    width: 96%;
    height: 88vh;
  }

  #topicItem ul li ul li {
    height: 22vh;
  }

  #topic h3 {
    font-size: 0.82rem;
    -webkit-line-clamp: 2;
  }

  #topic p {
    font-size: 0.74rem;
  }

  #topicItem p {
    -webkit-line-clamp: 4;
  }

  #newsBox {
    width: 95%;
  }

  #newsBox ul {
    max-height: 22vh;
  }

  #newsBox li {
    font-size: 0.88rem;
    line-height: 1.4em;
    margin: 0.35rem 0;
  }

  #sitemap > ul > li {
    width: auto;
    max-width: 90%;
    font-size: 0.9rem;
  }

  #topUnder {
    height: 1.5vh;
  }

  #topicBtn {
    font-size: 1.7rem;
    margin: 0.8vh auto;
  }

  .icons {
    gap: 5vw;
    flex-wrap: wrap;
  }

  #instagram-icon,
  #teacher-icon {
    width: 11vw;
    height: 11vw;
  }

  .icon-item p {
    font-size: 0.85rem;
  }

  .title-border {
    margin: 1em 0;
  }

  #messageWrap {
    margin: 4vh auto;
  }

  #messageWrap .message {
    width: 95%;
    margin: 2em auto;
  }

  #messageWrap .message p {
    width: 90%;
    margin: 2em auto;
    font-size: 0.92rem;
  }

  #messageWrap > img {
    width: 90%;
  }

  ul#dateList > li > ul > li:first-child {
    width: 6rem;
  }

  ul#dateList > li > ul > li {
    width: 4rem;
    font-size: 0.85rem;
  }

  #numB2 {
    font-size: 0.9rem;
  }

  #annual > ul > li > ul > li {
    width: auto;
    min-width: 0;
    font-size: 0.88rem;
  }

  img {
    max-width: 100%;
    height: auto;
  }

  table {
    font-size: 0.85rem;
    overflow-x: auto;
    display: block;
    width: 100%;
    margin: 0.5rem 0;
  }
}
