/* 全体のリセットと基本設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', sans-serif;
    background-color: #fcfcfc;
    color: #2b2b2b;
}

/* ヘッダーの設定 */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #eee;
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo a {
    font-size: 20px;
    letter-spacing: 2px;
    font-weight: 700;
    color: #111;
    text-decoration: none;
}

/* ハンバーガーメニュー画像の設定 */
.menu-icon {
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}
.menu-icon:hover {
    opacity: 0.7;
}
.menu-icon img {
    width: 100%;
    height: auto;
}

.menu-wrapper {
    position: relative;
}

/* ナビゲーションメニュー */
.nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: auto;
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #eee;
}
.nav-menu.active {
    display: block;
}
.nav-menu ul {
    list-style: none;
}
.nav-menu li a {
    display: block;
    padding: 15px 40px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s, color 0.3s;
}
.nav-menu li a:hover {
    background-color: #111;
    color: #fff;
}

/* メインレイアウト */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* セクション共通の見出しスタイル */
.about-section h2, .works-section h2 {
    text-align: center;
    font-size: 28px;
    letter-spacing: 1px;
    margin-bottom: 50px;
}

/* スクロール位置の微調整 */
.about-section, .works-section {
    scroll-margin-top: 100px; 
    margin-bottom: 100px;
}

/* About セクションのデザイン */
.about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    max-width: 900px;
    margin: 0 auto;
    flex-wrap: wrap;
}
.about-image {
    width: 200px;
    height: 200px;
    background-color: #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 14px;
}
.about-text {
    flex: 1;
    min-width: 300px;
}
.about-text h3 {
    font-size: 22px;
    margin-bottom: 5px;
}
.profile-sub {
    font-size: 14px;
    color: #888;
    margin-bottom: 20px;
}
.profile-desc {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
}
.skills h4 {
    font-size: 16px;
    margin-bottom: 10px;
    border-left: 3px solid #111;
    padding-left: 10px;
}
.skills ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.skills li {
    font-size: 13px;
    background-color: #f0f0f0;
    padding: 6px 14px;
    border-radius: 20px;
    color: #444;
}

/* Works 3列グリッドレイアウト */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}
.work-card {
    display: block;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid #eee;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s;
}
.work-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}
.work-image {
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.work-info {
    padding: 24px;
}
.work-info h3 {
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 600;
}
.work-info p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* フッターのデザイン */
.footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 60px 20px 20px 20px;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}
.footer-info {
    text-align: center;
    margin-bottom: 40px;
}
.footer-info h3 {
    font-size: 22px;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: #fff;
}
.footer-info p {
    font-size: 15px;
    color: #ccc;
    margin-bottom: 10px;
}
.footer-info a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px dashed #fff;
    transition: opacity 0.3s;
}
.footer-info a:hover {
    opacity: 0.7;
}
.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
}
.footer-bottom p {
    font-size: 12px;
    color: #666;
}
