/* -------------------------------------
   全要素のリセット
-------------------------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html {
    width: 100%;
    min-height: 100%;
    background-color: #f6e3aa;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: #333;
    overflow-x: hidden; /* 横スクロールを防ぐ */
}

/* -------------------------------------
   1. ホーム画面 (index.html)
-------------------------------------- */
.hero-area {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero-title {
    width: 100%;
    height: 100%;
}

.hero-title img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nav-buttons {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 10;
}

/* 各セクションの設定 */
.section {
    /* min-height: 100vh;  ←この行を削除するか、以下のように数値を小さくします */
    min-height: 50vh;      /* 画面の半分程度の高さに設定 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 20px;    /* 上下の余白を100pxから60pxに縮小 */
}


/* トップページの画像サイズを調整（見切れ防止） */
.section img {
    max-width: 1000px; /* 画像の最大幅を制限 */
    width: 90%;        /* 画面幅に合わせて伸縮 */
    height: auto;
    margin: 20px auto 0 auto;
    display: block;
}

.section h2 {
    color: #776342;
    font-size: 2rem;
    margin-bottom: 20px;
}

/* -------------------------------------
   2. 課題ページ (portfolio.html)
-------------------------------------- */
.wrapper {
    display: flex;
    width: 100%;
}

.sidebar {
    width: 280px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #f6e3aa;
    border-right: 1px solid rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 60px;
    z-index: 100;
}

.sidebar ul {
    list-style: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sidebar li {
    width: 100%;
    display: flex;
    justify-content: center;
}

.main-content {
    margin-left: 280px;
    flex: 1;
    padding: 100px 40px;
    background-color: #f6e3aa;
    display: flex;
    flex-direction: column;
    align-items: center; 
    min-height: 100vh;
    text-align: center;
}

.main-content h2 {
    margin-bottom: 20px;
    color: #776342;
    font-size: 2rem;
}

.main-content img {
    max-width: 600px; /* 課題画像は少し小さめに表示 */
    width: 100%;
    height: auto;
    margin: 0 auto 60px auto;
    display: block;
    border-radius: 8px;
}

/* -------------------------------------
   3. 共通のボタンデザイン
-------------------------------------- */
.btn-square {
    display: block;
    width: 180px;
    padding: 15px 0;
    margin-bottom: 20px;
    background-color: #fff;
    color: #776342;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    border-radius: 50px;
    box-shadow: 4px 4px 0px #776342;
    transition: 0.2s;
    border: none;
}

.btn-square:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #776342;
}
.back {
    display: flex;
    justify-content: center; /* これで中央揃えになります */
    margin-top: 50px;        /* 上の余白 */
    margin-bottom: 50px;     /* 下の余白 */
}
address {
    display: block;
    font-style: italic;
    unicode-bidi: isolate;
    text-align: center;
}
/* 説明文ボックスのスタイル */
.work-description {
    text-align: left;        /* 文字を左揃えにする */
    max-width: 600px;        /* 横幅を広げすぎない（読みやすさのため） */
    margin: 20px auto;       /* ボックス自体は中央配置 */
    padding: 20px;
}

/* 見出しのデザイン */
.work-description h3 {
    font-size: 1.1rem;
    color: #776342;
    margin-top: 25px;
    margin-bottom: 10px;
    border-bottom: 2px solid #e6d3a0; /* 下に線を引いて区切る */
    padding-bottom: 5px;
}

/* 箇条書きの調整 */
.work-description ul {
    padding-left: 20px;      /* 左側に隙間を作る（インデント） */
    list-style-type: disc;   /* 黒丸を付ける */
}

.work-description li {
    margin-bottom: 8px;      /* 項目ごとの間隔 */
    line-height: 1.6;        /* 行間を広げて読みやすく */
}

/* 制作時間の強調 */
.work-description p {
    line-height: 1.6;
}
.work-item {
    margin-bottom: 80px; /* ここを調整して隙間を広げます */
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd; /* 必要であれば区切り線 */
}
/* 画像の調整 */
.work-item img {
    display: block;           /* 画像の下の余計な隙間を消すために必要 */
    margin: 0 auto 10px auto; /* 下の隙間を10pxに設定（ここを小さくするとさらに詰まります） */
}

/* 説明文ボックスの調整 */
.description-box {
    margin: 0 auto;           /* 上の余白（margin-top）を0にする */
    padding: 20px;
    background-color: #fffaf0;
    border-radius: 8px;
    max-width: 600px;
}
.work-item:last-child {
    margin-bottom: 0;
}

.works h1 {
    margin-top: -50px;    /* 上の隙間を30px分詰める（数値は適宜調整） */
    margin-bottom:10px
}

/* 「WORKS」画像自体の下の隙間も消す */
.works h1 img {
    display: block;    /* 画像の下にできる謎の隙間をリセット */
    margin: 0 auto;    /* 中央に配置 */
}