@charset "UTF-8";

:root {
--uc-primary: #00A3E0;/* サイトメインカラー（青） */
--uc-secondary: #FF9F1C;  /* サイトアクセントカラー（オレンジ） */
--uc-bg: #F4F9FC; /* 薄い背景色 */
--uc-text: #333333;   /* テキスト色 */
--uc-text-light: #666666; /* 薄いテキスト色 */
--uc-border: #e5e7eb; /* ボーダー色 */
--uc-white: #ffffff;
}

.uc-wrapper {
box-sizing: border-box;
font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
color: var(--uc-text);
line-height: 1.6;
background-color: var(--uc-white);
width: 100%;
overflow-x: hidden;
}

.uc-wrapper *, .uc-wrapper *::before, .uc-wrapper *::after {
box-sizing: border-box;
}

.uc-container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
width: 100%;
}

.uc-wrapper a {
text-decoration: none;
color: inherit;
transition: opacity 0.3s;
}

.uc-wrapper a:hover {
opacity: 0.8;
}

/* =========================================
   Hero Section
   ========================================= */
.uc-hero {
background-color: var(--uc-bg);
padding: 60px 0;
text-align: center;
margin-bottom: 60px;
}

.uc-hero-title {
font-size: 2.2rem;
font-weight: bold;
color: var(--uc-primary);
margin: 0 0 16px 0;
}

.uc-hero-text {
font-size: 1rem;
color: var(--uc-text-light);
margin: 0;
}

/* =========================================
   SEO / Introduction Section
   ========================================= */
.uc-section {
margin-bottom: 60px;
}

.uc-intro {
margin-bottom: 60px;
text-align: center;
}

.uc-intro-heading {
font-size: 1.5rem;
margin: 0 0 24px 0;
position: relative;
display: inline-block;
padding-bottom: 10px;
color: var(--uc-text);
}

.uc-intro-heading::after {
content: '';
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: 60px;
height: 3px;
background-color: var(--uc-secondary);
}

.uc-intro-desc {
max-width: 800px;
margin: 0 auto;
font-size: 1rem;
text-align: left;
}

.uc-intro-desc p {
margin-bottom: 1em;
}

/* =========================================
   Filter Buttons
   ========================================= */
.uc-filter-nav {
display: flex;
justify-content: center;
flex-wrap: wrap;
gap: 10px;
margin-bottom: 40px;
}

.uc-filter-btn {
background-color: var(--uc-white);
border: 1px solid var(--uc-border);
padding: 8px 20px;
border-radius: 30px;
cursor: pointer;
font-size: 0.9rem;
font-weight: bold;
color: var(--uc-text-light);
transition: all 0.3s ease;
appearance: none;
-webkit-appearance: none;
}

.uc-filter-btn:hover,
.uc-filter-btn.active {
background-color: var(--uc-primary);
color: var(--uc-white);
border-color: var(--uc-primary);
}

/* =========================================
   Grid Section
   ========================================= */
.uc-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 30px;
}

/* 記事がない場合のメッセージ */
.uc-no-posts {
grid-column: 1 / -1;
text-align: center;
padding: 60px 20px;
background-color: var(--uc-bg);
border-radius: 12px;
color: var(--uc-text-light);
}

/* Card Item */
.uc-card {
background: var(--uc-white);
border: 1px solid var(--uc-border);
border-radius: 12px;
overflow: hidden;
display: flex;
flex-direction: column;
transition: transform 0.3s ease, box-shadow 0.3s ease;
position: relative;
height: 100%;
}

.uc-card a {
display: flex;
flex-direction: column;
height: 100%;
color: inherit;
}

.uc-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(0,0,0,0.08);
border-color: var(--uc-primary);
}

/* Image Wrapper */
.uc-card-thumb {
width: 100%;
aspect-ratio: 4 / 3;
overflow: hidden;
background-color: #f3f4f6;
position: relative;
}

.uc-card-img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.5s ease;
vertical-align: bottom;
}

.uc-card:hover .uc-card-img {
transform: scale(1.05);
}

/* Category Badge */
.uc-card-cat {
position: absolute;
top: 10px;
left: 10px;
background-color: var(--uc-secondary);
color: #fff;
font-size: 0.75rem;
padding: 4px 10px;
border-radius: 4px;
font-weight: bold;
z-index: 2;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* カテゴリ別の色分け（必要であれば使用） */
.uc-card[data-category="kagu"] .uc-card-cat { background-color: #FF9F1C; }
.uc-card[data-category="kaden"] .uc-card-cat { background-color: #00A3E0; }
.uc-card[data-category="nichiyo"] .uc-card-cat { background-color: #28a745; }
.uc-card[data-category="other"] .uc-card-cat { background-color: #666; }

/* Card Body */
.uc-card-body {
padding: 20px;
flex-grow: 1;
display: flex;
flex-direction: column;
}

.uc-card-title {
font-size: 1.1rem;
font-weight: bold;
margin: 0 0 10px 0;
color: var(--uc-text);
border-bottom: 2px solid #f0f0f0;
padding-bottom: 10px;
line-height: 1.4;
}

/* テキスト長さを調整：3行以上は...で省略 */
.uc-card-text {
font-size: 0.9rem;
color: var(--uc-text-light);
margin: 0 0 15px 0;
flex-grow: 1;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
line-height: 1.6;
}

.uc-card-meta {
font-size: 0.8rem;
color: var(--uc-primary);
font-weight: bold;
display: flex;
justify-content: space-between;
align-items: center;
margin-top: auto; /* 常に下部に配置 */
}

.uc-card-meta i {
margin-left: 5px;
}

/* =========================================
   Call To Action (CTA)
   ========================================= */
.uc-cta {
background-color: #EAF6FB;
padding: 40px 30px;
margin-top: 60px;
text-align: center;
border-radius: 12px;
width: 100%;
}

.uc-cta-title {
font-size: 1.5rem;
font-weight: bold;
color: var(--uc-primary);
margin: 0 0 15px 0;
}

.uc-btn-wrap {
margin-top: 20px;
}

.uc-btn {
display: inline-block;
background-color: var(--uc-secondary);
color: #fff;
padding: 12px 36px;
border-radius: 50px;
font-weight: bold;
font-size: 1.05rem;
box-shadow: 0 4px 6px rgba(255, 159, 28, 0.3);
transition: transform 0.3s, box-shadow 0.3s;
max-width: 100%;
width: auto;
text-align: center;
}

.uc-btn:hover {
transform: translateY(-2px);
opacity: 1;
box-shadow: 0 6px 10px rgba(255, 159, 28, 0.4);
}

/* =========================================
   Responsive Styles
   ========================================= */
@media (max-width: 900px) {
.uc-grid {
grid-template-columns: repeat(2, 1fr);
}
}

/* スマホ表示 (600px以下) の調整 */
@media (max-width: 600px) {
.uc-container {
padding: 0 15px;
}

.uc-hero-title {
font-size: 1.6rem;
}

.uc-intro-desc {
text-align: left;
}

/* 記事を2列表示に変更 */
.uc-grid {
grid-template-columns: repeat(2, 1fr);
gap: 12px;
}

/* カード内の調整 */
.uc-card-body {
padding: 12px;
}

.uc-card-title {
font-size: 0.9rem;
margin-bottom: 8px;
padding-bottom: 8px;
}

.uc-card-text {
font-size: 0.75rem;
-webkit-line-clamp: 2; /* 行数を2行に制限 */
margin-bottom: 10px;
}

.uc-card-meta {
font-size: 0.7rem;
}

/* CTAエリアのスマホ調整 */
.uc-cta {
padding: 30px 15px;
margin-top: 40px;
border-radius: 8px;
}

.uc-cta-title {
font-size: 1.2rem;
}

.uc-btn {
width: 100%;
padding: 12px 0;
font-size: 1rem;
}
}