/* reset */
html {
  overflow-x: hidden;
  touch-action: manipulation;
}

* {
  box-sizing: border-box;
  margin: 0;
  outline: 0;
  border: 0;
  padding: 0;
  font-size: 100%;
  list-style: none;
  text-decoration: none;
}

html,
body,
div,
span,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
abbr,
address,
cite,
del,
dfn,
em,
img,
ins,
kbd,
q,
samp,
small,
strong,
sub,
sup,
var,
b,
i,
dl,
dt,
dd,
ul,
ol,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section,
summary,
time,
mark,
audio,
video,
a {
  letter-spacing: 0.05rem;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
li,
small {
  line-height: 1.5;
}

pre {
  margin-top: 1rem;
}

body {
  background: var(--color-gray-50);
  overflow-x: hidden;
  font-family: "Noto Sans JP", sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

a:hover {
  opacity: 0.7;
  transition-duration: 0.2s;
}

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

input,
button,
select {
  font-family: "Noto Sans JP";
  border: none;
}

:root {
  --color-main: #f7991e;
  --color-sub: #ff6b37;
  --color-seraku-blue: #1b1d7e;
  --gradient-main: #f7991e 0%, #ff6b37 100%;
  --color-gray-50: #f5f5f5;
  --color-gray-100: #dbdbdb;
  --color-gray-200: #c2c2c2;
  --color-gray-300: #aaaaaa;
  --color-gray-400: #919191;
  --color-gray-500: #787878;
  --color-gray-600: #5f5f5f;
  --color-gray-700: #474747;
  --color-gray-800: #2e2e2e;
  --color-gray-900: #151515;
  --color-black: #2a2a2a;
  --color-white: #fff;
  --contents-width: 960px;
  --section-gap-y: 2.5rem;
  --contents-gap: 1.5rem;
  --shadow-md: 0 4px 16px rgb(40 40 40 / 0.1);
}

.common-circle {
  background-color: white;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.common-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.c-blank-link {
  display: flex;
  align-items: center;
  color: #888888;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.c-blank-link::after {
  margin-left: 0.5rem;
  content: url(../images/link-open.svg);
}

.c-inline-block {
  display: inline-block;
}

.c-link-button {
  display: inline-block;
  transition: opacity 0.2s ease-out;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  border-radius: 0.5rem;
  background: var(--color-sub);
  padding: 1em 2em;
  width: fit-content;
  color: white;
  font-weight: 700;
}

.c-link-button.c-link-button--lg {
  font-size: 1.125em;
}
.c-link-button:hover {
  opacity: 0.6;
}

.c-link-button__form {
  background: white;
  color: var(--color-sub);
}

main {
  flex: 1;
}

.l-section {
  display: grid;
  gap: var(--section-gap-y);
  margin: 0 auto;
  padding: min(8vw, 3.75rem) max(5%, (100vw - 60rem) / 2);
}
.l-section:first-child {
  padding-top: calc(var(--section-gap-y) * 2);
}

.l-section-title {
  color: var(--color-black);
  font-size: clamp(1.75rem, 7vw, 2rem);
  line-height: 1.25;
  text-align: center;
}
.l-section-title p {
  color: var(--color-sub);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
}
.l-section-title + p {
  margin: 0 auto;
  width: fit-content;
}
.l-section-title.l-section-title--white {
  color: var(--color-white);
}
.l-section-title.l-section-title--white p {
  color: var(--color-white);
}

dialog {
  margin: 0;
  padding: 0;
  max-width: none;
  max-height: none;
}

.header {
  display: grid;
  gap: 1.5rem;
  padding: 4rem max(5%, (100vw - var(--contents-width)) / 2);
  color: var(--color-gray-50);
  background-image: url("../images/bp-freelance_bg.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.header__logo {
  width: 177px;
  height: 55px;
}

.header__texts {
  display: grid;
  gap: 1rem;
}
.header__title {
  font-size: clamp(2rem, 10vw, 2.75rem);
  color: var(--color-black);
}

.features {
  display: grid;
  gap: 2.5rem;
  padding-top: 5rem;
}
.features__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 2.5rem;
}

.features-item {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 2;
  gap: 1rem;
  box-shadow: var(--shadow-md);
  border-radius: 0.5rem;
  background-color: var(--color-white);
  padding: 1.5rem;
}

.features-item p {
  text-align: center;
  text-wrap: balance;
  display: block;
  flex-direction: column;
  justify-content: center;
}
.features-item p strong {
  color: var(--color-sub);
}
.features-item img {
  width: 100%;
}

.features-item-text__container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-sec {
  display: grid;
  gap: 2.5rem;
  padding: 5rem 0;
  color: var(--color-white);
  width: 100%;
}

.form-sec--container {
  background: var(--color-main);
  border-radius: 20px;
  padding: 60px 0;
}

.form-sec__inner {
  display: grid;
  gap: 0.5rem;
  margin: 0 auto;
  width: 90%;
  max-width: 47.5rem;
}

.form-sec__note {
  font-size: 0.75rem;
  text-align: right;
}

.form {
  display: grid;
  row-gap: 1.25rem;
}

.form__names {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.form legend {
  font-weight: 700;
}

.form label {
  display: grid;
  gap: 0.25rem;
  color: var(--color-white);
}

.form .form__consent {
  display: flex;
}

.form label > span:not(.form__sub-label) {
  display: inline-block;
  font-weight: 700;
}

.form label .form__sub-label {
  font-size: 0.875em;
}

.form__text-box,
.form__select-box {
  border: none;
  padding: 0.75em;
  width: 100%;
  border-radius: 20px;
}

.form__text-box::-moz-placeholder,
.form__select-box::-moz-placeholder,
.form__text-box::placeholder,
.form__select-box::placeholder {
  color: var(--color-gray-300);
}

.form__note {
  font-size: 0.75rem;
}

.form__submit-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.form__policy a {
  display: inline-block;
  margin-right: 0.5em;
  color: var(--color-white);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.form__input-wrapper {
  position: relative;
}

.form__error-message {
  display: inline-block;
  background-color: #da3c36;
  padding: 0.1em 0.5em;
  color: var(--color-white);
  font-size: 0.75em;
}

.company {
  position: relative;
  border-radius: 2rem 2rem 0 0;
  background-color: var(--color-gray-50);
}

.company::before {
  position: absolute;
  z-index: -1;
  inset: 0 0 auto 0;
  background-color: var(--color-white);
  height: 3rem;
  content: "";
}

.company-table {
  --border: 1px solid #aaaaaa;
}

.company-table tr {
  display: flex;
  border-top: var(--border);
  padding: 2rem;
}

.company-table tr:last-child {
  border-bottom: var(--border);
}

.company-table th {
  width: 30%;
  text-align: left;
}

.company-table td {
  width: 70%;
}

footer {
  background: var(--color-sub);
  padding: 2rem;
}

footer p {
  color: #fff;
  text-align: center;
}

.thanks-header {
  display: grid;
  gap: 2rem;
  background: linear-gradient(-60deg, var(--gradient-main));
  padding: 2.5rem max(5%, (100vw - 1160px) / 2) 4.5rem;
  color: var(--color-white);
}

.thanks-header__logo {
  width: fit-content;
  height: 2.5rem;
}

.thanks-header__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.thanks-header__texts {
  display: grid;
  gap: 1rem;
  text-align: center;
}

.thanks-header__title {
  font-size: clamp(2rem, 8vw, 2.75rem);
}

.features2 {
  width: 100%;
  padding: 0;
}

.l-section-text {
  text-align: center;
}

.features2-container {
  background-color: white;
  padding: min(8vw, 3.75rem) max(5%, (100vw - 60rem) / 2);
}

.features2-container .l-section-title,
.l-section-title2 p,
.features2-card-sub,
.features2-card-sub100 {
  color: var(--color-black);
}

.features2-card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding-top: 30px;
}

.features2-card50,
.features2-card100 {
  background-color: var(--color-gray-50);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  padding: 10px;
  box-sizing: border-box;
}

.features2-card50 {
  flex: 1 1 calc(50% - 15px);
}

.features2-card100 {
  flex: 1 1 100%;
}

.features2-card-title,
.features2-card-sub,
.features2-card-sub100 {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  font-size: 24px;
  font-weight: bold;
  margin: 0;
  height: 60px;
  text-align: center;
}

.small {
  font-size: 8px;
}

.big {
  font-weight: bold;
  font-size: 32px;
  color: var(--color-sub);
}

.features2-card50 ul {
  list-style: none;
  padding: 0 0 20px;
  font-weight: bold;
}

.features2-card50 li {
  position: relative;
  padding-left: 20px;
}

.features2-card50 li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
}

.features2-card50 li:nth-child(1)::before {
  background-color: var(--color-sub);
}

.features2-card50 li:nth-child(2)::before {
  background-color: var(--color-main);
}

.features2-card50 li:nth-child(3)::before {
  background-color: #ffdb8a;
}

.features2-card-img img,
.features2-card-img100 {
  width: 100%;
  height: auto;
}
/* 共通スタイルの統合 */
.circle-flex {
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.features2-card-img img {
  max-width: 180px;
  min-width: 130px;
  max-height: 180px;
  min-height: 130px;
}

.features2-card-img100 {
  max-width: 350px;
  max-height: 138.4px;
  min-height: 103.8px;
}

.features2-card-content {
  display: flex;
  width: 100%;
  gap: 15px;
  flex: 1 1 60%;
}

.features2-card-img {
  flex: 0 0 calc(40% - 7.5px);
}

.features2-card-details {
  flex: 0 0 calc(60% - 7.5px);
}

.header__message {
  /* background-color: white; */
  color: var(--color-black);
  display: flex;
  /* justify-content: center; */
  align-items: center;
  max-width: 600px;
  padding: 0 10px;
}

.flow {
  padding: min(8vw, 3.75rem) max(5%, (100vw - 60rem) / 2);
}

.flow__list {
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 30px;
}

.flow-item {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  flex: 1;
  max-width: calc((100% - 90px) / 4);
  gap: 10px;
  font-size: 20px;
}

.flow-item__circle,
.flow-item__circle--strong {
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.flow-item__circle {
  background-color: white;
  width: 100%;
  height: 100%;
}

.flow-item__circle--strong {
  background-color: var(--color-main);
  width: 22%;
  height: 22%;
  margin: 0 auto;
}

.flow-item__nov {
  font-size: 1rem;
  color: var(--color-sub);
  font-weight: bold;
  white-space: nowrap;
}

.flow-item__nov--strong {
  color: white;
}

.flow-item__text {
  font-size: 1.1rem;
  font-weight: bold;
  text-align: center;
  display: block;
  height: 80px;
  display: flex;
  align-items: center;
}

.flow-item__intro {
  font-size: 1rem;
}

.flow-item__intro p {
  text-align: justify;
}

.flow-item__img {
  width: 100%;
  max-width: 760px;
  height: auto;
}

.flow-item__intro--strong {
  text-align: center;
}

.ub {
  text-decoration: underline;
  color: var(--color-sub);
}

.ub--white {
  color: white;
}

.faq {
  gap: 20px;
}

.question,
.answer {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  transition: background-color 0.3s;
  cursor: pointer;
}

.question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.answer {
  display: none;
  margin-top: 20px;
  gap: 20px;
}

.answer-3container {
  flex-direction: column;
}

.answer-3 {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.number {
  width: 50px;
  text-align: center;
  font-size: 20px;
  font-weight: bold;
}

.question-number {
  color: var(--color-sub);
}

.answer-number {
  color: var(--color-gray-500);
}

.question-text {
  width: calc(100% - 100px);
  font-weight: bold;
}

.answer-text {
  width: calc(100% - 50px);
}

.answer-img {
  width: 100%;
  margin-top: 20px;
}

.answer-img img {
  width: 100%;
  height: auto;
}

.icon {
  font-size: 20px;
  transition: transform 0.3s ease;
  width: 50px;
  text-align: center;
  font-weight: bold;
}

.open .icon {
  transform: rotate(45deg);
}

.note {
  grid-column: span 1;
  margin-top: -20px;
  font-size: 12px;
}

.brpc {
  display: none;
}

/* レスポンシブデザインのためのメディアクエリ */
@media (max-width: 930px) {
  .br930 {
    display: none;
  }
  .header {
    padding-bottom: 10px;
  }

  .features2-card-content {
    flex-direction: column;
    gap: 10px;
  }

  .features2-card-img {
    text-align: center;
  }

  .features2-card100 {
    align-items: center;
  }

  .features2-card50,
  .features2-card100 {
    flex: 1 1 100%;
  }

  .features2-card100 {
    justify-content: center;
  }

  .header__message {
    max-width: 100%;
    padding: 0 5px;
  }

  .thanks-header {
    padding: 2rem 10px;
  }

  .faq {
    gap: 15px;
  }

  .question-text,
  .answer-text {
    width: 100%;
  }

  .note {
    margin-top: -10px;
  }
}

@media (max-width: 890px) {
  .br890 {
    display: none;
  }

  body {
    font-size: calc(100% - 2px);
  }

  .flow-item__nov,
  .flow-item__text,
  .flow-item__intro {
    font-size: calc(1em - 4px); /* 1emから2px引く */
  }

  .l-section-text {
    order: 2;
  }

  .features__list {
    display: grid;
    grid-template-columns: 1fr; /* 初めは1列 */
    gap: 2.5rem;
    grid-template-columns: repeat(2, 1fr);
    order: 1;
  }

  .features__list > :nth-child(1) {
    grid-column: span 2;
    justify-self: anchor-center;
    width: 50%; /* 50%の幅 */
  }

  .features__list > :nth-child(2),
  .features__list > :nth-child(3) {
    grid-column: span 1; /* 2番目と3番目の要素を同じ列に配置 */
    display: inline-block; /* 横並びにするため */
  }

  .features-item-text__container {
    height: 70px;
  }

  .flow__list {
    gap: 10px;
  }

  .l-section-text {
    text-align: left;
  }

  .flow-item__intro {
    font-size: 16px;
  }
}

@media (max-width: 600px) {
  .br600 {
    display: block;
    background-position: right;
  }

  .header {
    background-position: calc(100% - -339px) -93px;
  }

  .header__title {
    font-size: clamp(1.5rem, 8vw, 2.3rem);
    color: var(--color-black);
  }

  .features__list {
    grid-template-columns: repeat(1, 1fr);
  }

  .features__list > :nth-child(1),
  .features__list > :nth-child(2),
  .features__list > :nth-child(3) {
    justify-self: anchor-center;
    grid-column: span 1;
    width: 100%;
    display: flex;
  }

  .features-item {
    align-items: center;
  }

  .features-item-text__container {
    text-align: center;
    text-wrap: balance;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 50%;
    align-items: center;
  }

  .features-item img {
    width: 45%; /* 必要に応じて画像の最大幅を設定 */
  }

  .features2-card-img img {
    max-width: none;
    min-width: 100px;
    max-height: none;
    min-height: 100px;
  }

  .flow-item__text {
    height: auto;
  }

  .flow__list {
    flex-direction: column;
  }

  .flow-item {
    max-width: 100%;
    width: 70%;
    margin: 0 auto;
  }

  .flow-item__circle {
    width: 30%;
  }

  .flow-item__nov {
    margin-top: 10px;
  }

  /* thanks */
  .flow-item--thanks {
    flex-direction: row;
  }

  .flow-item__text--thanks {
    width: 70%;
  }
}

@media (max-width: 480px) {
  .big {
    font-size: 18px;
  }

  .header__title {
    font-size: clamp(1.5rem, 6vw, 1.8rem);
    color: var(--color-black);
  }

  .c-link-button {
    width: auto;
    text-align: center;
  }

  .icon {
    font-size: 18px;
    width: 40px;
  }

  .number {
    width: 40px;
    font-size: 18px;
  }

  .features2-card-title,
  .features2-card-sub,
  .features2-card-sub100 {
    font-size: 18px;
  }

  .flow-item__nov {
    font-size: 14px;
  }

  .flow-item__text {
    font-size: 14px;
  }

  .thanks-header__title {
    font-size: 1.5rem;
  }

  .flow-item__circle {
    width: 45%;
  }
}

/* thanks */
.flow-item__circle--thanks {
  background-color: #f7991e;
}

.flow__heading-next--thanks {
  text-align: center;
}
