/*
Theme Name: Papillon Original
Theme URI: https://papillon.school/
Author: Papillon
Description: Papillon School Original Theme
Version: 1.0
*/

/* =========================
   Reset / Base
========================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        "Hiragino Kaku Gothic ProN",
        "Yu Gothic",
        sans-serif;
    color: #263238;
    background: #fffaf0;
    line-height: 1.7;
}

a {
    color: inherit;
}

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

main {
    overflow: hidden;
}


/* =========================
   Header
========================= */

header {
    background-color: #ffffff;

    background-image:
        radial-gradient(circle, #ffd166 3px, transparent 4px),
        radial-gradient(circle, #90caf9 3px, transparent 4px),
        radial-gradient(circle, #f48fb1 2px, transparent 3px);

    background-size:
        45px 45px,
        65px 65px,
        35px 35px;

    background-position:
        0 0,
        20px 15px,
        10px 30px;

    padding: 15px 3%;

    display: flex;
    justify-content: space-between;
    align-items: center;

    position: sticky;
    top: 0;
    z-index: 100;

    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}


/* =========================
   Logo
========================= */

.logo {
    font-size: 25px;
    font-weight: 900;
    color: #ff6b35;

    background: rgba(255, 255, 255, 0.9);

    padding: 7px 16px;

    border-radius: 25px;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);

    text-decoration: none;
}

.logo span {
    color: #35a7ff;
}


/* =========================
   Navigation
========================= */

nav {
    display: flex;
    gap: 12px;

    background: rgba(255, 255, 255, 0.9);

    padding: 7px 12px;

    border-radius: 25px;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

nav a {
    text-decoration: none;

    color: #333;

    font-weight: bold;

    padding: 5px 8px;

    border-radius: 15px;

    transition: 0.2s;
}

nav a:hover {
    color: #ff6b35;
    background: #fff0d8;
}


/* =========================
   Hero
========================= */

.hero {
    min-height: 620px;

    padding: 70px 8%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 40px;

    background:
        radial-gradient(
            circle at 10% 20%,
            #fff176 0 55px,
            transparent 56px
        ),
        radial-gradient(
            circle at 90% 15%,
            #80deea 0 70px,
            transparent 71px
        ),
        linear-gradient(
            135deg,
            #fff4c4,
            #dff7ff
        );

    overflow: hidden;
}

.hero-text {
    max-width: 600px;
}

.hero-text .badge {
    display: inline-block;

    background: #ff6b35;
    color: white;

    padding: 8px 18px;

    border-radius: 30px;

    font-weight: bold;

    margin-bottom: 20px;

    transform: rotate(-2deg);

    box-shadow: 0 5px 0 #d94d1d;
}

.hero h1 {
    font-size: clamp(42px, 6vw, 75px);

    line-height: 1.15;

    font-weight: 900;

    color: #253858;

    margin-bottom: 25px;
}

.hero h1 span {
    color: #ff5c5c;
}

.hero p {
    font-size: 20px;

    font-weight: bold;

    margin-bottom: 30px;
}


/* =========================
   Main Button
========================= */

.main-button {
    display: inline-block;

    padding: 16px 35px;

    border-radius: 50px;

    background: #ff6b35;
    color: white;

    text-decoration: none;

    font-size: 19px;
    font-weight: bold;

    box-shadow: 0 7px 0 #d94d1d;

    transition: 0.2s;
}

.main-button:hover {
    transform: translateY(4px);

    box-shadow: 0 3px 0 #d94d1d;
}


/* =========================
   Character
========================= */

.character {
    width: 360px;
    height: 360px;

    border-radius: 50%;

    overflow: hidden;  /* ←追加 */

    background: #ffffff;

    border: 10px solid #35a7ff;

    display: flex;
    justify-content: center;
    align-items: center;

    box-shadow: 15px 15px 0 #ffd166;

    animation: float 3s ease-in-out infinite;
}

.character img {

    width:100%;
    height:100%;

    object-fit:cover;

}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(2deg);
    }

    50% {
        transform: translateY(-15px) rotate(-2deg);
    }

}


/* =========================
   Common Section
========================= */

section {
    padding: 90px 7%;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 42px;
    color: #253858;
    margin-bottom: 10px;
}

.section-title p {
    color: #777;
}


/* =========================
   Features
========================= */

.features {
    background: white;
}

.feature-grid {
    max-width: 1100px;

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 25px;
}

.feature-card {
    padding: 35px 25px;

    text-align: center;

    border-radius: 25px;

    background: #fff8e1;

    border: 4px solid #ffe082;

    transition: 0.3s;
}

.feature-card:nth-child(2) {
    background: #e3f2fd;
    border-color: #90caf9;
}

.feature-card:nth-child(3) {
    background: #fce4ec;
    border-color: #f48fb1;
}

.feature-card:hover {
    transform:
        translateY(-10px)
        rotate(1deg);

    box-shadow:
        0 12px 25px
        rgba(0, 0, 0, 0.1);
}

.icon {
    font-size: 60px;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
}


/* =========================
   Classes
========================= */

.classes {
    background: #e8f7ff;
}

.class-grid {
    max-width: 1100px;

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 25px;
}

.class-card {
    background: white;

    padding: 30px;

    border-radius: 25px;

    display: flex;

    align-items: center;

    gap: 25px;

    box-shadow:
        0 8px 20px
        rgba(0, 0, 0, 0.06);

    transition: 0.3s;
}

.class-card:hover {
    transform: translateY(-5px);
}

.class-icon {
    min-width: 80px;
    height: 80px;

    border-radius: 20px;

    background: #ffd166;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 42px;
}

.class-card:nth-child(2) .class-icon {
    background: #80deea;
}

.class-card:nth-child(3) .class-icon {
    background: #ce93d8;
}

.class-card:nth-child(4) .class-icon {
    background: #a5d6a7;
}


/* =========================
   Numbers / Mission Vision Growth
========================= */

.numbers {
    background: #253858;
    color: white;

    text-align: center;
}

.number-grid {
    max-width: 1100px;

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 28px;
}

.number {
    background: rgba(255, 255, 255, 0.08);

    border: 1px solid rgba(255, 255, 255, 0.12);

    border-radius: 24px;

    padding: 30px 24px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    min-height: 260px;

    box-shadow:
        0 12px 28px
        rgba(0, 0, 0, 0.12);
}

.number-label {
    font-size: 12px;

    letter-spacing: 0.12em;

    text-transform: uppercase;

    color: #ffd166;

    font-weight: 700;

    margin-bottom: 12px;
}

.number h3 {
    font-size: clamp(32px, 3vw, 55px);

    color: #ffd166;

    line-height: 1.2;

    margin: 0 0 14px;
}

.number p {
    font-weight: 600;

    font-size: 17px;

    line-height: 1.9;

    color: rgba(255, 255, 255, 0.94);

    margin: 0;
}


/* =========================
   Information
========================= */

.information {
    background: #fff8e1;
}

.information-grid {
    max-width: 1100px;

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 25px;
}

.information-card {
    background: white;

    padding: 32px;

    border: 4px solid #ffe082;

    border-radius: 25px;

    box-shadow:
        0 8px 20px
        rgba(0, 0, 0, 0.06);
}

.information-card:nth-child(2) {
    border-color: #90caf9;
}

.information-card h3 {
    color: #253858;

    font-size: 26px;

    margin-bottom: 18px;
}

.information-list {
    list-style: none;

    display: grid;

    gap: 12px;
}

.information-list li {
    display: flex;

    justify-content: space-between;

    gap: 16px;

    padding-bottom: 10px;

    border-bottom: 1px dashed #d6dce5;
}

.information-list li:last-child {
    padding-bottom: 0;

    border-bottom: 0;
}

.information-list strong {
    color: #ff6b35;
}

.information-note {
    margin-top: 18px;

    color: #667085;

    font-size: 14px;
}


/* =========================
   CTA
========================= */

.cta {
    text-align: center;

    background:
        radial-gradient(
            circle at 20% 30%,
            #fff176 0 40px,
            transparent 41px
        ),

        radial-gradient(
            circle at 80% 70%,
            #80deea 0 50px,
            transparent 51px
        ),

        #ff7043;

    color: white;
}

.cta h2 {
    font-size: 45px;

    margin-bottom: 15px;
}

.cta p {
    font-size: 19px;

    margin-bottom: 30px;
}

.cta .main-button {
    background: white;

    color: #ff5c35;

    box-shadow:
        0 7px 0 #c94d28;
}


/* =========================
   Footer
========================= */

footer {
    background: #17233c;

    color: white;

    text-align: center;

    padding: 35px 20px;
}

footer .logo {
    margin-bottom: 10px;
}


/* =========================
   Mobile
========================= */

@media (max-width: 800px) {

    header {
        flex-direction: column;

        gap: 10px;
    }

    nav {
        gap: 4px;

        font-size: 13px;

        flex-wrap: wrap;

        justify-content: center;
    }

    nav a {
        padding: 4px 6px;
    }

    .hero {
        flex-direction: column;

        text-align: center;

        padding-top: 50px;
    }

    .hero h1 {
        font-size: 45px;
    }

    .hero p {
        font-size: 17px;
    }

    .character {
        width: 260px;
        height: 260px;

        font-size: 110px;
    }

    .feature-grid,
    .class-grid,
    .information-grid,
    .number-grid {
        grid-template-columns: 1fr;
    }

    .section-title h2 {
        font-size: 34px;
    }

    .cta h2 {
        font-size: 34px;
    }

}

/* =========================
   Contact Form
========================= */

.contact-page .contact-field {
    margin-bottom: 28px;
}

.contact-page .contact-field > label {
    display: block;
    margin-bottom: 9px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* 必須・任意バッジ */

.contact-page .required,
.contact-page .optional {
    display: inline-block;
    margin-left: 6px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    vertical-align: middle;
}

.contact-page .required {
    color: #b84a7a;
    background: #fce8f1;
}

.contact-page .optional {
    color: #777;
    background: #f1f1f1;
}


/* 入力欄 */

.contact-page .wpcf7-form-control.wpcf7-text,
.contact-page .wpcf7-form-control.wpcf7-email,
.contact-page .wpcf7-form-control.wpcf7-tel,
.contact-page .wpcf7-form-control.wpcf7-textarea {
    width: 100%;
    max-width: 800px;
    box-sizing: border-box;
    padding: 10px 14px;
    border: 1px solid #d8d8d8;
    border-radius: 7px;
    background: #fff;
    font-size: 15px;
    color: #333;
    transition: border-color 0.2s, box-shadow 0.2s;
}


/* 通常の入力欄 */

.contact-page .wpcf7-form-control.wpcf7-text,
.contact-page .wpcf7-form-control.wpcf7-email,
.contact-page .wpcf7-form-control.wpcf7-tel {
    height: 44px;
}


/* お問い合わせ内容 */

.contact-page .wpcf7-form-control.wpcf7-textarea {
    min-height: 180px;
    resize: vertical;
}


/* placeholder */

.contact-page input::placeholder,
.contact-page textarea::placeholder {
    color: #aaa;
    opacity: 1;
}


/* 入力中 */

.contact-page .wpcf7-form-control:focus {
    outline: none;
    border-color: #ce93d8;
    box-shadow: 0 0 0 3px rgba(206, 147, 216, 0.15);
}


/* ラジオボタン */

.contact-page .wpcf7-radio {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.contact-page .wpcf7-list-item {
    margin: 0;
}

.contact-page .wpcf7-list-item label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border: 1px solid #ddd;
    border-radius: 7px;
    background: #fff;
    cursor: pointer;
    font-weight: normal;
    transition: border-color 0.2s, background 0.2s;
}

.contact-page .wpcf7-list-item label:hover {
    border-color: #ce93d8;
    background: #fcf5fd;
}


/* 送信ボタン */

.contact-page .contact-submit {
    margin-top: 35px;
    text-align: center;
}

.contact-page .wpcf7-submit {
    width: 220px;
    height: 54px;
    border: none;
    border-radius: 27px;
    background: #ce93d8;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
}

.contact-page .wpcf7-submit:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}


/* スマホ */

@media (max-width: 600px) {

    .contact-page .contact-field {
        margin-bottom: 22px;
    }

    .contact-page .contact-field > label {
        font-size: 15px;
    }

    .contact-page .wpcf7-form-control.wpcf7-text,
    .contact-page .wpcf7-form-control.wpcf7-email,
    .contact-page .wpcf7-form-control.wpcf7-tel,
    .contact-page .wpcf7-form-control.wpcf7-textarea {
        max-width: 100%;
    }

    .contact-page .wpcf7-submit {
        width: 100%;
        max-width: 320px;
    }
}

/* =========================
   News / Event
========================= */

.news-category-list {
    max-width: 100%;
}

.news-category-card {
    background: #ffffff;
    border: 4px solid #ffe082;
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-category-card:nth-child(2) {
    border-color: #90caf9;
}

.news-category-card:nth-child(3) {
    border-color: #ce93d8;
}

.news-category-card:nth-child(4) {
    border-color: #80cbc4;
}

.news-category-card:nth-child(5) {
    border-color: #ffab91;
}

.news-category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.10);
}

.news-category-card h2 {
    margin: 0;
    text-align: center;
    font-size: 26px;
}

.news-category-card h2 a {
    color: #253858;
    text-decoration: none;
}

.news-category-card h2 a:hover {
    color: #ff6b35;
}


/* =========================
   Category Posts
========================= */

.category-post-list {
    width:100%;
    max-width:1100px;
    margin:30px auto 0;
    display:grid;
    gap:20px;
}

.category-post-card {
    background: #ffffff;
    border: 3px solid #ffe082;
    border-radius: 20px;
    padding: 25px 30px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.category-post-card h2 {
    margin: 0 0 8px;
    font-size: 24px;
}

.category-post-card h2 a {
    color: #253858;
    text-decoration: none;
}

.category-post-card h2 a:hover {
    color: #ff6b35;
}

.category-post-date {
    margin: 0 0 12px;
    color: #667085;
    font-size: 14px;
}

.category-post-excerpt {
    color: #444444;
    line-height: 1.8;
}


/* =========================
   Single Post
========================= */

/* =========================
   Single Post
========================= */

.single-post {
    width:100%;
}


.single-post-inner {

    width:90%;
    max-width:1000px;

    margin:0 auto;

    background:#ffffff;

    padding:50px 60px;

    border-radius:30px;

    box-shadow:
        0 10px 30px rgba(0,0,0,0.08);

}

.single-post h1 {

    color:#253858;

    font-size:36px;

    line-height:1.4;

    margin-bottom:15px;

}

.single-post-date {

    color:#667085;

    font-size:14px;

    margin-bottom:35px;

    padding-bottom:15px;

    border-bottom:
        2px dashed #ffe082;

}

.single-post-thumbnail {
    margin-bottom: 30px;
}

.single-post-thumbnail img {

    width:100%;

    height:auto;

    border-radius:20px;

    margin-bottom:30px;

}

.single-post-content {

    line-height:2;

    color:#333333;

    font-size:17px;

}

.single-post-content p {
    margin-bottom: 1.5em;
}


/* =========================
   News / Event Mobile
========================= */

@media (max-width: 768px) {

    .news-category-list {
        grid-template-columns: 1fr;
    }

    .news-category-card {
        padding: 25px;
    }

    .category-post-card {
        padding: 20px;
    }

    .category-post-card h2 {
        font-size: 21px;
    }

}


/* Make the whole news category card clickable */

.news-category-card a {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}



/* News category card is the link itself */

a.news-category-card {
    display: block;
    color: inherit;
    text-decoration: none;
}

a.news-category-card h2 {
    color: #253858;
}

a.news-category-card:hover h2 {
    color: #ff6b35;
}



/* Category post card is the link itself */

a.category-post-card {
    display: block;
    color: inherit;
    text-decoration: none;
}

a.category-post-card h2 {
    color: #253858;
}

a.category-post-card:hover h2 {
    color: #ff6b35;
}


/* Header navigation: prevent menu text from wrapping */
nav a {
    white-space: nowrap;
}

/* =========================
   Header / Footer
========================= */

header,
footer {
    width:100%;
    box-sizing:border-box;
}


/* =========================
   Mobile Header / Layout Fix
========================= */

html,
body {
    width:100%;
    max-width:100%;
    overflow-x:hidden;
}


header,
main,
footer {
    width:100%;
}


header {
    min-width:0;
}


nav {
    min-width:0;
    max-width:100%;
}


nav a {
    white-space:nowrap;
}


/* 800px以下 */

@media (max-width:800px) {


    header {
        width:100%;
        padding:12px 10px;
    }


    .logo {
        max-width:100%;
        font-size:21px;
        text-align:center;
    }


    nav {
        width:100%;
        justify-content:center;
        align-items:center;
        flex-wrap:wrap;
        gap:4px;
        padding:6px 8px;
    }


    nav a {
        font-size:13px;
        padding:4px 6px;
    }


    section {
        width:100%;
        padding-left:5%;
        padding-right:5%;
    }

    .single-post-inner {

        width:92%;

        padding:30px 20px;

    }


    .single-post h1 {

        font-size:26px;

    } 	
}
