@charset "utf-8";

/* --- Variables (共通カラー設定) --- */
:root {
    --primary-color: #d9534f; /* 温かみのある赤 */
    --accent-color: #ff9800;  /* 元気なオレンジ */
    --text-color: #333;
    --bg-light: #fdfdfd;
    --box-bg: #fff4e5;        /* 柔らかなベージュ */
    --footer-bg: #333;
}

/* --- Base Styles --- */
body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.8;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    background-color: var(--bg-light);
}

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

/* --- Header & Navigation --- */
header {
    background: #fff;
    border-bottom: 2px solid #eee;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

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

nav a {
    text-decoration: none;
    color: #555;
    font-size: 0.9rem;
    font-weight: bold;
}

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

/* --- Main Visual (Hero) - <img>タグ版に変更 --- */
.hero {
    position: relative; /* 子要素を重ねるための基準点 */
    width: 100%;
    min-height: 300px; /* スマホでの最低高さ */
    overflow: hidden;
    color: #fff;
    text-align: center;
}

/* ヒーロー画像本体 */
.hero-img {
    width: 100%;
    height: 400px; /* PCでの基準高さ */
    object-fit: cover; /* 画像をトリミングして枠に収める */
    display: block;
    /* 文字を読みやすくするため画像を少し暗くするフィルタ */
    filter: brightness(0.7);
}

/* 画像の上に重なる文字コンテンツ */
.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* 完全な中央寄せ */
    width: 90%;
    max-width: 800px;
    z-index: 1; /* 画像より手前に表示 */
}

.hero h1 {
    font-size: 2.5rem;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.hero .sub-cap {
    font-size: 1.2rem;
    margin-top: 15px;
    display: block;
    font-weight: normal;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

/* --- Breadcrumbs --- */
.breadcrumbs {
    margin: 20px 0;
    font-size: 0.85rem;
    color: #888;
}

.breadcrumbs a {
    color: #888;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* --- Article Content --- */
article {
    background: #fff;
    padding: 40px 0;
}

h2 {
    background: var(--box-bg);
    padding: 15px;
    border-left: 6px solid var(--accent-color);
    margin-top: 50px;
    font-size: 1.6rem;
}

h3 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    margin-top: 30px;
}

/* --- Data Table --- */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
}

th, td {
    border: 1px solid #eee;
    padding: 15px;
    text-align: left;
}

th {
    background: #f9f9f9;
    width: 30%;
}

/* --- Real Voice & Highlight Box --- */
.real-voice-box {
    border: 2px dashed var(--primary-color);
    padding: 25px;
    border-radius: 10px;
    margin: 30px 0;
    position: relative;
}

.real-voice-box::before {
    content: "飼い主のリアルな声";
    position: absolute;
    top: -14px;
    left: 20px;
    background: var(--primary-color);
    color: #fff;
    padding: 2px 15px;
    font-size: 0.8rem;
    border-radius: 20px;
}

.highlight-box {
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
}

/* --- Footer --- */
footer {
    background: var(--footer-bg);
    color: #fff;
    padding: 40px 0;
    text-align: center;
    margin-top: 60px;
}

.footer-nav {
    margin-bottom: 20px;
}

.footer-nav a {
    color: #ccc;
    margin: 0 10px;
    text-decoration: none;
    font-size: 0.8rem;
}

/* --- Responsive --- */
@media (max-width: 600px) {
    .hero-img { height: 300px; } /* スマホでは高さを少し抑える */
    .hero h1 { font-size: 1.8rem; }
    nav ul { gap: 10px; }
    th { width: 40%; }
}