/* GitHub風スタイル - 配色をEFWページから継承 */
:root {
    --color-bg-primary: #f5f7fa;
    --color-bg-secondary: #ffffff;
    --color-border-primary: #e4e8f0;
    --color-text-primary: #2c3e50;
    --color-text-secondary: #4a6491;
    --color-text-link: #3498db;
    --color-accent: #3498db;
    --color-accent-dark: #2980b9;
    --color-header-bg: #2c3e50;
    --color-header-gradient: linear-gradient(120deg, #2c3e50 0%, #4a6491 100%);
    --color-header-text: #ffffff;
    --color-footer-bg: #2c3e50;
    --color-footer-text: #ffffff;
    --color-button-bg: #238636;
    --color-button-hover: #2ea043;

    --background-color: #f8f9fa;
    --border-color: #e0e0e0;
    --text-color: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--color-text-primary);
    background: var(--color-bg-primary);
    padding: 0;
    margin: 0;
    font-size:16px;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    width:auto;
}
img {
	max-width: 650px;
	width:auto;
}
/* ヘッダースタイル */
header {
    background: var(--color-header-gradient);
    color: var(--color-header-text);
    padding: 16px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--color-header-text);
    text-decoration: none;
}

.logo i {
    margin-right: 12px;
    color: #ff7e5f;
}

.logo span {
    background: linear-gradient(45deg, #ff7e5f, #feb47b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

nav {
    display: flex;
    align-items: center;
}


nav a {
    margin-right: 20px;
    color: var(--color-header-text);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 6px;
}

nav ul li a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* 言語切り替えボタン */
.language-switcher {
    display: flex;
    gap: 10px;
}

.lang-btn {
    background: var(--color-button-bg);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.lang-btn i {
    margin-right: 6px;
}

.lang-btn:hover {
    background: var(--color-button-hover);
    transform: scale(1.05);
}

/* メインコンテンツ */
main {
    min-height: calc(100vh - 180px);
    padding: 40px 0;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--color-text-primary);
    position: relative;
    padding-bottom: 16px;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--color-accent);
    border-radius: 2px;
}

.content {
    background-color: var(--color-bg-secondary);
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--color-accent);
}

.content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

h2 {
    font-size: 24px;
    color: var(--color-text-secondary);
    margin: 24px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-border-primary);
}

h3 {
    font-size: 20px;
    color: var(--color-text-secondary);
    margin: 20px 0 12px;
}

p {
    margin-bottom: 16px;
    line-height: 1.8;
}

ul {
    padding-left: 24px;
    margin-bottom: 24px;
}

li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.btn {
    display: inline-block;
    background: var(--color-accent);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 10px 5px;
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.btn:hover {
    background: var(--color-accent-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(52, 152, 219, 0.4);
}
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background: #4a6491;
    color: white;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

tr:nth-child(even) {
    background-color: rgba(0,0,0,0.02);
}

tr:hover {
    background-color: rgba(0,0,0,0.05);
}

/* コードブロックスタイル - 修正 */
pre {
    margin: 0;
    line-height: 1.5;
    color: #f0f6fc;
    background: #1e2a38;
    border-radius: 8px;
    padding: 18px;
    margin: 20px 0;
    overflow-x: auto;
    border-left: 4px solid #3498db;
    font-size: 16px;
}

code {
    background: seashell;
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 16px;
}

pre code {
    color: #24292e;
    background: transparent;
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 16px;
}

/* フッター */
footer {
    background: var(--color-footer-bg);
    color: var(--color-footer-text);
    padding: 32px 0;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
}

.footer-content {
    justify-content: space-between;
    text-align:center;
}

.footer-links {
    display: flex;
}

.footer-links a {
    color: var(--color-footer-text);
    text-decoration: none;
    margin-right: 24px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #feb47b;
    transform: translateY(-2px);
}

.copyright {
    font-size: 16px;
    opacity: 0.9;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
	header {
		position: static;
	}
	img {
		max-width: 100%;
		width:auto;
	}
    .header-content, .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }

    nav {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    
    nav a {
    	display:none;
    }

    nav ul {
        margin: 20px 0;
        flex-wrap: wrap;
    }

    nav ul li {
        margin: 0 16px 12px 0;
    }

    .language-switcher {
        margin-top: 20px;
    }

    .footer-links {
        margin-bottom: 20px;
        flex-wrap: wrap;
    }

    .footer-links a {
        margin: 0 16px 12px 0;
    }
    
    .content {
	    background-color: transparent;
	    border-radius: 0px;
	    padding: 0px;
	    margin-bottom: 0px;
	    box-shadow: none;
	    transition: none;
	    position: relative;
	    overflow: hidden;
    }

	.content::before {
	    background: none;
	}

	.content:hover {
	    transform: none;
	    box-shadow: none;
	}
	
	body {
		background: none;
	}
}
