* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    background-color: #fff;
    /* ヘッダーが固定なので、コンテンツが隠れないように上部に余白を持たせる */
    padding-top: 70px;
}

a[target="_blank"]::after {
  content: '';
  display: inline-block;
  width: 0.7em;     /* アイコンの幅 */
  height: 0.7em;    /* アイコンの高さ */
  margin-left: 0.2em; /* 文字とアイコンの隙間 */
  vertical-align: middle; /* 位置調整 */
  
  /* アイコンの画像（SVGを埋め込んでいます） */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'%3E%3C/path%3E%3Cpolyline points='15 3 21 3 21 9'%3E%3C/polyline%3E%3Cline x1='10' y1='14' x2='21' y2='3'%3E%3C/line%3E%3C/svg%3E") no-repeat center center;
  background-size: contain;
}

/* === ヘッダーのスタイル（デスクトップ・共通） === */
.header {
    position: fixed; /* 上部に固定 */
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: #fff;
    color: #111;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 1000; /* 他の要素より手前に表示 */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo {
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    color: #fff;
}

.logo img{
    height: 40px;
    margin: auto 0;
}

/* ナビゲーションメニュー（PC用デフォルト） */
.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 20px;
}

.nav-link {
    text-decoration: none;
    color: #111;
    font-size: 1.5vw;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #4da6ff;
}

/* ハンバーガーメニューアイコン（PCでは非表示） */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: #111;
}

.content{
    width: 90%;
    margin:0 auto;
    font-size: 20px;
}

.content h1{
    font-size: 30px;
    margin:0;
}

.content li{
    margin-left: 20px;
}

.topImage {
    position: relative;
    -webkit-text-stroke: 0.2vw white;
    paint-order: stroke;
}

.topImage img{
    max-height:93vh;
    width: 100%;
    object-fit: cover;
    min-height: 10vw;
}

.topImage h1{
    margin: 0;
    position: absolute;
    font-size: 5vw;
    text-align: right;
    bottom: 2vw;
    right: 0;
}

.topImage h2{
    margin: 0;
    position: absolute;
    font-size:3vw;
    text-align: right;
    bottom: 0;
    right: 0;
}

.product {
    position: relative;
    -webkit-text-stroke: 0.3vw white;
    paint-order: stroke;
    -webkit-transition: all .3s;
    transition: all .3s;
}

.product:hover{
    transform: scale(0.95, 0.95);
}

.product a{
    text-decoration: none;
    color: black;
}

.product img{
    width: 100%;
    height: 10vw;
    
    object-fit: cover;
}

.product h1{
    margin: 0;
    position: absolute;
    font-size: 4.7vw;
    text-align: left;
    bottom: 1vh;
    right: 0;
    
}

.product h2{
    margin: 0;
    position: absolute;
    font-size: 2.35vw;
    text-align: left;
    bottom: 0.2vh;
    right: 0;
    text-decoration: none;
}

/* === スマートフォン用スタイル（768px以下） === */
@media (max-width: 768px) {
    .hamburger {
        display: block; /* スマホで表示 */
    }

    /* ハンバーガーメニューがクリックされた時のアイコンの変化（×印にする） */
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* スマホ用のナビゲーションメニュー */
    .nav-menu {
        position: fixed;
        right: -100%; /* 画面の外（左側）に隠しておく */
        top: 70px; /* ヘッダーの高さ分下げる */
        gap: 0;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        text-align: center;
        transition: 0.3s; /* スライドのアニメーション */
        padding-bottom: 20px;
    }

    .nav-item {
        margin: 16px 0;
    }

    .nav-link{
        font-size: 5vw;
    }

    /* クラスが付与されたら表示（スライドイン） */
    .nav-menu.active {
        right: 0;
    }

    .content{
        font-size: 17px;
    }

    .content h1{
        font-size: 25px;
    }

    .content li{
        margin-left: 17px;
    }

    .product img{
        height: 20vw;
    }

    .product h1{
        font-size: 7vw;
    }

    .product h2{
        font-size: 3.5vw;
    }


    .topImage h1{
        font-size: 8vw;
    }

    .topImage h2{
        font-size: 4vw;
    }

    .topImage img{
        min-height: 13vw;
        max-width:100vw;
        max-height:92vh;
    }
}



