@charset "utf-8";
/* レイアウトのためのCSS */

body{
    font-family: 'Noto Sans JP', sans-serif;
    letter-spacing: 0.1em;
	color: #fff;
	font-size:1rem;
	line-height:1.85;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	-webkit-text-size-adjust: 100%; 
	word-wrap: break-word;
}

ul{
	margin:0;
	padding: 0;
	list-style: none;
}

a{
	color: #fff;
	text-decoration: none;
    outline: none;
}

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

*{
    box-sizing: border-box
}

/* HEADER */

nav{
	position: relative;
	z-index:999;
	padding:5px 20px;
}

h1{
    font-size: 2rem;
    position: absolute;
    top:30%;
    left:50%;
    transform: translate(-50%,-50%);
    z-index: 999;
    letter-spacing: 0.1em;
    width:10em;
    opacity: 0;/*ローディング画面では透過*/
    color: #000; /* 黒色 */
}

@media screen and (max-width:768px){
 h1{
    font-size: 1.5rem;
    }
}

body.appear h1{
    opacity: 1;
}

/* #left1内のpタグのスタイル */
#left1 p{
    position: absolute;
    top: 40%;
    left: calc(35% - 5em); /* H1の左端に合わせる（H1はwidth: 10em、left: 50%、transform: translate(-50%, -50%)なので左端は50% - 5em） */
    transform: translateY(-50%);
    font-size: 0.85rem;
    line-height: 2;
    letter-spacing: 0.05em;
    width: 90%;
    max-width: 600px;
    opacity: 0;
    z-index: 999;
    margin-top: calc(8em + 15px); /* H1の下に配置、15px下に移動 */
    text-align: left; /* 左揃え */
    display: block !important; /* ブロック要素として表示 */
    color: #fff; /* 白色 */
}

/* ハイライトスタイル */
.highlight {
    background-color: rgba(38, 86, 116, 0.8); /* 透明度80%の背景#265674 */
    padding: 0.2em 0.4em; /* テキストの行だけに背景を適用 */
    box-decoration-break: clone; /* 改行時も背景を維持 */
    -webkit-box-decoration-break: clone; /* Safari対応 */
    display: inline; /* インラインでテキストの流れに沿う */
}

.highlight_w {
    background-color: rgba(255, 255, 255, 0.8); /* 透明度80%の白背景 */
    padding: 0.2em 0.4em; /* テキストの行だけに背景を適用 */
    box-decoration-break: clone; /* 改行時も背景を維持 */
    -webkit-box-decoration-break: clone; /* Safari対応 */
    display: inline-block; /* インラインブロックで確実に背景を表示 */
    color: #000; /* テキストを黒に明示的に指定 */
}

/* smallタグにhighlight_wクラスがついている場合のスタイル */
small.highlight_w {
    background-color: rgba(255, 255, 255, 0.8); /* 透明度80%の白背景 */
    padding: 0.2em 0.4em; /* テキストの行だけに背景を適用 */
    box-decoration-break: clone; /* 改行時も背景を維持 */
    -webkit-box-decoration-break: clone; /* Safari対応 */
    display: inline-block; /* インラインブロックで確実に背景を表示 */
    color: #000; /* テキストを黒に明示的に指定 */
}

body.appear #left1 p{
    opacity: 1;
}

/* #left1内のプロジェクトストーリーボタンのスタイル */
#left1 .project-story-btn {
    position: absolute;
    top: 40%;
    left: calc(35% - 5em);
    transform: translateY(-50%);
    opacity: 0;
    z-index: 999;
    margin-top: calc(8em + 15px + 12em); /* Pタグの下に配置 */
    text-align: left;
}

body.appear #left1 .project-story-btn {
    opacity: 1;
}

/* #left1内のプロジェクトストーリーボタンのボタンスタイル */
#left1 .project-story-btn .btn {
	background-color: rgba(38, 86, 116, 1); /* 背景色を設定 */
	border-color: rgba(38, 86, 116, 1); /* ボーダー色も設定 */
	color: #fff;
}

#left1 .project-story-btn .btn span {
	color: #fff;
}

#left1 .project-story-btn .bgleft:before {
	background: rgba(38, 86, 116, 0.8); /* ホバー時の背景色 */
}

@media screen and (max-width:768px){
    #left1 .project-story-btn {
        margin-top: calc(6em + 15px + 10em); /* モバイル時の調整 */
    }
}

@media screen and (max-width:768px){
    #left1 p{
        font-size: 0.75rem;
        margin-top: calc(6em + 15px); /* 15px下に移動 */
    }
}

/* area */
.sp-bottom{
    text-align: center;
}

#left6 .sp-bottom{
    position: absolute;
    top:50%;
    left:50%;
    transform: translate(-50%,-50%);    
}

h2{
    font-size: 2rem;
    margin: 0 0 30px 0;
}

@media screen and (max-width:550px){
 h2{
    font-size: 1.5rem;
    }
}


#left6 .sp-bottom p{
    margin:0 0 50px 0;
    letter-spacing: 0.3em;
    white-space: nowrap;
}

/* #left3と#left4のpタグのスタイル */
#left3 .sp-bottom p {
    font-size: 1rem;
    line-height: 1.85;
    font-weight: normal;
}

/* #left4のpタグを明示的に通常のpタグスタイルに（h3の後に来るpタグ） */
#left4 .sp-bottom p {
    font-size: 1rem;
    font-weight: normal;
    line-height: 1.85 ;
    margin: 30px 0 0 0;
    padding: 0;
    text-align: left; /* 左寄せ */
}

/* PC表示時：#left4 の本文だけ左右の余白を増やす */
@media screen and (min-width: 769px){
    #left4 .sp-bottom p{
        margin-left: 100px;
        margin-right: 100px;
    }
}

#left6 .sp-bottom ul{
    display: flex;
    justify-content: center;
}

/* Contact: お問い合わせフォームボタンの下に余白 */
#left6 .sp-bottom > a.btn{
    display: inline-block;
    margin-bottom: 80px;
}

#left6 .sp-bottom ul li{
    margin: 0 10px;
}

#left6 .sp-bottom ul img{
     height:25px;   
}

#footer{
    position: fixed;
    bottom:20px;
    left: 20px;
    color: #000; /* 黒色 */
}

#footer small{
    color: #000; /* 黒色 */
}

@media screen and (max-width:550px){
 
#footer{
    bottom:inherit;
    left: 20px;
    top:20px;
}   

#footer small{
    display: none;
}

/* モバイル時：#left4（ComeBack MATERIAL）内のテキストを一回り小さく */
#left4 .sp-bottom h3{
    font-size: 0.9rem;
    line-height: 1.6;
}

#left4 .sp-bottom p{
    font-size: 0.8rem;
    line-height: 1.8;
}
}
