@charset "UTF-8";

/* --------------------------------
   Project: そらとぶペンギンプロジェクト
   Author: aya
   Date: 2024/12
   Description: gallery.css
-------------------------------- */

:root {
    --primary-blue: #4A7B9D;
    --secondary-blue: #7BA7BC;
    --background: #F5F5F5;
    --text: #333333;
}

body, html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    height: 100%;
    font-family: "Hiragino Maru Gothic Pro", sans-serif;
}

html {
    scroll-behavior: smooth;
}

*, *::before, *::after {
    box-sizing: inherit;
}

/* Hero Section */
.hero-title-container {
    position: absolute;
    left: 25px;
    top: 20px;
    z-index: 3;
    width: 200px;
    transform: none;
}

.hero-title {
    width: 80%;
    height: auto;
    max-width: 500px;
}

.container {
    display: flex;
    flex-direction: column; 
    min-height: 100vh; 
}
.left-img-box {
    flex: 0 0 50%;
    background-color: #fff;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    position: fixed; 
    height: 100%;
    width: 50%;
    z-index: 1; 
}

.left-img-box img {
    max-width: 80%; 
    height: auto; 
    border-radius: 8px; 
}

/* ▼ スマホ用レイアウトで、縦に並べるための調整 */
@media screen and (max-width: 768px) {
    .left-img-box {
        position: static; /* PCのように固定しない */
        width: 100%; 
        height: auto; /* ここは「100vh」も可ですが、autoでお好み調整 */
        display: flex; 
        align-items: center; 
        justify-content: center; 
    }

    .left-img-box img {
        max-width: 80%; 
        height: auto; 
    }
}

.right {
    flex: 1;
    margin-left: 50%;
    overflow-y: auto; 
    padding: 0 0 6rem;
    background-color: #F4F4F2;
    display: block;
    position: relative;
    z-index: 2; 
}

@media screen and (max-width: 768px) {
    .right {
        margin-left: 0; /* スマホは全幅で下に配置 */
        height: auto; 
        padding: 0 0 2rem;
    }
}

.content {
    max-width: 800px;
    margin: 0 auto;
    opacity: 0; 
    animation: fadeIn 1s 1s forwards; 
    padding: 3rem;
    position: relative; 
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.content p {
    width: 280px;
    margin: 0 auto;
    line-height: 1.6;
    color: var(--text);
    font-size: 0.9rem;
    text-align: justify;
}

.artwork-container {
    text-align: center;
}

/* カーテンアニメーション */
.curtain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    pointer-events: none; 
}

.curtain .curtain-left,
.curtain .curtain-right {
    width: 50%;
    height: 100%;
    background-color: #EAEAE6;
}

.curtain .curtain-left {
    animation: curtainLeft 1s forwards;
}

.curtain .curtain-right {
    animation: curtainRight 1s forwards;
}

@keyframes curtainLeft {
    from {
        transform: translateX(0%);
    }
    to {
        transform: translateX(-100%);
    }
}

@keyframes curtainRight {
    from {
        transform: translateX(0%);
    }
    to {
        transform: translateX(100%);
    }
}

.back-to-home {
    display: inline-block;
    margin-top: 3.5rem;
    padding: 10px 3rem;
    background-color: var(--primary-blue);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    transition: background-color 0.3s, transform 0.3s;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.back-to-home:hover {
    background-color: var(--secondary-blue);
    transform: translateX(-50%) scale(1.05);
}

.footer-bottom {
    position: fixed; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    z-index: 100; 
    background-color: #F4F4F2; 
    padding: 1rem; 
    text-align: center; 
    border-top: 1px solid rgba(0, 0, 0, 0.1); 
    overflow: hidden; 
}
.copyright {
        font-size: 0.8rem;
        color: gray;
    }

/* ▼ スマホ用フッターの調整 */
@media screen and (max-width: 768px) {
    body, html {
        overflow: auto; 
    }
    .container {
        flex-direction: column;
        height: auto;
    }
    .right {
        margin-left: 0;
        height: auto;
        overflow-y: auto; 
    }
    .content {
        opacity: 1;
        animation: none; /* スマホでのフェードイン不要なら解除 */
    }
    .curtain {
        display: none; 
    }

    .footer-bottom {
        position: static; 
        width: 100%; 
        background-color: #F4F4F2; 
        padding: 1.5rem 0 0 0; 
        border-top: 1px solid rgba(0, 0, 0, 0.1); 
        overflow: hidden; 
    }

    .copyright {
        font-size: 0.9rem; 
        color: #666; 
        margin: 0; 
        padding: 0; 
        word-wrap: break-word; 
        word-break: break-word; 
        white-space: normal; 
        max-width: 100%; 
        display: inline-block; 
    }
}

.description-container {
    position: relative; 
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 6rem);
    text-align: center;
}

@media screen and (max-width: 768px) {
    .description-container {
        height: auto; 
    }
}

.description-container h2 {
    font-size: 2rem;
}

.description-container h2,
.description-container p {
    margin: 0;
}

.description-container h2,
.description-container-B h2 {
    font-family: "Zen Maru Gothic", serif;
    color: var(--primary-blue);
}
.description-container p,
.description-container-B p {
    margin-top: 1rem; 
    color: var(--text);
    text-align: center;
}

.description-container-B {
    text-align: center; 
}

.description-container-B span {
    font-size: 1.05rem;
}

.ma-space-top {
    margin-top: 2rem;
}

/* 矢印とテキストを包むコンテナ */
.scroll-container {
    position: absolute;
    bottom: 7%; 
    left: 50%; 
    transform: translateX(-50%); 
    animation: float 3s infinite ease-in-out;
}

@media screen and (max-width: 768px) {
    .scroll-container {
        display: none; 
    }
}

.scroll-text {
    font-size: 12px;
    color:  var(--primary-blue);
    letter-spacing: 1px;
    text-align: center;
    margin-bottom: 0;
}

.arrow {
    cursor: pointer;
}

/* アニメーションの設定 */
@keyframes float {
    0%, 100% {
        transform: translate(-50%, 0);
    }
    50% {
        transform: translate(-50%, -15px);
    }
}

/* テキストの左右に線を追加するスタイル */
.text-with-lines {
  position: relative;
  padding: 0; 
  display: inline-block; 
  white-space: nowrap; 
  font-size: 1rem;
  margin: 3rem 0 0 0;
  color: var(--text);
}

.text-with-lines::before,
.text-with-lines::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 1px; 
  background: #333333; 
  width: 40px; 
}

.text-with-lines::before {
  left: -60px; 
}

.text-with-lines::after {
  right: -60px; 
}

/* ▼ 2枚の画像を重ねるコンテナ */
.image-overlay-container {
    position: relative;
    width: 100%;
    height: 500px;  
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 絶対配置で左右＆上下中央 */
.overlay-image {
    position: absolute;
    left: 50%; 
    top: 50%;
    transform: translate(-50%, -50%); 
    max-width: 100%;
    max-height: 100%;
}

/* Aのアニメーション */
.overlay-image:nth-child(1) {
    animation: float-up-down 3s ease-in-out infinite alternate;
}

/* Bのアニメーション */
.overlay-image:nth-child(2) {
    animation: float-down-up 3s ease-in-out infinite alternate;
}

/* 画像Aの上下アニメーション */
@keyframes float-up-down {
    0% {
        transform: translate(-50%, -50%) translateY(-7px);
    }
    100% {
        transform: translate(-50%, -50%) translateY(7px);
    }
}

/* 画像Bの上下アニメーション（逆方向） */
@keyframes float-down-up {
    0% {
        transform: translate(-50%, -50%) translateY(7px);
    }
    100% {
        transform: translate(-50%, -50%) translateY(-7px);
    }
}

/* ▼ スマホ用でも絶対配置を維持して2枚重ねる */
@media screen and (max-width: 768px) {
    .image-overlay-container {
        /* 必要なら 画面幅に合わせて調整。例: height: 300px; 等 */
        height: 500px; /* PCと同じでOK。小さくしたいなら min-height: 400px; とかに */
    }
    
}


