/* 変数定義 */
:root {
    --primary-color: #8D6E63; /* 落ち着いたブラウン */
    --accent-color: #F4A460;  /* 猫のようなオレンジ */
    --bg-color: #FFFAF0;      /* フローラルホワイト（生成り） */
    --bg-secondary: #F5F5DC;  /* ベージュ */
    --text-color: #4E342E;    /* 濃いブラウン */
    --white: #ffffff;
}

body {
    font-family: 'Zen Maru Gothic', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    margin: 0;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

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

/* ヘッダー */
.header {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav a:hover {
    color: var(--accent-color);
}

.btn-contact {
    background-color: var(--accent-color);
    color: var(--white) !important;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
}

/* ヒーローセクション */
.hero {
    height: 60vh;
    background-color: #eee;
    /* background-image: url('images/hero_bg.jpg'); */
    background-size: cover;
    background-position: center;
    position: relative; /* カード配置の基準 */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 40px;
    border-radius: 10px;
    z-index: 2;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* --- 追加：空き状況カード --- */
.hero-news-card {
    position: absolute;
    bottom: -40px;
    right: 5%;
    width: 90%;
    max-width: 400px;
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 10;
    text-align: left;
    box-sizing: border-box;
}

/* --- 修正：ひょっこり猫の装飾 --- */
.card-deco-cat {
    position: absolute;
    /* 位置調整：カードの上辺に乗るくらい */
    top: -85px;
    right: -20px;
    
    /* サイズ調整：ここを110pxにしました */
    width: 200px;
    
    height: auto;
    z-index: 20;
}

/* ニュースカードの中身 */
.news-meta {
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
}

.news-sep {
    color: #ccc;
}

.news-category {
    color: var(--accent-color);
}

.news-title {
    font-size: 1.2rem;
    margin: 0 0 15px;
    color: var(--text-color);
    font-weight: 700;
}

.news-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
}

.news-footer {
    display: flex;
    justify-content: flex-end;
}

/* 丸い矢印ボタン */
.btn-more-circle {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--text-color);
    transition: 0.3s;
}

.btn-more-circle .arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    transition: 0.3s;
}

.btn-more-circle:hover {
    color: var(--accent-color);
    opacity: 0.8;
}

.btn-more-circle:hover .arrow {
    background-color: var(--accent-color);
    transform: translateX(5px);
}

/* 共通セクション設定 */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '🐾';
    display: block;
    font-size: 1rem;
    margin-top: 10px;
    opacity: 0.6;
}

.bg-beige {
    background-color: var(--bg-secondary);
}

/* About */
.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 1;
}

.about-img {
    flex: 1;
    text-align: center;
}

.about-img img {
    border-radius: 50%;
    max-width: 300px;
    border: 5px solid var(--white);
}

/* Members */
.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.member-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.member-icon img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--bg-secondary);
}

.member-card h4 {
    margin: 10px 0 5px;
    font-size: 1.2rem;
}

.role {
    display: block;
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.member-card p {
    font-size: 0.9rem;
    text-align: left;
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.portfolio-item {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

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

.portfolio-info {
    padding: 15px;
}

.portfolio-info h5 {
    margin: 0 0 5px;
    font-size: 1.1rem;
}

.portfolio-info p {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
}

/* Activity (SNS & News) */
.activity-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.sns-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sns-card {
    display: flex;
    align-items: center;
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.sns-icon {
    font-size: 2rem;
    margin-right: 20px;
    width: 50px;
    text-align: center;
}

.sns-card h5 {
    margin: 0 0 5px;
    color: var(--primary-color);
}

.sns-card p {
    margin: 0;
    font-size: 0.9rem;
}

.news-list ul {
    list-style: none;
    padding: 0;
    background: var(--white);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.news-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.news-list li:last-child {
    border-bottom: none;
}

.label {
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 4px;
    color: var(--white);
    background: #ccc;
}

.label.marche { background-color: var(--accent-color); }
.label.goods { background-color: #81C784; }
.label.ec { background-color: #E57373; }

/* フッター */
.footer {
    text-align: center;
    padding: 20px 0;
    background: var(--primary-color);
    color: var(--white);
    font-size: 0.8rem;
}

/* --- スマホ対応 --- */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        font-size: 0.9rem;
    }

    .hero {
        height: 40vh;
    }

    /* 空き状況カード：スマホ版 */
    .hero-news-card {
        position: relative;
        bottom: auto;
        right: auto;
        margin: -30px auto 30px;
        width: 90%;
    }
    
    /* ひょっこり猫：スマホ版 */
    .card-deco-cat {
        width: 80px;  /* スマホではさらに小さく */
        top: -40px;
        right: -10px;
    }

    .about-content {
        flex-direction: column;
    }

    .activity-wrapper {
        grid-template-columns: 1fr;
    }
}