:root {
    --primary-color: #199B7E;
    --secondary-color: #40CDAE;
    --bg-color: #FFFFFF;
    --base-font: "Noto Sans JP", sans-serif;
    --text-color: #1F2937;
    --text-light: #6B7280;
}

/* Base & Typography */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: var(--base-font) !important;
    color: var(--text-color);
    margin: 0;
    background-color: var(--bg-color);
    line-height: 1.75;
}

.l-contents {
    padding-top: 60px;
}

.home .l-contents {
    padding-top: 0;
}

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

h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.3;
}

h1 {
    font-size: clamp(2.2rem, 5vw, 3rem);
}

h2 {
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 65px;
}

h3 {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
}

p {
    margin-bottom: 1rem;
}

p:empty {
    margin-top: 0 !important;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.75;
}

img, video {
    max-width: 100%;
    height: auto;
}

section {
    padding: clamp(60px, 10vw, 120px) 0;
    /* overflow: hidden; */
}

.tb,
.sp {
    display: none;
}

main > .c-section {
    padding-bottom: 0;
}

.p-section-front-page-content {
    padding-top: 0;
}

@media screen and (max-width:820px) {
    .tb {
        display: block;
    }
}

@media screen and (max-width:767px) {
    h2 {
        margin-bottom: 30px;
    }

    .l-contents {
        padding-top: 50px;
    }

    .pc {
        display: none;
    }

    .sp {
        display: block;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    position: relative;
    padding: 14px 32px;
    font-weight: bold;
    text-align: center;
    /* transition: transform 0.3s, box-shadow 0.3s; */
    transition: all .3s;
    cursor: pointer;
}

.btn:after,
.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: all .3s;
    background-color: var(--primary-color);
    border: 2px solid var(--primary-color);
    z-index: -1;
}

.btn:hover {
    opacity: 1;
}

.btn:hover:before {
    top: 3px;
    left: 3px;
}

.btn:hover:after {
    top: -3px;
    left: -3px;
}

.btn-primary {
    color: #fff;
}

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

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:after,
.btn-secondary:before {
    background-color: transparent;
}

.btn-secondary:hover:before {
    background-color: #fff;
    border-color: #fff;
}

/* header */
header .p-global-nav a {
    position: relative;
}

header .p-global-nav a:before {
    background: var(--primary-color);
    content: '';
    width: 100%;
    height: 1px;
    position: absolute;
    left: 0;
    bottom: 10px;
    transform-origin: right top;
    transform: scale(0, 1);
    transition: transform .3s;
}

header .p-global-nav a:hover:before {
    transform-origin: left top;
    transform: scale(1, 1);
}

.c-drawer {
    background: rgba(3, 163, 123, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.c-drawer__item .p-search-form,
.c-hamburger-btn__label {
    display: none;
}

@media screen and (max-width:1024px) {
    .l-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background: none;
        box-shadow: none;
    }
}

@media screen and (max-width:767px) {
    .l-header .c-container, .c-fluid-container {
        padding: 0 15px;
    }

    .c-site-branding__title {
        font-size: 15px;
    }
}

/* トップページ */
body.home main {
    max-width: 100%;
}

body.home main h2 {
    margin-bottom: 50px;
}

body.home main h3 {
    margin-bottom: 35px;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 15px;
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto 60px;
    text-align: center;
}

:where(.c-entry__content>:not(.alignleft):not(.alignright):not(.alignfull)) {
    max-width: var(--wp--custom--content-width);
}

/* Hero Section */
.hero {
    margin-top: 0;
    margin-right: -35px;
    margin-left: -35px;
    max-width: calc(100% + 70px);
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
}

.hero .container{
    padding: 24px;
}

.hero-content {
    padding: 40px;
    text-align: left;
    max-width: 700px;
    background: rgba(255, 255, 255, 0.5);
}

.hero h1 {
    margin-bottom: 24px;
}

.hero-cta {
    display: flex;
    gap: 16px;
}

.home header,
.hero video,
.hero-bottom {
    opacity: 0;
    transition: opacity 4s ease;
}

.home header.show,
.hero.show video,
.hero.show .hero-bottom {
    opacity: 1;
}

/* Intro/Features Section */
.intro {
    background-color: #fff;
}

.top .intro .icon1 .draw-path,
.top .intro .icon2 .draw-path,
.top .intro .icon3 .draw-path {
    stroke-dasharray: 0;
    stroke-dashoffset: 0;
    animation-fill-mode: forwards;
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 55px;
}

.feature-item {
    text-align: center;
}

.feature-item .icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.feature-item h3 {
    font-size: 1.5rem;
}

/* Testimonial Section */
.testimonials {
    position: relative;
    margin: 0 -180px;
    padding-top: 0;
    padding-bottom: 0;
    background-color: var(--primary-color);
}

.testimonials .container {
    max-width: 100%;
    width: 100%;
    padding-top: 120px;
    padding-bottom: 120px;
}

.testimonials #particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.testimonials .wrap {
    position: relative;
    z-index: 2;
}

.testimonials h2 {
    color: #fff;
}

.testimonial-card {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    font-weight: bold;
    text-align: right;
}

/* CTA Section */
.main-cta {
    margin: 0 -180px;
    color: #fff;
    text-align: center;
    background: linear-gradient(90deg, #1D5C4E, #199B7E);
    background-size: 200% 200%;
    animation: Grad 5s ease infinite;
}

.main-cta .container {
    max-width: 100%;
    width: 100%;
}

@keyframes Grad {
    0% {
        background-position: 0% 50%
    }

    50% {
        background-position: 100% 50%
    }

    100% {
        background-position: 0% 50%
    }
}

.main-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #fff;
}

.main-cta p {
    max-width: 600px;
    margin: 0 auto 40px;
    opacity: 0.9;
    color: #fff;
}

.main-cta .btn:before {
    background-color: #fff;
}

/* Animation */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media screen and (max-width:1000px) {

    .main-cta,
    .testimonials {
        margin-left: -35px;
        margin-right: -35px;
    }
}

@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    body.home main h2 {
        margin-bottom: 30px;
    }

    body.home main h3 {
        margin-bottom: 20px;
    }

    h1 {
        font-size: 2rem;
    }

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

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

    .testimonials .container,
    section {
        padding: 60px 0;
    }

    .hero .container {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding: 30px;
    }

    .hero-image {
        display: none;
    }

    .hero-text {
        text-align: center;
    }

    .hero-cta {
        justify-content: center;
        flex-direction: column;
        gap: 0;
    }

    .hero-cta .btn {
        width: 100%;
        margin-bottom: 16px;
    }

    .section-title {
        font-size: 1.8rem;
        /* お好みで調整可能。例: 1.2rem, 1.4remなど */
    }

    .feature-item h3 {
        font-size: 1.3rem;
    }

    .testimonial-card {
        margin: 0 20px;
        padding: 20px;
    }

    .main-cta,
    .testimonials {
        margin-left: -30px;
        margin-right: -30px;
    }

    .main-cta h2 {
        font-size: 1.8rem;
        /* お好みで：1.2rem ～ 1.6rem あたりが目安 */
    }
}

/* footer */
.l-footer {
    border-top-color: #fff;
}

.l-footer--footer-1 .l-footer__footer {
    display: flex;
    align-items: center;
    padding: 0;
    height: 50px;
    color: #fff;
    font-size: 10px;
    background: linear-gradient(270deg, #1D5C4E, #199B7E);
    background-size: 200% 200%;
    animation: Grad 5s ease infinite;
}

.p-footer-sticky-nav {
    display: none;
}

@media screen and (max-width:767px) {
    .l-footer--footer-1 .l-footer__footer {
        height: 40px;
    }
}

/* 共通 */
.t-caret {
    padding-left: 20px;
}

.fin .t-caret {
    animation: blink-caret 1s step-end infinite;
}

@keyframes blink-caret {
    from, to {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@media screen and (max-width:767px) {
    .t-caret {
        padding-left: 10px;
    }
}

/* 下層ページ */
.l-contents__inner:last-child {
    padding-bottom: 100px;
}

.p-breadcrumbs-wrapper {
    margin: 0 -35px;
    padding: 5px 20px !important;
    max-width: calc(100% + 70px);
    color: #fff;
    background: linear-gradient(90deg, #1D5C4E, #199B7E);
    background-size: 200% 200%;
    animation: Grad 5s ease infinite;
}

.p-breadcrumbs-wrapper a {
    color: #fff;
}

.c-entry__title {
    position: relative;
    padding: 30px 0;
    text-align: center;
}

.c-entry__title:after,
.c-entry__title:before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 80px;
    height: 1px;
    background: #000;
    transform: translateX(-50%);
}

.c-entry__title:after {
    content: '';
    top: auto;
    bottom: -15px;
    width: 100%;
    color: #d4d4d6;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    height: auto;
    background: none;
    text-transform: uppercase;
}

.c-entry__header {
    margin-bottom: 80px;
}

@media screen and (max-width:767px) {
    .l-contents__inner:last-child {
        padding-bottom: 50px;
    }

    .p-breadcrumbs-wrapper {
        padding: 5px 35px !important;
    }
}

/* 資料請求 */
body.contact .c-entry__title:after {
    content: 'contact';
}

.snow-monkey-form {
    margin: 0 auto;
    max-width: 750px;
}

.wp-block-snow-monkey-forms-item {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px 0;
    margin-bottom: 50px;
}

.smf-item__col--label {
    padding-top: 10px;
    width: 180px;
}

.smf-item__col--controls {
    flex: 1;
}

.smf-item__col--controls textarea,
.smf-item__col--controls input {
    width: 100%;
    border-radius: 0 !important;
}

.smf-action {
    text-align: center;
}

.snow-monkey-form button[type="submit"] {
    color: #fff;
    font-weight: bold;
    background: var(--primary-color);
    border: none;
    border-radius: 0;
}

@media screen and (max-width:767px) {
    .wp-block-snow-monkey-forms-item {
        margin-bottom: 30px;
    }

    .smf-item__col--label {
        padding-top: 0;
        width: 100%;
    }
}

/* プライバシーポリシー */
body.privacy-policy .c-entry__title:after {
    content: 'privacy-policy';
}

body.privacy-policy .c-entry__body {
    margin: 0 auto;
    max-width: 750px;
}

body.privacy-policy .c-entry__body ol>li {
    margin-bottom: 50px;
}

@media screen and (max-width:767px) {
    body.privacy-policy .c-entry__body ol>li {
        margin-bottom: 30px;
    }
}

/* 私たちについて */
body.program .l-contents__inner:last-child {
    padding-bottom: 0;
}

body.program .c-entry__title:after {
    content: 'program';
}

/* Mission/Value Section */
body.program .profile-grid,
body.program .mission-value-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 30px 60px;
}

body.program .mission-value-item:nth-child(even) .mission-value-image {
    order: 2;
}

body.program .mission-value-item h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Company Profile Section */
body.program .profile-info{
    padding-bottom: 30px;
}

body.program .profile-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

body.program .profile-table th {
    width: 165px;
    font-weight: 600;
    border-bottom: 2px solid var(--primary-color)!important;
}

body.program .profile-table th,
.profile-table td {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
}

/* Plans Slider Section */
body.program .plans-slider-section {
    position: relative;
}

body.program .plans-track-container {
    /* overflow: hidden; */
}

body.program .plans-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.45, 0.05, 0.55, 0.95);
}

body.program .plan-slide {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 50px 5%;
}

body.program .plan-card {
    background-color: #fff;
    border-radius: 14px;
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

body.program .plan-card .plan-image img {
    aspect-ratio: 16/10;
    object-fit: cover;
    height: 100%;
}

body.program .plan-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.5rem;
}

body.program .plan-card .price {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 10px 0;
    line-height: 1;
}

body.program .plan-card .price span {
    font-size: 1rem;
    font-weight: normal;
    color: var(--text-light);
}

body.program .plan-card ul {
    list-style: none;
    padding: 0;
    margin: 20px 0 30px 0;
}

body.program .plan-card ul li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

body.program .plan-card ul .icon {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
    margin-right: 10px;
    flex-shrink: 0;
}

body.program .slider-nav {
    text-align: center;
}

body.program .slider-btn {
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    margin: 0 10px;
    font-size: 1.5rem;
    transition: background-color 0.3s, color 0.3s;
}

body.program .slider-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Features Section (Accordion) */
body.program .features-wrapper{
    position: relative;
    margin: 0 -35px;
    max-width: calc(100% + 70px);
    background-color: var(--secondary-color);
}
body.program .features-wrapper #particles-js{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
body.program .features{
    padding-right: 24px;
    padding-left: 24px;
}
body.program .features:first-of-type {
    padding-bottom: 0;
}

body.program .features h3{
    margin-bottom: 15px;
}

body.program .feature-item-alternating{
    margin-bottom: 50px;
}

body.program .accordion-item {
    border-bottom: 1px solid #d1d5db;
}

body.program .accordion-button {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 24px 0;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body.program .accordion-button::after {
    content: '+';
    font-size: 2rem;
    transition: transform 0.3s;
}

body.program .accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}

body.program .accordion-item[open] .accordion-button::after {
    transform: rotate(45deg);
}

body.program .accordion-item[open] .accordion-content {
    max-height: 500px;
    padding-bottom: 24px;
}

/* CTA Section */
body.program .cta-section {
    margin: 0 -35px;
    max-width: calc(100% + 70px);
    margin-top: 0;
    color: #fff;
    text-align: center;
    background: linear-gradient(90deg, #1D5C4E, #199B7E);
    background-size: 200% 200%;
    animation: Grad 5s ease infinite;
}

body.program .cta-section h2 {
    color: #fff;
}

body.program .cta-section .btn {
    color: var(--primary-color);
}

body.program .cta-section .btn:before {
    background-color: #fff;
}

@media screen and (max-width:900px) {
    body.program .profile-grid,
    body.program .mission-value-item {
        grid-template-columns: 1fr;
    }

    body.program .plan-card {
        padding: 30px;
        display: grid;
        grid-template-columns: 1fr;
        gap: 30px;
    }

    body.program .plan-details{
        order: 2;
    }
}

@media (max-width: 767px) {
    body.program .mission-value-item h3 {
        font-size: 1.5em;
    }

    body.program .plans-track-container{
        overflow: visible;
    }

    body.program .plan-slide {
        padding: 30px  0;
    }

    body.program .profile-table {
        width: 100%;
        /* 最大幅に広げる */
        table-layout: fixed;
        /* 均等配置にも対応可能（必要なら） */
        font-size: 1rem;
        /* 通常サイズ */
    }

    body.program .plan-image {
        /* display: none; */
    }

    body.program .features-wrapper {
        margin: 0 -20px;
    }

    body.program .features h2 {
        font-size: 1.2rem;
        /* スマホ用の文字サイズ */
    }

    body.program .profile-table th,
    body.program .profile-table td {
        display: block;
        width: 100%;
    }

    body.program .accordion-button{
        padding: 15px 0;
    }

}