/* =========================
   猫務省 v1.0
   Ministry of Cat Affairs
========================= */

*{
margin:0;
padding:0;
box-sizing:border-box;
}

body{
font-family:
"Hiragino Sans",
"Yu Gothic",
sans-serif;
background:#f4f1eb;
color:#333;
line-height:1.7;
}

a{
color:#6b4f3a;
text-decoration:none;
}

a:hover{
text-decoration:underline;
}

.inner{
max-width:1200px;
margin:auto;
padding:0 20px;
}

/* =========================
   TOP BAR
========================= */

.topbar{
background:#ece4d8;
border-bottom:1px solid #d9cfc1;
font-size:13px;
color:#666;
}

.topbar .inner{
padding:8px 20px;
text-align:right;
}

/* =========================
   HEADER
========================= */

header{
background:white;
border-bottom:1px solid #ddd;
}

.header-inner{
padding:20px;
}

.logo{
display:flex;
align-items:center;
gap:18px;
}

.logo-mark svg{
width:70px;
height:70px;
fill:#6b4f3a;
}

.logo-title{
font-size:36px;
font-weight:bold;
color:#6b4f3a;
}

.logo-sub{
font-size:13px;
color:#777;
letter-spacing:1px;
}

/* =========================
   NAV
========================= */

nav{
background:#7b5b3e;
}

.nav-inner{
display:flex;
flex-wrap:wrap;
}

.nav-inner a{
color:white;
padding:16px 20px;
display:block;
font-weight:bold;
border-right:1px solid rgba(255,255,255,.15);
}

.nav-inner a:hover{
background:#6a4d33;
text-decoration:none;
}

/* =========================
   HERO SLIDER
========================= */

.hero-slider{
position:relative;
height:520px;
overflow:hidden;
background:#000;
}

.slide{
display:none;
position:absolute;
width:100%;
height:100%;
}

.slide.active{
display:block;
}

.slide img{
width:100%;
height:100%;
object-fit:cover;
}

.slide-caption{
position:absolute;
left:60px;
bottom:50px;
background:rgba(0,0,0,.65);
padding:20px 25px;
color:white;
max-width:600px;
}

.slide-caption h2{
font-size:30px;
margin-bottom:10px;
}

.slide-caption p{
font-size:16px;
}
/* style.css のスライダーに関する記述例 */
.slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* 基本、スライドはすべて非表示（重ね合わせる） */
.slider .slide {
    display: none; 
    width: 100%;
}

/* JavaScriptによって 'active' クラスがついたスライドだけを表示する */
.slider .slide.active {
    display: block; 
}
.slider-dots{
position:absolute;
bottom:20px;
left:50%;
transform:translateX(-50%);
}

.dot{
width:12px;
height:12px;
background:white;
opacity:.4;
display:inline-block;
border-radius:50%;
margin:0 4px;
}

.dot.active{
opacity:1;
}

/* =========================
   QUICK LINKS
========================= */

.quick-links{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:12px;
margin:25px 0;
}

.quick-links a{
background:white;
border:1px solid #ddd;
padding:18px;
text-align:center;
font-weight:bold;
transition:.2s;
}

.quick-links a:hover{
background:#f8f5f1;
transform:translateY(-2px);
}

/* =========================
   MAIN GRID
========================= */

.main-grid{
display:grid;
grid-template-columns:2fr 1fr;
gap:24px;
margin-bottom:40px;
}

/* =========================
   BOX COMMON
========================= */

.news-box,
.content-card,
.chart-section,
.minister-box,
.report-box,
.stats-box{
background:white;
border:1px solid #ddd;
padding:20px;
}

.news-box h2,
.chart-section h2,
.minister-box h2,
.report-box h2,
.stats-box h2{
font-size:22px;
color:#6b4f3a;
margin-bottom:15px;
border-bottom:2px solid #e7dfd4;
padding-bottom:8px;
}

/* =========================
   NEWS
========================= */

.news-box ul{
list-style:none;
}

.news-box li{
padding:12px 0;
border-bottom:1px solid #eee;
}

.news-box span{
display:inline-block;
width:120px;
font-weight:bold;
color:#777;
}

/* =========================
   CARDS
========================= */

.content-cards{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:16px;
margin-top:20px;
}

.content-card h3{
margin-bottom:12px;
color:#6b4f3a;
}

.content-card ul{
padding-left:18px;
}

.content-card li{
margin-bottom:8px;
}

/* =========================
   CHART
========================= */

.chart-section{
margin-top:20px;
}

#sleepChart{
max-height:350px;
}

/* =========================
   MINISTER
========================= */

.minister-box img{
width:100%;
border-radius:4px;
margin-bottom:15px;
}

.minister-box h3{
margin-bottom:10px;
color:#6b4f3a;
}

/* =========================
   REPORTS
========================= */

.report-box ul{
list-style:none;
}

.report-box li{
padding:10px 0;
border-bottom:1px solid #eee;
}

/* =========================
   STATS
========================= */

.stat{
padding:15px 0;
border-bottom:1px solid #eee;
}

.number{
font-size:28px;
font-weight:bold;
color:#6b4f3a;
}

.label{
font-size:14px;
color:#666;
}

/* =========================
   FOOTER
========================= */

footer{
background:#5c4432;
color:white;
margin-top:40px;
}

.footer-grid{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:30px;
padding:40px 20px;
}

.footer-grid h4{
margin-bottom:10px;
}

.footer-grid p{
opacity:.9;
}

.copyright{
text-align:center;
padding:15px;
border-top:1px solid rgba(255,255,255,.15);
font-size:13px;
}

/* =========================
   MOBILE
========================= */

@media(max-width:900px){

.logo-title{
font-size:28px;
}

.hero-slider{
height:320px;
}

.slide-caption{
left:20px;
right:20px;
bottom:20px;
max-width:none;
}

.slide-caption h2{
font-size:22px;
}

.main-grid{
grid-template-columns:1fr;
}

.content-cards{
grid-template-columns:1fr;
}

.quick-links{
grid-template-columns:1fr;
}

.footer-grid{
grid-template-columns:1fr;
}

.news-box span{
display:block;
width:auto;
margin-bottom:4px;
}

}