@charset "utf-8";
/* *************************************** */
/* 【モバイル版】 */
/* *************************************** */

.hero {
  width: 100%;
  height: 100vh;
  padding: 0;
  position: relative;
  overflow: hidden;
  margin-top: 0;
  box-sizing: border-box;
}

.hero-content {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.hero h1 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  z-index: 2;
  width: 100%;
  max-width: 100%;
  padding: 0 16px;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  color: #ffffff;
  text-shadow: 0px 0px 5px #000;
  pointer-events: none;
}

video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* **********************【トップP作品紹介】***********************/
/* Scroll-driven animation for main content sections */
main {
  perspective: 1000px;
}

main > section,
main > button {
  animation: float-up-scroll 1s linear forwards;
  animation-timeline: view();
  animation-range: entry 0% cover 50%;
}

main > section:nth-child(n + 2) {
  animation-range: entry 5% cover 50%;
}

main > section:nth-child(n + 3) {
  animation-range: entry 10% cover 50%;
}

main > section:nth-child(n + 4) {
  animation-range: entry 15% cover 50%;
}

main > section:nth-child(n + 5) {
  animation-range: entry 20% cover 50%;
}

@keyframes float-up-scroll {
  0% {
    opacity: 0;
    transform: translateY(40px) scaleY(0.95) scale(0.7);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scaleY(1) scale(1);
  }
}

@keyframes works-top-scale-lift {
  0% {
    opacity: 0;
    transform: translateY(60px) translateZ(-80px) scale(0.86);
  }
  100% {
    opacity: 1;
    transform: translateY(0) translateZ(0) scale(1);
  }
}

@supports not (animation-timeline: view()) {
  .works_top {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* Scroll-driven animation for social feed section title and feed cards */
#social-feed {
  animation: none;
  perspective: 1000px;
}

#social-feed > h2 {
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  animation: float-up-scroll 1s linear both;
  animation-timeline: view();
  scroll-timeline: view();
  animation-range: entry 0% cover 20%;
}

@keyframes social-feed-embed-roll {
  0% {
    opacity: 0;
    transform: translateY(50px) translateZ(-30px) scale(0.88);
  }
  100% {
    opacity: 1;
    transform: translateY(0) translateZ(0) scale(1);
  }
}

#social-feed .feed-embed {
  opacity: 0;
  transform: translateY(50px) translateZ(-30px) scale(0.88);
  transform-style: preserve-3d;
  will-change: transform, opacity;
  animation: social-feed-embed-roll 1s ease-out both;
  animation-timeline: view();
  scroll-timeline: view();
}

#social-feed .feed-wrapper > .feed-embed:nth-of-type(1) {
  animation-range: entry 0% cover 35%;
}

#social-feed .feed-wrapper > .feed-embed:nth-of-type(2) {
  animation-range: entry 10% cover 40%;
}

#social-feed .feed-wrapper > .feed-embed:nth-of-type(3) {
  animation-range: entry 20% cover 45%;
}

@supports not (animation-timeline: view()) {
  #social-feed > h2,
  #social-feed .feed-embed {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* Scroll-driven animation for each child inside profile section */
#profile > * {
  opacity: 0;
  transform: translateY(40px) scaleY(0.95) scale(0.7);
  animation: float-up-scroll 1s linear both;
  animation-timeline: view();
}

#profile > h2 {
  animation-range: entry 0% cover 20%;
}

#profile > .profile_box,
#profile > .profile_box_left {
  animation-range: entry 5% cover 40%;
}

#profile > button {
  animation-range: entry 20% cover 40%;
}

.works_top {
  margin: 40px 0;
  opacity: 0;
  transform: translateY(60px) translateZ(-80px) scale(0.86);
  transform-style: preserve-3d;
  will-change: transform, opacity;
  animation: works-top-scale-lift 1s ease-out both;
  animation-timeline: view();
  scroll-timeline: view();
  animation-range: entry 0% cover 50%;
}

.works_inner {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 12px;
}

.feed-wrapper {
  /* 既存の共通横幅クラス（ここでは .works_inner）を継承 */
  max-width: 100%;
  margin: 0 auto;
  padding: 0 12px;
}

.feed-embed {
  width: 100%;
  max-width: 100%;
  margin: 0 auto 24px;
  box-sizing: border-box;
}

.feed-embed iframe,
.feed-embed blockquote,
.feed-embed .twitter-tweet,
.feed-embed .instagram-media {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.social-follow-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
}

.social-follow-buttons a {
  display: inline-block;
  padding: 10px 16px;
  text-decoration: none;
  color: #fff;
  border-radius: 4px;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    opacity 0.2s ease;
  background-size: 200% 100%;
  background-position: 0% 50%;
  animation: socialGradient 8s ease-in-out infinite;
}

.social-follow-buttons a[href*="instagram"] {
  background-image: linear-gradient(90deg, #ea378f 0%, #ff6e00 100%);
}

.social-follow-buttons a[href*="x.com"] {
  background-image: linear-gradient(90deg, #000 0%, #7c7c7c 100%);
}

.social-follow-buttons a[href*="tiktok.com"] {
  background-image: linear-gradient(90deg, #000 0%, #22bbc6 60%, #a52663 100%);
}

.social-follow-buttons a:hover {
  opacity: 1;
  background-image: none;
  background-color: #ffffff;
  color: #00880a;
  border: 2px solid #00880a;
}

.social-follow-buttons a.button-49::after {
  margin-left: 0;
  content: none;
}

.social-follow-buttons a.button-49 {
  width: auto;
  max-width: none;
  flex: 1;
  text-align: center;
}

@keyframes socialGradient {
  0%,
  100% {
    background-position: 0% 50%;
  }
  25% {
    background-position: 50% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  75% {
    background-position: 50% 50%;
  }
}

.works_inner p {
  color: #fff;
  text-align: center;
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.6;
}

.works_inner .works_list p {
  color: #000;
  text-align: center;
  margin-bottom: 30px;
  font-size: 0.95rem;
}

.section_title {
  font-size: 1.3rem;
  margin: 32px 0 16px;
  padding: 16px 0 0;
}

.section_lead {
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 20px;
}

.works_list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.work_card {
  display: flex;
  flex-direction: column;
  padding: 0;
  background-color: #d0d0d0;
  /* border: 1px solid #e0e0e0; */
  text-decoration: none;
  color: #000;
  transition:
    box-shadow 0.3s,
    transform 0.3s;
  border-radius: 4px;
  overflow: hidden;
}

.work_card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transform: scale(1.2);
  object-fit: cover; /* 枠いっぱいに表示（比率維持） */
  object-position: center top; /* 画像の上部を中心に表示 */
}

.work_card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.work_label {
  font-size: 0.75rem;
  color: #222;
  letter-spacing: 0.05em;
  display: inline-block;
  margin: 0;
  padding: 12px 16px 0;
  margin-top: 20px;
}

.work_title {
  font-size: 1.15rem;
  margin: 6px 0 6px;
  padding: 0 16px;
  font-weight: 600;
}

.work_focus {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
  padding: 0 16px 12px;
}

/* *****************************【メインコンテンツ】***************************** */
main {
  display: flex;
  flex-direction: column;
  padding: 0 20px;
}

/* ーーーーーー【コンセプト】ーーーーーー */
#box_concept {
  background-color: #c9c9c9;
  height: auto;
  width: 100%;
  padding: 24px 12px;
  text-align: center;
  display: flex;
}

/* ーーーーーー【プロフィール】ーーーーーー */
/* ■縦型配置 */
#profile {
  max-width: 100%;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
  animation: none;
}

#profile .section_title {
  margin: 0 0 20px;
}

/* ■左右配置の統一 */
.profile_box,
.profile_box_left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
  opacity: 0;
  transform: translateX(0);
}

/* アニメーション適用 - slidein-right */
.profile_box.slidein-right {
  opacity: 0;
  transform: translateX(60px);
}

.profile_box.slidein-right.is-animated {
  animation: slideInMobileRight 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* アニメーション適用 - slidein-left */
.profile_box_left.slidein-left {
  opacity: 0;
  transform: translateX(-60px);
}

.profile_box_left.slidein-left.is-animated {
  animation: slideInMobileLeft 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* モバイル版アニメーション - 右から左へ */
@keyframes slideInMobileRight {
  0% {
    transform: translateX(60px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* モバイル版アニメーション - 左から右へ */
@keyframes slideInMobileLeft {
  0% {
    transform: translateX(-60px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.pbox {
  width: 120px;
  background-color: #006d08;
}

.pimg {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
  animation: profileFloat 8s ease-in-out infinite;
  will-change: transform;
}

#profile1 {
  height: auto;
  width: 100%;
  /* max-width: 180px; */
  animation-duration: 7.6s;
}

#profile .profile_box:nth-of-type(1) .pimg {
  animation-duration: 7.7s;
}

#profile .profile_box_left:nth-of-type(2) .pimg {
  animation-duration: 8.2s;
}

#profile .profile_box:nth-of-type(3) .pimg {
  animation-duration: 7.8s;
}

#profile .profile_box_left:nth-of-type(4) .pimg {
  animation-duration: 8.4s;
}

@keyframes profileFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  25% {
    transform: translateY(-30px);
  }
  50% {
    transform: translateY(4px);
  }
  75% {
    transform: translateY(-4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  #profile .pimg {
    animation: none;
  }
}

/* その他の画像 */
.profile_box .pimg:not(#profile1),
.profile_box_left .pimg:not(#profile1) {
  max-width: 180px;
}

/* ■左配置 */
.profile_box {
  grid-template-areas: unset;
}

.profile_box .pimg {
  grid-area: unset;
  justify-self: unset;
  width: 100%;
  max-width: 180px;
}

.profile_box .box-design8 {
  grid-area: unset;
  justify-self: unset;
  padding: 16px;
  background-color: #00880a;
  box-shadow: 4px -4px #e1f5e6;
  width: 100%;
  max-width: 280px;
  height: auto;
}

.profile_box .box-design8 p,
.profile_box_left .box-design8 p {
  font-size: 1rem;
  margin: 10px 0;
  line-height: 1.6;
  color: #fff;
}

/* ■右配置 */
.profile_box_left {
  grid-template-areas: unset;
}

.profile_box_left .pimg {
  grid-area: unset;
  justify-self: unset;
  width: 100%;
  max-width: 180px;
}

.profile_box_left .box-design8 {
  grid-area: unset;
  justify-self: unset;
  padding: 16px;
  background-color: #00880a;
  box-shadow: 4px -4px #e1f5e6;
  width: 100%;
  max-width: 280px;
  height: auto;
}

/* ■中央ラインの配置 */
.profile_box::before,
.profile_box_left::before {
  display: none;
}

/* ■高さ固定を解除 */
#profile .box-design8 {
  width: 100%;
  max-width: 280px;
  height: auto;
  min-height: auto;
  padding: 16px;
  background-color: #00880a;
  box-shadow: 4px -4px #e1f5e6;
}

/* ーーーーーーー【コンセプト領域】ーーーーーー */
#concept-section {
  max-width: 100%;
  margin: 32px auto;
  padding: 24px 16px;
  border-radius: 8px;
  text-align: center;
  border: 3px solid #00880a;
  width: 100%;
  height: auto;
  color: #fff;
}

#concept-section p {
  font-size: 1rem;
  line-height: 1.6;
  margin: 12px 0;
}

/* コンセプトタイトル */
#concept-section h2 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

#concept-section h3,
.design-thinking h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.scroll-top:hover {
  background-color: #ff6e00;
}

/* ーーーーーー【デザインで大切にしていること】ーーーーーー */
.design-thinking {
  max-width: 100%;
  margin: 32px auto;
  padding: 24px 16px;
  border-radius: 8px;
  text-align: center;
  border: 3px solid #00880a;
  width: 100%;
  height: auto;
  color: #fff;
}

.works_top .box-design14 {
  margin: 16px auto;
  padding: 16px;
  border: 2px solid #ffffff;
  width: 100%;
  height: auto;
  color: #fff;
}

/* セクション見出し */
.design-thinking h2 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: #ffffff;
  letter-spacing: 0.05em;
}

/* 要約テキスト */
.design-thinking p {
  font-size: 1rem;
  line-height: 1.6;
  color: #dddddd;
  max-width: 100%;
  margin: 0 auto;
}

/* ーーーーーーー【作品】ーーーーーー */
.top_page_works img {
  width: 100%;
  height: auto;
  background-color: #999;
  margin-bottom: 12px;
}

.caption_box p {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 12px;
}

/* ===== 見出し ===== */
.home-grid section a h2 {
  margin-top: 0;
  font-size: 1.1rem;
}

p {
  font-size: 1rem;
  color: #fff;
  margin: auto 0;
}

/* *************************************** */
/* 【PC版】 */
/* *************************************** */
@media (min-width: 769px) {
  /* *****************************【ファーストビュー】***************************** */
  .hero {
    width: 100%;
    height: 100vh;
    padding: 0; /* ←修正：videoを全面表示するため */
    position: relative;
    overflow: hidden; /* ←修正：はみ出し防止 */
  }

  .hero-content {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
  }

  .hero h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    z-index: 2;
    width: 100%;
    max-width: 800px;
    padding: 0 20px;
    font-size: 2.4rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    color: #ffffff;
    text-shadow: 0px 0px 5px #000;

    pointer-events: none; /* CTAの邪魔をしない */
  }

  video {
    position: absolute; /* ←修正：背景扱い */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin-bottom: 0; /* ←修正：不要な余白を削除 */
  }

  /* **********************【トップP作品紹介】***********************/
  .works_top {
    margin: 80px 0 80px;
    opacity: 0;
    transform: translateY(60px) translateZ(-80px) scale(0.86);
    transform-style: preserve-3d;
    will-change: transform, opacity;
    animation: works-top-scale-lift 1s ease-out both;
    animation-timeline: view();
    scroll-timeline: view();
    animation-range: entry 0% cover 50%;
  }

  .works_inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
  }

  .works_inner p {
    color: #fff;
    text-align: center;
    margin-bottom: 30px;
  }

  .works_inner .works_list p {
    color: #000;
    text-align: center;
    margin-bottom: 30px;
  }

  .section_title {
    font-size: 2rem;
    margin: 50px 0;
  }

  .section_lead {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 40px;
  }

  .works_list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .work_card {
    display: flex;
    flex-direction: column;
    padding: 0;
    background-color: #d0d0d0;
    text-decoration: none;
    color: #000;
    transition:
      box-shadow 0.3s,
      transform 0.3s;
    overflow: hidden;
    border-radius: 4px;
  }

  .work_card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    transform: scale(1.2);
    object-fit: cover; /* 枠いっぱいに表示（比率維持） */
    object-position: center top; /* 画像の上部を中心に表示 */
  }

  .work_card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
  }

  .work_label {
    font-size: 0.75rem;
    color: #222;
    letter-spacing: 0.05em;
    padding: 16px 24px 0;
    margin-top: 20px;
  }

  .work_title {
    font-size: 1.2rem;
    margin: 8px 0 8px;
    padding: 0 24px;
  }

  .work_focus {
    font-size: 0.85rem;
    color: #000;
    padding: 0 24px 16px;
  }

  /* *****************************【メインコンテンツ】***************************** */
  main {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
  }

  /* ーーーーーー【コンセプト】ーーーーーー */
  #box_concept {
    background-color: #c9c9c9;
    height: 641px;
    width: 1358px;
    padding: 50px 20px;
    text-align: center;
    display: flex;
  }

  /* ーーーーーー【プロフィール】ーーーーーー */
  /* ■縦型配置 */
  #profile {
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 20px;

    display: flex;
    flex-direction: column;
    gap: 70px; /* 縦リズムの核 */
  }

  /* ■左右配置の統一 */
  .profile_box,
  .profile_box_left {
    display: grid;
    grid-template-columns: 1fr 80px 1fr; /* 中央に基準ライン */
    align-items: center;
    gap: 50px;
  }

  .pbox {
    width: 200px;
    background-color: #006d08;
  }

  .pimg {
    max-width: 90%;
    width: 300px;
  }

  /* PC版では180pxの制限を解除 */
  .profile_box .pimg:not(#profile1),
  .profile_box_left .pimg:not(#profile1) {
    max-width: none;
  }

  /* ■左配置 */
  .profile_box {
    grid-template-areas: "image center text";
  }

  .profile_box .pimg {
    grid-area: image;
    justify-self: end;
    width: 300px;
    max-width: 100%;
  }

  .profile_box .box-design8 {
    grid-area: text;
    justify-self: start;
    padding: 20px;
    background-color: #00880a;
    box-shadow: 7px -7px #e1f5e6;
    width: 300px;
    height: auto;
  }

  .profile_box .box-design8 p,
  .profile_box_left .box-design8 p {
    font-size: 1.4rem;
    margin: 16px 0;
  }

  /* ■右配置 */
  .profile_box_left {
    grid-template-areas: "text center image";
  }

  .profile_box_left .pimg {
    grid-area: image;
    justify-self: start;
    max-width: 100%;
    width: 300px;
  }

  .profile_box_left .box-design8 {
    grid-area: text;
    justify-self: end;
  }

  /* ■中央ラインの配置 */
  .profile_box::before,
  .profile_box_left::before {
    content: "";
    grid-column: 2;
    width: 2px;
    height: 100%;
    background-color: #7e7e7e;
    justify-self: center;
  }

  /* ■高さ固定を解除 */
  #profile .box-design8 {
    width: 320px;
    height: auto; /* ← 固定を解除 */
    min-height: 120px;
    padding: 24px;

    background-color: #00880a;
    box-shadow: 7px -7px #e1f5e6;
  }

  /* ーーーーーーー【コンセプト領域】ーーーーーーー */
  /* コンセプトセクションの一時的な可視化 */
  #concept-section {
    max-width: 800px;
    margin: 0 auto;
    margin-bottom: 50px;
    padding: 48px 32px;
    border-radius: 16px;
    text-align: center;

    /* ■枠線 */
    border: 5px solid #00880a;
    width: 100%;
    height: auto;
    color: #fff;
  }

  /* コンセプトタイトル */
  #concept-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }
  #concept-section h3,
  .design-thinking h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
  }

  .scroll-top:hover {
    background-color: #ff6e00;
  }

  /* ーーーーーー【デザインで大切にしていること】ーーーーーー */

  .design-thinking {
    max-width: 800px;
    margin: 0 auto;
    margin-bottom: 50px;

    padding: 48px 32px;
    border-radius: 16px;
    text-align: center;

    /* ■枠線 */
    border: 5px solid #00880a;
    width: 100%;
    height: auto;
    color: #fff;
  }

  .works_top .box-design14 {
    margin: 20px auto 20px 20px;
    padding: 20px;
    border: 2px solid #ffffff;
    width: 300px;
    height: 400px;
    color: #fff;
  }

  /* セクション見出し */
  .design-thinking h2 {
    font-size: 1.6rem;
    margin-bottom: 24px;
    color: #ffffff;
    letter-spacing: 0.05em;
  }

  /* 要約テキスト */
  .design-thinking p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #dddddd;
    max-width: 640px;
    margin: 0 auto;
  }

  /* ーーーーーーー【作品】ーーーーーーー */
  .top_page_works img {
    width: 300px;
    height: 200px;
    /* 一時的な背景色 */
    background-color: #999;
  }

  .caption_box p {
    display: flex;
    flex-direction: column;
    justify-content: center; /* 垂直方向中央揃え */
    align-items: center; /* 水平方向中央揃え */
  }

  /* ===== 見出し ===== */
  .home-grid section a h2 {
    margin-top: 0;
    font-size: 1.2rem;
  }

  p {
    font-size: 1.1rem;
    color: #fff;
    margin: auto 0;
  }
}
