/* メインコンテンツ全体のコンテナ */
/* .main-content {
    padding-top: 100px; 
} */

/* 左カラム */
.left-column {
    padding: 40px;
    text-align: center;
}
.blurOn {
    filter: blur(5px);
    opacity: 0;
    transition: filter 1.3s ease-out, opacity 1.3s ease-out;
}

.blurOn.active {
    filter: blur(0);
    opacity: 1;
}

.catchphrase {
    display: flex;
    justify-content: left;
    align-items: center;
    gap: 15px;
    font-size: 22px;
    color: #ffffff;
    text-shadow: #000000 0 0 60px;
}
.x-mark {
  width: 50px;;
}
.catchphrase__text-01, .catchphrase__text-02 {
   font-size: 28px;
   font-weight: 600;
}
.catchphrase__text-01 {
  margin-top: -30px;
}
.catchphrase__text-02 {
  margin-top: 30px;
}
.tagline {
    margin-top: 20px;
    line-height: 1.6;
    text-align: left;
    font-size: 40px;
    color: #ffffff;
}

/* 右カラム */
.right-column {
    padding:84px 0 0;
    font-size: 18px;
    line-height: 42px;
}
.right-column__p {
    margin: 0 0 42px 0; /* 段落ごとの下に余白を設定 */
}
.right-column__p:last-child {
    margin-bottom: 0;
}

/* ▼ パソコン・タブレット版のスタイル（画面幅769px以上で適用） */
@media (min-width: 769px) {
  /* メインコンテンツの2カラムレイアウト */
  .main-content {
    display: grid;
    /* 左カラムを45%、右を55%に分割 */
    grid-template-columns: 45% 55%; 
    max-width: 1920px;
    margin: 0 auto;
  }

  /* 左カラムを画面に固定する設定 */
  .left-column {
    position: sticky; /* スクロールに追従して固定 */
    top: 65px; /* 画面の上端を基準に固定 */
    height: 100vh; /* 高さを画面の100%に */
    padding: 50vh 0 90px 50px;
    /* 中身を上下中央に配置 */
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: left;
    text-align: left;
  }
  .tagline {
    font-size: 40px;
  }
  /* 右カラムに十分なスクロール領域を確保 */
  .right-column {
    padding-bottom: 150px;
  }
}
@media (max-width: 921px) {
  .catchphrase__text-01, .catchphrase__text-02 {
  font-size: 26px;
  font-weight: 600;
}
  .catchphrase__text-02 {
  margin-top: 35px;
}
  .tagline {
  font-size: 30px;
}
  .left-column {
  padding: 50vh 0 90px 15px;
  }
}

@media (max-width: 768px) {
    .left-column {
    padding: 55vh 15px 60px;
  }
}
@media (max-width: 510px) {
  .left-column {
    padding: 60vh 15px 60px;
    text-align: left;
  }
  .main-text {
    font-size: 14px;
    line-height: 2;
  }
  .x-mark {
  width: 25px;;
}
.catchphrase {
    gap: 0px;
}
  .catchphrase__text-01, .catchphrase__text-02 {
   font-size: 24px;
}
  .tagline {
    font-size: 30px;
    margin-top: 20px;
    line-height: 1.6;
    text-align: left;
}
}

 /* メインテキストのレイアウト */
.main-text {
  text-align: center;
  margin-bottom: 140px;
  color: #ffffff;
  text-shadow: #000000 0 0 5px;
}

/* --- Project Section --- */
.projects {
  max-width: 600px; /* 少し広げてレイアウトしやすく */
  margin: 0 auto 150px;
}

.project__article {
  /* display: grid を使ってレイアウトの土台を作成 */
  display: grid;
  /* 12分割のグリッドカラムを定義 */
  grid-template-columns: 0fr 0fr;
  align-items: start; /* 子要素を垂直方向中央に配置 */
  margin-bottom: 60px;
  max-width: 600px;
}
.project__article:last-child {
  margin-bottom: 0;
}

.project__image-wrapper {
  grid-column: 2 / span 8;
  /* grid-column: 3 / 1; */
  grid-row: 1;
  aspect-ratio: 4 / 4;
  z-index: 3;
}

.project__image-wrapper img {
  width:350px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.project__text-content {
  grid-row: 1;
  grid-column: 9 / span 1;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  max-width: 340px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin-top: 310px;
  padding: 0.5rem 2rem 2rem;
  z-index: 2; /* 画像より手前に表示 */
}

.project__title {
  font-family: var(--font-heading, 'Playwrite AU QLD', cursive);
  color: var(--color-heading, #378D8D);
  text-shadow: #ffffff 0 0 5px;
  font-size: 2.3rem;
  font-weight: 400;
  margin-top: -1rem;
  margin-bottom: 1rem;
  text-align: right;
}

/* --- Typography in card --- */
.project__tech {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 2rem;
  margin: 0 0 1rem 0;
  text-align: center;
  color: #555;
}

.project__description {
  margin: 0;
  font-size: 16px;
  line-height: 2;
  color: #444;
}

.project_3-subtitle {
  display: block;
  font-weight: 600;
}
/* --- Responsive Adaptation (Mobile) --- */
@media (max-width: 1170px) {
  .project__article {
    width: 550px;
    grid-template-columns: 0fr 1fr 1fr;
}
  .project__title {
  margin-top: -4rem;
  margin-right:-1.5rem; 
}
  .project__image-wrapper {
  grid-column: 2 / span 8;
  grid-row: 1;
  aspect-ratio: 4/ 4; /* 比率を維持 */
  z-index: 3;
}
.project__image-wrapper img {
  width: 370px;
  object-fit: cover;
  margin-right: 0px;
  margin-top: 0;
}
  .project__text-content {
  padding: 3rem 2rem 2rem;
  max-width: 340px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin-top: 340px;
  z-index: 2; /* 画像より手前に表示 */
}
}

@media (max-width: 959px) {
  .project__article {
      width: 490px;
    }
  .project__title {
      font-size:2rem; 
      margin-top: -4rem;
      margin-right: -1.5rem;
    }
  .project__image-wrapper img {
      width: 320px;
      object-fit: cover;
      margin-right: 0;
    }
  .project__text-content {
      max-width: 320px;
      margin-top: 290px;
      padding: 3rem 2rem 2rem;
      z-index: 2; /* 画像より手前に表示 */
    }
}

@media (max-width: 900px) {
  .tagline {
    font-size: 36px;
  }
  .catchphrase__text-01,.catchphrase__text-02 {
    font-size: 22px;
  }
  .project__article {
    width: 430px;
  }
  .project__title {
  text-align: left;
  margin-top: -2rem;
  margin-right: 0;
}
  .project__image-wrapper {
      grid-row: 1; /* 画像を1行目に */
  }
  .project__image-wrapper img {
      width: 330px;
      margin-right: 50px;
    } 
    .project__image-wrapper {
      margin-right: 294px;
    }
  .project__text-content {
    /* グリッドの1列目から8列目まで */
    grid-column: 1 / span 4;
    width: 260px;;
  }
  .project__text-content {
      grid-row: 1; /* テキストを1行目に配置し、z-indexとmarginで重ね順を調整 */
      width: 300px;
      justify-self: end;
      margin-top: 310px; /* 画像の下に配置されるように調整 */
      padding: 4rem 1.5rem 1.5rem;
      z-index: 2;
  }
  /* reverseでも中央揃えなので特に変更は不要 */
  .project.project--reverse {
        text-align: left;
  }
}
@media (max-width: 768px) {
  .project__article {
    grid-template-columns:  0 1fr 0 ;
    margin: 0 auto 60px;
  }
  .project__image-wrapper {
    justify-self: start; /* グリッドセル内で中央に */
  }
  .project,.project__text-content
  .project.project--reverse {
    grid-template-columns: 0fr 1fr ;
    margin: 0 auto 60px;
    min-width: 355px;
  }
  .project__text-content {
    width: 320px;
  }
  .about-us__description {
    margin-right: 15px;
}
}
@media (max-width: 600px) {
  .project {
    width: 450px;
  }
  .project__image-wrapper {
    margin-right: 200px;
  }
}
@media (max-width: 510px) {
  .project__article {
    grid-template-columns:  0fr 1fr;
  }
  .project__image-wrapper {
    margin-right: 145px;
  }
}
@media (max-width: 425px) {
  /* .project {
    width: 350px;
  } */
  .project__article {
    width: 365px;
  }
  .project__image-wrapper img {
    width: 300px;
  }
  .project__text-content {
    margin-top: 280px;
  } 
}

/* セクション「Web体験」 */
.experience {
  position: relative;
  padding: 4rem 2rem;
  margin: 0 auto 130px;
  max-width: 900px;
  text-align: center;
  background-color: #FFFFFF;
}

.experience__main-title {
  font-family: var(--font-heading, 'Playwrite AU QLD', cursive);
  color: var(--color-text, #333);
  text-shadow: #ffffff 0 0 5px;
  font-size: 65px;
  font-weight: 400; /* Playwriteフォントはbold非対応 */
  text-align: left;
  margin-bottom: 3rem;
  position: absolute;
  left: -53px;
  top: -30px;
}

.step {
  text-align: center;
}

.step__title {
  font-family: var(--font-heading, 'Playwrite AU QLD', cursive);
  color: var(--color-heading, #378D8D);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: left;
}

/* --- Step 1: Bubble --- */
.step--1 {
  margin-bottom: 4rem;
}

.step__bubble {
  position: relative;
  border: 2px solid #D8D8D8;
  background-color: #FFFFFF;
  border-radius: 30px;
  padding: 2rem 3rem;
  width: 80%;
  max-width: 700px;
  margin: 0 auto;
}

/* Bubble tail */
.step__bubble::before,
.step__bubble::after {
  content: '';
  position: absolute;
  bottom: -21px;
  left: 20%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-style: solid;
}
.step__bubble::after { /* Border */
  border-width: 21px 21px 0 21px;
  border-color: #D8D8D8 transparent transparent transparent;
  bottom: -23px;
}
.step__bubble::before { /* Fill */
  border-width: 20px 20px 2px 20px;
  border-color: #FFFFFF transparent transparent transparent;
  z-index: 1;
}

.step__content--desktop {
  display: flex;
  flex-wrap : nowrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.step__qr-code {
  max-width: 120px;
  height: auto;
}

.step__or-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: #555;
}

.step__button-image {
  max-width: 250px;
  height: auto;
}

.step__content--mobile {
  display: none;
}

.step__note {
  font-size: 0.9rem;
  line-height: 1.5rem;
  color: #666;
}
.br-sp {
  display: none;
}

/* --- Steps 2 & 3 --- */
.steps-2-3-wrapper {
  display: flex;
  align-items: normal;
  justify-content: center;
  gap: 2rem;
}

.step__image {
  max-width: 340px;

}
.step__image img {
  width: 100%;
}

.steps-2-3-wrapper__arrow {
  width: 50px;
}
.steps-2-3-wrapper__arrow--mobile {
  display: none;
}


/* --- Responsive Adaptation (Mobile) --- */
@media (max-width: 1259px) {
  .step__content--desktop {
  flex-wrap : wrap;
  gap: 1rem;
  }
  .step__title {
    margin-bottom: 0;
  }
}
@media (max-width: 921px) {
  .experience {
    padding: 2rem 1rem 4rem;
  }
  .experience__main-title {
    text-align: center;
    font-size: 2.5rem;
    left: 10px;
  }
  .steps-2-3-wrapper {
  align-items: center;
  }
  .step__bubble {
    width: 95%;
    padding: 1.5rem;
    margin-top: 43px;
  }
 .step__button--mobile {
    display: inline-block;
    background-color: #004a4e;
    color: #FFFFFF;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 1rem 2rem;
    margin: 1rem auto;
    text-decoration: none;
    line-height: 1.5;
    border-radius: 4px;
  }
 .steps-2-3-wrapper {
    flex-direction: column;
  }

 .steps-2-3-wrapper__arrow--desktop {
    display: none;
  }
 .steps-2-3-wrapper__arrow--mobile {
    display: block;
    margin: 1rem 0;
    width : 80px;
  }
  .br-sp {
    display: block;
  }
}
@media (max-width: 430px) {
  
 .step__content--desktop {
    display: none;
  }

 .step__content--mobile {
    display: block;
  }

}
/* --- About Us Section (修正) --- */
.about-us {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-top: 50px;
}
.about-us__intro-wrapper {
   display: flex;
   flex-wrap: wrap ;
   justify-content: end;
}
.about-us__title {
    font-family: var(--font-heading, 'Playwrite AU QLD', cursive);
    color: var(--color-text, #333);
    text-shadow: #ffffff 0 0 5px;
    font-size: 65px;
    font-weight: 400;
    position: absolute;
    left: 6rem;
    top: 20px;
    /* paddingに合わせて調整 */
    z-index: 10;
}

.about-us__image-area {
    width: 40rem;
    margin-bottom: 30px;
    /* 画像とテキストの間の余白 */
}

.about-us__image-area img {
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-us__text-area {
    width: 100%;
    margin-bottom: 80px;
    margin-top: -180px;
}

.about-us__description {
    font-size: 16px;
    line-height: 2;
    color: #ffffff;
    text-shadow: #000000 0 0 25px;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    padding: 40px;
    width: fit-content;
}

.about-us__description__01 {
    display: block;
    margin-bottom: 1em;
}
.about-us__description__02 {
    display: block;
    margin-bottom: 3em;
}
.about-us__h3 {
  font-size: 18px ;
  font-weight: 600;
  margin-bottom: 0.5rem
}
.about-us__ul {
  margin-bottom: 1em;
}
.about-us__ul li {
  list-style-type: disc;
  list-style-position: inside;
}
.br-pc {
  display: block;
}
.br-sp {
  display: none;
}
.staff-profile {
    display: flex;
    justify-content: end;
    gap: 80px;
    padding-right: 15px;
    flex-wrap: nowrap;
}
.staff-profile__content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.staff-profile__image-wrapper {
    width: 300px;
    height: 300px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 5;
    position: relative;
    margin-left: -200px;
}

.staff-profile__image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.staff-profile__text-content {
    background-color: var(--color-card-bg);
    width: 350px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    z-index: 1;
    padding: 4rem 2rem 2rem;
    margin: -40px 0px 0 30px;
    /* ネガティブマージンでカードを画像に重ねる */
}
.staff-position {
  font-family: var(--font-heading, 'Playwrite AU QLD', cursive);
  font-size: 1.6rem;
  font-weight: 400;
  text-align: left;
  color: var(--color-heading, #378D8D);
}
.staff-profile__name {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 32px;
    margin-bottom: 1rem;
    text-align: center;
    color: #555;
}
.staff-profile__description {
    font-size: 16px;
    line-height: 2;
}
.staff-profile__description__01 {
    display: block;
    margin-bottom: 1.5em;
}
.staff-profile__description__02 {
    display: block;
    margin-bottom: 2rem;
}
@media (max-width: 1440px) {
  .about-us__title {
    left: 4rem;
  }
  .staff-profile__image-wrapper {
    width: 15rem;
    height: 17rem;
  }
  .staff-profile__text-content {
    width: 20rem;
    padding: 4rem 1.5rem 2rem;
  }
}
@media (max-width: 1340px) {
    .about-us__title {
    left: 1rem;
  }
  .staff-profile__image-wrapper {
    width: 15rem;
    height: 15rem;
  }
  .staff-profile__text-content {
    width: 18rem;
    padding: 3.5rem 1.4rem 2rem;
  }
  .staff-profile__description__02 {
    margin-bottom: 4rem;
}
}
@media (max-width: 1100px) {
  .about-us__text-area {
    width: 35rem;
    margin-top: -130px;
  }
  .staff-profile {
      gap: 40px;
  }
  .staff-profile__image-wrapper {
    margin-right: -110px;
  }
}
@media (max-width: 1060px) {
    .about-us__text-area {
    width: 32rem;
    margin-top: -130px;
  }
  .staff-profile {
    flex-wrap: wrap;
    justify-content: center;
  }
  .staff-profile__image-wrapper {
    width: 17rem;
    height: 17rem;
    margin-right: 0;
  }
  .staff-profile__text-content {
    width: 20rem;
    padding: 4rem 1.5rem 2rem;
  }
}
@media (max-width: 921px) {
  .about-us__title {
    text-align: center;
    font-size: 2.5rem;
    left: 10px;
  }
  .about-us__text-area {
    margin-left: -2rem;
  }
  .about-us__description {
    padding: 1rem;
  }
  .br-tb {
    display:none;
  }
}
@media (max-width: 768px) {
  .about-us {
    overflow-x: hidden;
    padding: 0;
    margin-bottom: 80px;
  }
  .about-us__intro-wrapper {
    justify-content: start;
  }
  .about-us__title {
    position: absolute;
    left: 15px;
    text-align: center;
    font-size: 2.5rem;
    margin-top: 0px;
    margin-bottom: 0;
  }

  .about-us__text-area {
    padding: 0;
    margin-bottom: 90px;
    margin-left: 15px;
  }
  .about-us__image-area {
    margin-top: 50px;
    margin-left: 80px;
    /* 画像とテキストの間の余白 */
  }
  .staff-profile {
    flex-direction: column;
    /* Stack profiles vertically */
    align-items: center;
    gap: 60px;
    /* Adjust gap for vertical stacking */
  }

  .staff-profile__content-wrapper {
      width: 100%;
  }
} 
@media (max-width: 486px) {
    /* .staff-profile {
      margin-left: 15px;
    } */
    .staff-profile__text-content {
      margin-left: 6rem;
  }
    .staff-profile__image-wrapper {
      margin-left: -9rem;
    }
}

@media (max-width: 457px) {
    .br-pc {
      display: none;
    }
    .br-sp {
      display: block;
    }
    .about-us__description {
      padding: 25px;
    }
    .staff-profile {
      padding-right: 0;
    }
    .staff-profile__image-wrapper {
       width: 275px;
       height: 275px;
       margin-left: 15px;
    }
    .staff-profile__content-wrapper {
      align-items: normal;
    }
}
@media (max-width: 425px) {
   .staff-profile__text-content {
      margin-left: 5rem;
      width: 18rem;
   }  
}