@charset "UTF-8";

/* === ページ別カラーテーマ変数定義 === */
body._pharm,
body._daigakuin_pharm {
  --main-color: #539426;
  --bg-color: rgba(83, 148, 38, 0.1);
  --hover-color: #5ea82b;
  --hero-image: url("../img/gakubu-gakka/pharm-hero.png");
  --arrow-fill: #539426;
}
body._dent,
body._daigakuin_dent {
  --main-color: #7d70a2;
  --bg-color: rgba(125, 112, 162, 0.1);
  --hover-color: #8b7fac;
  --hero-image: url("../img/gakubu-gakka/dent-hero.png");
  --arrow-fill: #7d70a2;
}
body._nss,
body._daigakuin_nss {
  --main-color: #c96190;
  --bg-color: rgba(201, 97, 144, 0.1);
  --hover-color: #cf749d;
  --hero-image: url("../img/gakubu-gakka/nss-hero.png");
  --arrow-fill: #c96190;
}
body._fukushi {
  --main-color: #ce7b00;
  --bg-color: rgba(206, 123, 0, 0.1);
  --hover-color: #e88a00;
  --hero-image: url("../img/gakubu-gakka/fukushi-hero.png");
  --arrow-fill: #ce7b00;
}
body._shinri,
body._daigakuin_shinri {
  --main-color: #11997c;
  --bg-color: rgba(17, 153, 124, 0.1);
  --hover-color: #14b08f;
  --hero-image: url("../img/gakubu-gakka/shinri-hero.png");
  --arrow-fill: #11997c;
}
body._rigaku,
body._daigakuin_rehabili {
  --main-color: #ca685a;
  --bg-color: rgba(202, 104, 90, 0.1);
  --hover-color: #d07a6d;
  --hero-image: url("../img/gakubu-gakka/rigaku-hero.png");
  --arrow-fill: #ca685a;
}
body._sagyo {
  --main-color: #a88e00;
  --bg-color: rgba(168, 142, 0, 0.1);
  --hover-color: #c2a400;
  --hero-image: url("../img/gakubu-gakka/sagyo-hero.png");
  --arrow-fill: #a88e00;
}
body._gen {
  --main-color: #008ba9;
  --bg-color: rgba(0, 139, 169, 0.1);
  --hover-color: #00a0c3;
  --hero-image: url("../img/gakubu-gakka/gen-hero.png");
  --arrow-fill: #008ba9;
}
body._medtech,
body._daigakuin_medtech {
  --main-color: #006292;
  --bg-color: rgba(0, 98, 146, 0.1);
  --hover-color: #0073ac;
  --hero-image: url("../img/gakubu-gakka/medtech-hero.png");
  --arrow-fill: #006292;
}

/* === トップページ === */
body._index .content {
  display: flex
}
@media screen and (max-width: 800px) {
  body._index .content {
    flex-wrap: wrap;
    flex-direction: column-reverse
  }
  body._index .content-side {
    margin-top: 0px;
    padding-top: 0px;
    padding-bottom: 40px;
    width: 100%;
    border-top: none;
  }
  body._index .content-main .bnr {
    margin-bottom: 40px;
    padding: 30px 0;
    background-color: var(--bg-color);
  }
  body._index .topics {
    padding-left: 20px;
    padding-right: 20px;
  }
  body._index .side-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2列構成 */
    gap: 10px;
    padding: 0px 10px;

  }
  body._index .side-item {
    display: flex;
    align-items: center;
    justify-content: center;
/*
    text-align: center;
*/
    border-top: none;
    padding: 3px;
  }
  body._index .side-item > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    text-decoration: none;
    line-height: 1.5;
    padding: 1em 1em 1em 1.7em;
    border: 1px solid var(--main-color);
    color: var(--link_color);
    position: relative;
    transition: all 0.2s ease-in;
    z-index: 0;
    overflow: hidden;
  }
  body._index .side-item > a::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 4px;
    width: 5px;
    height: 90%;
    background: var(--main-color);
    transition: all 0.2s ease-in;
    transform: translateY(-50%);
    z-index: -1;
  }
  body._index .side-item > a:hover {
    color: #fff;
  }
  body._index .side-item > a:hover::before {
    width: 100%;
    height: 100%;
    left: 0;
  }
/*
  body._index .side-item-link {
    position: relative;
    padding-right: 1.8em;
  }

  body._index .side-item-link::after {
    content: "\f061";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    right: 0.5em;
    transform: translateY(-50%);
    font-size: 1em;
    color: var(--main-color);
  }
*/
  body._index .side-item.side-list-ttl,
  body._index .side-item.side-list-txt {
    grid-column: span 2;
  }
  body._index .side-item:last-child {
    border-bottom: none;
  }
  body._index .side-bnr-list {
      margin-top: 0
  }
/*
  body._index .side-ttl {
      text-align: center;
      padding-left: 0;
      border-left: 0;
      position: relative;
      margin-bottom: 0px
  }
  body._index .side-ttl:after {
      content: "";
      display: block;
      width: 50px;
      height: 4px;
      background-color: #1F2C5C;
      margin: 15px auto 0;
  }
  body:not(._index) .side-ttl:after {
      display: none;
  }
*/
  body._index .side-bnr-top {
    padding: 0 20px;
    margin: 0 auto;
  }
}

/*** トップページ：パンくずリスト ***/
@media screen and (max-width: 800px) {
  body._index .main {
    padding-left: 0;
    padding-right: 0;
  }
  ._index .breadcrumbs {
/*
    padding-left: 20px;
*/
    display: none
  }
}

/*** トップページ：学科・研究科バナー ***/
.hero {
  position: relative;
  width: 100%;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* 背景画像 */
.hero {
  position: relative;
  width: 100%;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
  margin-bottom: 20px;
}

/* キラキラ用レイヤー */
.hero-overlay {
  position: relative;
  padding: 30px 60px;
  text-align: center;
}
.hero-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--main-color);
  mix-blend-mode: multiply;
  opacity: 0.9;
  z-index: 0;
}

.hero-ttl {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #fff;
  font-weight: normal;
  line-height: 1;
  font-size: 48px
}

.hero-sub {
  display: block;
  font-size: 18px;
  margin-bottom: 15px;
  letter-spacing: 0.1em;
}

.hero-cap {
  display: block;
  margin-top: 20px;
  font-size: 10px;
  letter-spacing: 0.25em;
  font-family: "Century Gothic", sans-serif;
}


@media screen and (max-width: 800px) {
  .hero {
    min-height: 200px;
  }
  .hero-overlay {
    padding: 20px;
  }
  .hero-ttl {
    font-size: 28px;
  }
  .hero-sub {
    font-size: 14px;
  }
  body._index .side-ttl {
    display: none
  }
  ._daigakuin_pharm .hero-ttl,
  ._daigakuin_dent .hero-ttl,
  ._daigakuin_nss .hero-ttl,
  ._daigakuin_shinri .hero-ttl,
  ._daigakuin_rehabili .hero-ttl,
  ._daigakuin_medtech .hero-ttl {
    margin-top: 30px;
  }
}
@media screen and (max-width: 920px) {
  /* スマホ・タブレット共通 */
  .hero {
    margin-top: 70px;
  }
}
@media screen and (min-width: 920px) {
  /* デスクトップ通常 */
  .hero {
    margin-top: 123px;
  }
}
@media screen and (min-width: 920px) and (max-height: 720px) {
  /* 横長ウィンドウ用に調整 */
  .hero {
    margin-top: 112px;
  }
}


/*** トップページ：バナー3 ***/
.bnr {
    margin-bottom: 30px
}
.bnr-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between
}
@media screen and (max-width: 800px) {
    .bnr-list {
        display: block
    }
}
.bnr-item {
    width: 31.5%;
    border: 1px solid #d8d8d8;
}
.bnr-item.noborder {
    border: 0;
}
.bnr-item a img {
  image-orientation: none;
}
@media screen and (max-width: 800px) {
    .bnr-item {
        width: 75%;
        margin: 0 auto 20px auto;
    }
    .bnr-item:last-child {
        margin-bottom: 0;
    }
}

/*** トップページ：関連サイト ***/
.related-grid {
  border: 1px solid #d8d8d8;
  background-color: #F9F9F9;
  padding: 20px;
  margin-bottom: 30px;
}
.related-grid .related-ttl {
  font-weight: bold;
  margin-bottom: 10px;
}
.related-grid ul {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(auto-fill, minmax(200px, auto));
  gap: 0px 20px;
}
@media screen and (max-width: 800px) {
  .related-grid {
    width: 90%;
    margin-right: auto;
    margin-left: auto;
  }
  .related-grid .related-ttl {
    text-align: center;
  }
}

/* === サイドメニュー === */
.side-bnr-item._academics,
.side-bnr-item._course {
  width: 100%;
  height: 48px;
  margin-top: 20px;
  position: relative;
}
.side-bnr-item._academics a,
.side-bnr-item._course a {
  width: 100%;
  display: block;
  line-height: 48px;
}
.side-bnr-item._academics a div,
.side-bnr-item._course a div {
  display: block;
  text-align: center;
  margin: auto;
  width: 75%;
  font-size: 20px;
}
.side-bnr-item._academics a div span,
.side-bnr-item._course a div span {
  font-size: 15px;
}
.side-bnr-item._academics a:hover div,
.side-bnr-item._course a:hover div {
  opacity: 0.65;
}
.side-bnr-item._academics._multiline {
  margin-bottom: 30px;
}
.side-bnr-item._academics._multiline a div {
  line-height: 1.1;
  padding-top: 7px;
}
.side-bnr-item._academics._multiline a {
  height: 62px;
}
.side-bnr-item._academics._multiline .side-bnr-arrow {
  top: 43%;
}
body .side-ttl .side-long {
  font-size: 0.89em;
}
@media screen and (max-width: 800px) {
  body._index ._spnon_bnr .side-bnr-list {
    display: none
  }
}

/*** サイドメニュー：サイドバナー
（bodyのクラスに依存しないよう個別定義） ***/
.side-bnr-pharm._academics a,
.side-bnr-daigakuin_pharm._academics a {
  background-color: #D6E3C7;
  color: #539426;
}
.side-bnr-pharm._course a {
  background-color: #539426;
  color: #fff;
}
.side-bnr-pharm .side-bnr-arrow path,
.side-bnr-daigakuin_pharm .side-bnr-arrow path {
  fill: #539426;
}
.side-bnr-dent._academics a,
.side-bnr-daigakuin_dent._academics a {
  background-color: #ddd9e9;
  color: #7D70A2;
}
.side-bnr-dent._course a {
  background-color: #7D70A2;
  color: #fff;
}
.side-bnr-dent .side-bnr-arrow path,
.side-bnr-daigakuin_dent .side-bnr-arrow path {
  fill: #7D70A2;
}
.side-bnr-nss._academics a,
.side-bnr-daigakuin_nss._academics a {
  background-color: #f3dbe5;
  color: #C96190;
}
.side-bnr-fukushi._academics a {
  background-color: #f5dec1;
  color: #CE7B00;
}
.side-bnr-nss._course a {
  background-color: #C96190;
  color: #fff;
}
.side-bnr-fukushi._course a {
  background-color: #ce7b00;
  color: #fff;
}
.side-bnr-nss .side-bnr-arrow path,
.side-bnr-fukushi .side-bnr-arrow path,
.side-bnr-daigakuin_nss .side-bnr-arrow path {
  fill: #C96190;
}
.side-bnr-fukushi .side-bnr-arrow path {
  fill: #CE7B00;
}
.side-bnr-shinri._academics a,
.side-bnr-daigakuin_shinri._academics a {
  background-color: #d2e5dd;
  color: #11997C;
}
.side-bnr-shinri._course a {
  background-color: #11997C;
  color: #fff;
}
.side-bnr-shinri .side-bnr-arrow path,
.side-bnr-daigakuin_shinri .side-bnr-arrow path {
  fill: #11997C;
}
.side-bnr-rigaku._academics a,
.side-bnr-daigakuin_rehabili._academics a {
  background-color: #f3dbd3;
  color: #CA685A;
}
.side-bnr-rigaku._course a {
  background-color: #CA685A;
  color: #fff;
}
.side-bnr-rigaku .side-bnr-arrow path,
.side-bnr-daigakuin_rehabili .side-bnr-arrow path {
  fill: #CA685A;
}
.side-bnr-sagyo._academics a {
  background-color: #eae1c1;
  color: #A88E00;
}
.side-bnr-sagyo._course a {
  background-color: #eae1c1;
  color: #A88E00;
}
.side-bnr-sagyo .side-bnr-arrow path {
  fill: #A88E00;
}
.side-bnr-gen._academics a {
  background-color: #cce1ea;
  color: #008BA9;
}
.side-bnr-gen._course a {
  background-color: #cce1ea;
  color: #008BA9;
}
.side-bnr-gen .side-bnr-arrow path {
  fill: #008BA9;
}
.side-bnr-medtech,
.side-bnr-daigakuin_medtech {
  background-color: #b7d3e5;
}
.side-bnr-medtech._academics a,
.side-bnr-daigakuin_medtech._academics a {
  background-color: #bbdbf0;
  color: #006292;
}
.side-bnr-medtech._course a {
  background-color: #006292;
  color: #fff;
}
.side-bnr-medtech .side-bnr-arrow path,
.side-bnr-daigakuin_medtech .side-bnr-arrow path {
  fill: #006292;
}

/* === 個別ページ === */

/*** 特色・コース紹介 ***/
.tokusyoku-item {
    margin-bottom: 50px;
}
.tokusyoku-item div {
    margin-bottom: 30px;
}
.tokusyoku .tokusyoku-item:last-child {
    margin-bottom: 0;
}
.tokusyoku-item strong {
  padding-left: 1rem;
  line-height: 40px;
}
.tokusyoku-item strong:before {
  content: "●";
  margin-left: -1rem;
}
.tokusyoku-item ol {
    width: 95%;
    margin: 20px auto;
    padding: 15px 20px;
    background-color: #EFEFEF
}
.tokusyoku-item ol li {
    list-style: decimal;
    margin-left: 20px
}
@media screen and (max-width: 800px) {
    .tokusyoku-item ol {
        width: 100%
    }
}

/*** 履修カリキュラム ***/
.curriculum-item {
    margin-bottom: 50px
}
.curriculum-item .lnk {
    margin-top: 10px;
    display: inline-block
}
.curriculum-table {
    margin-bottom: 30px
}
.curriculum-table table {
    text-align: center;
    background-color: #cccccc;
    font-size: 11px
}
.curriculum-table table tr {
    background-color: #fff
}
.curriculum-table table th {
    font-weight: normal;
    background-color: rgba(17, 153, 124, 0.15)
}
.curriculum-table table td {
    text-align: left;
    padding: 10px;
    line-height: 1.6;
    letter-spacing: -0.02em
}
@media screen and (max-width: 800px) {
    .curriculum-table {
        overflow: auto;
        white-space: nowrap;
        position: relative
    }
    .curriculum-table table {
        width: 100%
    }
    .curriculum-table table td {
        padding-left: 5px;
        padding-right: 5px
    }
}

/*** 研究分野 ***/
.lede._course {
    font-size: 20px;
    padding: 5px 0;
    margin-bottom: 15px;
    text-align: center;
}
.lede._course::before {
    content: "＜";
}
.lede._course::after {
    content: "＞";
}
.lede._course span {
    font-size: 16px;
    padding-left: 8px;
    display: inline-block
}
.lede._research,
.lede._paper {
  font-size: 14px;
  text-align: justify;
  text-justify: inter-character;
  line-height: 2;
  font-weight: bold;
}
.lede._paper {
  padding-left: 1rem;
}
@media screen and (max-width: 800px) {
    .lede._course {
        line-height: 1.6
    }
}
.lede._field {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 10px;
    width: 100%;
}
.kenkyu-item {
    margin-bottom: 50px;
}
.kenkyu .kenkyu-item:last-child {
    margin-bottom: 0;
}
.kenkyu-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-content: flex-start;
  align-items: stretch;
}
.kenkyu-flex-item div {
  width: 100%;
  padding: 4px 20px;
  border-top: 1px solid #E5E5E5;
}
.kenkyu-flex-item div:last-child {
  border-bottom: 1px solid #E5E5E5;
}
.kenkyu-flex-item {
  margin-bottom: 20px;
}
.kenkyu-flex-item._kenkyu-col1 {
  width: 100%;
}
.kenkyu-flex-item._kenkyu-col2 {
  width: 49%;
}
.kenkyu-flex-item._kenkyu-col3 {
  width: 32%;
}
.kenkyu-flex-item .kenkyu_member {
  padding: 0 20px;
}
.kenkyu-flex-item .kenkyu_member::before {
    content: "└";
    padding-right: 5px;
}

@media screen and (max-width: 800px) {
    .kenkyu-flex-item:nth-of-type(n+4) {
      margin-top: 0px;
    }
    .kenkyu-flex-item._kenkyu-col2,
    .kenkyu-flex-item._kenkyu-col3 {
      width: 100%;
    }
}

/*** 研究分野_課程 ***/
.kenkyu_course-item {
    margin-bottom: 50px;
}
.kenkyu_course .kenkyu_course-item:last-child {
    margin-bottom: 0;
}
.kenkyu_course-item .lede._tertiary::before {
    content: "■";
}
.kenkyu_course-item p,
.kenkyu_course-item ul,
.kenkyu_course-item ol {
    margin-bottom: 15px;
    margin-left: 10px;
}
.kenkyu_course-item p:last-child,
.kenkyu_course-item ul:last-child,
.kenkyu_course-item ol:last-child {
    margin-bottom: 0;
}
.kenkyu_course-item ul,
.kenkyu_course-item ol {
    margin-bottom: 15px;
    margin-left: 10px;
}
.kenkyu_course-item ul li,
.kenkyu_course-item ol li{
    margin-left: 20px;
}
.kenkyu_course-item ul li {
    list-style: circle;
}
.kenkyu_course-item ol li {
    list-style: decimal;
}

/* === 共通スタイル（色・背景等） === */
.content-main a:hover {
  color: var(--main-color);
}
.breadcrumbs li:last-child {
  color: var(--main-color);
}
.hero {
  background-image: var(--hero-image);
}
.hero-bg {
  background-color: var(--main-color);
}
.hero-ttl {
  color: #ffffff;
}
body .side-ttl {
  color: var(--main-color);
  border-color: var(--main-color);
}
.side-item.side-list-ttl {
  color: var(--main-color);
}
.side-item a {
  background-color: var(--bg-color);
}
.side-item a:hover {
  color: var(--main-color);
  background-color: #fff;
}
.side-item a._current {
  background-color: var(--main-color);
}
.side-item a._current:hover {
  color: #fff;
  background-color: var(--main-color);
}
.message-name::after {
  background-color: var(--main-color);
}
.content-main .topics-ttl,
.topics time,
.topics-item a:hover {
  color: var(--main-color);
}
.topics-item {
  border-bottom: 1px dotted #d8d8d8;
}
.topics-more .btn {
  background-color: var(--main-color);
  color: #ffffff;
}
.topics-more .btn:hover {
  background-color: var(--hover-color);
  color: #ffffff;
}
.content-main h4.related-ttl {
    color: #1f2c5c;
}
.tokusyoku-item strong:before {
  color: var(--main-color);
}
.content-main h1,
.content-main h2,
.content-main h3,
.content-main h4 {
  color: var(--main-color);
  border-color: var(--main-color);
}
.side-bnr-arrow path {
  fill: var(--arrow-fill);
}
@media screen and (max-width: 800px) {
  body._index .side-ttl:after {
    background-color: var(--main-color);
  }
  body._index .side-item a {
    background-color: #fff;
  }
}

