@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@400;500;700&display=swap');

/* --------------------------------------------------
   Reset & Base
-------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #fce4ec; 
    --accent-color: #f8bbd0;  
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #f9f9f9;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --sakura-pale: #fff5f7;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

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

body.is-loading {
    overflow: hidden;
}

/* --------------------------------------------------
   Opening Animation
-------------------------------------------------- */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 1s cubic-bezier(0.86, 0, 0.07, 1);
}

#loader.loaded {
    transform: translateY(-100%);
}

.loader-content {
    text-align: center;
}

.loader-logo {
    width: 150px;
    opacity: 0;
    transform: scale(0.8);
    animation: loaderLogoIn 1.5s ease forwards 0.2s;
}

.loader-text-wrap {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 20px 0 30px;
}

.loader-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 0.1em;
    opacity: 0;
    transform: translateY(10px);
    animation: loaderTextIn 1.5s ease forwards 0.7s;
}

.loader-line {
    width: 0;
    height: 3px;
    background: var(--primary-color);
    margin: 0 auto;
    animation: loaderLineLoad 1.8s ease forwards 1s;
}

@keyframes loaderLogoIn {
    to { opacity: 1; transform: scale(1); }
}

@keyframes loaderTextIn {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes loaderLineLoad {
    to { width: 100px; }
}

/* --------------------------------------------------
   Animations Base
-------------------------------------------------- */
.hero-logo-main img {
    max-height: 180px;
}

.reveal-on-load-up {
    opacity: 0;
    transform: translateY(30px);
}

.is-loaded .reveal-on-load-up {
    animation: fadeInUp 1s ease forwards;
}

.reveal-on-load-left {
    opacity: 0;
    transform: translateX(-50px);
}

.is-loaded .reveal-on-load-left {
    animation: fadeInLeft 1s ease forwards 0.3s;
}

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    to { opacity: 1; transform: translateX(0); }
}

.reveal-title {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 1s ease, transform 1s ease;
}

.reveal-title.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-content {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s ease;
}

.reveal-content.active {
    opacity: 1; transform: translateY(0);
}

/* --------------------------------------------------
   Common Components
-------------------------------------------------- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
    font-weight: 700;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

.section-desc {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.8;
    color: var(--text-color);
}

.bg-light { background-color: var(--bg-light); }
.bg-sakura-light { background-color: var(--sakura-pale); }
.bg-sakura-pale { background-color: #fff9fa; }

.card {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    border: none;
}

.btn-sm { padding: 10px 20px; font-size: 0.9rem; }

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #f06292;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-light);
}

.icon-phone {
    width: 1.1em;
    height: 1.1em;
    fill: currentColor;
    vertical-align: -0.2em;
    margin-right: 8px;
}

.btn-tel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* --------------------------------------------------
   Header
-------------------------------------------------- */
.header {
    height: 90px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo img {
    height: 44px;
    width: auto;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: 0.05em;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-list a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
}

.nav-unshown { display: none; }
.mobile-only-logo { display: none; }

/* --------------------------------------------------
   Hamburger Menu
-------------------------------------------------- */
@media (max-width: 1024px) {
    .header-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--sakura-pale);
        z-index: 100;
        transition: 0.4s cubic-bezier(0.86, 0, 0.07, 1);
        padding-top: 60px;
    }

    .nav-mobile-logo.mobile-only-logo {
        display: block;
        text-align: center;
        margin-bottom: 30px;
    }

    .nav-mobile-logo img {
        height: 50px;
        width: auto;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
    }

    .nav-list li {
        width: 100%;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    .nav-list li a {
        display: block;
        padding: 20px;
        text-align: center;
    }

    #nav-open {
        display: block;
        width: 30px;
        height: 22px;
        position: relative;
        z-index: 110;
        cursor: pointer;
    }

    #nav-open span, #nav-open span::before, #nav-open span::after {
        content: "";
        position: absolute;
        width: 100%;
        height: 2px;
        background: var(--text-color);
        display: block;
        transition: 0.3s;
    }

    #nav-open span { top: 10px; }
    #nav-open span::before { top: -10px; }
    #nav-open span::after { top: 10px; }

    #nav-input:checked ~ .header-nav { right: 0; }
    #nav-input:checked ~ #nav-open span { background: transparent; }
    #nav-input:checked ~ #nav-open span::before { transform: rotate(45deg); top: 0; }
    #nav-input:checked ~ #nav-open span::after { transform: rotate(-45deg); top: 0; }

    #nav-input:checked ~ #nav-close {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 90;
    }
}

/* --------------------------------------------------
   Main Sections
-------------------------------------------------- */
.hero { background-color: var(--sakura-pale); padding: 100px 0; text-align: center; }

/* 修正：ロゴとキャッチコピーの間の余白を調整 */
.hero-logo-main {
    margin-bottom: 40px;
}

.hero-title { font-size: 2.6rem; line-height: 1.5; margin-bottom: 30px; font-weight: 700; }
.hero-title span { display: block; }
.hero-text { font-size: 1.15rem; margin-bottom: 20px; color: var(--text-light); }
.hero-subtext { font-weight: 700; color: var(--accent-color); margin-bottom: 45px; }
.hero-cta { display: flex; justify-content: center; gap: 20px; }

.service-flex { 
    display: block;
    max-width: 100%; 
}

.service-block.card {
    max-width: 100%;
    margin: 0 auto;
}

.service-block-title { font-size: 1.5rem; margin-bottom: 20px; color: var(--accent-color); border-bottom: 2px solid var(--primary-color); display: inline-block; font-weight: 700; }
.service-list li { position: relative; padding-left: 25px; margin-bottom: 12px; }
.service-list li::before { content: "●"; position: absolute; left: 0; color: var(--accent-color); font-size: 0.8rem; }

.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.feature-card { padding: 30px; border: 1px solid var(--border-color); border-radius: 8px; }
.feature-card h4 { color: var(--accent-color); margin-bottom: 15px; font-size: 1.2rem; font-weight: 700; }

/* ごあいさつ セクション */
.greeting-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.greeting-content p {
    margin-bottom: 2rem;
}

.greeting-content p:last-child {
    margin-bottom: 0;
}

/* 資格者紹介 セクション */
.profile-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.profile-label { display: inline-block; background: var(--bg-light); padding: 2px 12px; border-radius: 4px; font-size: 0.8rem; margin-bottom: 10px; }
.profile-name { font-size: 1.5rem; margin-bottom: 15px; font-weight: 700; }

.name-kana {
    font-size: 0.9rem;
    font-weight: 500;
    margin-left: 0.5em;
}

/* コンタクト セクション */
.contact { text-align: center; }
.contact-title { font-size: 2.2rem; line-height: 1.5; margin-bottom: 30px; font-weight: 700; }
.contact-title span { display: inline-block; }
.contact-text { margin-bottom: 50px; }
.contact-info-box { display: flex; justify-content: center; gap: 50px; margin-bottom: 50px; flex-wrap: wrap; }
.contact-info-item .tel a { display: flex; align-items: center; justify-content: center; font-size: 1.4rem; font-weight: 700; }

/* --------------------------------------------------
   Responsive (Small Devices)
-------------------------------------------------- */
@media (max-width: 768px) {
    .section-padding { padding: 60px 0; }
    .section-title { font-size: 1.6rem; }

    .section-desc {
        font-size: 1rem;
        text-align: left;
        margin-bottom: 30px;
        padding: 0 10px;
    }
    
    .hero-logo-main { margin-bottom: 30px; }
    .hero-title { font-size: 1.6rem; }
    .hero-cta { flex-direction: column; align-items: center; }
    
    .service-flex { display: block; }
    
    .feature-grid { grid-template-columns: 1fr; }
    
    .profile-grid { grid-template-columns: 1fr; }
    .profile-name { line-height: 1.4; }
    .name-kana {
        display: block;
        margin-left: 0;
        margin-top: 5px;
        font-size: 0.85rem;
    }
    
    .contact-title { font-size: 1.5rem; }
    .contact-info-box { flex-direction: column; gap: 30px; }
}

/* --------------------------------------------------
   Footer
-------------------------------------------------- */
.footer { background: #4a4a4a; color: #ffffff; padding: 60px 0 40px; }
.footer-inner { text-align: center; }
.footer-office-name { font-size: 1.5rem; font-weight: 700; margin-bottom: 5px; letter-spacing: 0.05em; }
.footer-office-en { font-size: 0.8rem; margin-bottom: 25px; opacity: 0.7; letter-spacing: 0.1em; }
.footer-details p { font-size: 0.9rem; color: #dddddd; margin-bottom: 8px; line-height: 1.6; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 30px; }
.copyright { font-size: 0.8rem; color: #bbbbbb; }

/* --------------------------------------------------
   Page Top Button
-------------------------------------------------- */
.page-top-btn {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}
.page-top-btn::after { content: "▲"; color: #fff; }
.page-top-btn.is-active { opacity: 1; visibility: visible; }