body {
    font-family: "Noto Sans JP", sans-serif;
}

p {
    margin-bottom: 1em;
}

.eng {
    font-family: "Inter", sans-serif;
}


/* ヘッダー */

.header {
    position: fixed;
    top: 10px;
    width: 100%;
    z-index: 1000;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border-radius: 60px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-logo {
    height: 40px;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

.hamburger span {
    width: 24px;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
    position: absolute;
}

.hamburger span:nth-child(1) {
    top: 8px;
}

.hamburger span:nth-child(2) {
    top: 16px;
}

.hamburger span:nth-child(3) {
    top: 24px;
}


/* 「×」に変形する状態 */

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg);
    top: 16px;
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg);
    top: 16px;
}

.nav ul {
    display: flex;
    gap: 32px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav ul li a {
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    padding: 8px 16px;
    border-radius: 20px;
    transition: background 0.2s, color 0.2s;
}

.nav ul li a:hover {
    background: #f4efff;
    color: #700091;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
        margin-left: auto;
    }
    .nav ul {
        display: block;
        margin: 0;
        padding: 0;
        list-style: none;
    }
    .nav ul li {
        border-bottom: solid #c3c3c3 1px;
    }
    .nav ul li a {
        text-decoration: none;
        font-size: 16px;
        font-weight: 500;
        color: #333;
        padding: 1em;
        border-radius: 20px;
        transition: background 0.2s, color 0.2s;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .nav ul li a i {
        font-size: 0.8em;
    }
    .nav {
        position: fixed;
        top: 76px;
        right: -100%;
        width: 80%;
        height: 100%;
        background: #fff;
        padding: 1em;
        transition: right 0.4s ease, opacity 0.4s ease;
        opacity: 0;
        z-index: 999;
    }
    .nav.open {
        right: 0;
        opacity: 1;
    }
    .nav ul {
        flex-direction: column;
        gap: 24px;
        margin-bottom: 1em;
    }
    .nav_cta .btn {
        width: 100%;
        margin-bottom: 0.5em!important;
    }
}


/* ファーストビュー */

.hero {
    position: relative;
    background: #fff;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    background-image: url(kyoto.svg);
    background-size: cover;
    background-position: center left;
    background-repeat: no-repeat;
}

.hero-left {
    position: relative;
    padding: 200px 0 100px 0;
    width: 365px;
    margin-left: 12%;
}

.hero h1 {
    font-size: 80px;
    font-weight: bold;
    margin: 0;
    line-height: 1.2;
}

.hero-kib {
    color: #000;
}

.hero-term {
    color: #700091;
}

.hero-box {
    background: linear-gradient(45deg, #8B3EA2, #700091);
    color: #fff;
    font-size: 70px;
    font-weight: bold;
    padding: 3px 36px 12px;
    margin-bottom: 24px;
    display: block;
    line-height: 1;
    width: 100%;
    text-align: center;
}

.hero-lead {
    font-size: 18px;
    color: #333;
    margin: 0 0 40px;
    line-height: 1.8;
    text-align: center;
    font-weight: bold;
}

.highlight {
    color: #700091;
}

.hero-right {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50vw;
    min-width: 838px;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.hero-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ボタン帯 */

.hero-cta {
    display: flex;
    justify-content: center;
    padding: 24px 0;
    background: linear-gradient(45deg, #8B3EA2, #700091);
}

.btn {
    font-size: 16px;
    font-weight: bold;
    padding: 12px 0;
    text-align: center;
    border-radius: 30px;
    text-decoration: none;
    transition: background .2s, color .2s;
    position: relative;
    width: 280px;
    display: block;
}

.btn i {
    position: absolute;
    font-size: 0.8em;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.btn-outline {
    background: #fff;
    color: #700091;
    border: 2px solid #700091;
}

.btn-solid {
    background: #700091;
    color: #fff;
    border: 2px solid #fff;
}

.btn:hover {
    opacity: .9;
}

.hero .btn-outline {
    margin-right: 1em;
}

#first-view {
    width: 100%;
    overflow: hidden;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 7em 1em;
}

.section-inner .btn {
    margin: 0 auto;
}

.cont_title {
    text-align: center;
    margin-bottom: 2em;
}

.cont_title strong {
    background: linear-gradient(45deg, #8B3EA2, #700091);
    -webkit-background-clip: text;
    /* テキストで背景を切り抜く */
    -webkit-text-fill-color: transparent;
    /* テキスト自体は透明 */
    font-size: 48px;
    font-weight: bold;
    position: relative;
    z-index: 2;
    margin-top: -1em;
}

.cont_title span {
    display: block;
    width: 549px;
    margin: 0 auto -1.5em;
    position: relative;
    z-index: 1;
}

.purple .cont_title strong {
    background: none;
    color: #fff;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: white;
}

.gray {
    background-image: url(back-gray.jpg);
    background-repeat: repeat;
}

.gray2 {
    background-image: url(back-gray3.png), /* 一番上：右下に非リピート */
    url(back-gray2.png), /* 中間：左上に非リピート */
    url(back-gray.jpg);
    /* 一番下：リピート背景 */
    background-repeat: no-repeat, /* back-gray3.png */
    no-repeat, /* back-gray2.png */
    repeat;
    /* back-gray.jpg */
    background-position: right bottom, /* back-gray3.png */
    left top, /* back-gray2.png */
    left top;
    /* back-gray.jpg */
    background-size: auto, /* back-gray3.png */
    auto, /* back-gray2.png */
    auto;
    /* back-gray.jpg */
}

.gray3 {
    background-image: url(back-gray5.png), /* 左下に表示 */
    url(back-gray4.png), /* 右上に表示 */
    url(back-gray.jpg);
    /* 全体にリピート */
    background-repeat: no-repeat, /* back-gray5.png */
    no-repeat, /* back-gray4.png */
    repeat;
    /* back-gray.jpg */
    background-position: left bottom, /* back-gray5.png */
    right top, /* back-gray4.png */
    left top;
    /* back-gray.jpg */
    background-size: auto, /* back-gray5.png */
    auto, /* back-gray4.png */
    auto;
    /* back-gray.jpg */
}

.purple {
    background-image: url(back-purple3.png), /* 一番上：右下に非リピート */
    url(back-purple2.png), /* 中間：左上に非リピート */
    url(back-purple.jpg);
    /* 一番下：リピート背景 */
    background-repeat: no-repeat, /* back-gray3.png */
    no-repeat, /* back-gray2.png */
    repeat;
    /* back-gray.jpg */
    background-position: right bottom, /* back-gray3.png */
    left top, /* back-gray2.png */
    left top;
    /* back-gray.jpg */
    background-size: auto, /* back-gray3.png */
    auto, /* back-gray2.png */
    cover;
    /* back-gray.jpg */
}

#guidance {
    background-image: url(back-g3.png), /* 一番上：右下に非リピート */
    url(back-g2.png);
    /* 一番下：リピート背景 */
    background-repeat: no-repeat, /* back-gray3.png */
    no-repeat;
    /* back-gray.jpg */
    background-position: right bottom, /* back-gray3.png */
    left top;
    /* back-gray.jpg */
    background-size: auto, /* back-gray3.png */
    auto;
    /* back-gray.jpg */
}


/* アバウト */

.about-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 3em;
}

.about-left,
.about-right {
    width: 50%;
}

#partner {
    margin-bottom: 5em;
}

#partner h3 {
    text-align: center;
    margin-bottom: 1em;
}

#partner ul {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 2em;
}

#partner ul li {
    width: 25%;
}

#about_ib ul {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

#about_ib ul li {
    background-color: #fff;
    padding: 1.5em;
}

#about_ib ul li figure {
    margin-bottom: 1em;
}

.cont_title_h3 {
    text-align: center;
    background: linear-gradient(45deg, #8B3EA2, #700091);
    -webkit-background-clip: text;
    /* テキストで背景を切り抜く */
    -webkit-text-fill-color: transparent;
    /* テキスト自体は透明 */
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 1em;
}

.purple .cont_title_h3 {
    text-align: center;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: white;
    color: #fff;
}

#about_ib ul li section h4 {
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 0.5em;
    color: #673B75;
}

#about_ib ul li section p {
    margin-bottom: 0;
}


/* EO */

.eo-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3em;
}

.eo-content .eo-text {
    width: calc(52% + 3em);
    border-radius: 8px;
    background-color: #F7F7F7;
    padding: 2em;
    padding-right: 5em;
    margin-top: 2em;
    position: relative;
    z-index: 0;
}

.eo-content .eo-img {
    width: 48%;
    margin-left: -3em;
    position: relative;
    z-index: 1;
}

.eo-content2 .eo-text {
    width: calc(52% + 3em);
    border-radius: 8px;
    background-color: #F7F7F7;
    padding: 2em;
    padding-left: 5em;
    margin-top: 2em;
}

.eo-content2 .eo-img {
    width: 48%;
    margin-right: -3em;
    margin-left: 0;
}


/* メッセージ */

.waku {
    padding: 0 1em;
}

.waku-wrap {
    max-width: 1300px;
    margin: 0 auto 5em;
    position: relative;
    padding: 120px 50px 30px;
    margin-top: -7.5em;
}

.waku-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 80px;
    height: 80px;
    border-top: #673B75 solid 4px;
    border-left: #673B75 solid 4px;
}

.waku-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80px;
    height: 80px;
    border-bottom: #673B75 solid 4px;
    border-right: #673B75 solid 4px;
}

.message-inner {
    display: flex;
    justify-content: space-between;
    gap: 50px;
}

.message-inner figure {
    width: 40%;
}

.message-inner figure img {
    width: 100%;
}

.message-inner .message-text {
    width: 60%;
}

.message-inner .message-text .message_head {
    display: flex;
    align-items: center;
    gap: 20px;
}

.message-inner .message-text .message_head img {
    width: 128px;
}

.message-inner .message-text .message_head h3 {
    font-size: 24px;
    font-weight: bold;
    color: #673B75;
}


/* プログラム */

.program-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 3em;
}

.program-list li {
    background-color: #fff;
    border-radius: 4px;
    width: calc(50% - 10px);
    margin-bottom: 20px;
    padding: 1.5em;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
}

.program-list li i {
    font-size: 78px;
    color: #ABA0AF;
}

.program-list li section {}

.program-list li section h3 {}

.program-list li section p {
    margin-bottom: 0;
}

.program-detail {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 2em;
}

.program-detail .program-img {
    width: 47%;
    border-radius: 4px;
    overflow: hidden;
}

.program-detail .program-img img {
    width: 100%;
}

.program-detail .program-text ul li {
    color: #fff;
    border-bottom: solid #92759A 1px;
    padding-top: 1em;
}

.program-detail .program-text ul li:first-child {
    border-top: solid #92759A 1px;
}

.program-detail .program-text ul li p strong {
    display: block;
}

.guidance-content {
    display: flex;
    gap: 20px;
    margin-bottom: 2em;
}

.guidance-content>li {
    background-image: url(back-gray.jpg);
    background-repeat: repeat;
    text-align: center;
    width: 50%;
    position: relative;
    padding: 2em 0;
}

.guidance-content li ul {
    display: inline-block;
    text-align: left;
}

.guidance-content li ul li {
    text-align: left;
}

.guidance-content li ul li h4 {
    color: #673B75;
    font-size: 0.7em;
}

.guidance-content li ul li p strong {
    font-size: 1.2em;
    display: inline-block;
    margin-right: 0.2em;
}

.guidance-content li ul li p span {
    font-size: 0.8em;
}

.guidance-content li ul li table td {
    padding: 3px;
    white-space: nowrap;
}

.guidance-content>li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-top: #673B75 solid 4px;
    border-left: #673B75 solid 4px;
}

.guidance-content>li::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    border-bottom: #673B75 solid 4px;
    border-right: #673B75 solid 4px;
}

.lecture-content {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 5em;
}

.lecture-content li {
    background-size: cover;
    background-position: center;
    position: relative;
    width: calc((100% - 15px * 3) / 4);
    /* gapの合計45pxを引いて4等分 */
}

.lecture-content li::before {
    content: "";
    display: block;
    width: 100%;
    padding-top: 100%;
}

.lecture-content li section {
    background-color: rgba(120, 50, 141, 0.92);
    color: #fff;
    padding: 0.5em;
    margin: 0 0.5em 0.5em;
}

.lecture-content li section h4 {
    font-weight: normal;
    font-size: 1rem;
}

.lecture-content li section p {
    margin: 0;
    font-size: 0.8em;
}

#lecture_list {
    max-height: 800px;
    /* 初期表示時の制限（適宜調整） */
    overflow: hidden;
    transition: max-height 0.6s ease;
    position: relative;
}

#lecture_list.expanded {
    max-height: 10000px;
    /* 十分に大きな値にしておく */
}

#lecture button {
    margin-top: 2em;
}

#voice_list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

#voice_list li {
    width: calc((100% - 15px * 1) / 2);
    /* gapの合計45pxを引いて4等分 */
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

#voice_list li figure {
    border-radius: 50%;
    width: 130px;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 14px rgba(0, 0, 0, 0.1);
}

#voice_list li figure img {
    width: 100%;
}

#voice_list li section {
    background-color: #7A5885;
    border-radius: 4px;
    color: #fff;
    width: calc(100% - 65px);
    margin-left: -65px;
    padding: 2em 2em 2em 85px;
    height: 100%;
}

#voice_list li section h3 {
    font-size: 1rem;
    margin-bottom: 0.5em;
}

#voice_list li section p {
    margin-bottom: 0;
}

#voice_list li section p span {
    display: block;
    margin-bottom: 1em;
    font-size: 0.9em;
}

.member-inner {
    max-width: 800px;
    margin: 0 auto;
}

.tab-menu {
    display: flex;
    margin-bottom: 20px;
}

.tab {
    background: none;
    border: none;
    font-size: 16px;
    padding: 10px 0;
    cursor: pointer;
    color: #000;
    border-bottom: 1px solid #000;
    width: 25%;
}

.tab.active {
    color: #78328D;
    border-bottom: 2px solid #78328D;
    font-weight: bold;
}

.tab-content {
    display: none;
}

.tab-content ul {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.tab-content ul li {
    background-color: #fff;
    border-radius: 4px;
    width: calc((100% - 15px * 2) / 3);
    padding: 0.8em;
}

.tab-content ul li h3 {
    font-weight: normal;
    font-size: 0.9rem;
}

.tab-content ul li p {
    font-size: 0.8em;
    margin-bottom: 0;
}

.tab-content.active {
    display: block;
}

#member .waku-wrap {
    padding-bottom: 100px;
}

.flow-list {
    text-align: center;
    margin-bottom: 2em;
}

.flow-list i {
    font-size: 32px;
    color: #fff;
    opacity: 0.5;
}

.flow-cont {
    border-radius: 4px;
    border: solid 2px #fff;
    display: flex;
    background-color: #fff;
    text-align: left;
}

.flow-cont .number {
    text-align: center;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #78328D;
    width: 90px;
}

.flow-cont .number span {
    font-size: 14px;
    display: block;
}

.flow-cont .number strong {
    font-size: 32px;
    line-height: 1;
}

.flow-cont section {
    padding: 1em;
}

.flow-cont section h3 {
    color: #78328D;
}

.flow-cont section p {
    margin-bottom: 0;
}

#flow .btn {
    margin: 0;
}

#flow .btn-outline {
    margin-right: 1em;
}

#flow .hero-cta {
    background: none;
}


/* フッター */

.site-footer {
    font-family: 'Noto Sans JP', sans-serif;
    color: #333;
    padding: 40px 20px 20px;
    border-top: 1px solid #ddd;
}

.site-footer i {
    color: #673B75;
    display: inline-block;
    margin-right: 0.2em;
    font-size: 1.2em;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 20px;
    flex-wrap: wrap;
}

.footer-block {
    min-width: 240px;
}

.footer-block h4 {
    color: #673B75;
    font-weight: bold;
    margin-bottom: 10px;
}

.footer-block p {
    margin: 4px 0;
    line-height: 1.6;
    display: flex;
    align-items: center;
}

.icon {
    width: 16px;
    vertical-align: middle;
    margin-right: 6px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #ccc;
    padding-top: 10px;
    font-size: 12px;
    color: #666;
}

@media (min-width: 769px) {
    .sp {
        display: none!important;
    }
}

@media (max-width: 768px) {
    .header-inner {
        margin: 0 1em;
        padding: 0.5em 1em;
    }
    .pc {
        display: none!important;
    }
    .hero-bg-overlay {
        background-size: 100%;
        background: url(kyoto.svg);
    }
    .hero-inner {
        display: block;
    }
    .hero-right {
        position: static;
        width: 100%;
        min-width: auto;
    }
    #first-view {
        background-size: 300%;
        background-position: left top;
    }
    .hero-left {
        width: 70%;
        margin: 0 auto;
        padding: 7em 0 0;
        text-align: center;
    }
    .hero h1 {
        font-size: 16vmin;
    }
    .hero-box {
        font-size: 14vmin;
        padding: 3px 0 12px;
    }
    .hero-lead {
        margin-bottom: 0;
        font-size: 1rem;
    }
    .hero-right img {
        height: auto;
    }
    .cont_title span {
        width: 80%;
        margin: 0 auto -1em;
    }
    .cont_title strong {
        font-size: 1.2em;
    }
    .cont_title_h3 {
        font-size: 1.4em;
    }
    .hero-cta,
    .tab-content ul,
    #voice_list,
    .guidance-content,
    .program-detail,
    .program-list,
    .message-inner,
    #about_ib ul {
        display: block;
    }
    .guidance-content>li,
    .program-list li {
        width: 100%;
    }
    .program-detail .program-img {
        width: 100%;
    }
    .guidance-content>li {
        padding: 1.5em;
        margin-bottom: 2em;
    }
    .lecture-content li {
        width: calc((100% - 15px * 1) / 2);
        position: relative;
    }
    .lecture-content li::before {
        padding-top: 120%;
    }
    .lecture-content li section {
        position: absolute;
        width: calc(100% - 1em);
        left: 0.5em;
        bottom: 0.5em;
        margin: 0;
        font-size: 0.8em;
    }
    .lecture-content li section h4 span {
        display: block;
        font-size: 0.8em;
    }
    #voice_list li {
        width: 100%;
        display: block;
        margin-bottom: 2em;
    }
    #voice_list li figure {
        width: 30%;
        margin: 0 auto;
    }
    #voice_list li section {
        width: 100%;
        margin-left: 0;
        padding: 4em 2em 2em;
        margin-top: -3em;
    }
    .tab-content ul li {
        width: 100%;
    }
    .btn {
        width: 80%;
        margin: 0 auto!important;
    }
    .hero .btn-outline {
        margin-bottom: 1em!important;
    }
    #flow .btn-outline {
        margin-right: 0;
        margin-bottom: 1em;
    }
    .section-inner {
        padding: 4em 1em;
    }
    .flow-cont .number span {
        font-size: 10px;
    }
    .flow-cont .number strong {
        font-size: 26px;
    }
    .flow-cont .number {
        min-width: 50px;
    }
    .waku-wrap {
        margin-top: -6em;
        padding: 5em 2em 3em;
    }
    .waku-wrap::before,
    .waku-wrap::after {
        width: 2em;
        height: 2em;
    }
    .tab-content ul li {
        margin-bottom: 1em;
    }
    .message-inner .message-text,
    .message-inner figure {
        width: 100%;
    }
    .message-inner .message-text .message_head img {
        width: 5em;
    }
    .message-inner .message-text .message_head h3 {
        font-size: 1rem;
    }
    .message-inner .message-text .message_head p {
        font-size: 0.8em;
    }
    .about-content {
        flex-direction: column-reverse;
    }
    .about-left,
    .about-right {
        width: 100%;
    }
    #partner ul {
        flex-wrap: wrap;
    }
    #partner ul li {
        width: calc((100% - 20px * 1) / 2);
    }
    #about_ib ul li {
        margin-bottom: 1em;
    }
    #about_ib ul li section h4 {
        font-size: 1em;
    }
    .eo-content .eo-img {
        width: 90%;
    }
    .eo-content .eo-img {
        margin-left: -20em;
    }
    .eo-content .eo-text {
        margin-top: 11em;
        padding: 4em 2em 2em;
        width: calc(79% + 3em);
    }
    .eo-content2 .eo-img {
        margin-left: 0;
        margin-right: -20em;
    }
    #lecture button {
        margin-top: 2em!important;
    }
    .message-inner figure {
        margin-bottom: 0.7em;
    }
    .message-inner .message-text .message_head {
        gap: 10px;
        align-items: flex-start;
    }
}