/* --- EGIC Custom Top Page :: ULTIMATE-REFINED :: START --- */

/* --- Wrapper --- */
.egic-ultimate-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 50px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    line-height: 1.7;
}

/* --- Section --- */
.egic-ultimate-section {
    margin-bottom: 70px;
}
.egic-ultimate-section h2 {
    font-size: 28px;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}
.egic-ultimate-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #00A0E9;
}

/* --- Character Dialog Section --- */
.egic-ultimate-dialog {
    padding: 25px;
    border-radius: 15px;
    background-color: #f7f9fa;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
}
.egic-ultimate-dialog-turn {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}
.egic-ultimate-dialog-turn:last-child {
    margin-bottom: 0;
}
.egic-ultimate-dialog-turn.correct {
    flex-direction: row-reverse;
}
.egic-ultimate-dialog-turn img {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}
.egic-ultimate-dialog-fukidashi {
    position: relative;
    padding: 18px 25px;
    border-radius: 12px;
    background-color: white;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.egic-ultimate-dialog-fukidashi p {
    margin: 0 0 15px 0;
    font-size: 16px;
}
.egic-ultimate-dialog-fukidashi::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 0;
    height: 0;
    border-style: solid;
}
.egic-ultimate-dialog-turn.chisamaru .egic-ultimate-dialog-fukidashi::before {
    left: -10px;
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
}
.egic-ultimate-dialog-turn.correct .egic-ultimate-dialog-fukidashi::before {
    right: -10px;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent white;
}
.egic-ultimate-guide-btn {
    display: inline-block;
    margin: 5px 10px 5px 0;
    padding: 8px 18px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    color: #333;
    background-color: #e9f7fe;
    transition: all 0.2s ease;
}
.egic-ultimate-guide-btn:hover {
    background-color: #00A0E9;
    color: white;
}

/* --- Grid Section --- */
.egic-ultimate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}
.egic-ultimate-grid-item {
    padding: 25px;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    background-color: #f7f9fa;
    transition: all 0.2s ease;
}
.egic-ultimate-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
.egic-ultimate-grid-item h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #007bb5;
}
.egic-ultimate-grid-item p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* --- Info Section --- */
.egic-ultimate-info-section {
    padding: 30px;
    border-radius: 15px;
    background-color: #2c3e50; /* 少し柔らかい黒に */
    color: white;
}
.egic-ultimate-info-section h2 {
    color: white;
}
.egic-ultimate-info-section h2::after {
    background-color: white;
}
.egic-ultimate-info-section p, .egic-ultimate-info-section a {
    color: #ecf0f1;
}
.egic-ultimate-info-section a:hover {
    color: white;
}

/* --- SNS List :: ULTIMATE :: FULL-COLOR --- */
.egic-ultimate-sns-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin-top: 20px;
}
.egic-ultimate-sns-item a {
    display: flex; /* アイコンを中央揃えにするため */
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: white; /* アイコンフォントの色 */
    font-size: 24px; /* アイコンフォントのサイズ */
    text-decoration: none;
    transition: all 0.2s ease;
}
.egic-ultimate-sns-item a:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.sns-youtube    { background-color: #FF0000; }
.sns-taittsuu   { background-color: #1DA1F2; }
.sns-bluesky    { background-color: #0079FF; }
.sns-sonashiru  { background-color: #FFC107; }
.sns-instagram  { background-color: #E4405F; }
.sns-tiktok     { background-color: #010101; }
.sns-niconico   { background-color: #252525; }
.sns-twitcasting{ background-color: #8BC34A; }
.sns-threads    { background-color: #000000; }
.sns-linevoom   { background-color: #06C755; }
.sns-marshmallow{ background-color: #F48FB1; }
.sns-litlink    { background-color: #673AB7; }
.egic-genesis-hero {
    text-align: center;
    padding: 80px 20px;
    border-radius: 20px;
    background: linear-gradient(135deg, #e9f7fe, #ffffff);
    margin-bottom: 70px;
    position: relative;
}
.egic-genesis-hero img {
    width: 120px;
    margin-bottom: 20px;
}
.egic-genesis-hero h1 {
    font-size: 42px;
}
.egic-genesis-hero p {
    font-size: 18px;
    color: #555;
    max-width: 600px;
    margin: 15px auto 0 auto;
}
.egic-genesis-char-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.egic-genesis-char-icon.chisamaru {
    top: 30px;
    left: 30px;
}
.egic-genesis-char-icon.correct {
    bottom: 30px;
    right: 30px;
}

.egic-genesis-section h2 { /* セクション見出しに、キャラを添える */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}
.egic-genesis-section h2 img {
    width: 40px;
    height: 40px;
}
/* 【FIX-1】キャラクター画像の"へしゃげ"防止 */
.egic-ultimate-dialog-turn img,
.egic-genesis-hero img,
.egic-genesis-section h2 img {
    object-fit: contain; /* アスペクト比を維持して、コンテナに収める */
}

/* 【FIX-2】SNSリンクの"可読性"向上 */
.egic-ultimate-sns-list {
    gap: 10px; /* 少し、間隔を、詰める */
}
.egic-ultimate-sns-item a {
    width: auto; /* 幅を、自動に */
    height: auto;
    padding: 8px 16px; /* パディングで、サイズ調整 */
    border-radius: 50px;
    font-size: 14px; /* 文字サイズ */
    font-weight: bold;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px; /* アイコンと、文字の、間 */
}
.egic-ultimate-sns-item a i { /* FontAwesomeなどの、アイコンフォントを使う場合 */
    font-size: 18px;
}

/* 【FIX-3】キャラクター自己紹介セクション */
.egic-genesis-intro-section {
    display: flex;
    gap: 30px;
    align-items: center;
    background-color: #f7f9fa;
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 70px;
}
.egic-genesis-intro-image {
    width: 200px;
    flex-shrink: 0;
}
.egic-genesis-intro-text h3 {
    margin: 0 0 15px 0;
    font-size: 24px;
}
.egic-genesis-intro-text p {
    margin: 0;
    line-height: 1.8;
}

/* --- EGIC Custom Top Page :: ULTIMATE-REFINED :: END --- */