*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  min-height:100vh;
  overflow-x:hidden;
  background:#8ad4e0 url('../img/pc_bg_another.jpg') repeat-y center top;
  background-size:100% auto;
  font-family:'Noto Sans JP',sans-serif;
}

/* === PC固定背景 === */
.pc-bg{
  position:fixed;
  top:0;left:0;
  width:100%;height:100vh;
  background:url('../img/pc_main-bg.jpg') center top no-repeat;
  background-size:100% auto;
  z-index:0;
  pointer-events:none;
}

/* === ページラッパー === */
.page-wrapper{
  position:relative;
  z-index:1;
  display:flex;
  justify-content:center;
  min-height:100vh;
}

/* === メインエリア === */
.main-area{
  position:relative;
  width:660px;
  flex-shrink:0;
  background:url('./img/main-area-bg_another.jpg') repeat-y center top;
  background-size:100% auto;
}

/* ============================================
   ヘッダー
   ============================================ */
.works-header{
  position:relative;
  background:#fff;
}
.header-inner{
  position:relative;
  display:flex;
  justify-content:center;
  align-items:flex-start;
  padding:20px 32px 16px;
}
.header-logo{
  display:block;
  width:120px;
}
.header-logo img{
  width:100%;
  height:auto;
  display:block;
}
.header-home{
  position:absolute;
  right:32px;
  bottom:16px;
  display:block;
  transition:opacity 0.3s;
}
.header-home:hover{
  opacity:0.7;
}
.header-home img{
  height:28px;
  width:auto;
  display:block;
}
.header-frame{
  width:100%;
  line-height:0;
}
.header-frame img{
  width:100%;
  height:auto;
  display:block;
}

/* ============================================
   WORKSタイトル
   ============================================ */
.works-title-area{
  text-align:center;
  padding:20px 0 36px;
}
.works-title-area img{
  width:224px;
  height:auto;
  display:inline-block;
}

/* ============================================
   キーワードフィルター
   ============================================ */
.filter-area{
  padding:0 0 40px;
  overflow:hidden;
}
.filter-label{
  font-size:16px;
  font-weight:500;
  color:#3d6a82;
  letter-spacing:0.04em;
  margin-bottom:14px;
  padding:0 40px;
}
.filter-row-wrap{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.filter-row{
  display:flex;
  gap:10px;
  overflow:hidden;
  cursor:grab;
  user-select:none;
  -webkit-user-select:none;
}
.filter-row:active{
  cursor:grabbing;
}
.filter-row-inner{
  display:flex;
  gap:10px;
  flex-shrink:0;
}
.filter-tag{
  display:inline-block;
  flex-shrink:0;
  padding:6px 20px;
  border:1.5px solid #b0c4cc;
  border-radius:999px;
  background:#fff;
  font-size:14px;
  font-weight:500;
  color:#3d6a82;
  letter-spacing:0.04em;
  cursor:pointer;
  transition:background 0.25s, border-color 0.25s, color 0.25s;
  user-select:none;
  white-space:nowrap;
}
.filter-tag:hover{
  background:#e2eff4;
}
.filter-tag.active{
  background:#4e7f96;
  color:#fff;
  border-color:#4e7f96;
}

/* ============================================
   作品グリッド
   ============================================ */
.works-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
  padding:0 32px 60px;
}

/* --- 作品カード --- */
.work-card{
  background:#fff;
  border-radius:6px;
  overflow:hidden;
}
.work-card.hidden{
  display:none;
}

/* --- 画像エリア --- */
.card-image-area{
  position:relative;
  width:100%;
  aspect-ratio:1/1;
  overflow:hidden;
  background:#f8f8f8;
}
.card-image-area img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}

/* --- スライド画像 --- */
.card-slide{
  position:absolute;
  top:0;left:0;
  width:100%;height:100%;
  transform:translateX(100%);
  pointer-events:none;
}
.card-slide.active{
  transform:translateX(0%);
  pointer-events:auto;
}

/* --- 矢印ボタン --- */
.card-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:36px;
  height:36px;
  background:rgba(255,255,255,0.85);
  border:none;
  border-radius:50%;
  cursor:pointer;
  z-index:3;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  color:#3d6a82;
  transition:background 0.25s;
  box-shadow:0 1px 4px rgba(0,0,0,0.12);
}
.card-arrow:hover{
  background:#fff;
}
.card-arrow--prev{
  left:8px;
}
.card-arrow--next{
  right:8px;
}

/* --- キャプション --- */
.card-caption{
  padding:14px 16px 18px;
  font-size:15px;
  font-weight:500;
  color:#3d6a82;
  letter-spacing:0.04em;
  line-height:1.5;
}

/* ============================================
   Contactセクション
   ============================================ */
.contact-section{
  position:relative;
  width:100%;
  background:url('./img/main-area-bg_another.jpg') repeat-y center top;
  background-size:100% auto;
  padding:60px 60px 80px;
}
.contact-block{
  position:relative;
  display:flex;
  align-items:flex-start;
  min-height:240px;
}
.contact-left{
  position:relative;
  z-index:2;
  flex:1;
  padding-right:20px;
  padding-top:20px;
}
.contact-heading{
  margin-bottom:18px;
}
.contact-heading img{
  width:174px;
  height:auto;
  display:block;
}
.contact-lead{
  font-size:16px;
  color:#3d6a82;
  letter-spacing:0.04em;
  margin-bottom:14px;
}
.contact-link{
  display:inline-block;
  font-size:16px;
  font-weight:700;
  color:#3d6a82;
  text-decoration:none;
  letter-spacing:0.04em;
  transition:opacity 0.3s;
}
.contact-link:hover{
  opacity:0.65;
}
.contact-penguin{
  position:absolute;
  right:-60px;
  bottom:0;
  width:320px;
  z-index:1;
  pointer-events:none;
}
.contact-penguin img{
  width:100%;
  height:auto;
  display:block;
}

/* ============================================
   下部フレーム＋フッター
   ============================================ */
.works-frame-bottom{
  width:100%;
  line-height:0;
}
.works-frame-bottom img{
  width:100%;
  height:auto;
  display:block;
}
.works-footer{
  background:#fff;
  padding:40px 60px 44px;
  text-align:center;
}
.footer-home{
  display:inline-block;
  margin-bottom:18px;
  transition:opacity 0.3s;
}
.footer-home:hover{
  opacity:0.7;
}
.footer-home img{
  height:28px;
  width:auto;
  display:block;
  margin:0 auto;
}
.works-footer p{
  font-size:14px;
  color:#3d6a82;
  letter-spacing:0.05em;
}

/* ============================================
   Go To Top Button
   ============================================ */
.gototop-btn{
  position:fixed;
  bottom:24px;
  left:calc(50% - 330px + 16px);
  width:56px;
  z-index:100;
  display:block;
  transition:opacity 0.3s;
}
.gototop-btn:hover{
  opacity:0.75;
}
.gototop-btn img{
  width:100%;
  height:auto;
  display:block;
}

/* ============================================
   レスポンシブ SP (max-width: 767px)
   ============================================ */
@media(max-width:767px){
  body{
    background:#f5d0cb url('./img/main-area-bg_another.jpg') repeat center top;
    background-size:auto;
  }
  .pc-bg{
    display:none;
  }
  .main-area{
    width:100%;
    max-width:660px;
  }
  .header-inner{
    padding:16px 20px 14px;
  }
  .header-logo{
    width:98px;
  }
  .header-home{
    right:20px;
    bottom:14px;
  }
  .header-home img{
    height:22px;
  }
  .footer-home img{
    height:22px;
  }
  .works-title-area{
    padding:30px 0 28px;
  }
  .works-title-area img{
    width:180px;
  }
  .filter-area{
    padding:0 0 32px;
  }
  .filter-label{
    font-size:14px;
    margin-bottom:12px;
    padding:0 20px;
  }
  .filter-row-wrap{
    gap:8px;
  }
  .filter-tag{
    padding:5px 14px;
    font-size:13px;
  }
  .works-grid{
    gap:16px;
    padding:0 20px 48px;
  }
  .card-caption{
    padding:10px 12px 14px;
    font-size:13px;
  }
  .card-arrow{
    width:30px;
    height:30px;
    font-size:15px;
  }
  .card-arrow--prev{
    left:6px;
  }
  .card-arrow--next{
    right:6px;
  }
  .works-footer{
    padding:32px 24px 36px;
  }
  .works-footer p{
    font-size:12px;
  }
  /* contact SP */
  .contact-section{
    padding:44px 28px 60px;
  }
  .contact-block{
    min-height:160px;
  }
  .contact-left{
    margin-top:-40px;
  }
  .contact-penguin{
    width:270px;
    right:-30px;
    transform:translateY(50px);
  }
  .contact-heading img{
    width:140px;
  }
  .contact-lead{
    font-size:14px;
  }
  .contact-link{
    font-size:14px;
  }
  /* go to top button SP */
  .gototop-btn{
    left:16px;
    bottom:16px;
    width:46px;
  }
}

/* 極小画面 */
@media(max-width:400px){
  .works-grid{
    grid-template-columns:1fr;
    gap:20px;
    padding:0 24px 40px;
  }
  .header-logo{
    width:110px;
  }
  .header-home img{
    height:20px;
  }
}
