@charset "UTF-8";
/*共通項目*/
div, ul, ol, li, dl, dt, dd, p, a {font-size:18px;font-weight: 400; color: #3D312A;}
/*共通見出し設定*/
h1, h2, h3, h4, h5, h6 {font-weight:bold; font-style:normal; font-size:45px; color: #3D312A;}

/*ページ設定*/
*, *::before, *::after {
  box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}

a{
    text-decoration: none;
    color:black;
    display:block;
    position: relative;
    display: block;    /* インラインからブロック要素に変更 */
    height: 100%;      /* 親(li)の高さと同じにする */
    text-decoration: none;
}

img{
    width: 100%;
    height: auto;
}

/**/

/*ハンバーガー*/
header{
    width: 100%;
    height: auto;
}

.hamburger-menu {
    position: fixed;
    top: 20px;
    right: 20px;
    width:60px;
    height: 60px;
    cursor: pointer;
    z-index: 30;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 4px 16px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .hamburger-menu:hover {
    transform: scale(1.05) rotate(5deg);
  }
  
  .hamburger-menu .line {
    display: block;
    position: absolute;
    width: calc(100% - 20px);
    height: 4px;
    left: 10px;
    background: linear-gradient(90deg, #9f3639, #fd79a8);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(253, 121, 168, 0.3);
  }
  
  .hamburger-menu .line:nth-of-type(1) { top: 25%; }
  .hamburger-menu .line:nth-of-type(2) { top: 50%; transform: translateY(-50%); }
  .hamburger-menu .line:nth-of-type(3) { bottom: 25%; top: auto; }
  
  .hamburger-menu.active > .line:nth-of-type(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    background: linear-gradient(90deg, #9f3639, );
  }
  
  .hamburger-menu.active > .line:nth-of-type(2) {
    opacity: 0;
    transform: translateX(-30px) scale(0.5);
  }
  
  .hamburger-menu.active > .line:nth-of-type(3) {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%) rotate(-45deg);
    background: #fd79a8;
  }
  
  .nav-menu {
    display: none;
  }
  
  .nav-menu.active {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 30px;
    box-shadow:0 8px 32px rgba(0, 0, 0, 0.1), 0 4px 16px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 16px 8px;
    width: 80%;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: fadeIn 0.5s forwards;
    z-index: 30;
    gap:20px;
  }
  
  .nav-menu a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    padding: 14px;
    margin: 6px;
    border-radius: 25px;
    background: #9f3639;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  }
  
  @keyframes fadeIn {
    0% { top: 45%; opacity: 0; }
    100% { top: 50%; opacity: 1; }
  }


  @media screen and (min-width: 1025px){
    .hamburger-menu{
        display: none;
    }

    .pc_menu {
        display: block;
        width: 100%;
        max-width: 395px;
        position: fixed;
        top: 70px;
        z-index: 4;

        /* ★魔法の計算式 */
        /* 画面の半分(50%)から、コンテンツの半分(620px)を引いた位置に配置 */
        right: calc(50% - 620px); 
        left: auto;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .pc_menu:hover .pc_menu_inner{
        transform: scale(1.05) rotate(5deg);
    }

    .pc_menu_inner{
        background-color:rgba(255, 255, 255, 0.9);
        display: flex;
        align-items: center;
        justify-content: space-around;
        padding: 8px 20px;
        border-radius: 36px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 4px 16px rgba(0, 0, 0, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.3)
    }

    .pc_menu_inner ul{
        display: flex;
        margin: auto 0 auto 0;
        text-align: center;
        gap:30px;
    }

    .pc_menu_inner ul li a{
        font-weight: bold;
    }

    .pc_menu_inner ul li a:hover {
        color: #9f3639;
    }
}
/* 1240pxより画面が小さくなった時、端にぶつからないように調整 */
@media screen and (min-width: 1025px) and (max-width: 1280px) {
    .pc_menu {
        right: 20px; /* 画面が狭くなったら右端から20pxの位置に固定 */
        top:40px;
    }
}


.works_other .grid-layout_other li a{
  line-height:inherit;
}