/*-------------------------------------------
colors
-------------------------------------------*/
/*-------------------------------------------
header
-------------------------------------------*/
* {
  font-family: "Poppins", sans-serif, cursive;
}

.header-top {
  height: 30px;
  background: #2d1160;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 9999;
  span {
    font-size: 14px;
    color: white;
  }
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
  margin: 0 auto;
  padding: 0 4%;
  top: 30px;
  background: white;
  position: sticky;
  z-index: 9999;
  box-shadow: 0px 0px 3px 0px black;
}

header h1 a {
  color: black;
  text-decoration: none;
  font-weight: bold;
  font-size: 24px;
}

header h1 a span {
  color: #2d1160;
  cursor: pointer;
}

header ul {
  display: flex;
  padding: 10px 0;
}

header li {
  font-size: 0.9rem;
  margin-left: 5px;
}

header li .selected {
  color: white;
  background-color: #2d1160;
}

header li a {
  padding: 4px 10px;
  border-radius: 25px;
  color: black;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
}

header li a:hover:not(.selected) {
  background-color: rgba(62, 26, 128, 0.3);
}

/*-------------------------------------------
main
-------------------------------------------*/
.key-visual {
  height: 540px;
  width: 100%;
  background-image: url(../img/background.png);
  background-size: cover;
  background-position: center;
  filter: saturate(130%);
  opacity: 0.9;
  position: relative;
}

.key-visual::before {
  content: "";
  background-color: rgba(0, 0, 0, 0.5);
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.key-visual p {
  font-size: 64px;
  font-weight: bold;
  color: white;
  width: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  text-align: center;
  transform: translate(-50%, -50%);
  line-height: 1.1;
}

.wrapper {
  padding: 0 20%;
}

.wrapper > div {
  margin: 40px 0;
}

.wrapper h2 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
}

.welcome-message {
  text-align: center;
}

.welcome-message h2 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 40px;
}

.welcome-message p {
  text-align: left;
  line-height: 1.3;
}

.main-business .boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 20px;
  justify-content: center;
}

.main-business .boxes a {
  color: black;
  text-decoration: none;
}

.main-business .boxes .box {
  padding: 20px 0;
  height: 300px;
  width: 250px;
  display: flex;
  justify-content: center;
  gap: 20px;
  align-items: center;
  flex-direction: column;
  font-weight: bold;
  box-shadow: 1px 2px 5px #333;
}

.main-business .boxes .box:hover {
  background-color: rgba(62, 26, 128, 0.3);
}

.main-business .boxes .box .circle {
  background-color: rgba(204, 204, 204, 0.4431372549);
  border-radius: 50%;
  display: flex;
  height: 200px;
  width: 200px;
  justify-content: center;
  align-items: center;
  box-shadow: 1px 2px 5px #333;
  position: relative;
}

.main-business .boxes .box .circle i {
  font-size: 128px;
}

.news-information .news {
  padding: 0 30px;
  height: 70px;
  border-bottom: 2px solid #ccc;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.news-information .news:first-of-type {
  border-top: 2px solid #ccc;
}

.news-information .news:hover {
  background-color: rgba(62, 26, 128, 0.3);
}

.news-information .news .date {
  display: flex;
  align-items: center;
  margin-top: 10px;
  height: 20px;
  background: #2d1160;
  padding: 5px 20px;
  border-radius: 25px;
  color: white;
  font-weight: bold;
}

.news-information .news .article .title {
  cursor: pointer;
  color: orange;
  margin-top: 10px;
  margin-bottom: 10px;
  font-weight: bold;
  text-decoration: underline;
}

.news-information .news .article .content {
  width: 40vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.access {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.access .address-info {
  display: flex;
  gap: 10px;
  margin-top: 30px;
}

.access .address-info .clip-path-shadow {
  filter: drop-shadow(4px 6px 3px #a3a3a3);
}

.access .address-info .address {
  position: relative;
  width: 295px;
  height: 150px;
  background-color: #f2f2f2;
  clip-path: polygon(85% 0, 100% 50%, 85% 100%, 0% 100%, 0 50%, 0% 0%);
}

.access .address-info .address .info {
  padding: 25px;
  line-height: 1.1;
}

.access .address-info .address .info h4 {
  font-weight: bold;
  margin-bottom: 5px;
}

.access .address-info .address .info p {
  margin-bottom: 5px;
}

.access .address-info .address .info button {
  font-size: 18px;
  font-weight: 12px;
  border-radius: 5px;
  background-color: orange;
  color: white;
  border: 1px solid orange;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 1px 2px 5px #333;
}

.access .address-info .address .info button i {
  margin-right: 3px;
}

.page-header {
  display: flex;
  background: #ccc;
  color: white;
  height: 50px;
  justify-content: center;
  font-size: 32px;
  align-items: center;
  text-shadow: 3px 3px 5px rgb(0, 0, 0);
  margin-bottom: 40px;
}

.wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wrapper > div {
  margin: 40px 0;
}

.wrapper form {
  display: flex;
  gap: 20px;
  flex-direction: column;
}

h3 {
  text-align: center;
  font-size: 18px;
  font-weight: bold;
}

.article-wrapper {
  align-items: initial;
  min-height: 500px;
}

.page-header {
  display: flex;
  background: #ccc;
  color: white;
  height: 50px;
  justify-content: center;
  font-size: 32px;
  align-items: center;
  text-shadow: 3px 3px 5px rgb(0, 0, 0);
  margin-bottom: 40px;
}

.wrapper .profile {
  display: flex;
  flex-direction: row;
  gap: 30px;
  justify-content: center;
}

.wrapper .profile .background-circle {
  width: 200px;
  height: 250px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-content: center;
  justify-content: center;
  align-items: center;
}

.wrapper .profile .goals-wrapper {
  margin-top: -30px;
}

.wrapper .profile .background-circle img {
  width: 170px;
  height: 230px;
  margin-bottom: 10px;
  border-radius: 15px;
}

.wrapper .profile .background-circle a {
  color: orange;
}

.wrapper .profile h4 {
  position: relative;
  display: inline-flex;
  border-radius: 5px;
  background-color: white;
  padding: 5px 10px;
  border: 1px solid black;
  position: relative;
  bottom: -15px;
  left: 9px;
}

.wrapper .profile h5 {
  margin-bottom: 27px;
}

.wrapper .profile p {
  line-height: 1.3;
  text-align: justify;
  width: 400px;
  margin-bottom: 10px;
}

.wrapper .profile .office-goals {
  border: 1px solid black;
  border-radius: 5px;
  padding: 5px 20px;
  padding-top: 25px;
  line-height: 1.2;
  height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wrapper .summary {
  line-height: 1.6;
  .table-container {
    max-width: 600px;
    margin: 0 auto;
    border-collapse: collapse;
    border: 1px solid #ccc;
  }
  .table-container th,
  .table-container td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
  }
  .table-container th {
    background-color: #f2f2f2;
  }
  .highlight {
    font-weight: bold;
  }
}

.wrapper .summary dl {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  left: 25%;
}

.wrapper .summary dl dt {
  font-weight: bold;
  text-align: justify;
  text-align-last: justify;
  width: 130px;
}

.wrapper .summary dl dd {
  width: 80%;
}

.wrapper .summary p span {
  font-weight: bold;
}

.wrapper .summary ol {
  list-style: disc;
  padding-left: 25px;
}

.service-fee > div {
  margin-bottom: 20px;
}

.service-fee > div h4 {
  margin-bottom: 5px;
  font-weight: bold;
}

.service-fee > div h4 span {
  padding-right: 3px;
}

.service-fee > div ul {
  line-height: 1.6;
}

.service-fee > div ul li {
  padding-left: 20px;
}

.writing-box {
  white-space: pre-line;
}

.detail-profile {
  gap: 150px;
  display: flex;
  flex-direction: row;
}

.detail-profile div {
  gap: 20px;
  display: flex;
  flex-direction: column;
}

.detail-profile p {
  font-weight: bold;
}

.detail-profile ol {
  list-style: disc;
  padding-left: 15px;
  line-height: 1.6;
}

.news-article {
  display: flex;
  justify-content: center;
  flex-direction: row;
  gap: 40px;
  margin-bottom: 60px;
}

.news-article img {
  height: 200px;
  width: 300px;
}

.news-article a {
  text-decoration: none;
  color: black;
}

.news-article a .news-contents {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  width: 500px;
}

.news-article a .news-contents .title {
  font-weight: bold;
  text-decoration: underline;
  color: orange;
}

.news-article a .news-contents .content {
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.6;
}

.article-contents {
  display: flex;
  flex-direction: column;
}

.article-contents .title {
  font-weight: bold;
  font-size: 24px;
  margin-bottom: 10px;
}

.article-contents img {
  margin-bottom: 40px;
}

.article-contents .content {
  line-height: 1.3;
  margin: 40px 0;
  text-align: justify;
}

.pagination {
  display: flex;
  justify-content: center;
}

.contact-form form {
  width: 500px;
}

.contact-form form,
input,
textarea {
  margin-top: 5px;
}

.contact-form textarea {
  width: 100%;
}

.contact-form form,
input {
  font-weight: bold;
}

.wpcf7-text {
  width: 100%;
}

.wpcf7-list-item {
  margin: 0;
}

.contact-form form p > input {
  color: white;
  background-color: #2d1160;
  padding: 5px 20px;
  border: none;
  border-radius: 5px;
  font-size: 18px;
  width: 103%;
}

.error-page {
  height: 500px;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background-color: rgba(62, 26, 128, 0.3);
}

.error-page h1 {
  font-weight: bold;
  font-size: 32px;
}

.intro-message {
  margin-top: 20px;
  line-height: 1.3;
  text-align: justify;
}

.goals-message {
  line-height: 1.3;
  text-align: justify;
  margin-bottom: 100px;
}

/*-------------------------------------------
footer
-------------------------------------------*/
footer {
  background: #2d1160;
  color: white;
  font-size: 14px;
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

footer .address-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

footer .address {
  flex: 1;
  min-width: 250px;
  text-align: left;
}

footer h4 {
  font-size: 16px;
  margin-bottom: 10px;
}

footer p {
  line-height: 1.6;
  font-size: 14px;
}

footer button {
  background: #ff8000;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
}

footer button:hover {
  background: #e66900;
}

footer .copyright {
  margin-top: 60px;
  font-size: 12px;
}

/* スマホ向けスタイル */
@media screen and (max-width: 768px) {
  footer {
    font-size: 12px;
    padding: 20px 10px;
  }

  footer .address-info {
    flex-direction: column;
    gap: 20px;
  }

  footer .address {
    min-width: unset;
  }

  footer h4 {
    font-size: 14px;
  }

  footer button {
    font-size: 12px;
    padding: 8px 16px;
  }
}

@media screen and (max-width: 767px) {
  header h1 a {
    font-size: 18px;
  }

  header nav {
    display: none;
  }

  .key-visual {
    height: 300px;
    display: flex;
    align-items: center;
  }

  .key-visual p {
    font-size: 28px;
    top: auto;
    left: auto;
    text-align: center;
    transform: translate(0%, 0%);
  }

  .welcome-message p {
    line-height: 1.3;
  }

  .main-business .boxes {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
  }

  .main-business .boxes .box {
    padding: 20px 10px;
  }

  .main-business .boxes .box .circle {
    height: 150px;
    width: 150px;
  }

  .main-business .boxes .box .circle i {
    font-size: 64px;
  }

  .news-information .news .article .content {
    width: 50vw;
  }

  .news-information .news .date {
    padding: 5px 10px;
    font-size: 12px;
  }

  iframe {
    width: 350px;
    height: 400px;
  }

  .access .address-info {
    gap: 15px;
    flex-direction: column;
  }

  .access .address-info .address {
    width: 350px;
  }

  .wrapper {
    padding: 0 5%;
  }

  .wrapper .summary dl {
    left: 0;
  }

  .wrapper .summary dl dd {
    width: 45%;
  }

  .wrapper .profile {
    flex-direction: column;
    align-items: center;
  }

  .wrapper .profile p {
    width: 300px;
  }

  .detail-profile {
    gap: 20px;
    display: flex;
    flex-direction: column;
  }

  .news-article {
    flex-direction: column;
    align-items: center;
  }

  .news-article a .news-contents {
    width: 300px;
  }

  .contact-form form {
    width: 300px;
  }

  .intro-message {
    margin: 20px;
  }

  .goals-message {
    margin: 0 20px;
    margin-bottom: 100px;
  }
}

@media (min-width: 768px) and (max-width: 1200px) {
  .key-visual p {
    font-size: 48px;
    top: 200px;
    transform: none;
    left: 0;
  }

  .wrapper .profile h5 {
    margin-bottom: 8px;
  }
}
