/* ベースリセット */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    background-color: #f4f8fb;
    color: #333;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* 共通クラス */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}
.section-padding { padding: 60px 0; }
.text-center { text-align: center; }
.text-white { color: #fff; }
.mb-20 { margin-bottom: 20px; }
.sp-only { display: none; }

/* ヘッダー画像エリア */
.hero-image-wrapper {
    background-color: #2b2b2b;
    border-bottom: 8px solid #4CAF50;
    padding: 0; 
}

.hero-image-wrapper img {
    width: 100%;
    height: auto;
    vertical-align: bottom;
}

/* 賞カードエリア */
.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    border-bottom: 4px solid #ddd;
    display: inline-block;
    padding-bottom: 10px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.grid-container {
    display: grid;
    /* ▼▼▼ ここを2列に変更しました ▼▼▼ */
    grid-template-columns: repeat(2, 1fr); 
    gap: 30px;
}

/* カードの外枠設定 */
.card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border: 2px solid #eee;
    
    /* 中身が画像だけなのでflexで隙間を消す */
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    border-color: #4CAF50;
}

/* カード内の画像設定 */
.card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* 最優秀賞だけ赤枠 */
.grand-prize {
    border: 4px solid #ff4757;
    background: #fff5f5; 
}

/* インフォボックス */
.info-box {
    margin-top: 40px;
    background: #fffae6;
    border: 2px dashed #f1c40f;
    padding: 30px;       /* 余白を少し広げました（20px→30px） */
    text-align: center;
    border-radius: 8px;
    font-weight: bold;
    color: #d35400;
    
    /* ▼▼▼ 追加した部分 ▼▼▼ */
    font-size: 1.3rem;   /* 文字を大きく（標準の約1.3倍） */
    line-height: 1.8;    /* 行間を広げて読みやすく */
}

/* サーバー情報（ダークテーマ） */
.server-guide {
    background-color: #333;
    color: #fff;
    border-top: 8px solid #795548;
}

.guide-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

/* 修正前：.step-item */
/*
.step-item {
    background: #444;
    padding: 15px;
    border-radius: 8px;
    width: calc(33.333% - 15px);
    min-width: 250px;
    border: 1px solid #555;
}
*/

/* 修正後：全てのステップを緑色に統一します */
.step-item {
    padding: 15px;
    border-radius: 8px;
    width: calc(33.333% - 15px);
    min-width: 250px;

    /* ここをハイライト時と同じ緑色の設定に変更 */
    background: #4CAF50; /* マイクラ草ブロック色 */
    color: #fff;         /* 文字色を白に */
    border: 2px solid #fff; /* 白い枠線を追加 */
}


/* 修正前：.step-item.highlight-step */
/*
.step-item.highlight-step {
    background: #4CAF50;
    color: #fff;
    border: 2px solid #fff;
}
*/

/* 修正後：この「特別扱い」の記述は不要になるので削除します */
/* .step-item.highlight-step { ... } のブロックごと削除してください */

.step-num {
    background: #ffeb3b;
    color: #000;
    width: 25px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    margin-right: 8px;
}

.step-item.highlight-step {
    background: #4CAF50;
    color: #fff;
    border: 2px solid #fff;
}

.copy-area code {
    display: block;
    background: rgba(0,0,0,0.3);
    padding: 8px;
    margin-top: 5px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 1.1em;
    text-align: center;
}
.small { font-size: 0.8em; opacity: 0.8; }

/* フッター */
footer {
    background: #ffeb3b;
    color: #333;
    padding: 40px 0;
    text-align: center;
}

.contact-box {
    background: #fff;
    display: inline-block;
    padding: 30px;
    border-radius: 12px;
    border: 3px solid #333;
    max-width: 600px;
    width: 100%;
}

.contact-title {
    font-weight: bold;
    margin-bottom: 10px;
    display: inline-block;
    border-bottom: 2px solid #333;
}

.contact-box h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.tel a {
    font-size: 2rem;
    font-weight: 800;
    color: #d35400;
}

.address {
    margin-top: 15px;
    font-size: 0.9rem;
}

/* モバイル対応（レスポンシブ） */
@media (max-width: 768px) {
    .sp-only { display: block; }
    
    .grid-container {
        /* スマホでは1列に戻す */
        grid-template-columns: 1fr; 
    }
    
    .step-item {
        width: 100%;
    }
    
    .tel a { font-size: 1.5rem; }
    
    .contact-box {
        width: 100%;
        padding: 20px;
    }
}

/* サーバーガイド下の画像エリア（1枚中央寄せ） */
.sub-image-container {
    margin-top: 40px; /* 上の手順との余白 */
}

.sub-image-item.center-item {
    max-width: 800px; /* PCでの画像の最大幅（お好みで調整可能） */
    width: 100%;      /* スマホでは横幅いっぱい */
    margin: 0 auto;   /* これで中央寄せになります */
}

.sub-image-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;     /* 角を少し丸く */
    border: 2px solid #555; /* 薄い枠線 */
    box-shadow: 0 4px 10px rgba(0,0,0,0.3); /* 影 */
}

/* 注意：先ほど追加したメディアクエリ内の
   .sub-images-grid { grid-template-columns: 1fr; }
   は不要になったので削除してください。 */
   
   
/* 導入テキスト */
.intro-text {
    text-align: center;    /* 中央寄せ */
    margin-bottom: 40px;   /* 下のタイトルとの余白 */
    font-weight: bold;     /* 少し太字にして読みやすく */
    font-size: 1.1rem;     /* 文字サイズを少し大きく */
    line-height: 1.8;      /* 行間を広めに */
}

/* スマホでのみ改行を有効にする設定（もし既存でなければ追加） */
@media (min-width: 769px) {
    .sp-only { display: none; }
}