/* 全体

====================================================*/

html {
    font-size: 62.5%;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    text-transform: capitalize;
    width: 1200px;
    margin: 0 auto;
}

img {
    width: 100%;
    height: auto;
}

.container {
    width: 100%;
    overflow-x: hidden;
    /*スクロールバー非表示（Edge）*/
    -ms-overflow-style: none;
    /*スクロールバー非表示（Firefox）*/
    scrollbar-width: none;
}

/*スクロールバー非表示（Chrome・Safari）*/
.content::-webkit-scrollbar{
    display:none;
}

section {
    padding: 50px 0;
}

#contact {
    /*下方向の余白調節(フッターに隙間ができるため)*/
    padding: 50px 0 0;
}

/* 共通

====================================================*/

.header ul, .top_text,h2 {
    font-family: "Kiwi Maru";
}

#about, #house-environment, #service, #cost, #outline, #contact {
    text-align: center;
}

.about_contents, .house-environment_contents, .service_contents, .cost_contents, .outline_contents, .contact_contents {
    margin-top: 40px;
}

.about_contents p, .service_contents p, .contact_contents p {
    font-size: 1.8rem;
    line-height: 3.5;
}

/* --- 文字のスペース --- */
.mgr {
    /*右方向に空白*/
    margin-right : 18px; 
}

.mgl {
    /*左方向に空白*/
    margin-left : 18px; 
}

/* --- 見出し --- */
h1 {
    width: 15%;
}

h2 {
    font-size: 4rem;
}

.h2_small-text {
    font-size: 2rem;
    display: block;
    font-family: "Noto Sans JP";
    color: #ecb741;
    padding-top: 10px;
}

h3 {
    padding: 0.25em 0.5em;
    border-left: solid 8px #3fcaeb;
    font-size: 3rem;
    font-weight: bold;
    letter-spacing: 0.2em;
    text-align: initial;
    margin-left: 80px;
}

/* PCでは非表示の要素

====================================================*/

@media screen and (min-width: 641px) {
    .sp-menu {
    display: none;
    }
}

/* ヘッダー

====================================================*/

.header {
    position: relative;
    padding: 20px 0 40px 20px;
}

.pc_menu { 
    display: flex;
    position: absolute;
    bottom: 70px;
    margin-left: 200px;
    font-size: 2.4rem;
}

.pc_menu li {
    padding-left: 30px;
}

.pc_menu li a {
    /*アンダーラインの位置を決めるための基準 */
    position: relative; 
}

.pc_menu li a::after {
    position: absolute;
    left: 0;
    content: '';
    width: 100%;
    height: 3px;
    background: #3fcaeb;
    /*アンダーラインがaタグの下端から現れる*/
    bottom: -12px;
    /*アンダーラインの縮尺比率。ホバー前はx方向に0*/
    transform: scale(0, 1);
    /*変形（アンダーラインの伸長）の原点がaタグ（各メニュー）の左端*/
    transform-origin: left top; 
    /*変形の時間*/
    transition: transform 0.3s;
}
    
.pc_menu li a:hover::after {
    /*ホバー後、x軸方向に1（相対値）伸長*/
    transform: scale(1, 1);
}

.header p {
    font-size: 1.8rem;
    color: #666666;
    padding-bottom: 10px;
}

/* TOP

====================================================*/

#top {
    background-image: url(../images/top-image.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    height: auto;
    padding: 350px 0 18px;
}

.top_text {
    font-size: 3.9rem;
    background-color: #FFF;
    text-align: center;
    width: 850px;
    height: 190px;
    margin: 120px 0 0 40px;
    opacity: 0.7;
    position: relative;
}

.top_text p {
    position: absolute;
    right: 0;
    left: 0;
    margin: auto;
    top: 50%;
    transform: translateY(-50%);
}

.small_text {
    font-size: 3rem;
}

/* about

====================================================*/

.about_contents img {
    width: 70%;
}

/* house-environment

====================================================*/

.house-environment_contents {
    background-color: #e2e2e2;
    padding: 50px 0 206px;
}

.house-environment_contents-text {
    font-size: 3rem;
    font-weight: bold;
    line-height: 2;
}

.text_line {
    border-bottom: 5px solid #3fcaeb;
}

.house-environment_item {
    display: flex;
    justify-content: space-between;
    width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap;
    margin-top: 50px;
}

.item {
    position: relative;
}

.item:nth-child(3), .item:nth-child(4), .item:nth-child(5), .item:nth-child(6) {
    margin-top: 200px;
}

.item:nth-child(6) {
    text-transform: uppercase;
}

.item-text {
    background-color: #FFF;
    width: 420px;
    position: absolute;
    top: 280px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    padding: 30px 8px;
}

.item-text p {
    font-size: 1.45rem;
    line-height: 1.5;
    padding-top: 45px;
}

.item_text-title {
    font-size: 3rem;
    font-weight: bold;
    position: relative; 
}

.item_text-title::after {
    position: absolute; 
    content: '';
    background-color: #3fcaeb; 
    width: 80px;
    height: 7px;
    bottom: -20px; 
    left: 50%; 
    transform: translateX(-50%);
}

/* service

====================================================*/

.box-image {
    width: 40%;
}

.service_box {
    margin: 70px 20px 0;
    padding-bottom: 100px;
    position: relative;
}

.service_box-text {
    position: absolute;
    top: 140px;
    left: 35%;
    z-index: 1;
    background-color: rgba(255,255,255,0.6);
    border: 1px solid #000000;
    padding: 30px 10px;
    box-shadow: 4px 5px 20px 0px #000000;
}

.box_text-title-line {
    border-bottom: 7px solid #3fcaeb;
}

.box_text-title {
    font-size: 3rem;
    font-weight: bold;
}

.service_box-text p {
    line-height: 2;
    padding-top: 30px;
}

/* --- 交互に表示する --- */
.service_box:nth-of-type(even) { 
    display: flex;
    flex-direction: row-reverse; 
}

.service_box:nth-of-type(2) .service_box-text {
    top: 120px;
    left: 18%;
}

.service_box:nth-of-type(3) .service_box-text {
    top: 145px;
}

.service_box:nth-of-type(4) {
    padding-bottom: 0;
}

.service_box:nth-of-type(4) .service_box-text {
    top: 60px;
    left: 22%;
}

/* cost

====================================================*/

.cost_contents {
    background-color: #e2e2e2;
    padding: 50px 0;
}

.cost_contents img {
    width: 65%;
    margin-top: 30px;
}

.rent_banner {
    width: 80%;
    line-height: 120px;
    background: #3FCAEB;
    color: #FFFFFF;
    font-size: 4rem;
    font-weight: 500;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    margin: 30px auto;
}

.cost-text, .cost-text-02 {
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 2;
    text-align: initial;
    margin-left: 200px;
}

.cost-text {
    padding-bottom: 100px;
}

.cost-text-02{
    padding-top: 50px;
}

/* outline

====================================================*/

.outline_info {
    background-image: url(../images/outline-image.jpg);
    background-repeat: no-repeat;
    background-position: right;
    width: 1000px;
    margin: 0 auto;
    padding-bottom: 50px;
}

.outline_info dl {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    text-align: left;
    font-size: 2rem;
}

.outline_info dt {
    width: 10%;
    font-weight: normal;
}

.outline_info dd {
    width: 90%;
    padding-bottom: 20px;
    margin-bottom: 10px;
}

/* --- グーグルマップ --- */
.gmap-container { 
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
}

.gmap {
    height: 0;
    overflow: hidden;
    padding-bottom: 40%;
    position: relative;
    }

.gmap iframe {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
}

/* contact

====================================================*/

.contact_form {
    background-color: #e2e2e2;
    padding: 36px 0 60px;
}

.form {
    margin: 0 auto;
    max-width: 720px;
}

.form-item {
    padding: 24px 0;
    width: 100%;
    display: flex;
    align-items: center;
    text-align: initial;
}

.form-item-label {
    width: 100%;
    max-width: 248px;
    letter-spacing: 0.05em;
    font-weight: bold;
    font-size: 1.8rem;
}

.form-item-label.isMsg {
    margin: 8px 0 auto;
}

.form-item-label-required {
    margin-left: 20px;
    padding: 8px 0;
    width: 48px;
    display: inline-block;
    background: #3fcaeb;
    color: #fff;
    font-size: 1.5rem;
    text-align: center;
}

.form-item-label-required.isName {
    margin-left: 133px;
}

.form-item-label-required.isNumber {
    margin-left: 96px;
}

.form-item-input {
    border-radius: 6px;
    margin-left: 40px;
    padding: 0 1em;
    height: 48px;
    flex: 1;
    width: 100%;
    max-width: 410px;
    background: #fff;
    font-size: 1.8rem;
}

.form-item-textarea {
    border-radius: 6px;
    margin-left: 40px;
    padding: 0 1em;
    height: 216px;
    flex: 1;
    width: 100%;
    max-width: 410px;
    background: #fff;
    font-size: 1.8rem;
}

.form-btn {
    border-radius: 6px;
    margin: 32px auto 0;
    padding: 20px 0;
    width: 280px;
    display: block;
    letter-spacing: 0.05em;
    background: #3fcaeb;
    color: #fff;
    font-weight: bold;
    font-size: 2rem;
}

/* フッター

====================================================*/

.footer {
    background: #3fcaeb;
    color: #FFF;
    font-size: 1.8rem;
    text-align: center;
    padding: 20px 0;
}


/* TOPに戻るボタン

====================================================*/

#pagetop {
    height: 65px;
    width: 65px;
    position: fixed;
    right: 30px;
    bottom: 30px;
    background: #ecb741;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.pagetop__arrow {
    height: 15px;
    width: 15px;
    border-top: 5px solid #fff;
    border-right: 5px solid #fff;
    transform: translateY(20%) rotate(-45deg);
}

#pagetop:hover {
    opacity: 0.5;    
}

/* スクロールアニメーション

====================================================*/

.Scroll {
    visibility: hidden;
    transition: all 1s;
    transform:  translateY(100px);
    opacity: 0;
}

.ScrollIsActive {
    visibility: visible;
    transform: translateY(0);
    opacity: 1;
}

/* スマートフォン用の表示

====================================================*/

@media screen and (max-width: 640px) {
    /*スマートフォンでは非表示の要素*/
    .pc_menu,#pagetop {
        visibility: hidden;
    }

    /*全体*/
    body {
        width: 100%;
    }

    /*共通*/
    .about_contents p, .service_contents p, .contact_contents p {
        font-size: 1rem;
    }

    .about_contents, .service_contents {
        word-break: keep-all;
    }

    /*スマホの時だけ改行させるクラス*/
    .br-sp {
        display: block; 
    }

    /* --- 文字のスペース --- */
    .mgl {
        /*左方向に空白*/
        margin-left : 8px; 
    }

    /*見出し*/
    h1 {
        width: 25%;
        margin-top: 10px;
    }

    h2 {
        font-size: 3rem;
    }

    .h2_small-text {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.9rem;
        margin-left: 30px;
    }

    /*ヘッダー及びスマホ用メニュー*/
    .header {
        padding-left: 20px;
    }
    
    .header p {
        font-size: 1.2rem;
    }

    .sp-menu {
        position: fixed; 
        top: 60px;
        right: 5%;
        width: 100%;
        z-index: 999;
    }

    .sp-menu__inner {
        display: flex;
        justify-content: right;
        align-items: center;
        padding: 0.5rem 1rem;
    }

    /* ハンバーガーボタンのデザイン */
    .drawer__button {
        position: relative;
        width: 3rem;
        height: 3rem;
        background-color: transparent;
        border: none;
        cursor: pointer;
        z-index: 999; 
    }

    /* ハンバーガーボタン内の線 */
    .drawer__button > span {
        display: block;
        position: absolute;
        left: 50%;
        width: 5rem;
        height: 3px;
        background-color: #666666;
        transform: translateX(-50%);
    }

    .drawer__button > span:first-child {
        transform: translate(-50%, calc(-50% - 1rem));
        transition: transform 0.3s ease;
    }

    .drawer__button > span:nth-child(2) {
        transform: translate(-50%, -50%);
        transition: opacity 0.3s ease;
    }

    .drawer__button > span:last-child {
        transform: translate(-50%, calc(-50% + 1rem));
        transition: transform 0.3s ease;
    }

    /* 展開時のデザイン */
    .drawer__button.active > span:first-child {
        transform: translate(-50%, -50%) rotate(-45deg);
    }

    .drawer__button.active > span:nth-child(2) {
        opacity: 0;
    }

    .drawer__button.active > span:last-child {
        transform: translate(-50%, -50%) rotate(45deg);
    }

    /* メニューのデザイン */
    .drawer__nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.5);
        transition: opacity 0.3s ease;
        opacity: 0;
        visibility: hidden;
    }

    .drawer__nav.active {
        opacity: 1;
        visibility: visible;
    }

    .drawer__nav__inner {
        position: relative;
        width: 80%;
        height: 100%;
        background-color: white;
        padding: 4rem 1.5rem 1rem;
        margin: 0 0 0 auto;
        overflow: scroll;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }

    .drawer__nav.active .drawer__nav__inner {
        transform: translateX(0);
    }

    .drawer__nav__menu {
        list-style: none;
        padding-left: 0;
        margin-top: 50px;
    }

    .drawer__nav__item {
        position: relative;
    }

    .drawer__nav__link {
        display: block;
        text-decoration: none;
        padding: 1.5rem 1.5rem;
        font-size: 2.5rem;
    }

    .drawer__nav__link:hover {
        cursor: pointer;
        color:  #666666;
    }

    /* ハンバーガーメニュー展開時、背景を固定 */
    body.active {
        height: 100%;
        overflow: hidden;
    }

    /*TOP*/
    #top {
        position: relative;
        padding: 300px 0 0;
    }

    .top_text {
        font-size: 1.6rem;
        width: 350px;
        height: 90px;
        margin: 0 auto;
        position: absolute;
        left: 50%;
        bottom: 10px;
        transform: translateX(-50%);
    }

    .small_text {
        font-size: 1.1rem;
    }

    /*about*/
    .about_contents p {
        padding: 0 10px;
    }

    /*house-environment*/
    .house-environment_contents-text {
        font-size: 1.3rem;
    }

    .house-environment_item {
        width: initial;
        justify-content: center;
    }

    .item-image {
        width: 75%;
        margin: 0 auto;
    }

    .item-text {
        width: 310px;
        top: 77%;
    }

    .item_text-title {
        font-size: 2rem;
    }

    .item-text p {
        font-size: 1rem;
    }

    .item:nth-child(2) {
        margin-top: 200px;
    }

    /*service*/
    .service_contents-text {
        padding: 0 20px;
    }

    .service_box {
        margin-top: 30px;
        padding-bottom: 250px;
    }

    .box_text-title {
        font-size: 2rem;
    }

    .service_box-text {
        padding: 20px 5px;
        width: 91%;
    }
    
    .service_box-text p {
        font-size: 1rem;
    }

    .box-image {
        width: initial;
    } 
    
    .box-image img {
        width: 60%;
    }

    .service_box:nth-of-type(even) {
        /* --- 交互の表示を打ち消す --- */
        display: block;
    }

    .service_box:nth-of-type(4) {
        padding-bottom: 150px;
    }

    .service_box:nth-of-type(1) .service_box-text {
        top: 36%;
        left: 50%;
        transform: translateX(-50%);
    }

    .service_box:nth-of-type(2) .service_box-text {
        top: 33%;
        left: 50%;
        transform: translateX(-50%);
    }

    .service_box:nth-of-type(3) .service_box-text {
        top: 35%;
        left: 50%;
        transform: translateX(-50%);
    }

    .service_box:nth-of-type(4) .service_box-text {
        top: 38%;
        left: 50%;
        transform: translateX(-50%);
    }

    /*cost*/
    .cost_contents img {
        width: 75%;
    }

    .rent_banner {
        line-height: 50px;
        font-size: 1.4rem;
    }

    .cost-text, .cost-text-02 {
        font-size: 0.8rem;
        line-height: 2;
        margin:0 30px;
    }

    /*outline*/
    .outline_info {
        background-size: 140px 105px;
        background-position: 24% 160px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .outline_info dl {
        font-size: 1.2rem;
    }

    .outline_info dt {
        width: 6%;
    }

    .outline_info dd {
        width: 94%;
    }

    /*contact*/
    .form-item {
        display: initial;
    }

    .form-item-label {
        font-size: 1.4rem;
        margin: 20px 0 10px 30px;
    }

    .form-item-label.isMsg {
        margin: 20px 0 10px 30px;
    }

    .form-item-label-required.isName {
        margin-left: 108px;
    }

    .form-item-label-required.isNumber {
        margin-left: 80px;
    }

    .form-item-input {
        margin: 0 auto;
        max-width: 330px;
    }

    .form-item-textarea {
        max-width: 330px;
        margin-left: 0;
    }
}