/* === 基本設定 === */
:root {
    --bg-color: #1a1a1a;
    --text-color: #e0e0e0;
    --accent-color: #00aaff;
    --card-bg-color: #2c2c2c;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    margin: 0;
    padding-top: 70px;
    line-height: 1.7;
}

body.no-scroll {
    overflow: hidden;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: opacity 0.2s;
}
a:hover {
    opacity: 0.8;
}

/* === ヘッダー === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
    border-bottom: 1px solid #333;
}
.header.hidden {
    transform: translateY(-100%);
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}
.site-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-color);
}
.header-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}
.header-nav a {
    color: var(--text-color);
    font-weight: bold;
    padding: 10px;
}
.header-nav a.active {
    color: var(--accent-color);
}

/* === ハンバーガーボタン === */
.hamburger-button {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 2000;
    position: relative;
    width: 44px;
    height: 44px;
}
.hamburger-icon,
.hamburger-icon::before,
.hamburger-icon::after {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-color);
    transition: transform 0.3s, opacity 0.3s;
    position: absolute;
    left: 10px; /* ボタン内で中央に配置 */
    top: 21px;  /* ボタン内で中央に配置 */
}
.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
}
.hamburger-icon::before {
    transform: translateY(-8px);
}
.hamburger-icon::after {
    transform: translateY(8px);
}

/* === メインコンテンツ === */
.hero {
    text-align: center;
    padding: 100px 0;
}
.hero h1 {
    font-size: 48px;
    margin-bottom: 16px;
}
.hero p {
    font-size: 18px;
    color: #aaa;
}
.button {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: bold;
    margin-top: 24px;
}
.page-title {
    text-align: center;
    padding: 40px 0;
}

/* === サービス紹介ページ === */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding-bottom: 20px;
}
.infomation_bottom{
    color: rgb(255, 55, 55);
    padding-bottom: 80px;
}
.service-card {
    background-color: var(--card-bg-color);
    border: 1px solid #444;
    padding: 24px;
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
.service-card h3 {
    margin-top: 0;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 8px;
    display: inline-block;
}
.button-small {
    display: inline-block;
    background-color: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: bold;
    margin-top: 16px;
    font-size: 14px;
}

/* === プロフィール・経歴セクション === */
.profile {
    padding: 80px 0;
}
.profile h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
}
.timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    border-left: 2px solid #555; 
    margin-left: 20px;
}
.timeline-item {
    position: relative;
    margin-bottom: 50px;
    padding-left: 40px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.timeline-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.timeline-marker {
    position: absolute;
    top: 5px;
    left: -11px;
    width: 20px;
    height: 20px;
    background-color: var(--bg-color);
    border: 3px solid var(--accent-color);
    border-radius: 50%;
    z-index: 1;
}
.timeline-content h3 {
    margin: 0 0 8px 0;
    font-size: 22px;
}
.timeline-date {
    color: #aaa;
    font-size: 14px;
    display: block;
    margin-bottom: 10px;
}
.timeline-content p {
    margin: 0;
    color: #ccc;
}

/* === チーム紹介セクション === */
.teams {
    padding: 60px 0 80px 0;
}
.teams h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    width: 90%;
    margin: 0 auto;
}
.team-card {
    background-color: var(--card-bg-color);
    border: 1px solid #444;
    padding: 24px;
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s, opacity 0.6s, transform 0.6s;
    opacity: 0;
    transform: translateY(30px);
}
.team-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.team-card:nth-child(2).is-visible {
    transition-delay: 0.1s;
}
.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
.team-card img {
    max-width: 100px;
    margin-bottom: 16px;
}
.team-card h3 {
    margin: 0 0 4px 0;
    font-size: 22px;
    color: var(--accent-color);
}
.team-role {
    font-weight: bold;
    color: #bbb;
    margin-bottom: 16px;
}

/* === ドキュメントページ用スタイル === */
.document-container {
    max-width: 800px;
    margin: 60px auto 80px auto;
    background-color: var(--card-bg-color);
    padding: 30px 50px;
    border-radius: 12px;
    border: 1px solid #444;
}
.document-container h1 {
    font-size: 32px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 15px;
    margin-top: 10px;
    margin-bottom: 10px;
}
.document-container h2 {
    font-size: 22px;
    border-bottom: 1px solid #555;
    padding-bottom: 10px;
    margin-top: 50px;
    margin-bottom: 20px;
}
.document-container p,
.document-container li {
    font-size: 16px;
    line-height: 1.8;
}
.document-container ul,
.document-container ol {
    padding-left: 25px;
    margin-top: 15px;
}
.last-updated {
    text-align: right;
    color: #aaa;
    font-size: 14px;
}

/* === フッター === */
.footer {
    text-align: center;
    padding: 40px 0;
    color: #777;
    border-top: 1px solid #333;
}
.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-bottom: 20px;
}
.social-links a {
    color: var(--text-color);
    transition: transform 0.3s;
    line-height: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 28px;
    height: 28px;
}
.social-links a i {
    font-size: 28px;
    vertical-align: middle;
}
.social-links a img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: contain;
}
.social-links a:not([title="Note"]):not([title="Qiita"]):hover {
    color: var(--accent-color);
}
.social-links a[title="Note"] svg {
    width: 100%;
    height: 100%;
    fill: var(--text-color);
    transition: fill 0.3s;
}
.social-links a[title="Note"]:hover svg {
    fill: var(--accent-color);
}
.social-links a[title="Note"] {
    transform: scale(1.2); 
}
.social-links a[title="Note"]:hover {
    transform: scale(1.35) rotate(5deg);
}
.social-links a:not([title="Note"]):hover {
    transform: scale(1.15) rotate(5deg);
}


/* === レスポンシブ対応 (スマホ向け) === */
@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }
    .header {
        height: 60px;
    }
    .hero h1 {
        font-size: 32px;
    }
    .service-grid {
        grid-template-columns: 1fr;
    }
    .profile h2 {
        font-size: 28px;
    }
    .timeline {
        margin-left: 10px;
    }
    .timeline-item {
        padding-left: 30px;
    }
    .timeline-marker {
        left: -10px;
        width: 18px;
        height: 18px;
    }
    .teams h2 {
        font-size: 28px;
    }
    .team-grid {
        grid-template-columns: 1fr;
    }
    .document-container {
        padding: 20px 25px;
        margin-top: 40px;
        margin-bottom: 60px;
    }
    .document-container h1 {
        font-size: 26px;
    }
    .document-container h2 {
        font-size: 20px;
    }

    /* -- ここからハンバーガーメニューのルール -- */

    .header-nav ul {
        display: none;
    }
    .hamburger-button {
        display: block;
    }
    .header-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(26,26,26,0.95); /* より不透明に */
        z-index: 2000; /* ヘッダーより上 */

        display: flex;
        justify-content: center;
        align-items: center;
        pointer-events: none;
        opacity: 0;
        visibility: hidden;
        transform: scale(1.05);
        transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    }
    .header-nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: scale(1);
        pointer-events: auto;
    }
    .header-nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: scale(1);
    }
    .header-nav.is-open ul {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        padding: 0;
    }
    .header-nav.is-open ul a {
        font-size: 24px;
    }

    .hamburger-button.is-open .hamburger-icon {
        background-color: transparent;
    }
    .hamburger-button.is-open .hamburger-icon::before {
        transform: rotate(45deg) translateY(0px);
    }
    .hamburger-button.is-open .hamburger-icon::after {
        transform: rotate(-45deg) translateY(0px);
    }

    /* ハンバーガーアイコンの中央配置と崩れ防止 */
    .hamburger-icon,
    .hamburger-icon::before,
    .hamburger-icon::after {
        position: relative;
        left: 0;
        top: 0;
        margin: 0 auto;
        display: block;
    }
    .hamburger-button {
        display: block;
        width: 44px;
        height: 44px;
        padding: 10px;
    }
}

.header-logo{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    margin-top: 5px;
    height: 50px;
}
