@charset "UTF-8";

@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP&display=swap");
body {
  font-family: "Noto Sans JP", sans-serif;
}
:root {
  --shikoku-red: #dc020d;
  --shikoku-blue: #2d87e1;
  --shikoku-green: #50aa25;
}

html {
  scroll-behavior: smooth; /* アンカーリンクのスムーススクロース */
}

section {
  margin: 0 auto;
  align-items: center;
}

/* PC/SP */
.pc {
  display: block;
}
.sp {
  display: none;
}
@media screen and (max-width: 768px) {
  .pc {
    display: none;
  }
  .sp {
    display: block;
  }
}

img {
  max-width: 100%; /* ここを修正: widthからmax-widthに変更 */
  height: auto; /* 高さを自動調整 */
}

/* top */
h1 {
  position: relative;
  width: 100%;
  height: 500px;
  background-image: url("../img/top-pc.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
@media screen and (max-width: 768px) {
  h1 {
    height: 280px;
    background: no-repeat center/cover url("../img/top-sp.png");
  }
}

.top > h1 > a > img {
  width: 175px;
  position: absolute;
  top: 35px;
  left: 35px;
}
@media screen and (max-width: 768px) {
  .top > h1 > a > img {
    width: 100px;
    top: 60px;
    left: 10px;
  }
}

.top-lead-txt {
  width: 1080px;
  margin: 0 auto;
}
.top-lead-txt > img {
  width: 100%;
}
@media screen and (max-width: 768px) {
  .top-lead-txt {
    width: 100%;
    padding: 0 20px; /* モバイルでの左右の余白を追加 */
    box-sizing: border-box; /* paddingを含めた幅の計算 */
  }
}

.about,
.businessfields {
  padding: 0; /* 元々padding: 0 0だったので変更なし */
  margin-bottom: 140px;
}
@media screen and (max-width: 768px) {
  .about,
  .businessfields {
    margin-bottom: 80px;
    padding: 0 20px; /* モバイルでの左右の余白を追加 */
    box-sizing: border-box;
  }
}

.about-lead,
.businessfields-lead {
  width: 100%; /* 親要素の幅を100%に */
  margin: 0 auto;
  max-width: 1080px;
  display: flex;
  justify-content: center;
  gap: 0px;
}
.about-lead-txt,
.businessfields-lead-txt {
  width: 50%;
}
.about-lead-txt > img,
.businessfields-lead-txt > img {
  width: 100%;
}
.about-lead-button,
.businessfields-lead-button {
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.about-lead-button div,
.businessfields-lead-button div {
  width: 300px;
  padding: 20px 0;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
}
@media screen and (max-width: 768px) {
  .about-lead,
  .businessfields-lead {
    flex-direction: column;
    gap: 0px;
  }
  .about-lead-txt,
  .businessfields-lead-txt {
    width: 100%;
  }
  .about-lead-button,
  .businessfields-lead-button {
    width: 100%;
  }
  .about-lead-button div,
  .businessfields-lead-button div {
    width: 300px;
    padding: 14px 0;
    font-size: 18px;
    line-height: 1.5;
    font-weight: 700;
  }
}

/* .openoffice-top,.about-top共通*/
.openoffice-top,
.about-top,
.businessfields-top {
  background: repeat center/cover url("../img/openoffice-top_bg.png");
  width: 100%;
  text-align: center;
  border-top: 6px solid var(--shikoku-red);
}
@media screen and (max-width: 768px) {
  .openoffice-top,
  .about-top,
  .businessfields-top {
    border-top: 4px solid var(--shikoku-red);
  }
}
.openoffice-top > img,
.about-top > img,
.businessfields-top > img {
  width: 1080px;
}
@media screen and (max-width: 768px) {
  .openoffice-top > img,
  .about-top > img,
  .businessfields-top > img {
    width: 100%;
  }
}

.openoffice-overview {
  width: 100%;
  text-align: center;
  padding: 80px 0;
}
.openoffice-overview > img {
  width: 1080px;
}
@media screen and (max-width: 768px) {
  .openoffice-overview {
    padding: 40px 0; /* モバイルでの上下の余白調整 */
  }
  .openoffice-overview > img {
    width: 100%;
  }
}

.pattern {
  background-image: radial-gradient(#e9edf0 0%, #dc020d 10%);
  background-size: 15px 15px;
}

.separator {
  width: 100%;
  text-align: center;
  z-index: 10;
}
.separator > img {
  width: 100%;
}

.openoffice-course {
  width: 1080px;
  margin: 0 auto;
}
.openoffice-course > img {
  width: 100%;
}
@media screen and (max-width: 768px) {
  .openoffice-course {
    width: 100%;
    margin: 0 auto 80px;
    padding: 0 20px; /* モバイルでの左右の余白を追加 */
    box-sizing: border-box;
  }
}

.entry {
  padding: 80px 0;
}
.entry-ttl {
  width: 1080px;
  margin: 0 auto 40px;
}
.entry-ttl > img {
  width: 100%;
}
@media screen and (max-width: 768px) {
  .entry-ttl {
    width: 100%;
    padding: 0 20px; /* モバイルでの左右の余白を追加 */
    box-sizing: border-box;
  }
}

/* ボタンスタイル */

.top-button {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 100px;
}
@media screen and (max-width: 768px) {
  .top-button {
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin-bottom: 80px;
  }
}

.top-button div {
  width: auto;
  padding: 20px 50px 20px 30px;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
}
@media screen and (max-width: 768px) {
  .top-button div {
    width: 300px;
    padding: 14px 0;
    font-size: 18px;
    line-height: 1.5;
    font-weight: 700;
  }
}

.openoffice-button,
.entry-button {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 0 20px; /* モバイルでの左右の余白を追加 */
  box-sizing: border-box;
}
@media screen and (max-width: 768px) {
  .openoffice-button,
  .entry-button {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }
}

.openoffice-button {
  padding: 0 0 150px 0;
}
@media screen and (max-width: 768px) {
  .openoffice-button {
    padding: 0 0 80px 0;
  }
}
.openoffice-button div {
  width: auto;
  padding: 30px 40px;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
}
@media screen and (max-width: 768px) {
  .openoffice-button div {
    width: 300px;
    padding: 20px 0;
    font-size: 18px;
    line-height: 1.5;
    font-weight: 700;
  }
}

.entry-button div {
  width: 300px;
  padding: 20px 0;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
}
@media screen and (max-width: 768px) {
  .entry-button div {
    font-size: 18px; /* モバイルでのフォントサイズ調整 */
  }
}

.button-red {
  position: relative;
  color: #fff;
  background-color: var(--shikoku-red);
  border-radius: 4px;
  box-shadow: 1px 2px 10px rgb(0 0 0 / 20%);
}
.button-red::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 20px;
  width: 9px;
  height: 9px;
  margin: auto;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(45deg);
  box-sizing: border-box;
}

.txt-blue {
  color: var(--shikoku-blue);
}
.txt-green {
  color: var(--shikoku-green);
}
.button-blue {
  position: relative;
  color: #fff;
  background-color: var(--shikoku-blue);
  border-radius: 4px;
  box-shadow: 1px 2px 10px rgb(0 0 0 / 20%);
}
.button-blue::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 20px;
  width: 9px;
  height: 9px;
  margin: auto;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(45deg);
  box-sizing: border-box;
}

.button-green {
  position: relative;
  color: #fff;
  background-color: var(--shikoku-green);
  border-radius: 4px;
  box-shadow: 1px 2px 10px rgb(0 0 0 / 20%);
}
.button-green::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 20px;
  width: 9px;
  height: 9px;
  margin: auto;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(45deg);
  box-sizing: border-box;
}

.button-white {
  position: relative;
  color: var(--shikoku-red);
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 1px 2px 10px rgb(0 0 0 / 20%);
}
.button-white::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 20px;
  width: 9px;
  height: 9px;
  margin: auto;
  border-top: 2px solid var(--shikoku-red);
  border-right: 2px solid var(--shikoku-red);
  transform: rotate(45deg);
  box-sizing: border-box;
}

.button-red-line {
  position: relative;
  color: var(--shikoku-red);
  background-color: #fff;
  border-radius: 4px;
  border: #dc020d 1px solid;
}
.button-red-line::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 20px;
  width: 9px;
  height: 9px;
  margin: auto;
  border-top: 2px solid var(--shikoku-red);
  border-right: 2px solid var(--shikoku-red);
  transform: rotate(135deg);
  box-sizing: border-box;
}

/* フッターリンク */
footer {
  padding-top: 40px; /* フッター全体の余白を調整 */
}

.company-links {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 40px;
}
.company-links li {
  list-style-type: disc; /* ・ */
  font-size: 16px;
  font-weight: 700;
  padding-top: 40px;
  margin-bottom: 30px;
}
@media screen and (max-width: 768px) {
  .company-links {
    width: 100%;
    flex-direction: column;
    padding: 40px 30px;
    gap: 20px;
  }
  .company-links li {
    padding-top: 0;
    margin-bottom: 0;
  }
}

.copyright {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.businessfields-link-button {
  width: 100%; /* 親要素の幅を100%に設定 */
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap; /* 要素が収まらない場合に折り返す */
  padding: 0 20px; /* モバイルでの左右の余白を追加 */
  box-sizing: border-box;
}

.businessfields-link-button li {
  text-align: center;
  flex-basis: 250px; /* PCでの幅を維持しつつ、モバイルで柔軟にする */
}

.businessfields-link-button div {
  width: 100%; /* li要素の幅に合わせる */
  padding: 0;
  text-align: center;
}
.businessfields-link-button div > img {
  width: 100%;
  border-radius: 50%;
  box-shadow: 1px 2px 10px rgb(0 0 0 / 20%);
}

@media screen and (max-width: 768px) {
  .businessfields-link-button {
    margin-top: 20px;
    /* flex-direction: row;  ここは維持して、flex-wrapで対応 */
    align-items: center;
    gap: 20px;
    padding: 0 20px; /* モバイルでの左右の余白を調整 */
  }
  .businessfields-link-button li {
    flex-basis: calc(50% - 10px); /* 2列表示にする（gapを考慮） */
    max-width: 200px; /* モバイルでの最大幅を設定 */
  }
  .businessfields-link-button div {
    width: 100%;
    padding: 0;
    text-align: center;
  }
}

/* .entry-button div {
    width: 300px;
    padding: 20px 0;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
  } */

/* businessfields内の画像は、すでにモバイルでwidth: 100%になっていたので、特に調整は不要 */
/* @media screen and (max-width: 768px) {
  .businessfields-top > img,
  .businessfields-lead > img,
  .businessfields-link-button img {
    width: 100%;
  }
} */
