/* =============================
   リセット・共通レイアウト
============================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 0;
}
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 0.4rem;
    position: relative;
    width: 100%;
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    gap: 0rem;
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ff69b4;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .footer-links {
        gap: 1rem;
    }
}
/* =============================
   ヘッダー・ナビゲーション
============================= */
header {
    background-color: #4CAF50;
    color: white;
    padding: 1rem;
    text-align: center;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
header h1 {
    margin-bottom: 1rem;
}
header nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}
header nav ul li {
    margin: 0 0.5rem;
}
header nav ul li a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}
header nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* =============================
   メインレイアウト
============================= */
main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    padding-bottom: 5rem;
    flex: 1;
    margin-top: 1rem;
}

/* =============================
   トップページのグリッド
============================= */
.content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    position: relative;
    padding: 0 4rem;
    margin-top: 1rem;
    margin-bottom: 0rem;
}
.content-item {
    background-color: #fafafa;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    position: relative;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
    text-decoration: none;
    color: inherit;
}
.content-item:nth-child(odd) {
    margin-left: -20px;
    margin-top: -20px;
    z-index: 2;
    transform: translateY(-20px);
}
.content-item:nth-child(even) {
    margin-right: -20px;
    margin-bottom: -20px;
    z-index: 1;
    transform: translateY(20px);
}
.content-item:nth-child(n+3) {
    margin-top: 1rem;
}
.content-item:nth-child(even):nth-child(n+4) {
    margin-top: 3rem;
}
.content-item:nth-child(odd):hover {
    transform: translateY(-30px);
    transition: transform 0.3s ease;
    z-index: 3;
}
.content-item:nth-child(even):hover {
    transform: translateY(-10px);
    transition: transform 0.3s ease;
    z-index: 3;
}
.content-item:hover {
    transform: translateY(-5px);
    z-index: 3;
}
.content-item img {
    width: 100%;
    height: 60%;
    object-fit: cover;
}
.content-item h3 {
    padding: 1rem;
    font-size: 1.2rem;
    margin: 0;
}
.content-item p {
    padding: 0 1rem 1rem;
    font-size: 0.9rem;
    flex-grow: 1;
    margin: 0;
}

.content-item {
    position: relative;
    z-index: 1;
    background-clip: padding-box;
}

.content-item::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 8px;
    padding: 2px;
    background: linear-gradient(135deg, #ffb6d5, #FF69B4);
    -webkit-mask:
      linear-gradient(#fff 0 0) content-box, 
      linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 2;
}

.color-1::before {
    background: linear-gradient(135deg, #FFAF7C, #FEDFC7);
}
.color-2::before {
    background: linear-gradient(135deg, #FFEC77, #FDF5C2);
}
.color-3::before {
    background: linear-gradient(135deg, #5CFF93, #9CF5B5);
}
.color-4::before {
    background: linear-gradient(135deg, #4AEFE8, #A1FFF8);
}
.color-5::before {
    background: linear-gradient(135deg, #2F83FF, #7BB1FF);
}
.color-6::before {
    background: linear-gradient(135deg, #BE7DFF, #E4C7FF);
}

/* =============================
   レスポンシブ対応
============================= */
@media (max-width: 768px) {
    body {
        padding-top: 0;
    }
    header {
        padding: 0.4rem 0.6rem;
    }
    header h1 {
        margin-bottom: 0.25rem;
        font-size: 1.2rem;
        line-height: 1.1;
    }
    header nav ul {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: repeat(2, auto);
        gap: 0.2rem;
        padding: 0.2rem 0;
    }
    header nav ul li {
        margin: 0;
        width: 100%;
        text-align: center;
    }
    header nav ul li:nth-child(1) { grid-column: 1; grid-row: 1; }
    header nav ul li:nth-child(2) { grid-column: 2; grid-row: 1; }
    header nav ul li:nth-child(3) { grid-column: 3; grid-row: 1; }
    header nav ul li:nth-child(4) { grid-column: 1; grid-row: 2; }
    header nav ul li:nth-child(5) { grid-column: 2; grid-row: 2; }
    header nav ul li:nth-child(6) { grid-column: 3; grid-row: 2; }
    header nav ul li a {
        display: block;
        padding: 0.3rem 0.4rem;
        width: 100%;
        font-size: 0.9rem;
        line-height: 1.2;
        transition: none;
    }
    header nav ul li a:hover {
        background-color: transparent;
        transform: none;
    }
    .content-grid {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0 5rem;
    }
    .content-item,
    .content-item:nth-child(odd),
    .content-item:nth-child(even) {
        margin: 0;
        transform: none !important;
        transition: none !important;
        z-index: 1 !important;
    }
    .content-item:nth-child(odd) {
        margin-top: 0rem;
    }
    .content-item:nth-child(even) {
        margin-bottom: 0rem;
    }
    .content-item:nth-child(n+2) {
        margin-top: 1rem;
    }
    .content-item:nth-child(even):nth-child(n+4) {
        margin-top: 1rem;
    }

    .content-item {
        aspect-ratio: auto;
    }
    .content-item img {
        height: auto;
    }
    .content-item p {
        display: none;
    }

    .content-item:hover,
    .content-item:nth-child(odd):hover,
    .content-item:nth-child(even):hover,
    .content-item:nth-child(odd):hover ~ .content-item:nth-child(odd),
    .content-item:nth-child(even):hover ~ .content-item:nth-child(even) {
        transform: none !important;
        z-index: 1 !important;
        background-color: transparent !important;
        box-shadow: none !important;
    }
}

/* =============================
   各コンテンツカラー
============================= */
.color-1 h3 { color: #FFAF7C; }
.color-2 h3 { color: #d4c566; }
.color-3 h3 { color: #5CFF93; }
.color-4 h3 { color: #4AEFE8; }
.color-5 h3 { color: #2F83FF; }
.color-6 h3 { color: #BE7DFF; }

.color-1 p { color: #b9a393; }
.color-2 p { color: #c1bb95; }
.color-3 p { color: #69a57a; }
.color-4 p { color: #6daba7; }
.color-5 p { color: #5b87c5; }
.color-6 p { color: #8b7a9c; }

/* =============================
   汎用ページレイアウト
============================= */
.content-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 0rem;
}
.content-page p {
    color: #666;
    margin-bottom: 0rem;
}

.back-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #FF69A7;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}
.back-link:hover {
    background-color: #FFB6D5;
}



/* =============================
   記事グループ・記事リスト
============================= */
.article-group {
    margin-bottom: 1rem;
}
.article-group h3 {
    margin-bottom: 1rem;
    color: #8f8080;
    font-size: 1rem;
}
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.0rem;
}


.article-item {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #ffae75;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 120px;
}
.article-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.article-item img {
    width: 100%;
    height:100px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}
.article-item h4 {
    margin: 0.1rem;
    font-size: 1rem;
    color: #333;
}
.article-item p {
    margin: 0.0rem;
    font-size: 0.8rem;
    color: #000000;
    overflow: hidden;
}
@media (max-width: 768px) {
    .article-grid { grid-template-columns: 1fr; }
    .article-item { height: 180px; }
    .article-item img { height: 100px; }
}

.article-item-programming {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #86f397;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 120px;
}

.article-item-programming:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.article-item-programming p {
    margin: 0.0rem;
    font-size: 0.8rem;
    color: #000000;
    overflow: hidden;
}

.article-item-programming img {
    width: 100%;
    height:50px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}
.article-item-programming h4 {
    margin: 0.1rem;
    font-size: 1rem;
    color: #333;
}

.article-item-programming p {
    margin: 0.0rem;
    font-size: 0.8rem;
    color: #000000;
    overflow: hidden;
}


@media (max-width: 768px) {
    .article-grid { grid-template-columns: 1fr; }
    .article-item { height: 180px; }
    .article-item img { height: 100px; }
}


/* =============================
   記事詳細・チーム・メンバー
============================= */
.article-content {
    margin: 2rem 0;
}
.article-content img {
    width: 100%;
    max-width: 800px;
    height: auto;
    margin-bottom: 1rem;
    border-radius: 8px;
}
.article-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}
@media (max-width: 768px) {
    .article-content img { max-width: 100%; }
}
.team-info {
    margin-bottom: 3rem;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}
.company-profile h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}
.company-profile p {
    color: #34495e;
    margin-bottom: 2rem;
    line-height: 1.6;
}
.company-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.detail-item h4 {
    color: #3498db;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}
.detail-item p {
    color: #7f8c8d;
    margin: 0;
}
.team-members {
    margin-bottom: 3rem;
}
.team-members h2 {
    margin-bottom: 2rem;
    color: #2c3e50;
}
.member-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}
.member-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}
.member-item:hover {
    transform: translateY(-5px);
}
.member-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
}
.member-item h3 {
    color: #2c3e50;
    margin: 1rem;
    font-size: 1.4rem;
}
.member-item .position {
    color: #3498db;
    margin: 0 1rem;
    font-size: 1rem;
}
.member-item .description {
    color: #34495e;
    margin: 1rem;
    line-height: 1.4;
}
@media (max-width: 768px) {
    .company-details { grid-template-columns: 1fr; gap: 1rem; }
    .member-grid { grid-template-columns: 1fr; }
    .member-item img { height: 150px; }
}

/* =============================
   各ページ個別テーマカラー
============================= */
/* Profileページの色設定 */
.profile-page {
    --primary-color: #FFAF7C;
    --secondary-color: #FEDFC7;
}
.profile-page header {
    background-color: var(--primary-color);
}
.profile-page header h1 {
    color: white;
}
.profile-page header nav ul li a {
    color: white;
}
.profile-page header nav ul li a:hover {
    background-color: var(--secondary-color);
}
.profile-page .article-title {
    color: var(--primary-color);
}
.profile-page .article-subtitle {
    color: var(--secondary-color);
}
.profile-page .back-link {
    background-color: var(--primary-color);
    color: white;
}
.profile-page .back-link:hover {
    background-color: var(--secondary-color);
}

/* GameDevページの色設定 */
.gamedev-page {
    --primary-color: #FFEC77;
    --secondary-color: #FDF5C2;
}
.gamedev-page header {
    background-color: var(--primary-color);
}
.gamedev-page header h1 {
    color: white;
}
.gamedev-page header nav ul li a {
    color: white;
}
.gamedev-page header nav ul li a:hover {
    background-color: var(--secondary-color);
}
.gamedev-page .article-title {
    color: var(--primary-color);
}
.gamedev-page .article-subtitle {
    color: var(--secondary-color);
}
.gamedev-page .back-link {
    background-color: var(--primary-color);
    color: rgb(61, 61, 61);
}
.gamedev-page .back-link:hover {
    background-color: var(--secondary-color);
}

/* Programmingページの色設定 */
.programming-page {
    --primary-color: #5CFF93;
    --secondary-color: #464847;
}
.programming-page header {
    background-color: var(--primary-color);
}
.programming-page header h1 {
    color: white;
}
.programming-page header nav ul li a {
    color: white;
}
.programming-page header nav ul li a:hover {
    background-color: var(--secondary-color);
}
.programming-page .article-title {
    color: var(--primary-color);
}
.programming-page .article-subtitle {
    color: var(--secondary-color);
}
.programming-page .back-link {
    background-color: var(--primary-color);
    color: rgb(149, 148, 148);
}
.programming-page .back-link:hover {
    background-color: var(--secondary-color);
}


/* Car, Room, Other, Profile, GameDev, Programming の各 .page クラスのまま現状維持 */
.car-page {
    --primary-color: #4AEFE8;
    --secondary-color: #18a39a;
}

.car-page header {
    background-color: var(--primary-color);
}

.car-page header h1 {
    color: white;
}

.car-page header nav ul li a {
    color: white;
}

.car-page header nav ul li a:hover {
    background-color: var(--secondary-color);
}

.car-page .article-list {
    margin: 2rem 0;
    width: 100%;
}

.car-page .article-item {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    height: auto;
    overflow: hidden;
    padding: 0.6rem;
    display: block;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.car-page .article-item a {
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 0rem;
}

.car-page .article-item:hover {
    transform: translateY(-5px);
}

.car-page .article-item:first-child {
    border-left: 4px solid var(--primary-color);
}

.car-page .article-item:not(:first-child) {
    border-left: 4px solid var(--secondary-color);
}

.car-page .article-header {
    background-color: #f8f9fa;
}

/* 横並びサムネイル + テキストのカードレイアウト */
.car-page .article-header {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
}
.car-page .article-header img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 6px;
    border-bottom: none;
    align-self: center;
}
.car-page .article-header .article-info {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}
.car-page .article-title {
    font-size: 1.15rem;
    margin: 0 0 0.35rem 0;
}
.car-page .article-date {
    margin: 0 0 0.45rem 0;
    font-size: 0.95rem;
}
.car-page .article-subtitle {
    margin: 0;
    line-height: 1.4;
    color: #4a4a4a;
}

.car-page .article-title {
    color: var(--primary-color);
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.car-page .article-date {
    color: #666;
    font-size: 0.9rem;
    margin: 0 0 0.5rem 0;
}

.car-page .article-subtitle {
    color: var(--secondary-color);
    margin: 0;
    font-size: 1.1rem;
}

.car-page .back-link {
    background-color: var(--primary-color);
    color: white;
}

.car-page .back-link:hover {
    background-color: var(--secondary-color);
}

/* Roomページの色設定 */
.room-page {
    --primary-color: #2F83FF;
    --secondary-color: #7BB1FF;
}

.room-page header {
    background-color: var(--primary-color);
}



.room-page header h1 {
    color: white;
}

.room-page header nav ul li a {
    color: white;
}

.room-page header nav ul li a:hover {
    background-color: var(--secondary-color);
}

.room-page .article-list {
    margin: 2rem 0;
    width: 100%;
}

.room-page .article-item {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    height: 150px;
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer;
}

    /* 小さい画面では縦並びに戻す（480px以下） */
    @media (max-width: 480px) {
        .car-page .article-header {
            display: block;
        }
        .car-page .article-header img {
            width: 100%;
            height: auto;
            border-radius: 6px;
            margin-top: 0.5rem;
            order: 0;
        }
        .car-page .article-title { white-space: normal; }
    }

.room-page .article-item a {
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 0rem;
}

.room-page .article-item:hover {
    transform: translateY(-5px);
}

.room-page .article-item:first-child {
    border-left: 4px solid var(--primary-color);
}

.room-page .article-item:not(:first-child) {
    border-left: 4px solid var(--secondary-color);
}

.room-page .article-header {
    background-color: #f8f9fa;
}

.room-page .article-title {
    color: var(--primary-color);
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.room-page .article-date {
    color: #4e38cd;
    font-size: 0.9rem;
    margin: 0 0 0.5rem 0;
}

.room-page .article-subtitle {
    color: var(--secondary-color);
    margin: 0;
    font-size: 1.1rem;
}

.room-page .back-link {
    background-color: var(--primary-color);
    color: white;
}

.room-page .back-link:hover {
    background-color: var(--secondary-color);
}

/* Otherページの色設定 */
.other-page {
    --primary-color: #BE7DFF;
    --secondary-color: #E4C7FF;
}

.other-page header {
    background-color: var(--primary-color);
}

.other-page header h1 {
    color: white;
}

.other-page header nav ul li a {
    color: white;
}

.other-page header nav ul li a:hover {
    background-color: var(--secondary-color);
}

/* Otherページの記事一覧スタイル */
.other-page .article-list {
    margin: 2rem 0;
    width: 100%;
}

.other-page .article-item {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    height: 150px;
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.other-page .article-item a {
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 0rem;
}

.other-page .article-item:hover {
    transform: translateY(-5px);
}

.other-page .article-item:first-child {
    border-left: 4px solid var(--primary-color);
}

.other-page .article-item:not(:first-child) {
    border-left: 4px solid var(--secondary-color);
}

.other-page .article-header {
    background-color: #f8f9fa;
}

.other-page .article-title {
    color: var(--primary-color);
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.new-label {
    background-color: #FFD700;
    color: #000;
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: bold;
}

.other-page .article-date {
    color: #666;
    font-size: 0.9rem;
    margin: 0 0 0.5rem 0;
}

.other-page .article-subtitle {
    color: var(--secondary-color);
    margin: 0;
    font-size: 1.1rem;
}

.other-page .article-preview {
    display: none;
}

.other-page .back-link {
    background-color: var(--primary-color);
    color: white;
}
.other-page .back-link:hover {
    background-color: var(--secondary-color);
}


.index-header {
    background: linear-gradient(270deg, #ffb6d5, #FF69B4, #ffb6d5);
    background-size: 200% 100%;
    animation: base-gradient-flow 6s linear infinite;
    font-family: 'Times New Roman', Times, serif;
    border-bottom: 3px solid #FF69B4;
}

.base-header-gradient {
    background: linear-gradient(270deg, #E4C7FF, #FF69A7, #E4C7FF);
    background-size: 200% 100%;
    animation: base-gradient-flow 6s linear infinite;
    font-family: 'Times New Roman', Times, serif;
    border-bottom: 3px solid #FF69B4;
}

.profile-header-gradient {
    background: linear-gradient(270deg, #ffb6d5, #FFAF7C, #ffb6d5);
    background-size: 200% 100%;
    animation: base-gradient-flow 6s linear infinite;
    font-family: 'Times New Roman', Times, serif;
    border-bottom: 3px solid #FFAF7C;
}

.gamedev-header-gradient {
    background: linear-gradient(270deg, #f7a573, #fad029, #f7a573);
    background-size: 200% 100%;
    animation: base-gradient-flow 10s linear infinite;
    font-family: 'Times New Roman', Times, serif;
    border-bottom: 3px solid #fad029;
}

.programming-header-gradient {
    background: linear-gradient(270deg, #FDF5C2, #5CFF93, #FDF5C2);
    background-size: 200% 100%;
    animation: base-gradient-flow 6s linear infinite;
    font-family: 'Times New Roman', Times, serif;
    border-bottom: 3px solid #5CFF93;
}

.car-header-gradient {
    background: linear-gradient(270deg, #9CF5B5, #4AEFE8, #9CF5B5);
    background-size: 200% 100%;
    animation: base-gradient-flow 6s linear infinite;
    font-family: 'Times New Roman', Times, serif;
    border-bottom: 3px solid #4AEFE8;
}

.room-header-gradient {
    background: linear-gradient(270deg, #A1FFF8, #2F83FF, #A1FFF8);
    background-size: 200% 100%;
    animation: base-gradient-flow 6s linear infinite;
    font-family: 'Times New Roman', Times, serif;
    border-bottom: 3px solid #2F83FF;
}

.other-header-gradient {
    background: linear-gradient(270deg, #7BB1FF, #BE7DFF, #7BB1FF);
    background-size: 200% 100%;
    animation: base-gradient-flow 6s linear infinite;
    font-family: 'Times New Roman', Times, serif;
    border-bottom: 3px solid #BE7DFF;
}

@keyframes base-gradient-flow {
    0% { background-position: 100% 0; }
    50% { background-position: 0% 0; }
    100% { background-position: 100% 0; }
}



/* =============================
   プライバシーポリシーページ
============================== */
.privacy-content {
    background-color: #fafafa;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.privacy-content h3 {
    color: #ff69b4;
    margin: 2rem 0 1rem 0;
    font-size: 1.3rem;
}

.privacy-content h3:first-child {
    margin-top: 0;
}

.privacy-content p {
    margin-bottom: 1rem;
    color: #333;
}

.privacy-content ul {
    margin: 1rem 0 1rem 2rem;
}

.privacy-content li {
    margin-bottom: 0.5rem;
    color: #333;
}

.privacy-content a {
    color: #ff69b4;
    text-decoration: none;
}

.privacy-content a:hover {
    text-decoration: underline;
}

.last-updated {
    font-style: italic;
    color: #666;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
}

/* =============================
   広告エリア
============================= */
.ad-banner {
    background-color: #f8f9fa;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
    margin-top: 5rem;
}

.ad-banner-bottom {
    background-color: #f8f9fa;
    padding: 1rem 0;
    border-top: 1px solid #e9ecef;
    margin-top: 0;
}

.ad-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 0 2rem;
}

.ad-link {
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.ad-link:hover {
    opacity: 0.8;
}

.ad-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .ad-banner {
        padding: 0.5rem 0;
        margin-top: 8rem;
    }
    
    .ad-banner-bottom {
        padding: 0.5rem 0;
    }
    
    .ad-content {
        padding: 0 1rem;
    }
}