@charset "UTF-8";

/* --- 全体の基本設定 --- */
body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    line-height: 1.8;
    color: #333;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
}

/* --- コンテナ（中央寄せ） --- */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    border-radius: 10px; /* 角丸を追加 */
}

/* --- ヘッダー --- */
header {
    background-color: #000; /* Uberカラーの黒 */
    color: #fff;
    padding: 30px 0;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 1.8rem;
    letter-spacing: 1px;
}

/* --- ナビゲーション --- */
nav {
    background-color: #222;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav a {
    color: #fff;
    padding: 12px 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

nav a:hover {
    background-color: #444;
}

/* --- 記事・コンテンツ見出し --- */
h1 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    border-bottom: 3px solid #06c167;
    padding-bottom: 10px;
    text-align: center;
}

h2 {
    border-left: 5px solid #06c167; /* Uber Eatsグリーンのアクセント */
    padding-left: 15px;
    margin-top: 40px;
    font-size: 1.5rem;
    background: #f0fdf4; /* 背景色を追加して視認性アップ */
    padding: 10px 15px;
}

h3 {
    margin-top: 30px;
    font-size: 1.2rem;
    color: #06c167;
}

p {
    margin-bottom: 1.5em;
}

/* --- 画像のスタイル --- */
img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    vertical-align: bottom;
}

/* --- リンク --- */
a {
    color: #06c167;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* --- お問い合わせフォーム --- */
input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 1rem;
    margin-bottom: 20px;
    background: #fdfdfd;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #06c167;
    box-shadow: 0 0 5px rgba(6, 193, 103, 0.2);
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
}

/* --- ボタン共通スタイル --- */
button, 
.cta-btn, 
.btn {
    display: inline-block;
    background-color: #06c167; /* Uberグリーン */
    color: #fff;
    padding: 15px 40px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(6, 193, 103, 0.3);
    width: 100%; /* スマホで見やすいよう幅いっぱいに */
    box-sizing: border-box;
}

button:hover, 
.cta-btn:hover, 
.btn:hover {
    background-color: #05a056;
    transform: translateY(-2px);
    text-decoration: none;
}

/* --- トップページ用カードデザイン --- */
.step-card {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.step-label {
    display: inline-block;
    background: #eee;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #555;
}

.step-card h2 {
    font-size: 1.3rem;
    margin: 0 0 15px;
    font-weight: 800;
    border-left: 5px solid #06c167;
    padding-left: 15px;
    background: none; /* カード内は見出し背景なし */
}

/* --- カラーバリエーション（ボタン） --- */
.bg-red { background-color: #ff4757; box-shadow: 0 4px 10px rgba(255, 71, 87, 0.3); }
.bg-red:hover { background-color: #e8414f; }

.bg-blue { background-color: #1D3557; box-shadow: 0 4px 10px rgba(29, 53, 87, 0.3); }
.bg-blue:hover { background-color: #162a45; }

.bg-navy { background-color: #232f3e; box-shadow: 0 4px 10px rgba(35, 47, 62, 0.3); }
.bg-navy:hover { background-color: #1a232e; }

.bg-pink { background-color: #ff4081; box-shadow: 0 4px 10px rgba(255, 64, 129, 0.3); }
.bg-pink:hover { background-color: #e91e63; }

.bg-sec { background-color: #2980b9; box-shadow: 0 4px 10px rgba(41, 128, 185, 0.3); }
.bg-sec:hover { background-color: #2471a3; }

.btn-outline { 
    background-color: #fff; 
    color: #27ae60; 
    border: 2px solid #27ae60; 
    box-shadow: none; 
}
.btn-outline:hover {
    background-color: #f0fdf4;
    color: #219150;
}

/* --- フッター --- */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 40px 20px;
    margin-top: 50px;
    font-size: 0.8rem;
}

.footer-links a {
    color: #ccc;
    margin: 0 10px;
    text-decoration: none;
}
.footer-links a:hover {
    color: #fff;
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    font-weight: bold;
    color: #888;
}

/* --- レスポンシブ対応（スマホ向け調整） --- */
@media (max-width: 600px) {
    .container {
        padding: 15px;
    }
    h1 {
        font-size: 1.5rem;
    }
    h2 {
        font-size: 1.3rem;
    }
    .cta-btn, button {
        padding: 15px 20px;
        font-size: 1rem;
    }
}

/* =========================================================
   ここから下を追加：アフィリエイトリンク用（スマホ対応レスポンシブ）
========================================================= */
.affiliate-wrap {
    background: #fff;
    display: block;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    margin-bottom: 20px;
}

.affiliate-wrap a {
    text-decoration: none !important;
}

/* インラインの固定幅を強制上書きして自動調整 */
.affiliate-wrap table {
    width: 100% !important;
    border: none !important;
}

.affiliate-wrap tr {
    display: flex;
    align-items: center;
}

.affiliate-wrap td:first-child {
    width: 100px !important;
    flex-shrink: 0;
    text-align: center;
}

.affiliate-wrap td:first-child img {
    max-width: 100%;
    height: auto;
}

.affiliate-wrap td:last-child {
    width: 100% !important;
    padding-left: 15px !important;
}

/* A8.netの計測用1px画像を非表示にする（レイアウト崩れ防止） */
.affiliate-wrap img[width="1"] {
    display: none !important;
}

/* スマホ向けのレイアウト調整（画面幅480px以下で縦並びに） */
@media (max-width: 480px) {
    .affiliate-wrap tr {
        flex-direction: column;
    }
    .affiliate-wrap td:first-child {
        width: 100% !important;
        margin-bottom: 15px;
    }
    .affiliate-wrap td:last-child {
        padding-left: 0 !important;
    }
}