@charset "utf-8";

@font-face {
    font-family: "kiwimaru";
    src: url("../../font/KiwiMaru-Regular.woff2") format("woff2");
    font-display: swap;
  }

body {
    font-family: 'kiwimaru', serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
    color: #333;
}

nav {
    background-color: #872523;
    color: #fff;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 4px solid #888888;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger div {
    width: 32px;
    height: 3px;
    border-radius: 16px;
    background-color: #fff;
    margin: 2px 0;
    transition: transform 0.3s, opacity 0.3s;
    transform-origin: center;
}


/*オープン時の形状を「X」にする*/
.hamburger.active div:nth-of-type(1) {
    transform: rotate(45deg) translate(5px, 5px); /* 右上がりに回転し、適切な位置へ移動 */
}

.hamburger.active div:nth-of-type(2) {
    opacity: 0; /* 真ん中の線を完全に非表示にする */
}

.hamburger.active div:nth-of-type(3) {
    transform: rotate(-45deg) translate(5px, -5px); /* 右下がりに回転し、適切な位置へ移動 */
}

.nav-links {
    display: flex;
    gap: 15px;
    opacity: 1;
    visibility: visible;
    transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.3s;
    max-height: 500px;
    overflow: hidden;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    transition: transform 0.3s, color 0.3s;
}
.nav-links a:hover {
    color: #f0c0b0;
    transform: scale(0.9);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    .nav-links {
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #872523;
        gap: 10px;
        z-index: 1000;
        max-height: 0;
        opacity: 0;
        visibility: hidden;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.3s;
        display: flex; /* ここはflexでOK、display: none;は書かない */
    }
    .nav-links.active {
        opacity: 1;
        visibility: visible;
        max-height: 300px; /* メニュー内容に応じて調整 */
    }
    .nav-links.animating-out {
        opacity: 0;
        max-height: 0;
        visibility: hidden;
    }
}

.1stimg {
    text-align: center;
}

header {
    text-align: center;
    padding: 128px 20px;
    background: url('../../img/header.avif') no-repeat center/cover;
    color: #fff;
}

h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(20px);
    animation: slideDown 1s ease-out forwards;
}

h2 {
    font-size: 1.5rem;
    margin-top: 20px;
    position: relative;
    padding-bottom: 5px;
}

h2::after {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(to right, #872523 0%, rgba(135, 37, 35, 0.1) 100%);
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
}

section {
    padding: 40px 20px;
}

.buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.button {
    display: inline-block;
    background-color: #872523;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-align: center;
    transition: background-color 0.3s, transform 0.3s;
    text-decoration: none;
}

.button:hover {
    background-color: #a9382b;
    transform: scale(1.1);
}

footer {
    border-top: 4px solid #888888;
    text-align: center;
    padding: 16px;
    background-color: #000236;
    color: #fff;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.social-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
    transition: transform 0.3s ease, color 0.3s;
}

.social-links a:hover {
    color: #f0c0b0;
    transform: scale(1.2);
}

/* アニメーション */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.title {
    text-shadow: 5px 10px 8px #000000;
}

.subtitle {
    text-shadow: 5px 10px 8px #000000;
}


#parts {
    padding: 40px 20px;
}

#parts h2 {
    text-align: left;
    margin-bottom: 20px;
}

.part-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.part-card {
    width: 250px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.part-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.part-image {
    width: 100%;
    height: auto;
    image-rendering: auto;
    object-fit: cover;
    display: block; /* 余計な隙間をなくす */
}

.part-text {
    padding: 15px;
    text-align: center;
}

.part-text h3 {
    margin-bottom: 10px;
    color: #872523;
}

.divider {
    height: 8px;
    background-color: #872523;
    margin-top: -4px;
}

.divider2 {
    height: 8px;
    background-color: #888888;
    margin-top: -4px;
}

.last {
    margin-bottom: 128px;
}

.insta_btn2{/*ボタンの下地*/
    color: #FFF;/*文字・アイコン色*/
    border-radius: 7px;/*角丸に*/
    position: relative;
    display: inline-block;
    height: 50px;/*高さ*/
    width: 190px;/*幅*/
    text-align: center;/*中身を中央寄せ*/
    font-size: 25px;/*文字のサイズ*/
    line-height: 50px;/*高さと合わせる*/
    background: -webkit-linear-gradient(135deg, #427eff 0%, #f13f79 70%) no-repeat;
    background: linear-gradient(135deg, #427eff 0%, #f13f79 70%) no-repeat;/*グラデーション①*/
    overflow: hidden;/*はみ出た部分を隠す*/
    text-decoration:none;/*下線は消す*/
  }
  
  .insta_btn2:before{/*グラデーション②*/
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;/*全体を覆う*/
    height: 100%;/*全体を覆う*/
    background: -webkit-linear-gradient(15deg, #ffdb2c, rgb(249, 118, 76) 25%, rgba(255, 77, 64, 0) 50%) no-repeat;
    background: linear-gradient(15deg, #ffdb2c, rgb(249, 118, 76) 25%, rgba(255, 77, 64, 0) 50%) no-repeat;
  }
  
  .insta_btn2 .fa-instagram{/*アイコン*/
    font-size: 35px;/*アイコンサイズ*/
    position: relative;
    top: 4px;/*アイコン位置の微調整*/
  }
  
  .insta_btn2 span {/*テキスト*/
    display:inline-block;
    position: relative;
    transition: .5s
  }
  
  .insta_btn2:hover span{/*ホバーで一周回転*/
    -webkit-transform: rotateX(360deg);
    -ms-transform: rotateX(360deg);
    transform: rotateX(360deg);
  }

.instagram-media a {
    background-color: #872523 !important;
}
        
@media (max-width: 600px) {
.instagram-media {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    overflow-x: hidden;
}
}
