html {
    scroll-behavior: smooth;
    /* font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif; */
    /* font-family: sans-serif; */
    font-family:"MS Pゴシック",sans-serif;
}

h2 {
    /*セクション見出し*/
    font-size: min(7vw, 3rem);
    font-weight: bold;
}

h3 {
    /*aboutusの最初の文字*/
    font-size: min(4.5vw, 2.5rem);
    font-weight: bold;
    color: #181b50;
}

h4 {
    /*セクション内見出し1*/
    font-size: min(4.8vw, 2.3rem);
    font-weight: bold;
}

h5 {
    /*セクション内見出し2*/
    font-size: min(4.0vw, 2rem);
    font-weight: bold;
}

h6 {
    /* 経営理念 */
    font-size: min(3.8vw, 1.8rem);
    font-weight: bold;
    line-height: 3vw;
}

p {
    font-size: min(3.6vw, 1.25rem);
    line-height: 1.5;
    /* font-size: min(1.25vw, 1.25rem); */
}

a {
    cursor: pointer;
}

#translucent {
    z-index: 100;
    display: none;
    background-color: rgba(0,0,0,0.5);
    width: 100%;
    height: 100%;
    position: fixed;
}

#translucent.checked {
    display: flex;
}

.fancy-undeline {
    display: inline;
    background-image: linear-gradient(120deg, #2193b0,#6dd5ed 100%);
    background-repeat: no-repeat;
    background-size:100% 0.2em;
    background-position: 0% 90%;
    transition: background-size 0.25s ease-in;
  }

  /* .fancy-undeline:hover {
    background-size: 100% 88% !important;
  } */


:root {
    --scrollbar_width: calc(100vw - 100%);
    --scrollbar_height: calc(100vh - 100%);
    --buttonworks_color: rgba(48, 0, 100, 0.985);
    --buttonworks_hovercolor: rgb(255, 255, 255);
}

.head-image {
    background-image: url("../img/headimage.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center top;
    /* スクロールバーの長さを引きたい */
    /* height: calc(100%); */
    height: calc(110vh);
    width: calc(100vw - var(--scrollbar_width));
    background-attachment: fixed;
    /* background-color: rgba(147, 223, 255, 0.1);
    background-blend-mode: overlay; */
    /* object-fit: cover; */
}

/* .head-image::before {
    opacity: 0.9;
    border-style: solid;
    border-color: transparent transparent transparent white;
    border-width: 80vh 0 0 85vw;
    bottom: 0;
    content: "";
    height: 0;
    position: absolute;

} */

/* .head-image::after{
    opacity: 0.4;
    border-style: solid;
    border-color: transparent transparent transparent rgb(177, 221, 240);
    border-width: 80vh 0 0 46vw;
    bottom: 0;
    content: "";
    height: 0;
    position: absolute;
}  */

header {
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    display: flex;
    width: 100%;
    height: min(15vw, 6.4rem);
    /* height: 115px; */
    background-color: rgba(11, 0, 61, 0.8);
    align-items: left;
    z-index: 10000;
}

#fixed-header {
    position: fixed;
    top: -6.4rem;
    box-sizing: border-box;
    transition: .5s;
    /* 印刷のときは隠れてて！ */
    /* display: none; */
}

#fixed-header.is-show {
    top: 0;
}

.title-logo {
    color: rgb(231, 248, 255);
}

.title-logo.checked {
    pointer-events: none;
    color: rgba(231, 248, 255, 0.5);
}

.title-logo img {
    height: min(7vw, 3.5rem);
    padding-top: min(0.5vw, 0.5rem);
    padding-left: min(5vw, 1rem);
    /* height: 70px;
    padding-top: 10px; */
}

#titlelogo-img.checked{
    opacity: 0.5;
}

.title-logo p {
    margin-top: min(1vw, 1rem);
    padding-left: min(5vw, 1rem);
    /* margin-top: 1rem; */
    /* color: rgb(231, 248, 255); */
    font-family: 'Courier New', Courier, monospace;
    font-size: min(2vw, 0.8rem);
    /* font-size: 0.8rem; */
}

.menu {
    display: none;
}

.nav_content {
    display: none;
}

/* チェックボックスを非表示にする */
.drawer_hidden {
    display: none; 
}

.nav {
    margin-left: min(20vw, 20rem);
    /* margin-left: 20%; */
}

.menu-group {
    display: flex;
}

.menu-item {
    list-style: none;
    padding: min(0.5vw, 0.5rem);
    margin-right: min(3vw, 1rem);
    /* margin-right: 20px; */
    /* padding: 10px;
    margin-right: 20px; */
    font-weight: bold;
}

.menu-item a {
    position: relative;
    text-decoration: none;
    color: rgb(231, 248, 255);
    display: inline-block;
    text-align: center;
    width: min(9vw, 9rem);
    height: min(2.5vw, 2.5rem);
    /* width: 110px;
    height: 50px; */
    padding-top: min(1vw, 1rem);
    font-size: min(2vw, 1.3rem);
    transition: .3s;
}

.menu-item a:hover {
    color: orange;
}

/* 下線のスタイル */
li a::after {
    background-color: orange; /* 下線の色 */
    bottom: min(-8px, -1.6vw); /* 要素の下端からの距離 */
    content: ""; /* 要素に内容を追加 */
    height: min(2px, 0.2vw); /* 下線の高さ */
    left: 0; /* 要素の左端からの距離 */
    position: absolute; /* 絶対位置指定 */
    /*transform: scale(0, 1);  /*下線を横方向に0倍、縦方向に1倍に変形（非表示） */
    /*transform-origin: right top; /* 変形の原点を右上に指定 */
    transition: .3s; /* 変形をアニメーション化 */
    width: 100%; /* 要素の幅 */
    opacity: 0;
  }
  /* リンクにホバーした際の下線の表示 */
  li a:hover::after {
    opacity: 1;
    bottom: min(-4px, -0.8vw);
    /*transform-origin: left top; /* 変形の原点を左上に指定 */
    /*transform: scale(1, 1); /* 下線を横方向に1倍、縦方向に1倍に変形（表示） */
  }

.slogan {
    width: 70%;
    position: absolute;
    margin-top: max(-500px, -60vh);
    margin-left: 15vw;
    /* margin-right: 20%; */
    display: flex;
    /* flex-flow: column; */
    justify-content: center;
    z-index: 0;
    text-shadow: 1px 1px 2px gray;
}

.slogan h1 {
    font-size: min(5rem, 5vw);
    color: rgb(21, 0, 80);
    line-height: 1.5;
    /* font-weight: bold; */
    font-family:"Yu Gothic", "游ゴシック", YuGothic, "游ゴシック体";
    opacity: 0;
}

.slogan_companyname {
    width: 70%;
    position: absolute;
    margin-top: max(-300px, -50vh);
    margin-left: 15vw;
    /* margin-right: 20%; */
    display: flex;
    /* flex-flow: column; */
    justify-content: center;
    z-index: 0;
    text-shadow: 1px 1px 2px gray;
}

.slogan_companyname h5{
    font-size: min(2rem, 3vw);
    font-weight: normal;
    color: rgb(21, 0, 80);
    font-family:"Yu Gothic", "游ゴシック", YuGothic, "游ゴシック体";
    opacity: 0;
}

#pageaboutus{
    font-size: min(2rem, 3vw);
    margin-top: min(150px, 15vh);
    cursor: pointer;
    width: min(80px, 10vw);
    height: min(80px, 10vw);
    border-radius: 50%;
    background: #c5d6d8;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: .3s;
    opacity: 0;
}

#pageaboutus:active{
    color: white;
    background-color: #85f3ff;
}

.pagetop {
    cursor: pointer;
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: .3s;
    background: #c5d6d8;
    opacity: 0;
    z-index: 500;
}

.pagetop:active {
    color: white;
    background-color: #85f3ff;
}

section {
    margin-top: 1px;
    padding-top: 1px;
}

.contents {
    width: 80%;
    margin: auto;
    display: flexbox;
    flex-flow: column;
    justify-content: center;
}

.subtitle {
    width: min(50vw, 25rem);
    margin: min(10vw, 50px) auto min(10vw, 50px);
    display: block;
    text-align: center;
    /* border-bottom: min(0.2vw, 0.2rem) solid #000000; */
}

.subtitle h2 {
    position: relative;
    width: min(50vw, 25rem);
    display: inline;
}

.underline-before {

	background-color: black;
	/*左から、カラー（始点と終点それぞれ同じものを指定）、position / サイズ横縦 繰り返しの有無 */

    transition: 1.5s;

	text-decoration: none;
	/*テキストの装飾の設定 */
    width: 0%;
    height: 2px;
    margin-top: min(10px, 5vw);
}

.underline-after {
	width: 100%;
  /* 変化後のスタイル。横サイズを0から100%に変えることで指定の文字列に下線を引く */
}

#aboutus {
    width: 100%;
    margin: auto;

    display: flexbox;
    flex-flow: column;
    justify-content: center;
}

.br {
    display: none;
}

.br959 {
    display: none;
}

.br780 {
    display: none;
}

.content_aboutus_p {
    text-align: center;
    opacity: 0;
}



.content_aboutus_p h3 {
    margin-top: min(10vw, 5rem);
}

.content_aboutus_p_p {
    font-weight: bold;
    padding-top: min(10vw, 4rem);
    /* font-size: min(1.25vw, 1.25rem); */
}

.content_aboutus_p_p p {
    padding-bottom: min(10vw, 2rem);
}

#aboutus_p2 {
    padding-bottom: min(5vw, 1rem);
}

.content_aboutus_img {
    /* margin-top: 50px;
    margin-bottom: 100px; */
    margin-top: min(5vw, 2.5rem);
    margin-bottom: min(10vw, 5rem);
    justify-content: center;
    display: flex;
    align-items: center;
}

.content_aboutus_up_img {
    margin-bottom: max(-12.5rem, -18vw);
    /* opacity: 0; */
}

.content_aboutus_down_img {
    display: flex;
    width: min(60vw, 40rem);
    margin-top: max(-11.5rem, -15vw);
    /* margin-top: min(-11.5vw, -11.5rem); */
    /* width: 800px;
    margin-top: -230px; */
}

.aboutus_mainimg {
    /* background-color: #000000; */
    width: min(60vw, 40rem);
    height: min(30vw, 20rem);
    /* width: 800px;
    height: 400px; */
    text-align: center;
    justify-content: center;
    margin: 0 auto;
    display: flex;
    opacity: 1;
}

.aboutus_mainimg img {
    width: min(20vw, 15rem);
    height: min(20vw, 15rem);
    margin-top: min(1.25vw, 1.25rem);
    /* width: 280px;
    height: 280px;
    margin-top: 25px; */
    opacity: 0;
}

.aboutus_icon {
    /* background-color: #000000; */
    width: min(25vw, 18rem);
    height: min(25vw, 18rem);
    /* width: 300px;
    height: 300px; */
    text-align: center;
    border: solid min(0.4vw, 0.4rem) rgba(11, 0, 61, 0.8);
    border-radius: 50%;
    opacity: 0;
    object-fit: cover;
}

.aboutus_icon img {
    width: min(23vw, 16rem);
    height: min(23vw, 16rem);
    /* margin-top: min(1.8vw, 1.8rem); */
    /* margin-top: 50px; */
    align-items: center;
    /* opacity: 0; */
}

.line {
    width: min(30vw, 30rem);
    height: min(0.5vw, 0.5rem);
    background-color: orange;
    opacity: 0;
    /* transition: 1s;
    transition: background 0.3s ease 0.5s;
    background: linear-gradient(90deg, orange 0%, orange 00%, rgba(0,0,0,0) 00%, rgba(0,0,0,0) 100%); */
}

.button_service {
    margin: min(50px, 5vw) auto;
    /* margin: 50px auto ; */
}

#works_1 {
    margin-top: max(-50px, -5vw);
    padding-top: min(50px, 5vw);
    /* margin-top: -50px;
    padding-top: 50px; */
}

#works_2 {
    margin-top: max(-50px, -5vw);
    padding-top: min(50px, 5vw);
}

.content_business {
    justify-content: center;
}

.business_headding {
    text-align: center;
    margin-bottom: min(5vw, 2.5rem);
    /* margin-bottom: 50px; */
    font-weight: bold;
}

#business_headding_2 {
    margin-top: min(10vw, 5rem);
    margin-bottom: min(10vw, 5rem);
    /* margin-top: 100px;
    margin-bottom: 100px; */
}

.service_content {
    width: min(85vw, 1000px);
    /* width: 1200px; */
    margin: auto;
    /* ↓もし一画面に表示するならのイメージ */
    /* display: flex;
    justify-content: space-between;
    flex-wrap: wrap; */
    overflow-wrap: anywhere; /* 収まらない場合に折り返す */
    word-break: auto-phrase;
    line-break: strict; /* 禁則処理を厳格に適用 */
}

.content_service_content {
    /* ↓もし一画面に表示するならのイメージ */
    /* width: min(38vw, 480px); */
    /* ↓本来のやつ */
    width: min(80vw, 1000px);
    /* width: 1000px; */
    margin: min(5vw, 50px) auto;
    /* margin: 50px auto; */
    background-color: #fff;
    border-radius: min(10vw, 100px);
    /* border-radius: 100px; */
    border: rgba(11, 0, 61, 0.8) solid min(6px, 0.6vw);
    opacity: 0;
    
}

.content_service h5 {
    text-align: center;
    padding-top: min(5vw, 50px);
    padding-bottom: min(1.5vw, 30px);
    /* padding-top: 50px;
    padding-bottom: 30px; */
}

.content_flex {
    display: flex;
    width: min(70vw, 1000px);
    /* width: 1000px; */
    margin: auto;
    justify-content: center;
}

.content_flex img {
    width: min(35vw, 400px);
    /* width: 400px; */
    height: min(35vw, 400px);
}

.content_flex p {

    width: min(40vw, 400px);
    /* width: 480px; */

    overflow-wrap: break-word;
    line-height: 1.5;
}

.p_large {
    font-weight: bold;
    padding-top: min(3vw, 70px);
    padding-right: min(2vw, 20px);
    padding-bottom: min(2vw, 20px);
    /* padding-top: 70px;
    padding-right: 20px; */
}

.p_small {
    font-size: min(1.1rem, 3.4vw);
    /* font-size: 1.1rem; */
    font-weight: normal;
    padding-top: min(1.5rem, 1vw);
    padding-bottom: min(0.75rem, 3vw);
    padding-right: min(20px, 2vw);
    /* padding-top: 1.5rem;
    padding-right: 20px; */
}

.content_works_content {
    width: min(80vw, 1200px);
    /* width: 1200px; */
    margin: 0 auto min(100px, 10vw);
    padding-bottom: min(50px, 5vw);
    /* margin: 0 auto 100px;
    padding-bottom: 50px; */
    justify-content: center;
    text-align: center;
    background-color: rgba(11, 0, 61, 0.8);
    border-radius: min(100px, 5vw);
}

.works_headding h5 {
    width: min(800px, 80vw);
    height: min(3rem, 3vw);
    margin: min(50px, 5vw) auto min(100px, 10vw);
    /* width: 800px;   
    height: 3rem;
    margin: 50px auto 100px; */
    /* background-color: blue; */
    color: #fff;
}

.works_list {
    width: min(1000px, 80vw);
    /* width: 1000px; */
    margin: 0 auto;
}

.works_ul {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.works_ul li {
    background-color: white;
    margin: 0 auto min(50px, 5vw);
    padding: 0 min(30px, 0.3vw);
    /* margin: 0 6px 50px;
    padding: 0 30px; */
    border-radius: 5%;
    width: 30%;
    /* width: min(300px, 34vw); */
    opacity: 0;
}

.works_ul li img {
    width: min(250px, 25vw);
    height: min(250px, 25vw);
    margin: min(30px, 3vw) auto;
    /* width: 150px;
    height: 150px;
    margin: 30px auto; */
}

/* .works_ul li p {
    width: 260px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
} */

#works_opacity {
    opacity: 0;
    background-color: rgba(11, 0, 61, 0);
}

#works_opacity img {
    filter: invert(88%) sepia(61%) saturate(0%) hue-rotate(229deg) brightness(120%) contrast(101%);
}

#works_img_up {
    margin: min(50px, 5vw) auto min(110px, 11vw);
    width: min(140px, 15vw);
    height: min(140px, 15vw);
}

#works_img_down {
    margin: min(110px, 11vw) auto 0 max(-20px, -2vw);
    width: min(120px, 13vw);
    height: min(120px, 13vw);
}

.explanation {
    padding-bottom: min(20px, 2vw);
    width: 100%;
    /* width: min(260px, 30vw); */
    margin: 0 auto;
    /* padding-bottom: 20px;
    width: 260px; */
}

.explanation_title {
    text-align: center;
    font-size: min(1.2rem, 3.2vw);
    /* font-size: 1.2rem; */
    font-weight: bold;
    width: 100%;
}

.explanation_content {
    width: 100%;
    /* width: min(200px, 28vw); */
    margin: 0 auto 0 auto;
    padding-top: min(1rem, 2vw);
    padding-left: 25%;
    text-align: left;
    font-weight: normal;
}

.explanation_content p {
    font-size: min(1.1rem, 3.4vw);
}

.example {
    color: white;
    font-weight: bold;
}

.example ul{
    display: flex;
    flex-wrap: wrap;
    width: 90%;
    /* justify-content: center; */
    margin: min(3rem, 5vw) auto min(2rem, 2vw);
}

.example ul li {
    width: 25%;
    margin-bottom: min(1rem, 10vw);
    font-size: min(1rem, 2vw);
    text-align: left;
}

#example_network li{
    width: 33%;
}


.language {
    justify-content: center;
    color: white;
    display: block;
    /* padding-left: min(200px, 5vw); */
    width: min(800px, 60vw);
    margin: 0 auto;
    padding-bottom: min(2rem, 3vw);
}

.language p {
    font-size: min(1.1rem, 3.0vw);
    width: fit-content;
    padding: min(4px, 0.4vw) min(6px, 0.6vw);
    margin-right: min(1rem, 2.5vw);
    margin-top: min(1rem, 2.5vw);
    border-radius: min(3px, 0.3vw);
}

.pclang {
    display: flex;
}

.pclang_up {
    display: flex;
}

.pclang_down {
    display: flex;
}

.pclang p {
    background-color: #855ceb;
}

.db {
    display: flex;
}

.db_up {
    display: flex;
}

.db_down {
    display: flex;
}

.db p {
    background-color: #7a92d3;
}

.tool {
    display: flex;
}

.tool p {
    background-color: #4aa5a9;
}

.content_company {
    text-align: center;
    justify-content: center;
}

.content_company h5 {
    padding-bottom: min(50px, 3vw);
}

.corporate_philosophy {
    width: min(1000px, 95vw);
    margin: 0px auto min(100px, 10vw);
    opacity: 0;
}

.corporate_philosophy img {
    width: min(800px, 95vw);
    height: auto;
    margin: 0 auto;
    object-fit: cover;
}

.corporate_philosophy h6 {
    /* border-top: 3px solid rgb(251, 213, 142);
    border-left: 3px solid rgb(255, 205, 113); */
    border-bottom: 5px solid rgba(255, 166, 0, 0.944);
    /* border-right: 5px solid rgba(255, 166, 0, 0.944); */
    margin-top: 70px;
}

.content_company table {
    width: min(800px, 90vw);
    margin: auto;
    margin-bottom: min(100px, 10vw);
    font-size: min(1.1rem, 3vw);
}

th {
    align-items: center;
    width: min(300px, 18vw);
    height: min(2.5rem, 5vw);
    text-align: center;
    line-height: min(2.5rem, 5vw);
    color: white;
    background-color: rgba(11, 0, 61, 0.8);
    border-top: min(5px, 0.5vw) solid;
    border-bottom: min(5px, 0.5vw) solid;
    border-right: min(50px, 5vw) solid;
    border-color: white;
}


td {
    align-items: center;
    width: min(600px, 65vw);
    text-align: left;
    line-height: min(2.5rem, 5vw);
    border-bottom: min(1px, 0.5vw) solid;
    font-weight: bold;
    padding-top: min(3px, 0.3vw);
    padding-left: min(5px, .5vw);
}

.person_img {
    display: flex;
    text-align: center;
    justify-content: center;
}

/* .personimg_frame {
    width: min(400px, 40vw);
    height: min(400px, 40vw);
    border-radius: 50%;
} */

.person_1 {
    margin-right: min(10vw, 10rem);
}

.person_1 img {
    width: auto;
    height: min(400px, 40vw);
    border-radius: 50%;
}

.person_2 img {
    width: auto;
    height: min(400px, 40vw);
    border-radius: 50%;
}

.person_img p {
    padding-top: min(10vw, 1rem);
}

.content_access {
    display: flex;
    justify-content: center;
    margin-top: min(100px, 10vw);
}

.map iframe {
    width: 600px;
    height: min(500px, 50vw);
}

.address_access img {
    width: min(1.5rem, 4vw);
    height: min(1.5rem, 4vw);
    margin-bottom: min(0.3rem, 2vw);
}

.address_mail {
    padding-left: min(50px, 5vw);
}

.address_mail p {
    line-height: min(2rem, 5vw);
    overflow-wrap: anywhere; /* 収まらない場合に折り返す */
    word-break: auto-phrase;
    line-break: strict; /* 禁則処理を厳格に適用 */
}

.address_access {
    padding-top: min(70px, 7vw);
}

#otoiawase {
    margin-top: min(20px, 5vw);
    margin-bottom: min(20px, 8vw);
}

.mail {
    padding-top: min(110px, 1.1vw);
}

.buttonBasic {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(320px, 50vw);
    height: min(64px, 12.8vw);
    padding: min(8px, 1.6vw) min(24px, 4.8vw);
    font-family: sans-serif;
    font-size: min(16px, 3.8vw);
    color: #fff;
    text-align: center;
    background-color: rgba(11, 0, 61, 0.8);
    transition: background-color 0.3s;
    border-radius: 5px;
}

.buttonBasic:hover {
    border: solid;
    background-color: #fff;
    color: rgba(11, 0, 61, 0.8);
    border-color: rgba(11, 0, 61, 0.8);
}

.buttonWorks {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(320px, 40vw);
    height: min(64px, 10vw);
    padding: min(8px, 1.6vw) min(24px, 4.8vw);
    font-family: sans-serif;
    font-size: min(16px, 3.0vw);
    color: var(--buttonworks_hovercolor);
    text-align: center;
    background-color: var(--buttonworks_color);
    transition: background-color 0.3s;
    border: solid;
    border-color: var(--buttonworks_hovercolor);
    border-radius: 5px;
}

.buttonWorks:hover {
    border: solid;
    background-color: var(--buttonworks_hovercolor);
    color: var(--buttonworks_color);
    border-color: var(--buttonworks_color);
}

.mailform {
    margin: min(30px, 3vw) auto auto;

}

footer {
    margin-top: min(100px, 5vw);
    color: rgb(231, 248, 255);
    ;
    width: 100%;
    height: min(150px, 15vw);
    background-color: rgba(11, 0, 61, 0.8);
    display: flex;
    z-index: 20000;
}

footer div {
    width: min(1200px, 95vw);
    margin: 0 auto;
    justify-content: center;
    align-content: end;
}

footer img {
    padding-left: min(20px, 1vw);
    padding-top: min(10px, 1vw);
    width: auto;
    height: min(110px, 11vw);
}

footer p {
    display: block;
    font-size: min(1.1rem, 3vw);
    text-align: center;
    padding-bottom: min(1rem, 3vw);
}

/* メールフォームのcss */
.contact_head_text {
    text-align: center; 
    padding-top: min(20vw, 10rem);
}

.contact_url {
    text-align: center;
    margin-top: min(5vw, 5rem);
    margin-bottom: min(5vw, 5rem);
}

@media screen and (max-width: 780px) {
    .br780 {
        display: block;
    }
}

@media screen and (max-width:1025px) {

    .head-image {
        
    background-image: url("../img/headimage_phone.png");
        background-attachment: scroll;
        background-size: 100vw auto;
        background-position: center;
        height: calc(100vh);
        width: calc(100vw - var(--scrollbar_width));
    }

    

    .slogan {
        margin-top: max(-450px, -50vh);
    }

    .slogan_companyname {
        margin-top: max(-350px, -35vmin);
    }

    #pageaboutus{
        margin-top: min(230px, 18vmin);
    }

    /* .head-image {
        
        background-image: url("img/HPファーストビュー文字なし-3\ \(1\).png");
            background-attachment: scroll;
            background-size: 100vw auto;
            background-position: 0 18vw;
            height: calc(80vw);
            width: calc(100vw - var(--scrollbar_width));
    }

    .slogan {
        margin-top: max(-450px, -35vw);
    }

    .slogan_companyname {
        margin-top: max(-350px, -20vw);
    } */

    .br959 {
        display: block;
    }

    .title-logo a{
        display: flex;
    }

    .title-logo p {
        display: block;
        font-size: min(1.5rem, 3vw);
        align-items: center;
        padding-top: min(1vw, 1rem);
        padding-left: min(8vw, 20rem);
    }

    .title-logo img {
        justify-content: left;
    }

    .nav {
        display: none;
    }

    .menu {
        display: block;
    }

    .menu {
        display: flex;
        height: min(50px, 5vw);
        width: min(50px, 5vw);
        margin-top: min(15px, 1.5vw);
        margin-left: auto;
        margin-right: min(40px, 4vw);
        justify-content: center;
        align-items: center;
        position: relative;
        z-index: 1200;
        cursor: pointer;
    }

    /* ハンバーガーメニューのアイコン */
    .menu span,
    .menu span::after,
    .menu span::before {
        content: '';
        display: block;
        height: min(5px, 0.5vw);
        width: min(50px, 5vw);
        border-radius: min(3px, 0.3vw);
        background: rgb(231, 248, 255);
        transition: 0.3s;
        /* アニメーションの速度*/
    }

    /* 三本線のうち一番上の棒の位置調整 */
    .menu span::before {
        bottom: min(15px, 1.5vw);
        position: relative;
    }

    /* 三本線のうち一番下の棒の位置調整 */
    .menu span::after {
        /* 0.5vw分の差は太さ分引いてます */
        top: min(15px, 1.0vw);
        position: relative;
    }


    /* アイコンがクリックされたら真ん中の線を透明にする */
    .menu span.checked {
        background: rgba(255, 255, 255, 0);
    }

    /* アイコンがクリックされたらアイコンが×印になように上下の線を回転 */
    .menu span.checked::before {
        bottom: 0;
        transform: rotate(45deg);
    }

    .menu span.checked::after {
        top: -0.5vw;
        transform: rotate(-45deg);
    }

    .nav {
        width: 100%;
        height: 100%;
        position: fixed;
        bottom: 100%;
        left: 0%;
        /* メニューを画面の外に飛ばす */
        z-index: 99;
        transition: .5s;
        text-align: center;
        padding-top: 20px;
    }

    /* メニューのデザイン*/
.nav_content {
    display: block;
    width: min(80%, 500px);
    height: 100%;
    position: fixed;
    top: 0%;
    left: 100%; /* メニューを画面の外に飛ばす */
    z-index: 99;
    background: rgba(11, 0, 61, 1);
    transition: .5s;
    text-align: center;
    padding-top: min(100px, 20vw);
  }
  
  /* アイコンがクリックされたらメニューを表示 */
  .nav_content.checked {
    left: max(20%, calc(100vw - 500px));
  }

    /* ハンバーガーメニュー中身のアニメーション*/
    .nav_item {
        display: inline-block;
        width: 50%;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: min(10vw, 60px);
    }

    .nav_content a{
        display: inline-block;
        width: 90%;
        margin-left: auto;
        margin-right: auto;
        color: rgb(231, 248, 255);
        font-size: min(6vw, 2.5rem);
        border-bottom: rgba(255, 255, 255, 0) 0.5vw solid;
        position: relative;
        transition: .3s;
    }

    .nav_content a:hover {
        color: orange;
    }

    /* 下線のスタイル */
    .nav_content a::after {
    background-color: orange; /* 下線の色 */
    bottom: -4px; /* 要素の下端からの距離 */
    content: ""; /* 要素に内容を追加 */
    height: 2px; /* 下線の高さ */
    left: 0; /* 要素の左端からの距離 */
    position: absolute; /* 絶対位置指定 */
    transform: scale(0, 1); /* 下線を横方向に0倍、縦方向に1倍に変形（非表示） */
    transform-origin: right top; /* 変形の原点を右上に指定 */
    transition: transform .3s; /* 変形をアニメーション化 */
    width: 100%; /* 要素の幅 */
  }
  /* リンクにホバーした際の下線の表示 */
  .nav_content a:hover::after {
    transform-origin: left top; /* 変形の原点を左上に指定 */
    transform: scale(1, 1); /* 下線を横方向に1倍、縦方向に1倍に変形（表示） */
  }

    .content_flex {
        display: block;
        text-align: center;
    }

    .content_flex img {
        width: 50vw;
        height: 50vw;
    }

    .content_flex p {
        width: 70vw;
        margin: 0 auto;
    }

    

    .explanation_title {
        font-size: 2.7vw;
    }

    .explanation_content {
        padding-left: 20%;
    }

    .explanation_content p {
        font-size: 2.0vw;
    }

    .pclang {
        display: block;
    }

    .db {
        display: block;
    }

    th {
        height: max(7vw, 5rem);
        vertical-align: middle;
        border-right: none;
    }

    td {
        vertical-align: middle;
        padding-left: min(50px, 5vw);
    }
}

@media screen and (max-width:500px) {
    .slogan_companyname {
        margin-top: max(-400px, -45vh);
    }

    #pageaboutus{
        margin-top: min(250px, 25vh);
    }
}

@media screen and (max-width: 1200px) {
    /* .head-image {
        height: 70vw;
    }

    .head-image::before {
        border-width: 50vw 0 0 85vw;
    } */

    .br {
        display: block;
    }

    .content_access {
        display: block;
        justify-content: center;
        width: 85vw;
        margin: 0 auto min(100px, 20vw);
    }

    .map iframe {
        margin: 0 auto;
        width: 85vw;
    }

    .address {
        padding-top: 5vw;
    }
}



/* ここからanimationで追加するやつ */
.start_animation_scroll_fadeup {
    animation-name: fadeUp_Anime;
    animation-duration: 1.5s;
    animation-fill-mode: forwards;
}

@keyframes fadeUp_Anime {
    0% {
        transform: translateY(100px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadedown_Anime {
    0% {
        transform: translateY(-50px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fade_Anime {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.start_animation_scroll_underline {
    animation-name: underline_Anime;
    animation-duration: 0.5s;
    animation-fill-mode: forwards;
}

@keyframes underline_Anime {
    0% {
        transform : scale(0. 1);
        opacity: 1;
    }

    100% {
        transform: scale(1, 1);
        opacity: 1;
    }
}

.start_animation_scroll_fadeupX {
    animation-name: fadeUpX_Anime;
    animation-duration: 1.0s;
    animation-fill-mode: forwards;
    animation-delay: 1s;
    animation-timing-function: linear;
    /* animation: fadeUpX_Anime 1000ms linear; */
    /* background: linear-gradient(90deg, orange 0%, orange 100%, rgba(0,0,0,0) 00%, rgba(0,0,0,0) 00%); */
}

/* よいやり方がわからなくてこんな長々と書いています */
@keyframes fadeUpX_Anime {
    0% {
        
        background: linear-gradient(90deg, orange 0%,  rgba(0,0,0,0) 25%);
        opacity: 1;
    }

    6.25% {
        
        background: linear-gradient(90deg, orange 6.25%,  rgba(0,0,0,0) 31.25%);
        opacity: 1;
    }

    12.5% {
        
        background: linear-gradient(90deg, orange 12.5%,  rgba(0,0,0,0) 37.5%);
        opacity: 1;
    }

    17.75% {
        
        background: linear-gradient(90deg, orange 17.75%,  rgba(0,0,0,0) 43.75%);
        opacity: 1;
    }

    25% {
        
        background: linear-gradient(90deg, orange 25%,  rgba(0,0,0,0) 50%);
        opacity: 1;
    }

    31.25% {
        
        background: linear-gradient(90deg, orange 31.25%,  rgba(0,0,0,0) 56.25%);
        opacity: 1;
    }

    37.5% {
        
        background: linear-gradient(90deg, orange 37.5%,  rgba(0,0,0,0) 62.5%);
        opacity: 1;
    }

    43.75% {
        
        background: linear-gradient(90deg, orange 43.75%,  rgba(0,0,0,0) 68.25%);
        opacity: 1;
    }

    50% {
        
        background: linear-gradient(90deg, orange 50%,  rgba(0,0,0,0) 75%);
        opacity: 1;
    }

    56.25% {
        
        background: linear-gradient(90deg, orange 56.25%,  rgba(0,0,0,0) 81.25%);
        opacity: 1;
    }

    62.5% {
        
        background: linear-gradient(90deg, orange 62.5%,  rgba(0,0,0,0) 87.5%);
        opacity: 1;
    }

    68.75% {
        
        background: linear-gradient(90deg, orange 68.75%,  rgba(0,0,0,0) 93.75%);
        opacity: 1;
    }

    75% {
        
        background: linear-gradient(90deg, orange 75%,  rgba(0,0,0,0) 95%);
        opacity: 1;
    }

    81.25% {
        
        background: linear-gradient(90deg, orange 81.25%,  rgba(0,0,0,0) 97%);
        opacity: 1;
    }

    87.5% {
        background: linear-gradient(90deg, orange 87.5%,  rgba(0,0,0,0) 98%);
        opacity: 1;
    }

    93.75% {
        background: linear-gradient(90deg, orange 93.5%,  rgba(0,0,0,0) 99%);
        opacity: 1;
    }

    95% {
        background: linear-gradient(90deg, orange 95%,  rgba(0,0,0,0) 100%);
        opacity: 1;
    }

    96% {
        background: linear-gradient(90deg, orange 96%,  rgba(0,0,0,0) 100%);
        opacity: 1;
    }

    97% {
        background: linear-gradient(90deg, orange 97%,  rgba(0,0,0,0) 100%);
        opacity: 1;
    }

    98% {
        background: linear-gradient(90deg, orange 98%,  rgba(0,0,0,0) 100%);
        opacity: 1;
    }

    99% {
        background: linear-gradient(90deg, orange 99%,  rgba(0,0,0,0) 100%);
        opacity: 1;
    }

    100% {
        /* transform: translateX(0); */
        background: linear-gradient(90deg,  orange 100%, rgba(0,0,0,0) 00%);
        opacity: 1;
    }
}

.start_animation_scroll_fadeup1 {
    animation-name: fadeUp_Anime;
    animation-duration: 1.0s;
    animation-fill-mode: forwards;
    animation-delay: 0.5s;
}

.start_animation_scroll_fadeup2 {
    animation-name: fadeUp_Anime;
    animation-duration: 1.0s;
    animation-fill-mode: forwards;
    animation-delay: 0.75s;
}

.start_animation_scroll_fadeup3 {
    animation-name: fadeUp_Anime;
    animation-duration: 1.0s;
    animation-fill-mode: forwards;
    animation-delay: 1.0s;
}

.start_animation_scroll_fadeup4 {
    animation-name: fadeUp_Anime;
    animation-duration: 1.0s;
    animation-fill-mode: forwards;
    animation-delay: 1.25s;
}

.start_animation_scroll_fadeup5 {
    animation-name: fadeUp_Anime;
    animation-duration: 1.0s;
    animation-fill-mode: forwards;
    animation-delay: 1.5s;
}

.start_animation_scroll_fadedown {
    animation-name: fadedown_Anime;
    animation-duration: 1.0s;
    animation-fill-mode: forwards;
    animation-delay: 2s;
}
.start_animation_scroll_fadedown1 {
    animation-name: fadedown_Anime;
    animation-duration: 1.0s;
    animation-fill-mode: forwards;
    animation-delay: 2s;
    animation-iteration-count: infinite;
}
.start_animation_scroll_fade {
    animation-name: fade_Anime;
    animation-duration: 1.0s;
    animation-fill-mode: forwards;
    animation-delay: 1.5s;
}