/* ==========================================================================
   リセット & ベース設定
   ========================================================================== */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Rounded Mplus 1c', sans-serif;
    font-weight: 500;
    line-height: 1.8;
    color: #5F4D48;
    background-color: #FFFADE;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
    opacity: 0.8;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in {
    animation: fadeIn 1s ease-out forwards;
}

/* スムーズなアニメーション遅延 */
.news-item:nth-child(1) { animation-delay: 0.1s; }
.news-item:nth-child(2) { animation-delay: 0.2s; }
.news-item:nth-child(3) { animation-delay: 0.3s; }
.news-item:nth-child(4) { animation-delay: 0.4s; }

.facility-card:nth-child(1) { animation-delay: 0.1s; }
.facility-card:nth-child(2) { animation-delay: 0.2s; }
.facility-card:nth-child(3) { animation-delay: 0.3s; }

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }

/* ==========================================================================
   共通レイアウト
   ========================================================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}
.hamburger{
    display: none;
}
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

/* ==========================================================================
   セクション共通
   ========================================================================== */

section {
    padding: 100px 0;
    position: relative;
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
}

.section-heading {
    font-size: 2rem;
    font-weight: 600;
    text-align: left;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #6B4513;
}

.section-heading.center {
    justify-content: center;
    text-align: center;
}

.section-heading .deco-heading {
    width: 60px;
    height: auto;
}

@media (max-width: 768px) {
    .section-heading {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }
    
    .section-heading .deco-heading {
        width: 40px;
    }
}

/* ==========================================================================
   ボタン
   ========================================================================== */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1.125rem;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.button img {
    width: 20px;
    height: auto;
}

.button-primary {
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
    color: #fff;
}

.button-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(76, 175, 80, 0.4);
    opacity: 1;
}

.button-secondary {
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    color: #fff;
}

.button-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(139, 69, 19, 0.4);
    opacity: 1;
}

.button-tertiary {
    background: linear-gradient(135deg, #FF9800 0%, #FFB74D 100%);
    color: #fff;
}

.button-tertiary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 152, 0, 0.4);
    opacity: 1;
}

@media (max-width: 768px) {
    .button {
        padding: 15px 30px;
        font-size: 1rem;
    }
}

/* ==========================================================================
   ヘッダー
   ========================================================================== */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #FFFADE;
    border-bottom-right-radius: 40px;
    height: 87px;
}

.header-inner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
    padding: 0;
    position: relative;
}

/* ロゴ専用の背景ボックス */
.logo-wrapper {
    background-color: #FFFADE;
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px 50px 19px 50px;
    border-bottom-right-radius: 30px;
    z-index: 10;
    height: 150px;
}

/* ロゴ背景とヘッダーをつなぐ装飾 */
.logo-wrapper::after {
    content: '';
    position: absolute;
    right: -30px;
    top: 86.9px;
    width: 30px;
    height: 36px;
    background-image: url('../../assets/img/logo_bg.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-pc {
    display: block;
}

.logo-sp {
    display: none;
}

.logo-img {
    width: 167px;
    height: 111px;
    display: block;
}

.nav {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 60px 0 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 45px;
    margin: 0;
    padding: 0;
    align-items: center;
    height: 100%;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 700;
    color: #5D4037;
    padding: 0;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.nav-link:hover {
    opacity: 0.7;
}

@media (max-width: 1200px) {
    .logo-wrapper {
        padding: 18px 44px 17px 44px;
        border-bottom-right-radius: 28px;
        height: 135px;
    }
    
    .logo-wrapper::after {
        right: -28px;
        top: 86.9px;
        width: 28px;
        height: 34px;
    }
    
    .logo-img {
        width: 150px;
        height: 100px;
    }
    
    .nav {
        padding: 0 40px 0 0;
    }
    
    .nav-menu {
        gap: 35px;
    }
    
    .nav-link {
        font-size: 0.938rem;
        gap: 8px;
    }
    
    .nav-icon {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 1024px) {
    .header {
        height: 75px;
    }
    
    .logo-wrapper {
        padding: 16px 38px 14px 38px;
        border-bottom-right-radius: 26px;
        height: 115px;
    }
    
    .logo-wrapper::after {
        right: -26px;
        top: 74.9px;
        width: 26px;
        height: 31px;
    }
    
    .logo-img {
        width: 127px;
        height: 85px;
    }
    
    .nav {
        padding: 0 30px 0 0;
    }
    
    .nav-menu {
        gap: 25px;
    }
    
    .nav-link {
        font-size: 0.875rem;
        gap: 6px;
    }
    
    .nav-icon {
        width: 28px;
        height: 28px;
    }
}


@media (max-width: 768px) {
    /* この中のスタイルはsp.cssに移動 */
}

/* ==========================================================================
   ヒーローセクション
   ========================================================================== */

.hero {
    position: relative;
    padding: 0 3vw 103px;
    overflow: visible;
    margin-top: 0;
    background-image: url('../../assets/img/deco08.svg');
    background-size: 300px auto;
    background-repeat: no-repeat;
    background-position: right 0 bottom 100px;
}

.hero-image {
    max-height: calc(100vh - 6vw);
    margin: 0 auto;
    position: relative;
    border-radius: 50px;
    overflow: hidden;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* メインビジュアル前面の装飾 */
.hero-deco-overlay {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.hero-deco-front {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.hero-buttons {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: flex-end;
    gap: 25px;
    z-index: 100;
    width: 100%;
    max-width: 1200px;
    justify-content: center;
    padding: 0 20px;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform-origin: center bottom; /* 下側を基点に縮小 */
}

/* スクロール時の追従・縮小スタイル */
.hero-buttons.is-fixed {
    position: fixed;
    bottom: -50px; /* -40pxから-50pxに変更 */
    transform: translateX(-50%) scale(0.7); /* バランスを維持したまま70%に縮小 */
    z-index: 2000;
    max-width: 1200px; /* scaleで縮小するため、元の幅指定を維持 */
}

.hero-button {
    display: flex;
    flex-direction: row;
    align-items: flex-start; /* 上詰め */
    justify-content: center;
    gap: 15px;
    padding: 20px 50px 70px 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center top;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    min-width: 440px;
}

/* 個別の縮小指定を削除（scaleで一括処理するため） */
.hero-button.meguminosono {
    background-image: url('../../assets/img/bg_btn_bottom01.svg');
}

.hero-button.nijiiro {
    background-image: url('../../assets/img/bg_btn_bottom02.svg');
}

.hero-button:hover {
    transform: translateY(-8px) translateX(0);
}

.button-image {
    width: 117px;
    height: 117px;
    overflow: hidden;
    flex-shrink: 0;
    margin-top: -30px;
    transition: all 0.4s ease;
}

.button-image img {
    width: 100%;
    height: auto;
}

.button-content {
    flex: 1;
    text-align: left;
    padding-left: 8px;
    padding-top: 10px;
}

.button-label {
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    transition: all 0.4s ease;
}

.button-title {
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
    transition: all 0.4s ease;
}

/* --- 左側ボタン（めぐみの園）：テキストサイズを上下同じにする --- */
.hero-button.meguminosono .button-label,
.hero-button.meguminosono .button-title {
    color: #fff;
    font-size: 23px;
}

/* --- 右側ボタン（にじいろ分園）：デザイン通りのサイズ差とカラー --- */
.hero-button.nijiiro .button-label {
    color: #8B572A;
    font-size: 14px;
}

.hero-button.nijiiro .button-title {
    color: #fff;
    font-size: 23px;
}

.hero-button .button-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: #fff;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 15px;
    transition: all 0.4s ease;
}

.hero-button .button-arrow img {
    width: 12px;
    height: auto;
}

@media (max-width: 1024px) {
    .hero {
        background-size: 240px auto;
        background-position: right 0 bottom 80px;
    }
    
    .hero-image {
        border-radius: 40px;
    }
    
    .hero-buttons {
        gap: 30px;
        max-width: 750px;
    }
    
    .hero-buttons {
        bottom: 20px;
        gap: 15px;
        padding: 0 15px;
    }

    .hero-buttons.is-fixed {
        max-width: 90vw;
    }

    .hero-button {
        min-width: 320px;
        height: 100px;
        padding: 10px 25px;
        gap: 10px;
    }
    
    .hero-buttons.is-fixed .hero-button {
        min-width: 280px;
        height: 80px;
    }

    .button-image {
        width: 70px;
        height: 70px;
    }
    
    .hero-buttons.is-fixed .button-image {
        width: 50px;
        height: 50px;
    }

    .button-label {
        font-size: 0.875rem;
    }
    
    .button-title {
        font-size: 1.25rem;
    }

    .hero-button.nijiiro .button-label {
        font-size: 0.75rem;
    }

    .hero-button .button-arrow {
        width: 42px;
        height: 42px;
    }
    
    .hero-button .button-arrow img {
        width: 16px;
    }
}

@media (max-width: 768px) {
    .hero {
        background-size: 180px auto;
        background-position: right 0 bottom 60px;
    }
    
    .hero-image {
        border-radius: 30px;
    }
    
    .hero-buttons {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        flex-direction: column;
        align-items: center;
        margin: -40px auto 0;
        gap: 15px;
        width: 100%;
        max-width: 500px;
        padding: 0 20px;
    }

    .hero-buttons.is-fixed {
        position: fixed;
        bottom: 15px;
        left: 50%;
        transform: translateX(-50%);
        max-width: 90vw;
        margin: 0;
        flex-direction: row;
    }

    .hero-button {
        min-width: 300px;
        width: 100%;
        height: 110px;
        padding: 15px 25px;
    }

    .hero-buttons.is-fixed .hero-button {
        min-width: 0;
        flex: 1;
        height: 70px;
        padding: 5px 15px;
        gap: 8px;
    }

    .hero-buttons.is-fixed .button-image {
        width: 45px;
        height: 45px;
    }

    .hero-buttons.is-fixed .button-title {
        font-size: 0.938rem;
    }

    .hero-buttons.is-fixed .button-arrow {
        width: 30px;
        height: 30px;
    }
}

/* ==========================================================================
   理念（メッセージ）セクション
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;700&display=swap'); /* Message用フォント */

.philosophy {
    background-color: #FFFADE;
    padding: 0 0 120px 0;
    position: relative;
    overflow: hidden;
}

.philosophy .container {
    max-width: none;
    width: 78vw;
    padding: 0;
}

.philosophy-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* gap: 60px; */
    flex-wrap: wrap; /* Add flex-wrap to prevent columns from breaking on smaller screens */
}

.philosophy-text {
    flex: 1;
    max-width: 600px;
}

.section-title-wrap {
    margin-bottom: 40px;
}

.section-title-en {
    display: block;
    width: 200px;
    height: auto;
    margin-bottom: 10px;
}

.section-title-en img {
    width: 100%;
    height: auto;
}

.section-title-main {
    font-size: 2.25rem;
    font-weight: 600;
    color: #4A4035;
    line-height: 1.5;
}

.section-title-main .marker {
    background: linear-gradient(transparent 60%, #FFEF9E 60%);
    display: inline-block;
    padding: 0 5px;
}

.philosophy-description {
    font-size: 1.125rem;
    line-height: 2.2;
    color: #4A4035;
}

.philosophy-description p {
    margin-bottom: 30px;
}

.philosophy-images-wrap {
    flex: 1;
    position: relative;
    padding: 40px 0 40px 40px;
    margin-right: -12vw;
}

.message-main-image {
    position: relative;
    z-index: 2;
    width: 52vw;
}

.message-main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.message-bg-deco {
    position: absolute;
    top: 12%;
    left: 0;
    transform: none;
    width: 26vw;
    height: auto;
    z-index: 1;
}

.message-front-deco {
    position: absolute;
    bottom: -20px;
    right: 5vw;
    width: 9vw;
    height: auto;
    z-index: 3;
}

@media (max-width: 1024px) {
    .philosophy-content {
        gap: 40px;
    }
    
    .section-title-main {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .philosophy {
        padding: 80px 0;
    }
    
    .philosophy-content {
        flex-direction: column;
        text-align: center;
    }
    
    .philosophy-text {
        max-width: 100%;
    }
    
    .section-title-main {
        font-size: 1.5rem;
    }
    
    .philosophy-images-wrap {
        width: 100%;
        max-width: 500px;
        margin: 40px auto 0;
    }
    
    .message-front-deco {
        width: 100px;
    }
}

/* ==========================================================================
   お知らせ（News）セクション
   ========================================================================== */

.news {
    background-image: url('../../assets/img/bg_news.svg');
    background-repeat: no-repeat;
    background-position: top 25px center;
    background-size: 100% auto;
    background-color: transparent; 
    padding: 255px 0 250px;
    position: relative;
    overflow: hidden;
}

/* コンテンツが下側に伸びた場合に下側を白くする */
.news::before {
    content: "";
    position: absolute;
    top: 500px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #fff;
    z-index: -1;
}

.news-container {
    max-width: 900px; 
    position: relative;
    z-index: 5;
}

/* 装飾画像：deco13が左、deco12が右 */
.news-deco-left {
    position: absolute;
    top: 15%;
    left: -50px;
    width: 250px;
    height: auto;
    z-index: 1;
}

.news-deco-right {
    position: absolute;
    top: 0%;
    right: 15%;
    width: 120px;
    height: auto;
    z-index: 1;
}

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

.section-title-en-sub {
    display: block;
    color: #FBB03B;
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 0;
}

/* 重要なお知らせ枠 */
.news-important-note {
    background-color: #FFECED;
    border: 1px solid #F2A3A5;
    padding: 20px 30px;
    margin-bottom: 40px;
    text-align: center;
    border-radius: 4px;
}

.news-important-note p {
    color: #4A4035;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

/* ニュースリスト */
.news-list {
    margin-bottom: 60px;
    border-top: 1px solid #FFE0B2;
}

.news-item {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 25px 10px;
    border-bottom: 1px solid #FFE0B2;
    background-color: transparent;
    border-radius: 0;
    transition: background-color 0.3s ease;
}

.news-item:hover {
    background-color: rgba(255, 224, 178, 0.2);
    transform: none;
}

.news-date {
    font-size: 1.125rem;
    color: #4A4035;
    font-weight: 500;
    min-width: 110px;
}

.news-category {
    background-color: #FCDCB7;
    color: #4A4035;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 6px 25px;
    border-radius: 20px;
    text-align: center;
    min-width: 100px;
}

.news-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #4A4035;
    flex: 1;
}

.news-title a:hover {
    color: #FBB03B;
}

/* 共通ボタン（丸形イエロー） */
.button-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #F4C542;
    color: #4A4035;
    padding: 18px 90px 18px 40px;
    border-radius: 40px;
    font-size: 1.125rem;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
}

.button-more::after {
    content: "";
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 12px;
    background-image: url('../../assets/img/arrow_brown.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    transition: all 0.3s ease;
}

.button-more:hover {
    background-color: #EBB02D;
    transform: translateY(-3px);
    opacity: 1;
}

.button-more:hover::after {
    transform: translateY(-50%) translateX(5px);
}

.news-button-wrap {
    text-align: center;
}

@media (max-width: 768px) {
    .news {
        padding: 80px 0;
    }
    
    .news-deco-left {
        width: 150px;
        left: -30px;
    }
    
    .news-deco-right {
        width: 80px;
    }

    .news-item {
        flex-wrap: wrap;
        gap: 15px;
        padding: 20px 0;
    }

    .news-date {
        font-size: 1rem;
        min-width: auto;
    }

    .news-category {
        padding: 4px 15px;
        font-size: 0.75rem;
    }

    .news-title {
        width: 100%;
        font-size: 1rem;
    }

    .button-more {
        padding: 15px 40px;
        width: 100%;
    }
}

/* ==========================================================================
   施設セクション（めぐみの園 & にじいろ分園）
   ========================================================================== */

.meguminosono-section {
    background-image: url('../../assets/img/bg_meguminosono.svg');
    background-repeat: no-repeat;
    background-position: top 62px center;
    background-size: 100% auto;
    background-color: transparent;
    padding: 220px 0 300px;
    position: relative;
    overflow: hidden;
    margin-top: -200px;
    z-index: 1;
}

.meguminosono-section::before {
    content: "";
    position: absolute;
    top: 200px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #E2EEDD;
    z-index: -1;
}

.facility-deco-right {
    position: absolute;
    top: 0;
    right: 15%;
    width: 126px;
    height: auto;
    z-index: 1;
}

.facility-title-wrap {
    position: relative;
    margin-bottom: 20px;
}

.facility-title-en {
    position: absolute;
    top: -130px;
    left: -130px;
    width: 590px;
    height: auto;
    opacity: 0.6;
    z-index: 1;
}

.facility-title-main {
    font-size: 3rem;
    font-weight: 600;
    color: #4A4035;
    position: relative;
    z-index: 2;
}

/* 丸形カードグリッド */
.facility-circle-grid {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    gap: 40px;
    margin-bottom: 80px;
    padding-top: 0;
}

.facility-circle-card {
    flex: 1;
    max-width: 350px;
    text-align: center;
    transition: transform 0.3s ease;
}

/* 左から右上に斜めになるよう配置 */
.facility-circle-card:nth-child(1) {
    transform: translateY(60px);
}

.facility-circle-card:nth-child(2) {
    transform: translateY(-10px);
}

.facility-circle-card:nth-child(3) {
    transform: translateY(-80px);
}

.facility-circle-card:hover {
    opacity: 0.8;
}

.facility-circle-card:nth-child(1):hover {
    transform: translateY(50px);
}

.facility-circle-card:nth-child(2):hover {
    transform: translateY(-20px);
}

.facility-circle-card:nth-child(3):hover {
    transform: translateY(-90px);
}

.circle-image {
    width: 100%;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: none;
}

.circle-image img {
    width: 100%;
    display: block;
}

.circle-content {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

.circle-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #4A4035;
}

.circle-arrow-btn {
    width: 40px;
    height: 40px;
    background-color: #5BA033;
    border-radius: 50%;
    position: relative;
    transition: background-color 0.3s ease;
}

.circle-arrow-btn::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 10px;
    background-image: url('../../assets/img/arrow_white.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

.facility-circle-card:hover .circle-arrow-btn {
    background-color: #4A8328;
}

.facility-circle-card:hover .circle-arrow-btn::after {
    transform: translate(-40%, -50%);
}

/* 共通ボタン（グリーン） */
.button-more-green {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #5BA033;
    color: #fff;
    padding: 18px 130px 18px 40px;
    border-radius: 40px;
    font-size: 1.125rem;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
}

.button-more-green::after {
    content: "";
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 12px;
    background-image: url('../../assets/img/arrow_white.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

.button-more-green:hover {
    background-color: #4A8328;
    transform: translateY(-3px);
    opacity: 1;
}

.button-more-green:hover::after {
    transform: translateY(-50%) translateX(5px);
}

/* 共通ボタン（オレンジ） */
.button-more-orange {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #F4AB42;
    color: #4A4035;
    padding: 18px 130px 18px 40px;
    border-radius: 40px;
    font-size: 1.125rem;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
}

.button-more-orange::after {
    content: "";
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 12px;
    background-image: url('../../assets/img/arrow_brown.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

.button-more-orange:hover {
    background-color: #EBB02D;
    transform: translateY(-3px);
    opacity: 1;
}

.button-more-orange:hover::after {
    transform: translateY(-50%) translateX(5px);
}

.facility-button-wrap {
    text-align: right;
}

/* ==========================================================================
   にじいろ分園セクション
   ========================================================================== */

.nijiiro-section {
    background-image: url('../../assets/img/bg_nijiiro.svg');
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 100% auto;
    background-color: transparent;
    padding: 220px 0 170px;
    position: relative;
    overflow: hidden;
    margin-top: -250px;
    z-index: 1;
}

.nijiiro-section::before {
    content: "";
    position: absolute;
    top: 220px;
    left: 0;
    right: 0;
    bottom: 12vw;
    background-color: #FFE5BF;
    z-index: -1;
}

.nijiiro-section::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 12.1vw;
    bottom: 0;
    background-image: url('../../assets/img/bg_nijiiro.svg');
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: 100% auto;
    z-index: -1;
}

.nijiiro-title-wrap {
    position: relative;
    margin-bottom: 20px;
    text-align: right;
}

.nijiiro-title-en {
    position: absolute;
    top: -70px;
    right: -190px;
    width: 590px;
    height: auto;
    opacity: 0.6;
    z-index: 1;
    text-align: left;
}

.nijiiro-title-main {
    font-size: 3rem;
    font-weight: 600;
    color: #4A4035;
    position: relative;
    z-index: 2;
    display: inline-block;
}

/* 丸形カードグリッド */
.nijiiro-circle-grid {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    gap: 40px;
    margin-bottom: 80px;
    padding-top: 0;
}

.nijiiro-circle-grid .facility-circle-card {
    flex: 1;
    max-width: 350px;
    text-align: center;
    transition: transform 0.3s ease;
}

/* 左から右上に斜めになるよう配置 */
.nijiiro-circle-grid .facility-circle-card:nth-child(1) {
    transform: translateY(-80px);
    margin-top: 0;
}

.nijiiro-circle-grid .facility-circle-card:nth-child(2) {
    transform: translateY(-10px);
    margin-top: 0;
}

.nijiiro-circle-grid .facility-circle-card:nth-child(3) {
    transform: translateY(60px);
    margin-top: 0;
}

.nijiiro-circle-grid .facility-circle-card:nth-child(1):hover {
    transform: translateY(-90px);
}

.nijiiro-circle-grid .facility-circle-card:nth-child(2):hover {
    transform: translateY(-20px);
}

.nijiiro-circle-grid .facility-circle-card:nth-child(3):hover {
    transform: translateY(50px);
}

.circle-arrow-btn-orange {
    width: 40px;
    height: 40px;
    background-color: #F4AB42;
    border-radius: 50%;
    position: relative;
    transition: background-color 0.3s ease;
}

.circle-arrow-btn-orange::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 10px;
    background-image: url('../../assets/img/arrow_brown.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

.facility-circle-card:hover .circle-arrow-btn-orange {
    background-color: #EBB02D;
}

.facility-circle-card:hover .circle-arrow-btn-orange::after {
    transform: translate(-40%, -50%);
}

.nijiiro-button-wrap {
    text-align: left;
    padding-left: 50px;
}

@media (max-width: 1024px) {
    .nijiiro-title-main {
        font-size: 2.25rem;
    }
    
    .nijiiro-title-en {
        width: 280px;
        top: -35px;
        right: -35px;
    }

    .nijiiro-circle-grid {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .nijiiro-section {
        padding: 80px 0;
    }

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

    .nijiiro-title-main {
        font-size: 1.75rem;
    }
    
    .nijiiro-title-en {
        right: 50%;
        transform: translateX(50%);
    }

    .nijiiro-circle-grid {
        flex-direction: column;
        align-items: center;
        gap: 40px;
        padding-top: 0;
    }

    .nijiiro-circle-grid .facility-circle-card {
        max-width: 280px;
        margin-top: 0 !important;
        transform: none !important;
    }

    .nijiiro-circle-grid .facility-circle-card:hover {
        transform: translateY(-5px) !important;
    }

    .nijiiro-button-wrap {
        text-align: center;
        padding-left: 0;
    }
}

@media (max-width: 1024px) {
    .facility-title-main {
        font-size: 2.25rem;
    }
    
    .facility-title-en {
        width: 280px;
        top: -35px;
    }

    .facility-circle-grid {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .meguminosono-section {
        padding: 80px 0;
    }
    
    .facility-title-wrap {
        margin-bottom: 50px;
    }

    .facility-title-main {
        font-size: 1.75rem;
    }

    .facility-circle-grid {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .facility-circle-card {
        max-width: 280px;
    }

    .button-more-green,
    .button-more-orange {
        width: 100%;
        padding: 15px 40px;
    }
}

@media (max-width: 1024px) {
    .facility-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .facility-grid .facility-card:last-child {
        grid-column: 1 / -1;
        max-width: 50%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .facility-title {
        font-size: 1.75rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .facility-icon {
        height: 50px;
    }
    
    .facility-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .facility-grid .facility-card:last-child {
        grid-column: auto;
        max-width: 100%;
    }
    
    .facility-card-image {
        height: 200px;
    }
    
    .facility-card-content {
        padding: 20px;
    }
}

/* ==========================================================================
   フォトギャラリー
   ========================================================================== */

.gallery {
    /* background-image: url('../../assets/img/bg_gallery.svg'); */
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 100% auto;
    background-color: transparent;
    padding: 130px 0 150px;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.gallery-slider-wrap {
    position: relative;
    padding: 0;
    margin-bottom: 60px;
    width: 100%;
}

    .gallery-slider {
        padding: 20px 0;
        overflow: hidden;
    }

    .swiper-slide {
        display: flex;
        justify-content: center;
    }

    .gallery-item {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 20vw;
        width: auto;
        overflow: hidden;
        transition: all 0.3s ease;
    }

    .gallery-item img {
        height: 100%;
        width: auto;
        object-fit: contain;
        display: block;
    }

/* ナビゲーションボタン用コンテナ */
.gallery-nav-container {
    width: 62vw;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    height: auto;
    pointer-events: none;
    z-index: 5;
}

/* ナビゲーションボタン（矢印） */
.gallery-prev,
.gallery-next {
    width: 60px;
    height: 60px;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 0 40px rgba(241, 197, 65, 0.5);
    background-image: url('../../assets/img/arrow_orange.svg');
    background-repeat: no-repeat;
    background-size: 24px auto;
    background-position: center;
    transition: all 0.3s ease;
    z-index: 10;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: auto;
}

.gallery-prev {
    left: 0;
    transform: translateY(-50%) rotate(180deg);
}

.gallery-next {
    right: 0;
}

.gallery-prev:hover {
    background-color: #FFF9E6;
    transform: translateY(-50%) rotate(180deg) scale(1.1);
}

.gallery-next:hover {
    background-color: #FFF9E6;
    transform: translateY(-50%) scale(1.1);
}

.gallery-button-wrap {
    text-align: center;
}

.gallery-btn {
    padding-right: 40px !important;
    padding-left: 40px !important;
    min-width: 300px;
}

.gallery-btn::after {
    right: 30px;
}

@media (max-width: 768px) {
    .gallery {
        padding: 150px 0 100px;
        margin-top: -80px;
    }

    .gallery-slider-wrap {
        padding: 0;
    }

    .gallery-prev,
    .gallery-next {
        width: 40px;
        height: 40px;
        background-size: 10px auto;
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
    }
    
    .gallery-prev {
        left: 30%;
        transform: translateY(-50%) rotate(180deg);
    }
    
    .gallery-next {
        right: 30%;
    }

    .gallery-button-wrap {
        margin-top: 80px;
    }
}

/* ==========================================================================
   採用情報
   ========================================================================== */

.recruit {
    position: relative;
    overflow: hidden;
    padding: 0 0 75px;
}

.recruit-deco-yellow {
    position: absolute;
    top: 50%;
    left: -10vw;
    transform: translateY(-50%);
    width: 20vw;
    height: 30vw;
    background-image: url('../../assets/img/deco_recruit_yellow.svg');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 1;
}

.recruit-deco-pink {
    position: absolute;
    top: 20%;
    right: -5vw;
    width: 15vw;
    height: 15vw;
    background-image: url('../../assets/img/deco_recruit_pink.svg');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 1;
}

.recruit-content-wrapper {
    background-color: #fff;
    border-radius: 50px;
    box-shadow: 0 0 40px rgba(241, 197, 65, 0.1);
    padding: 60px;
}

.recruit-content {
    display: flex;
    align-items: center;
    gap: 80px;
    position: relative;
    z-index: 2;
}

.recruit-text {
    flex: 1;
    max-width: 600px;
    white-space: nowrap;
}

.recruit-catchphrase {
    font-size: 2.25rem;
    font-weight: 600;
    color: #4A4035;
    line-height: 1.5;
    margin-bottom: 30px;
}

.recruit-catchphrase .highlight-red {
    color: #EE7A7D;
    font-weight: 800;
}

.recruit-description {
    font-size: 1.125rem;
    line-height: 2.2;
    color: #4A4035;
    margin-bottom: 40px;
}

.recruit-description p {
    margin-bottom: 20px;
}

.recruit-image-wrap {
    position: absolute;
    right: -190px;
    bottom: -80px;
    width: 705px;
}

.recruit-main-image {
    width: 670px;
    height: auto;
    display: block;
    border-radius: 0;
    box-shadow: none;
}

.recruit-button-wrap {
    text-align: left;
}

@media (max-width: 768px) {
    .recruit {
        display: none;
    }
}

/* ==========================================================================
   お問い合わせ
   ========================================================================== */

.contact {
    background-image: url('../../assets/img/bg_contact.svg');
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 100% auto;
    padding: 185px 0 200px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.contact::before {
    content: "";
    position: absolute;
    top: 400px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #F1C541;
    z-index: -1;
}

.contact .section-title-en-sub {
    color: #fff;
}

.section-title-en-sub {
    display: block;
    color: #FBB03B;
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 0;
}


.contact-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    max-width: 900px;
    margin: 0 auto;
}

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

.contact-method-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #6B4513;
    margin-bottom: 15px;
    text-align: left;
}

.contact-phone {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    line-height: 1;
}

.contact-icon {
    width: 23px;
    height: auto;
}

.phone-number {
    font-size: 40px;
    font-weight: 600;
    color: #5F4D48;
    letter-spacing: 0.05em;
}

.phone-number:hover {
    opacity: 0.8;
}

.contact-button-wrap {
    display: flex;
    justify-content: flex-start;
}

/* contactセクション内のbutton-more-orangeのスタイル変更 */
.contact .button-more-orange {
    background-color: #fff;
    color: #4A4035;
    transform: none;
}

.contact .button-more-orange:hover {
    background-color: #FEECC8;
    transform: none;
    opacity: 1;
}

.contact .button-more-orange::after {
    background-image: url('../../assets/img/arrow_brown.svg');
}

.contact-reception-time {
    text-align: left;
    font-size: 0.938rem;
    color: #5F4D48;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .contact {
        padding: 80px 0 100px;
    }

    .contact::before {
        top: 250px;
    }

    .contact-intro {
        font-size: 1rem;
        margin-bottom: 40px;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 100%;
        padding: 0 20px;
    }
    
    .contact-method {
        padding: 30px 20px;
        text-align: left;
    }

    .contact-phone {
        justify-content: flex-start;
    }

    .phone-number {
        font-size: 1.5rem;
    }
    .contact-reception-time {
        text-align: left;
    }
}

/* ==========================================================================
   フッター
   ========================================================================== */

.footer {
    background-color: #fff; /* #FFFADE から変更 */
    color: #5F4D48;
    padding: 80px 0 130px; /* 30px から変更 */
    border-radius: 100px 100px 0 0; /* 追加 */
    margin-top: -100px; /* 追加 */
    z-index: 2; /* 追加 */
    position: relative; /* z-indexが効くようにpositionを追加 */
}

.footer .container {
    padding: 0 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    /* gap: 40px; */
    margin-bottom: 0;
    flex-wrap: wrap;
}

.footer-main-info {
    flex-basis: 23%;
    /* min-width: 300px; */
}

/* ロゴに関するスタイルは削除 */
.footer-logo {
    display: none;
}

.footer-logo img {
    display: none;
}

.footer-info-group {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.footer-info-block {
    text-align: left;
    line-height: 1.6;
    margin-bottom: 30px; 
}

.footer-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #5F4D48;
}

.footer-address,
.footer-tel,
.footer-fax {
    font-size: 13px;
    margin-bottom: 5px;
    color: #5F4D48;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    flex-basis: 77%;
    min-width: 500px;
    padding-left: 65px; /* PCのみ適用 */
    margin-top: -30px; /* 追加 */
}

.footer-links-col {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-col li {
    margin-bottom: 10px;
}

.footer-link-title {
    margin-top: 30px;
}

.footer-links-col li:first-child .footer-link-icon {
}

.footer-links-col li:last-child {
    margin-bottom: 0;
}

/* .footer-link-icon img を削除し、::before で矢印を表現 */
.footer-link-icon {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #5F4D48;
    margin-bottom: 15px;
    padding-left: 20px;
    padding-right: 0;
}

.footer-link-icon::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 10px;
    background: #F1C541 url('../../assets/img/arrow_brown.svg') no-repeat center / 6px 5px;
}

.footer-link-icon span {
    display: inline-block;
}

.footer-sub-link {
    display: block;
    font-size: 14px;
    color: #5F4D48;
    padding-left: 15px;
    line-height: 1.5;
    position: relative;
}

.footer-sub-link::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background-color: #5F4D48;
}

.footer-sub-link:hover,
.footer-link-icon:hover {
    opacity: 1;
    color: #FBB03B;
}

.footer-sub-link:hover {
    text-decoration: underline;
}


.footer-bottom-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-bottom-link {
    font-size: 0.938rem;
    color: #5F4D48;
    white-space: nowrap;
}

.footer-bottom-link:hover {
    opacity: 1;
    color: #FBB03B;
}

.footer-copyright {
    text-align: center;
}

.footer-copyright .copyright {
    font-size: 0.875rem;
    color: #5F4D48;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .footer {
        padding: 60px 0 20px;
        border-radius: 50px 50px 0 0; /* スマホ用に調整 */
        margin-top: -50px; /* スマホ用に調整 */
    }

    .footer .container {
        padding: 0 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 50px;
        margin-bottom: 40px;
    }

    .footer-main-info {
        flex-basis: auto;
        min-width: auto;
        text-align: center;
    }

    .footer-logo {
        margin: 0 auto 30px;
    }

    .footer-info-group {
        align-items: center;
        gap: 20px;
    }

    .footer-info-block {
        text-align: center;
        margin-bottom: 20px; /* スマホ用に調整 */
    }

    .footer-nav {
        grid-template-columns: 1fr;
        gap: 30px;
        flex-basis: auto;
        min-width: auto;
        margin-top: 0; /* スマホでは解除 */
        padding-left: 0; /* スマホでは解除 */
    }

    .footer-links-col {
        text-align: center;
    }

    .footer-links-col li:first-child .footer-link-icon {
        margin-top: 0; /* スマホでは解除 */
    }

    .footer-link-icon {
        justify-content: center;
        margin-bottom: 10px;
    }

    .footer-link-icon::before {
        left: auto; /* スマホでは自動調整 */
        right: calc(50% + 50px); /* 中央寄せ */
        transform: translate(50%, -50%);
    }

    .footer-sub-link {
        padding-left: 0;
    }

    .footer-bottom-links {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 20px;
        padding-top: 20px;
    }
}

.swiper-button-next::after,
.swiper-button-prev::after {
    display: none;
}
