
/* 全体のスタイル */
*,
*::before,
*::after {
    box-sizing: border-box;
}

ul,
li {
    margin: 0;
    padding: 0;
    list-style: none;
}

body {
    font-family: 'Roboto', sans-serif; /* マテリアルデザインに合うフォント */
    margin: 0;
    padding: 0;
    background-color: #f5f5f5; /* より明るい背景色 */
    color: #212121; /* 濃いめの文字色 */
    line-height: 1.6; /* 行間を調整 */
}

body.no-scroll {
    overflow: hidden;
}

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 20px;
}

/* ヘッダー */
header {
    background-color: #fff;
    padding: 15px 20px; /* パディングを調整 */
    border-bottom: 1px solid #e0e0e0; /* 線の色を調整 */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* 影を追加 */
}

header .container {
    padding: 0;
    max-width: none;
}

p.site-title {
    margin: 0;
    font-size: 22px; /* フォントサイズを調整 */
    text-align: center;
    font-weight: bold; /* h1の代わりのため太字に */
}

p.site-title a {
    text-decoration: none;
    color: #212121;
}

.site-description {
    font-size: 13px; /* フォントサイズを調整 */
    color: #757575; /* 色を調整 */
    margin-top: 4px;
    margin-bottom: 0;
    text-align: center;
}

/* ナビゲーション */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.98); /* 透明度を調整 */
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

nav.active {
    transform: translateX(0);
}

nav ul {
    flex-direction: column;
    text-align: center;
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
}

nav li {
    margin: 12px 0; /* マージンを調整 */
}

nav a {
    text-decoration: none;
    color: #1976D2; /* マテリアルデザインのPrimary Blue */
    font-weight: 500; /* フォントウェイトを調整 */
    font-size: 20px; /* フォントサイズを調整 */
    transition: color 0.3s;
}

nav a:hover {
    color: #1565C0; /* ホバー時の色を調整 */
}

/* メインコンテンツ */
main {
    padding: 20px 0;
    background-color: #fff;
    box-shadow: 0 2px 2px rgba(0,0,0,0.05); /* 影を追加 */
}

h2 {
    font-size: 24px; /* フォントサイズを調整 */
    border-bottom: 2px solid #1976D2; /* マテリアルデザインのPrimary Blue */
    padding-bottom: 8px;
    margin-bottom: 18px;
    color: #303F9F; /* Dark Blue */
}

h3 {
    font-size: 20px; /* フォントサイズを調整 */
    color: #424242;
    margin-top: 25px;
    margin-bottom: 15px;
}

p {
    font-size: 15px; /* フォントサイズを調整 */
    margin-bottom: 1em;
}

/* フッター */
footer {
    text-align: center;
    padding: 15px 20px; /* パディングを調整 */
    background-color: #fff;
    border-top: 1px solid #e0e0e0;
    margin-top: 30px;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.05); /* 影を追加 */
}

/* ハンバーガーメニュー */
.hamburger-menu {
    display: block;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
}

/* 共通アイキャッチ画像 */
.featured-image-container {
    width: 100%;
    overflow: hidden;
    margin-bottom: 20px;
}

.featured-image {
    width: 100%;
    height: auto;
    display: block;
}

.featured-image-container p {
    font-size: 0.8em;
    text-align: right;
    margin-top: 5px;
}

/* サービスボックス */
.service-box-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    justify-content: center;
}

.service-box {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    flex: 1 1 calc(50% - 20px); /* 2列表示 */
    max-width: calc(50% - 20px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: relative; /* これを追加 */
}

@media (max-width: 600px) {
    .service-box {
        flex: 1 1 100%; /* 1列表示 */
        max-width: 100%;
    }
}

.service-name-button {
    font-size: 22px; /* フォントサイズを元に戻す */
    font-weight: bold;
    color: #fff;
    padding: 10px 15px; /* パディングを元に戻す */
    border-radius: 5px;
    margin-bottom: 10px; /* PR文章との間隔を調整 */
    display: inline-block; /* ボタンのように表示 */
}

.recommend-tag {
    font-size: 12px;
    color: #D32F2F; /* より濃い赤 */
    background-color: #FFEBEE; /* 薄い赤の背景 */
    border: 1px solid #EF9A9A; /* 枠線 */
    padding: 3px 8px;
    border-radius: 15px; /* 角を丸く */
    font-weight: bold; /* 太字に */
    position: absolute;
    top: -10px; /* 位置調整 */
    right: -10px; /* 位置調整 */
    z-index: 1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* 影を追加 */
}

/* サービスごとの色 */
.service-name-button.u-next {
    background-color: #00B5EE; /* U-NEXTのイメージカラー */
}

.service-name-button.abema {
    background-color: #000000; /* ABEMAのイメージカラーを黒に変更 */
}

.service-name-button.dmm {
    background-color: #000000; /* DMMのイメージカラーを黒に変更 */
    color: #FFFF00; /* テキストを黄色に */
}

.service-name-button.amazon {
    background-color: #1565C0; /* AmazonのイメージカラーをU-NEXTより濃い青に */
}

.service-description {
    font-size: 14px;
    color: #424242;
    margin-bottom: 15px;
}

.affiliate-button-container {
    margin-top: 15px;
}

.affiliate-button-container a {
    color: #1976D2; /* マテリアルデザインのPrimary Blue */
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
}

.affiliate-button-container a:hover {
    text-decoration: underline;
}

/* カード */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card a {
    text-decoration: none;
    color: inherit;
}

.card img {
    width: 100%;
    height: auto;
    display: block;
}

.card-title {
    padding: 15px;
    font-weight: bold;
}

