@charset "UTF-8";

/* ============================================
   ヒーロー画像セクション
   ============================================ */
.hero-section {
  margin-top: 65px;
  padding: 0;
  position: relative;
}

.hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   Shiho Design セクション
   ============================================ */
.shiho-section {
  padding: 3rem 0;
  background-color: transparent;
  position: relative;
  z-index: 1;
}

.shiho-content {
  display: grid;
  grid-template-columns: 0.6fr 1fr;
  gap: 3rem;
  align-items: center;
}

.shiho-section h2 {
  font-size: 2rem;
  color: #2C4A36;
  font-weight: 700;
  text-align: left;
  margin: 0;
}

.shiho-text {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.shiho-text p {
  font-size: 0.9rem;
  color: #444;
  line-height: 1.8;
  margin: 0;
}

/* コンセプトセクション モバイル */
@media (max-width: 768px) {
  .shiho-section h2 {
    font-size: 1.3rem;
    line-height: 1.3;
  }

  .shiho-text {
    gap: 0.7rem;
  }

  .shiho-text p {
    font-size: 0.82rem;
    line-height: 1.65;
  }

  .shiho-content {
    gap: 1.2rem;
    grid-template-columns: 0.28fr 1fr;
  }
}

/* ============================================
   WORKS セクション
   ============================================ */
.works-section {
  padding: 3.5rem 0;
  background-color: transparent;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.works-title-wrapper {
  position: relative;
  margin-bottom: 2.5rem;
  padding: 1.5rem 0;
  border-radius: 8px;
  height: 156px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* シンプル版：背景アニメーションなし */
.works-title-wrapper-simple {
  margin-bottom: 2.5rem;
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.works-bg-images-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  gap: 2rem;
  overflow: hidden;
  animation: scrollImages 30s linear infinite;
}

.works-bg-image {
  flex: 0 0 auto;
  width: 240px;
  height: 100%;
  overflow: hidden;
  border-radius: 4px;
}

.works-bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

.works-section .section-title {
  filter: drop-shadow(-1px -1px 1px #F6EBE9) drop-shadow(1px -1px 1px #F6EBE9) drop-shadow(-1px 1px 1px #F6EBE9) drop-shadow(1px 1px 1px #F6EBE9);
}

@keyframes scrollImages {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-1 * var(--scroll-distance)));
  }
}

.section-title {
    font-family: 'Agbalumo', sans-serif;
  font-size: 4.2rem;
  font-weight: 400;
  text-align: center;
  color: #2C4A36;
  margin: 0;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 2;
  padding: 1rem 0;
}

/* フィルタータブ */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  align-items: center;
}

/* フィルタータブグループ */
.filter-group {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  flex-wrap: wrap;
}

.filter-group-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0 0.5rem;
  border-right: 2px solid #ddd;
}

.filter-tabs > .filter-group:first-of-type .filter-group-label {
  border-right: none;
}

.filter-btn {
  background-color: transparent;
  color: #6b6b6b;
  padding: 0.5rem 1.2rem;
  border-radius: 25px;
  border: 1.5px solid #c8c8c8;
  font-weight: 500;
  font-size: 0.85rem;
  line-height: 1.2rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* 「すべて」ボタンは#AA7E7E色 */
.filter-btn[data-filter="all"] {
  border-color: #AA7E7E;
  color: #AA7E7E;
}

.filter-btn[data-filter="all"].active,
.filter-btn[data-filter="all"]:hover {
  background-color: #AA7E7E;
  border-color: #AA7E7E;
  color: white;
}

.filter-btn.active,
.filter-btn:hover {
  background-color: #555;
  border-color: #555;
  color: white;
}

/* 種別ボタン：グリーン系 */
.filter-btn--category {
  border-color: #7db89a;
  color: #3a7a5a;
}
.filter-btn--category.active,
.filter-btn--category:hover {
  background-color: #7db89a;
  border-color: #7db89a;
  color: white;
}

/* 担当範囲ボタン：ブルー系 */
.filter-btn--role {
  border-color: #7aaad4;
  color: #3a6a9a;
}
.filter-btn--role.active,
.filter-btn--role:hover {
  background-color: #7aaad4;
  border-color: #7aaad4;
  color: white;
}

/* 使用技術ボタン：オレンジ系 */
.filter-btn--tech {
  border-color: #e0a060;
  color: #a06020;
}
.filter-btn--tech.active,
.filter-btn--tech:hover {
  background-color: #e0a060;
  border-color: #e0a060;
  color: white;
}

/* 使用ツールボタン：紫系 */
.filter-btn--tool {
  border-color: #b08ac8;
  color: #7050a0;
}
.filter-btn--tool.active,
.filter-btn--tool:hover {
  background-color: #b08ac8;
  border-color: #b08ac8;
  color: white;
}

/* アコーディオントグルボタン */
.filter-accordion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: 1.5px dashed #bbb;
  border-radius: 25px;
  padding: 0.45rem 1.1rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #888;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.filter-accordion-toggle:hover {
  color: #555;
  border-color: #888;
}
.filter-accordion-toggle[aria-expanded="true"] {
  color: #3a7a5a;
  border-color: #7db89a;
}

.filter-accordion-icon {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.2s;
}
.filter-accordion-toggle[aria-expanded="true"] .filter-accordion-icon {
  transform: rotate(180deg);
}

.filter-accordion-body {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding: 0.75rem 0 0;
  align-items: center;
  justify-content: center;
  animation: accordionFadeIn 0.2s ease;
}
.filter-accordion-body[hidden] {
  display: none;
}
@keyframes accordionFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ポートフォリオグリッド */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.portfolio-item {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #e0e0e0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  cursor: pointer;
}

/* カード全体リンク（ストレッチドリンク） */
.card-overlay-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* タグはリンクより上に */
.portfolio-tags {
  position: relative;
  z-index: 2;
}

.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.portfolio-image {
  background-color: #e0e0e0;
  aspect-ratio: 4/3;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 1rem;
}

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

.portfolio-info {
  padding: 1.5rem;
}

.portfolio-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

.portfolio-subtitle {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 1rem;
}

.portfolio-tags {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.portfolio-tag {
  display: inline-block;
  padding: 0.08rem 0.45rem;
  border-radius: 3px;
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* 種別 */
.portfolio-tag.ptag--category {
  background-color: #e6f3ed;
  color: #3a7a5a;
}

/* 担当範囲 */
.portfolio-tag.ptag--role {
  background-color: #e4eef8;
  color: #3a6a9a;
}

/* 使用技術 */
.portfolio-tag.ptag--tech {
  background-color: #faeee0;
  color: #a06020;
}

/* 使用ツール */
.portfolio-tag.ptag--tool {
  background-color: #f0e8f5;
  color: #7050a0;
}

/* もっと見るボタン */
.view-more-btn {
  display: block;
  margin: 2rem auto;
  background-color: #AA7E7E;
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 25px;
  text-align: center;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
  width: fit-content;
}

.view-more-btn:hover {
  background-color: #8c6060;
  color: white;
  transform: translateY(-2px);
}

/* ============================================
   ABOUT セクション
   ============================================ */
.about-section {
  padding: 3.5rem 0 0 0;
  background-color: transparent;
  position: relative;
  z-index: 1;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 0.25fr;
  gap: 2rem;
  align-items: flex-start;
}

.about-left {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.about-main-content {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: flex-start;
}

.about-main-image-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 280px;
}

.about-text {
  align-self: flex-start;
}

.about-main-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 280px;
  height: 280px;
}

.about-main-image img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.about-text {
  margin: 0;
}

.about-text h3 {
  font-size: 1.3rem;
  color: #333;
  margin: 0 0 0.8rem 0;
  font-weight: 700;
}

.about-text p {
  font-size: 0.85rem;
  color: #555;
  margin: 0;
  line-height: 1.7;
}

.about-sub-images {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.about-side-images-wrapper {
  padding: 0;
  height: 500px;
  overflow: hidden;
  border-radius: 10px;
}

.about-side-images-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
  animation: scrollImagesVertical 20s linear infinite;
}

.about-side-image {
  background-color: #e0e0e0;
  flex: 0 0 auto;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
}

.about-side-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes scrollImagesVertical {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(calc(-1 * var(--scroll-distance)));
  }
}

.about-sub-image-item {
  background-color: #e0e0e0;
  aspect-ratio: 4 / 2;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
}

.about-sub-image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-image-placeholder {
  color: #999;
  font-size: 0.9rem;
}

@keyframes scrollImagesHorizontal {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-1 * var(--scroll-distance))); }
}

/* ============================================
   レスポンシブデザイン
   ============================================ */
@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .section-title {
    font-size: 3rem;
  }

  .filter-tabs {
    gap: 0.5rem;
  }

  .filter-group {
    gap: 0.5rem;
  }

  .filter-group-label {
    font-size: 0.75rem;
    padding: 0 0.3rem;
  }

  .filter-btn {
    padding: 0.45rem 0.9rem;
    font-size: 0.78rem;
  }

  /* カードテキスト縮小 */
  .portfolio-info {
    padding: 0.85rem 0.9rem;
  }

  .portfolio-title {
    font-size: 0.88rem;
    margin-bottom: 0.3rem;
  }

  .portfolio-subtitle {
    font-size: 0.7rem;
    margin-bottom: 0.55rem;
  }

  .portfolio-tag {
    font-size: 0.55rem;
    padding: 0.1rem 0.6rem;
  }

  /* WORKSタイトル背景 */
  .works-title-wrapper {
    height: 100px;
  }

  .works-bg-images-container {
    gap: 1rem;
  }

  .works-bg-image {
    width: 145px;
  }

  /* ABOUT レイアウト */
  .about-main-content {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 2rem;
    align-items: flex-start;
  }

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

  .about-main-image-wrapper,
  .about-main-image {
    width: 100%;
    max-width: 200px;
    height: 200px;
    margin: 0 auto;
  }

  /* ABOUT サイド画像→横方向スクロール */
  .about-side-images-wrapper {
    height: auto;
    overflow: hidden;
    width: 100%;
    border-radius: 0;
    margin-top: 1.5rem;
  }

  .about-side-images-container {
    flex-direction: row;
    height: auto !important;
    animation: scrollImagesHorizontal 20s linear infinite;
  }

  .about-side-image {
    width: 100px;
    height: 100px;
    flex: 0 0 auto;
    aspect-ratio: 1;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 3rem;
  }

  .hero-content {
    padding: 1.5rem 0;
  }

  .works-section {
    padding: 1.5rem 0 0 0;
  }

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

  .about-section {
    padding: 0;
  }

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

  .about-text h3 {
    font-size: 1.2rem;
  }

  .about-content {
    gap: 1rem;
  }

  .about-text p {
    font-size: 0.85rem;
  }
}
