*{
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

/* --- Header Overall --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  align-items: center; /* 上下中央揃え */
  justify-content: space-between; /* ロゴとナビを両端に */
  width: 100%;
  box-sizing: border-box; /* paddingを幅に含める */
  padding: 1% 5%;
  z-index: 100;
}

/* --- Logo --- */
.header-logobox h1 a {
  display: block;
  line-height: 2;
  text-decoration: none;
  font-size: 4vw;
  color: #334155;
  font-weight: bold;
  transition: 0.5s;
}


/*ナビメニューのスタイルを指定*/
.NavMenu {
	position: fixed;
	z-index: 2;
	top: 0;
	left: 0;
	background: #fff;
	color: #334155;
	text-align: center;
	width: 100%;
	transform: translateX(-100%);
	transition: 0.6s;
}

.NavMenu ul{
	background: #ccc;
	width: 100%;
	margin: 0 auto;
	padding: 0;
}

.NavMenu ul li{
	font-size: 1.1em;
	list-style-type: none;
	padding: 0;
	width: 100%;
	border-bottom: 1px solid #DCDEDF;
  
}

.NavMenu ul li:last-child{
	padding-bottom: 0;
	border-bottom: none;
}

.NavMenu ul li a{
	display: block;
	color: #334155;
	padding: 1em 0;
  text-decoration: none;
}

.NavMenu ul li a:hover {
  opacity: 0.6;
}

/*トグルボタンが押されたときに付与するクラス*/
.NavMenu.active{
	transform: translateX(0%);
}

/*トグルボタンのスタイルを指定*/
.Toggle {
	position: fixed;
	right: 13px;
	top: 12px;
	width: 42px;
	height: 42px;
	cursor: pointer;
	z-index: 3;
}

.Toggle span {
	display: block;
	position: absolute;
	width: 30px;
	border-bottom: solid 3px #334155;
	transition: .35s;
	left: 6px;
}

.Toggle span:nth-child(1) {
	top: 9px;
}

.Toggle span:nth-child(2) {
	top: 18px;
}

.Toggle span:nth-child(3) {
	top: 27px;
}

/* 最初のspanをマイナス45度に */
.Toggle.active span:nth-child(1) {
	top: 18px;
	left: 6px;
	transform: rotate(-45deg);
}

/* 2番目と3番目のspanを45度に */
.Toggle.active span:nth-child(2),
.Toggle.active span:nth-child(3) {
	top: 18px;
	transform: rotate(45deg);
}


/* フッター全体：背景色はアーチの外側の色（前のセクションの色）に合わせると自然です */
footer {
    background-color: inherit; /* 前のセクションが白なら白にする */
    padding: 0; /* 余計な隙間をなくす */
}

/* コンタクトセクション：ここに直接グラデーションと切り抜きを適用 */
.footer-contact {
    text-align: center;
    padding: 12vw 5% 8vw; /* 上下の余白をvwで、左右を%で指定 */
    
    /* グラデーションを直接指定 */
    background: linear-gradient(135deg, #cce0f0 0%, #e8d8c8 100%);

    /* 楕円形で切り抜く命令 */
    /* ellipse(横の半径 縦の半径 at 中心位置X 中心位置Y) */
    clip-path: ellipse( 90% 100% at 50% 100%);
}

/* 白抜き文字：CONTACT（解決済みとのことですが、バランス調整用に） */
.footer-contact-title {
    font-family: 'Tenor Sans', sans-serif;
    font-size: clamp(4rem, 15vw, 10rem);
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.7);
    margin: 1vw 0;
}

.footer-contact-sub {
    font-size: 3vw;
}

.footer-contact-button {
    width: 70%;
    margin-top: 5%;
    margin-left: auto;
    margin-right: auto;
    border-radius: 10px;
    background-color: #FFF;
}


.footer-contact-button a {
    display: block;
    border:  2px solid transparent;
    /* transparentは透明色
    ホバー時に枠線を入れると、下の要素がずれるので、あらかじめ透明の枠線をいれて下の要素のずれを防止した。 */
    text-align: center;
    font-size: 4vw;
    line-height: 2.2;
    text-decoration: none;
    color: #8ca8c0;
    transition: 0.5s;
    letter-spacing: 0.05em;
} 

.footer-contact-button a:hover {
    border:  2px solid #cce0f0;
    border-radius: 10px;
    background-color: #cce0f0;
    color: #FFF;
    transition: 0.3s;
    /*  transitionは変化に時間をかけるプロパティ。1s=1秒 */
}

/* 下部のナビゲーションエリア */
.footer-flexbox {
    width: 73%;
    margin-left: auto;
    margin-right: auto;
    padding-top: 6%;
    padding-bottom: 3%;
    padding-left: 3%;
    padding-right: 5%;
    background-color: #F8F7F3; /* ここをアーチの下端の色に合わせると綺麗です */

}

.footer-flexbox ul {
    display: flex;
    width: 100%;
    margin-bottom: 3%;
    list-style: none;
    /* 黒丸（マーカー）の削除 */
}

.footer-flexbox ul li {
    width: calc( 100% / 3);
    border-left: 1px solid #8ca8c0;
}

.footer-flexbox ul li:last-child {
    border-right: 1px solid #8ca8c0;
}

.footer-flexbox ul li a {
    display: block;
    text-align: center;
    text-decoration: none;
    line-height: 1.8;
    color: #333333;
    transition: 0.3s;
}

.footer-flexbox ul li a:hover {
    color: #8ca8c0;
    transition: 0.3s;
}

.footer-flexbox p {
    /* margin-left: auto;
    margin-right: auto; */
    text-align: center;
}

/* TOPに戻るボタン */
.top-btn {
    display: block;
    text-decoration: none;
    display: flex;
    position: fixed;
    right: 18px;
    bottom: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: #334155;
    border: 1px solid #334155;
    font-size: 1.2vw;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: 0.5s;
}

.top-btn::before {
    content: "";
    display: block;
    width: 15px;
    height: 15px;
    border-top: 1px solid #334155;
    border-right: 1px solid #334155;
    transform: rotate(-45deg);
}

.top-btn:hover {
    background-color: #334155;
    color: #FAF9F6;
    transform: 0.5s;
}

.top-btn:hover::before {
    border-top: 1px solid #FAF9F6;
    border-right: 1px solid #FAF9F6;
    transform: 0.5s;
}