/*****************************************************************************
CSS only for toiawase
*****************************************************************************/

/* Set
---------------------------------------- */
.Content {
  * {
    box-sizing: border-box;
  }
  picture {
    display: block;
  }
  img {
    max-width: 100%;
    height: auto;
  }
  a {
    &:link    { color: currentColor; text-decoration: none; }
    &:visited { color: currentColor; text-decoration: none; }
    &:hover   { color: currentColor; text-decoration: none; }
    &:focus   { color: currentColor; text-decoration: none; }
    &:active  { color: currentColor; text-decoration: none; }
  }
  button {
    &:hover   { opacity: .7; }
    &:focus   { opacity: .7; }
    &:active  { opacity: .7; }
  }
  dialog {
    width: unset;
    max-width: unset;
    padding: unset;
    border: unset;
    overflow: unset;
    background-color: unset;
    color: unset;
  }
}

/* PageTitle
---------------------------------------- */
.PageTitle {
	background-color: #f0ede8;
  font-size: max(20px, 1.5625vw);
  line-height: 1.7;
}
.PageTitle__inner {
	width: min(max(1280px, 71.875vw), 100%);
	margin-inline: auto;
	padding: .73333em 50px;
}
@media screen and (max-width: 640px) {
  .PageTitle__inner {
    padding: 16px 15px;
  }
}

/* Container
---------------------------------------- */
.Container {
  max-width: 976px;
  margin-inline: auto;
}
@media screen and (max-width: 976px) {
  .Container {
    margin-inline: 15px;
  }
}

/* Title
---------------------------------------- */
.SecTitle {
  margin-bottom: 1.2em;
  font-size: max(24px, 2.08333vw);
  letter-spacing: 1px;
  text-align: center;
}

/* Text
---------------------------------------- */
.LeadText {
  font-size: max(16px, .9375vw);
  line-height: 1.6;
  text-align: center;
}

/* Link
---------------------------------------- */
.Btn {
  display: inline-block;
  position: relative;
  width: 412px;
  max-width: 100%;
  padding: 19px 37px;
  border: none;
  border-radius: 100vmax;
  background-color: #21366e;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}
@media screen and (max-width: 640px) {
  .Btn {
    font-size: 14px;
  }
}
.Btn:is(:hover, :focus, :active) {
  opacity: .7;
}
.Btn::before,
.Btn::after {
  content: '';
  display: inline-block;
  position: absolute;
  top: 50%;
  transform: rotate(45deg);
  margin-top: -4px;
  width: .5em;
  height: .5em;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
}
.Btn::before {
  right: 1.6875em;
}
.Btn::after {
  right: 1.25em;
}
.Btn span {
  display: inline-block;
  color: #fff;
}

.TextLink {
  display: inline-block;
  font-size: 16px;
  letter-spacing: 1px;
}
@media screen and (max-width: 640px) {
  .TextLink {
    font-size: 14px;
  }
}
.TextLink:is(:hover, :focus, :active) span {
  text-decoration: underline;
}
.TextLink span {
  display: inline-block;
  position: relative;
  padding-right: 1.375em;
  color: #1a1a1a;
}
.TextLink span::after {
  content: '';
  display: inline-block;
	position: absolute;
	top: 50%;
	right: .1875em;
  width: .375em;
  height: .375em;
  margin-top: -.1875em;
	border-top: 1px solid currentColor;
	border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

/* Consult
---------------------------------------- */
.Consult {
  padding-block: 80px 60px;
}
@media screen and (max-width: 640px) {
  .Consult {
    padding-block: 48px 40px;
  }
}
.Consult__wrapper {
  margin-top: 50px;
}
.Consult__link {
  display: flex;
  justify-content: space-evenly;
  margin-top: 50px;
}
@media screen and (max-width: 640px) {
  .Consult__link {
    flex-direction: column;
    align-items: center;
    row-gap: 10px;
  }
}

/* ----- Flow ----- */
.Flow {
  border-radius: 10px;
  box-shadow: 0 0 25px rgb(0 0 0 / .15);
  background-color: #fff;
}
.Flow + .Flow {
  margin-top: 10px;
}
.Flow__title {
  background-repeat: no-repeat;
  background-position: 50px center;
  font-size: 20px;
  font-weight: 700;
}
@media screen and (max-width: 640px) {
  .Flow__title {
    background-position: 20px center;
    background-size: 50px;
    font-size: 16px;
  }
}
.Flow--web > .Flow__title {
  background-image: url(/phr/toiawase/img/icon_web.png);
}
.Flow--shop > .Flow__title {
  background-image: url(/phr/toiawase/img/icon_shop.png);
}
.Flow--tel > .Flow__title {
  background-image: url(/phr/toiawase/img/icon_tel.png);
}

.Flow__wrapper {
  width: 78.10975%;
  margin-inline: auto;
}
@media screen and (max-width: 640px) {
  .Flow__wrapper {
    width: 100%;
  }
}
.Flow__wrapper > *:first-child {
  margin-top: 0;
}
.Flow__text {
  font-size: 16px;
  margin-top: 40px;
}
@media screen and (max-width: 640px) {
  .Flow__text {
    font-size: 14px;
  }
}
.Flow__text > p {
  margin-top: 1em;
}
.Flow__text > *:first-child {
  margin-top: 0;
}
.Flow__link {
  margin-top: 40px;
  text-align: center;
}
.Flow__link--col {
  display: flex;
  justify-content: space-between;
}
@media screen and (max-width: 640px) {
  .Flow__link--col {
    flex-direction: column;
    align-items: center;
    row-gap: 10px;
  }
}

/* ----- Step ----- */
.Step {
  display: flex;
  flex-direction: column;
  row-gap: 60px;
}
.Step__item {
  display: flex;
  align-items: center;
  column-gap: 14px;
  position: relative;
  font-size: 16px;
  font-weight: 700;
}
@media screen and (max-width: 640px) {
  .Step__item {
    font-size: 14px;
  }
}
.Step__item:not(:last-child)::after {
  content: '';
  display: inline-block;
  position: absolute;
  top: 50px;
  left: 23px;
  width: 1px;
  height: 30px;
  background-color: #21366e;
}
.Step__number {
  color: #21366e;
  font-size: 14px;
}
.Step__number span {
  margin-left: 9px;
  font-family: "Oswald", sans-serif;
  font-size: 24px;
  vertical-align: sub;
}
.Step__text {
  flex: 1;
}

/* ----- Accordion ----- */
.Accordion::details-content {
  content-visibility: unset;
  display: block grid;
  transition: grid-template-rows var(--animation-duration);
}
.Accordion:not([open])::details-content {
  grid-template-rows: 0fr;
}
.Accordion[open]::details-content {
  grid-template-rows: 1fr;
}
.Accordion__head {
  position: relative;
  padding: 40px 84px 40px 160px;
  list-style-type: none;
  transition: var(--animation-duration);
  cursor: pointer;
}
@media screen and (max-width: 640px) {
  .Accordion__head {
    padding: 25px 54px 25px 80px;
  }
}
.Accordion__head:is(:hover, :focus, :active) {
  opacity: .7;
}
.Accordion__head::-webkit-details-marker {
  display: none;
}
.Accordion__head::before,
.Accordion__head::after {
  content: '';
  display: inline-block;
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
  background-color: #000;
}
.Accordion__head::before {
  right: calc((84px - 1.2em) / 2);
  width: 1.2em;
  height: 2px;
}
@media screen and (max-width: 640px) {
  .Accordion__head::before {
    right: calc((54px - 1.2em) / 2);
  }
}
.Accordion__head::after {
  right: calc((84px - 2px) / 2);
  width: 2px;
  height: 1.2em;
}
@media screen and (max-width: 640px) {
  .Accordion__head::after {
    right: calc((54px - 2px) / 2);
  }
}
.Accordion[open] .Accordion__head::after {
  transform: rotate(90deg);
}
.Accordion__panel {
  overflow: hidden;
}
.Accordion__body {
  padding: 45px 5.19125683%;
  border-top: 2px solid #e8ebf0;
}
@media screen and (max-width: 640px) {
  .Accordion__body {
    padding: 35px 20px;
  }
}

/* ----- Modal ----- */
body:has(dialog[open]) {
  overflow: hidden;
}
.Modal {
  padding: 0;
  opacity: 0;
  transition:
    opacity var(--animation-duration),
    display var(--animation-duration) allow-discrete,
    overlay var(--animation-duration) allow-discrete;
}
.Modal[open] {
  opacity: 1;
  @starting-style {
    opacity: 0;
  }
}
.Modal::backdrop {
  background-color: rgb(0 0 0 / .8);
  opacity: 0;
  transition: opacity var(--animation-duration);
}
.Modal[open]::backdrop {
  opacity: 1;
  @starting-style {
    opacity: 0;
  }
}
.Modal__inner {
  display: flex;
  align-items: center;
  justify-content: center;
}
.Modal__content {
  display: grid;
  place-content: center;
  position: relative;
  width: 976px;
  max-width: 100%;
  max-height: 90vh;
  margin: 40px 20px;
  padding: 130px 90px 100px;
  overflow-y: auto;
  background-color: #fff;
  font-size: 16px;
}
@media screen and (max-width: 640px) {
  .Modal__content {
    width: 95vw;
    padding: 75px 15px 60px;
    font-size: 14px;
  }
}
.Modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 45px;
  left: 45px;
  width: 45px;
  height: 45px;
  border: none;
  background-color: transparent;
}
@media screen and (max-width: 640px) {
  .Modal__close {
    top: 20px;
    left: 20px;
    width: 35px;
    height: 35px;
  }
}
.Modal__close::before,
.Modal__close::after {
  content: '';
  display: inline-block;
  position: absolute;
  width: 35px;
  height: 2px;
  background-color: #666;
}
@media screen and (max-width: 640px) {
  .Modal__close::before,
  .Modal__close::after {
    width: 25px;
  }
}
.Modal__close::before {
  transform: rotate(-45deg) translateY(-50%);
}
.Modal__close::after {
  transform: rotate(45deg) translateY(-50%);
}
.Modal__title {
  margin-bottom: 1.875em;
  font-size: 32px;
  text-align: center;
}
@media screen and (max-width: 640px) {
  .Modal__title {
    font-size: 18px;
  }
}
.Modal__subTitle {
  margin-bottom: 1.45833em;
  font-size: 24px;
  font-weight: 700;
}
@media screen and (max-width: 640px) {
  .Modal__subTitle {
    font-size: 16px;
  }
}
.Modal__btn {
  margin-top: 70px;
  text-align: center;
}
@media screen and (max-width: 640px) {
  .Modal__btn {
    margin-top: 40px;
  }
}
.Modal__btn button {
  display: inline-block;
  width: 200px;
  max-width: 100%;
  padding: .6875em 1em;
  border: 1px solid currentColor;
  background-color: transparent;
  color: #21366e;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
}
@media screen and (max-width: 640px) {
  .Modal__btn button {
    width: 120px;
    font-size: 14px;
  }
}
.Modal__btn button:is(:hover, :focus, :active) {
  opacity: .8;
}

/* Contact
---------------------------------------- */
.Contact {
  padding-block: 60px 150px;
}
@media screen and (max-width: 640px) {
  .Contact {
    padding-block: 40px 100px;
    text-align: center;
  }
}
.Contact__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 40px;
}
@media screen and (max-width: 640px) {
  .Contact__list {
    display: inline-block;
  }
}
@media screen and (max-width: 640px) {
  .Contact__list li {
    text-align: left;
  }
  .Contact__list li:nth-child(n+2) {
    margin-top: 15px;
  }
}
