/* IKIGAImandala page-specific layout */

.header > .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 76px;
}

.header .hamburger {
    display: none;
}

main {
    overflow: hidden;
}

main *,
main *::before,
main *::after {
    box-sizing: border-box;
}

main .container {
    width: min(1120px, calc(100% - 48px));
    margin-inline: auto;
}

main h1,
main h2,
main h3,
main p,
main div {
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
}

.page-hero {
    padding: 88px 0 80px;
    background: #f4fbfd;
    text-align: center;
}

.page-hero h1,
.common-heading,
.overlap2-section h2,
.overlap3-section h2,
.ikigai-summary-section h2,
.cta-final-section h2 {
    margin: 0;
    color: #252b2e;
    font-family: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
    letter-spacing: 0;
}

.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3.25rem);
}

.hero-subcatch {
    margin: 20px 0 0;
    color: #238db7;
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 700;
}

.page-hero .about-body {
    max-width: 760px;
    margin: 40px auto 0;
}

.page-hero .about-body p,
.intro-message-section .about-body p {
    margin: 0;
    color: #41484c;
    font-size: 1.05rem;
    line-height: 2.1;
}

.intro-message-section {
    padding: 96px 0 104px;
    background: #fff;
}

.common-heading,
.overlap2-section h2,
.overlap3-section h2,
.ikigai-summary-section h2,
.cta-final-section h2 {
    text-align: center;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.section-subtitle {
    margin: 18px 0 0;
    color: #238db7;
    font-size: 1.08rem;
    font-weight: 700;
}

.intro-message-section .about-body {
    max-width: 760px;
    margin: 48px auto 0;
}

.intro-message-section .about-body p + p {
    margin-top: 18px;
}

.mandara-intro-block {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
    align-items: center;
    gap: 64px;
    margin-top: 64px;
}

.mandara-intro-img-wrap {
    min-width: 0;
}

.mandara-intro-img {
    display: block;
    width: 100%;
    max-width: 620px;
    height: auto;
    margin: 0 auto;
}

.mandara-intro-text {
    margin: 0;
    color: #41484c;
    font-size: 1rem;
    line-height: 2;
}

.elements-media-section {
    padding: 88px 24px;
    background: #f7fafb;
}

.elements-media-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    width: min(1200px, 100%);
    margin: 0 auto;
}

.element-media-block {
    min-width: 0;
    padding: 22px 20px 26px;
    background: #fff;
    border: 1px solid #dbe8ed;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(41, 72, 86, 0.07);
}

.element-media-img-wrap {
    width: min(180px, 75%);
    margin: 0 auto 18px;
    aspect-ratio: 1;
}

.element-media-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.element-media-title {
    color: #273136;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
}

.element-media-en {
    display: block;
    margin-top: 5px;
    color: #238db7;
    font-size: 0.72rem;
    font-weight: 500;
}

.element-media-desc {
    margin-top: 16px;
    color: #596166;
    font-size: 0.9rem;
    line-height: 1.8;
}

.overlap2-section,
.overlap3-section,
.ikigai-summary-section,
.cta-final-section {
    padding: 96px 0;
}

.overlap2-section {
    background: #fff8f2;
}

.overlap2-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 52px;
}

.overlap2-item {
    min-width: 0;
    padding: 30px;
    background: #fff;
    border: 1px solid #f1d9c8;
    border-radius: 8px;
}

.overlap2-title {
    margin: 0;
    color: #e66f36;
    font-size: 1.35rem;
}

.overlap2-elements {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-top: 14px;
}

.element-circle {
    flex: 0 0 12px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.element-circle.love { background: #f7c83e; }
.element-circle.skill { background: #f3973d; }
.element-circle.help { background: #52bdd1; }
.element-circle.money { background: #78c96b; }

.element-text {
    color: #596166;
    font-size: 0.9rem;
}

.overlap2-desc {
    margin: 20px 0 0;
    color: #41484c;
    line-height: 1.85;
}

.overlap3-section {
    background: #fff;
}

.overlap3-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 52px;
}

.overlap3-card {
    min-width: 0;
    padding: 30px;
    border: 1px solid #cfe5ed;
    border-radius: 8px;
    background: #f8fcfd;
}

.overlap3-header h3 {
    margin: 0;
    color: #238db7;
    font-size: 1.35rem;
}

.overlap3-subtitle {
    margin-left: 8px;
    color: #7b858a;
    font-size: 0.78rem;
    font-weight: 500;
}

.overlap3-desc {
    margin: 18px 0 0;
    color: #41484c;
    line-height: 1.9;
}

.mobile-only {
    display: none;
}

.ikigai-summary-section {
    background: #f4fbfd;
    text-align: center;
}

.ikigai-summary-content {
    max-width: 760px;
    margin: 42px auto 0;
}

.ikigai-summary-content p {
    margin: 0;
    color: #41484c;
    font-size: 1rem;
    line-height: 2;
}

.ikigai-summary-content p + p {
    margin-top: 22px;
}

.cta-final-section {
    background: #fff;
    text-align: center;
}

.cta-lead {
    margin: 30px auto 0;
    color: #41484c;
    line-height: 2;
}

.cta-buttons {
    margin-top: 34px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 260px;
    min-height: 56px;
    padding: 14px 28px;
    border-radius: 6px;
    background: #ef7f45;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.cta-button:hover {
    background: #dc6931;
}

@media (max-width: 900px) {
    .mandara-intro-block {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .mandara-intro-text {
        max-width: 680px;
        margin-inline: auto;
    }

    .elements-media-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .header > .container {
        width: 100%;
        min-height: 64px;
        padding: 0 16px;
    }

    .header .header-logo-img {
        width: min(220px, 60vw);
    }

    .header .hamburger {
        position: relative;
        display: flex;
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        margin: 0;
    }

    main .container {
        width: min(calc(100% - 32px), 1120px);
    }

    .page-hero {
        padding: 56px 0 60px;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .hero-subcatch {
        margin-top: 14px;
        max-width: calc(100vw - 40px);
        font-size: 0.95rem;
        line-height: 1.7;
        width: 100%;
        word-break: break-all;
    }

    .page-hero .about-body {
        width: calc(100vw - 40px);
        max-width: calc(100vw - 40px);
        margin-top: 30px;
        margin-inline: auto;
    }

    .page-hero .about-body p,
    .intro-message-section .about-body p {
        width: 100%;
        min-width: 0;
        font-size: 0.95rem;
        line-height: 1.9;
        word-break: break-all;
    }

    .page-hero .about-body br,
    .mandara-intro-text br,
    .ikigai-summary-content br,
    .cta-lead br {
        display: none;
    }

    .intro-message-section,
    .overlap2-section,
    .overlap3-section,
    .ikigai-summary-section,
    .cta-final-section {
        padding: 64px 0;
    }

    .common-heading,
    .overlap2-section h2,
    .overlap3-section h2,
    .ikigai-summary-section h2,
    .cta-final-section h2 {
        font-size: 1.55rem;
        line-height: 1.55;
    }

    .section-subtitle {
        font-size: 0.94rem;
        line-height: 1.7;
    }

    .intro-message-section .about-body {
        width: calc(100vw - 40px);
        max-width: calc(100vw - 40px);
        margin-top: 36px;
        margin-inline: auto;
    }

    .mandara-intro-block {
        margin-top: 42px;
    }

    .mandara-intro-img {
        max-width: 520px;
    }

    .mandara-intro-text {
        font-size: 0.94rem;
        line-height: 1.9;
    }

    .elements-media-section {
        padding: 64px 16px;
    }

    .elements-media-list,
    .overlap2-grid,
    .overlap3-list {
        grid-template-columns: 1fr;
    }

    .element-media-block {
        display: grid;
        grid-template-columns: 92px minmax(0, 1fr);
        column-gap: 18px;
        align-items: center;
        padding: 18px;
    }

    .element-media-img-wrap {
        width: 92px;
        margin: 0;
        grid-row: 1 / span 2;
    }

    .element-media-title {
        text-align: left;
    }

    .element-media-desc {
        margin-top: 10px;
        font-size: 0.86rem;
    }

    .overlap2-grid,
    .overlap3-list {
        gap: 16px;
        margin-top: 36px;
    }

    .overlap2-item,
    .overlap3-card {
        padding: 22px 20px;
    }

    .overlap2-title,
    .overlap3-header h3 {
        font-size: 1.2rem;
    }

    .mobile-only {
        display: block;
    }

    .ikigai-summary-content {
        margin-top: 34px;
        text-align: left;
    }

    .ikigai-summary-content p,
    .cta-lead {
        font-size: 0.94rem;
        line-height: 1.9;
    }

    .cta-button {
        width: 100%;
        min-width: 0;
    }
}
