/* ======================================= */
/* 0. 全体設定 (Reset & Base)              */
/* ======================================= */
:root {
--main-color: #2ecc71;   /* メインカラー (緑) */
--secondary-color: #3498db;   /* サブカラー (青) */
--text-color: #333;
--background-light: #f4f7f6;
--background-dark: #2c3e50;
--border-color: #ddd;
}

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

body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
line-height: 1.6;
color: var(--text-color);
background-color: var(--background-light);
}

a {
color: var(--main-color);
text-decoration: none;
transition: color 0.3s;
}

a:hover {
color: var(--secondary-color);
text-decoration: underline;
}

main {
max-width: 1200px;
margin: 20px auto;
padding: 0 20px;
}

h1, h2, h3 {
color: var(--background-dark);
margin-bottom: 15px;
font-weight: 700;
}

h2 {
font-size: 2em;
border-bottom: 2px solid var(--main-color);
padding-bottom: 5px;
margin-top: 30px;
margin-bottom: 30px;
text-align: center;
}

section {
background: #fff;
padding: 30px;
border-radius: 8px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
margin-bottom: 30px;
}

/* ======================================= */
/* 1. ヘッダーとナビゲーション             */
/* ======================================= */
header {
background-color: var(--background-dark);
color: #ecf0f1;
padding: 15px 20px;
display: flex;
justify-content: space-between;
align-items: center;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.header-inner {
display: flex;
align-items: center;
}

.server-icon {
/* アイコンを大きく、横長表示に対応できるよう設定を拡張 */
width: auto;
height: 50px;  /* 高さを大きく */
max-width: 200px;  /* 横長の最大幅を設定 */
border-radius: 8px;
object-fit: contain;
}

nav ul {
list-style: none;
display: flex;
}

nav ul li a {
color: #ecf0f1;
padding: 10px 15px;
display: block;
font-weight: 500;
}

nav ul li a:hover {
background-color: rgba(255, 255, 255, 0.1);
text-decoration: none;
border-radius: 4px;
}

/* ======================================= */
/* 2. トップページ (index.html) の要素     */
/* ======================================= */
.hero {
text-align: center;
padding: 40px 0;
}

.main-visual {
width: 100%;
max-height: 400px;
object-fit: cover;
border-radius: 10px;
margin-bottom: 25px;
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.hero h1 {
font-size: 3em;
color: var(--main-color);
margin-bottom: 10px;
}

.catchphrase {
font-size: 1.3em;
color: #555;
margin-bottom: 20px;
}

/* --- IPアドレス表示領域（インラインCSS分離） --- */
.server-ip-display.ip-box {
    margin: 20px auto 30px;
}

.server-ip-display.ip-box h2 {
    font-size: 1.8em;
    margin-bottom: 5px;
}

.server-ip-display {
padding: 20px;
background-color: #fff;
border: 3px solid var(--main-color);
border-radius: 8px;
display: inline-block;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.ip-address {
font-family: 'Courier New', Courier, monospace;
font-size: 1.2em;
color: var(--main-color);
font-weight: bold;
border-bottom: 2px solid var(--main-color);
}
/* -------------------------------------- */

/* --- サーバー情報リスト (インラインCSS分離) --- */
.info-list {
    display: flex;
    justify-content: center;
    gap: 40px;
}
/* -------------------------------------- */

/* ボタン群 */
.button-area {
margin-top: 20px;
display: flex;
justify-content: center;
gap: 20px;
}

.btn-primary, .btn-secondary {
display: inline-block;
padding: 12px 25px;
border-radius: 6px;
font-weight: bold;
text-transform: uppercase;
transition: background-color 0.3s, transform 0.2s;
text-decoration: none !important;
}

.btn-primary {
background-color: var(--main-color);
color: white;
border: 2px solid var(--main-color);
}

.btn-primary:hover {
background-color: #27ae60;
transform: translateY(-2px);
}

.btn-secondary {
background-color: #ecf0f1;
color: var(--text-color);
border: 2px solid #bdc3c7;
}

.btn-secondary:hover {
background-color: #bdc3c7;
transform: translateY(-2px);
}

/* 特徴グリッド */
.features-grid {
/* HTMLのインラインCSSを削除したため、このCSSが適用されます */
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 20px;
text-align: left;
}
.feature-box {
/* HTMLのインラインCSSを削除したため、このCSSが適用されます */
border: 1px solid var(--border-color);
padding: 20px;
border-radius: 8px;
transition: box-shadow 0.3s;
}
.feature-box:hover {
box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

/* ======================================= */
/* 3. 運営紹介 (about.html) の要素         */
/* ======================================= */
.profile-icon {
width: 80px;
height: 80px;
border-radius: 50%;
margin-right: 20px;
border: 3px solid var(--main-color);
object-fit: cover;
}

.owner-profile {
display: flex;
align-items: flex-start;
margin-bottom: 25px;
padding: 15px;
border-bottom: 1px dashed var(--border-color);
}

.owner-details p {
margin: 5px 0;
}

.motto-box blockquote {
font-size: 1.5em;
color: var(--secondary-color);
border-left: 5px solid var(--secondary-color);
padding-left: 20px;
margin: 20px 0;
font-style: italic;
}

.team-roles table {
width: 100%;
border-collapse: collapse;
margin-top: 15px;
}
.team-roles th, .team-roles td {
border: 1px solid var(--border-color);
padding: 10px;
text-align: left;
}
.team-roles th {
background-color: #f0f0f0;
}

/* ======================================= */
/* 4. FAQ (pages/faq.html) の要素          */
/* ======================================= */
.faq-item {
border: 1px solid var(--border-color);
border-radius: 6px;
margin-bottom: 10px;
overflow: hidden;
}

.faq-item h4 {
background-color: #eaf8f1; /* Light green background */
color: var(--text-color);
padding: 15px;
margin: 0;
cursor: pointer;
font-size: 1.1em;
position: relative;
user-select: none;   /* テキスト選択不可 */
}

/* 簡易アコーディオン風の視覚効果を削除。JavaScriptで開閉を制御してください。 */

.faq-item .answer {
padding: 15px;
background-color: #fff;
border-top: 1px solid var(--border-color);
/* 実際にはJavaScriptでdisplay:none/blockを切り替える */
}

/* ======================================= */
/* 5. フッター                             */
/* ======================================= */
footer {
background-color: var(--background-dark);
color: #95a5a6;
text-align: center;
padding: 15px 20px;
margin-top: 40px;
font-size: 0.9em;
}

footer a {
color: #bdc3c7;
}

footer a:hover {
color: var(--main-color);
}

/* ======================================= */
/* 6. レスポンシブデザイン                 */
/* ======================================= */
@media (max-width: 800px) {
header {
flex-direction: column;
text-align: center;
}

nav ul {
flex-direction: column;
align-items: center;
width: 100%;
margin-top: 10px;
}

nav ul li a {
padding: 8px 0;
width: 100%;
text-align: center;
}

.header-link {
margin-bottom: 10px;
}

.button-area {
flex-direction: column;
gap: 10px;
}
}