@charset 'utf-8';

h2 {
  text-align: center;
  letter-spacing: 5px;
  font-size: 28px;
  font-weight: 800;
}

h4 {
  text-align: center;
  letter-spacing: 2px;
  font-size: var(--h4-size);
}

main {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 980px;
  min-width: 390px;
  margin: 0 auto 0;
}

main>section {
  width: 100%;
}

.sub-container {
  display: flex;
  flex-direction: column;
  min-height: 500px;
  justify-content: flex-start;
  align-items: center;
  min-height: 720px;
  padding: 15px 0;
  color: #000;
  overflow: hidden;
  background-repeat: repeat-y;
  background-position: center;
  background-clip: border-box;
}

.sub-container > div,
.sub-container > article {
  width: 95%;
  min-height: 100vh;
  margin: 0 auto 0;
  padding: 0;
  box-shadow: 5px 5px 15px 0px rgba(255, 255, 255, 0.86);
  background-color: rgba(255, 255, 255, 0.86);
}

.sub-container h2 {
    width: 95%;
    margin: 0;
    background-color: rgba(255,255, 255,0.86);
    box-shadow: 0px -5px 15px 0px rgba(255, 255, 255, 0.86);
    color: #000;
    text-shadow: unset;
}

.sub-container > article p.body {
  padding: 0.25rem 0.25rem 0.25rem 1.25rem;
}

.sub-container.kyomeijuku {
  background-image: url('/img/default/bg/kyomeijuku.jpg');
}

.sub-container.kyomeijuku > div {
  min-height: unset;
}

.sub-container.kyomeijuku > div:not(:last-child) {
  margin: 0 0 1rem 0;
}

.sub-container.privacy {
  background-image: url('/img/default/bg/privacy.png');
}

.sub-container.sitemap {
  background-image: url('/img/default/bg/sitemap.png');
}

.sub-container.faq {
  background-image: url('/img/default/bg/faq.png');
}

.sub-container.news {
  background-image: url('/img/default/bg/news.png');
}

.sub-container h4,
.sub-container p,
.sub-container ul {
  display: flex;
  width: 100%;
  margin: 0 auto 0;
  padding: 0;
}

.sub-container h2 {
  justify-content: center;
  align-items: center;
}

.sub-container h4 {
  justify-content: center;
  align-items: center;
  padding-top: 10px;
}

.sub-container p {
  padding: 5px 5px 5px;
  letter-spacing: 1px;
  text-indent: 16px;
  text-align: left;
  justify-content: flex-start;
  align-items: flex-start;
}

.sub-container ul.number {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 980px;
  padding: 1rem;
}

.sub-container ul.harf {
  display: block;
  width: 100%;
  max-width: 980px;
  padding: 1rem;
}

.sub-container ul.harf>li>a {
  font-size: var(--list-large-size);
}

ul.link>li {
  padding: 0 1rem 0;
}

ul.link>li>a {
  padding: 1rem 0 1rem;
  font-size: var(--list-large-size);
}

ul.link>li>a::before {
  bottom: 0;
}

.course-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 10px auto 10px;
  padding: 0;
}

.course-list>p {
  display: flex;
  width: 100%;
  margin: 0 auto 0;
  padding: 0;
  justify-content: center;
  align-items: center;
}

.course-list>p img {
  margin: 0 auto 0;
}

/** お知らせ一覧 **/
section.sub-container.news div.record > a:hover {
  background-color: var(--base-color);
  color: var(--sub-base-color);
}

.sub-container.news p {
  display: block;
}

ul.pagination {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem 0 1rem 0;
}

ul.pagination > li > a {
  display: block;
  padding: 1rem;
  font-size: var(--list-size);
  border: 1px solid var(--sub-base-color);
  border-radius: 0.25rem;
  background-color: var(--sub-base-color);
  color: var(--base-color);
}

ul.pagination > li > a:hover {
  background-color: var(--base-color);
  color: var(--sub-base-color);
}

/** 京明塾 **/
section.kyomeijuku h2 img,
section.kyomeijuku div.contents img {
  width: 100%;
}

section.kyomeijuku div.contact,
section.kyomeijuku div.entry {
  background-color: var(--sub-base-color);
  color: var(--base-color);
}

section.kyomeijuku div.contact {
  padding: 0 0 1rem 0;
}

section.kyomeijuku div.contact img {
  width: auto;
  max-width: 320px;
  filter: invert(1);
  margin: 0 auto 0;
}

section.kyomeijuku div.contact img.reverse {
  filter: unset;
}

section.kyomeijuku div.entry {
  padding: 0 0 1rem 0;
}

section.kyomeijuku div.entry p {
  text-align: center;
}

section.kyomeijuku div.body {
  width: 100%;
  padding: 1rem;
  background-color: var(--sub-base-color);
  color: var(--base-color);
}

.content-box {
  padding: 0.25rem 0.25rem 0.25rem 1.25rem;
  line-height: clamp(2.0rem, 2vw, 2.2rem);
  font-size: clamp(0.8rem, 1vw, 1.4rem);
}

/** サイトマップ **/
section.sitemap ul.link > li > a::before {
  background-color: var(--base-color);
}

section.sitemap ul.link > li > a::after {
  color: var(--base-color);
}

section.sitemap ul.link > li > a:hover::before {
  background-color: #ccc;
}

section.sitemap ul.link > li > a:hover::after {
  color: #ccc;
}

.flex-container {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  margin: 0 auto 0;
}

.flex-container.column {
  flex-direction: column;
}

.flex-container.row {
  flex-direction: row;
}

.flex-container.row.harf > div {
  width: 45%;
}

.flex-container.row.gap {
  flex-direction: row;
  row-gap: 1rem;
}

.flex-container>div {
  min-width: 320px;
  width: 50%;
  padding: 0 0 1rem 0;
}

.flex-container>div>h4 {
  width: 100%;
  background-color: unset;
}
.flex-container>div>ul {
  flex-direction: column;
  width: 100%;
  background-color: unset;
}

/** 鑑定予約について **/
main#appointment section {
  position: relative;
}

section.appointment div.image {
  width: 100%;
  max-width: 320px;
  margin: 0 auto 0;
  border-radius: 50%;
  overflow: hidden;
  background-color: linear-gradient(0deg, #fff 0%, #acadad 70%);
}

section.appointment > div.profile {
  position: relative;
  z-index: 5;
}

section.appointment div.image > img {
  width: 100%;
  transform: scale(101%);
}

section.appointment div.image.hover-on > img:last-child,
section.appointment div.image.hover-on:hover > img:first-child {
  display: none;
}

section.appointment div.image.hover-on:hover > img:last-child {
  display: block;
}

section.appointment div.name {
  width: 100%;
  margin: 0.25rem auto 0.5rem;
  text-align: center;
}

section.appointment div.name > span {
  font-size: clamp(1.5rem, 2vw, 2.0rem);
}

section.appointment div.text p {
  font-size: clamp(0.8rem, 1.2vw, 1.5rem);
}

section.appointment table.price {
  margin: 0 auto 1rem;
}

a.button.reserve.bg {
  max-width: 320px;
  min-height: 60px;
  position: relative;
  background-color: rgba(255, 255, 255, 0.8);
  font-size: clamp(1.0rem, 2.0vw, 1.5rem);
}

a.button.reserve.bg::hover {
  background-color: rgba(0, 0, 0, 0.2);
}

a.button.reserve.bg::before {
  content: '';
  display: block;
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-image: url(/img/default/onmyodo/onmyoji001.png);
  background-position: 20% 20%;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: -1;
}

div.price-box {
  display: flex;
  flex-direction: column;
  row-gap: 1rem;
  padding: 1rem;
  font-size: var(--inner-text-small-size);
}

div.price-box p {
  font-size: var(--inner-text-small-size);
}

div.price-box span.large {
  font-size: var(--inner-text-large-size);
}

div.price-box > div {
  width: 100%;
  margin: 0 auto 0;
  padding: 0.25rem;
}

div.price-box > div a:has(img) {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 1rem auto 1rem;
}

div.price-box > div a img {
  width: 100%;
}

div.price-box > div h3 {
  text-align: left;
  font-size: var(--inner-text-small-size);
  margin-bottom: 1.5rem;
}

div.price-box > div h4 {
  text-align: left;
}

div.price-box > div h4 > span.small {
  font-size: var(--text-size);
  color: var(--sub-base-color);
}

div.price-box > div h4,
div.price-box > div h5 {
  font-size: var(--inner-text-small-size);
}

table.price {
  width: 95%;
  min-width: 320px;
  margin: 0 auto 0;
  box-sizing: border-box;
  border: 1px #898 solid;
  border-collapse: collapse;
  background-image: url(/img/default/onmyodo/onmyoji001.png);
  background-position: 20% 20%;
  background-repeat: no-repeat;
}

table.price caption {
  letter-spacing: 1.5px;
  font-size: var(--h3-size);
  font-weight: bold;
}
table.price th,
table.price td {
  padding: 5px 20px;
  border-bottom: 1px #898 solid;
  background-color: rgba(255, 255, 255, 0.8);
  color: var(--base-color);
  font-size: var(--table-normal-size);
  text-shadow: 0 0 1px var(--base-color);
}

table.price td.large {
  padding-right: 15%;
  font-size: var(--table-large-size);
  font-weight: 600;
}

table.price th {
  width: 40%;
  border-right: 1px #999 dotted;
}

table.price td {
  width: 60%;
}

table.price td:not(:last-child) {
  border-right: 1px #898 dotted;
}

table.price p.notice {
  font-size: 10px;
}

/** よくあるご質問 **/
.sub-container.faq div.article-box {
  min-height: 100vh;
  height: auto;
}

.sub-container.faq div.article-box h4 {
  padding: 0 1rem 0;
}

.sub-container.faq a {
  text-decoration: underline;
}

.sub-container.faq span.attention {
  width: 100%;
  max-width: 660px;
  margin: 0 auto 0;
}

.sub-container.faq div.article-box > div > h4 > label {
  font-weight: normal;
}

.sub-container.faq div.article-box > div > h4 > label:hover,
.sub-container.faq div.article-box > div:has(input[type='checkbox']:checked) > h4 > label {
  color: var(--base-color);
  border-color: var(--base-color);
}

.sub-container.faq div.article-box > div > h4 > label:hover::after,
.sub-container.faq div.article-box > div:has(input[type='checkbox']:checked) > h4 > label::after {
  color: var(--base-color);
}

.sub-container.faq div.article-box > div > div.article-body p {
  display: block;
  background-color: unset;
  text-indent: 0;
  font-size: var(--h4-size);
}

.sub-container.faq div.article-box.faq > div {
  margin: 2rem 0 2rem 0;
}

@media (max-width: 768px) {
  table.price {
    border: 0;
  }

  table.price tr {
    display: flex;
    flex-direction: column;
    border: 2px solid #000;
  }

  table.price tr:first-child {
    border-top: 3px solid #000;
  }

  table.price tr:last-child {
    border-bottom: 3px solid #000;
  }

  table.price tfoot tr:first-child {
    border-top: 1px solid #000;
  }

  table.price th,
  table.price td,
  table.price td.large {
    width: 100%;
    padding: 5px 0;
    border-right: 0;
    text-align: center;
  }
}