/* ===========================
   Reset & Base
=========================== */
@import url("https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css");

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    height: 100%;
    font-family: "Noto Sans JP", Helvetica, sans-serif;
    line-height: 1.5;
    color: var(--main-color);
}

:root {
    --main-color: #b22222;
    --accent-color: #fffa62;
    --gray: #959595;
    --bg-light: #ffffff;
    --bg-muted: #d8d8d880;
    --shadow: 0 0 60px #0061694c;
}

.top-image {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}
.top-image img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.burst {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 400px;
  height: 400px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.burst div {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 100px;
  background: white;
  border-radius: 3px;
  transform-origin: center bottom;
  opacity: 0;
  animation: burstAnim 0.8s ease-out forwards;

}

/* 各角度をCSS変数で持たせる */
.burst div:nth-child(1) { --angle: 0deg;   animation-delay: 0s; }
.burst div:nth-child(2) { --angle: 22.5deg;  animation-delay: 0.03s; }
.burst div:nth-child(3) { --angle: 45deg;  animation-delay: 0.06s; }
.burst div:nth-child(4) { --angle: 67.5deg; animation-delay: 0.09s; }
.burst div:nth-child(5) { --angle: 90deg;  animation-delay: 0.12s; }
.burst div:nth-child(6) { --angle: 112.5deg; animation-delay: 0.15s; }
.burst div:nth-child(7) { --angle: 135deg; animation-delay: 0.18s; }
.burst div:nth-child(8) { --angle: 157.5deg; animation-delay: 0.21s; }
.burst div:nth-child(9) { --angle: 180deg; animation-delay: 0.24s; }
.burst div:nth-child(10){ --angle: 202.5deg; animation-delay: 0.27s; }
.burst div:nth-child(11){ --angle: 225deg; animation-delay: 0.3s; }
.burst div:nth-child(12){ --angle: 247.5deg; animation-delay: 0.33s; }
.burst div:nth-child(13){ --angle: 270deg; animation-delay: 0.36s; }
.burst div:nth-child(14){ --angle: 292.5deg; animation-delay: 0.39s; }
.burst div:nth-child(15){ --angle: 315deg; animation-delay: 0.42s; }
.burst div:nth-child(16){ --angle: 337.5deg; animation-delay: 0.45s; }

.burst div:nth-child(1)  { transform: rotate(0deg);     animation-delay: 0s; }
.burst div:nth-child(2)  { transform: rotate(22.5deg);  animation-delay: 0.025s; }
.burst div:nth-child(3)  { transform: rotate(45deg);    animation-delay: 0.05s; }
.burst div:nth-child(4)  { transform: rotate(67.5deg);  animation-delay: 0.075s; }
.burst div:nth-child(5)  { transform: rotate(90deg);    animation-delay: 0.10s; }
.burst div:nth-child(6)  { transform: rotate(112.5deg); animation-delay: 0.125s; }
.burst div:nth-child(7)  { transform: rotate(135deg);   animation-delay: 0.15s; }
.burst div:nth-child(8)  { transform: rotate(157.5deg); animation-delay: 0.175s; }
.burst div:nth-child(9)  { transform: rotate(180deg);   animation-delay: 0.20s; }
.burst div:nth-child(10) { transform: rotate(202.5deg); animation-delay: 0.225s; }
.burst div:nth-child(11) { transform: rotate(225deg);   animation-delay: 0.25s; }
.burst div:nth-child(12) { transform: rotate(247.5deg); animation-delay: 0.275s; }
.burst div:nth-child(13) { transform: rotate(270deg);   animation-delay: 0.30s; }
.burst div:nth-child(14) { transform: rotate(292.5deg); animation-delay: 0.325s; }
.burst div:nth-child(15) { transform: rotate(315deg);   animation-delay: 0.35s; }
.burst div:nth-child(16) { transform: rotate(337.5deg); animation-delay: 0.375s; }

@keyframes burstAnim {
  0% {
    transform: rotate(var(--angle)) translateY(-40px) scale(0.5);
    opacity: 1;
  }
  60% {
    transform: rotate(var(--angle)) translateY(-200px) scale(1.2);
    opacity: 1;
  }
  100% {
    transform: rotate(var(--angle)) translateY(-100vh) scale(1.4);
    opacity: 0;
  }
}


/* ===========================
   Utilities
=========================== */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

.text-main {
    font-weight: 500;
    color: var(--main-color);
    font-size: 16px;
}

.text-title {
    margin: 60px auto;
    font-weight: 700;
    font-size: clamp(12px, 6vw, 28px);
    text-align: center;
    color: var(--main-color);
}

img {
    vertical-align: baseline;
    max-width: 100%;
    height: auto;
    margin: auto;
}

.center-btn-wrapper {
    display: block;
    width: 300px;
    max-width: 300px;
    margin: 60px auto;
}

.btn {
    border-radius: 35px;
    padding: 24px;
    font-weight: 700;
    font-size: large;
    cursor: pointer;
    transition: opacity 0.2s ease;
    width: 100%;
    text-align: center;
}

.btn:hover {
    opacity: 0.8;
}

.btn-primary {
    background: var(--main-color);
    border: none;
    color: #fff;
}

.btn-outline {
    background: var(--bg-light);
    border: none;
    color: var(--main-color);
}

a:hover {
    color: var(--accent-color);
    padding-top: 3px;
    transform: translateY(3px);
    transition: all 0.3s ease;
}


/* ===========================
   Layout
=========================== */
.PC-draft {
    background: var(--bg-light);
    width: 100%;
    min-width: 1179px;
    display: flex;
}

.PC-draft .background {
    width: 100%;
    min-height: 100vh;
    display: flex;
    background: var(--main-color);
}

header {
    display: none;
}

.PC-draft .SP-flame {
    max-width: 100%;
    width: 100%;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    background: var(--main-color);
    position: relative;
    overflow: hidden;
}

.PC-draft .SP-contents {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    background: white;
}

/* ===========================
   Sections
=========================== */

.PC-draft .top-image {
    width: 100%;
    height: 583px;
    position: relative;
    display: grid;

    opacity: 0; 
    
    animation-name: fundido;
    animation-duration: 0.5s; /* Duración de la animación (2 segundos) */
    animation-timing-function: ease-in; /* Tipo de curva de velocidad */
    animation-fill-mode: forwards;
}

@keyframes fundido {
    /* Inicio de la animación: completamente transparente */
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    
    /* Fin de la animación: completamente visible */
    to {
        opacity: 1;
        transform: translateY(0px);
    }
}

.image-2 {
    display: grid;
}

.PC-draft .image,
.PC-draft .DSC-wrapper,
.PC-draft .img-wrapper {
    width: 100%;
    height: 100%;
    background: var(--bg-muted);
}

.PC-draft .overview,
.PC-draft .FAQ,
.PC-draft .entry-info,
.PC-draft .footer {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    padding: 60px 30px;
}
.PC-draft .archive {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    padding: 0px 30px 60px;
}


.PC-draft .about-container {
    padding: 0 40px 60px;
    width: 100%;
    margin: 0 auto;
    max-width: 500px;
}

.PC-draft .about-container a {
    margin: 60px auto auto;
    display: block;
}

.PC-draft .title,
.PC-draft .title-2,
.PC-draft .title-3,
.PC-draft .title-4,
.PC-draft .title-5,
.PC-draft .title-6,
.PC-draft .title-7 {
    font-weight: 700;
    font-size: 32px;
    text-align: center;
    color: var(--main-color);
    margin-bottom: 20px;
}

/* ===========================
   Components
=========================== */
/*.PC-draft .entry-button,
.PC-draft .mail-button,
.PC-draft .entry-button-2 {
    @extend .btn;
}*/

.PC-draft .list,
.PC-draft .inner-wrapper,
.PC-draft .list-inner-wrapper,
.PC-draft .list-2,
.PC-draft .list-3 {
    border-top: 1px solid var(--main-color);
    padding: 16px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.PC-draft .FAQ-list {
    max-width: 440px;
    margin: 0 auto;
}

.PC-draft .FAQ-list .list-3 {
    background: #ffe7e7;
    border-radius: 6px;
}

.FAQ a {
    display: block;
    width: 300px;
    max-width: 300px;
    margin: 60px auto;
}

.PC-draft .footer {
    background: #c4c4c4;
    text-align: center;
}

.PC-draft .footer .flogo {
    margin-bottom: 30px;
}

.footer img {
    width: 75%;
    display: block;
    margin: auto auto 60px;
}

.footer div {
    margin-bottom: 30px;
}

.PC-draft .footer small {
    font-size: 14px;
    color: var(--main-color);
}

/* ===========================
   Navigation
=========================== */
.PC-draft .navigation-flame {
    margin: 0 auto;
    max-width: 247px;
    width: 100%;
}

.PC-draft .navigation-contents {
    display: flex;
    flex-direction: column;
}

.PC-draft .navgation-list {
    margin: 10px auto;
}

.PC-draft .navgation-list a {
    display: block;
    font-weight: bold;
    color: var(--bg-light);
    text-align: center;
    position: relative;
    opacity: 1 !important;
}

.miq-entry {
    max-width: 200px;
    margin: auto auto 0;
      pointer-events: all;

}

/* ===========================
   Overview
=========================== */
table {
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    flex-wrap: wrap;
    margin: 60px 0px 0;
    width: 100%;
    border-collapse: collapse;
}

tr {
    border-top: 1px solid;
}

th {
    display: table-cell;
    padding: 2.0625rem 2rem 2.0625rem 0;
    min-width: 5rem;
    border: none;
    vertical-align: top;
    font-weight: bold;
}

td {
    display: table-cell;
    padding: 2.0625rem 2rem 2.0625rem 0;
    min-width: 5rem;
    border: none;
    vertical-align: top;
}

/* ===========================
   FAQ Accordion
=========================== */
.FAQ-list details {
    background: #ffe7e7;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.FAQ-list summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 16px;
    list-style: none;
}

.FAQ-list summary::-webkit-details-marker {
    display: none;
    /* デフォルトの矢印を消す */
}

.FAQ-list .iconify {
    font-size: 24px;
    color: var(--main-color);
    transition: transform 0.2s ease;
}

/* 開いたときに回転して「×」っぽく見せる */
.FAQ-list details[open] .iconify {
    transform: rotate(45deg);
}


/* 開いたときのコンテンツ */
.FAQ-list p {
    margin-top: 10px;
    font-size: 14px;
    color: #333;
}

.FAQ button {
    background-color: #959595;
    color: #fff;

}

@media screen and (max-width: 980px) {
    .PC-draft{
        min-width: 0px;
    }

    .PC-draft .navigation-flame{
        visibility: hidden;
    }
}

@media screen and (min-width: 641px) {
    .background {
        background: url("./images/background.png") no-repeat top center fixed;
        background-size: 1366px;
        min-height: 100vh;
    }

    /* ヘッダーを全画面に固定 */
    header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 100;
        display: block;
        pointer-events: none;
    }

    header .logo-group {
        position: absolute;
        top: 48px;
        left: 32px;
        width: 333px;
        height: auto;
        pointer-events: all;
    }

    @media screen and (max-width: 1280px) {
        header .logo-group {
            width: calc(50vw - 300px);
        }
    }

    header .navigation-flame {
        position: absolute;
        top: 0;
        right: 0;
        width: 280px;
        height: 100%;
        padding: 48px 32px 30px 0;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        box-sizing: border-box;
    }
}

.navgation-list {
    list-style: none;
    padding: 0;
    margin: 0;
    
}

.navgation-list li {
    margin-bottom: 10px;
    text-align: center;
}

.navgation-list a {
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    color: #fff;
    pointer-events: all;
}

.miq-entry img {
    width: 270px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ===========================
   Entry Button Hover Effect
=========================== */
.miq-entry {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.miq-entry:hover {
    transform: translateY(-8px) scale(1.05);
    /* 少し浮かせる */
    filter: brightness(1.2);
    /* 明るくする */
}

/* クリック時に押し込むような効果 */
.miq-entry:hover {
    transform: translateY(-8px) scale(1.0);
    filter: brightness(1.2);
}

.SP-flame {
    max-width: 500px;
    width: 100%;
    margin: 40px auto 0;
    border-radius: 60px 60px 0 0;
    box-shadow: var(--shadow);
}