/* 基本的なスタイル */
body {
    background-color: #000000; /* 背景を黒に */
    color: #ffffff;           /* デフォルトの文字色を白に */
}

/* コンテンツ全体のコンテナ設定 */
#content {
    padding-left: 2rem;
    padding-right: 2rem;
    min-height: 100vh;
  }

/* ヘッダーナビゲーション */
.breadcrumb a {
    color: #a0a0a0; /* 通常のリンク色を少し暗めの白に */
}

/* アクティブなナビゲーションリンク */
.breadcrumb li a.has-text-weight-bold,
.breadcrumb li.is-active a {
    color: #ffffff; /* アクティブなリンクを白に */
}

/* "My Works" タイトル */
.home > h1 {
    margin-bottom: 3rem; /* タイトルとカードの間の余白を調整 */
    color: #ffffff;
}

/* Bulmaのカードスタイルを上書き */
.card {
    background-color: transparent; /* カードの背景を透明に */
    border: 1px solid #ffffff;      /* 白い枠線を追加 */
    box-shadow: none;             /* デフォルトの影を削除 */
    border-radius: 0;             /* 角丸をなくす */
    height: 100%;                 /* 各カードの高さを揃える */
    display: flex;                /* flexboxを使って内部要素を配置 */
    flex-direction: column;       /* 子要素を縦に並べる */
}

/* --- カードのスタイル（背景画像つき） --- */
.card {
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 1;
    border: 1px solid #ffffff; /* 白い枠線も表示 */
    border-radius: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: scale(1.03);
}

/* 画像の上に文字が読みやすいようにオーバーレイを追加 */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.9) 100%);
    z-index: -1;
}

.card-content {
    position: relative;
    z-index: 2;
    flex-grow: 1;
    /* 背景画像を見せるため、コンテンツは下寄せにする */
    margin-top: auto;
}

/* カード内のテキストカラー */
.card .title,
.card .content,
.card .content p {
    color: #ffffff;
}

/* --- モーダルのダークテーマ用スタイル --- */
/* こちらは変更の必要はありません */
.modal-card {
    background-color: #2c2c2c;
}
.modal-card-head, .modal-card-body, .modal-card-foot {
    background-color: #1e1e1e;
}
.modal-card-title {
    color: #ffffff;
    text-align: center;
}
.modal-card-body {
    color: #dddddd;
}
.modal-card-foot .button {
    border: 1px solid white;
}

.modal-card-foot {
    justify-content: flex-end;
}

/* --- モーダル内のカスタムボタンスタイル --- */
.button.is-custom-dark {
    background-color: #222222; /* ボタンの背景色 */
    border: 1px solid #ffffff;  /* 白い枠線 */
    color: #ffffff;             /* 文字色を白に */
}

/* ボタンにマウスが乗った時のスタイル */
.button.is-custom-dark:hover {
    background-color: #ffffff; /* 背景を白に */
    color: #222222;             /* 文字色を黒っぽく */
    border-color: #ffffff;
}