@charset "UTF-8";
/* ===== reset ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

/* ===== base ===== */
html {
  font-size: 62.5%;
}

body {
  color: #000;
  font-family: "Noto Sans JP", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro",
    "メイリオ", Meiryo, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
  font-size: 1.2rem;
  line-height: 1.6;
  background-color: #fff;
  display: flex;
  flex-direction: column;
}

html, body {
  height: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

main {
  flex: 1;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
  user-select: none;
  -webkit-user-drag: none;
}

ul, ol {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

table {
  border-collapse: collapse;
}

/* ===== layout / component ===== */
/* header */
header {
  height: 54px;
  border-bottom: 1px solid #707070;
  padding:  21px 20px 16px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #fff;
}


/* main */
.layout {
  padding: 0 20px;
  text-align: center;
  margin-bottom: 150px;
  margin-top: 54px;
}

.title_contents {
  margin-top: 27px;
}
.title_area p {
  display: inline;
  font-size: 1.4rem;
  line-height: 1.4;
  color: #00913B;
  border-bottom: 1px dashed #00913B;
}
.title_area h1 {
  font-size: 3.2rem;
  line-height: 1.4;
  color: #007048;
  margin-top: 1px;
}
.title_contents .subtitle {
  font-size: 1.2rem;
  margin-top: 10px;
  font-weight: 500;
}
.title_contents .others {
  font-size: 0.9rem;
  margin-top: 7px;
  line-height: 1.7;
}



.panel {
  margin-top: 30px;
}

.panel_title {
  font-size: 1.6rem;
  color: #007048;
}

.upload_box {
  margin-top: 30px;
}

.upload_dropzone {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 200px;
  text-align: center;
  border: 3px solid #007048;
  border-radius: 10px;
  box-shadow: 3px 4px 6px #0000004A;
  cursor: pointer;
  transition: all 0.2s ease;
}

.upload_dropzone:hover,
.upload_dropzone.is_dragover {
  transform: translateY(1px);
}

.upload_dropzone_icon {
  margin: 40px auto 18px;
}

.upload_dropzone__title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}

.upload_dropzone_desc {
  font-size: 1.1rem;
  margin: 6px 0 16px;
}

.upload_dropzone_button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 160px;
  height: 32px;
  border-radius: 50px;
  background-color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
  color: #007048;
  padding: 8px 20px;
  border: 2px solid #007048;
  position: relative;
}
.upload_dropzone_button p{
  margin-left: 14px;
}
.upload_dropzone_button .arrow {
  border-left: 11px solid #007048;
}
.helper_text {
  margin-top: 14px;
  font-size: 0.9rem;
}

.actions {
  margin-top: 23px;
}

.btn {
  appearance: none;
  border: none;
  border-radius: 999px;
  height: 57px;
  width: 280px;
  padding: 0 18px;
  font-size: 1.6rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  margin: 0 auto;
}

.btn:disabled {
  opacity: 0.8;
  background-color: #9E9E9E;
  cursor: not-allowed;
}

.add_image_btn {
  margin-bottom: 23px;
  font-size: 1.4rem;
  height: 46px;
  padding: 0 72px;
  border: 2px solid #007048;
}

.btn_primary {
  color: white;
  background-color: #00913B;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 16px 39px;
  position: relative;
}

.btn_primary:hover:not(:disabled) {
  transform: translateY(1px);
}

.btn_primary img {
  margin-right: 17px;
}
.arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 5.5px solid transparent;
  border-bottom: 5.5px solid transparent;
  border-left: 11px solid #333;
}
.btn_primary .arrow {
  border-left-color: #fff;
}

.summary_card {
  margin-top: 15px;
}

.progress_bar {
  width: 250px;
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: #D5D5D5;
  margin: 0 auto;
}


.progress_bar_fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: #00913B;
  transition: width 0.2s ease;
}

.preview_grid {
  margin-top: 13px;
  border: 2px dashed #007048;
  border-radius: 10px;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 25px;
}

.preview_grid:empty {
  display: none;
}

.preview_card {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.03));
  border: 1px solid #00913B;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
  position: relative;
}

.preview_card__image_wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: rgba(255,255,255,0.04);
  overflow: hidden;
  margin: 0 auto;
}

.preview_card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #0a0c10;
}
.remove_image_btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background-color: #fff;
  border: 1px solid #00913B;
  color: #00913B;
  font-size: 16px;
  line-height: 21px;
  text-align: center;
  cursor: pointer;
}


.empty_state {
  border: 2px dashed #007048;
  border-radius: 10px;
  padding: 48px 20px;
  text-align: center;
  margin-top: 13px;
  height: 278px;
}

.empty_state_text {
  font-size: 1.6rem;
  color: #9E9E9E;
  margin: 79px 0;
}

/* footer */
footer {
  text-align: center;
  padding: 22px 0;
  background-color: #F5F2E9;
}

/* ========= complete page ========= */

.complete_message {
  text-align: center;
  margin: 60px auto 0;
  border: 2px solid #007048;
  border-radius: 20px;
  padding: 25px 45px;
  max-width: 335px;
}
.complete_message p {
  font-size: 1.6rem;
  white-space: nowrap;
}

.complete_text {
  font-size: 2.4rem;
  font-weight: bold;
  color: #00913B;
  line-height: 1.45;
  white-space: nowrap;
}
.complete_image {
  margin: 38px auto 28px;
}
.complete_message p+p {
  margin-top: 10px;
}
/* ========= /complete page ========= */

/* ========= error page ========= */
.error_title_contents {
  margin-top: 36px;
}
.error_title {
  padding-bottom: 6px;
  display: inline-block;
  border-bottom: 2px solid #007048;
}

.error_title h1 span {
  font-size: 2.4rem;
}

.error_message {
  margin-top: 40px;
}
.error_text {
  font-size: 1.8rem;
  font-weight: bold;
  color: #00913B;
}
.error_subtext {
  margin-top: 15px;
  font-size: 1.4rem;
}
/* ========= /error page ========= */

/* ========= responsive styles ========= */
@media (min-width: 768px) {
  header {
    padding: 21px 40px 16px;
  }
  .layout {
    width: 720px;
    padding: 0 40px;
    margin: 54px auto 150px;
  }
  .title_area p {
    font-size: 1.6rem;
  }
  .title_area h1 {
    font-size: 3.8rem;
  }
  .title_contents .subtitle {
    font-size: 1.8rem;
    margin-top: 15px;
  }
  .title_contents .others,
  .helper_text {
    font-size: 1.4rem;
  }
  .panel_title,
  .empty_state_text {
    font-size: 1.8rem;
  }
  .upload_dropzone {
    width: 250px;
    height: 250px;
  }
  .upload_dropzone_icon {
    margin: 50px auto 25px;
  }
  .upload_dropzone_icon img {
    width: 110px;
  }
  .upload_dropzone_button {
    width: 200px;
    height: 40px;
    padding: 8px 26px;
    font-size: 1.6rem;
  }
  .upload_dropzone_button p {
    margin-left: 18px;
  }
  .upload_dropzone_desc {
    font-size: 1.2rem;
  }
  .btn {
    width: 320px;
    height: 60px;
    font-size: 1.8rem;
  }
  .btn_primary img {
    margin-right: 29px;
  }
  .progress_bar {
    width: 300px;
  }
  .preview_grid {
    padding: 30px 45px;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px 35px;
  }
  .add_image_btn {
    height: 50px;
    font-size: 1.6rem;
    padding: 0 76px;
  }
  .add_image_btn p {
    margin-left: 28px;
  }
}


@media (max-width: 374px) {
  /* ========= complete page ========= */
  .complete_message p {
    font-size: clamp(1rem, 4vw, 1.6rem);
  }
  .complete_text {
    font-size: clamp(1.2rem, 6vw, 2.4rem);
  }
  
}