* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', 'メイリオ', Meiryo, sans-serif;
    background-color: #FFF9F0;
    color: #5A4A3A;
    line-height: 1.8;
}

ヘッダー ----------------------------------------------------

/* header {
    background: linear-gradient(135deg, #FFE5CC 0%, #FFF4E6 100%);
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    max-height: 90vh;
    overflow-y: auto;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

h1 {
    color: #8B6F47;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-align: center;
}

nav {
    margin-top: 1rem;
} */

/* 追加：ブラウザ既定の余白を消す */
body { margin: 0; } /* ★追加 */

/* ヘッダー ----------------------------------------------------*/
header {
    background: linear-gradient(135deg, #FFE5CC 0%, #FFF4E6 100%);
    padding: 0.8rem 0;                /* ★縮小：上部の隙間を詰める */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: top 0.3s ease-in-out;
    /* max-height: 90vh;              ★削除：ズーム時に窮屈になる原因 */
    /* overflow-y: auto;              ★削除：不要な内スクロールを防ぐ */
}

header.hide {
    top: -200px;  /* ヘッダーの高さより少し多めにマイナス方向へ */
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

h1 {
    color: #8B6F47;
    font-size: 2.0rem;
    margin-bottom: 0.9rem;            /* ★縮小：見出し下の余白を少しだけ詰める */
    text-align: center;
}

nav {
    margin-top: 0.5rem;               /* ★縮小：タイトルとナビの間を詰める */
}

/* nav li {
    flex: 1 1 30%;     
    min-width: 180px;  
    max-width: 200px;  
} */
nav ul {
    list-style: none;
    /* display: grid; */
    grid-template-columns: repeat(6, 1fr);
    display: flex;               /* グリッド→フレックスに変更 */
    flex-wrap: wrap;             /* 折り返し可 */
    justify-content: center;     
    gap: 0.5rem;
    padding: 0 1rem;
    justify-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

nav a {
    text-decoration: none;
    color: #6B5A47;
    padding: 0.6rem 3rem;
    background-color: #FFF;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    font-weight: 500;
    font-size: 1.2rem;
    white-space: nowrap;
    display: block;
    text-align: center;
    width: 100%;
    max-width: 200px;
}

nav a:hover {
    background-color: #FFE5CC;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

nav a.active {
    background-color: #FFD4A3;
    color: #5A4A3A;
}


/* レスポンシブ対応 */
@media (max-width: 1024px) {
    nav ul {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.4rem;
    }
    
    nav ul {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    nav a {
        font-size: 0.85rem;
        padding: 0.5rem 0.8rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.2rem;
    }
    
    nav ul {
        grid-template-columns: repeat(2, 1fr);
    }
}

main {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
    min-height: calc(100vh - 400px);
}

.content-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-box {
    background-color: #FFF;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    margin-bottom: 2rem;
}

h2 {
    color: #8B6F47;
    font-size: 2.0rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #FFE5CC;
}

h3 {
    color: #6B5A47;
    font-size: 1.7rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

h4 {
    color: #8B6F47;
    font-size: 1.6rem;
    margin-bottom: 1rem;
    text-align: center;
}

p {
    margin-bottom: 1rem;
    line-height: 1.9;
    font-size: 1.3rem;
}

/* メンバーセクションのスタイル ----------------------------------------------------*/
.members-container {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.member-card {
    background-color: #FFF9F0;
    border-radius: 12px;
    padding: 2rem;
    width: 300px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* .member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
} */

.member-image {
    width: 180px;
    height: 180px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    background-color: #FFE5CC;
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-placeholder {
    color: #8B6F47;
    font-size: 1.2rem;
    font-weight: 500;
}

.member-name {
    color: #8B6F47;
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.member-role {
    color: #A89080;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.member-description {
    color: #6B5A47;
    font-size: 0.95rem;
    line-height: 1.7;
    text-align: left;
}

/* フッター ----------------------------------------------------*/

footer {
    background-color: #FFE5CC;
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
    color: #6B5A47;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    h1 {
        font-size: 1.5rem;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav a {
        display: block;
        width: 200px;
        text-align: center;
    }

    .content-box {
        padding: 2rem 1.5rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}

/* コンテンツ用の余白クラス */
.section-content {
    padding: 1rem 0;
}

/* リスト用のスタイル（必要に応じて使用） */
ul.content-list {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

ul.content-list li {
    margin-bottom: 0.5rem;
}


/* URLボタンのスタイル */
.button-container {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
    justify-content: center;
}

.url-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #FFD4A3 0%, #FFC888 100%);
    color: #5A4A3A;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 180, 100, 0.3);
    border: 2px solid transparent;
}

.url-button:hover {
    background: linear-gradient(135deg, #FFC888 0%, #FFB870 100%);
    box-shadow: 0 6px 20px rgba(255, 180, 100, 0.4);
    transform: translateY(-2px);
}

.url-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(255, 180, 100, 0.3);
}

.section-content img {
  display: block;
  margin: 20px auto;        /* 中央寄せ＋上下に余白 */
  max-width: 300px;         /* 画像の最大幅（PCで大きすぎないように） */
  width: 80%;               /* 画面幅に対して8割まで可変 */
  height: auto;             /* 縦横比を維持 */
  border-radius: 10px;      /* 角を少し丸めるとやさしい印象に */
  /* box-shadow: 0 2px 6px rgba(0,0,0,0.1); ほんのり影をつけて立体感 */
}
/* 主な機能 */
.feature {
  display: flex;
  flex-direction: column;
  gap: 40px; /* 各機能の間の余白 */
  margin-top: 30px;
}

.feature-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; /* 画面が狭いときは縦並びになる */
  gap: 20px;
}

.feature-text {
  flex: 1;
  min-width: 250px;
}

.feature-item img {
  flex: 1;
  max-width: 200px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

/* 技術スタック */
.tech-stack {
  list-style: disc;
  padding-left: 1.2rem;
  line-height: 1.7;
}
.tech-stack li { margin-bottom: 0.4rem; }

/* Figma */
/* Figma画像を大きめにする */
section img[src*="Figma"] {
  display: block;
  max-width: 90%;   /* ★幅をページ幅の9割まで拡大（元は多分60〜70%） */
  height: auto;     /* 比率維持 */
  margin: 1rem auto; /* 中央寄せ */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* 少し立体感 */
}
