/* Basic Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* header {
    background-color: #57c3ea;
    color: white;
    padding: 0.5rem 0;
    text-align: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    padding: 0;
    margin: 0.5rem 0;
}

nav ul li a {
    text-decoration: none;
    color: #0066cc;
    font-weight: bold;
}

nav ul li a:hover {
    text-decoration: underline;
} */


/* --- header & nav  --- */
header {
    background-color: #57c3ea;
    color: #fff;
    padding: 0.75rem 0;
    text-align: center;
}

header h1 {
    margin: 0.25rem 0 0.5rem;
    font-size: 1.6rem;
    line-height: 1.3;
}

/* nav details */
header nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
    justify-content: center;
    padding: 0;
    margin: 0.25rem 0 0;
}

/* nav btn */
header nav ul li a {
    display: inline-block;
    text-decoration: none;
    color: #ffffff;
    /* コントラスト確保 */
    font-weight: 700;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    transition: background 0.2s ease, transform 0.2s ease;
}

/* hover */
header nav ul li a:hover,
header nav ul li a:focus {
    background: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    transform: translateY(-1px);
    outline: none;
}


nav ul {
    list-style: none;
}

nav ul li a:hover {
    text-decoration: none;
    /* ヘッダーでは下線なし */
}

nav ul li a.active {
    background: rgba(255, 255, 255, 0.5);
    /* 背景色強調 */
    color: #122b46;
    /* 文字色変化 */
    cursor: default;
    pointer-events: none;
    /* クリック不可にする場合 */
}



main {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.projects {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

/* Project Card */
.project {
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.project a {
    display: block;
    overflow: hidden;   /* ← 拡大した画像がはみ出さないようにする */
}

.project img {
    width: 100%;
    height: auto;
    display: block;
    transform: scale(1.2);
    transform-origin: center top; /* 拡大の基準点（例：上寄せ） */
}


.project h2 {
    margin: 0;
    padding: 1rem;
    background: #f4f4f4;
    color: #333;
    font-size: 1.2rem;
}


h2.extra {
    padding-bottom: 26px;
}


h2.btm {
    padding-bottom: 23px;
}

h2.btm2 {
    padding-bottom: 26px;
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem 0;
    background: #122b46;
    color: white;
    /* margin-top: 2rem; */
}