/* ========== 学びページ専用スタイル ========== */
.site-header {
    margin-bottom: 12px;
}

.section {
    max-width: 760px;
    margin: 5rem auto 0 auto;
    padding: 0 1.5rem;
}

/* セクションタイトル */
.section-header {
    font-family: "Noto Serif JP", serif;
    font-size: 2rem;
    letter-spacing: 0.03em;
    margin: 0 0 1.7rem 0;
    text-align: center;
    color: #a69e94;
    position: relative;
}

.section-header::after {
    content: "";
    display: block;
    width: 36px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, #d9c484, #a69e94);
    margin: 0.7rem auto 0 auto;
}

.section-goal {
    text-align: center;
}

.section-trigger {
    max-width: 1000px;
    margin: 5rem auto 0 auto;
    padding: 0 1.5rem;
}

.trigger-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
}

.trigger-image {
    order: 1;
}

.trigger-image img {
    width: 240px;
    height: 320px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 2px 8px -4px rgba(166, 158, 148, 0.12);
    background: #eee;
    display: block;
}

.trigger-text {
    order: 2;
    flex: 1;
    text-align: left;
}

/* レスポンシブ（スマホ時は縦並び＋順番逆転＆中央揃え） */
@media (max-width: 600px) {
    .trigger-content {
        flex-direction: column;
        gap: 1.2rem;
    }

    .trigger-image {
        order: 2;
    }

    .trigger-text {
        order: 1;
        text-align: center;
    }

    .trigger-image img {
        margin: 0 auto;
    }
}

/* 学びリスト */
.learning-list {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
}

.learning-item {
    flex: 1 1 340px;
    max-width: 400px;
    min-height: 540px;
    background: #fff8ed;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-bottom: 0;
    align-items: center;
    display: flex;           
    flex-direction: column;  
}

.learning-item img {
    width: 100%;
    max-width: 320px;
    border-radius: 10px;
    margin-bottom: 1rem;
    object-fit: cover;
    box-shadow: 0 2px 8px -4px rgba(166, 158, 148, 0.12);
    margin-left: auto;
    margin-right: auto;
}
.large-img {
  width: 100%;
  max-width: 320px;
  height: 220px;     
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
  margin-left: auto;
  margin-right: auto;
}

.learning-title {
  margin-top: 0;         
  margin-bottom: 1.1em;  
  font-size: 1.25rem;
  font-weight: bold;
  text-align: center;
  color: #7c7264;
  min-height: 2.5em;    
  display: block;
  width: 100%;
}

.learning-slider,
.learning-item img {
  margin-bottom: 1.2em;
}

.learning-label {
    text-align: center;
    font-size: 1.1rem;
    color: #a69e94;
    margin-bottom: 0.6em;
    font-weight: bold;
    letter-spacing: 0.03em;
}

.learning-item p {
    text-align: left;
    margin-bottom: 1em;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* デスクトップ（横幅900px以上）は2カラム */
@media (min-width: 900px) {
    .learning-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .learning-list {
        grid-template-columns: 1fr;
    }
}

/*スライドショー*/
.learning-slider {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    height: 240px;
    overflow: hidden;
}

.slider-img {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) scale(0.98);
    width: 100%;
    max-width: 400px;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    filter: blur(8px);
    transition:
        opacity 1.2s cubic-bezier(.77, 0, .18, 1),
        filter 1.2s cubic-bezier(.77, 0, .18, 1),
        transform 0.5s cubic-bezier(.77, 0, .18, 1);
    border-radius: 12px;
    box-shadow: 0 2px 8px -4px rgba(166, 158, 148, 0.12);
}

.slider-img.active {
    opacity: 1;
    filter: blur(0);
    transform: translateX(-50%) scale(1);
    z-index: 2;
}

@media (max-width: 600px) {
    .learning-slider {
        width: 90vw;
        max-width: 360px;
        height: 180px;
    }

    .slider-img {
        max-width: 360px;
    }
}

.navbar {
    display: flex !important;
    align-items: flex-end !important;
    height: auto !important;
    padding-top: 0 !important;
    padding-bottom: 0.5em !important;
    padding-left: 2rem !important;
    padding-right: 2rem !important;
}

.brand {
    font-size: 2rem !important;
    line-height: 1 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 0.2em !important;
    align-items: flex-start !important;
    display: flex !important;
}

#siteNav ul {
    margin-top: 0.7em !important;
}

#siteNav {
    display: none;
}

#siteNav.open {
    display: block;
}

@media (min-width: 800px) {
    #siteNav {
        display: block !important;
    }
}

@media (max-width: 760px) {
    #siteNav {
        background: rgba(255, 255, 255, 0.2) !important;
        backdrop-filter: blur(4px);
    }
}

/* ========== Buttons ========== */
.to-top-btn {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    z-index: 100;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 64px;
    height: 64px;
    font-size: 2rem;
    box-shadow: 0 4px 14px -4px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,
            rgba(255, 242, 194, 0.9) 0%,
            rgba(217, 196, 132, 0.9) 60%,
            rgba(178, 149, 83, 0.9) 100%);
}

.to-top-btn.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.to-top-label {
    font-size: 0.9rem;
    color: #4a4a46;
    opacity: 0.7;
    white-space: nowrap;
    margin-bottom: 0.1em;
}

.to-top-arrow {
    font-size: 1.8rem;
    line-height: 1;
    margin: 0;
}

/* スマホ向けレスポンシブ */
@media (max-width: 600px) {
    .to-top-btn {
        right: 1rem;
        bottom: 1rem;
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }

    .to-top-label {
        font-size: 0.75rem;
    }
}