:root {
  --green: #34951a;
  --darkgreen: #1b6a05;
  --background: #f2efeb;
  --white: #fcfcfc;
  --lightgrey: #ececec;
  --midgrey: #c1c1c1;
  --darkgrey: #686868;
  --black: #333333;
}

body {
  background-color: var(--background);
  font-family: "noto sans jp", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  line-height: 28px;
  color: var(--black);
  overflow-x: hidden;
  overflow-y: scroll;
  text-align: justify;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
}

a {
  transition: 0.5s;
}

/* ヘッダーとPC背景 */
header div {
  width: 100%;
  height: 100px;
  background-image: url(https://min-iren.asp.aik.co.jp/nk11-top/img/background_sp.png);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  display: flex;
  align-items: center;
  justify-content: center;
}

header div img {
  height: 60px;
  display: block;
}

.pclogo img {
  max-width: 600px;
  height: auto;
  display: block;
  margin: 0;
  /* 左揃えに修正 */
}

@media (min-width: 800px) {
  body {
    background-image: url(https://min-iren.asp.aik.co.jp/nk11-top/img/background_pc.png);
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-position: top center;
    background-color: #fcfcfc;
  }
  header {
    margin-top: 10px;
  }
  header div {
    background-image: none;
    height: 70px;
    width: 90%;
    margin: 0 auto 0;
    justify-content: flex-start; /* 左揃え */
  }
  header div div {
    width: 100%;
  }
  .splogo {
    display: none;
  }
}

@media (max-width: 800px) {
  .pclogo {
    display: none;
  }
}
/* 電話ボタン */
.tell_sp {
  background-color: var(--white);
  color: var(--black);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 25px;
  font-weight: 700;
  height: 50px;
  line-height: 50px;
  gap: 10px;
  font-size: 18px;
  margin-bottom: 20px;
}

.tell_sp:hover {
  background-color: var(--midgrey);
}
@media (min-width: 1000px) {
  .tell_sp {
    display: none;
  }
}
.tell_pc {
  display: none;
}

@media (min-width: 1000px) {
  .tell_pc {
    background-color: var(--white);
    color: var(--black);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 25px;
    font-weight: 700;
    height: 50px;
    line-height: 50px;
    gap: 10px;
    font-size: 18px;
    width: 390px;
  }
  .tell_pc:hover {
    background-color: var(--midgrey);
  }
  .tell_pc img {
    width: 20px;
  }
}

/* ナビ */
nav {
  position: fixed;
  bottom: 0;
  width: 100%;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
}

nav ul {
  display: flex;
}
nav ul li {
  width: 100%;
  border-right: 1px solid var(--darkgreen);
}

nav ul li:last-child {
  border-right: none;
}

nav ul li a {
  display: block;
  background-color: var(--green);
  color: var(--white);
  text-align: center;
  font-size: 14px;
  padding: 10px 0;
  font-weight: 700;
}

.current {
  background-color: var(--darkgreen);
}

nav ul li a:hover {
  background-color: var(--darkgreen);
}

nav ul li img {
  width: 26px;
}
/* ナビのPC表示 */
@media (min-width: 800px) {
  nav {
    position: static;
    width: 90%;
    margin: 10px auto;
    box-shadow: none;
  }
  .spbr {
    display: none;
  }
  nav ul {
    gap: 20px;
  }

  nav ul li {
    border-right: none;
  }
  nav ul li a {
    border-radius: 25px;
    font-size: 20px;
    height: 50px;
  }
  nav ul li img {
    width: 30px;
    margin-right: 10px;
  }
}

/* メイン */
.main_content {
  background-color: var(--background);
  width: 100%;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

@media (min-width: 800px) {
  .main_content {
    width: 90%;
    max-width: 1200px;
    border-radius: 10px;
    margin: 20px auto 40px;
    padding: 40px;
    flex-direction: row;
  }
}

/* メイン左側 */
.main_left {
  display: flex;
  flex-direction: column;
  height: fit-content;
}
@media (min-width: 800px) {
  .main_left {
    margin-right: 40px;
  }
}
.left_content {
  width: 100%;
  background-color: var(--white);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}

@media (min-width: 800px) {
  .left_content {
    background-color: var(--white);
    width: 320px;
    height: 100%;
    border-radius: 10px;
    padding: 20px;
  }
}

.left_content ul li {
  margin-top: 20px;
}

.poster {
  width: 100%;
}

.poster:hover {
  filter: brightness(0.7);
}

.poster_img {
  width: 100%;
  margin-bottom: 20px;
  border: 1px solid var(--midgrey);
}

.prof {
  width: 100%;
}
.icon {
  width: 30px;
  height: 30px;
  display: inline-block;
  vertical-align: middle;
}

.download {
  background-color: var(--green);
  color: var(--white);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 25px;
  font-weight: 700;
  height: 50px;
  line-height: 50px;
  gap: 10px;
}

.download:hover {
  background-color: var(--darkgreen);
}

/* メイン右側 */
.main_right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.right_content {
  background-color: var(--white);
  width: 100%;
  border-radius: 10px;
  padding: 20px;
}
.main_content h2 {
  color: var(--green);
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  margin-bottom: 10px;
}

.indent {
  text-indent: -5em;
  padding-left: 5em;
}

.indent-left {
  text-align: left;
  text-indent: -5em;
  padding-left: 5em;
}

.news {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  padding: 0;
  list-style: none;
}

.news li {
  width: 46%;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2%;
  border: 1px solid var(--midgrey);
}

@media (min-width: 1000px) {
  .news li {
    width: 29.3%;
  }
}

@media (min-width: 1200px) {
  .news li {
    width: 21%;
  }
}

.news li img {
  width: 100%;
  height: auto;
  display: block;
}

.news li img:hover {
  filter: brightness(0.7);
  transition: 0.5s;
}

/* フッター */
footer {
  background-color: var(--darkgrey);
  color: var(--white);
  font-size: 14px;
  padding: 20px 20px 100px;
}
@media (min-width: 800px) {
  footer {
    padding: 20px;
  }
}
footer div {
  max-width: 600px;
  margin: 0 auto;
}
.footer_title {
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 10px;
  text-align: center;
}

.copyright {
  margin-top: 10px;
  text-align: center;
}
#email:hover {
  border-bottom: 1px solid var(--white);
}
/* ご挨拶 */
.align_right {
  text-align: right;
}

.greeting_left_content {
  display: none;
}

.greeting_left {
  width: 100%;
}

.greeting_right {
  width: 100%;
}

@media (min-width: 800px) {
  .greeting_left_content {
    background-color: var(--white);
    width: 320px;
    height: 100%;
    border-radius: 10px;
    padding: 20px;
    display: block;
  }
}

.greeting_left_content_sp {
  width: 100%;
  background-color: var(--white);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  gap: 20px;
}
@media (min-width: 800px) {
  .greeting_left_content_sp {
    display: none;
  }
}

/* テーマ */
.theme {
  margin-top: 10px;
}

.indent1 {
  text-indent: -1em;
  padding-left: 1em;
  text-align: justify;
}

.indent6 {
  text-indent: -6em;
  padding-left: 6em;
  text-align: justify;
}

#mail-link {
  text-decoration: underline;
}

#email {
  text-decoration: underline;
}

.small {
  font-size: 12px;
}

.theme1 {
  margin-top: 10px;
  text-indent: -2em;
  padding-left: 2em;
}

.theme2 {
  padding-left: 3em;
}

.number {
  letter-spacing: -0.2em;
}
