@charset "UTF-8";

/* ==========================================================================
   CSS Variables (Sakura & White - Soft & Welcoming)
   ========================================================================== */
:root {
    --color-primary: #D36B7F; /* さくらピンク */
    --color-secondary: #B55467; /* 少し濃いさくらピンク */
    --color-text: #4A373A; /* 赤みのあるブラウンブラック */
    --color-bg: #FFFFFF; /* 白 */
    --color-bg-alt: #FFF0F2; /* 淡いさくら色 */
    --color-accent: #E58799; /* アクセントピンク */
    --color-border: #F7D3D9; /* 淡いピンクのボーダー */
    
    --font-base: 'Noto Sans JP', sans-serif;
    --font-heading: 'Zen Kaku Gothic New', sans-serif;
    
    --max-width: 1000px;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-base);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.8;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

/* ==========================================================================
   Typography & Sections
   ========================================================================== */
h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--color-secondary);
    line-height: 1.4;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--color-primary);
    border-radius: 2px;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 5rem 0;
}

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

.text-center {
    text-align: center;
}

.mobile-only {
    display: none;
}

/* ==========================================================================
   Header & Navigation (Inherited & Adjusted)
   ========================================================================== */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(211, 107, 127, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    line-height: 1.1;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.logo-sub {
    font-size: 0.6rem;
    font-weight: 500;
    margin-top: 2px;
}

.burger {
    display: none;
    width: 30px;
    height: 24px;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.burger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-primary);
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 10px; }
.burger span:nth-child(3) { top: 20px; }

.burger.is-open span:nth-child(1) {
    top: 10px;
    transform: rotate(45deg);
}
.burger.is-open span:nth-child(2) {
    opacity: 0;
}
.burger.is-open span:nth-child(3) {
    top: 10px;
    transform: rotate(-45deg);
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav a {
    color: var(--color-secondary);
    font-weight: 500;
    white-space: nowrap;
    font-size: 0.8rem; /* PC表示のヘッダー文字サイズを縮小し窮屈さを解消 */
}

.btn-contact-header {
    background-color: var(--color-primary);
    color: #fff !important;
    padding: 0.5rem 1.2rem;
    border-radius: 6px; /* 角丸を6pxに統一 */
    font-weight: bold;
    white-space: nowrap;
}

.btn-contact-header:hover {
    background-color: var(--color-secondary);
}

/* ==========================================================================
   News Hero Section (with Dog Image)
   ========================================================================== */
.news-hero {
    background-color: var(--color-bg-alt);
    background-image: url('../cootopbiru01.png');
    background-size: 100% auto;
    background-position: bottom center;
    background-repeat: no-repeat;
    padding: 4rem 20px 8rem; /* 下部の余白を少し増やす */
    border-bottom: 1px solid var(--color-border);
    position: relative;
}

.news-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.news-hero-dog {
    flex: 1;
    max-width: 400px;
    /* 背景透過を活かすため、白い枠と影を削除 */
    background-color: transparent;
}

.news-hero-dog img {
    width: 100%;
    height: auto;
    display: block;
}

.news-hero-title {
    flex: 1;
    text-align: left;
}

.news-hero-title h1 {
    font-size: 2.5rem;
    color: var(--color-secondary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.news-hero-title p {
    font-size: 1.1rem;
    color: var(--color-text);
    opacity: 0.9;
}

@media (max-width: 768px) {
    .news-hero-inner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .news-hero-dog {
        order: -1;
        margin: 0 auto;
        max-width: 240px;
    }
    .news-hero-title {
        text-align: center;
    }
    .news-hero-title h1 {
        font-size: 2rem;
    }
}

/* ==========================================================================
   News List Page
   ========================================================================== */
.news-layout {
    display: flex;
    gap: 40px;
    padding: 4rem 0;
}

.news-main {
    flex: 1;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.news-item {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 8px rgba(211, 107, 127, 0.03);
}

.news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(211, 107, 127, 0.08);
}

.news-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    font-size: 0.9rem;
}

.news-date {
    font-family: var(--font-heading);
    font-weight: bold;
    color: #8A7A7B;
}

.news-category {
    background-color: var(--color-bg-alt);
    color: var(--color-secondary);
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.news-title {
    font-size: 1.25rem;
    font-weight: bold;
}

.news-title a {
    color: var(--color-text);
}

.news-title a:hover {
    color: var(--color-primary);
}

.news-excerpt {
    font-size: 0.95rem;
    color: #6E5C5E;
    line-height: 1.6;
}

/* ==========================================================================
   Pagination UI
   ========================================================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-border);
    background-color: #fff;
    color: var(--color-text);
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination-btn:hover:not(.disabled) {
    background-color: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.pagination-btn.active {
    background-color: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    cursor: default;
}

.pagination-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ==========================================================================
   News Detail Page
   ========================================================================== */
.news-detail-container {
    max-width: 800px;
    margin: 4rem auto;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(211, 107, 127, 0.05);
}

.news-detail-header {
    border-bottom: 2px solid var(--color-bg-alt);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.news-detail-title {
    font-size: 1.8rem;
    color: var(--color-text);
    margin-top: 0.8rem;
    margin-bottom: 0;
}

.news-detail-content {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--color-text);
    margin-bottom: 3rem;
}

.news-detail-content p {
    margin-bottom: 1.5rem;
}

.news-detail-dog-card {
    background-color: var(--color-bg-alt);
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 3rem;
    border-left: 5px solid var(--color-primary);
}

.news-detail-dog-card img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #fff;
    border: 2px solid #fff;
}

.news-detail-dog-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--color-secondary);
}

.news-detail-dog-info p {
    font-size: 0.85rem;
    margin: 0;
    color: #6E5C5E;
}

.news-detail-footer {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    border-top: 1px solid var(--color-border);
    padding-top: 2rem;
}

.btn-back {
    display: inline-block;
    background-color: #fff;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    padding: 0.8rem 2.5rem;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-back:hover {
    background-color: var(--color-primary);
    color: #fff;
}

@media (max-width: 768px) {
    .news-detail-container {
        padding: 1.5rem;
        margin: 2rem 15px;
    }
    .news-detail-title {
        font-size: 1.4rem;
    }
    .news-detail-dog-card {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
}

/* ==========================================================================
   Footer & PageTop (Sakura adjusted)
   ========================================================================== */
.footer {
    background-color: var(--color-secondary);
    color: #fff;
    text-align: center;
    padding: 3rem 20px;
}

.footer a {
    color: #FFCCD5;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 0.8rem; /* さらに余白を狭めて横並びを収まりやすくする */
    list-style: none;
    margin-bottom: 2rem;
    flex-wrap: wrap; /* タブレット幅等で折り返す際、単語の途中で改行されるのを防ぐ */
}

.footer-nav a {
    font-size: 0.75rem; /* 文字サイズを小さくして1行に収める */
    white-space: nowrap !important; /* 項目内で絶対2行に改行されないようにする */
}

.pagetop {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(211, 107, 127, 0.3);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.pagetop.is-visible {
    opacity: 1;
    visibility: visible;
}

.pagetop:hover {
    background-color: var(--color-secondary);
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: #fff;
        box-shadow: -5px 0 15px rgba(211, 107, 127, 0.1);
        transition: all 0.3s ease;
        padding: 80px 40px;
        z-index: 100;
    }

    .nav.is-open {
        right: 0;
    }

    .nav ul {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .nav a {
        font-size: 1.2rem;
        display: block;
        padding: 10px 0;
    }

    .footer-nav {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
}
