@charset "utf-8";

/*
Class Selector は競合を回避するため `c` 接頭辞等を付けて、
なるべく小さいものから書く。
*/

/* Native Elements */
a {
  color: #4472C4;
}

:disabled {
  opacity: .2;
  cursor: default;
}

button,
select {
  cursor: pointer;
}

/* input を持つラベル(選択肢・予約枠)と for 指定のラベル(女の子の選択)も押せるものとして扱う */
/* × の予約枠は input を持たないので対象外 */
label:is([for], :has(input:not(:disabled))) {
  cursor: pointer;
}

/* 文字入力欄はラベル配下でもテキストカーソルを維持する */
input:is([type="text"], [type="number"], [type="tel"], [type="email"]),
textarea {
  cursor: auto;
}

[hidden] {
  display: none !important;
}

/* Variables */
:root {
  --c-width-max: 76.8rem;
  --c-width-button: 24rem;

  --c-height-header: 6rem;

  @media (min-width: 1024px) {
    --c-height-header: 8rem;
  }

  --c-height-footer: 6rem;

  @media (min-width: 1024px) {
    --c-height-footer: 8rem;
  }

  --c-padding: 1rem;
}


/* Animations */
@keyframes c-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.c-fade-in {
  opacity: 0;

  &:not([hidden]) {
    animation: .5s linear 0s 1 normal both running c-fade-in;
  }
}


/* Form Controls */
.c-text-input {
  display: flex;
  font-size: 1.6rem;

  textarea,
  input {
    flex: auto;
    width: 100%;
    appearance: none;
    background-color: #fff;
    border: .1rem solid #ccc;
    border-radius: .5rem;
    font-size: inherit;
    padding: .5rem;
  }
}


.c-select {
  --padding: .5rem;
  --border: .1rem solid #ccc;
  --border-radius: .5rem;
  display: flex;
  align-items: center;
  position: relative;
  font-size: 1.6rem;

  &::after {
    position: absolute;
    right: var(--padding);
    top: auto;
    content: "▼";
    color: #ccc;
    font-size: .8em;
  }

  select {
    display: flex;
    align-items: center;
    height: 100%;
    flex: auto;
    appearance: none;
    background-color: #fff;
    border: var(--border);
    border-radius: var(--border-radius);
    font-size: inherit;
    padding: var(--padding);
    padding-right: 2rem;
    color: inherit;
  }
}


.c-selects {
  display: flex;
  gap: .5rem;
  align-items: center;
}


.c-checkbox {
  display: flex;
  align-items: center;
  justify-content: center;

  &::after {
    width: 1.4rem;
    aspect-ratio: 1;
    border: .1rem solid #ccc;
    background-color: #fff;
    content: "";
  }

  &:has(input[type="radio"])::after {
    border-radius: 50%;
  }

  &:has(input:checked)::after {
    background-color: #5b9bd5;
  }

  input {
    display: none;
  }
}


.c-checkbox-set {
  --space: 1rem;
  display: flex;
  align-items: center;
  padding: var(--space);
  gap: var(--space);
  border-top: .1rem solid var(--border-color);
  background-color: #fff;

  &:first-child {
    border-top: none;
  }
}

.c-checkbox-set.is-highlighted {
  background-color: #fff8e5;
}

.c-checkbox-set__checkbox {
  flex: none;
}

.c-checkbox-set__content {
  font-size: 1.2rem;

  .deco {
    font-style: normal;
    color: #ED7D31;
  }

  .deco-2 {
    font-style: normal;
    font-weight: bold;
    font-size: 1.1em;
  }

  s {}

  strong {
    font-weight: bold;
    font-size: 1.2em;
  }

  .deco-3 {
    text-decoration: none;
  }
}


.c-checkbox-set-2 {
  display: flex;
  align-items: center;
  gap: .5rem;

  &:has(:disabled) {
    opacity: .5;
  }
}

.c-checkbox-set-2__checkbox {}

.c-checkbox-set-2__text {}


.c-checkbox-sets {
  --border-color: #ccc;
  display: flex;
  flex-direction: column;
  border: .1rem solid var(--border-color);
}


.c-checkbox-sets-2 {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}


.c-form-control-set {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.c-form-control-set__name {
  font-weight: bold;

  .text-gray {
    font-weight: normal;
    opacity: .5;
  }

  .text-red {
    font-weight: normal;
    color: #c30c3c;
  }
}

.c-form-control-set__form-controls {}

.c-form-control-set__value {
  font-size: 1.6rem;
}

.c-form-control-set__text {
  font-size: 1.2rem;

  .text-lg {
    font-size: 1.4rem;
  }

  .text-red {
    color: #c30c3c;
  }
}


/* Buttons */
.c-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5em;
  border-radius: .5rem;
  font-size: 1.6rem;
  font-weight: bold;
  appearance: none;
  border: none;
  background-color: #4472C4;
  color: #fff !important;
  text-decoration: none;
}

.c-button--gray {
  background-color: #959595;
}


.c-button-2 {
  display: flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  border: none;
  background: none;
  text-decoration: underline;
  color: #4472c4;
}


/* Headings */
.c-heading {
  margin: 0;
  font-weight: bold;
  font-size: 2rem;
  padding: .5rem 1rem;
  background-color: #c30c3c;
  color: #fff;
}


.c-heading-2 {
  margin: 0;
  font-weight: bold;
  color: #5b9bd5;
  font-size: 1.8rem;
}

.c-heading-2--sm {
  font-size: 1.6rem;
}


.c-heading-set {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
}

.c-heading-set__text {
  font-size: 1.2rem;

  .text-red {
    color: #c30c3c;
  }
}


/* Messages */
.c-message {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  border: 1px solid #ccc;
  padding: 1rem;
  border-radius: .5rem;
}

.c-message__text {
  margin: 0;
}

.c-message__text--success {
  color: #5b9bd5;
}

.c-message__text--error {
  color: #c30c3c;
}


/* Navbars */
.c-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.c-navbar__step {
  display: flex;
  gap: .5rem;
  align-items: center;
}

.c-navbar__step-icon {
  width: 3.2rem;

  img {
    width: 100%;
    vertical-align: middle;
  }
}

.c-navbar__step-text {
  font-weight: bold;
}

.c-navbar__total {
  color: #5b9bd5;

  .deco {
    font-style: normal;
    color: initial;
  }

  strong {
    font-weight: bold;
    font-size: 1.5em;
  }
}


.c-navbar-2 {
  display: flex;
  justify-content: center;
  align-items: center;
}

.c-navbar-2__logo-set {
  --color: #c90037;
  border-top: .2rem solid var(--color);
  border-bottom: .2rem solid var(--color);
  padding: 1rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: .5rem;
  font-size: 1.6rem;
}

.c-navbar-2__logo-set-logo {
  height: 1.2em;

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

.c-navbar-2__logo-set-text {
  font-size: 1rem;
  font-weight: bold;
  color: var(--color);
}


/* Shop Names */
.c-shop-name {
  padding: var(--padding);
  text-align: center;
}


/* Modals */
.c-modal {
  &:not(.is-open) {
    display: none;
  }
}

.c-modal__overlay {
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, .5);
}

.c-modal__container {
  display: grid;
  grid-template-columns: minmax(0, var(--c-width-max));
  justify-content: center;
  align-content: center;
  width: 100%;
  height: 100%;
  padding: var(--c-padding);
}

.c-modal__content {}


/* Sections */
.c-section {
  display: grid;
  grid-template-columns: minmax(0, var(--c-width-max));
  justify-content: center;
  gap: 1rem;
}

.c-section__heading {
  padding: 0 var(--c-padding);
}

.c-section__body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 0 var(--c-padding);
}

.c-section__body-text {
  margin: 0;
  font-size: 1.1rem;
}

.c-section__body-buttons {
  display: grid;
  grid-template-columns: var(--c-width-button);
  justify-content: center;
}


.c-section-2 {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  background-color: #eee;
  padding: 1.5rem 1rem;
}

.c-section-2--bg-none {
  background: none;
  padding: 0;
}

.c-section-2__heading {
  font-size: 1.6rem;
}

.c-section-2__heading-2 {
  p {
    margin: auto;
  }
}

.c-section-2__content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.c-section-2__content-rows {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.c-section-2__text {}


.c-scrollable-section {
  --bg-size: 2rem;
  position: relative;
  width: 100%;

  &::before,
  &::after {
    --gradient-direction: '';
    display: block;
    content: '';
    position: absolute;
    top: 0;
    width: var(--bg-size);
    height: 100%;
    background: linear-gradient(to var(--gradient-direction), transparent, #fff);
  }

  &::before {
    --gradient-direction: left;
    left: 0;
  }

  &::after {
    --gradient-direction: right;
    right: 0;
  }
}

.c-scrollable-section__body-container {
  width: 100%;
  overflow: auto;
  padding-inline: var(--bg-size);
}

.c-scrollable-section__body {
  width: max-content;
}


/* Scrollable Texts */
.c-scrollable-text {
  overflow: auto;
  font-size: 1.4rem;
  padding: 1rem;
  height: 10em;
}

.c-scrollable-text__inner {
  height: max-content;
}


/* Apps */
.c-app {
  --padding: 1rem;
  --gap: 2rem;
  position: relative;
  z-index: 1;
  padding-bottom: calc(var(--c-height-footer) + var(--gap));
  background-color: #fff;
}

.c-app__header-container {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, var(--c-width-max));
  justify-content: center;
}

.c-app__header {
  padding: 0 var(--padding);
  height: var(--c-height-header);
}

.c-app__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  padding: var(--c-padding) 0;
}

.c-app__content-message-container {
  z-index: 2;
  position: sticky;
  top: 0;
  padding: var(--c-padding);
}

.c-app__content-message {
  background-color: #fff;
}

.c-app__footer-container {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, var(--c-width-max));
  justify-content: center;
  background-color: #eaf2fa;
}

.c-app__footer {
  padding: 0 var(--padding);
  height: var(--c-height-footer);
}


/* Roots */
.c-root * {
  box-sizing: border-box;
}

.c-root {
  z-index: 1;
  position: relative;
  min-height: 100svh;
  scroll-behavior: smooth;
  font-size: 10px;
}

.c-root__body {
  z-index: 1;
  position: relative;
  color: #333;
  font-family: "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-size: 1.3rem;
  line-height: 1.3;
}

.c-root__app {
  z-index: 1;
  position: relative;
}

.c-root__modal {
  z-index: 2;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}


#http-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: #4290b4d2;
  transition: width 0.2s ease, opacity 0.4s ease;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
}