/*
Theme Name: Astra Child
Template: astra
Version: 1.0.0
*/
:root {
    --deep-red: rgba(215,0,58,1);       /* 紅色 */
    --azalea-color: rgba(233,82,149,1); /* 躑躅色 */
    --jet-black: rgba(13,0,21,1);       /* 漆黒色 */
    --medium-yellow: rgba(255,234,0,1); /* 中黄色 */
    --muted-foreground: #6B6B5B;
}

.custom-page p, .custom-page dd {
    color: var(--jet-black);
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.8;
}
@media (max-width: 768px) {
    .custom-page p, .custom-page dd {
        margin-bottom: 1.5em;
        line-height: 1.5;
    }
}
.block {
    width: 100%;
    margin-bottom: 3rem;
    padding: 1rem;
    border-radius: 1rem;
}
.container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding: 4rem 2rem;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 2rem;
}
@media (max-width: 1024px) {
    .container {
        padding: 4rem 1.5rem;
    }
}
@media (max-width: 640px) {
    .container {
        padding: 2rem 1rem;
    }
}
.heading-wrapper {
    margin-bottom: 0.6em;
}
.heading-wrapper p{
    margin-left: 0.6em;
}
.section-title {
    margin-bottom: 3rem;
}
.heading-l3,
.heading-l4 {
    margin-bottom: 1em;
}
.heading-l4 {
    padding-left: 0.5rem;
}
@media (max-width: 556px) {
    .terakoya .main-header-bar {
        background-color: unset !important;
        border: none !important;
    }
}
/* ボタン */
.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}
.btn {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans JP', sans-serif;
    text-decoration: none;
    display: inline-block;
}
.btn--primary.bg-deep-red,
.btn:hover.btn--outline.outline-deep-red {
    background-color: var(--deep-red);
    border: 2px solid var(--deep-red);
    color: #FFFFFF;
}
.btn--outline.outline-deep-red,
.btn:hover.btn--primary.bg-deep-red {
    background-color: #FFFFFF;
    border: 2px solid var(--deep-red);
    color: var(--deep-red);
}
@media (max-width: 556px) {
    .button-group {
        flex-direction: column;
        align-items: center;
    }
    .btn {
        width: 250px;
        text-align: center;
    }
}
.list-style1 {
    list-style: none;
}
.list-style1 li {
    display: flex;
    align-items: center;
}
.list-style1 li::before{
    content: "⚫︎";
    color: var(--azalea-color);
    font-size: 0.6em;
    margin-right: 1em;
}
@media (max-width: 768px) {
    .list-style1 {
        margin-left: 1.5rem;
    }
}
.cert-card ul {
    position: relative;
    list-style: none;
    margin-left: 1.5rem;
}
.cert-card ul li::before {
    content: "⚫︎";
    position: absolute;
    left: -1.5em;
}
.cert-card ul .ng-style::before {
    content: "×";
    color: red;
    font-weight: 600;
}
.cert-card ul .correct-style::before {
    content: "○";
    font-weight: 600;
}
#bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: -1;
  overflow: hidden;
  transition: background-image 0.6s ease;
}
#bg[data-current="1"] {
    background-image: url('./img/top-terakoya-2026.jpeg');
}
#bg[data-current="2"] {
    background-image: url('./img/bg-section1.jpeg');
}
#bg[data-current="3"] {
    background-image: url('./img/bg-section2.jpeg');
}
#bg[data-current="4"] {
    background-image: url('./img/bg-section3.jpeg');
}
#bg[data-current="5"] {
    background-image: url('./img/bg-section4.jpeg');
}
#bg[data-current="6"] {
    background-image: url('./img/bg-section5.jpeg');
}
@media (max-width: 768px) {
    #bg {
        background-position: center;
    }
    #bg[data-current="1"] {
        background-image: url('./img/sp-top-terakoya-2026.jpeg');
    }
    #bg[data-current="2"] {
        background-image: url('./img/sp-bg-section1.jpeg');
    }
    #bg[data-current="3"] {
        background-image: url('./img/sp-bg-section2.jpeg');
    }
    #bg[data-current="4"] {
        background-image: url('./img/sp-bg-section3.jpeg');
    }
    #bg[data-current="5"] {
        background-image: url('./img/sp-bg-section4.jpeg');
    }
    #bg[data-current="6"] {
        background-image: url('./img/sp-bg-section5.jpeg');
    }
    #bg[data-current="1"] .bg-layer {
        height: 100vh;
        animation: mask 2s ease-out 1s forwards;
    }
    @keyframes mask {
        0% {
            background: rgba(255, 255, 255, 0);
        }
        100% {
            background: rgba(255, 255, 255, 0.5);
        }
    }
}
.bg-layer {
    /* width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.4); */
}
.custom-page {
    position: relative;
}
.custom-page section {
    padding: 4rem 2rem;
}
.custom-page section.border-top {
    border-top: 1px solid var(--border);
}

.section-label {
    font-size: 0.875rem;
    color: var(--primary);
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    font-family: 'Noto Serif JP', serif;
}
@media (max-width: 768px) {
    .custom-page section:not(.first-view) {
      padding: 2rem 0;
    }
}
/* first view */
.custom-page .first-view {
    position: relative;
    width: 100%;
    height: calc(100svh - 81px);
}
.custom-page .first-view .content {
    position: absolute;
    top: 50%;
    left: 4rem;
    width: fit-content;
    transform: translateY(-50%);
}
.custom-page .title {
    margin-bottom: 2rem;
}
.custom-page .first-view .button-group {
    justify-content: flex-start;
}
@media (max-width: 1221px) {
    .custom-page .first-view {
        height: calc(100svh - 160px);
    }
}
@media (max-width: 922px) {
    .custom-page .first-view {
        height: fit-content;
        min-height: calc(100vh - 80px);
    }
}
@media (max-width: 768px) {
    .custom-page .first-view {
        padding: 2rem 1rem;
    }
    .custom-page .title {
        margin-bottom: 2rem;
    }
    .custom-page .first-view .content {
        position: relative;
        top: 0;
        left: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        height: 100%;
        transform: translateY(0);
        opacity: 0;
        animation: fadeIn 2s ease-out 1s forwards;
    }
    @keyframes fadeIn {
        0% {
            opacity: 0;
            transform: translateY(50px); /* 少し下から浮き上がらせるとオシャレ */
        }
        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

.three-articles-wrapper {
    display: flex;
    justify-content: space-between;
    padding-top: 4rem;
    padding-bottom: 3rem;
}
.three-articles-wrapper dl {
    width: calc((30% / 94) * 100);
    position: relative;
    border-top: 5px solid var(--azalea-color);
    background-color: #FAFAF7;
    border-radius: 0 0 1rem 1rem;
}
.three-articles-wrapper dl dt {
    position: absolute;
    top: -45px;
    left: calc(50% - 45px);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 85px;
    height: 85px;
    background-color: var(--azalea-color);
    border-radius: 50%;
    color: #FFF;
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 0.3rem;
    text-align: center;
}
.three-articles-wrapper dl dt::after {
    content: '、';
    position: absolute;
    right: 0;
}
.three-articles-wrapper dl dd {
    padding: 80px 0 52px;
    font-size: 1.2rem;
    line-height: 160%;
}
@media (max-width: 768px) {
    .three-articles-wrapper {
        flex-direction: column;
        justify-content: space-between;
        padding-top: 4rem;
        padding-bottom: 3rem;
    }
    .three-articles-wrapper dl {
        width: 100%;
        margin-bottom: 3rem;
    }
    .three-articles-wrapper dl:last-child {
        margin-bottom: 0;
    }
    .three-articles-wrapper dl dt {
        top: -36px;
        left: 50%;
        width: 65px;
        height: 65px;
        font-size: 1.3rem;
        transform: translateX(-50%);
    }
}
.text-shadow {
    text-shadow: 2px 3px 3px rgba(0, 0, 0, 0.4);
}
.bg-fill {
    background-color: rgba(250, 250, 247, 0.85);
}
.bg-white {
    background-color: #FAFAF7;
}

.pillar-item {
    border-left: 4px solid var(--azalea-color);
    padding-left: 1.5rem;
}
.pillar-item h4 {
    font-weight: bold;
    margin-bottom: 0.5rem;
}
.pillar-item p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.cert-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 5rem;
}
.cert-card {
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 0.5rem;
    background-color: #FFFFFF;
}
.cert-level {
    font-size: 0.875rem;
    color: var(--deep-red);
    font-family: 'Noto Serif JP', serif;
    margin-bottom: 0.5rem;
}
.cert-card h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}
.cert-card h5 {
    text-align: center;
    font-size: 1rem;
    margin-bottom: 1rem;
}
.cert-card p {
    font-size: 0.875rem;
    line-height: 1.6;
}
@media (min-width: 768px) {
    .cert-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.accordion {
    margin-bottom: 3rem;
    padding: 0 1rem;
    counter-reset: num;
}
.accordion-item {
    width: 100%;
    margin-bottom: 5px;
    border-bottom: 2px solid #d6dde3;
    counter-increment: num;
}
.accordion-item summary {
    display: flex;
    align-items: center;
    position: relative;
    padding: 1em 2em 1em 4em;
    color: #333333;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}
.accordion-item summary::before,
.accordion-item p::before{
    position: absolute;
    left: 1em;
    font-weight: 600;
    font-size: 1.3rem;
}
.accordion-item summary::before {
    color: var(--azalea-color);
    content: "Q" counter(num);
}
.accordion-item summary::after {
    position: absolute;
    right: 2rem;
    transform: translateY(-25%) rotate(45deg);
    width: 7px;
    height: 7px;
    margin-left: 10px;
    border-bottom: 3px solid var(--deep-red);
    border-right: 3px solid var(--deep-red);
    content: '';
    transition: transform .5s;
}
.accordion-item[open] summary::after {
    transform: rotate(225deg);
}
.accordion-item p {
    position: relative;
    transform: translateY(-10px);
    opacity: 0;
    margin: 0;
    padding: .3em 3.5em 1.5em;
    color: #333;
    transition: transform .5s, opacity .5s;
}
.accordion-item[open] p {
    transform: none;
    opacity: 1;
}
.accordion-item p::before,
.accordion-item ul::before {
    color: var(--medium-yellow);
    line-height: 1.2;
    content: "A";
}
.accordion-item ul {
    position: relative;
    list-style: none;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
}
.accordion-item ul::before {
    content: "A";
    position: absolute;
    left: -1.3em;
    color: var(--medium-yellow);
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.2;
}
.accordion-item p {
    font-size: 1rem;
}
.accordion-item:nth-child(3) p::before{
    content:"";
}
@media (max-width: 768px) {
    .accordion {
        padding: 0;
    }
    .accordion-item summary::after {
        right: 1rem;
    }
}
.text-group {
    padding: 2rem 2rem 0 2rem;
    border-bottom: 2px solid var(--medium-yellow);
}
.text-group:last-child {
    border-bottom: none;
}
.text-group p {
    padding: 0 0.5rem;
}
@media (max-width: 768px) {
    .text-group {
        padding: 1.5rem 0.5rem 0 1rem;
        border-bottom: 2px solid var(--medium-yellow);
    }
}
.pc-br {
    display: inline-block;
}
@media (max-width: 425px) {
    .pc-br {
        display: none;
    }
}