@charset "UTF-8";
/* CSS Document */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif, "Aktiv Grotesk";
    line-height: 1.6;
    overflow-x: hidden; /* 横スクロールを防ぐ */
}

.hero {
    background-image: url("../img/main_logo.jpg");
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: bold;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* モバイルでは2カラム */
    gap: 0; /* 余白をなくす */
    width: 100vw; /* ウィンドウ幅にフィット */
}

/* 初期状態で透明にしておく */
.gallery-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* スクロールで見えたときにフェードイン */
.gallery-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像を枠にフィットさせる */
    display: block;
    transition: opacity 0.5s ease; /* ホバー時のフェードアウト */
}


.gallery-item {
    position: relative;
    display: inline-block;
}

.gallery-item a {
    display: block;  /* インライン要素のままだとレイアウト崩れの原因になる */
    position: relative; /* 画像のabsolute指定を有効にする */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 黒の透過 */
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.overlay .buy-link {
    font-size: 1rem;
    text-decoration: underline;
    color: black;
}

.overlay .buy-link_w {
    font-size: 1rem;
    text-decoration: underline;
    color: white;
}

.gallery-item:hover .overlay, /* PC用：マウスホバー時 */
.gallery-item:active .overlay, /* SP用：タップ時 */
.gallery-item a:focus .overlay { /* アクセシビリティ用 */
    opacity: 1;
    visibility: visible;
}

/* 商品名と価格表示用のスタイル */
.item-info {
    position: absolute;
    bottom: 20px; /* 画像の下部に表示 */
    left: 0;
    width: 100%;
    color: black; /* 白文字 */
    font-size: 1rem;
    text-align: center;
    text-decoration: underline; /* 下線 */
    /*background-color: rgba(0, 0, 0, 0.5); /* 背景を半透明の黒に */
    padding: 5px 0;
    opacity: 1;
    transition: opacity 0.3s ease; /* フェードアウト用 */
}

.item-info_w {
    position: absolute;
    bottom: 20px; /* 画像の下部に表示 */
    left: 0;
    width: 100%;
    color: white; /* 白文字 */
    font-size: 1rem;
    text-align: center;
    text-decoration: underline; /* 下線 */
    /*background-color: rgba(0, 0, 0, 0.5); /* 背景を半透明の黒に */
    padding: 5px 0;
    opacity: 1;
    transition: opacity 0.3s ease; /* フェードアウト用 */
}

@media(max-width: 768px) {
     .item-info,
    .item-info_w {
        font-size: 0.8rem; /* SP時の文字サイズを少し小さく */
        padding: 3px 0; /* パディングを調整してスペースを節約 */
    }
}


/* マウスホバー時に非表示に */
.gallery-item:hover .item-info,
.gallery-item:active .item-info {
    opacity: 0;
}


/* 画像のフェードインアニメーション */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/*.gallery-item {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.gallery-item:nth-child(odd) {
    animation-delay: 0.2s; /* 交互に少し遅延 */
/*}

.gallery-item:nth-child(even) {
    animation-delay: 0.4s;
}*/


/* ホバー時にフェードで画像を薄くする処理 */
.gallery-item:hover img {
    opacity: 0.5;
}

/* リンクがない画像のホバーアクションを無効化 
.gallery-item:not(a) img:hover {
    opacity: 1;
    cursor: default;
}*/


/* スクロールで画面に表示されるときのフェードイン */
.fade-in.visible {
    opacity: 1;
}

img.plus-mark {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 80px; 
    height: 20px;
    cursor: pointer;
}

/* PCスタイル: 768px以上の画面では4カラム */
@media(min-width: 768px) {
    .gallery {
        grid-template-columns: repeat(4, 1fr); /* 4カラム */
    }
}

@media(max-width: 768px) {
    img.plus-mark {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 55px; 
    height: 20px;
    cursor: pointer;
}
}

/* フッター */
footer {
    padding: 40px 20px;
}

.footer-logo {
    text-align: center;
    margin-top: 80px;
    margin-bottom: 50px;
}

.footer-logo img {
    max-width: 200px;
    height: auto;
}

.footer-columns {
    display: flex;
    justify-content: center; /* 中央寄せに変更 */
    gap: 40px; /* カラム間の間隔を縮小 */
    align-items: top;
    margin: 0 auto;
    padding: 20px;
    max-width: 1200px;
    line-height: 1em;
}

.footer-section {
    border-left: 1px solid #ccc; /* 左側の区切り線を追加 */
    padding-left: 40px; /* 左側の余白を追加 */
}

.footer-section h3 {
    text-align: left;  /* 左揃えに設定 */
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

/* スマートフォン向けスタイル */
@media screen and (max-width: 767px) {
    .footer-columns {
        flex-direction: column;
        gap: 30px;
    }

    .footer-section {
        width: 100%;
        text-align: left;  /* センター揃えから左揃えに変更 */
				line-height: 0.9em;
    }
    
    .footer-section h3 {
        text-align: left;  /* 見出しも左揃えに */
		line-height: 1.2em;
    }
    
    .footer-section.social-share {
        text-align: left;  /* ソーシャルメディアセクションも左揃えに */
    }
    
    .social-icons {
        justify-content: flex-start;  /* ソーシャルアイコンを左揃えに */
    }
}

/* ソーシャルメディアセクション */
.social-share {
    text-align: left; /* 左揃えをデフォルトに設定 */
}

.social-icons {
    display: flex;
    gap: 20px;
}

.social-icons a {
    color: #000; /* アイコンを黒色に設定 */
    font-size: 24px;
    text-decoration: none;
}

/* PCサイズの場合のみ中央揃えにする */
@media (min-width: 768px) {
    .social-share {
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
}

.legal-links {
    border-top: 1px solid #ccc; /* 上部に区切り線を追加 */
    margin-top: 10px;
    padding-top: 10px;
}

.legal-links ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.legal-links ul li a {
    color: #333;
    text-decoration: none;
    font-size: 12px;
}

.copyright {
    text-align: center;  /* センター揃えに設定 */
    font-size: 12px;
    color: #666;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .legal-links ul {
        flex-direction: column;
        gap: 10px;
		line-height: 0.9em;
    }
    
    .footer-section ul li {
        margin-bottom: 15px;
    }
}

.main-visual {
    width: 100%;
    overflow: hidden;
}

.main-visual picture {
    width: 100%;
    display: block;
}

.main-visual img {
    width: 100%;
    height: auto;
    display: block;
}

.footer-bottom-logo {
    text-align: center;
    margin: 40px auto 20px;
    max-width: 200px; /* ロゴの最大幅を設定 */
}

.footer-bottom-logo img {
    width: 100%;
    height: auto;
}

/* gif切替 */
@keyframes imageSwitch {
    0%, 50% { opacity: 1; }  /* 最初の画像を2秒表示 */
    50.1%, 100% { opacity: 0; } /* 2枚目の画像に切り替え */
}

@keyframes imageSwitchReverse {
    0%, 50% { opacity: 0; }  /* 最初の画像を隠す */
    50.1%, 100% { opacity: 1; } /* 2枚目の画像を表示 */
}

.image-container {
    position: relative;
    width: 100%;
    padding-top: 150%; /* 正方形を維持（アスペクト比 1:1） */
}
.image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-container img:first-child {
    animation: imageSwitch 4s infinite;  /* 4秒サイクルで切り替え */
}

.image-container img:last-child {
    animation: imageSwitchReverse 4s infinite; /* 逆パターン */
}

