:root{
    --font-family-shippori: 'Noto Serif JP', serif;
    --font-family-operetta: "operetta-52", serif;
    --header-footer-height: 4rem;
    --accent-color: #cd8858;
    --text-color: #412e27;
    --base-color:#efe8e4;
    --red-color:#dc143c;
    --bs-border-color: #b6b6b6;
    --text-light:#F4F5F7;
}

html {
  overscroll-behavior-x: none;
}

.text-light{
    color: var(--text-light);
}

.bg-light{
    background-color: var(--text-light);
}

.text-red{
    color: var(--red-color) !important;
}

body {
    font-family: var(--font-family-shippori);
    color: var(--text-color);
    overflow-x: hidden;
}

.fadein {
    opacity: 0;
    visibility: hidden;
    transition: all 1s;
    transform: translateY(150px);
}

.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--text-light);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    text-align: center;
}
.message-back {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    text-align: center;
}

#loading img{
    width: 200px;
    margin: 0 auto;
}
#content {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.bg-beige {
    background-color: var(--accent-color);
}

.bg-offwhite {
    background-color: var(--text-color);
}

.mt-6 {
    margin-top: 4rem !important;
}

.bg01 {
    background-color: var(--base-color);
    background-size: cover;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, p {
    font-family: var(--font-family-shippori);
    color:var(--text-color);
}

nav, footer {
    height:  var(--header-footer-height);
}

.navbar-toggler-icon {
    width: 2em;
    height: 2em;
}

.entry-form input,select,textarea {
    margin: 0.5em;
    box-sizing: border-box;
}
.entry-form p {
    margin-bottom: 0;
    width: 200px;
}

.entry-form h4 {
    margin-bottom: 0;
}

.entry-form input::placeholder {
    opacity:0.4;
}

.form-control {
    border-color: var(--text-color);
}

.error {
    color: red;
    font-size: 0.8em;
    font-weight: bold;
    margin-left: 0.5em;
}

.date span{
    font-family: var(--font-family-operetta);
    font-size: 8em;
    text-align: center;
    font-weight: 500;
    line-height: 1em;
}

.date p{
    font-family: var(--font-family-shippori);
    font-size: 1em;
    color: var(--text-light);
    font-style: normal;
    font-weight: 500;
    line-height: 1em;
    margin-bottom: 0;
    margin-right: auto;
    text-align: left;
}

.countdown {
    font-family: var(--font-family-operetta);
    font-weight: 500;
    line-height: 2em;
}

.cd-d p {
    font-size: 1.5em;
    margin-bottom: 0;
}

.cd-d span {
    font-size: 6em;
    font-weight: 500;
}

.cd-d::after {
    content: '';
    position: absolute;
    width: 20em;
    z-index: 7;
    border-bottom: solid .08em var(--text-color);
    left: calc(50% - 10em);
    bottom: 0;
}

.cd-hms p {
    font-size: 1em;
    margin-bottom: 0;
}

.cd-hms span {
    font-size: 4em;
    font-weight: 500;
}

.text-space{
    letter-spacing: 0.12em
}

.party-info {
    font-weight: 600;
}

.party-info span {
    font-size: 2em;
    line-height: 1em;
    color: var(--accent-color);
}

.event-info {
    height: 10rem;
    max-width: calc(100% - 3rem);
    border-radius: 0 2em 2em 0;
}

.event-info-child {
    border-radius: 0 0 .5em .5em;
    padding: .3em .3em .8em .3em;
    width: auto;
}

.event-info-child h2 {
    margin: 0;
    writing-mode: vertical-rl;
    color: var(--text-light);
}

.event-info-text {
    width: calc(100% + 1rem);
}

.event-info-text h1{
    line-height: .8em;
}

.event-info-text h3{
    font-size: .8em;
    margin: 0;
}

.square-line {
    position: relative;
    display: inline-block;
    align-items: center;
    z-index: 9999;
}

.square-line::before{
    content: '';
    width: 19em;
    height: 8em;
    position: absolute;
    border:solid .1em var(--text-color);
    top: calc(50% - 4em - .2em);
    left: calc(50% - 9.5em + .2em);
    z-index: -1;
    pointer-events: none;
}

.square-line::after{
    content: '';
    width: 19em;
    height: 8em;
    position: absolute;
    border:solid .1em var(--text-color);
    top: calc(50% - 4em + .2em);
    left: calc(50% - 9.5em - .2em);
    z-index: 0;
    pointer-events: none;
}

.request-info {
    width: calc(100% - 6em);
    height: 10rem;
    border-radius: 1em;
}

.request-box p{
    margin-bottom: 0;
}

.request-box h3 {
    color: var(--accent-color);
    position: relative;
    font-weight: 500;
}

.request-box span {
    color: var(--accent-color);
    font-size: 1.2em;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-skip-ink: none;
}

.request-box h3:after{
    margin-bottom: 0;
    content: '';
    position: absolute;
    z-index: 8;
    border-bottom: .05em solid var(--accent-color);
    width: 12em;
    bottom: -.1em;
    left: calc(50% - 6em);
}

.request-box:after {
    content:'';
    position: absolute;
    z-index: 8;
    left:calc(50% - 10px);
    bottom:-.5em;
    width: 20px;
    height: 20px;
    border-top: .3em solid var(--accent-color);
    border-right: .3em solid var(--accent-color);
    transform: rotate(135deg);
}

.profile-img {
    border-radius: 50% 50% 50% 50%;
}

.map-link {
    padding-top: 56.25%;
}

.ticket {
    height:auto;
    border-radius: 5% 5% 5% 5%;
    background-color: var(--accent-color);
    overflow: hidden;
}

.ticket a{
    text-decoration: none;
}

.ticket-link {
    padding-top:0.3em;
    padding-left: 1em;
    font-weight: bold;
    border-top: 1px dashed var(--text-color);
}

.ticket-link p {
    margin-bottom: 0;
    color: var(--text-light);
}

.ticket-check {
    width: 5em;
}

.ticket-info  {
    height: 8em;
    background-color: var(--text-light);
    padding-left: 1em;
}

.ticket-info p, h1, h2{
    margin-bottom: 0;
}

.ticket-info h2{
    font-size: 1em;
    font-weight: bold;
}

.canvas {
    height: 3em;
    z-index: 10;
}

.circle {
    width:3em;
    height: 3em;
    margin-right: 3em;
    margin-left: 3em;
    border-radius: 50% 50% 50% 50%;
    background-color: black;
}

.ticket_entry {
    height:21em;
    border-radius: 5% 5% 5% 5%;
    background-color: var(--text-light);
    overflow: hidden;
}

.favorite {
    height:auto;
    border-radius: 5% 5% 5% 5%;
    background-color: var(--accent-color);
    overflow: hidden;
}

.favorite-link img{
    width: 2.5em;
    margin: 1em;
}

.wiggle-img {
  transform-origin: center;
}

/* アニメーション用クラス */
.wiggling {
  animation: wiggle 0.6s ease-in-out infinite;
}

@keyframes wiggle {
  0%   { transform: rotate(0deg); }
  20%  { transform: rotate(3deg); }
  40%  { transform: rotate(-3deg); }
  60%  { transform: rotate(2deg); }
  80%  { transform: rotate(-2deg); }
  100% { transform: rotate(0deg); }
}

.favorite-icon{
  height:5rem;
  object-fit: contain;
}

.h-15em {
  height:15em;
}
