body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
    padding: 0;
}
/* サイドバー */
.sidebar {
    width: 250px;
    padding: 20px;
    background-color: #E8F5E9;
    box-sizing: border-box;
    margin-left: 20px;
    border-radius: 10px; /* 角を丸く */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 軽い影を追加 */
}

.sidebar-item {
    margin-bottom: 20px;
}

.sidebar-item h3 {
    color: #2b3e2f;
    font-size: 1.5em;
    margin-bottom: 10px;
}

.sidebar-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-top: 10px;
}

.history-links {
    list-style-type: none;
    padding: 0;
}

.history-links li {
    margin-bottom: 15px;
}

.history-link {
    color: #2b3e2f;
    text-decoration: none;
    font-size: 1.2em;
    display: inline-block;
    background-color: #a1c349;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.2s;
}

.history-link:hover {
    background-color: #4b7a41; /* ホバー時の背景色 */
    transform: translateY(-5px); /* ホバー時に少し浮かせる */
}

.history-link:active {
    background-color: #7b9f47; /* クリック時の色 */
}

/* プロフィールスタイル */
.sidebar-item p {
    font-size: 1em;
    color: #555;
    line-height: 1.6;
    margin-top: 10px;
}
/* メインコンテンツ */
.content-container {
    display: flex;
    justify-content: space-between;
    margin: 30px;
    flex-direction: row-reverse; /* サイドバーを右に配置 */
}

.main-content {
    flex: 1;
    margin-right: 20px; /* 左側のマージンを追加 */
}

/* ポートフォリオセクションのスタイル */
.portfolio-section {
    padding: 30px;
    text-align: center;
    background-color: #f9f9f9;
    border-radius: 10px;
    margin: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.portfolio-title {
    font-size: 2em;
    color: #2b3e2f;
    margin-bottom: 20px;
}

/* ギャラリーグリッド */
.portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.gallery-item img:hover {
    transform: scale(1.05);
}
.adsbygoogle {
    max-width: 100%;
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .portfolio-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item {
        width: 80%; /* ここで80%に統一 */
    }
}

@media (max-width: 480px) {
    .portfolio-gallery {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        width: 80%; /* ここでも80% */
    }

    .portfolio-title {
        font-size: 1.8em;
    }
}
/* モバイル対応 */
@media (max-width: 768px) {
    .content-container {
        flex-direction: column-reverse; /* サイドバーを下に配置 */
        margin: 10px;
    }

    .sidebar {
        width: 100%;
        margin-bottom: 20px;
    }

    .main-content {
        margin-right: 0;
    }

    .portfolio-gallery {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    nav a {
        margin: 0 10px;
    }

    .portfolio-gallery {
        grid-template-columns: 1fr;
    }
}
.white-space {
    height: 100px; /* 縦の余白のサイズ */
    background-color:  #f4f4f4; /* 完全な白色 */
}
.gallery-title {
  font-size: 4rem; /* 文字の大きさ */
  font-weight: bold; /* 太字 */
  text-align: center; /* 中央揃え */
  margin: 20px 0; /* 上下の余白 */
  margin-bottom: 40px;
  color: #a1c349; /* 文字色 (明るい草色) */
  font-family: 'Noto Sans JP', sans-serif; /* フォント */
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3); /* 文字の影 */
  -webkit-text-stroke: 1px #4b7a41; /* 縁取り */
}

@media (max-width: 768px) {
  .gallery-title {
    font-size: 3rem; /* モバイル用に文字サイズを少し小さく */
    -webkit-text-stroke: 0.8px #4b7a41; /* モバイル用に縁取りを少し細く */
  }
}
.load-more {
    background-color: #a1c349; /* history-linkと同じ色 */
    color: #2b3e2f; /* テキスト色をsidebar-itemのタイトル色と同じに */
    font-size: 1.2em; /* フォントサイズを大きく */
    padding: 12px 20px; /* 内側の余白 */
    border: none; /* 枠線なし */
    border-radius: 5px; /* 角を丸く */
    cursor: pointer; /* ポインターカーソル */
    transition: background-color 0.3s, transform 0.2s; /* 背景色と動きをスムーズに */
    text-align: center; /* 文字を中央に */
    width: 100%; /* 横幅を100%にして、サイドバーのアイテムと同じ幅に */
    margin-top: 20px; /* 上に少し余白 */
}

.load-more:hover {
    background-color: #4b7a41; /* ホバー時に濃い緑 */
    transform: translateY(-5px); /* ホバー時に少し浮かせる */
}

.load-more:active {
    background-color: #7b9f47; /* クリック時に少し暗い緑 */
}
