/* main用 */
a {
  text-decoration: none;
}

ul,
li {
  list-style: none;
  white-space: normal;
  word-break: break-word;
}

p {
  white-space: normal;
  word-break: break-word;
}

body {
  font-family: "Noto Sans JP", sans-serif;
}

main {
  background-color: white;
  display: flex;
  flex-direction: column;
}

@media screen and (min-width: 960px) {
  main {
    background-color: white;
    display: flex;
    flex-direction: column;
  }
}

/* index.htmlを除き全ページ共通で使用する */
.template-top {
  margin-top: 70px;    /* ヘッダ領域にかぶらないように同じ分動かす */
  background: blue;

  width: 100%;
  height: 230px;
  border: 2px none white;
  background: linear-gradient(
    175deg,            /* 左下から右上に分割 */
      green 0%,        /* 色1 停止位置 */
      #009000 15%,     /* 色2 停止位置 */
      #00b000 30%,
      white 40%,       /* 色3 停止位置 */
      white 100%       /* 色4 停止位置 */
  );
}

@media screen and (min-width: 960px) {
  .template-top {
    margin-top: 130px;    /* ヘッダ領域にかぶらないように同じ分動かす */
    background: blue;

    width: 100%;
    height: 350px;
    border: 2px none white;
    background: linear-gradient(
      175deg,            /* 左下から右上に分割 */
      green 0%,        /* 色1 停止位置 */
      #009000 35%,     /* 色2 停止位置 */
      #00a000 45%,     /* 色3 停止位置 */
      white 50%,       /* 色4 停止位置 */
      white 55%,       /* 色5 停止位置 */
      white 100%       /* 色6 停止位置 */
    );
  }
}

.template-top__title {
  color: white;
  font-size: 40px;
  font-weight: bold;
  position: static;
  margin-top: 10px;
  margin-left: 30px;
}

@media screen and (min-width: 960px) {
  .template-top__title {
    color: white;
    font-size: 80px;
    font-weight: bold;
    position: static;
    margin-top: 20px;
    margin-left: 50px;
  }
}

.template-top__text {
  color: white;
  font-size: 20px;
  position: static;
  margin-top: 10px;
  margin-left: 30px;
}

@media screen and (min-width: 960px) {
  .template-top__text {
    color: white;
    font-size: 20px;
    position: static;
    margin-top: 20px;
    margin-left: 50px;
  }
}

.template-top__link {
  color: white;
  font-size: 14px;
  position: static;
  margin-top: 10px;
  margin-left: 30px;
  display: none;
}

@media screen and (min-width: 960px) {
  .template-top__link {
    color: white;
    font-size: 14px;
    position: static;
    margin-top: 30px;
    margin-left: 50px;
    display: flex;
  }
}

.template-top__link a {
  color: white;
}

.template-top__image img {
  position: absolute;
  right: 0;
  margin-top: 10px;
  width: 150px;
}

@media screen and (min-width: 960px) {
  .template-top__image img {
    position: absolute;
    right: 0;
    margin-top: -50px;
    width: auto;
  }
}

.template-main__center {
  position: relative;
  display: inline-block;
  margin: 0 auto;
  width: min(100%, 350px);
}

@media screen and (min-width: 960px) {
  .template-main__center {
    position: relative;
    display: block;
    margin: 0 auto;
    width: min(100%, 900px);
  }
}

.template-main__cate {
  color: green;
  font-size: 16px;
  line-height: normal;
}

.template-main__cate a {
  color: green;
}

.template-main__title {
  color: black;
  font-size: 22px;
  font-weight: bold;
  margin-top: 10px;
  height: 30px;
  align-items: center;
}

@media screen and (min-width: 960px) {
  .template-main__title {
    color: black;
    font-size: 26px;
    font-weight: bold;
    margin-top: 10px;
    height: 60px;
    align-items: center;
  }
}

.template-main__subtitle {
  color: black;
  font-size: 20px;
  font-weight: bold;
  margin-top: 10px;
  align-items: center;
}

.template-main__text {
  color: black;
  font-size: 14px;
  width: min(100%, 350px);
  padding: 5px;
  line-height: normal;
}

@media screen and (min-width: 960px) {
  .template-main__text {
    color: black;
    font-size: 16px;
    width: min(100%, 950px);
    padding: 5px;
    line-height: normal;
  }
}

.template-main__box {
  align-items: center;
  width: min(100%, 350px);
  margin-bottom: 12px;

  border: 1px solid green;
}

/* widthが960以上の場合、横に表示 */
@media screen and (min-width: 960px) {
  .template-main__box {
    display: flex;
    align-items: center;
    width: min(100%, 900px);
    margin-bottom: 12px;

    border: 1px solid green;
  }
}

.template-main__box-label{
  background: green;
  color: white;

  padding: 24px 36px;
  min-width: 160px;
  text-align: center;
}

.template-main__box-label-large {
  background: green;
  color: white;

  padding: 48px 36px;
  min-width: 160px;
  text-align: center;
}

.template-main__box-text {
  flex: 1;
  padding: 24px 36px;
  color: black;
}

.template__gyokan30 {
  height: 30px;
}

.template__gyokan60 {
  height: 60px;
}

.template__gyokan80 {
  height: 80px;
}



/* サービス内容ページ用 */
.service__main {
  display: flex;
  flex-direction: column;
  align-items: center;

  margin: 0 auto;
  padding: 0 16px;
}

.service__vertical-disp {
  position: relative;
  justify-content: center;
  margin: 10px auto;
  width: min(100%, 350px);
}

@media screen and (min-width: 960px) {
  .service__vertical-disp {
    display: block;
    margin: 0 auto;
    width: min(100%, 800px);
  }
}

.service__vertical-title {
  color: black;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
}

@media screen and (min-width: 960px) {
  .service__vertical-title {
    color: black;
    font-size: 36px;
    font-weight: bold;
    text-align: center;
  }
}

.service__vertical-disp img {
  margin-top: 50px;
  width: min(100%, 350px);
}

@media screen and (min-width: 960px) {
  .service__vertical-disp img {
    margin-top: 50px;
    width: min(100%, 800px);
  }
}


.service__horizontal-disp {
  position: relative;
  justify-content: center;
  margin: 50px auto;
  width: min(100%, 350px);
}

/* widthが960以上の場合、横に表示 */
@media screen and (min-width: 960px) {
  .service__horizontal-disp {
    display: flex;
    position: relative;
    justify-content: center;
    margin: 100px auto;
    width: min(100%, 1000px);
    gap: 100px; /* テキストと画像の間隔*/
  }
}

.service__horizontal-disp-conf {
  flex: 1;
  flex-direction: column; /* 左側を上下分割 */
}

.service__horizontal-title {
  color: black;
  font-size: 20px;
  margin-top: 10px;
  margin-bottom: 10px;
  font-weight: bold;
  line-height: normal;
}

@media screen and (min-width: 960px) {
    .service__horizontal-title {
    color: black;
    font-size: 32px;
    margin-top: 0px;
    margin-bottom: 0px;
    line-height: normal;
  }
}

.service__horizontal-text {
  color: black;
  font-size: 16px;
  margin-top: 10px;
  margin-bottom: 10px;
  width: min(100%, 350px);
  line-height: normal;
}

@media screen and (min-width: 960px) {
    .service__horizontal-text {
    color: black;
    font-size: 16px;
    margin-top: 20px;
    margin-bottom: 0px;
    width: min(100%, 400px);
    line-height: normal;
  }
}

.service__horizontal-image-conf{
  position: relative;
  display: inline-block;
  width: min(100%, 500px)
}

.service__horizontal-image-conf img{
  display: block;     /* 余白(ベースライン)防止 */
  position: relative;
  z-index: 2;         /* 緑より前に */
  width: min(100%, 350px);
  height: min(100%, 350px);
}

@media screen and (min-width: 960px) {
    .service__horizontal-image-conf img{
    display: block;     /* 余白(ベースライン)防止 */
    position: relative;
    z-index: 2;         /* 緑より前に */
    width: min(100%, 700px);
    height: min(100%, 300px);
  }
}

/* 画像の裏に敷く緑の四角 */
.service__horizontal-image-conf::after{
  content: "";
  position: absolute;
  inset: 0;
  background: green;
  width: min(100%, 350px);
  height: min(100%, 350px);
  transform: translate(12px, 10px);
  z-index: 1;
}

@media screen and (min-width: 960px) {
  .service__horizontal-image-conf::after{
    content: "";
    position: absolute;
    inset: 0;
    background: green;
    width: min(100%, 700px);
    height: min(100%, 300px);
    transform: translate(12px, 10px);
    z-index: 1;
  }
}



/* 技術・研修開発ページ用 */
.technology-main__patents-center {
  position: relative;
  display: inline-block;
  margin-left: 5%;
}

@media screen and (min-width: 960px) {
  .technology-main__patents-center {
    position: relative;
    display: block;
    margin-left: 5%;
  }
}


/* 実績・導入事例ページ用 */
.achievements-main__center {
  align-items: unset;     /* 縦中央*/
  justify-content: center; /* 横中央*/
  margin: 0 auto;
}

@media screen and (min-width: 960px) {
  .achievements-main__center {
    align-items: center;     /* 縦中央*/
    justify-content: center; /* 横中央*/
    margin: 0 auto;
  }
}



/* 会社概要ページ用 */
.company-main__background {
  background: #f8fff8;
}

.company-main__center1 {
  width: min(100%, 350px);
  position: relative;
  display: block;
  margin: 0 auto;
}

@media screen and (min-width: 960px) {
  .company-main__center1 {
    width: min(100%, 1200px);
    position: relative;
    display: block;
    margin: 0 auto;
  }
}

.company-main__center2 {
  width: min(100%, 350px);
  position: relative;
  display: block;
  margin: 0 auto;
}

@media screen and (min-width: 960px) {
  .company-main__center2 {
    width: min(100%, 950px);
    position: relative;
    display: block;
    margin: 0 auto;
  }
}

.company-main__text {
  color: black;
  font-size: 16px;
  text-align: right;
  line-height: normal;
}

.company-main__horizontal-disp {
  position: relative;
  justify-content: center;
  margin: 10px auto;
  width: min(100%, 350px);
}

/* widthが960以上の場合、横に表示 */
@media screen and (min-width: 960px) {
  .company-main__horizontal-disp {
    display: flex;
    position: relative;
    justify-content: center;
    margin: 10px auto;
    width: min(100%, 1200px);
    gap: 20px; /* テキストと画像の間隔*/
  }
}

.company-main__horizontal-disp-conf {
  flex: 1;
  flex-direction: column; /* 左側を上下分割 */
}

.company-main__horizontal-image-conf{
  position: relative;
  display: inline-block;
  width: min(100%, 350px)
}

.company-main__horizontal-image-conf img{
  display: block;     /* 余白(ベースライン)防止 */
  position: relative;
  width: min(100%, 350px);
  height: min(100%, 350px);
}

.company-main__list {
  font-size: 14px;
  padding: 5px 30px;
}

@media screen and (min-width: 960px) {
  .company-main__list {
    font-size: 16px;
    padding: 5px 30px;
  }
}

.company-main__list::before {
  content: "・";
  position: absolute;
  left: 0;
  padding: 0 10px;
}

.company-main__pr-center {
  display: flex;
  margin: 0 auto;
  margin-top: 30px;
  margin-bottom: 20px;
}

@media screen and (min-width: 960px) {
  .company-main__pr-center {
    display: flex;
    margin: 0 auto;
    margin-top: 30px;
    margin-bottom: 30px;
  }
}

.company-main__pr-title {
  color: black;
  font-size: 22px;
  font-weight: bold;
  width: min(100%, 100px);
  margin: 0 auto;
}

@media screen and (min-width: 960px) {
  .company-main__pr-title {
    color: black;
    font-size: 22px;
    font-weight: bold;
    width: min(100%, 100px);
    margin: 0 auto;
  }
}

.company-main__pr-box{
  border: 1px solid green;
  background-color: white;
  padding: 20px 5px;
  width: min(100%, 350px);
  min-height: 450px;
  margin: 0 auto;
}

@media screen and (min-width: 960px) {
  .company-main__pr-box{
    border: 1px solid green;
    background-color: white;
    padding: 20px;
    width: min(100%, 600px);
    min-height: 350px;
    margin: 0 auto;
  }
}

.company-main__pr-list {
  line-height: normal;
  margin-left: 10px;
}

/* widthが960以上の場合、横に表示 */
@media screen and (min-width: 960px) {
  .company-main__pr-list {
    line-height: normal;
    display: flex;
    margin-left: 30px;
    gap: 50px; /* 左右の間隔*/
  }
}

.company-main__pr-text {
  color: black;
  font-size: 16px;
}

.company-main__pr-separate {
  border-bottom: 1px solid #888888;
  margin-top: 40px;
  margin-bottom: 20px;
}

.company-main__pr-space {
  border-bottom: 1px none #888888;
  margin-top: 20px;
  margin-bottom: 20px;
}


.company-main__map-base {
  position: relative;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
}

.company-main__map-base iframe {
  width: 350px;
  height: 450px;
}

@media screen and (min-width: 960px) {
  .company-main__map-base iframe {
    width: 900px;
    height: 450px;
  }
}

.company-main__map-title {
  position: absolute;
  background: rgba(255,255,255,0.9);
  top: 12px;
  left: 10px;
  padding: 6px 20px;
  font-weight: bold;
  z-index: 10;
}


/* お知らせページ用 */
.news__main {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.news__list {
  display: flex;
  margin-top: 30px;
  margin: 0 auto;
  text-align: center;
  padding: 0 100px;
}

@media screen and (min-width: 960px) {
  .news__list {
    display: flex;
    margin-top: 30px;
    margin: 0 auto;
  }
}

.news__topic {
  justify-content: center;
  width: min(100%, 330px);
  margin-top: 50px;
  align-items: center;

  border-bottom: 1px solid #cccccc;
}

/* widthが960以上の場合、横に表示 */
@media screen and (min-width: 960px) {
  .news__topic {
    display: inline-flex;
    justify-content: center;
    width: min(100%, 1300px);
    margin-top: 50px;

    border-bottom: 1px solid #cccccc;
  }
}


.news__topic img{
  display: block;     /* 余白(ベースライン)防止 */
  position: relative;
  max-width: 100%;
  height: auto;
}

.news__list-update {
  color: black;
  font-size: 12px;
  line-height: normal;
  padding: 0 10px;
}

.news__list-title {
  color: black;
  font-size: 26px;
  line-height: normal;
}

.news__list-text {
  color: black;
  font-size: 16px;
  margin-top: 30px;
  line-height: normal;
}



/* postページ用 */
.post__main {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.post__list {
  margin-top: 30px;
  margin-left: 5%;
  width: min(100%, 330px);
}

@media screen and (min-width: 960px) {
  .post__list {
    margin-top: 30px;
    margin: 0 auto;
    width: min(100%, 1000px);
  }
}

.post__topic {
  display: inline-block;
  justify-content: center;
  width: min(100%, 330px);
  margin-top: 30px;
  gap: 100px; /* テキストと画像の間隔*/

  border: 1px solid #cccccc;
}

@media screen and (min-width: 960px) {
  .post__topic {
    display: inline-block;
    justify-content: center;
    width: min(100%, 900px);
    min-height: 600px;
    margin-top: 50px;
    padding: 0 10px;
    gap: 100px; /* テキストと画像の間隔*/

    border: 1px solid #cccccc;
  }
}

.post__list-image-conf {
  width: min(100%, 250px);
  height: min(100%, 220px);
  margin-left: 50px;
}


.post__list-image-conf img{
  display: block;     /* 余白(ベースライン)防止 */
  position: relative;
  max-width: 100%;
  height: auto;
}

@media screen and (min-width: 960px) {
  .post__list-image-conf img{
    display: block;     /* 余白(ベースライン)防止 */
    position: relative;
    max-width: 100%;
    height: auto;
  }
}

.post__list-conf {
  flex: 1;
  flex-direction: column; /* 上下分割 */
  margin-top: 50px;
  margin-left: 20px;
}

@media screen and (min-width: 960px) {
  .post__list-conf {
    flex: 1;
    flex-direction: column; /* 上下分割 */
    margin-top: 50px;
    margin-left: 50px;
  }
}

.post__list-update {
  color: black;
  font-size: 14px;
  line-height: normal;
}

.post__list-title {
  color: black;
  font-weight: bold;
  font-size: 32px;
  margin-top: 30px;
  line-height: normal;
}

.post__list-text {
  color: black;
  font-size: 16px;
  margin-top: 30px;
  line-height: normal;
}

/* postページの画像拡大用(背景オーバーレイ) */
.post__modal{
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.7);
  display: none;
  place-items: center;
  z-index: 9999;
  padding: 24px;
}

/* 表示時 */
.post__modal.is-open{
  display: grid;
}

.post__modal-base {
  position: relative; /* ボタンの基準 */
  display: inline-block;
}

.post__modal-close{
  position: absolute;
  top: -30px;
  left: -20px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  color: black;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.post__modal-img{
  max-width: min(92vw, 1100px);
  max-height: 88svh;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
  background: #fff;
  padding: 12px;
  border-radius: 10px;
}

/* クリックできる感 */
.post__popup-img{
  cursor: zoom-in;
}



/* お問い合わせページ用 */
.contact-main {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-main__base {
  text-align: left;
}

@media screen and (min-width: 960px) {
  .contact-main__base {
    text-align: center;
  }
}

.contact-main__base-space {
  margin-top: 30px;
  margin-bottom: 30px;
  margin-left: 30px;
}

@media screen and (min-width: 960px) {
  .contact-main__base-space {
    margin-top: 30px;
    margin-bottom: 30px;
    margin-left: 0px;
  }
}

.contact-main__title {
  color: black;
  font-size: 36px;
  font-weight: bold;
}

.contact-main__text {
  color: black;
  font-size: 16px;
  line-height: normal;
}

.contact-main__comment {
  color: black;
  font-size: 14px;
  line-height: normal;

  margin-top: 10px;
}

.contact-main__link-text {
  color: black;
  font-size: 16px;
  line-height: normal;
  text-decoration: underline;
}

.contact-main__box {
  display: grid;
  align-items: center;
  margin: auto;
  padding: 20px;
  width: min(100%, 330px); /* 幅を揃える */
  border: 1px solid #cccccc;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2); /* 影 */
}

@media screen and (min-width: 960px) {
  .contact-main__box {
    display: grid;
    align-items: center;
    margin: 0 auto;
    padding: 20px;
    width: min(100%, 850px); /* 幅を揃える */
    border: 1px solid #cccccc;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2); /* 影 */
  }
}

/* ハニーポット用 */
.contact-main__form-field {
  display: none;
}

.contact-main__form {
  display: flex;
  flex-direction: column;
  gap: 16px;             /* 各項目の間隔 */
}

.contact-main__form-conf {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* ← 左寄せ */
  gap: 16px;
}

.contact-main__form-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* ← 左寄せ */
  width: 100%;
  gap: 6px;
}

.contact-main__form-label input {
  padding: 8px;
  font-size: 16px;
  width: min(100%, 300px);
}

@media screen and (min-width: 960px) {
  .contact-main__form-label  input {
    padding: 8px;
    font-size: 16px;
    width: min(100%, 800px);
  }
}

.contact-main__form-label  textarea {
  padding: 8px;
  font-size: 16px;
  width: min(100%, 320px);
}

@media screen and (min-width: 960px) {
  .contact-main__form-label textarea {
    padding: 60px 0;
    font-size: 16px;
    width: min(100%, 800px);
  }
}

.contact-main__button {
  align-items: center;
}

.contact-main__button button {
  padding: 12px;
  background: green;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  justify-content: center;
}

.contact-main__button button:hover {
  opacity: 0.85;
}



/* プライバシーポリシーページ用 */
.policy-main__center {
  position: relative;
  margin: 0 auto;
  width: min(100%, 350px);
}

@media screen and (min-width: 960px) {
  .policy-main__center {
    position: relative;
    margin: 0 auto;
    width: min(100%, 850px);
  }
}

.policy-main__title {
  color: black;
  font-size: 16px;
  font-weight: bold;
}

@media screen and (min-width: 960px) {
  .policy-main__title {
    color: black;
    font-size: 18px;
    font-weight: bold;
  }
}

.policy-main__text {
  color: black;
  font-size: 14px;
  padding: 5px;
  line-height: normal;
}

.policy-main__list {
  color: black;
  font-size: 14px;
  padding: 5px 30px;
  line-height: normal;
}

.policy-main__list::before {
  content: "・";
}

.policy-main__paragraph {
  margin-left: 5%;
}



/* topに戻るボタン用 */
.Btn-backToTop {
  position: fixed;
  right: 15px;
  bottom: 15px;

  width: 50px;
  height: 50px;
  border: none;
  border-radius: 8px;

  background: #00b370;
  color: #fff;
  font-size: 22px;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  /* 見えない状態にする */
  opacity: 0;
  pointer-events: none;

  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
  transition: opacity 0.3s ease;

  z-index: 1000;
}

@media screen and (min-width: 960px) {
  .Btn-backToTop {
    position: fixed;
    right: 15px;
    bottom: 15px;

    width: 50px;
    height: 50px;
    border: none;
    border-radius: 8px;

    background: #00b370;
    color: #fff;
    font-size: 22px;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    /* 見えない状態にする */
    opacity: 0;
    pointer-events: none;

    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    transition: opacity 0.3s ease;

    z-index: 1000;
  }
}

/* 表示状態 */
.Btn-backToTop.show {
  opacity: 1;
  pointer-events: auto;
}

.Btn-backToTop:hover {
  opacity: 0.9;
}



/* お問い合わせ後リダイレクトページ用 */
.con-thank__center {
  align-items: unset;     /* 縦中央*/
  justify-content: center; /* 横中央*/
  margin: 0px auto;
}

@media screen and (min-width: 960px) {
  .con-thank__center {
    align-items: center;     /* 縦中央*/
    justify-content: center; /* 横中央*/
    margin: auto;
  }
}

