
body {
  max-width: 1920px;
  margin: 0 auto;
  background-color: #fff;
  font-family: 'ヒラギノ角ゴ ProN W3', 'Hiragino Kaku Gothic ProN', sans-serif;
  color: #374453;
  box-sizing: border-box;
  overflow-x: hidden;
}
/***,*:before,*:after {
    outline: 2px solid red!important;
}**/
img {
  display: block;
  width: 100%;
  height: auto;
}

.all-content-wrapper{
  max-width: 1440px;
  margin: 0 auto;
}

@font-face{
  font-family: "tegaki";
  src: url(../fonts/beautiful\ font.ttf) format("truetype");
}


/*ヘッダー*/
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  max-width: 1920px;
  max-height: 114px;
  padding-top: 1.594rem;
  padding-bottom: 1.594rem;
  background-color: rgb(255, 255, 255,0.98);
  box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, .19);
  z-index: 500;
}
.header-inner {
  max-width: 1440px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
  padding-left: 3.313rem;
  padding-right: 3.313rem;
}

.logo {
  max-width: 105.92px;
}
.logo a {
  display: inline-block; /* 画像の場合、不要な余白を防ぐ */
}

@media (max-width: 899px){

  .site-header{
    position: fixed;
    width: 100%;
    max-height: 60px;
    padding: 0.781rem 0;
    z-index: 100;
  }
  .header-inner{
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  .logo{
    max-width: 58.84px;
    z-index: 100;
  }
}

.header-nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  font-size: 1.0625rem;
  font-weight: bold;
}
.header-nav li {
  margin-left: 1.313rem;
}
.header-nav li:first-child {
  margin-left: 0;
}


/* --- ナビゲーションのアンダーライン制御 --- */

/* 1. アンダーライン（::after）の基本形を定義 */
.header-nav a::after {
  content: ''; 
  display: block; 
  width: 1.8rem; 
  height: 3px; 
  background-color: #178352; 
  position: absolute; 
  left: 50%; 
  transform: translateX(-50%); 
  bottom: 0;

  /* ★キーポイント：デフォルトでは透明にして非表示 */
  opacity: 0;
  transition: opacity 0.2s;
}

/* 2. activeクラスが付いているリンクのアンダーラインだけを常に表示 */
.header-nav a.active::after {
  opacity: 1; /* ★activeクラスが付いたら不透明にして表示 */
}


@media(max-width: 899px){
  .header-nav a.active::after{
    display: none;
  }
}

.download-documentation-btn{ 
  margin-left: 2.5rem;
  background-color: #168352;
  color: #fff;
  border-radius: 5px;
  box-shadow: 0px 1px 6px 0px rgba(0, 0, 0, .16);
}
.download-documentation-btn a{
  display: block;
  padding: 0.706em 0.647em;
}
.download-documentation-btn a::before {
  content: "";
  display: inline-block;
  width: 1.471em;
  height: 1.471em;
  max-width: 25px;
  max-height: 25px;
  background-image: url(../img/icon_01@2x.png);
  background-repeat: no-repeat;
  background-size: contain;
  margin-right: 0.471em;
  vertical-align: middle;
}

.header-nav a {
  position: relative;
  text-decoration: none;
  padding-bottom: 0.524em;
}
.header-nav .is-active a::after {
  content: "";
  display: block;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1.471em;
  height: 2px;
  background-color: #178352;
}

/* 親liを、ドロップダウン(submenu)の配置の基準にする */
.header-nav .has-submenu {
  position: relative;
}
.header-nav .has-submenu > a{
  pointer-events: none; /* ★キーポイント1：クリックやホバーなどのマウス操作を一切無効にする */
  cursor: default; 
}

/* ドロップダウンメニュー本体のスタイル */
.submenu {
  background-color: #178352; /* ご指定の背景色 */
  border-radius: 1.875rem;
  padding: 2.188rem 3.125rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);

  /* 位置の指定 */
  position: absolute; /* 親liを基準に絶対配置 */
  top: 2.5rem; /* 親liのすぐ下に配置 */
  left: -11rem;
  transform: translateX(-50%); /* 中央揃えにする */
  width: max-content; /* 中身の幅に合わせる */

  /* ★★★ 表示/非表示の制御 ★★★ */
  opacity: 0; /* 透明にする */
  visibility: hidden; /* 操作もできなくする */
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
}

/* ★★★ ホバーした時の処理 ★★★ */
/* .has-submenuにホバーしたら、その子要素の.submenuを表示させる */
.header-nav .has-submenu:hover > .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0); /* 元の位置に戻す */
}

/* ドロップダウンの中のリスト */
.submenu-list {
  display: flex; /* ★3つのリンクを横並びにする */
  flex-direction: columns;
  margin: 0;
  padding: 0;
  list-style: none;
}

.submenu-list a {
  display: block;
  text-decoration: none;
  color: #FFFFFF;
  text-align: center;
}

.submenu-list img {
  display: block;
  width: 100%; /* 画像の幅を調整 */
  height: auto;
  max-width: 224px;
  margin-bottom: 0.5rem;
}

.submenu-item-title {
  display: flex; /* タイトルと矢印を横並びにする */
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* 「角っこ矢印」をCSSで作成 */
.submenu-item-title::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-top: 2px solid #FFFFFF;
  border-right: 2px solid #FFFFFF;
  transform: rotate(45deg);
  margin-left: 8px;
}

.hamburger-btn,
.nav-close-btn,
.nav-footer,
.nav-overlay {
  display: none;
}

@media (max-width: 899px){

  .site-header{
    position: fixed;
    border-bottom: 1px solid #E5E9ED;
  }

  .header-inner{
    width: 100%;
    display: block;
  }


  .hamburger {
  position: fixed;
  top: 15px;
  right: 20px;
  width: 30px;
  cursor: pointer;
  z-index: 20;
}
.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #178352;
  border-radius: 5px;
  margin: 5px 0;
  transition: 0.4s;
}
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

  .header-nav{
    position: fixed;
    top:50px;
    right: -100%;
    max-width: 100%;
    width: 400px;
    height: 459px;
    background-color: #fff;
    transition: right 0.3s ease;
  }
  .header-nav.open{
    right: 0;
  }
      
  .header-nav ul{
    flex-direction: column;
    padding: 1.25rem;
    padding-top: 0.5rem;
  }

  .header-nav li{
    width: 100%;
    margin-left: 0;
    font-size: 0.875rem;
    font-weight: 600;
    border-bottom: 1px solid #E5E9ED;
  }
  .header-nav li a{
    display: block;
    padding: 1.594rem 0;
  }


  .header-nav li:last-child a{
    padding: 1.125rem 0;
  }

  .header-nav .submenu {
    position: static; /* ★重要：絶対配置を解除し、通常の流れに戻す */
    opacity: 1;       /* 透明を解除 */
    visibility: visible; /* 非表示を解除 */
    transform: none;     /* transformをリセット */
    transition: none;    /* アニメーションを解除 */
    
    background: none;    /* 背景色をなくす */
    box-shadow: none;    /* 影をなくす */
    padding: 0;          /* 内側の余白をなくす */
    border-radius: 0;
      /* 「サービス紹介」との間に少し隙間を設ける */
    width: 100%;
    margin-top: -0.5rem;
    margin-bottom: 1.594rem;
    margin-left: 3.125rem;
  }
  .header-nav .has-submenu:hover > .submenu {
    transform: none;
  }
  .submenu-list img,
  .submenu-item-title::after { 
    display: none;
  }
  .submenu-item-title{
    justify-content: flex-start;
    color: #374453;
  }
  .submenu-list{
    gap: 0.8rem;
  }
  .submenu-list li:last-child {
    margin-bottom: 0;
    padding: 0;
  }
  .header-nav .has-submenu > .submenu .submenu-list{
    padding: 0;
  }
  .header-nav .has-submenu > .submenu .submenu-list li a{
    display: block;
    width: 100%;
    padding: 0;
  }
  .header-nav a {
    padding-bottom: 0;
  }
 
  .submenu-list li{
    position: relative;
    padding: 0;
    border: none;
    text-align: left;
  }
  .submenu-list li::before{
    content: "";
    position: absolute;
    left: -6%;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background-color: #178352;
    border-radius: 50%;
  }

  .download-documentation-btn{
    position: relative;
    text-align: center;
    margin-left: 0;
    margin-top: 1.906rem;
  }

  .download-documentation-btn a{
    display: block;
    
  }
  .download-documentation-btn::before{
    width: 21px;
    height: 21px;
  }
  .download-documentation-btn::after{
    content: "";
    position: absolute;
    display: block;
    width: 20px;
    height: 20px;
    background-image: url(../img/dl-arrow@2x.png);
    background-repeat: no-repeat;
    background-size: contain;
    top: 50%;
    transform: translateY(-50%);
    right: 4%;
  }
}



/*フッター*/
.site-footer{
  padding-top: 3.781rem;
  padding-bottom: 2.188rem;
  background-image: url(../img/footer-bg-image@2x.jpg);
  background-repeat: no-repeat;
  background-size: cover;
}
.site-footer .logo{
  margin: 0 auto;
}
.footer-text{
  margin-top: 1.906rem;
  margin-bottom: 1.563rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
  text-align: center;
}

.footer-contact-btn{
  position: relative;
  display: block;
  width: 16.313rem;
  margin: 0 auto;
  padding: 0.824em 0 0.824em 1.176em;
  font-size: 1.063rem;
  font-weight: bold;
  color: #fff;
  text-align: left;
  border-radius: 0.313rem;
  background-color: #168352;
  box-shadow: 0px 1px 6px 0px rgba(0, 0, 0, 0.16);
}
.footer-contact-btn::after{
  content: "";
  position: absolute;
  display: block;
  width: 0.5em;
  height: 0.5em;
  border-top: 0.15em solid #fff;
  border-right: 0.15em solid #fff;
  transform: rotate(45deg) translateY(-50%);
  border-radius: 1px;
  top: 48%;
  right: 1.25em;
}

small{
  display: block;
  margin: 3.75rem auto 0;
  font-size: 1.125rem;
  font-weight: 300;
  text-align: center;
  color: #fff;
}

@media (max-width: 899px){
  .site-footer{
    padding-top: 0.719rem;
    padding-bottom: 0.625rem;
    background-image: url(../img/footer-bg-image_sp@2x.jpg);
  }

  .footer-text{
    font-size: 0.75rem;
    font-weight: 300;
    margin-top: 0.656rem;
    margin-bottom: 0;
  }

  .footer-text .text-wrap{
    display: block;
  }
  .footer-text .comma-remove{
    display: none;
  }

  .footer-contact-btn{
    display: none;
  }

  small{
    font-size: 0.688rem;
    margin-top: 1.563rem;
    margin-bottom: 0;
  }
}





/**汎用ページ**/
.content_inner{
  position: relative;
  padding: 13.375rem 0 7.5rem;
  color: #374453;
  line-height: 1;
}

.generic-page-top-image{
  position: absolute;
  max-width: 842px;
  top: 0;
  right: 0;
}

.page-title{
  font-size: 1.875rem;
  font-weight: 800;
  color: #178352;
  text-align: center;
}

/**お問い合わせフォーム**/
.form-text{
  width: 100%;
  max-width: 600px;
  margin: 3.75rem auto 3.125rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 2.188;
}
.form-text p:first-child{
  margin-bottom: 1.875em;
}

.line{
  width: 1106px;
  margin: 0 auto;
  border-top: 0.5px solid #707070;
}


@media(max-width: 899px){
  .content_inner{
    padding: 6.875rem 5.33% 4.375rem;
  }

  .generic-page-top-image{
    max-width: 289px;
  }

  .page-title{
    font-size: 1.25rem;
  }

  .form-text{
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 2.143;
    margin-bottom: 2.188rem;
  }
  .form-text p:last-child{
    font-size: 0.75rem;
    line-height: 2;
  }

  .line{
    max-width: 325px;
  }
}


.content_inner form{
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
margin-top: 3.156rem;
}

/* フォームグループ */
.form-group {
    margin-bottom: 1.563rem;
}
.form-group:last-of-type{
  margin-bottom: 3.125rem;
}


.form-group label {
    display: block;
    margin-bottom: 0.625em;
    font-size: 1rem;
    font-weight: 600;
    color: #374453;
    line-height: 1;
}

/* ラベルのバッジ（必須・任意） */
.label-required {
    color: #FF0000;
    font-size: 1rem;
    font-weight: 500;
    margin-left: 0;
    vertical-align: top;
}
.form-group:last-of-type .label-required{
  margin-left: 0.5em;
}

/* 入力フィールドとテキストエリア */
input[type="text"],
input[type="email"],
input[type="url"],
textarea {
    width: 100%;
    height: 35px;
    padding: 0.433em 1em;
    border: 2px solid #E0E0E0;
    background-color: #F6F6F6;
    border-radius: 3px;
    box-sizing: border-box;
    font-size: 0.938rem;
    font-weight: 500;
    line-height: 1;
}

input::placeholder,
textarea::placeholder {
    color: #bbb;
}

.content_inner textarea {
    resize: none;
    height: 160px;
}


/* 送信ボタン */
.content_inner .submit-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 600px;
    font-size: 1.063em;
    line-height: 1.17647;
    color: #fff;
    font-weight: bold;
    padding-top: 0.938em;
    padding-bottom: 0.938em;
    background-color: #187D4F;
    border-radius: 10rem;
    transition: all 0.3s ease;
    grid-area: button;
    margin-top: 0;
}
.content_inner .submit-btn::after{
    content: "";
    position: absolute;
    display: inline-block;
    width: 1.938em;
    height: 1.938em;
    right: 0.813em;
    background-image: url(../img/detail-btn_arrow@2x.png);
    background-repeat: no-repeat;
    background-size: contain;
}
.submit-btn:hover {
    opacity: 0.9;
}

.footer-note{
    margin-top: 0.938rem;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.66;
}

@media(max-width: 899px){
  .form-group label{
    font-size: 0.875rem;
    font-weight: 500;
  }

  .form-group{
    margin-bottom: 1.563rem;
  }

  .content_inner textarea {
    resize: none;
    height: 120px;
}

  .submit-btn{
    font-size: 1.063rem;
  }
}



.document-text{
  width: 100%;
  max-width: 600px;
  margin: 2.188rem auto 0;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  line-height: 2.188;
}
.document-text .text-wrap{
    display: block;
  }

.document-text a{
  color: #02A0E6;
  text-decoration: underline;
}

.document_image{
  position: absolute;
  max-width: 197px;
  bottom: -0.2%;
  right: 15%;
}

@media(max-width: 899px){
  


  .document-text{
  font-size: 0.875rem;
    font-weight: 500;
    line-height: 2.143;
    margin-bottom: 0;
    text-align: left;
  }
  .document-text .text-wrap{
    display: inline;
  }

  .document_image{
    position: static;
    max-width: 189px;
    margin: 0 auto;
    margin-top: 2.188rem;
  }
}





/*個人情報の取り扱いについて*/

.privacy-policy_lead{
  width: 600px;
  margin: 0 auto;
  margin-top: 3.75rem;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.875;
}

.privacy-policy_list{
  width: 600px;
  margin: 0 auto;
  margin-top: 6.25rem;
}

.privacy-policy_list h4{
  font-size: 1.125rem;
  font-weight: 800;
  margin-bottom: 1.267em;
}

.privacy-policy_list p{
  line-height: 1.875;
  margin-bottom: 3.125em;
}

.privacy-policy_list p a{
    color: #02A0E6;
  }

@media(max-width: 899px){
  .privacy-policy_lead{
    width: 335px;
    font-size: 0.75rem;
  }

  .privacy-policy_list{
    width: 335px;
    margin-top: 3.125rem;
  }

  .privacy-policy_list h4{
    font-size: 0.875rem;
  }

  .privacy-policy_list p{
    font-size: 0.75rem;
    margin-bottom: 4.167em;
  }
}





