/* リセットとベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FFE066;
    --secondary-color: #87CEEB;
    --accent-color: #FFF9C4;
    --text-dark: #4a4a4a;
    --text-light: #6a6a6a;
    --bg-light: #fafafa;
    --white: #ffffff;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    cursor: default;
}

* {
    cursor: default;
}

a, button, .btn, .location-button, .menu-toggle {
    cursor: pointer !important;
}

.service-card, .work-card {
    cursor: default !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヘッダー */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-soft);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 500;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ヒーローセクション */
.hero {
    margin-top: 80px;
    padding: 60px 0;
    background: var(--white);
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
}

.hero-left {
    position: relative;
    background: linear-gradient(135deg, #FFF9C4 0%, #E0F7FA 100%);
    border-radius: 20px;
    padding: 60px 40px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.hero-content.visible {
    opacity: 1;
    pointer-events: auto;
}

.hero-content.default-state {
    text-align: center;
    margin-top: 30px;
}

.hero-content.service-state {
    text-align: left;
}

.hero-title {
    color: var(--text-dark);
    transition: all 0.2s ease;
}

.hero-content.default-state .hero-title {
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.hero-content.service-state .hero-title {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.hero-description {
    color: var(--text-light);
    transition: all 0.2s ease;
}

/* サービス詳細モーダル */
.service-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1200;
}

.service-modal.active {
    display: flex;
}

.service-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.service-modal-content {
    position: relative;
    background: var(--white);
    border-radius: 16px;
    padding: 3rem 3rem 2.8rem;
    max-width: 92%;
    max-height: 70vh;
    box-shadow: var(--shadow-hover);
    z-index: 1;
    overflow-y: auto;
}

.service-modal-close {
    position: absolute;
    top: 0.4rem;
    right: 0.7rem;
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--text-light);
    cursor: pointer;
}

.service-modal-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.service-modal-description {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.8;
}

body.service-modal-open {
    overflow: hidden;
}

.hero-content.default-state .hero-description {
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1.3;
}

.hero-content.service-state .hero-description {
    font-size: 0.95rem;
    line-height: 1.8;
}

.hero-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

.circle-1 {
    width: 200px;
    height: 200px;
    background: var(--primary-color);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.circle-2 {
    width: 150px;
    height: 150px;
    background: var(--secondary-color);
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.circle-3 {
    width: 180px;
    height: 180px;
    background: var(--accent-color);
    bottom: 10%;
    left: 50%;
    animation-delay: 4s;
}

.hero-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-services-title {
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--text-dark);
    margin-bottom: 0;
}

.hero-services-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ボタン */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: rgba(255, 224, 102, 0.15);
}


/* セクション共通 */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 300;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
    transition: color 0.6s ease;
}

/* 見出しを中央寄せしつつ、幅は文字分だけにする（アニメーションを文字幅のみに） */
.section-title {
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0.5em;
    padding-right: 0.5em;
    padding-bottom: 2px; /* アンダーラインとの間を確保 */
}

/* セクション見出し：アンダーラインが左から伸び、右に縮んで消える */
.section-title.section-title-animate {
    position: relative;
    z-index: 0;
}

.section-title.section-title-animate::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px; /* 文字とラインの間をあける */
    height: 4px; /* 太さを2/3に（6px→4px） */
    width: 0;
    z-index: -1;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    pointer-events: none;
}

.section-title.section-title-animate.visible::after {
    animation:
        section-title-extend-hold 0.56s ease-out forwards,
        section-title-shrink 0.26s ease-in 0.56s forwards;
}

/* 出現：左から伸び（時間は2/3程度）＋キープ。イージングは最後だけ → ease-out */
@keyframes section-title-extend-hold {
    0% {
        left: 0;
        right: auto;
        width: 0%;
    }
    41% {
        left: 0;
        right: auto;
        width: 100%;
    }
    100% {
        left: 0;
        right: auto;
        width: 100%;
    }
}

/* 消える：右に縮む。イージングは最初だけ → ease-in */
@keyframes section-title-shrink {
    0% {
        left: auto;
        right: 0;
        width: 100%;
    }
    100% {
        left: auto;
        right: 0;
        width: 0%;
    }
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* サービスカード（ヒーロー右側用） */
.service-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: #FFF9C4;
    transform: translateX(-5px);
}

.service-card h3 {
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.85rem;
    margin: 0;
}

/* 実績セクション */
.works {
    background: var(--bg-light);
    transition: background-color 0.1s ease;
}

.works .section-title {
    color: #000000;
}

.works-content {
    max-width: 800px;
    margin: 3rem auto 0;
    text-align: center;
}

.works-content p {
    font-size: 1.1rem;
    color: #D9D9D9 !important;
    line-height: 2;
    margin-bottom: 1.5rem;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.work-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.work-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.work-image {
    width: 100%;
    height: 250px;
    border-radius: 20px 20px 0 0;
}

.work-content {
    padding: 2rem;
}

.work-content h3 {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

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

/* 対象拠点セクション */
.locations {
    background: #F8FEFF;
}

.locations-content {
    max-width: 800px;
    margin: 3rem auto 0;
    text-align: center;
}

.locations-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 2;
    margin-bottom: 1.5rem;
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.location-card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.location-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary-color);
}

.location-button {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: none;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.location-button:hover {
    background: rgba(255, 255, 255, 0.5);
}

.location-button.active .location-arrow {
    transform: rotate(180deg);
}

.location-icon {
    font-size: 1.5rem;
    margin: 0;
    opacity: 0;
    transform: translateY(-50px) scale(0.5);
    transition: none;
}

.location-card.pin-drop .location-icon {
    animation: pinDrop 0.36s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.location-card.pin-pull .location-icon {
    animation: pinPull 0.24s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards;
}

@keyframes pinDrop {
    0% {
        opacity: 0;
        transform: translateY(-50px) scale(0.5) rotate(-10deg);
    }
    50% {
        opacity: 1;
        transform: translateY(5px) scale(1.1) rotate(5deg);
    }
    70% {
        transform: translateY(-2px) scale(0.95) rotate(-2deg);
    }
    85% {
        transform: translateY(1px) scale(1.02) rotate(1deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
    }
}

@keyframes pinPull {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
    }
    30% {
        transform: translateY(-2px) scale(1.1) rotate(-3deg);
    }
    100% {
        opacity: 0;
        transform: translateY(-50px) scale(0.5) rotate(10deg);
    }
}

.location-button h3 {
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    color: var(--text-dark);
}

.location-arrow {
    font-size: 0.8rem;
    color: var(--text-light);
    transition: transform 0.3s ease;
    margin-top: 0.25rem;
}

.location-content {
    grid-column: 1 / 6;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-hover);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
    padding: 0 1.5rem;
    opacity: 0;
    margin: 0;
    display: none;
}

.location-content.active {
    display: block;
    height: 200px;
    max-height: 200px;
    padding: 1.5rem;
    opacity: 1;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    overflow-y: scroll;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) rgba(0, 0, 0, 0.1);
}

/* WebKit系ブラウザ（Chrome、Safari）用のスクロールバー */
.location-content.active::-webkit-scrollbar {
    width: 8px;
    display: block;
}

.location-content.active::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.location-content.active::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.location-content.active::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* 上段のカード（0-4）の吹き出しは2行目に配置 */
.location-content[data-content="0"].active,
.location-content[data-content="1"].active,
.location-content[data-content="2"].active,
.location-content[data-content="3"].active,
.location-content[data-content="4"].active {
    grid-row: 2;
}

/* 下段のカード（5-9）の吹き出しは3行目に配置 */
.location-content[data-content="5"].active,
.location-content[data-content="6"].active,
.location-content[data-content="7"].active,
.location-content[data-content="8"].active,
.location-content[data-content="9"].active {
    grid-row: 3;
}

.location-content::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 10%;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--white);
}

.location-content p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.9rem;
    margin: 0;
}

.location-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.location-content li {
    color: var(--text-light);
    line-height: 1.4;
    font-size: 0.8rem;
    padding: 0.15rem 0;
    padding-left: 1rem;
    position: relative;
}

.location-content li::before {
    content: '・';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.location-content li:has(strong)::before {
    content: '';
}

/* 会社概要セクション */
.company {
    background: var(--white);
}

.company-content {
    max-width: 900px;
    margin: 0 auto;
}

.company-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 2;
}

.company-info {
    display: grid;
    gap: 0.8rem;
    margin-bottom: 3rem;
}

.info-item {
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
}

.info-item h4 {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
    color: var(--text-dark);
}

.info-item p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.85rem;
}

.map-container {
    margin-top: 0.8rem;
    border-radius: 10px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 200px;
    border: none;
    border-radius: 10px;
}

.company-message {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #FFF9C4 0%, #E0F7FA 100%);
    border-radius: 20px;
}

.company-message h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.company-message p {
    color: var(--text-light);
    line-height: 2;
}

/* スタッフ募集セクション */
.recruit {
    background: var(--bg-light);
}

.recruit-content {
    max-width: 900px;
    margin: 0 auto;
}

.recruit-message {
    text-align: center;
    margin-bottom: 3rem;
}

.recruit-message p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 2;
}

.recruit-positions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.position-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.position-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-color);
}

.position-card h3 {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
}

.position-card p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.75rem;
}

.recruit-details {
    margin-top: 3rem;
    margin-bottom: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.recruit-info-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.3rem;
}

.detail-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding-bottom: 1.3rem;
    border-bottom: 1px solid #e0e0e0;
}

.detail-section:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

@media (min-width: 768px) {
    .recruit-info-card {
        gap: 2rem;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
        position: relative;
    }

    .recruit-info-card::before {
        content: '';
        position: absolute;
        left: calc(150px);
        top: 0;
        bottom: 0;
        width: 1px;
        background: #e0e0e0;
    }

    .detail-section {
        grid-template-columns: 150px auto;
        gap: 1.5rem;
        padding-bottom: 0;
        border-bottom: none;
    }

    .detail-section:last-child {
        padding-bottom: 0;
        border-bottom: none;
    }

    .detail-section dt {
        white-space: nowrap;
    }

    .detail-section dd {
        white-space: nowrap;
    }
}

.detail-section dt {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
}

.detail-section dd {
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.8;
    margin: 0;
}

.detail-section dd p {
    margin-bottom: 0.5rem;
}

.detail-section dd p:last-child {
    margin-bottom: 0;
}

.detail-section ul {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
}

.detail-section li {
    color: var(--text-light);
    font-size: 0.8rem;
    line-height: 1.8;
    padding-left: 1rem;
    position: relative;
}

.detail-section li::before {
    content: '';
    position: absolute;
    left: 0;
}

.recruit-message-text {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 2rem;
    line-height: 1.8;
}

/* お問い合わせセクション */
.contact {
    background: linear-gradient(135deg, #FFFEF8 0%, #F5FBFF 100%);
}

.contact-content {
    max-width: 600px;
    margin: 3rem auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
}

.contact-phone {
    text-align: center;
}

.contact-phone h3 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.phone-number {
    font-size: 2rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.phone-hours {
    font-size: 1rem;
    color: var(--text-light);
    margin: 0;
}

.contact-form-link {
    flex-shrink: 0;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--bg-light);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
}

.form-group textarea {
    resize: vertical;
}

.contact-form .btn-primary {
    width: 100%;
    margin-top: 1rem;
}

/* フッター */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    font-weight: 500;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* スクロールアニメーション */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-soft);
        padding: 2rem 0;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .hero-left {
        min-height: 150px;
        padding: 16px 18px;
    }

    .hero-content-wrapper {
        min-height: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-content {
        position: static;
    }

    .hero-content.default-state {
        margin-top: 0;
    }

    .hero-content.service-state {
        display: none;
    }

    .hero-content.default-state .hero-title {
        font-size: 0.8rem;
        margin-bottom: 0.4rem;
    }

    .hero-content.default-state .hero-description {
        font-size: 1.4rem;
        line-height: 1.25;
    }

    .hero-content.service-state .hero-title {
        font-size: 1.2rem;
    }

    .hero-content.service-state .hero-description {
        font-size: 0.85rem;
    }

    .hero-subtitle {
        font-size: 2rem;
    }

    .hero-services-title {
        font-size: 1.5rem;
    }

    /* 教育品質セクション（スマホ時のみ左寄せ） */
    .works .section-title,
    .works-content {
        text-align: left;
    }

    /* 対応実績セクション（スマホ時のみ左寄せ） */
    .locations .section-title,
    .locations-content {
        text-align: left;
    }

    .section-title {
        font-size: 1.6rem;
    }
    
    .works-grid {
        grid-template-columns: 1fr;
    }
    
    .locations-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
    }

    /* スマホ：詳細は常に全幅・対応するカードの直下の行に配置（各エリア見出しのレイアウト崩れ防止） */
    .location-content.active {
        grid-column: 1 / -1;
    }
    .location-content[data-content="0"].active,
    .location-content[data-content="1"].active {
        grid-row: 2;
    }
    .location-content[data-content="2"].active,
    .location-content[data-content="3"].active {
        grid-row: 3;
    }
    .location-content[data-content="4"].active,
    .location-content[data-content="5"].active {
        grid-row: 4;
    }
    .location-content[data-content="6"].active,
    .location-content[data-content="7"].active {
        grid-row: 5;
    }
    .location-content[data-content="8"].active,
    .location-content[data-content="9"].active {
        grid-row: 6;
    }

    /* 各エリア見出し（カード内h3）がグリッドで縮まらないようにする */
    .location-button {
        min-width: 0;
    }
    .location-button h3 {
        min-width: 0;
        overflow-wrap: break-word;
        word-break: normal;
    }
    
    .recruit-positions {
        grid-template-columns: 1fr;
    }

    .contact-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .contact-phone {
        text-align: center;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }

    .circle-1,
    .circle-2,
    .circle-3 {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1rem;
    }
    
    .hero-subtitle {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .service-card,
    .work-card {
        padding: 1.5rem;
    }
}

