@charset "utf-8";

/* グローバルのcss変数を定義 */
:root {
	--my-width: 1024px;		/* pc表示時の各要素の幅 */
    --my-width-phone: 100%;    /* スマホ表示時の各要素の幅 */    
	--base-color: #fff;		/* ベースカラー */
	--base-color-rgb: 255, 255, 255;		/* ベースカラー */    
	--main-color: #FFF0F5;		/* メインカラー */
	--accent-color: #7EBF41;	/* アクセントカラー*/
	--text-color: #333;		/* テキストカラー */
}

/* 筆文字っぽい書体 */
.yuji-syuku-regular {
    font-family: "Yuji Syuku", serif;
    font-weight: 400;
    font-style: normal;
  }
  

/*全体の設定*/
*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
	font-family: "ヒラギノ角ゴ ProN W3", HiraKakuProN-W3, 游ゴシック, "Yu Gothic", メイリオ, Meiryo, Verdana, Helvetica, Arial, sans-serif;
	font-size: 20px;
	font-weight: normal;
	text-decoration: none;
	color: var(--text-color);
	list-style-type: none;
	line-height: 200%;
}

/* クリアフィックス */
.clearfix:after{
	content: "text";
	display: block;
	clear: both;
	height: 0;
	width: 0;
	overflow: hidden;
	visibility: hidden;
}

/* 背景 */
body {
	background-color: #fff;	/* グラデーションが適応されなかった場合白を表示 */
	/* 背景にグラデーション */
	background-image:
		linear-gradient(to bottom, var(--main-color), var(--base-color), var(--main-color));
	background-repeat: no-repeat;	/* 背景色の繰り返しなし */
}

/* ヘッダー部分 */
header {
    background: var(--base-color);  /* 透明が適応されなかった場合 */
    background: rgba(var(--base-color-rgb), 0.8);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

.header-inner {
    width: var(--my-width);
    margin: 10px auto 10px;
    /* background: #ccc; */
}

h1{
    width: 353px;
    float: left;
}

h1 a {
    display: block; /*ブロックスタイル*/
    height: 0;      /* 高さ無し */
	padding-top: 100px;  /* 画像を表示する箇所 */
	overflow: hidden;   /* はみ出た文字列は隠す */
	background-image: url(../img/Bestyle長崎＿横.png);   /* 背景としてロゴを表示 */
	background-size: 100%;  /* 背景画像は100%サイズで表示 */

}

.header-pc-nav {
    width: calc( var(--my-width) - 353px);
    height: 100px;
    float: right;
}
.header-pc-nav ul{
    margin-top: 25px;
    font-size: 0;   /* inline-blockによるli間の隙間を解消するための記述 */
}
.header-pc-nav ul li{
    display: inline-block;
    width: calc( (var(--my-width) - 353px) / 5 );
    height: 50px;
}

.header-pc-nav ul li a{
    display: block;
	font-size: 25px;
    text-align: center;
    font-weight: bold;
}

.header-pc-nav ul li a#now-page {
    color: var(--accent-color);
}
.header-pc-nav-list {
    display: flex;
    justify-content: space-around;
}
.header-pc-nav-list li {
    background: #09b;
}

/* スマホ用メニューアイコン */
.header-phone-nav-icon {
    display: none;
    float: right;
    height: 80px;
    text-align: center;
    line-height: 80px;
    margin-right: 10px;
    background-color: var(--main-color);
    border-radius: 50%;
}
/* スマホ用メニューアイコン(閉じる) */
.header-phone-nav-icon-close {
    display: none;
    float: right;
    height: 80px;
    width: 80px;
    text-align: center;
    line-height: 80px;
    margin-right: 10px;
    background-color: var(--main-color);
    border-radius: 50%;
}
/* スマホのメニュー */
.phone-nav {
    display: none;
    position: fixed;
    top: -120%;
    width: 100%;
    background-color: rgba(var(--base-color-rgb), 0.9);
    z-index: 99;

}
.phone-nav-inner {
    width: 70%;
    padding-bottom: 10px;
    margin: 100px auto 0;
    text-align: center;
}
.phone-nav-inner li{
    margin-bottom: 5px;
    background-color: var(--base-color);
    border-radius: 10%;
}
.phone-nav-inner li a{
    display: block;
}
main{
    margin-top: 130px;
}

section {
    width: var(--my-width);
    margin: 50px auto 50px;
}

footer {
    background: var(--base-color);  /* 透明が適応されなかった場合 */
    background: rgba(var(--base-color-rgb), 0.5);
    text-align: center; /* 中央に配置 */
}
footer address, footer small {
    font-size: 15px;
}

/* このクラスが付くと背景をベースカラーの角丸 */
.frame {
	background-color: var(--base-color);
	border-radius: 30px;
    padding-bottom: 40px;
}

h2 {
    padding-top: 1em;
    padding-left: 2em;
    font-size: 30px;
    font-weight: bold;
}

a:hover {
    opacity: 0.7;
}

/* 全共通部のモバイル用 */
@media screen and (max-width: 480px){
    .header-inner {
        width: var(--my-width-phone);
    }
    h1 {
        width: 283px;
        margin-left: auto;
        margin-right: auto;
    }
    h1 a {
        padding-top: 80px;  /* 画像を表示する箇所 */
    
    }
    .header-phone-nav-icon {
        display: block;
    }
    .phone-nav {
        display: block;
    }
    section {
        width: var(--my-width-phone);
    }
    .header-pc-nav{
        display: none;
    }

}

/****************/
/* トップページ */
/****************/
.phone-slideshow {
    display: none;
}
.slideshow {
    overflow: hidden;   /* はみ出た部分は非表示 */
    position: relative; /* 基準になるように */
}
.pc-slideshow {
    display: block;
    min-width: 1000px;  /* 1000pxより小さくならない */
    max-width: 1000px;
    height: 500px;
    left: 50%;
    margin-left: -500px;
}
.pc-slideshow img {
    display: none;  /* 非表示 */
    position: absolute; /* 1箇所に重ねる */
    width: 1000px;
    height: 500px;
    border-radius: 10px;
}

.main-message{
    position: absolute;
    width: 1000px;
    top: 35%;
    text-align: center;
    text-shadow: 1px 1px 2px white;
}
.main-message p{
    font-size: 80px;
    font-weight: bold;
}

.main-greeting-inner {
    width: 80%;
    margin: 30px auto 0;
}

.main-greeting-inner h2{
    padding-top: 1em;
    padding-left: 2em;
    font-weight: normal;
	font-family: 'Zen Kurenaido', serif;
}

.main-greeting-inner p.main-greeting-text{
    width: 90%;
    margin: 20px auto 0;
	font-family: 'Zen Kurenaido', serif;
}

.main-greeting-inner p.signature{
    margin-top: 3em;
    padding-right: 2em;
    padding-bottom: 2em;
    text-align: right;
	font-family: 'Zen Kurenaido', serif;
}

/* トップページのモバイル用 */
@media screen and (max-width: 480px){
    .pc-slideshow {
        display: none;
    }
    .phone-slideshow {
        display: block;
        width: 100%;
        height: 500px;
        margin: 0;
        top: 0;
        left: 0;
    }
    .phone-slideshow img {
        display: none;  /* 非表示 */
        position: absolute; /* 1箇所に重ねる */
        width: 100%;
        border-radius: 10px;
    }
    .main-message{
        position: absolute;
        width: 100%;
        top: 40%;
        left: 50%;
        transform: translate(-50%, -50%);
        -webkit-transform: translate(-50%, -50%);
        -ms-transform: translate(-50%, -50%);
        text-align: center;
        text-shadow: 1px 1px 2px white;
    }
    .main-message p{
        /* font-size: 60px; */
        font-weight: bold;
        padding: 0 5px;
    }
    
    
}




/************/
/* 会社概要 */
/***********/
.section-profile-inner dl{
    display: flex;      /* dtとddを横並びにする */
    flex-wrap: wrap;    /* はみ出るときは折り返す */
    width: 80%;
    margin: 0 auto;
    /* padding-bottom: 20px; */
}

.section-profile-inner dt {
    width: 30%;
    /* margin-bottom: 20px; */
    padding: 10px 0;
    padding-left: 2em;
    margin-top: 40px;
    border-bottom: 1px solid var(--accent-color);
}
.section-profile-inner dd {
    width: 70%;
    /* margin-bottom: 20px; */
    padding: 10px 0;
    margin-top: 40px;
    border-bottom: 1px solid var(--accent-color);
}

/* 最後の行の下にマージンを追加 */
.section-profile-inner dt:last-of-type{
    margin-bottom: 2em;
}
.section-profile-inner dd:last-of-type{
    margin-bottom: 2em;
}

/************/
/* 技術紹介 */
/***********/
h3 {
    /* padding-left: 5em; */
    font-size: 25px;
    font-weight: bold;
    text-shadow: 1px 1px 2px white;
    margin-left: 5em;
    margin-top: 50px;
	border-radius: 10%;
    background: url(../img/外壁バナーぼかし.jpg);
    background-repeat: no-repeat;
    width: 300px;
    background-size: cover;
    text-align: center;
}

.section-techmology-inner p {
    margin: 20px auto 0;
    text-align: center;
}

.section-techmology-inner p:last-of-type {
    padding-bottom: 50px;
}
@media screen and (max-width: 480px){
    h3 {
        margin: 50px auto;
    }
}

/************/
/* アクセス */
/***********/
.access-map-area {
    margin: 20px auto -20px;
    text-align: center;
}
.access-message {
    margin: 80px auto 30px;
}
.access-message p{
    text-align: center;
    font-size: 30px;
    font-weight: bold;
}
.access-flex-container {
    display: flex;      /* dtとddを横並びにする */
    flex-wrap: wrap;    /* はみ出るときは折り返す */
    justify-content: space-around;  /* 子要素の余白が均等になる */
    width: 90%;
    margin: 0 auto;
    padding-bottom: 20px;
}
.access-flex-item {
    text-align: center;
    flex-basis: 30%;
    background-color: var(--main-color);
    border-radius: 10%;
    padding-top: 30px;
    padding-bottom: 30px;
}
.access-flex-item dt{
    background-position: top center;
    background-repeat: no-repeat;
    background-size: 50px;
    font-weight: bold;
}


@media screen and (max-width: 480px){
    .access-map-area {
        width: var(--my-width-phone);
    }
    .access-map-area iframe {
        display: block;
        width: 100%;
    }
    .access-flex-container {
        flex-direction: column; /* 子要素を縦並びにする */
    }
    .access-flex-item {
        margin: 0 1em 1em;  /* 子要素の隙間を作る */
    }
}