@charset "UTF-8";

html, body, img,
h1, h2, h3, h4, h5, h6, p, a,
div, section, article, aside,
table, tr, th, td, dl, dt, dd,
ul, ol, li,
figure, figcaption {
  margin: 0;
  padding: 0;
  text-decoration: none;
  border: none;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-appearance: none;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

img {
  vertical-align: middle;
}

input, button, textarea, select {
  display: block;
  margin: 0;
  padding: 0;
  background: none;
  color: inherit;
  font-family: inherit;
  border: none;
  border-radius: 0;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  resize: none;
}

ul, ol, li {
  list-style: none;
  line-height: 1;
}

:focus {
  outline: none;
}

::placeholder {
  color: #C1C8D0;
}

:focus-ring {
  outline: 2px dotted dimgray;
}

a {
  color: inherit;
}

/* マージン */

.mb24 {
  margin-bottom: 24px;
}
.mb40 {
  margin-bottom: 40px;
}

/* 基本レイアウト */

body {
  background: #FFF;
  color: #3A4046;
  font-family: 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN', Meiryo, メイリオ, arial, helvetica, sans-serif;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.1em;
}

.wrapper {
  max-width: 1024px;
  margin: 0 auto;
  padding: 24px 16px;
}

.contents {
  margin-bottom: 96px;
}
.contents:last-child {
  margin-bottom: 24px;
}

h1{
  margin-bottom: 48px;
  color: #005AAC;
  font-family:'Hiragino Maru Gothic ProN', 'ヒラギノ丸ゴ ProN';
  font-size: 40px;
  text-align: center;
  letter-spacing: 0.4em;
}

h2 {
  margin-bottom: 24px;
  color: #005AAC;
  font-family:'Hiragino Maru Gothic ProN', 'ヒラギノ丸ゴ ProN';
  font-size: 32px;
  letter-spacing: 0.3em;
}


h3 {
  margin-bottom: 48px;
  color: #005AAC;
  font-family:'Hiragino Maru Gothic ProN', 'ヒラギノ丸ゴ ProN';
  font-size: 24px;
  font-weight: normal;
  text-align: center;
  letter-spacing: 0.3em;
}

h4 {
  margin-bottom: 24px;
  font-size: 18px;
}

h5 {
  margin-right: 20px;
  padding-right: 20px;
  font-size: 16px;
  color: #005AAC;
  border-right: 2px solid #005AAC;
}

p {
  line-height: 1.6;
}

small {
  font-size: 12px;
}

.center {
  text-align: center;
}

.button-min {
  color: #005AAC;
  font-size: 12px;
  text-align: right;
  transition: color .3s;
}

.button-min:hover {
  color: #3A4046;
  transition: color .3s;
}

.nav_main {
  margin-bottom: 40px;
}

.nav_main ul {
  display: flex;
  justify-content: center;
}

.nav_main ul li {
  margin: 0 24px;
  transition: color .3s;
}

.nav_main ul li:hover {
  color: #005AAC;
  transition: color .3s;
}

.content-head {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 220px;
  margin-bottom: 72px;
  background-image: url(../images/fv.jpg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  text-align: center;
  border-radius: 48px 0 48px 0;
}

.content-head::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(0,90,172,.24);
  border-radius: 48px 0 48px 0;
}

.content-head h2 {
  margin-bottom: 0;
  font-family: 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN', Meiryo, メイリオ, arial, helvetica, sans-serif;
  color: #FFF;
  text-shadow: 0 0 12px rgba(0,0,0,.4);
  letter-spacing: .1em;
  z-index: 100;
}

.flex_center {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  text-align: center;
}

.flex_center div {
  width: calc(992px / 8);
}

.flex_center img {
  width: 96px;
  margin-bottom: 16px;
}

.flex_two {
  display: flex;
  justify-content: space-between;
}

.flex_two .contents-right,
.flex_two .contents-left {
  width: 50%;
}

.flex_two .contents-right {
  margin-left: 32px;
}

.flex_two .contents-left {
  margin-right: 32px;
}

.flex_two img {
  width: 100%;
  border-radius: 48px 0 48px 0;
}

.contents_list {
  margin-left: 1em;
}

.contents_list li {
  margin-bottom: 18px;
  list-style: disc;
}

.contents_list li:last-child {
  margin-bottom: 0;
}

.box {
  border: 1px solid #CBD0D6;
  border-radius: 32px 0 32px 0;
  box-sizing: border-box;
  background-repeat: no-repeat;
  background-position: center right;
  background-size: auto 100%;
}

.box.box-about {
  background-image: url(../images/about.jpg);
}
.box.box-in_hospital {
  background-image: url(../images/in_hospital.jpg);
}
.box.box-echo {
  background-image: url(../images/echo.jpg);
}
.box.box-inspection {
  background-image: url(../images/inspection.jpg);
}
.box.box-endoscope {
  background-image: url(../images/endoscope.jpg);
}
.box.box-sphygmomanometer {
  background-image: url(../images/sphygmomanometer.jpg);
}

.box-text {
  width: 50%;
  height: 100%;
  padding: 24px;
  background: #FFF;
  border-radius: 31px 0 0;
}

.box .button-min {
  margin-top: 24px;
}

.top_info {
  position: relative;
  right: 50%;
  left: 50%;
  width: 100vw;
  height: 400px;
  margin: 0 -50vw 72px;
  background-color: #005AAC;
  background-image: url(../images/fv.jpg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.top_info-inner {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  max-width: 1024px;
  height: 100%;
  margin: 0 auto;
  padding: 0 16px;
}

.info_time {
  display: flex;
  align-items: center;
  background: #FFF;
  margin-bottom: 32px;
  padding: 8px 24px;
  border-radius: 32px;
}

.time small {
  display: block;
  margin-top: 4px;
}

.welcome {
  margin: 0 14% 96px;
  text-align: center;
}

.reserve {
  position: fixed;
  top: 80px;
  right: 16px;
  -ms-writing-mode: tb-rl;
  writing-mode: vertical-rl;
  text-orientation: upright;
  z-index: 10;
  font-weight: bold;
  line-height: 1;
  font-size: 18px;
}

.reserve a {
  padding: 16px 24px;
  color: #FFF;
  background: #005AAC;
}

.reserve svg {
  fill: #FFF;
  margin-bottom: 12px;
}

.reserve a:hover {
  opacity: 0.6;
}

.table_hours {
  width: 100%;
  text-align: center;
  border-collapse: collapse;
  border: 1px solid #005AAC;
  box-sizing: border-box;
}

.table_hours th,
.table_hours td {
  padding: 12px;
}

.table_hours thead th {
  border-bottom: 1px solid #005AAC;
}

.table_hours thead th:first-child {
  border-right: 1px solid #005AAC;
}

.table_hours tbody th {
  width: 120px;
  padding: 12px 8px;
  font-size: 13px;
  letter-spacing: 0;
  border-right: 1px solid #005AAC;
}

footer {
  background: #005AAC;
  color: #FFF;
}

.footer_inner {
  max-width: 1024px;
  margin: 0 auto;
  padding: 32px 16px;
  text-align: center;
}

footer h2 {
  color: #FFF;
}

footer .nav_main ul li {
  transition: none;
}

footer .nav_main ul li:hover {
  color: #FFF;
  text-decoration: underline;
  transition: none;
}

@media screen and (max-width:1024px) {
  .flex_center div:first-child {
    margin-bottom: 40px;
  }
}

@media screen and (max-width:768px) {

  .mb40 {
    margin-bottom: 32px;
  }
  h3 {
    margin-bottom: 32px;
  }
  .contents {
    margin-bottom: 64px;
  }
  .flex_two {
    display: block;
  }
  .flex_two .contents-right,
  .flex_two .contents-left {
    width: 100%;
  }
  .flex_two .contents-right {
    margin-left: 0;
  }
  .flex_two .contents-left {
    margin-right: 0;
    margin-bottom: 32px;
  }
  .flex_center div {
    width: calc(100% / 6);
  }
  .flex_center div:first-child {
    margin-bottom: 24px;
  }
  .welcome {
    margin: 0 8% 64px;
  }
}

@media screen and (max-width:640px) {
  h1 {
    margin-bottom: 32px;
  }
  h2 {
    font-size: 26px;
    margin-bottom: 16px;
  }
  h3 {
    margin-bottom: 24px;
  }
  h5 {
    margin-right: 12px;
    padding-right: 12px;
    font-size: 14px;
    word-break: keep-all;
  }
  .nav_main {
    margin-bottom: 32px;
  }
  .nav_main ul li {
    margin: 0 8px;
  }
  .flex_center img {
    width: 72px;
    margin-bottom: 8px;
  }
  .flex_center div {
    width: calc(100% / 3);
  }
  .flex_center div:nth-child(4) {
    margin-bottom: 24px;
  }
  .welcome {
    margin: 0 0 64px;
  }
  .reserve {
    font-size: 14px;
    top: 140px;
  }
  .reserve svg {
    width: 24px !important;
    height: 24px !important;
  }
  .top_info {
    margin: 0 -50vw 48px;
  }
  .top_info-inner {
    justify-content: center;
  }
  .info_time {
    padding: 8px 16px;
  }
  .time {
    letter-spacing: 0;
  }
  .content-head {
    height: 160px;
    margin-bottom: 48px;
  }
  .table_hours th, .table_hours td {
    padding: 8px;
  }
  .table_hours tbody th {
    width: auto;
    padding: 12px 4px;
  }
}

@media screen and (max-width:320px) {
  body {
    width: 320px;
  }
  .nav_main ul li {
    margin: 0 8px;
  }
}
