/* style.css */

/* 基本設定と変数 */
:root {
    --primary-color: #a0e9ff; /* 淡い水色 */
    --secondary-color: #fff6a0; /* 淡い黄色 */
    --accent-color: #7de8d0; /* アクセントの緑がかった水色 */
    --text-color: #334; /* 少し柔らかい黒 */
    --light-text-color: #556;
    --bg-color: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.6); /* ガラス効果の背景 */
    --glass-border: rgba(255, 255, 255, 0.8);
    --shadow-color: rgba(0, 0, 0, 0.1);

    --font-primary: 'Poppins', 'Noto Sans JP', sans-serif;
    --font-secondary: 'Noto Sans JP', sans-serif;
}

/* 基本リセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* スムーズスクロール */
html {
    scroll-behavior: smooth;
}

/* ボディ全体のスタイル */
body {
    font-family: var(--font-secondary);
    color: var(--text-color);
    line-height: 1.7;
    background-color: var(--bg-color);
    overflow-x: hidden; /* 横スクロール防止 */
    position: relative; /* 背景オーバーレイの基準 */
}

/* 背景の透明感のある装飾 */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.4; /* 透明度を調整 */
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

/* 背景グラデーションアニメーション */
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* コンテナ */
.container {
    max-width: 960px;
    margin: 0 auto; /* コンテナ自体を中央揃え */
    padding: 0 20px; /* 左右の余白 */
}

/* ヘッダー */
.site-header {
    padding: 10px 0; /* 上下のパディング調整 */
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.8); /* 半透明背景 */
    backdrop-filter: blur(5px); /* 背景をぼかす */
    -webkit-backdrop-filter: blur(5px); /* Safari用 */
    z-index: 10;
    box-shadow: 0 2px 5px var(--shadow-color);
}

/* ヘッダー内のコンテナ specific style */
.site-header .container {
    display: flex; /* Flexbox を有効化 */
    justify-content: flex-start; /* アイテムを左端に配置 */
    align-items: center; /* アイテムを垂直方向中央に */
    /* 必要であれば高さを指定 */
    /* height: 60px; */
}

/* ヘッダーのロゴ画像スタイル */
.site-header img {
    height: 65px; /* ロゴの高さを指定 (適宜調整) */
    width: auto; /* 横幅は自動調整 */
    display: block; /* 画像下の不要な余白削除 */
    margin-left: 50px;
}

/* メインコンテンツ */
main {
    /* ヘッダーの高さを考慮して上部に余白を設定 */
    /* ヘッダーの高さに合わせて調整 */
    padding-top: 60px;
}

/* コンテンツセクション共通スタイル */
.content-section {
    padding: 60px 0;
    text-align: center;
    position: relative; /* 必要に応じて */
    overflow: hidden; /* AOSアニメーションがはみ出さないように */
}

.content-section h2 {
    font-family: var(--font-primary);
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 40px;
    color: var(--text-color);
    position: relative;
    display: inline-block;
}

/* 見出しの下線アニメーション（任意） */
.content-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    margin: 8px auto 0;
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.6s ease-in-out;
}
.content-section h2[data-aos].aos-animate::after {
    transform: scaleX(1); /* AOSで表示されたら下線を表示 */
}


.content-section p {
    font-size: 1rem;
    color: var(--light-text-color);
    max-width: 700px;
    margin: 0 auto 20px;
}

/* ガラス効果 */
.glass-effect {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px); /* Safari用 */
    margin-top: 20px; /* 他のセクションとの区別 */
    position: relative; /* 子要素の配置基準 */
    overflow: hidden; /* 子要素のはみ出し防止 */
}

/* ヒーローセクション */
.hero-section {
    text-align: center;
    padding: 80px 0;
    min-height: calc(80vh - 60px); /* ヘッダー高さを考慮した高さ調整 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative; /* 画像配置のため */
    overflow: hidden; /* アニメーションはみ出し防止 */
}

.hero-section h2 {
    font-family: var(--font-primary);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
}

.hero-section .subtitle {
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--light-text-color);
    margin-bottom: 30px;
}
.hero-section p:last-of-type {
    font-size: 1.1rem;
    margin-bottom: 40px; /* 画像との間隔を調整 */
}

.hero-image-container {
    max-width: 400px; /* 画像サイズ調整 */
    opacity: 0.8; /* 少し透明に */
    margin-top: 0; /* 上の間隔は上のP要素で調整 */
}

.hero-image {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1)); /* 画像に影 */
    /* マウス追従効果のための設定 */
    will-change: transform; /* アニメーションのパフォーマンス向上 */
    transition: transform 0.5s ease-out; /* マウスが離れたときにゆっくり戻る */
}


/* コンセプトセクション */
#concept .concept-items {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    margin-top: 30px;
    text-align: left;
}

#concept .concept-item {
    flex: 1;
    padding: 25px;
}

#concept .concept-item h3 {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
}

/* 機能セクション */
#features .features-list {
    list-style: none;
    padding: 0;
    max-width: 600px;
    margin: 30px auto 0;
    text-align: left;
    display: grid; /* グリッドレイアウト */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* 列を自動調整 */
    gap: 15px; /* アイテム間の隙間 */
}

#features .features-list li {
    display: flex; /* アイコンとテキストを横並び */
    align-items: center; /* アイテムを垂直中央揃え */
    background: rgba(255, 255, 255, 0.5); /* 背景を少し白く */
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 0; /* グリッドのgapで調整 */
    font-size: 1rem;
    color: var(--light-text-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

#features .features-list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

#features .features-list .icon {
    /* 画像アイコンのスタイル */
    height: 24px; /* アイコンの高さを指定 (適宜調整) */
    width: 24px;  /* アイコンの幅を指定 (適宜調整) */
    margin-right: 12px; /* テキストとの間隔 */
    flex-shrink: 0; /* アイコンが縮まないように */
    object-fit: contain; /* 画像がコンテナに収まるように */
}

/* 開発中セクション */
#progress .screenshot-container {
    max-width: 700px;
    margin: 30px auto 0;
    border-radius: 8px;
    overflow: hidden; /* 角丸を適用 */
    box-shadow: 0 10px 25px var(--shadow-color);
    border: 5px solid white; /* 白い枠線 */
}

#progress .screenshot-container img {
    display: block;
    width: 100%;
    height: auto;
}

#progress .caption {
    font-size: 0.9rem;
    color: var(--light-text-color);
    margin-top: 15px;
}


/* ストーリーセクション */
#story .container {
    max-width: 700px; /* テキスト読みやすく幅を狭める */
    text-align: left;
}
#story h2 {
    text-align: center; /* 見出しは中央揃え */
}
#story h2.story-heading {
    margin-top: 50px; /* 「開発への想い」見出しの上に余白 */
}
#story p {
    margin-bottom: 15px;
    text-align: justify; /* 両端揃え */
    hyphens: auto; /* 必要に応じて英文のハイフネーション */
}
#story strong {
    font-weight: 600;
    color: var(--text-color);
}


/* フッター */
.site-footer {
    background-color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 25px 0;
    margin-top: 60px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* フッターのコンテナ specific style (中央揃えのため) */
.site-footer .container {
    display: block; /* Flexboxを解除 */
}

/* フッター内 SNSリンク */
.social-links {
    margin-bottom: 15px; /* コピーライトとの間隔 */
    display: flex;
    justify-content: center; /* アイコンを中央に */
    gap: 20px; /* アイコン間の隙間 */
}

.social-icon {
    height: 24px; /* アイコンサイズ調整 */
    width: auto;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}
.social-icon:hover {
    opacity: 1;
}

/* フッター コピーライト */
.site-footer p {
    margin: 0; /* 余計なマージンをリセット */
    font-size: 0.9rem;
    color: var(--light-text-color);
}


/* AOSアニメーションの初期位置調整 (任意) */
[data-aos="fade-up"] {
  transform: translateY(30px);
  transition-property: transform, opacity;
}
[data-aos="fade-down"] {
  transform: translateY(-30px);
  transition-property: transform, opacity;
}
[data-aos="fade-left"] {
  transform: translateX(30px);
  transition-property: transform, opacity;
}
[data-aos="fade-right"] {
  transform: translateX(-30px);
  transition-property: transform, opacity;
}
[data-aos="zoom-in"] {
  transform: scale(0.95);
  transition-property: transform, opacity;
}
[data-aos="zoom-in-up"] {
  transform: translate3d(0, 30px, 0) scale(0.95);
  transition-property: transform, opacity;
}

/* AOSがアクティブになった時のスタイルはライブラリ側で適用される */


/* レスポンシブ対応 */
@media (max-width: 768px) {
    .site-header img {
        height: 40px; /* スマホではロゴを少し小さく */
    }

    main {
        padding-top: 50px; /* ヘッダー高さに合わせた調整 */
    }

    .hero-section {
         padding: 60px 0;
         min-height: calc(70vh - 50px);
    }
    .hero-section h2 {
        font-size: 2.5rem;
    }
    .hero-section .subtitle {
        font-size: 1.2rem;
    }
    .content-section h2 {
        font-size: 1.8rem;
    }

    #concept .concept-items {
        flex-direction: column; /* 縦並びにする */
        gap: 20px;
    }
    #concept .concept-item {
        padding: 20px;
    }

    #features .features-list {
         grid-template-columns: 1fr; /* スマホでは1列に */
         max-width: 100%;
         gap: 10px;
    }
    #features .features-list li {
        padding: 12px 15px;
    }
    #features .features-list .icon {
        height: 22px;
        width: 22px;
        margin-right: 10px;
    }

     .glass-effect {
        padding: 30px 20px;
    }

    #story p {
        text-align: left;
    }
}

@media (max-width: 480px) {
     .site-header img {
         height: 35px; /* さらにロゴを小さく */
     }
     main {
         padding-top: 45px;
     }
     .hero-section {
         padding: 50px 0;
         min-height: calc(65vh - 45px);
     }
     .hero-section h2 {
        font-size: 2rem;
    }
     .hero-section .subtitle {
        font-size: 1rem;
    }
     .hero-section p:last-of-type {
         font-size: 1rem;
         margin-bottom: 30px;
     }
     .hero-image-container {
         max-width: 300px;
     }

    .content-section {
        padding: 40px 0;
    }
    .content-section h2 {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }
     .content-section h2::after {
         width: 50px;
         height: 2px;
     }

    #features .features-list li {
        font-size: 0.95rem; /* 文字サイズを微調整 */
    }
    #features .features-list .icon {
        height: 20px;
        width: 20px;
    }

    .social-icon {
        height: 22px;
    }
    .site-footer {
        padding: 20px 0;
    }
    .site-footer p {
        font-size: 0.85rem;
    }
}