@charset "UTF-8";

/* ==============================
   共通：横はみ出し防止の基本
============================== */
*, *::before, *::after {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}

/* ==============================
   メッセージ
============================== */
.message{
  margin-top: 60px;
}

.message-header{
  position: relative;
  display: flex;
  align-items: center;
  padding: 60px 0;
  background-color: rgb(var(--primary-yellow-rgb) / 60%);
  overflow: visible;
}

.message-title{
  font-family: 'BananaSlip', 'Noto Sans JP', sans-serif;
  color: var(--primary-red);
  font-size: 4rem;
  padding-left: 12%;
  z-index: 2;
}

.message-image{ 
    position: absolute; 
    right: 10%; 
    top: 50%; 
    width: 35%; 
    max-width: 420px; 
    min-width: 260px; 
    height: auto; 
    border-radius: 40px; 
    z-index: 1; }

.name{
  font-family: 'BananaSlip', 'Noto Sans JP', sans-serif;
  color: var(--primary-red);
  font-size: 2rem;
}

.message-text{
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 200;
  padding-top: 5px;
  font-size: 1.4rem;
}

.message-1{
  margin-top: 150px;
}

.message-1,
.message-2,
.message-3{
  width: fit-content;
  max-width: 90%;
  border-left: 2px solid var(--primary-red);
  padding-left: 30px;
  margin-left: 10%;
  min-width: 0;
}

.message-2,
.message-3{
  margin-top: 25px;
}

.contact-note{
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 100;
  font-size: 1.3rem;
  margin-top: 30px;

  /* leftで動かすと環境によってははみ出し要因になりうるのでmarginで調整 */
  position: static;
  margin-left: 10%;
  max-width: 90%;
}

/* ==============================
   採用イベント一覧
============================== */
.events-container{
  margin: 110px auto 0;
}

.section-title{
  font-family: 'BananaSlip', 'Noto Sans JP', sans-serif;
  color: var(--primary-red);
  font-size: 3rem;
  background-color: rgb(var(--primary-yellow-rgb) / 60%);
  border-radius: 30px;
  padding: 20px;
  text-align: center;
  margin: 0 auto;
  width: fit-content;
  max-width: 92%;
}

.events-wrapper{
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin: 45px auto 0;
  max-width: 900px;
  align-items: center;
  min-width: 0;
}

.event-title{
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--primary-red);
  font-size: 1.6rem;
  font-weight: 600;
}

.number{
  background-color: rgb(var(--primary-yellow-rgb) / 60%);
  padding: 10px;
  border-radius: 10px;
  margin-right: 10px;
}

.event-group{
  display: flex;
  gap: 60px;
  max-width: 700px;
  width: 100%;
  justify-content: center;
  margin: 0 auto;
  min-width: 0;
}

.job-event{
  flex: 1 1 0;
  max-width: 300px;
  min-width: 0;
}

.event-description{
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.4rem;
  padding-top: 15px;
}

/* ==============================
   LINE
============================== */
.Line{
  margin: 100px auto 50px;
  text-align: center;
  width: 90%;
}

.line-content{
  /* width + padding でオーバーしないように border-box */
  width: min(60%, 900px);
  padding: 80px 40px 40px 40px;
  margin: 0 auto;

  background-image: url(../img/flame.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

  min-width: 0;
}

.line-description{
  font-family: 'BananaSlip', 'Noto Sans JP', sans-serif;
  font-size: clamp(2rem, calc(25 / 1100 * 100vw), 3rem);
  color: var(--primary-red);
  font-weight: bold;
  text-align: left;
  width: 90%;
  margin: 0 auto;
}

.line-caption{
  font-family: "Noto Sans JP", sans-serif;
  text-align: center;
  font-size: 1.8rem;
  color: #6AC26A;
  margin-bottom: 5px;
  font-weight: bold;
  position: relative;
  display: inline-block;
  padding-top: 15px;
}

.caption-slash{
  width: 20px;
  height: auto;
}

.pc-only{
  display: block;
}

/* ★二重定義をやめて、ここに統一 */
.line-iconWrap{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 0;
}

/* 画像が width:100% だと横並びで破綻するので、固定/上限で安定させる */
.line-icon{
  width: 120px;
  height: auto;
}

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

.line-iconWrap:hover{
  filter: brightness(1.2);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  transform: translateY(4px);
}

/* ==============================
   768px以下（メッセージ・イベント）
============================== */
@media (max-width: 767px) {
    .message-header{
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 40px 0 30px;
      }
    
      .message-title{
        padding-left: 0;
        text-align: center;
        font-size: 2.4rem;
        line-height: 1.3;
        margin-bottom: 20px;
      }
    
      .message-image{
        position: static;          /* absolute解除 */
        transform: none;
        width: 80%;
        max-width: 300px;
        min-width: auto;
        border-radius: 30px;
      }
  .name{
    font-size: 1.6rem;
  }

  .message-text{
    font-size: 1.2rem;
    width: 80%;
  }

  .message-1,
  .message-2,
  .message-3{
    padding-left: 15px;
    margin-left: 5%;
  }

  .message-1{
    margin-top: 60px;
  }

  .contact-note{
    width: 80%;
    margin: 30px auto 0;
    max-width: none;
  }

  /* 採用イベント一覧 */
  .section-title{
    font-size: 1.8rem;
    padding: 8px 10px;
    border-radius: 8px 10px;
  }

  .events-wrapper{
    gap: 0;
    margin: 20px auto 0;
    width: 80%;
  }

  .event-group{
    display: block;
    gap: 0; /* blockなので不要 */
  }

  .job-event{
    margin-top: 30px;
    max-width: none;
  }

  .event-title{
    font-size: 1.6rem;
  }

  .event-description{
    font-size: 1.2rem;
  }
}

/* ==============================
   768px以下（LINE）
============================== */
@media (max-width: 768px) {
  .Line{
    margin: 50px auto 0;
  }

  .line-content{
    width: 92%;
    padding: 50px 0 10px;
    background-size: 100% 100%;
    background-clip: padding-box;
    margin-bottom: 40px;
  }

  .line-description{
    font-size: clamp(1.6rem, calc(20 / 1100 * 100vw), 2.3rem);
  }

  .line-iconWrap{
    gap: 10%;
    padding-top: 10px;
  }

  .line-icon{
    width: 80px;
    height: 80px;
  }

  .qr-code{
    width: 65px;
    height: 65px;
  }

  .line-caption{
    font-size: 1.4rem;
  }

  .pc-only{
    display: none;
  }
}
