/* 共通部分 */
body {
    font-family: "Roboto","Rosarivo","Noto Sans JP",sans-serif;
}

/*header*/
*{
    padding: 0;
    margin: 0;
}

a{
    text-decoration: none;
    color: #000;
}

a:hover{
    color: #D07164;
}

.header{
    background-color: #F3EFE1;
    padding: 18px 50px 18px 0;
    margin-bottom: 80px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.header h2{
    display: none;
}

.header nav ul{
    display: flex;
    justify-content: end;
    list-style: none;
    letter-spacing: 0.15em;
    gap: 30px;
    text-align: center;
    font-size: 14px;
}

.header nav ul:hover{
    color: #D07164;
}

.header span{
    display: block;
    letter-spacing: 0.3em;
}

.contact_top::before,
.contact_top::after{/*疑似要素*/
  position: absolute;
  top: 38px; 
  right: 32px;
  width: 20px;
  height: 20px;
  transition: all 0.3s ease;
}

.contact_top::after{/*疑似要素*/
  content: url(../images/icon_nav.svg);
}

.contact_top::before{/*疑似要素*/
  content: url(../images/icon_nav_pink.svg);
  opacity: 0;
  right: 32px;
}

.contact_top:hover::before{/*疑似要素*/
  opacity: 1;
}

.contact_top:hover::after{/*疑似要素*/
  opacity: 0;
}

/* ハンバーガーメニュー */
@media screen and (max-width:480px){
    .menu-wrapper {
        position: relative;
    }

    .menu-icon {
        width: 8.5vw;
        height: 4.5vw;
        top: 3.5vw;
        position: fixed; /* ← fixedにして常に左上固定 */
        right: 4.5vw;
        cursor: pointer;
        z-index: 3;
        display: inline-block;
    }

    .menu-icon span {
        display: block;
        height: 2px;
        margin: 8px 0;
        background: #000;
        border-radius: 2px;
        transition: 0.4s;
    }
    
    /* ハンバーガーがXに変形 */
    #menu-toggle:checked + .menu-icon span:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }
    #menu-toggle:checked + .menu-icon span:nth-child(2) {
        opacity: 0;
    }
    #menu-toggle:checked + .menu-icon span:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }

    /* オーバーレイ背景 */
    .overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        opacity: 0;
        pointer-events: none;
        transition: 0.4s;
        z-index: 1;
    }

    #menu-toggle:checked ~ .overlay {
        opacity: 1;
        pointer-events: auto;
    }

    /* メニュー本体（左から出す） */
    .menu {
        position: fixed;
        top: 0;
        right: -100%; /* ← 初期位置を左へ */
        width: 100vw;
        height: 100%;
        background: #F3EFE1;
        box-shadow: 2px 0 8px rgba(0,0,0,0.2);
        transition: right 0.4s ease;
        z-index: 2;
    }

    #menu-toggle:checked ~ .menu {
        right: 0; /* ← 開いたときは左0へ */
    }

    .menu h2{
        display: block;
        font-size: 5vw;
        padding: 5vw 5vw 7.5vw;
        letter-spacing: 0.2em;
        font-weight: normal;
        font-family: "Rosarivo";
    }

    .menu ul{
        padding: 0 5vw;
    }

    .menu li{
        border-bottom:solid  #E0CEC0 1px;
    }

    .menu a{
        width: 100%;
        text-decoration: none;
        color: #000;
        font-size: 1.2rem;
        transition: color 0.3s;
        position: relative;
        display: block;
        padding: 5vw 0;
    }

    .menu span{
        display: inline-block;
        letter-spacing: 0.3em;
        margin-left: 5vw;
    }

    .menu a::after{/*疑似要素*/
        position: absolute;
        content: url(../images/menu_icon_sp.svg);
        right: 0;
        top: 50%;
        transform: translateY(calc(-23px / 2));
    }
    
    .menu a:hover{
        color: #D07164;
    }
    
    .contact_top:last-child:after{/*疑似要素*/
        top: 55%;
        content: url(../images/icon_nav.svg);
    }

    .contact_top:hover::before{/*疑似要素*/
        opacity: 1;
        right: -1vw;
        top: 35%;
    }
}

/*タブレット版*/
@media screen and (max-width:1240px){
    .header{
        margin-bottom: 10vw;
    }
}

/*スマホ版*/
@media screen and (max-width:480px){
    .header{
        height: 60px;
        margin-bottom: 10vw;
    }

    .header h2{
        display: block;
        font-size: 6vw;
        padding: 5vw 5vw 7.5vw;
    }

    .header nav ul{
        display: block;
        gap: 5vw;
        text-align:left;
    }
}

/*aside*/
aside{
    width: 1200px;
    margin: 0 auto 60px;
}

.contact{
    display: block;
    width: 1200px;
    padding: 10px;
    color: #402627;
    text-align: center;
    background-color: #E9CEC5;
    border-radius: 10px;
}

.contact_inner{
    width: 1180px;
    height: 230px;
    border: 2px solid white;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

aside .btn{
    font-size: 36px;
    font-family: "Rosarivo";
    letter-spacing: 0.15em;
    position: relative;
    margin: 0 auto 10px;
}

aside .btn::before,
aside .btn::after{/*疑似要素*/
  position: absolute;
  top: 50%;
  transform: translateY(calc(-42px / 2));
  width: 34px;
  height: 34px;
  transition: all 0.3s ease;
}

aside .btn::after{/*疑似要素*/
  content: url(../images/icon.svg);
}

aside .btn::before{/*疑似要素*/
  content: url(../images/icon_pink.svg);
  right: -34px;
  opacity: 0;
}

aside .contact:hover .btn::before{/*疑似要素*/
  opacity: 1;
}

aside .contact:hover .btn::after{/*疑似要素*/
  opacity: 0;
}

.contact:hover {
    color: #D07164;
    background-color: #EADCD7;
}

aside p{
    letter-spacing: 0.1em;
    font-size: 16px;
}

.mobile{
    display: none;
}

a{
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all  0.3s ease;
}

/*タブレット版*/
@media screen and (min-width:481px) and (max-width:1240px){   
    .contact{
        width: 100%;
        height: 100%;
        margin: 3.4vw;
    }   
}  

/*タブレット版*/
@media screen and (max-width:1240px){
    aside{
        width: 100%;
    }

    .contact{
        width: 85vw;
        height: 100%;
        margin: 7.5vw;
    }

    .contact_inner{
        width: 100%;
    }

    aside .btn{
        left: calc(-34px / 2);
    }
    
    .mobile{
        display: block;
    }
}

/*スマホ版*/
@media screen and (max-width:480px){
    aside{
        width: 100%;
    }

    .contact{
        width: 85vw;
        height: 66.5vw;
        margin: 7.5vw;
    }

    .contact_inner{
        width: 80vw;
        height: 61.5vw;
        font-size: 3.75vw;
    }

    aside .btn{
        left: calc(-34px / 2);
    }

    aside p{
        font-size: 3.75vw;
    }
    .mobile{
        display: block;
    }
}

/*footer*/
footer{
    background-color: white;
    text-align: center;
    padding-bottom: 20px;
}

footer nav ul{
    display: flex;
    list-style-type: none;
    margin: 0 auto 60px;
    width: 330px;
    gap: 40px;
    justify-content: center;
}

ul{
  list-style-type: none;
}

a.contact_footer{
    position: relative;
}

.contact_footer::before,
.contact_footer::after{/*疑似要素*/
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  transform: translateY(-8px);  
  transition: all 0.3s ease;
  right: -22px;
}

.contact_footer::after{/*疑似要素*/
  content: url(../images/icon_nav.svg);
}

.contact_footer::before{/*疑似要素*/
  content: url(../images/icon_nav_pink.svg);
  opacity: 0;
}

.contact_footer:hover::before{/*疑似要素*/
  opacity: 1;
}

.contact_footer:hover::after{/*疑似要素*/
  opacity: 0;
}

/*スマホ版*/
@media screen and (max-width:480px){
    footer nav ul{
    margin: 0 auto 12.5vw;
    width: 100%;
    gap: 4vw;
    }
}