/* リセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Serif JP', serif;
    line-height: 1.6;
    color: #333;
}

/* 共通コンテナ */
.content-container {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 20px;
}

/* メインエリア */
.main-content {
    width: 100%;
    background-color: #FFF;
}

/* コンテンタイトルセクション */
.content-title-section {
    width: 100%;
    position: relative;
}

.content-title-bg {
    width: 100%;
    height: 200px;
    overflow: hidden;
    text-align: left;
    background: #e8d2bb;
    background: #ecebe7;
}

.content-title-bg img {
    width: 65%;
    height: 100%;
    object-fit: cover;
        opacity: 0.4;
}
@media screen and (max-width: 1024px){
    .content-title-bg img {
        width: 100%;
        height: auto;
        object-fit: fill;
    }
}
.page-title-overlay {
    position: absolute;
    bottom: 20px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    max-width: 1260px;
    width: 100%;
    padding: 10px 20px 0;
    box-sizing: border-box;
}

.page-title-overlay .page-title {
    font-size: 32px;
    color: #333;
    font-weight: 600;
    margin: 0;
    text-align: right;
}

/* ページヘッダーとパンくずリスト */
.page-header {
    margin-bottom: 30px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    justify-content: flex-end;
    font-family: 'Noto Sans JP', sans-serif;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #4CAF50;
}

.breadcrumb-separator {
    color: #999;
    margin: 0;
}

.breadcrumb-current {
    color: #333;
    font-weight: 500;
}

/* コンテンツセクション */
.content-section {
    width: 100%;
    background-color: #fafafa;
    padding: 60px 0;
}

/* ヘッダー */
.header {
    width: 100%;
    background-color: #ffffff;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: static !important;
}

.header-container {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
}

.main-nav {
    display: flex;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #4CAF50;
}

.header-icons {
    display: flex;
    gap: 15px;
}

.header-icons ul {
    display: flex;
    gap: 15px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.header-icons li {
    margin: 0;
    padding: 0;
}

.header-icons .icon {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: opacity 0.3s;
}

.header-icons .icon img {
    width: 24px;
    height: 24px;
}

.header-icons .icon span {
    font-size: 14px;
    color: #333;
}

.header-icons .icon:hover {
    opacity: 0.7;
}

/* セクションタイトル */
.section-title {
    font-size: 28px;
    color: #333;
    margin-bottom: 40px;
    text-align: center;
}

.section-subtitle {
    display: block;
    font-size: 16px;
    color: #666;
    font-weight: normal;
    margin-top: 5px;
}

/* アガペファームについて */
.about-us {
    width: 100%;
    background-color: #4CAF50;
    padding: 60px 0;
}

.about-us .section-title {
    color: #ffffff;
    margin-bottom: 40px;
}

.about-us .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-image {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}

.about-image img.active {
    opacity: 1;
    position: relative;
    z-index: 1;
}

.image-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    color: #333;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: background-color 0.3s;
    z-index: 10;
}

.image-carousel-btn.prev-btn {
    left: 10px;
}

.image-carousel-btn.next-btn {
    right: 10px;
}

.image-carousel-btn:hover {
    background-color: rgba(255, 255, 255, 1);
}

.about-text {
    color: #ffffff;
    font-family: 'Noto Sans JP', sans-serif;
}

.about-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #ffffff;
}

/* フッター */
.footer {
    width: 100%;
    background-color: #ffffff;
    padding: 40px 0;
    border-top: 1px solid #e0e0e0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo-img {
    height: 40px;
    width: auto;
}

.footer-nav {
    display: flex;
    gap: 20px;
}

.footer-nav a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: #4CAF50;
}

/* サイドバー */
.sidebar {
    background-color: #ffffff;
    padding: 30px 20px;
    font-family: 'Noto Serif JP', serif;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}
.sidebar-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.sidebar-title a:hover {
    color: #4CAF50;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    padding: 12px 0 0;
}

.category-item.category-group-end {
    padding-top: 15px;
    padding-bottom: 30px;
    margin-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.category-item.category-last {
    border-bottom: none;
}

.category-item a {
    font-size: 14px;
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
    display: block;
}

.category-item a:hover {
    color: #4CAF50;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .content-section{
        padding: 40px 0;
    }
    .sidebar{
        width: 100%;
        box-sizing: border-box;
    }
    .sidebar-title{
        width: 100%;
        text-align: center;
    }
    .category-list{
        display: flex;
        flex-wrap: wrap;
    }
    .category-item{
        width: 49%;
        box-sizing: border-box;
        border: 1px solid #ccc !important;
        margin: 0.5% !important;
        padding: 15px !important;
    }
    .about-content {
        grid-template-columns: 1fr;
    }
}
@media screen and (max-width: 415px){
    .category-item{
        width: 99%;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .main-nav {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 10px;
    }
    
    .content-title-bg {
        height: 150px;
    }
    
    .page-title-overlay .page-title {
        font-size: 24px;
    }
}

