@charset "UTF-8";

/* ================================================= */
/* 0. ベース・リセット & 共通アニメーション */
/* ================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #eef3ef;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

a {
    text-decoration: none;
    transition: 0.3s;
}

/* カテゴリ切り替え時のふわっと表示 */
.category-content { 
    display: none; 
    animation: worksFade 0.6s ease forwards; 
}
.category-content.active { 
    display: block; 
}

@keyframes worksFade {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* JSで制御する非表示クラス */
.is-hidden {
    display: none !important;
}

/* ================================================= */
/* 1. レイアウト */
/* ================================================= */
#content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.section-inner-content {
    max-width: 1000px; /* 少し広めに調整 */
    margin: 0 auto;
    padding: 40px 20px;
}

.works-hero {
    position: relative;
    width: 100%;
    height: 400px; /* 事例集なので少し高さを抑えてもOK。お好みで調整してね */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.works-hero-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像を枠いっぱいに綺麗に収める魔法 */
    z-index: 1;
    filter: brightness(0.7); /* 文字を読みやすくするために画像を少し暗く */
}

.works-copy {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: center;
}

.works-copy h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 0.2em; /* 字間を広げて「作品集」感を出す */
    margin-bottom: 10px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.works-copy p {
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    opacity: 0.9;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .works-hero { height: 250px; }
    .works-copy h1 { font-size: 2rem; }
    .works-copy p { font-size: 0.9rem; }
}

/* ================================================= */
/* 2. ナビゲーション & ボタン類 */
/* ================================================= */
.works-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 40px 0;
}

.nav-btn {
    display: block;
    width: 180px;
    padding: 15px 0;
    text-align: center;
    background: #fff;
    color: #70A893;
    border: 2px solid #70A893;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: 0.3s;
    outline: none;
}

.nav-btn:hover, .nav-btn.active {
    background: #70A893;
    color: #fff;
}

.more-btn {
    display: block;
    margin: 40px auto;
    padding: 15px 50px;
    background: #fff;
    border: 2px solid #70A893;
    color: #70A893;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.more-btn:hover {
    background: #70A893;
    color: #fff;
}

/* ================================================= */
/* 3. セクション見出し */
/* ================================================= */
.section-title {
    font-size: 1.8rem;
    color: #4a6b5e;
    text-align: center;
    margin: 80px 0 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #C0A880;
}

/* ================================================= */
/* 4. 施工事例カード（1枚＋3枚形式） */
/* ================================================= */
.works-item {
    background-color: #fff;
    margin-bottom: 60px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 12px;
}

/* 画像エリア */
.works-item-image {
    width: 100%;
    padding: 20px;
    background: #fff;
}

.main-img {
    margin-bottom: 10px;
}

.main-img img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.sub-img-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.sub-img-grid img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 6px;
}

/* テキストエリア */
.works-item-body {
    padding: 30px;
}

.works-item-label {
    display: inline-block;
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 4px 15px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.label-res { background-color: #C0A880; }
.label-b2b { background-color: #4a6b5e; }

.works-item-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.works-item-text {
    font-size: 0.95rem;
    color: #555;
}

/* PCビュー：左右交互レイアウト */
@media (min-width: 768px) {
    .works-item { flex-direction: row; }
    /* 偶数番目のアイテムを左右反転させる */
    .works-item:nth-child(even) { flex-direction: row-reverse; }
    
    .works-item-image { width: 50%; }
    .works-item-body { 
        width: 50%; 
        padding: 50px; 
        display: flex; 
        flex-direction: column; 
        justify-content: center; 
    }
}

/* ================================================= */
/* 5. 下部コンバージョン & フッター */
/* ================================================= */
.works-footer-cta {
    background-color: #fff;
    text-align: center;
    padding: 80px 20px;
    margin-top: 60px;
}

.primary-btn {
    display: inline-block;
    background-color: #C0A880;
    color: #fff;
    padding: 18px 50px;
    font-weight: bold;
    border-radius: 5px;
    font-size: 1.1rem;
}

footer {
  background-color: #70A893; /* ダークカラー背景 */
  color: white; /* テキストを白く */
  text-align: center;
  padding: 40px 20px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo img {
  max-width: 200px; /* ロゴのサイズ調整 */
  height: auto;
  margin-bottom: 20px; /* ロゴとSNSアイコンの間に余白 */
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px; /* アイコン間のスペース */
}

.social-icon {
  color: white;
  font-size: 24px;
  text-decoration: none;
  transition: color 0.3s ease; /* ホバー時の色変更アニメ */
}

.social-icon:hover {
  color: #ff7f50; /* ホバー時の色（オレンジ系） */
}

footer p {
  font-size: 14px;
  margin-top: 20px;
}
