@charset "utf-8";

/*
** Theme Name:  柏木クリニック｜医療法人社団ぶなの森
** Description: 柏木クリニック｜医療法人社団ぶなの森
** Author: Satoshi Saito
** Version: 1.0.0
** ================================================== */

:root {
  /* === Color === */
  --color_green: #7a7;
  --color_orange: #e69500;
  --color_yellow: #ffe6aa;
  --color_offwhite: #ffe;
  --color_white: #fafafa;
  --color_black: #555;
  --color_red: #c13;
  --color_blue: #088;

  /* === Size === */
  --size-ss: 0.25rem;
  --size-s: 0.75rem;
  --size-m: 1.0rem;
  --size-l: 1.5rem;
  --size-ll: 2.0rem;
}


/* Base Styles
======================================== */
html {
  scroll-behavior: smooth;
  font-size: 18px;
  line-height: 1.7;
}

body {
  background-color: var(--color_green);
  font-family: YakuHanJP_Noto, "BIZ UDPGothic", sans-serif;
  font-size: var(--size-m);
  text-align: justify;
  word-break: break-all;
  overflow-wrap: break-word;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
}

#bodyInner {
  background-color: var(--color_white);
  color: var(--color_black);
}

h2, h3, h4, h5, h6 {
  color: var(--color_green);
  margin-bottom: var(--size-m);
  padding-bottom: var(--size-ss);
}

h2, h3 {
  position: relative;
}

h2::before, h3::before,
h2::after, h3::after {
  position: absolute;
  content: '';
  left: 0;
  bottom: 0;
  height: 6px;
}

h3::before, h3::after {
  height: 3px;
}

h2::before, h3::before {
  width: 30%;
  background-color: var(--color_yellow);
  z-index: 1;
}

h2::after, h3::after {
  width: 100%;
  background-color: var(--color_green);
}

h4 {
  border-bottom: 3px solid var(--color_green);
}

ul {
  padding-left: var(--size-l);
}

dl dt {
  font-weight: 700;
  color: var(--color_green);
}

em {
  font-style: normal;
  font-weight: 700;
  color: var(--color_red);
}

a {
  text-decoration: none;
  transition: 0.4s;
  color: var(--color_orange);
}

a:hover {
  color: var(--color_yellow);
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border-radius: var(--size-ss);
  box-shadow: 0 0 4px rgb(0 0 0 / 0.3);
}

details summary {
  margin-bottom: var(--size-s);
  outline: none;
  cursor: pointer;
}

.innerWrap {
  max-width: 1000px;
  margin-inline: auto;
  padding: 0 var(--size-m);
}


/* Header
======================================== */
header {
  box-shadow: 0 4px 8px rgb(0 0 0 / 0.2);
  text-align: center;
  border-bottom: var(--size-l) solid var(--color_green);
}

header .innerWrap {
  padding: var(--size-ll) var(--size-m);
}

header img {
  border-radius: 0;
  box-shadow: none;
}

header .desc {
  background-color: var(--color_green);
  color: var(--color_white);
  font-size: var(--size-s);
  padding: var(--size-ss) 0;
}


/* Main
======================================== */
.contentsWrap :is(p, ul, ol, dl, table) {
  margin-bottom: var(--size-m);
}

.contentsWrap :is(p, ul, ol, dl, table):last-child {
  margin-bottom: 0;
}

.contentsWrap {
  padding: var(--size-l) 0;
}

.contentsWrap .innerWrap:has(> :nth-child(2)) {
  display: grid;
  gap: var(--size-ll);
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* DoctorSchedule
------------------------------ */


/* News
------------------------------ */
#news .newsList {
  list-style: none;
  padding: 0;
}
#news .newsList li:not(:last-child) {
  border-bottom: 1px dotted var(--color_green);
  margin-bottom: var(--size-ss);
  padding-bottom: var(--size-ss);
}

#news .newsList li a {
  display: block;
  line-height: 1.2;
  padding: var(--size-ss) 0;
}

#news .newsList li a time {
  color: var(--color_black);
}

#news .newsList li a time::after {
  content: "｜";
}



/* VaccineList
------------------------------ */
#vaccineList .vaccineList {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: var(--size-ss);
}

#vaccineList .vaccineList li {
  background-color: var(--color_offwhite);
  background-image: linear-gradient(var(--color_white), var(--color_offwhite));
  text-align: center;
  border: 1px solid var(--color_green);
  border-radius: var(--size-ss);
  padding: var(--size-s) 0;
}



/* Footer
======================================== */
footer {
  background-color: var(--color_green);
  box-shadow: 0 -4px 8px rgb(0 0 0 / 0.2);
  text-align: center;
}

footer * {
  color: var(--color_white);
  text-decoration: none;
  font-size: 0.95em;
}

footer .copy {
  padding: var(--size-m) 0;
}





@media (width >=1000px) {
  html {
    font-size: 20px;
  }
}