/* リセット設定 */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
  font-family: "IBM Plex Sans JP", sans-serif;
  font-weight: 400;
  font-style: normal;
}


main {
    padding: 40px 0;
    max-width: 1200px;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

h2 {
    color: #333;
    font-size: 2em;
    margin-bottom: 20px;
    border-bottom: 8px dashed #eee;
    padding-bottom: 10px;
}

h3 {
    color: #333;
    font-size: 1.5em;
    margin-bottom: 15px;
}

h4 {
    color: #333;
    font-size: 1.2em;
    margin-bottom: 10px;
}

p {
    color: #555;
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 15px;
}

.topimage img{
  max-width: 100%; 
  height: auto; 
    display: inline-block; 
}

.centerd-image {
    text-align: center; 
      display: flex; 
  justify-content: center;
  align-items: center; 
  height: 300px; 
  max-width: 100%;
  height: auto; 
}



/* ★header★ */

header {

    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    padding: 18px max(calc(20vw - 50px));
    letter-spacing: .13em;
    width: 100%;
}


/* アイコンのサイズ */
.logo img {
    height: 77px;
    width: auto;
    display: block;
}


/* ナビゲーションリストのスタイル */
header nav ul {
    display: flex;
    list-style: none;
    padding-left: 0;
    padding-inline-start: 0;
    margin: 0;
    gap: 30px;
}

footer {
    text-align: center;

    padding: 20px 0;
}

footer p {
    color: #888;
    font-size: 0.9em;
    margin: 5px 0;
}

/* ★about★ */

.profile {
    /* ブロック要素（divなど）を中央に寄せるための定石 */
    margin-left: auto;
    margin-right: auto;

    /* コンテンツの幅を制限し、中央寄せが機能するようにする */
    max-width: 600px;

    /* 内部のインライン要素（テキスト、画像など）を中央寄せにする */
    text-align: center;

    margin-bottom: 40px;
    /* 他のセクションとの間に隙間を作る */
}

/* 中央寄せされたプロフィール内の画像サイズを調整 */
.profile img {
    width: 150px;
    /* アイコン画像のサイズを調整 */
    height: auto;
    display: block;
    /* margin:autoで中央寄せできるようにブロック要素に */
    margin: 0 auto 20px;
    /* 上下左右マージンを設定し中央寄せ */

}



.profile-etc {
    background-color: #f7f7f7;
    border-radius: 15px;
    padding: 30px;
    margin-top: 20px;
    margin-bottom: 40px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.tool-list ul {
    flex-wrap: wrap;
    padding-left: 0;
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding-left: 20px;
    margin: 0;
    gap: 10px 10px;
}

.tool-list li {
    color: #333;
    padding: 2px 8px;
    border: none;
    border-radius: 10px;

}

.tool-list h4 {
    margin-left: auto;
    margin-right: auto;

    margin-bottom: 15px;
}

main ul  {
    list-style: url("images/star.svg");
padding-left: 40px;
}

main ul a {
    color: #58abc9;
    text-decoration: none;
}



main p a {
    color: #58abc9;
    text-decoration: none;
    
}

.link {
    padding: 5px 8px;

    border: none;
    border-radius: 10px;
}

nav ul a {
    color: #8bc8dc;
    text-decoration: none;
    display: inline-block; /* パディングを適用するために必要 */
    padding: 5px 12px; /* current-pageと同じパディングを適用 */
    border-radius: 10px; /* 全てのリンクに角丸を適用 */
    transition: all 0.2s; /* ホバー効果などのために追加 */
}

nav ul .current-page a {
    /* current-page クラスを持つ li の中の a 要素の色を白に変更 */
    background-color: #8bc8dc;
    color: #ffffff;
    box-shadow: 0 4px 4px rgba(145, 180, 185, 0.404);
}

img {
  max-width: 100%; /* 最大幅を親要素に合わせる */
  height: auto; /* 縦幅は自動で調整 */
}


/* ★gallery★ */

/* ナビゲーション */
.category-nav {
    text-align: center;
    padding: 20px 0;
    margin-bottom: 20px;
    border-bottom: 8px dashed #eee;
}

.nav-button {
    background: none;
    border: 1px solid #ccc;
    border-radius: 10px;
    color: #333333;
    padding: 8px 15px;
    margin: 5px 5px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: bold;

}

.nav-button.active {
    background-color: #6cb3ca;
    color: white;
    border-color: #aac4ce;

}

.nav-button:hover:not(.active) {
    background-color: #dce9ec;
}

/* 作品 */
.gallery-container {
    display: block;
    column-count: 3;
    column-gap: 20px;
}

.gallery-item {

    break-inside: avoid;
    margin-bottom: 20px;
    width: 100%;
    height: auto;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #eee;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

/* 画像のアスペクト比維持 */
.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* ライトボックス */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hidden {
    display: none !important;
}

.lightbox-content {
    position: relative;
    max-width: calc(100% - 120px);
    max-height: 90%;
}

#lightbox-image {
    display: block;
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

#lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1010;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.2);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    border-radius: 20%;
}

#lightbox-prev {
    left: 30px;
}

#lightbox-next {
    right: 30px;
}


/*アイコンのアニメーション*/

.logo-link {
    display: inline-block;
    position: relative;
    height: 77px;
    width: 77px;
    transition: transform 0.2s ease-out;
}

.logo-link img {
    position: absolute;
    top: 0;
    left: 0;
}

.logo-default {
    opacity: 1;
    transition: opacity 0s;
}

.logo-hover {
    opacity: 0;
    transition: opacity 0s;
}

.logo-link:hover {
    transform: translateY(-3px);
}

.logo-link:hover .logo-default {
    opacity: 0;
}

.logo-link:hover .logo-hover {
    opacity: 1;
    animation: pop-in-out 0.3s ease-out 1;
    transform-origin: center center;
}

@keyframes pop-in-out {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}


/* ★Works★ */



/* 見出しのスタイル */


/* カードリストのレイアウト: グリッド表示で横に並べる */
.card-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    justify-content: start
    
}


/* 個々の作品カードのスタイル */
.works-item {
    border: #ccc 2px solid;
    border-radius: 1em;
    background-color: #fff;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    /* ホバー時のアニメーション準備 */
}

/* カード全体がリンクになっているため、中のコンテンツをブロック要素として表示 */
.works-link {
    display: block;
    text-decoration: none;
    flex-direction: column;
    color: inherit;
    flex-grow: 1;
}

/* ホバー時の効果: 影を濃くして、上に少し持ち上げる */
.works-item:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* 画像のスタイル */
.works-image {
    width: 100%;
    height: 300px;
    display: block;
    object-fit: cover;
    border-top-left-radius: calc(1em - 2px);
    /* border分を考慮して調整 */
    border-top-right-radius: calc(1em - 2px);
    
}

/* テキストコンテンツのスタイル */
.works-content {
    padding: 15px;
}

.works-title {
    font-size: 1.2em;
    margin-bottom: 5px;
    color: #333;
}

.works-description {
    font-size: 0.9em;
    color: #666;
    line-height: 1.5;
}


/* 背景色設定 */
body.series-page-body {
    background-color: black;
    color: white;
}
.kouzi{
    text-align: center;
    font-size: medium;
}

.kani{
    max-width: 100%;
    text-align: center;
}

/* ... (スマートフォン用設定などが続く) ... */




/* スマートフォン対応 (必要に応じて) */
@media (max-width: 768px) {
    .card-list {
        /* スマートフォンでは1列表示に */
        grid-template-columns: 1fr;
    }
}



/*以下スマートフォン用設定*/

@media (max-width: 580px) {

    header {
        flex-direction: column;
        justify-content: center;
    }

    header nav {
        width: 100%;
        margin-top: 10px;
        justify-content: center;
    }

    header nav ul {
        justify-content: center;
    }

    .category-nav {
        justify-content: center;
    }

    main {
    padding: 200px 0;
}
}

/*ギャラリー*/
@media (max-width: 768px) {
    .gallery-container {
        column-count: 2;
    }
}