/* 共通の全体設定 */

    /*基準を1rem=10pxに設定*/
    html {
        font-size: 62.5%;
    }
    /*最小値:1.1rem → 可変（0.9rem + 0.625vw（画面幅320px:2px, 800px:5px, 1200px:7.5px））→ 最大値:1.6rem*/
    .font-size-S {
        font-size: clamp(0.9rem, calc(0.8rem + 0.625vw), 1.2rem);
        line-height: clamp(2.3rem, calc(2.0rem + 0.625vw), 2.6rem);
    }
    /*最小値:1.1rem → 可変（0.9rem + 0.625vw（画面幅320px:2px, 800px:5px, 1200px:7.5px））→ 最大値:1.6rem*/
    .font-size-M {
        font-size: clamp(1.1rem, calc(1.0rem + 0.625vw), 1.6rem);
        line-height: clamp(2.4rem, calc(2.2rem + 0.625vw), 2.8rem);
    }
    /*最小値:1.6rem → 可変（2.2rem + 0.625vw（画面幅320px:2px, 800px:5px, 1200px:7.5px））→ 最大値:2.9rem*/
    .font-size-L {
        font-size: clamp(1.3rem, calc(1.2rem + 0.625vw), 2.0rem);
        line-height: clamp(2.6rem, calc(2.4rem + 0.625vw), 3.0rem);
    }

body {
    background-color: #F4F5F7;
    background-attachment: fixed;
    background-size: cover;
}

h2 {
    font-family: 'Lato', 'Noto Sans JP', '游ゴシック Medium', '游ゴシック体', 'Yu Gothic Medium', 'YuGothic', 'ヒラギノ角ゴ ProN', 'Hiragino Kaku Gothic ProN', 'メイリオ', 'Meiryo', 'ＭＳ Ｐゴシック', 'MS PGothic', sans-serif;
    text-align: center;
    padding-top: 1vh;
    padding-bottom: 1vh;
    letter-spacing: 0.2em;
    font-size: clamp(1.1rem, calc(1.0rem + 0.625vw), 2.6rem);
    line-height: clamp(2.0rem, calc(2.0rem + 0.625vw), 2.8rem);
}

h3{
    font-size: clamp(0.9rem, calc(0.8rem + 0.625vw), 2.0rem);
    line-height: clamp(1.0rem, calc(0.9rem + 0.625vw), 2.2rem);
    padding-top: 0.8vh;
    padding-bottom: 0.8vh;   
}

/* フェードインＪＳクラス */

/* 施工事例の所に採用 */

.fadeIn {
    -webkit-transition: 1s;
    transition: 1s;
    opacity: 0;
}

.fadeIn.animated {
    opacity: 1;
}


/* ここからヘッダー */

header {
    width: 100%;
    margin: 0 auto;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: distribute;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(13, 8, 8, 0.927);
    position: fixed;
    top: 0;
    height: 16vh;
    max-height: 200px;
    z-index: 3000;
}

/* 左上のロゴスペース */
.nav-left {
    margin: 1vh 1vw;
    display: flex;
    align-items: center;
}

.nav-left img {
    max-width: 100px;
    height: auto;
}

.header-info{
    display: flex;

}


/* 中央のメニュースペース */
.nav-middle {
    margin: 1vh 2vw;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-middle div {
    margin: 0px 1%;
}

/*表示するテキストが切り替わる*/
.btntextchange {
    /*テキストの基点とするためrelativeを指定*/
    position: relative;
    /*ボタンの形状*/
    border: 1px solid #555;
    border-radius: 2vw;
    min-width: 7vw;
    padding: 1.4rem;
    text-align: center;
    display: inline-block;
    text-decoration: none;
    color: #333;
    outline: none;
    /*アニメーションの指定*/
    transition: all .2s;
    cursor: pointer;
}

/*hoverした際の変化*/
.btntextchange:hover {
    background: rgb(9, 9, 9);
    color: #fff;
}

.btntextchange span {
    /*絶対配置でテキストの位置を決める*/
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    /*アニメーションの指定*/
    transition: all .5s;
    /*ブロック要素にしてテキスト折り返しなし*/
    display: block;
    white-space: nowrap;
    color: #ffffff;
}

/*差し替わるテキストの設定*/
.btntextchange span:nth-child(2) {
    opacity: 0;
    /*透過0に*/
}

/*hoverするとテキストが入れ替わる設定*/
.btntextchange:hover span:nth-child(1) {
    opacity: 0;
    /*透過0に*/
}

.btntextchange:hover span:nth-child(2) {
    opacity: 1;
    /*不透明に*/
}

/* 右上の会社窓口スペース */
.nav-right {
    margin: 1vh 2vw;
}

.nav-right p {
    padding: 0 1vw;
    color: #FFF;
}

.email {
    text-decoration: none;
}

.mail {
    text-align: center;
    border-radius: 10px;
    color: white;
    margin: 4px 0;
    padding: 1px 0;
    cursor: pointer;
}

.mail::after {
    content: "";
    background: url("../dist/img/mail-logo.png") no-repeat;
    background-size: contain;
    display: inline-block;
    width: 30px;
    height: 30px;
    vertical-align: middle;
}


/* パンくずリストの設定 */
/* #breadcrumb ul {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

#breadcrumb ul li {
    padding: 10px 16px;
}

#breadcrumb ul li a {
    position: relative;
}

#breadcrumb ul li a::after {
    position: absolute;
    content: ">";
    right: -20px;
    bottom: 0.1em;
} */

/* ここまでがヘッダー */


/* ここからがメイン */

main {
    margin-top: 16vh;
    position: relative;
    position: absolute;
    width: 100%;
    overflow: hidden;
}

/* ここはメイン画像 */
/* 全体のヒーローセクション */
.main-img {
  background-color: #f0f8ff; /* 明るい青系の背景 */
  padding: 80px 20px;
  text-align: center;
}

/* テキストと画像コンテナ */
.main-text {
  max-width: 800px;
  margin: 0 auto;
}

/* 画像のサイズ調整とレスポンシブ対応 */
.main-text img {
  width: 100%;
  max-width: 500px;
  height: auto;
  margin-bottom: 30px;
}

/* 見出し */
.main-text h1 {
  font-size: 2.4rem;
  line-height: 1.5;
  color: #333;
  font-weight: bold;
}

/* 大きめフォントクラス */
.font-size-L {
  font-size: 1.2rem;
}
























/* ここからが施工事例のスタイル */
.case {
    width: 100%;
    overflow: hidden;
    margin: 0 auto;
    padding-top: 3vh;
    
}

.container {
    width: 100%;
    margin: 0 auto;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: distribute;
    justify-content: space-around;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.case-content {
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    padding-bottom: 1vh;
}

.contentwrap {
    margin: 0 auto;
    max-width: 300px;
    width: 100%;
    min-width: 20%;
    min-height: 100px;
    max-height: 200px;
    height: 20rem;
    position: relative;
    overflow: hidden;
    padding: 10px 10px;
}

.card-space {
    position: absolute;
    top: 0;
    right: 0;
    width: 110%;
    height: 100%;
    margin: 10% 2%;
    color: #fff;
    text-align: center;
    background: rgba(65, 61, 61, 0.13);
    overflow: hidden;
}

.card-space img {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 6%;
    top: -6%;
}

.card-space-div {
    position: absolute;
    padding: 1%;
    right: 3%;
    width: 26%;
    height: 60%;
    color: #fff;
    text-align: center;
    background: rgba(27, 10, 10, 0.904);
}

.card-space p {
    padding: 6px;
}

.card-space span {
    width: 100%;
    border: solid 1px whitesmoke;
    color: white;
    padding: 0.6em;

}

.card-space span::before {
    position: absolute;
    content: "";
    width: 0%;
    top: 0;
    left: 0%;
    height: 100%;
    background-color: #FFF;
    -webkit-transition: .3s;
    transition: .3s;
    z-index: -2;
}

.card-space span:hover::before {
    width: 100%;
}

.card-space span:hover {
    color: rgb(65, 65, 250);
    border: cornflowerblue 0.2px solid;
}

.card-space a {
    display: block;
    text-decoration: none;
    margin: 6% 0;
}


/* ここまでが施工事例のスタイル */


/* ここからがこだわり */

.skills {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: distribute;
    justify-content: space-around;
    width: 80%;
    margin: 0 auto;
    border-radius: 20px;
    height: auto;
    background-color: rgba(245, 245, 245, 0.562);
}

.skill-set h3 {
    margin-top: 4%;
}

.img-box {
    width: 100%;
    max-width: 300px;
    min-width: 20%;
    height: 30rem;
    min-height: 100px;
    max-height: 300px;
    position: absolute;
    top: 0%;
    left: 0%;
    background-color: rgba(0, 0, 0, 0);
    position: relative;
    margin: 4px 0;
}

.img-box .scrimg {
    border-radius: 70% 30% 30% 70% / 60% 40% 60% 40%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    background-size: contain;
    background-repeat: no-repeat;
    -webkit-animation: bgAnime 25s infinite;
    animation: bgAnime 25s infinite;
}

.img-box .src1 {
    background-image: url(../dist/img/img1.jpg);
}

.img-box .src2 {
    background-image: url(../dist/img/img2.jpg);
    -webkit-animation-delay: 5s;
    animation-delay: 5s;
}

.img-box .src3 {
    background-image: url(../dist/img/img3.jpg);
    -webkit-animation-delay: 10s;
    animation-delay: 10s;
}

.img-box .src4 {
    background-image: url(../dist/img/img4.jpg);
    -webkit-animation-delay: 15s;
    animation-delay: 15s;
}

.img-box .src5 {
    background-image: url(../dist/img/children.png);
    -webkit-animation-delay: 20s;
    animation-delay: 20s
}

@-webkit-keyframes bgAnime {
    0% { opacity: 0;}
    5% { opacity: 1;}
    25% { opacity: 1;}
    30% { opacity: 0;}
    100% { opacity: 0;}
}

@keyframes bgAnime {
    0% { opacity: 0;}
    5% { opacity: 1;}
    25% { opacity: 1; }
    30% { opacity: 0; }
    100% { opacity: 0; }
}


/* ここからが会社概要 */

.company {
    width: 100%;
    margin: 0 auto;
    padding: 2vh 0;
    height: auto;
    background-color: white;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: distribute;
    justify-content: space-around;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.company h2{
    min-width: 200px;
    border-bottom: 3px solid red;
    border-image: linear-gradient(to right, red 0%, pink 100%) 1;
}

.philosophy {
    max-width: 420px;
    width: 100%;
}

.philosophy h3 {
    margin-top: 2vh;
    text-align: center;
}

.philosophy p {
    font-weight: 300;
}

.mission {
    max-width: 420px;
    width: 100%;
}

.mission h3 {
    margin-top: 2vh;
    text-align: center;
}

.mission p {
    font-weight: 300;
}

.company-table {
    width: 100%;
    max-width: 800px;
}

.company-table caption {
    text-align: center;
}

.company-table {
    margin-top: 40px;
    max-width: 480px;
    width: 40%;
    border-spacing:     0;
}

.company-table th {
    border-bottom: solid 1px #78688f;
    padding: 10px 0;
    vertical-align: middle;
    font-weight: 100;
}

.company-table td {
    border-bottom: solid 2px #ddd;
    text-align: center;
    padding: 10px 0;
}


/* ここからがフッター */
footer {
    width: 100%;
    margin: 0 auto;
    padding-top: 2vh;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: distribute;
    justify-content:space-around;
    flex-direction: column;
    align-items: center;
    background-color: rgba(63, 62, 62, 0.87);
    color: white;
}


.info{
    width: 100%;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.infodiv {
    width: 44%;
    min-width: 200px;
}

.map {
    width: 100%;
    min-width: 200px;
    text-align: center;
    font-weight: 500;
}

.maxmap{
    width: 100%;
    min-width: 200px;
    height: 300px;
}

@media screen and (min-width:701px ){
    .minmap{
        display: none;
    }
}

@media screen and (min-width:701px ){
    .nav-bottom{
        display: none;
    }
}


/* ここからお知らせを表示 */
.infotext{
    width: 100%;
    min-width: 200px;
    text-align: center;
    font-weight: 500;
}

dl{
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    
}

dt{
    margin-left: 2%;
    min-width: 120px;
    color: rgb(234, 228, 228);
    width: auto;
}

dd{
    color: rgb(234, 228, 228);
    width: 100%;
}

.infoCategory{
    margin-top: 1%;
    padding: 0;
    border-top: solid 1px grey;
    width: 96%;
}

.infoCategory:hover{
    color: rgb(44, 3, 3);
    background: rgba(187, 187, 187, 0.548);
}

.infoCategory a{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    text-decoration: none;
}

.bottom {
    margin-top: 2vh;
    margin-bottom: 2vh;
    border-top: solid 2px whitesmoke;
    display: flex;
    justify-content: center;
    height: auto;
    width: 100%;
}

.bottom p {
    padding: 10px;
    text-align: center;
}

.bottom a {
    text-decoration: none;
    color: #FFF;
}


textarea {
    margin: 6px;
    font: 15px/24px sans-serif;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    width: 100%;
    padding: 0.3em;
    -webkit-transition: 0.3s;
    transition: 0.3s;
    letter-spacing: 1px;
    color: #aaaaaa;
    border: 1px solid #ffffff;
    -webkit-box-shadow: 1px 1px 2px 0 #707070 inset;
    box-shadow: 1px 1px 2px 0 #707070 inset;
    border-radius: 4px;
    margin: 10px 0;
}


.kan {
    position: fixed;
    right: 10px;
    bottom: 30px;
}

.kan:hover {
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.479);
    border-radius: 50%;
    padding: 2px;
}