@charset "utf-8";

body {
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.6;
}

h1 {
  font-weight: 700; /* 太字 */
  font-size: 2rem;
}

p {
  font-weight: 400; /* 通常 */
  font-size: 1rem;
}

.fade-in {}

.fade-in.active {}


.container {
  max-width: 1000px;
  margin: 0 auto 60px;
}

.image-wrapper {
  position: relative;
  display: block;
  width: 100%;
}

.main_img {
  display: block;
  width: 100%;
  height: auto;
}

.custom-shape-divider-bottom-1734248924 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
}

.custom-shape-divider-bottom-1734248924 svg {
  position: relative;
  display: block;
  width: calc(120% + 1.3px);
  height: 64px;
}

.custom-shape-divider-bottom-1734248924 .shape-fill {
  fill: #FFFFFF;
}

.work-title {
  padding: 0 20px 8px;
  text-align: left;
  color: #333;
  text-shadow: #fff 2px 0, #fff -2px 0, #fff 0 -2px, #fff 0 2px, #fff 2px 2px, #fff -2px 2px, #fff 2px -2px, #fff -2px -2px, #fff 1px 2px, #fff -1px 2px, #fff 1px -2px, #fff -1px -2px, #fff 2px 1px, #fff -2px 1px, #fff 2px -1px, #fff -2px -1px, rgba(0, 0, 0, .5) 3px 3px 3px;
}

.work-title h2 {
  font-size: 24px;
  margin: 0;
}

.work-title h1 {
  font-size: 32px;
  margin: 0;
}

@media screen and (max-width: 768px) {
  .work-title {
    padding: auto;
  }
  .work-title h1 {
    font-size: 20px; /* スマホ時は小さめに */
  }

  .work-title h2 {
    font-size: 14px; /* スマホ時は小さめに */
  }
}

.category-sakata .work-title {
  background-color: #7abcff;
}

.category-tsuruoka .work-title {
  background-color: #ff7a7a;
}
.category-mikawa .work-title {
  background-color: #7aff7a;
}

.category-syounai .work-title {
  background-color: #ffbc7e;
}

.category-yusa .work-title {
  background-color: #ff7abc;
}

.comment-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.commentator {
  position: absolute;
  bottom: -160px; /* `main_img` の下部 */
  right: 200px; /* 右端 */
  max-width: 200px; /* 横幅がはみ出さないように調整 */
  text-align: center;
  z-index: 10; /* 他の要素より上に */
}

.commentator img {
  max-width: 100%;
  border-radius: 50%;
}

.comment {
  width: 72%;
  margin-right: auto;
}

@media screen and (max-width: 768px) {
  .comment-wrapper {
    flex-direction: column;
    align-items: center;
  }
  .commentator {
    position: static; /* 絶対配置を解除 */
    bottom: auto;
    right: auto;
    max-width: 200px;
    margin-left: 0; /* 左寄せ */
  }
.comment {
  width: 100%;
  padding: 10px 20px;
  }
}

.caption {
  position: relative;
  max-width: 1000px;
  font-size: 24px;
  font-weight: bold;
  color: #333;
  background: #9cf;
  line-height: 1;
  padding: 10px 10px;
  margin: 120px auto 24px;
  border-radius: 0 4px 4px 4px;
}

.caption::after {
  /*タブの部分*/
  position: absolute;
  font-size: 14px;
  font-weight: 900;
  content: '✓ Check!';
  background: #09f;
  color: #fff;
  left: 0px;
  bottom: 100%;
  padding: 4px 8px 2px;
  border-radius: 4px 4px 0 0;
  line-height: 1;
}

.profile-content {
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
}

.map {
  flex: 4;
  margin-right: 20px; /* 右側の余白 */
}

.table-profile {
  flex: 6;
}

.overview {
  width: 100%;
  border-collapse: collapse;
  max-width: 580px;
}

.overview th,
.overview td {
  padding: 2px 8px;
  border: 3px solid #fff;
  color: #666;
}

.overview th {
  width: 100px;
  min-width: 4em;
  font-weight: bold;
  text-align: left;
  position: relative;
}

.overview th::after {
  background-color: #ddd;
  content: '';
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  width: 1px;
  height: 60%;
}

.balloon_chat {
  display: flex;
  align-items: center;
  padding: 0 10px;
}

/* 左の吹き出し */
.balloon_chat.left {
  flex-direction: row;
}

/* 右の吹き出し */
.balloon_chat.right {
  flex-direction: row-reverse;
}

/* 吹き出しの入力部分の作成 */
.chatting {
  position: relative;
  display: block;
  margin: 20px;
  padding: 10px 20px;
  background: #ffc;
  text-align: left;
  border-radius: 16px;
}

/* 吹き出しの三角部分の作成 */
.chatting::after {
  content: "";
  border: 16px solid transparent;
  border-top-color: #ffc;
  position: absolute;
  top: 12px;
}

.left .chatting::after {
  left: -16px;
}

.right .chatting::after {
  right: -16px;
}

.balloon_chat figure img {
  border-radius: 50%;
  margin: 0;
}

.icon_img {
  width: 80px;
  height: 80px;
}

.gallery {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 20px; 
}

.gallery .main_image {
  width: 100%;
  max-width: 714px;
}

.gallery .main_image img {
  width: 100%;
  transition: opacity 0.3s ease-in-out;
  opacity: 1;
}

.gallery .main_image img.fade-out,
.gallery .side_images img.fade-out {
  opacity: 0;
}

.gallery .side_images {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gallery .side_images img {
  width: 225px;
}

.gallery .side_images img:hover {
  filter: brightness(1.2);
}

/* モバイル対応（768px以下） */
@media screen and (max-width: 768px) {
  .gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .gallery .main_image {
    width: 100%;
    max-width: 714px;
  }
  .main_image img {
    width: 100%;
    height: auto;
  }
  .side_images {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between;
    width: 100%;
    max-width: calc(100% - 8px);
    gap: 4px;
    overflow: hidden;
  }
  .side_images img {
    flex: 1;
    max-width: calc((100% - 8px) / 3);
    height: auto;
    box-sizing: border-box;
  }
}

.gallery_text {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 96%;
  margin: 0 auto;
  padding: 10px;
}

.gallery_text p {
  margin: 0;
  font-size: 18px;
  font-weight: bold;
  text-align: left;
  flex: 1;
  border-bottom: 3px solid #ffdd00;
}

@keyframes shake {
50% { transform: rotate(-8deg); }
100% { transform: rotate(8deg); }
}

.gallery_text img {
  width: 72px;
  height: auto;
  animation-name: shake;
  animation-duration: 1.5s;
  animation-iteration-count: infinite;
}

.recruit {
  border-collapse: collapse;
  width: 100%;
  max-width: 800px;
  margin: 32px auto;
}

.recruit th,
.recruit td {
  border: 4px solid #fff;
  background-color: #ffc;
  padding: 8px;
}

.recruit th {
  background-color: #fc9;
  color: #333;
  font-weight: bold;
  text-align: center;
  width: 20%;
  min-width: 4em;
}

.url a {
  position: relative;
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 20px auto;
  max-width: 225px;
  padding: 10px 0px 10px 25px;
  color: #313131;
  transition: 0.3s ease-in-out;
  font-weight: 500;
  text-decoration: none;
}

.url a:before,
.url a:after {
  content: "";
  position: absolute;
  display: block;
  top: 50%;
}

.url a:before {
  width: 0.5rem;
  height: 0.5rem;
  left: 1.1rem;
  border-top: solid 2px #fff;
  border-right: solid 2px #fff;
  z-index: 2;
  transform: translateY(-50%) rotate(45deg);
  transition: all 0.3s;
}

.url a:after {
  left: 0;
  background: #6bb6ff;
  z-index: 1;
  width: 3rem;
  height: 3rem;
  border-radius: 4rem;
  transform: translateY(-50%);
  transition: all 0.5s;
}

.url a span {
  position: relative;
  transition: all 0.3s;
  z-index: 3;
}

.url a:hover span {
  color: #fff;
}

.url a:hover:before {
  left: 2rem;
}

.url a:hover:after {
  right: 0;
  width: 100%;
}